@entryscape/rdforms 10.12.1 → 10.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rdforms.bmd.js +1 -1
- package/dist/rdforms.bootstrap.js +1 -1
- package/dist/rdforms.jquery.js +1 -1
- package/dist/rdforms.react.js +2 -2
- package/package.json +1 -1
- package/src/view/Registry.js +14 -4
package/dist/rdforms.react.js
CHANGED
|
@@ -91,7 +91,7 @@ var n=r(48764),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,
|
|
|
91
91
|
* @author Louis-Dominique Dubeau
|
|
92
92
|
* @license MIT
|
|
93
93
|
* @copyright Louis-Dominique Dubeau
|
|
94
|
-
*/function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u"),t.isNCNameStartChar=r,t.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},22134:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB9sHEgk6F1W2ZXkAAAMkSURBVDjLhZNfSN11GMY/7/f7O+eox+W/CGbptmTJGptTWgwGmWW6xQKtga2g0U30D5rdSEFFN60RbQV1IURd9GeuiyWxShd6JtO8ydha5i6WJNtkarGcHc8539/v+3u7EF1d9Vy9D8/zPvDC+8C/8GTPGP+H93sH/sNldTjwyhjHD+8GoO3ZwZfqNt56MJ1ONqgii0vL5yenrnw6/tljRwE6Dp2iu3Mdzc3NKwGryw89M9C0pX79xM6mDaRLUhhjsEZIJIRcPmIw8wvXLk+393/Qdfq19wZobSxGut48w4k37mfPc983NTXUTmzdUo33XkFk+6YURoSLsxHJhNV16ZQMnZ1ifubXAx+9tb/v61NDN094/sg5bWqoxXuv1hoCazjYWg7AidG/MUYwRriltFiO94/z6iP5OzbvePCqBejozhzatrVmj/eqcYzEqpJ3scwshHLxipNsPhZVFVXEhZFurLlNPj45WXd+7Mu+AKCqovQpjcG5SKw1asTIw/eWs7Ts1YjIxKUczolaG4u3hlQqQbK0fK/qTyUGwFizreA8Bee14Dy5fKRjF27ojroStt9ZrGHkNQw9zsXqnCd0Hq+pZDiX3RQAeB9LGHpEkDhW4lj4c9GhqgCEYYyqICbGeoMYQxzHZAsmHQAUXPhzwflGI2CtahCI5AVAFFRc6IkVNcaINaoiRix5kkHp9QAgm13+PJd3jYmEVRsrPhbN5b2AAuhfNxxFSYuxqoEVsrmIitTybEl1/bQB6D/W+u7CwnWiSMWFEQaVlx+vQUQQEXmhs1pACV0kiGH8x0n2N1f0imz0wbFPTtP9dBtlqaX2+T/MYFVFuWRzkX4ztiDGCCKi1qx8YjKR0B8mfpN9jX7qrvXB22tdeKJnkC+OtNPzznddl+aK+srKK0kmAgIrWGswYgi9Z3rmdzp36tSj91U+ULVh17Xh4eGVgJGREUYuFHj9xTamJ4dvP3oy9+FiLrF3uWCSCqRTIdXlbrZjd1lvfU3R4craXWEmk6GlpeVmLYeGhvjq2zNrXPVccTQ/evfi5bP3ZK+Oblads6taJpNZ8/0Dy3R3nlDQL+wAAAAASUVORK5CYII="},43348:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG6SURBVDiNpZI9a1NRHIefc+45J0l7E1NaF4cE0cHMClYQRRCh38DNIfoBxMXFFl06CRb0CxTBSQdBRAcXsUN9AUGQijaggihe01ybmzT3vDiIIpirFv/r7+Hh/yZCCPxPyaLgwurZ68dutwbH7+xLll8tXSviRFEHJ+/N+bndJ8TIDXmePLFXD9/U2+rg6cfHwushpYri5cYLVcQVBrl3fN3KEFIycq4I+ykQQATYH4F1nnQ0QCDI7W8CBTggKID23fZiJ+2ce/ThoTKRwqgIHUmyfIgUgi2XM3urGSpaUzGa/TsP2UatefnM3oXzIoSAXtSfTx84NU3kCJFHSPFd4FOkENRVHSkVJWKSfo80+0I+uZ7cOPpsRgFYa1lPOiij0OWIWilGS0HfbRJJ0EGTjTLWkjf0BgOmTJUZM/plB575+68fXEGhUaCVxEQRs80Wk8aw8naVslaUlKIaK7RJc2vVPPzhD8pLOhzZ02JqosxKZ4137Z4YxxX+gfOe3OVIAbn3fz3jWMGnzR5BeKzbtuCibMT18L7bFd1+Tmx32PFc4QgL/uB0dRkY7ppobNR87VKRoHCJ/1rfAF8ir6zXPA5QAAAAAElFTkSuQmCC"},59636:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIXSURBVDiNpZM9aBNxGMafN80Rm49ekktS83H5IMHSUjscFcGCtQg1iRA1OAtOgmBHiVvq1EEIFB0c0r0IpVwWFx0MOIggaIci2FaTq2LtqW1MyeV6f6cLZ9pF+oz/931+PC8Pf2KM4SSyncjdD1ghkt7cvvV9leNy/YurHJf78OB+c4VIOhawTCT5J8denRkdC0aLWfkZUdYyy4Wz03I8GIyevjJdX7ZAegANWEpOnncdNLcRS47aw/lLtSpRvkJ0zXn5Qk0cmbC3txrIzOadGrBk+uwWQGmt/rKWHD9nB7MhEE7ZNy625F3DoNlExqY2FAw4Hfj24r2uASXTR9YWnhJlh0eickzMcIbGYPO6ccAMODsGHIkItt6+7irvPhbuMPb8WAAALBJlI5lhORKMcocagRwO6KyDr8qn7s6XX4U5i/mfE0x1AGhaF/r6OvSfbRCAAZ8TzHMKnf7l/gQLRFkxIcjj+x0OagttvxsEYFBtAX431jyD3cbnnULJkqLXwjxRTkxF5KmWzglqCy7Biyc8zxZ5L3MFfBDUFqb+HHJiOi4v8PzVIwAWDz2eGfJyod3fcAf8qHh5Q9hUir7N5s0KzxvuoIDQDxUzniGOF8VHvdiMMTDGUAakaiK2p0hnWTmd0ueA6+bsLlCcT6d0RZpg1URsrwxI5qwHMCEPM9GNe8AN67sJqedz21YzY+xojf+rE//Gv3sS6xhM1kjhAAAAAElFTkSuQmCC"},65230:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACGUlEQVQ4y52TTUhUcRTFf//3n/FjZsxmQsOvmtJF5VQ6i3IsaaJcVIs24UKIIKRNuGrboihaRWQptbVtmLvCWgyZWJRlNimUaKajMH1gWprzfO/dFiYozgR54WzuPedwOZcL/6jDtXjq68hlPRXejRqM0TPwhK51Gdy6QoNM5oqTyHFaLnP8v8TRCFmJPobly0GRZI2MvSBeX4dOxzXSNZsaaS4pLqrA8IMuYOuWwtDpUzSl46pohOxohGhVJdVlxVQHNlJdVuorN7L3GSjvEkt+4iy8sscTc8PTM7ydmKJ/YIg3sV6eqjvXOH+uUbWii8EVBJUPKu22IBbILFgjYCdpa5czem6eeHiXOlAQcG8TXY7gQkRlgEbEjZhj9MdTD1vbuajHEljjkzwI7zSP+H2zJaiiJbLDWtgOznwfQx9+dF+66Zzs6ialAYbHMJNf6QzvSJ3I81iFqELEUWtg/37PyGjy9dU251jnY36tukJHl3yP9cpd23SwLZUepkPPS27ffyQzyzrXyow2bTBKbcuLs6iWU1s+1t8Mvfh9RtlKzSqDgE8HHdsDpiDmFJL6BBio7CAqqwixPPi9OpjRINdlBBdnP4OM8G16Yep53GpR4K7dO9gcyB/djDLIcRmZDcQy8sYn5j8+G1i83hEz7/W+s1MANSF9o+GoffZQlfuCWIYv4w9EQq78PRXayDQPbdd6f6XesLL3By3z9hHiEQ65AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEwLTAyLTExVDAxOjIwOjIxLTA2OjAwtZnToAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAwNi0xMC0wMVQwMDo1NjoyNi0wNTowMJWSAJ0AAAAASUVORK5CYII="},98388:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACJUlEQVQ4jaWTO2hVQRCGv5k959yb+zg3MUQNEt+QwlejkCIRAhEhBGxSWAkWksLGgKWNjTYqEhDS24qgQoJWNhGxMWBjIxYKQTQPE9HknrM7FucmxiiiON0u/3z8/8wu/GfJ5sPA+VQP9pVPlyu6/cu8f3L30se5vwacGu+o9hwpPYoTBuNEiBP5bLkN3x6de/YngAIMjLXXOvfFU1nTBrMmZJmRZ9bQWKbH73f3r4vP3exMJl7vHrs2s+vA+l0E0LEnnsianAQrbImgYqiSxiWZvvywe3jhXf6it690L3gbad/pXgFHNwDNNRsxAzMBDFFQFdSBi6glZZnqOZzMGtLvYsECe3+K0FzjbdY08szIM/AZ5Dn43AjBKJWlJkJ/z35HvaEEozZ6pcNtAL4u+bGsyUKeFU3eG8EbwcO2LkfvsZhDxxMqNUUdmCFtdU03AM8nF2dXl/2QDzbvAwQPIUAwqDaErAmihWXnAINyTX4AAGbuLL5cWwlDwKdiHoXYabEVn7cyu2LU5bo2fgIAPL21MEuwIVHWAJKStGYB3lsLKgjQVvsNACBK9IIIJRGI4laUYFhoOVBAoJJq+gvgzPWuq6JcFCmEqlI0tiIVbwRUoNIoHESbAS4SFyeF9aQkrH4zPrz3LC8IlXqgmipRDC4CdazAls8EcOJsfUdbXTsqqaa1dm1U2zVNO7WRdro07dK0rapp5HjzeHJ58sGNJdva/8/1HRdPyP0VYmT/AAAAAElFTkSuQmCC"},82777:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACnklEQVQ4jY2SX0hTYRjG39VEQl2RN2UXZQRFd0EIEUH/BhVBZCSEeFMpQSgVjc3/VhSCXUSBWSG5bipDU1IoCVEa6JTUzvGsZrP5Z9NtHre5qZubO0/fNylqDOqFh8P5OO/vfb73PES8UjYQnagh0g2TSi9kkF7Qkl7MZc9slV4kKuogyj5IyYs35xtJZRA16wxiQ3qlFNY+s+NM0wR21loVdm5Wl4o5HE67jycBHL7Bp2rYh8PFbU74l6NYjSlxxRQFraIfmbcsoZQyUUvX+4nSMhMA7JA1N/DmSHQVzkAMdp+C6QUF7kUF4WgM/ROLSCkbdTOHGjpQmADQf8ngtueDYXyXoxhxrcLiiWFsPgabl8NicXDBqymoDEIRnXuYCBC0x56MI7gUQvePFZgmV2B2RDA0E8HIbDQud2AFxgEZbLHP6UJjIkDMPd04DtkfRItlCR3WZXTZOCyEHvua7PIyXn+e44DmJAAhe/u9r4rP70ezuADjSAAvhSDejDKgFESrJQiXN4DyTgcH1FB+UwJAN8RdmF/0OWF1yKg3e/Go34fHAz48HfRh0O6F7PVj7/0xsCWWsIFE+/P/AJx9wF3kbKqWQh+EGUzPuGEac6PX6oHN4YHLI6NdWkDdJy82VlsiDJL3N0STRXS1m2VB1KpLR915RhvqeybRZJqCrs2OPXVW3O6WUWvyoeKjjIykkM07iC63cycadp2i+Lb5wvid9WKJhjXdfO+BrmsOJZ1upFdJHHI+ns7fpVpPtOsI0VEd0ak7azrJdK2f7ygvvcoSudLuwiWmi29nkVohhdnArCTZTqht+1hazXFIWqUUKWhxovDdLLbe/cb+inDo34AESGq5FN7Cmw1iH3tX/x/gF6S4l+K2+WS9oOah+glT18LOvPJgZQAAAABJRU5ErkJggg=="},64836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},44517:(e,t,r)=>{"use strict";var n=r(17405),o=r(22773),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},67651:(e,t,r)=>{"use strict";var n=r(74333),o=r(22773),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},59747:(e,t,r)=>{"use strict";var n=r(26633),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},30689:(e,t,r)=>{"use strict";var n=r(96418),o=r(25094),i=r(20341).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},70280:(e,t,r)=>{"use strict";var n=r(76598).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},21141:(e,t,r)=>{"use strict";var n=r(94125),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},2955:(e,t,r)=>{"use strict";var n=r(87181),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},74585:(e,t,r)=>{"use strict";var n=r(32479);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},86348:(e,t,r)=>{"use strict";var n=r(80364).forEach,o=r(61116)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},59140:(e,t,r)=>{"use strict";var n=r(86658),o=r(19710),i=r(12154),a=function(e){return function(t,r,a){var s=n(t),l=i(s);if(0===l)return!e&&-1;var u,c=o(a,l);if(e&&r!=r){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},80364:(e,t,r)=>{"use strict";var n=r(69299),o=r(3271),i=r(60586),a=r(69271),s=r(12154),l=r(63918),u=o([].push),c=function(e){var t=1===e,r=2===e,o=3===e,c=4===e,d=6===e,f=7===e,p=5===e||d;return function(h,m,g,y){for(var v,b,w=a(h),x=i(w),S=s(x),_=n(m,g),k=0,E=y||l,C=t?E(h,S):r||f?E(h,0):void 0;S>k;k++)if((p||k in x)&&(b=_(v=x[k],k,w),e))if(t)C[k]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:u(C,v)}else switch(e){case 4:return!1;case 7:u(C,v)}return d?-1:o||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},74502:(e,t,r)=>{"use strict";var n=r(32479),o=r(96418),i=r(59459),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},61116:(e,t,r)=>{"use strict";var n=r(32479);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},98e3:(e,t,r)=>{"use strict";var n=r(24952),o=r(9739),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},50386:(e,t,r)=>{"use strict";var n=r(3271);e.exports=n([].slice)},26402:(e,t,r)=>{"use strict";var n=r(50386),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,s,l=1;l<r;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=o(r/2),c=i(n(e,0,u),t),d=i(n(e,u),t),f=c.length,p=d.length,h=0,m=0;h<f||m<p;)e[h+m]=h<f&&m<p?t(c[h],d[m])<=0?c[h++]:d[m++]:h<f?c[h++]:d[m++];return e};e.exports=i},83225:(e,t,r)=>{"use strict";var n=r(9739),o=r(74333),i=r(87181),a=r(96418)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},63918:(e,t,r)=>{"use strict";var n=r(83225);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},48377:(e,t,r)=>{"use strict";var n=r(96418)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},27579:(e,t,r)=>{"use strict";var n=r(3271),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},24230:(e,t,r)=>{"use strict";var n=r(42066),o=r(17405),i=r(27579),a=r(96418)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},36776:(e,t,r)=>{"use strict";var n=r(25094),o=r(49839),i=r(85640),a=r(69299),s=r(21141),l=r(41838),u=r(4302),c=r(18434),d=r(71620),f=r(70928),p=r(24952),h=r(58157).fastKey,m=r(69933),g=m.set,y=m.getterFor;e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,o){s(e,f),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(o)||u(o,e[c],{that:e,AS_ENTRIES:r})})),f=d.prototype,m=y(t),v=function(e,t,r){var n,o,i=m(e),a=b(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var r,n=m(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=m(this),r=b(this,e);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first===r&&(t.first=n),t.last===r&&(t.last=o),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&o(f,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",o=y(t),i=y(n);c(e,t,(function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,d(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},57902:(e,t,r)=>{"use strict";var n=r(32162),o=r(32451),i=r(3271),a=r(25135),s=r(67089),l=r(58157),u=r(4302),c=r(21141),d=r(17405),f=r(41838),p=r(87181),h=r(32479),m=r(48377),g=r(38565),y=r(23885);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=v?"set":"add",x=o[e],S=x&&x.prototype,_=x,k={},E=function(e){var t=i(S[e]);s(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!d(x)||!(b||S.forEach&&!h((function(){(new x).entries().next()})))))_=r.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var C=new _,P=C[w](b?{}:-0,1)!==C,O=h((function(){C.has(1)})),T=m((function(e){new x(e)})),R=!b&&h((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((_=t((function(e,t){c(e,S);var r=y(new x,e,_);return f(t)||u(t,r[w],{that:r,AS_ENTRIES:v}),r}))).prototype=S,S.constructor=_),(O||R)&&(E("delete"),E("has"),v&&E("get")),(R||P)&&E(w),b&&S.clear&&delete S.clear}return k[e]=_,n({global:!0,constructor:!0,forced:_!==x},k),g(_,e),b||r.setStrong(_,e,v),_}},29726:(e,t,r)=>{"use strict";var n=r(74633),o=r(74730),i=r(67537),a=r(20341);e.exports=function(e,t,r){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},33752:(e,t,r)=>{"use strict";var n=r(96418)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},39159:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},71620:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},25298:(e,t,r)=>{"use strict";var n=r(24952),o=r(20341),i=r(31433);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},31433:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},25508:(e,t,r)=>{"use strict";var n=r(24952),o=r(20341),i=r(31433);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},8448:(e,t,r)=>{"use strict";var n=r(2955),o=r(90319),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},49839:(e,t,r)=>{"use strict";var n=r(51893),o=r(20341);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},67089:(e,t,r)=>{"use strict";var n=r(17405),o=r(20341),i=r(51893),a=r(48213);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},85640:(e,t,r)=>{"use strict";var n=r(67089);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},48213:(e,t,r)=>{"use strict";var n=r(32451),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},47008:(e,t,r)=>{"use strict";var n=r(22773),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},24952:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},82116:(e,t,r)=>{"use strict";var n=r(32451),o=r(87181),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},93409:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},16411:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},75427:(e,t,r)=>{"use strict";var n=r(82116)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},6256:(e,t,r)=>{"use strict";var n=r(70707).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},97384:(e,t,r)=>{"use strict";var n=r(73529),o=r(55089);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},73529:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},6956:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/MSIE|Trident/.test(n)},60700:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},3865:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},55089:(e,t,r)=>{"use strict";var n=r(32451),o=r(27579);e.exports="process"===o(n.process)},20874:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/web0s(?!.*chrome)/i.test(n)},70707:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},59459:(e,t,r)=>{"use strict";var n,o,i=r(32451),a=r(70707),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},18216:(e,t,r)=>{"use strict";var n=r(70707).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},51410:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},32162:(e,t,r)=>{"use strict";var n=r(32451),o=r(67537).f,i=r(25298),a=r(67089),s=r(48213),l=r(29726),u=r(25135);e.exports=function(e,t){var r,c,d,f,p,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(p=o(r,c))&&p.value:r[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(r,c,f,e)}}},32479:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},44896:(e,t,r)=>{"use strict";r(9081);var n=r(5234),o=r(67089),i=r(40387),a=r(32479),s=r(96418),l=r(25298),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!p||!h||r){var m=/./[f],g=t(f,""[e],(function(e,t,r,o,a){var s=t.exec;return s===i||s===c.exec?p&&!a?{done:!0,value:n(m,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(c,f,g[1])}d&&l(c[f],"sham",!0)}},3369:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},83483:(e,t,r)=>{"use strict";var n=r(59117),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},69299:(e,t,r)=>{"use strict";var n=r(21678),o=r(44517),i=r(59117),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},59117:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},5428:(e,t,r)=>{"use strict";var n=r(3271),o=r(44517),i=r(87181),a=r(74633),s=r(50386),l=r(59117),u=Function,c=n([].concat),d=n([].join),f={},p=function(e,t,r){if(!a(f,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";f[t]=u("C,a","return new C("+d(n,",")+")")}return f[t](e,r)};e.exports=l?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),a=function(){var r=c(n,s(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},5234:(e,t,r)=>{"use strict";var n=r(59117),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},74251:(e,t,r)=>{"use strict";var n=r(24952),o=r(74633),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},48891:(e,t,r)=>{"use strict";var n=r(3271),o=r(44517);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},21678:(e,t,r)=>{"use strict";var n=r(27579),o=r(3271);e.exports=function(e){if("Function"===n(e))return o(e)}},3271:(e,t,r)=>{"use strict";var n=r(59117),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},24289:(e,t,r)=>{"use strict";var n=r(32451),o=r(17405),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},44128:(e,t,r)=>{"use strict";var n=r(24230),o=r(37961),i=r(41838),a=r(78230),s=r(96418)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},599:(e,t,r)=>{"use strict";var n=r(5234),o=r(44517),i=r(2955),a=r(22773),s=r(44128),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},44291:(e,t,r)=>{"use strict";var n=r(3271),o=r(9739),i=r(17405),a=r(27579),s=r(73247),l=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?l(r,u):"number"!=typeof u&&"Number"!==a(u)&&"String"!==a(u)||l(r,s(u))}var c=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var n=0;n<c;n++)if(r[n]===e)return t}}}},37961:(e,t,r)=>{"use strict";var n=r(44517),o=r(41838);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},93315:(e,t,r)=>{"use strict";var n=r(3271),o=r(69271),i=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,f){var p=r+e.length,h=n.length,m=c;return void 0!==d&&(d=o(d),m=u),s(f,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>h){var f=i(c/10);return 0===f?o:f<=h?void 0===n[f-1]?a(s,1):n[f-1]+a(s,1):o}u=n[c-1]}return void 0===u?"":u}))}},32451:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},74633:(e,t,r)=>{"use strict";var n=r(3271),o=r(69271),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},99295:e=>{"use strict";e.exports={}},14735:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},29227:(e,t,r)=>{"use strict";var n=r(24289);e.exports=n("document","documentElement")},8338:(e,t,r)=>{"use strict";var n=r(24952),o=r(32479),i=r(82116);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},60586:(e,t,r)=>{"use strict";var n=r(3271),o=r(32479),i=r(27579),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},23885:(e,t,r)=>{"use strict";var n=r(17405),o=r(87181),i=r(70210);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6273:(e,t,r)=>{"use strict";var n=r(3271),o=r(17405),i=r(19321),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},58157:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(99295),a=r(87181),s=r(74633),l=r(20341).f,u=r(6076),c=r(93982),d=r(39483),f=r(66871),p=r(3369),h=!1,m=f("meta"),g=0,y=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=u.f,t=o([].splice),r={};r[m]=1,e(r).length&&(u.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===m){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&d(e)&&!s(e,m)&&y(e),e}};i[m]=!0},69933:(e,t,r)=>{"use strict";var n,o,i,a=r(75237),s=r(32451),l=r(87181),u=r(25298),c=r(74633),d=r(19321),f=r(69683),p=r(99295),h=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(c(e,y))throw new h("Object already initialized");return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},45812:(e,t,r)=>{"use strict";var n=r(96418),o=r(78230),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},9739:(e,t,r)=>{"use strict";var n=r(27579);e.exports=Array.isArray||function(e){return"Array"===n(e)}},17405:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},74333:(e,t,r)=>{"use strict";var n=r(3271),o=r(32479),i=r(17405),a=r(24230),s=r(24289),l=r(6273),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),p=!d.test(u),h=function(e){if(!i(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},25135:(e,t,r)=>{"use strict";var n=r(32479),o=r(17405),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},41838:e=>{"use strict";e.exports=function(e){return null==e}},87181:(e,t,r)=>{"use strict";var n=r(17405);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},26633:(e,t,r)=>{"use strict";var n=r(87181);e.exports=function(e){return n(e)||null===e}},87138:e=>{"use strict";e.exports=!1},53340:(e,t,r)=>{"use strict";var n=r(87181),o=r(27579),i=r(96418)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},76796:(e,t,r)=>{"use strict";var n=r(24289),o=r(17405),i=r(94125),a=r(68429),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},4302:(e,t,r)=>{"use strict";var n=r(69299),o=r(5234),i=r(2955),a=r(22773),s=r(45812),l=r(12154),u=r(94125),c=r(599),d=r(44128),f=r(71635),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,y,v,b,w,x,S,_=r&&r.that,k=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),O=n(t,_),T=function(e){return g&&f(g,"normal",e),new h(!0,e)},R=function(e){return k?(i(e),P?O(e[0],e[1],T):O(e[0],e[1])):P?O(e,T):O(e)};if(E)g=e.iterator;else if(C)g=e;else{if(!(y=d(e)))throw new p(a(e)+" is not iterable");if(s(y)){for(v=0,b=l(e);b>v;v++)if((w=R(e[v]))&&u(m,w))return w;return new h(!1)}g=c(e,y)}for(x=E?e.next:g.next;!(S=o(x,g)).done;){try{w=R(S.value)}catch(e){f(g,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},71635:(e,t,r)=>{"use strict";var n=r(5234),o=r(2955),i=r(37961);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},13653:(e,t,r)=>{"use strict";var n=r(78607).IteratorPrototype,o=r(25094),i=r(31433),a=r(38565),s=r(78230),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,c,!1,!0),s[c]=l,e}},18434:(e,t,r)=>{"use strict";var n=r(32162),o=r(5234),i=r(87138),a=r(74251),s=r(17405),l=r(13653),u=r(96666),c=r(70210),d=r(38565),f=r(25298),p=r(67089),h=r(96418),m=r(78230),g=r(78607),y=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),S=function(){return this};e.exports=function(e,t,r,a,h,g,_){l(r,t,a);var k,E,C,P=function(e){if(e===h&&M)return M;if(!w&&e&&e in R)return R[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",T=!1,R=e.prototype,A=R[x]||R["@@iterator"]||h&&R[h],M=!w&&A||P(h),j="Array"===t&&R.entries||A;if(j&&(k=u(j.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===b||(c?c(k,b):s(k[x])||p(k,x,S)),d(k,O,!0,!0),i&&(m[O]=S)),y&&"values"===h&&A&&"values"!==A.name&&(!i&&v?f(R,"name","values"):(T=!0,M=function(){return o(A,this)})),h)if(E={values:P("values"),keys:g?M:P("keys"),entries:P("entries")},_)for(C in E)(w||T||!(C in R))&&p(R,C,E[C]);else n({target:t,proto:!0,forced:w||T},E);return i&&!_||R[x]===M||p(R,x,M,{name:h}),m[t]=M,E}},78607:(e,t,r)=>{"use strict";var n,o,i,a=r(32479),s=r(17405),l=r(87181),u=r(25094),c=r(96666),d=r(67089),f=r(96418),p=r(87138),h=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(n=o):m=!0),!l(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[h])||d(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},78230:e=>{"use strict";e.exports={}},12154:(e,t,r)=>{"use strict";var n=r(9641);e.exports=function(e){return n(e.length)}},51893:(e,t,r)=>{"use strict";var n=r(3271),o=r(32479),i=r(17405),a=r(74633),s=r(24952),l=r(74251).CONFIGURABLE,u=r(6273),c=r(69933),d=c.enforce,f=c.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||u(this)}),"toString")},21797:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},8783:(e,t,r)=>{"use strict";var n,o,i,a,s,l=r(32451),u=r(3318),c=r(69299),d=r(98743).set,f=r(16986),p=r(3865),h=r(60700),m=r(20874),g=r(55089),y=l.MutationObserver||l.WebKitMutationObserver,v=l.document,b=l.process,w=l.Promise,x=u("queueMicrotask");if(!x){var S=new f,_=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&n(),e}e&&e.enter()};p||g||m||!y||!v?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),n=function(){s(_)}):g?n=function(){b.nextTick(_)}:(d=c(d,l),n=function(){d(_)}):(o=!0,i=v.createTextNode(""),new y(_).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(e){S.head||n(),S.add(e)}}e.exports=x},21128:(e,t,r)=>{"use strict";var n=r(44517),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},31730:(e,t,r)=>{"use strict";var n=r(53340),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},25094:(e,t,r)=>{"use strict";var n,o=r(2955),i=r(79203),a=r(51410),s=r(99295),l=r(29227),u=r(82116),c=r(69683),d=c("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&n?h(n):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(n);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[d]=e):r=m(),void 0===t?r:i.f(r,t)}},79203:(e,t,r)=>{"use strict";var n=r(24952),o=r(22916),i=r(20341),a=r(2955),s=r(86658),l=r(32005);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,r=o[c++],n[r]);return e}},20341:(e,t,r)=>{"use strict";var n=r(24952),o=r(8338),i=r(22916),a=r(2955),s=r(50514),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=c(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},67537:(e,t,r)=>{"use strict";var n=r(24952),o=r(5234),i=r(67109),a=r(31433),s=r(86658),l=r(50514),u=r(74633),c=r(8338),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},93982:(e,t,r)=>{"use strict";var n=r(27579),o=r(86658),i=r(6076).f,a=r(50386),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},6076:(e,t,r)=>{"use strict";var n=r(67530),o=r(51410).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},93188:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},96666:(e,t,r)=>{"use strict";var n=r(74633),o=r(17405),i=r(69271),a=r(69683),s=r(39159),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},39483:(e,t,r)=>{"use strict";var n=r(32479),o=r(87181),i=r(27579),a=r(74585),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},94125:(e,t,r)=>{"use strict";var n=r(3271);e.exports=n({}.isPrototypeOf)},67530:(e,t,r)=>{"use strict";var n=r(3271),o=r(74633),i=r(86658),a=r(59140).indexOf,s=r(99295),l=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,c=[];for(r in n)!o(s,r)&&o(n,r)&&l(c,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},32005:(e,t,r)=>{"use strict";var n=r(67530),o=r(51410);e.exports=Object.keys||function(e){return n(e,o)}},67109:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},70210:(e,t,r)=>{"use strict";var n=r(48891),o=r(87181),i=r(24915),a=r(59747);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),a(n),o(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},71447:(e,t,r)=>{"use strict";var n=r(24952),o=r(32479),i=r(3271),a=r(96666),s=r(32005),l=r(86658),u=i(r(67109).f),c=i([].push),d=n&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),f=function(e){return function(t){for(var r,o=l(t),i=s(o),f=d&&null===a(o),p=i.length,h=0,m=[];p>h;)r=i[h++],n&&!(f?r in o:u(o,r))||c(m,e?[r,o[r]]:o[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},69267:(e,t,r)=>{"use strict";var n=r(42066),o=r(24230);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},90319:(e,t,r)=>{"use strict";var n=r(5234),o=r(17405),i=r(87181),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},74730:(e,t,r)=>{"use strict";var n=r(24289),o=r(3271),i=r(6076),a=r(93188),s=r(2955),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},70992:(e,t,r)=>{"use strict";var n=r(32451);e.exports=n},62686:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},39508:(e,t,r)=>{"use strict";var n=r(32451),o=r(9967),i=r(17405),a=r(25135),s=r(6273),l=r(96418),u=r(97384),c=r(73529),d=r(87138),f=r(59459),p=o&&o.prototype,h=l("species"),m=!1,g=i(n.PromiseRejectionEvent),y=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(d&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(u||c)&&!g}));e.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:m}},9967:(e,t,r)=>{"use strict";var n=r(32451);e.exports=n.Promise},16181:(e,t,r)=>{"use strict";var n=r(2955),o=r(87181),i=r(21128);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},62221:(e,t,r)=>{"use strict";var n=r(9967),o=r(48377),i=r(39508).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},16986:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},74355:(e,t,r)=>{"use strict";var n=r(5234),o=r(2955),i=r(17405),a=r(27579),s=r(40387),l=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},40387:(e,t,r)=>{"use strict";var n,o,i=r(5234),a=r(3271),s=r(73247),l=r(32754),u=r(62616),c=r(4999),d=r(25094),f=r(69933).get,p=r(19980),h=r(49932),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,v=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),S=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),_=u.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||_||p||h)&&(y=function(e){var t,r,n,o,a,u,c,p=this,h=f(p),E=s(e),C=h.raw;if(C)return C.lastIndex=p.lastIndex,t=i(y,C,E),p.lastIndex=C.lastIndex,t;var P=h.groups,O=_&&p.sticky,T=i(l,p),R=p.source,A=0,M=E;if(O&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),M=x(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==v(E,p.lastIndex-1))&&(R="(?: "+R+")",M=" "+M,A++),r=new RegExp("^(?:"+R+")",T)),k&&(r=new RegExp("^"+R+"$(?!\\s)",T)),S&&(n=p.lastIndex),o=i(g,O?r:p,M),O?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:S&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),k&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&P)for(o.groups=u=d(null),a=0;a<P.length;a++)u[(c=P[a])[0]]=o[c[1]];return o}),e.exports=y},32754:(e,t,r)=>{"use strict";var n=r(2955);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},98017:(e,t,r)=>{"use strict";var n=r(5234),o=r(74633),i=r(94125),a=r(32754),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},62616:(e,t,r)=>{"use strict";var n=r(32479),o=r(32451).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},19980:(e,t,r)=>{"use strict";var n=r(32479),o=r(32451).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},49932:(e,t,r)=>{"use strict";var n=r(32479),o=r(32451).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},24915:(e,t,r)=>{"use strict";var n=r(41838),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},3318:(e,t,r)=>{"use strict";var n=r(32451),o=r(24952),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},70928:(e,t,r)=>{"use strict";var n=r(24289),o=r(49839),i=r(96418),a=r(24952),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},38565:(e,t,r)=>{"use strict";var n=r(20341).f,o=r(74633),i=r(96418)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},69683:(e,t,r)=>{"use strict";var n=r(4999),o=r(66871),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},19321:(e,t,r)=>{"use strict";var n=r(87138),o=r(32451),i=r(48213),a=e.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4999:(e,t,r)=>{"use strict";var n=r(19321);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},58343:(e,t,r)=>{"use strict";var n=r(2955),o=r(67651),i=r(41838),a=r(96418)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},76598:(e,t,r)=>{"use strict";var n=r(3271),o=r(65815),i=r(73247),a=r(24915),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=i(a(t)),f=o(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=l(d,f))<55296||n>56319||f+1===p||(c=l(d,f+1))<56320||c>57343?e?s(d,f):n:e?u(d,f,f+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},82834:(e,t,r)=>{"use strict";var n=r(3271),o=r(24915),i=r(73247),a=r(28628),s=n("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},41414:(e,t,r)=>{"use strict";var n=r(59459),o=r(32479),i=r(32451).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},77416:(e,t,r)=>{"use strict";var n=r(5234),o=r(24289),i=r(96418),a=r(67089);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},81836:(e,t,r)=>{"use strict";var n=r(41414);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},98743:(e,t,r)=>{"use strict";var n,o,i,a,s=r(32451),l=r(83483),u=r(69299),c=r(17405),d=r(74633),f=r(32479),p=r(29227),h=r(50386),m=r(82116),g=r(42289),y=r(3865),v=r(55089),b=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,_=s.Function,k=s.MessageChannel,E=s.String,C=0,P={};f((function(){n=s.location}));var O=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},T=function(e){return function(){O(e)}},R=function(e){O(e.data)},A=function(e){s.postMessage(E(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){g(arguments.length,1);var t=c(e)?e:_(e),r=h(arguments,1);return P[++C]=function(){l(t,void 0,r)},o(C),C},w=function(e){delete P[e]},v?o=function(e){x.nextTick(T(e))}:S&&S.now?o=function(e){S.now(T(e))}:k&&!y?(a=(i=new k).port2,i.port1.onmessage=R,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(A)?(o=A,s.addEventListener("message",R,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},37130:(e,t,r)=>{"use strict";var n=r(3271);e.exports=n(1..valueOf)},19710:(e,t,r)=>{"use strict";var n=r(65815),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},86658:(e,t,r)=>{"use strict";var n=r(60586),o=r(24915);e.exports=function(e){return n(o(e))}},65815:(e,t,r)=>{"use strict";var n=r(21797);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9641:(e,t,r)=>{"use strict";var n=r(65815),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},69271:(e,t,r)=>{"use strict";var n=r(24915),o=Object;e.exports=function(e){return o(n(e))}},96492:(e,t,r)=>{"use strict";var n=r(5234),o=r(87181),i=r(76796),a=r(37961),s=r(90319),l=r(96418),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},50514:(e,t,r)=>{"use strict";var n=r(96492),o=r(76796);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},42066:(e,t,r)=>{"use strict";var n={};n[r(96418)("toStringTag")]="z",e.exports="[object z]"===String(n)},73247:(e,t,r)=>{"use strict";var n=r(24230),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},22773:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},66871:(e,t,r)=>{"use strict";var n=r(3271),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},68429:(e,t,r)=>{"use strict";var n=r(41414);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},22916:(e,t,r)=>{"use strict";var n=r(24952),o=r(32479);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},42289:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},75237:(e,t,r)=>{"use strict";var n=r(32451),o=r(17405),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},82318:(e,t,r)=>{"use strict";var n=r(70992),o=r(74633),i=r(66717),a=r(20341).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},66717:(e,t,r)=>{"use strict";var n=r(96418);t.f=n},96418:(e,t,r)=>{"use strict";var n=r(32451),o=r(4999),i=r(74633),a=r(66871),s=r(41414),l=r(68429),u=n.Symbol,c=o("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},28628:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},48888:(e,t,r)=>{"use strict";var n=r(32162),o=r(32479),i=r(9739),a=r(87181),s=r(69271),l=r(12154),u=r(93409),c=r(25508),d=r(63918),f=r(74502),p=r(96418),h=r(59459),m=p("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),f=d(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(y(i=-1===t?a:arguments[t]))for(o=l(i),u(p+o),r=0;r<o;r++,p++)r in i&&c(f,p,i[r]);else u(p+1),c(f,p++,i);return f.length=p,f}})},2458:(e,t,r)=>{"use strict";var n=r(32162),o=r(80364).filter;n({target:"Array",proto:!0,forced:!r(74502)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},3925:(e,t,r)=>{"use strict";var n=r(32162),o=r(80364).find,i=r(30689),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},17554:(e,t,r)=>{"use strict";var n=r(32162),o=r(59140).includes,i=r(32479),a=r(30689);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54458:(e,t,r)=>{"use strict";var n=r(86658),o=r(30689),i=r(78230),a=r(69933),s=r(20341).f,l=r(18434),u=r(71620),c=r(87138),d=r(24952),f=a.set,p=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},65273:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(60586),a=r(86658),s=r(61116),l=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},72870:(e,t,r)=>{"use strict";var n=r(32162),o=r(80364).map;n({target:"Array",proto:!0,forced:!r(74502)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},45872:(e,t,r)=>{"use strict";var n=r(32162),o=r(9739),i=r(74333),a=r(87181),s=r(19710),l=r(12154),u=r(86658),c=r(25508),d=r(96418),f=r(74502),p=r(50386),h=f("slice"),m=d("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,d,f=u(this),h=l(f),v=s(e,h),b=s(void 0===t?h:t,h);if(o(f)&&(r=f.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return p(f,v,b);for(n=new(void 0===r?g:r)(y(b-v,0)),d=0;v<b;v++,d++)v in f&&c(n,d,f[v]);return n.length=d,n}})},91756:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(44517),a=r(69271),s=r(12154),l=r(47008),u=r(73247),c=r(32479),d=r(26402),f=r(61116),p=r(6256),h=r(6956),m=r(59459),g=r(18216),y=[],v=o(y.sort),b=o(y.push),w=c((function(){y.sort(void 0)})),x=c((function(){y.sort(null)})),S=f("sort"),_=!c((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)y.push({k:t+n,v:r})}for(y.sort((function(e,t){return t.v-e.v})),n=0;n<y.length;n++)t=y[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!x||!S||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var r,n,o=[],c=s(t);for(n=0;n<c;n++)n in t&&b(o,t[n]);for(d(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:u(t)>u(r)?1:-1}}(e)),r=s(o),n=0;n<r;)t[n]=o[n++];for(;n<c;)l(t,n++);return t}})},15796:(e,t,r)=>{"use strict";var n=r(32162),o=r(69271),i=r(19710),a=r(65815),s=r(12154),l=r(98e3),u=r(93409),c=r(63918),d=r(25508),f=r(47008),p=r(74502)("splice"),h=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,g,y,v,b=o(this),w=s(b),x=i(e,w),S=arguments.length;for(0===S?r=n=0:1===S?(r=0,n=w-x):(r=S-2,n=m(h(a(t),0),w-x)),u(w+r-n),p=c(b,n),g=0;g<n;g++)(y=x+g)in b&&d(p,g,b[y]);if(p.length=n,r<n){for(g=x;g<w-n;g++)v=g+r,(y=g+n)in b?b[v]=b[y]:f(b,v);for(g=w;g>w-n+r;g--)f(b,g-1)}else if(r>n)for(g=w-n;g>x;g--)v=g+r-1,(y=g+n-1)in b?b[v]=b[y]:f(b,v);for(g=0;g<r;g++)b[g+x]=arguments[g+2];return l(b,w-n+r),p}})},4099:(e,t,r)=>{"use strict";var n=r(74633),o=r(67089),i=r(8448),a=r(96418)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},40454:(e,t,r)=>{"use strict";var n=r(24952),o=r(74251).EXISTS,i=r(3271),a=r(49839),s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},63322:(e,t,r)=>{"use strict";var n=r(32162),o=r(32451);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},17767:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(83483),a=r(5234),s=r(3271),l=r(32479),u=r(17405),c=r(76796),d=r(50386),f=r(44291),p=r(41414),h=String,m=o("JSON","stringify"),g=s(/./.exec),y=s("".charAt),v=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,k=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),C=function(e,t){var r=d(arguments),n=f(t);if(u(n)||void 0!==e&&!c(e))return r[1]=function(e,t){if(u(n)&&(t=a(n,this,h(e),t)),!c(t))return t},i(m,null,r)},P=function(e,t,r){var n=y(r,t-1),o=y(r,t+1);return g(S,e)&&!g(_,o)||g(_,e)&&!g(S,n)?"\\u"+w(v(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(e,t,r){var n=d(arguments),o=i(k?C:m,null,n);return E&&"string"==typeof o?b(o,x,P):o}})},17299:(e,t,r)=>{"use strict";var n=r(32451);r(38565)(n.JSON,"JSON",!0)},69590:(e,t,r)=>{"use strict";r(57902)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(36776))},7517:(e,t,r)=>{"use strict";r(69590)},12766:(e,t,r)=>{"use strict";r(38565)(Math,"Math",!0)},75397:(e,t,r)=>{"use strict";var n=r(32162),o=r(87138),i=r(24952),a=r(32451),s=r(70992),l=r(3271),u=r(25135),c=r(74633),d=r(23885),f=r(94125),p=r(76796),h=r(96492),m=r(32479),g=r(6076).f,y=r(67537).f,v=r(20341).f,b=r(37130),w=r(82834).trim,x=a.Number,S=s.Number,_=x.prototype,k=a.TypeError,E=l("".slice),C=l("".charCodeAt),P=function(e){var t=h(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,r,n,o,i,a,s,l,u=h(e,"number");if(p(u))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=C(u,0))||45===t){if(88===(r=C(u,2))||120===r)return NaN}else if(48===t){switch(C(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=E(u,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>o)return NaN;return parseInt(i,n)}return+u},T=u("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),R=function(e){return f(_,e)&&m((function(){b(e)}))},A=function(e){var t=arguments.length<1?0:x(P(e));return R(this)?d(Object(t),this,A):t};A.prototype=_,T&&!o&&(_.constructor=A),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var M=function(e,t){for(var r,n=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)c(t,r=n[o])&&!c(e,r)&&v(e,r,y(t,r))};o&&S&&M(s.Number,S),(T||o)&&M(s.Number,x)},93900:(e,t,r)=>{"use strict";var n=r(32162),o=r(41414),i=r(32479),a=r(93188),s=r(69271);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},20539:(e,t,r)=>{"use strict";var n=r(32162),o=r(32479),i=r(69271),a=r(96666),s=r(39159);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},10373:(e,t,r)=>{"use strict";var n=r(32162),o=r(69271),i=r(32005);n({target:"Object",stat:!0,forced:r(32479)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},45195:(e,t,r)=>{"use strict";var n=r(42066),o=r(67089),i=r(69267);n||o(Object.prototype,"toString",i,{unsafe:!0})},13090:(e,t,r)=>{"use strict";var n=r(32162),o=r(71447).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},65716:(e,t,r)=>{"use strict";var n=r(32162),o=r(5234),i=r(44517),a=r(21128),s=r(62686),l=r(4302);n({target:"Promise",stat:!0,forced:r(62221)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=i(t.resolve),a=[],s=0,c=1;l(e,(function(e){var i=s++,l=!1;c++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--c||n(a))}),u)})),--c||n(a)}));return c.error&&u(c.value),r.promise}})},79901:(e,t,r)=>{"use strict";var n=r(32162),o=r(87138),i=r(39508).CONSTRUCTOR,a=r(9967),s=r(24289),l=r(17405),u=r(67089),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var d=s("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},54083:(e,t,r)=>{"use strict";var n,o,i,a=r(32162),s=r(87138),l=r(55089),u=r(32451),c=r(5234),d=r(67089),f=r(70210),p=r(38565),h=r(70928),m=r(44517),g=r(17405),y=r(87181),v=r(21141),b=r(58343),w=r(98743).set,x=r(8783),S=r(14735),_=r(62686),k=r(16986),E=r(69933),C=r(9967),P=r(39508),O=r(21128),T=P.CONSTRUCTOR,R=P.REJECTION_EVENT,A=P.SUBCLASSING,M=E.getterFor("Promise"),j=E.set,I=C&&C.prototype,D=C,N=I,L=u.TypeError,Z=u.document,F=u.process,B=O.f,V=B,z=!!(Z&&Z.createEvent&&u.dispatchEvent),W=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},U=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&q(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?u(new L("Promise-chain cycle")):(n=W(r))?c(n,r,l,u):l(r)):u(i)}catch(e){d&&!o&&d.exit(),u(e)}},$=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)U(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},H=function(e,t,r){var n,o;z?((n=Z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!R&&(o=u["on"+e])?o(n):"unhandledrejection"===e&&S("Unhandled promise rejection",r)},Y=function(e){c(w,u,(function(){var t,r=e.facade,n=e.value;if(G(e)&&(t=_((function(){l?F.emit("unhandledRejection",n,r):H("unhandledrejection",r,n)})),e.rejection=l||G(e)?2:1,t.error))throw t.value}))},G=function(e){return 1!==e.rejection&&!e.parent},q=function(e){c(w,u,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):H("rejectionhandled",t,e.value)}))},K=function(e,t,r){return function(n){e(t,n,r)}},X=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$(e,!0))},Q=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=W(t);n?x((function(){var r={done:!1};try{c(n,t,K(Q,r,e),K(X,r,e))}catch(t){X(r,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){X({done:!1},t,e)}}};if(T&&(N=(D=function(e){v(this,N),m(e),c(n,this);var t=M(this);try{e(K(Q,t),K(X,t))}catch(e){X(t,e)}}).prototype,(n=function(e){j(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(N,"then",(function(e,t){var r=M(this),n=B(b(this,D));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?F.domain:void 0,0===r.state?r.reactions.add(n):x((function(){U(n,r)})),n.promise})),o=function(){var e=new n,t=M(e);this.promise=e,this.resolve=K(Q,t),this.reject=K(X,t)},O.f=B=function(e){return e===D||void 0===e?new o(e):V(e)},!s&&g(C)&&I!==Object.prototype)){i=I.then,A||d(I,"then",(function(e,t){var r=this;return new D((function(e,t){c(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}f&&f(I,N)}a({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:D}),p(D,"Promise",!1,!0),h("Promise")},30695:(e,t,r)=>{"use strict";r(54083),r(65716),r(79901),r(72075),r(49489),r(25548)},72075:(e,t,r)=>{"use strict";var n=r(32162),o=r(5234),i=r(44517),a=r(21128),s=r(62686),l=r(4302);n({target:"Promise",stat:!0,forced:r(62221)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},49489:(e,t,r)=>{"use strict";var n=r(32162),o=r(21128);n({target:"Promise",stat:!0,forced:r(39508).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},25548:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(87138),a=r(9967),s=r(39508).CONSTRUCTOR,l=r(16181),u=o("Promise"),c=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},80528:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(83483),a=r(5428),s=r(67651),l=r(2955),u=r(87181),c=r(25094),d=r(32479),f=o("Reflect","construct"),p=Object.prototype,h=[].push,m=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!d((function(){f((function(){}))})),y=m||g;n({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!m)return f(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,d=c(u(o)?o:p),y=i(e,d,t);return u(y)?y:d}})},9081:(e,t,r)=>{"use strict";var n=r(32162),o=r(40387);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},7741:(e,t,r)=>{"use strict";var n=r(74251).PROPER,o=r(67089),i=r(2955),a=r(73247),s=r(32479),l=r(98017),u=RegExp.prototype,c=u.toString,d=s((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),f=n&&"toString"!==c.name;(d||f)&&o(u,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},9807:(e,t,r)=>{"use strict";r(57902)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(36776))},42781:(e,t,r)=>{"use strict";r(9807)},39385:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(31730),a=r(24915),s=r(73247),l=r(33752),u=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},94825:(e,t,r)=>{"use strict";var n=r(76598).charAt,o=r(73247),i=r(69933),a=r(18434),s=r(71620),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},24601:(e,t,r)=>{"use strict";var n=r(83483),o=r(5234),i=r(3271),a=r(44896),s=r(32479),l=r(2955),u=r(17405),c=r(41838),d=r(65815),f=r(9641),p=r(73247),h=r(24915),m=r(70280),g=r(37961),y=r(93315),v=r(74355),b=r(96418)("replace"),w=Math.max,x=Math.min,S=i([].concat),_=i([].push),k=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),P=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=P?"$":"$0";return[function(e,r){var n=h(this),i=c(e)?void 0:g(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===k(o,i)&&-1===k(o,"$<")){var c=r(t,a,s,o);if(c.done)return c.value}var h=u(o);h||(o=p(o));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var C,P=[];null!==(C=v(a,s))&&(_(P,C),b);){""===p(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var O,T="",R=0,A=0;A<P.length;A++){for(var M,j=p((C=P[A])[0]),I=w(x(d(C.index),s.length),0),D=[],N=1;N<C.length;N++)_(D,void 0===(O=C[N])?O:String(O));var L=C.groups;if(h){var Z=S([j],D,I,s);void 0!==L&&_(Z,L),M=p(n(o,void 0,Z))}else M=y(j,s,I,D,L,o);I>=R&&(T+=E(s,R,I)+M,R=I+j.length)}return T+E(s,R)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||P)},73220:(e,t,r)=>{"use strict";var n,o=r(32162),i=r(21678),a=r(67537).f,s=r(9641),l=r(73247),u=r(31730),c=r(24915),d=r(33752),f=r(87138),p=i("".slice),h=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!!(f||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(e){var t=l(c(this));u(e);var r=s(h(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return p(t,r,r+n.length)===n}})},85110:(e,t,r)=>{"use strict";r(82318)("asyncIterator")},10359:(e,t,r)=>{"use strict";var n=r(32162),o=r(32451),i=r(5234),a=r(3271),s=r(87138),l=r(24952),u=r(41414),c=r(32479),d=r(74633),f=r(94125),p=r(2955),h=r(86658),m=r(50514),g=r(73247),y=r(31433),v=r(25094),b=r(32005),w=r(6076),x=r(93982),S=r(93188),_=r(67537),k=r(20341),E=r(79203),C=r(67109),P=r(67089),O=r(49839),T=r(4999),R=r(69683),A=r(99295),M=r(66871),j=r(96418),I=r(66717),D=r(82318),N=r(77416),L=r(38565),Z=r(69933),F=r(80364).forEach,B=R("hidden"),V=Z.set,z=Z.getterFor("Symbol"),W=Object.prototype,U=o.Symbol,$=U&&U.prototype,H=o.RangeError,Y=o.TypeError,G=o.QObject,q=_.f,K=k.f,X=x.f,Q=C.f,J=a([].push),ee=T("symbols"),te=T("op-symbols"),re=T("wks"),ne=!G||!G.prototype||!G.prototype.findChild,oe=function(e,t,r){var n=q(W,t);n&&delete W[t],K(e,t,r),n&&e!==W&&K(W,t,n)},ie=l&&c((function(){return 7!==v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?oe:K,ae=function(e,t){var r=ee[e]=v($);return V(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===W&&se(te,t,r),p(e);var n=m(t);return p(r),d(ee,n)?(r.enumerable?(d(e,B)&&e[B][n]&&(e[B][n]=!1),r=v(r,{enumerable:y(0,!1)})):(d(e,B)||K(e,B,y(1,v(null))),e[B][n]=!0),ie(e,n,r)):K(e,n,r)},le=function(e,t){p(e);var r=h(t),n=b(r).concat(fe(r));return F(n,(function(t){l&&!i(ue,r,t)||se(e,t,r[t])})),e},ue=function(e){var t=m(e),r=i(Q,this,t);return!(this===W&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,B)&&this[B][t])||r)},ce=function(e,t){var r=h(e),n=m(t);if(r!==W||!d(ee,n)||d(te,n)){var o=q(r,n);return!o||!d(ee,n)||d(r,B)&&r[B][n]||(o.enumerable=!0),o}},de=function(e){var t=X(h(e)),r=[];return F(t,(function(e){d(ee,e)||d(A,e)||J(r,e)})),r},fe=function(e){var t=e===W,r=X(t?te:h(e)),n=[];return F(r,(function(e){!d(ee,e)||t&&!d(W,e)||J(n,ee[e])})),n};u||(P($=(U=function(){if(f($,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=M(e),r=function(e){var n=void 0===this?o:this;n===W&&i(r,te,e),d(n,B)&&d(n[B],t)&&(n[B][t]=!1);var a=y(1,e);try{ie(n,t,a)}catch(e){if(!(e instanceof H))throw e;oe(n,t,a)}};return l&&ne&&ie(W,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return z(this).tag})),P(U,"withoutSetter",(function(e){return ae(M(e),e)})),C.f=ue,k.f=se,E.f=le,_.f=ce,w.f=x.f=de,S.f=fe,I.f=function(e){return ae(j(e),e)},l&&(O($,"description",{configurable:!0,get:function(){return z(this).description}}),s||P(W,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),F(b(re),(function(e){D(e)})),n({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de}),N(),L(U,"Symbol"),A[B]=!0},14223:(e,t,r)=>{"use strict";var n=r(32162),o=r(24952),i=r(32451),a=r(3271),s=r(74633),l=r(17405),u=r(94125),c=r(73247),d=r(49839),f=r(29726),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(g,p),g.prototype=h,h.constructor=g;var y="Symbol(description detection)"===String(p("description detection")),v=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),S=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=b(e),r=y?S(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},51071:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(74633),a=r(73247),s=r(4999),l=r(81836),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,c[r]=t,r}})},58965:(e,t,r)=>{"use strict";r(82318)("iterator")},49361:(e,t,r)=>{"use strict";r(10359),r(51071),r(57627),r(17767),r(93900)},57627:(e,t,r)=>{"use strict";var n=r(32162),o=r(74633),i=r(76796),a=r(22773),s=r(4999),l=r(81836),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},64120:(e,t,r)=>{"use strict";var n=r(82318),o=r(77416);n("toPrimitive"),o()},67483:(e,t,r)=>{"use strict";var n=r(24289),o=r(82318),i=r(38565);o("toStringTag"),i(n("Symbol"),"Symbol")},74289:(e,t,r)=>{"use strict";r(63322)},83500:(e,t,r)=>{"use strict";var n=r(32451),o=r(16411),i=r(75427),a=r(86348),s=r(25298),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(n[u]&&n[u].prototype);l(i)},56270:(e,t,r)=>{"use strict";var n=r(32451),o=r(16411),i=r(75427),a=r(54458),s=r(25298),l=r(38565),u=r(96418)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var f in o)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},10509:(e,t,r)=>{"use strict";var n=r(69985),o=r(23691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},52655:(e,t,r)=>{"use strict";var n=r(19429),o=r(23691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},23550:(e,t,r)=>{"use strict";var n=r(60598),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},87370:(e,t,r)=>{"use strict";var n=r(44201),o=r(25391),i=r(72560).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},71514:(e,t,r)=>{"use strict";var n=r(10730).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},767:(e,t,r)=>{"use strict";var n=r(23622),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},85027:(e,t,r)=>{"use strict";var n=r(48999),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},11655:(e,t,r)=>{"use strict";var n=r(3689);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},57612:(e,t,r)=>{"use strict";var n=r(2960).forEach,o=r(16834)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},21055:(e,t,r)=>{"use strict";var n=r(54071),o=r(22615),i=r(90690),a=r(71228),s=r(93292),l=r(19429),u=r(6310),c=r(76522),d=r(5185),f=r(91664),p=Array;e.exports=function(e){var t=i(e),r=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,h>2?arguments[2]:void 0));var y,v,b,w,x,S,_=f(t),k=0;if(!_||this===p&&s(_))for(y=u(t),v=r?new this(y):p(y);y>k;k++)S=g?m(t[k],k):t[k],c(v,k,S);else for(x=(w=d(t,_)).next,v=r?new this:[];!(b=o(x,w)).done;k++)S=g?a(w,m,[b.value,k],!0):b.value,c(v,k,S);return v.length=k,v}},84328:(e,t,r)=>{"use strict";var n=r(65290),o=r(27578),i=r(6310),a=function(e){return function(t,r,a){var s,l=n(t),u=i(l),c=o(a,u);if(e&&r!=r){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,r)=>{"use strict";var n=r(54071),o=r(68844),i=r(94413),a=r(90690),s=r(6310),l=r(27120),u=o([].push),c=function(e){var t=1===e,r=2===e,o=3===e,c=4===e,d=6===e,f=7===e,p=5===e||d;return function(h,m,g,y){for(var v,b,w=a(h),x=i(w),S=s(x),_=n(m,g),k=0,E=y||l,C=t?E(h,S):r||f?E(h,0):void 0;S>k;k++)if((p||k in x)&&(b=_(v=x[k],k,w),e))if(t)C[k]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:u(C,v)}else switch(e){case 4:return!1;case 7:u(C,v)}return d?-1:o||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},29042:(e,t,r)=>{"use strict";var n=r(3689),o=r(44201),i=r(3615),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},16834:(e,t,r)=>{"use strict";var n=r(3689);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},5649:(e,t,r)=>{"use strict";var n=r(67697),o=r(92297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},96004:(e,t,r)=>{"use strict";var n=r(68844);e.exports=n([].slice)},50382:(e,t,r)=>{"use strict";var n=r(96004),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,s,l=1;l<r;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=o(r/2),c=i(n(e,0,u),t),d=i(n(e,u),t),f=c.length,p=d.length,h=0,m=0;h<f||m<p;)e[h+m]=h<f&&m<p?t(c[h],d[m])<=0?c[h++]:d[m++]:h<f?c[h++]:d[m++];return e};e.exports=i},25271:(e,t,r)=>{"use strict";var n=r(92297),o=r(19429),i=r(48999),a=r(44201)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},27120:(e,t,r)=>{"use strict";var n=r(25271);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},71228:(e,t,r)=>{"use strict";var n=r(85027),o=r(72125);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},86431:(e,t,r)=>{"use strict";var n=r(44201)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},6648:(e,t,r)=>{"use strict";var n=r(68844),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},50926:(e,t,r)=>{"use strict";var n=r(23043),o=r(69985),i=r(6648),a=r(44201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},70800:(e,t,r)=>{"use strict";var n=r(25391),o=r(62148),i=r(6045),a=r(54071),s=r(767),l=r(981),u=r(18734),c=r(91934),d=r(27807),f=r(14241),p=r(67697),h=r(45375).fastKey,m=r(618),g=m.set,y=m.getterFor;e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,o){s(e,f),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(o)||u(o,e[c],{that:e,AS_ENTRIES:r})})),f=d.prototype,m=y(t),v=function(e,t,r){var n,o,i=m(e),a=b(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var r,n=m(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=m(this),r=b(this,e);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first===r&&(t.first=n),t.last===r&&(t.last=o),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&o(f,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",o=y(t),i=y(n);c(e,t,(function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,d(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},20319:(e,t,r)=>{"use strict";var n=r(79989),o=r(19037),i=r(68844),a=r(35266),s=r(11880),l=r(45375),u=r(18734),c=r(767),d=r(69985),f=r(981),p=r(48999),h=r(3689),m=r(86431),g=r(55997),y=r(33457);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=v?"set":"add",x=o[e],S=x&&x.prototype,_=x,k={},E=function(e){var t=i(S[e]);s(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!d(x)||!(b||S.forEach&&!h((function(){(new x).entries().next()})))))_=r.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var C=new _,P=C[w](b?{}:-0,1)!==C,O=h((function(){C.has(1)})),T=m((function(e){new x(e)})),R=!b&&h((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((_=t((function(e,t){c(e,S);var r=y(new x,e,_);return f(t)||u(t,r[w],{that:r,AS_ENTRIES:v}),r}))).prototype=S,S.constructor=_),(O||R)&&(E("delete"),E("has"),v&&E("get")),(R||P)&&E(w),b&&S.clear&&delete S.clear}return k[e]=_,n({global:!0,constructor:!0,forced:_!==x},k),g(_,e),b||r.setStrong(_,e,v),_}},8758:(e,t,r)=>{"use strict";var n=r(36812),o=r(19152),i=r(82474),a=r(72560);e.exports=function(e,t,r){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},27413:(e,t,r)=>{"use strict";var n=r(44201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},81748:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},27807:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},75773:(e,t,r)=>{"use strict";var n=r(67697),o=r(72560),i=r(75684);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},75684:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},76522:(e,t,r)=>{"use strict";var n=r(18360),o=r(72560),i=r(75684);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},81797:(e,t,r)=>{"use strict";var n=r(85027),o=r(35899),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},62148:(e,t,r)=>{"use strict";var n=r(98702),o=r(72560);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},11880:(e,t,r)=>{"use strict";var n=r(69985),o=r(72560),i=r(98702),a=r(95014);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6045:(e,t,r)=>{"use strict";var n=r(11880);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},95014:(e,t,r)=>{"use strict";var n=r(19037),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},98494:(e,t,r)=>{"use strict";var n=r(23691),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},67697:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},36420:(e,t,r)=>{"use strict";var n=r(19037),o=r(48999),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},55565:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},66338:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},33265:(e,t,r)=>{"use strict";var n=r(36420)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},97365:(e,t,r)=>{"use strict";var n=r(30071).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},72532:(e,t,r)=>{"use strict";var n=r(88563),o=r(50806);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},88563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},37298:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/MSIE|Trident/.test(n)},63221:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},4764:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},50806:(e,t,r)=>{"use strict";var n=r(19037),o=r(6648);e.exports="process"===o(n.process)},27486:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/web0s(?!.*chrome)/i.test(n)},30071:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,r)=>{"use strict";var n,o,i=r(19037),a=r(30071),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},27922:(e,t,r)=>{"use strict";var n=r(30071).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},72739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,r)=>{"use strict";var n=r(19037),o=r(82474).f,i=r(75773),a=r(11880),s=r(95014),l=r(8758),u=r(35266);e.exports=function(e,t){var r,c,d,f,p,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(p=o(r,c))&&p.value:r[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(r,c,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},65773:(e,t,r)=>{"use strict";r(64043);var n=r(22615),o=r(11880),i=r(56308),a=r(3689),s=r(44201),l=r(75773),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!p||!h||r){var m=/./[f],g=t(f,""[e],(function(e,t,r,o,a){var s=t.exec;return s===i||s===c.exec?p&&!a?{done:!0,value:n(m,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(c,f,g[1])}d&&l(c[f],"sham",!0)}},71594:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},61735:(e,t,r)=>{"use strict";var n=r(97215),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},54071:(e,t,r)=>{"use strict";var n=r(46576),o=r(10509),i=r(97215),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},97215:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},86761:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509),i=r(48999),a=r(36812),s=r(96004),l=r(97215),u=Function,c=n([].concat),d=n([].join),f={},p=function(e,t,r){if(!a(f,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";f[t]=u("C,a","return new C("+d(n,",")+")")}return f[t](e,r)};e.exports=l?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),a=function(){var r=c(n,s(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},22615:(e,t,r)=>{"use strict";var n=r(97215),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},41236:(e,t,r)=>{"use strict";var n=r(67697),o=r(36812),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},52743:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},46576:(e,t,r)=>{"use strict";var n=r(6648),o=r(68844);e.exports=function(e){if("Function"===n(e))return o(e)}},68844:(e,t,r)=>{"use strict";var n=r(97215),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},76058:(e,t,r)=>{"use strict";var n=r(19037),o=r(69985),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},91664:(e,t,r)=>{"use strict";var n=r(50926),o=r(54849),i=r(981),a=r(9478),s=r(44201)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},5185:(e,t,r)=>{"use strict";var n=r(22615),o=r(10509),i=r(85027),a=r(23691),s=r(91664),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},92643:(e,t,r)=>{"use strict";var n=r(68844),o=r(92297),i=r(69985),a=r(6648),s=r(34327),l=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?l(r,u):"number"!=typeof u&&"Number"!==a(u)&&"String"!==a(u)||l(r,s(u))}var c=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var n=0;n<c;n++)if(r[n]===e)return t}}}},54849:(e,t,r)=>{"use strict";var n=r(10509),o=r(981);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},27017:(e,t,r)=>{"use strict";var n=r(68844),o=r(90690),i=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,f){var p=r+e.length,h=n.length,m=c;return void 0!==d&&(d=o(d),m=u),s(f,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>h){var f=i(c/10);return 0===f?o:f<=h?void 0===n[f-1]?a(s,1):n[f-1]+a(s,1):o}u=n[c-1]}return void 0===u?"":u}))}},19037:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(e,t,r)=>{"use strict";var n=r(68844),o=r(90690),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},57248:e=>{"use strict";e.exports={}},20920:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},2688:(e,t,r)=>{"use strict";var n=r(76058);e.exports=n("document","documentElement")},68506:(e,t,r)=>{"use strict";var n=r(67697),o=r(3689),i=r(36420);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},94413:(e,t,r)=>{"use strict";var n=r(68844),o=r(3689),i=r(6648),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},33457:(e,t,r)=>{"use strict";var n=r(69985),o=r(48999),i=r(49385);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6738:(e,t,r)=>{"use strict";var n=r(68844),o=r(69985),i=r(84091),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},45375:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(57248),a=r(48999),s=r(36812),l=r(72560).f,u=r(72741),c=r(26062),d=r(27049),f=r(14630),p=r(71594),h=!1,m=f("meta"),g=0,y=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=u.f,t=o([].splice),r={};r[m]=1,e(r).length&&(u.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===m){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&d(e)&&!s(e,m)&&y(e),e}};i[m]=!0},618:(e,t,r)=>{"use strict";var n,o,i,a=r(59834),s=r(19037),l=r(48999),u=r(75773),c=r(36812),d=r(84091),f=r(2713),p=r(57248),h=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(c(e,y))throw new h("Object already initialized");return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},93292:(e,t,r)=>{"use strict";var n=r(44201),o=r(9478),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},92297:(e,t,r)=>{"use strict";var n=r(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},69985:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},19429:(e,t,r)=>{"use strict";var n=r(68844),o=r(3689),i=r(69985),a=r(50926),s=r(76058),l=r(6738),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),p=!d.test(u),h=function(e){if(!i(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},76251:(e,t,r)=>{"use strict";var n=r(36812);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},35266:(e,t,r)=>{"use strict";var n=r(3689),o=r(69985),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},981:e=>{"use strict";e.exports=function(e){return null==e}},48999:(e,t,r)=>{"use strict";var n=r(69985);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},60598:(e,t,r)=>{"use strict";var n=r(48999);e.exports=function(e){return n(e)||null===e}},53931:e=>{"use strict";e.exports=!1},91245:(e,t,r)=>{"use strict";var n=r(48999),o=r(6648),i=r(44201)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},30734:(e,t,r)=>{"use strict";var n=r(76058),o=r(69985),i=r(23622),a=r(39525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},18734:(e,t,r)=>{"use strict";var n=r(54071),o=r(22615),i=r(85027),a=r(23691),s=r(93292),l=r(6310),u=r(23622),c=r(5185),d=r(91664),f=r(72125),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,y,v,b,w,x,S,_=r&&r.that,k=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),O=n(t,_),T=function(e){return g&&f(g,"normal",e),new h(!0,e)},R=function(e){return k?(i(e),P?O(e[0],e[1],T):O(e[0],e[1])):P?O(e,T):O(e)};if(E)g=e.iterator;else if(C)g=e;else{if(!(y=d(e)))throw new p(a(e)+" is not iterable");if(s(y)){for(v=0,b=l(e);b>v;v++)if((w=R(e[v]))&&u(m,w))return w;return new h(!1)}g=c(e,y)}for(x=E?e.next:g.next;!(S=o(x,g)).done;){try{w=R(S.value)}catch(e){f(g,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},72125:(e,t,r)=>{"use strict";var n=r(22615),o=r(85027),i=r(54849);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},30974:(e,t,r)=>{"use strict";var n=r(12013).IteratorPrototype,o=r(25391),i=r(75684),a=r(55997),s=r(9478),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,c,!1,!0),s[c]=l,e}},91934:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(53931),a=r(41236),s=r(69985),l=r(30974),u=r(61868),c=r(49385),d=r(55997),f=r(75773),p=r(11880),h=r(44201),m=r(9478),g=r(12013),y=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),S=function(){return this};e.exports=function(e,t,r,a,h,g,_){l(r,t,a);var k,E,C,P=function(e){if(e===h&&M)return M;if(!w&&e&&e in R)return R[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",T=!1,R=e.prototype,A=R[x]||R["@@iterator"]||h&&R[h],M=!w&&A||P(h),j="Array"===t&&R.entries||A;if(j&&(k=u(j.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===b||(c?c(k,b):s(k[x])||p(k,x,S)),d(k,O,!0,!0),i&&(m[O]=S)),y&&"values"===h&&A&&"values"!==A.name&&(!i&&v?f(R,"name","values"):(T=!0,M=function(){return o(A,this)})),h)if(E={values:P("values"),keys:g?M:P("keys"),entries:P("entries")},_)for(C in E)(w||T||!(C in R))&&p(R,C,E[C]);else n({target:t,proto:!0,forced:w||T},E);return i&&!_||R[x]===M||p(R,x,M,{name:h}),m[t]=M,E}},12013:(e,t,r)=>{"use strict";var n,o,i,a=r(3689),s=r(69985),l=r(48999),u=r(25391),c=r(61868),d=r(11880),f=r(44201),p=r(53931),h=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(n=o):m=!0),!l(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[h])||d(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,r)=>{"use strict";var n=r(43126);e.exports=function(e){return n(e.length)}},98702:(e,t,r)=>{"use strict";var n=r(68844),o=r(3689),i=r(69985),a=r(36812),s=r(67697),l=r(41236).CONFIGURABLE,u=r(6738),c=r(618),d=c.enforce,f=c.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||u(this)}),"toString")},58828:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},80231:(e,t,r)=>{"use strict";var n,o,i,a,s,l=r(19037),u=r(70517),c=r(54071),d=r(99886).set,f=r(34410),p=r(4764),h=r(63221),m=r(27486),g=r(50806),y=l.MutationObserver||l.WebKitMutationObserver,v=l.document,b=l.process,w=l.Promise,x=u("queueMicrotask");if(!x){var S=new f,_=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&n(),e}e&&e.enter()};p||g||m||!y||!v?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),n=function(){s(_)}):g?n=function(){b.nextTick(_)}:(d=c(d,l),n=function(){d(_)}):(o=!0,i=v.createTextNode(""),new y(_).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(e){S.head||n(),S.add(e)}}e.exports=x},48742:(e,t,r)=>{"use strict";var n=r(10509),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},42124:(e,t,r)=>{"use strict";var n=r(91245),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},45394:(e,t,r)=>{"use strict";var n=r(67697),o=r(68844),i=r(22615),a=r(3689),s=r(20300),l=r(7518),u=r(49556),c=r(90690),d=r(94413),f=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var r=c(e),o=arguments.length,a=1,f=l.f,p=u.f;o>a;)for(var m,g=d(arguments[a++]),y=f?h(s(g),f(g)):s(g),v=y.length,b=0;v>b;)m=y[b++],n&&!i(p,g,m)||(r[m]=g[m]);return r}:f},25391:(e,t,r)=>{"use strict";var n,o=r(85027),i=r(98920),a=r(72739),s=r(57248),l=r(2688),u=r(36420),c=r(2713),d=c("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&n?h(n):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(n);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[d]=e):r=m(),void 0===t?r:i.f(r,t)}},98920:(e,t,r)=>{"use strict";var n=r(67697),o=r(15648),i=r(72560),a=r(85027),s=r(65290),l=r(20300);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,r=o[c++],n[r]);return e}},72560:(e,t,r)=>{"use strict";var n=r(67697),o=r(68506),i=r(15648),a=r(85027),s=r(18360),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=c(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},82474:(e,t,r)=>{"use strict";var n=r(67697),o=r(22615),i=r(49556),a=r(75684),s=r(65290),l=r(18360),u=r(36812),c=r(68506),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},26062:(e,t,r)=>{"use strict";var n=r(6648),o=r(65290),i=r(72741).f,a=r(96004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},72741:(e,t,r)=>{"use strict";var n=r(54948),o=r(72739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},61868:(e,t,r)=>{"use strict";var n=r(36812),o=r(69985),i=r(90690),a=r(2713),s=r(81748),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},27049:(e,t,r)=>{"use strict";var n=r(3689),o=r(48999),i=r(6648),a=r(11655),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},23622:(e,t,r)=>{"use strict";var n=r(68844);e.exports=n({}.isPrototypeOf)},54948:(e,t,r)=>{"use strict";var n=r(68844),o=r(36812),i=r(65290),a=r(84328).indexOf,s=r(57248),l=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,c=[];for(r in n)!o(s,r)&&o(n,r)&&l(c,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},20300:(e,t,r)=>{"use strict";var n=r(54948),o=r(72739);e.exports=Object.keys||function(e){return n(e,o)}},49556:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},49385:(e,t,r)=>{"use strict";var n=r(52743),o=r(85027),i=r(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},49419:(e,t,r)=>{"use strict";var n=r(67697),o=r(3689),i=r(68844),a=r(61868),s=r(20300),l=r(65290),u=i(r(49556).f),c=i([].push),d=n&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),f=function(e){return function(t){for(var r,o=l(t),i=s(o),f=d&&null===a(o),p=i.length,h=0,m=[];p>h;)r=i[h++],n&&!(f?r in o:u(o,r))||c(m,e?[r,o[r]]:o[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},65073:(e,t,r)=>{"use strict";var n=r(23043),o=r(50926);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},35899:(e,t,r)=>{"use strict";var n=r(22615),o=r(69985),i=r(48999),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},19152:(e,t,r)=>{"use strict";var n=r(76058),o=r(68844),i=r(72741),a=r(7518),s=r(85027),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},50496:(e,t,r)=>{"use strict";var n=r(19037);e.exports=n},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},87073:(e,t,r)=>{"use strict";var n=r(19037),o=r(17919),i=r(69985),a=r(35266),s=r(6738),l=r(44201),u=r(72532),c=r(88563),d=r(53931),f=r(3615),p=o&&o.prototype,h=l("species"),m=!1,g=i(n.PromiseRejectionEvent),y=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(d&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(u||c)&&!g}));e.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:m}},17919:(e,t,r)=>{"use strict";var n=r(19037);e.exports=n.Promise},72945:(e,t,r)=>{"use strict";var n=r(85027),o=r(48999),i=r(48742);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},562:(e,t,r)=>{"use strict";var n=r(17919),o=r(86431),i=r(87073).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},38055:(e,t,r)=>{"use strict";var n=r(72560).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},34410:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},66100:(e,t,r)=>{"use strict";var n=r(22615),o=r(85027),i=r(69985),a=r(6648),s=r(56308),l=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},56308:(e,t,r)=>{"use strict";var n,o,i=r(22615),a=r(68844),s=r(34327),l=r(69633),u=r(87901),c=r(83430),d=r(25391),f=r(618).get,p=r(62100),h=r(26738),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,v=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),S=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),_=u.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||_||p||h)&&(y=function(e){var t,r,n,o,a,u,c,p=this,h=f(p),E=s(e),C=h.raw;if(C)return C.lastIndex=p.lastIndex,t=i(y,C,E),p.lastIndex=C.lastIndex,t;var P=h.groups,O=_&&p.sticky,T=i(l,p),R=p.source,A=0,M=E;if(O&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),M=x(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==v(E,p.lastIndex-1))&&(R="(?: "+R+")",M=" "+M,A++),r=new RegExp("^(?:"+R+")",T)),k&&(r=new RegExp("^"+R+"$(?!\\s)",T)),S&&(n=p.lastIndex),o=i(g,O?r:p,M),O?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:S&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),k&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&P)for(o.groups=u=d(null),a=0;a<P.length;a++)u[(c=P[a])[0]]=o[c[1]];return o}),e.exports=y},69633:(e,t,r)=>{"use strict";var n=r(85027);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},63477:(e,t,r)=>{"use strict";var n=r(22615),o=r(36812),i=r(23622),a=r(69633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},87901:(e,t,r)=>{"use strict";var n=r(3689),o=r(19037).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},62100:(e,t,r)=>{"use strict";var n=r(3689),o=r(19037).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},26738:(e,t,r)=>{"use strict";var n=r(3689),o=r(19037).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},74684:(e,t,r)=>{"use strict";var n=r(981),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},70517:(e,t,r)=>{"use strict";var n=r(19037),o=r(67697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},70953:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},14241:(e,t,r)=>{"use strict";var n=r(76058),o=r(62148),i=r(44201),a=r(67697),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},55997:(e,t,r)=>{"use strict";var n=r(72560).f,o=r(36812),i=r(44201)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},2713:(e,t,r)=>{"use strict";var n=r(83430),o=r(14630),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},84091:(e,t,r)=>{"use strict";var n=r(19037),o=r(95014),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},83430:(e,t,r)=>{"use strict";var n=r(53931),o=r(84091);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},76373:(e,t,r)=>{"use strict";var n=r(85027),o=r(52655),i=r(981),a=r(44201)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},10730:(e,t,r)=>{"use strict";var n=r(68844),o=r(68700),i=r(34327),a=r(74684),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=i(a(t)),f=o(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=l(d,f))<55296||n>56319||f+1===p||(c=l(d,f+1))<56320||c>57343?e?s(d,f):n:e?u(d,f,f+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},75984:(e,t,r)=>{"use strict";var n=r(41236).PROPER,o=r(3689),i=r(86350);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||n&&i[e].name!==e}))}},72291:(e,t,r)=>{"use strict";var n=r(61435).start,o=r(75984);e.exports=o("trimStart")?function(){return n(this)}:"".trimStart},61435:(e,t,r)=>{"use strict";var n=r(68844),o=r(74684),i=r(34327),a=r(86350),s=n("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},50146:(e,t,r)=>{"use strict";var n=r(3615),o=r(3689),i=r(19037).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},13032:(e,t,r)=>{"use strict";var n=r(22615),o=r(76058),i=r(44201),a=r(11880);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},46549:(e,t,r)=>{"use strict";var n=r(50146);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},99886:(e,t,r)=>{"use strict";var n,o,i,a,s=r(19037),l=r(61735),u=r(54071),c=r(69985),d=r(36812),f=r(3689),p=r(2688),h=r(96004),m=r(36420),g=r(21500),y=r(4764),v=r(50806),b=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,_=s.Function,k=s.MessageChannel,E=s.String,C=0,P={};f((function(){n=s.location}));var O=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},T=function(e){return function(){O(e)}},R=function(e){O(e.data)},A=function(e){s.postMessage(E(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){g(arguments.length,1);var t=c(e)?e:_(e),r=h(arguments,1);return P[++C]=function(){l(t,void 0,r)},o(C),C},w=function(e){delete P[e]},v?o=function(e){x.nextTick(T(e))}:S&&S.now?o=function(e){S.now(T(e))}:k&&!y?(a=(i=new k).port2,i.port1.onmessage=R,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(A)?(o=A,s.addEventListener("message",R,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},23648:(e,t,r)=>{"use strict";var n=r(68844);e.exports=n(1..valueOf)},27578:(e,t,r)=>{"use strict";var n=r(68700),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},65290:(e,t,r)=>{"use strict";var n=r(94413),o=r(74684);e.exports=function(e){return n(o(e))}},68700:(e,t,r)=>{"use strict";var n=r(58828);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},43126:(e,t,r)=>{"use strict";var n=r(68700),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},90690:(e,t,r)=>{"use strict";var n=r(74684),o=Object;e.exports=function(e){return o(n(e))}},88732:(e,t,r)=>{"use strict";var n=r(22615),o=r(48999),i=r(30734),a=r(54849),s=r(35899),l=r(44201),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},18360:(e,t,r)=>{"use strict";var n=r(88732),o=r(30734);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},23043:(e,t,r)=>{"use strict";var n={};n[r(44201)("toStringTag")]="z",e.exports="[object z]"===String(n)},34327:(e,t,r)=>{"use strict";var n=r(50926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},23691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},14630:(e,t,r)=>{"use strict";var n=r(68844),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},39525:(e,t,r)=>{"use strict";var n=r(50146);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(e,t,r)=>{"use strict";var n=r(67697),o=r(3689);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},21500:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},59834:(e,t,r)=>{"use strict";var n=r(19037),o=r(69985),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},35405:(e,t,r)=>{"use strict";var n=r(50496),o=r(36812),i=r(96145),a=r(72560).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},96145:(e,t,r)=>{"use strict";var n=r(44201);t.f=n},44201:(e,t,r)=>{"use strict";var n=r(19037),o=r(83430),i=r(36812),a=r(14630),s=r(50146),l=r(39525),u=n.Symbol,c=o("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},86350:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},34338:(e,t,r)=>{"use strict";var n=r(79989),o=r(3689),i=r(92297),a=r(48999),s=r(90690),l=r(6310),u=r(55565),c=r(76522),d=r(27120),f=r(29042),p=r(44201),h=r(3615),m=p("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),f=d(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(y(i=-1===t?a:arguments[t]))for(o=l(i),u(p+o),r=0;r<o;r++,p++)r in i&&c(f,p,i[r]);else u(p+1),c(f,p++,i);return f.length=p,f}})},38077:(e,t,r)=>{"use strict";var n=r(79989),o=r(2960).filter;n({target:"Array",proto:!0,forced:!r(29042)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},25728:(e,t,r)=>{"use strict";var n=r(79989),o=r(2960).find,i=r(87370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},77049:(e,t,r)=>{"use strict";var n=r(79989),o=r(21055);n({target:"Array",stat:!0,forced:!r(86431)((function(e){Array.from(e)}))},{from:o})},76801:(e,t,r)=>{"use strict";var n=r(79989),o=r(84328).includes,i=r(3689),a=r(87370);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,r)=>{"use strict";var n=r(65290),o=r(87370),i=r(9478),a=r(618),s=r(72560).f,l=r(91934),u=r(27807),c=r(53931),d=r(67697),f=a.set,p=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},6203:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(94413),a=r(65290),s=r(16834),l=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},50886:(e,t,r)=>{"use strict";var n=r(79989),o=r(2960).map;n({target:"Array",proto:!0,forced:!r(29042)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},89730:(e,t,r)=>{"use strict";var n=r(79989),o=r(92297),i=r(19429),a=r(48999),s=r(27578),l=r(6310),u=r(65290),c=r(76522),d=r(44201),f=r(29042),p=r(96004),h=f("slice"),m=d("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,d,f=u(this),h=l(f),v=s(e,h),b=s(void 0===t?h:t,h);if(o(f)&&(r=f.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return p(f,v,b);for(n=new(void 0===r?g:r)(y(b-v,0)),d=0;v<b;v++,d++)v in f&&c(n,d,f[v]);return n.length=d,n}})},65137:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(10509),a=r(90690),s=r(6310),l=r(98494),u=r(34327),c=r(3689),d=r(50382),f=r(16834),p=r(97365),h=r(37298),m=r(3615),g=r(27922),y=[],v=o(y.sort),b=o(y.push),w=c((function(){y.sort(void 0)})),x=c((function(){y.sort(null)})),S=f("sort"),_=!c((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)y.push({k:t+n,v:r})}for(y.sort((function(e,t){return t.v-e.v})),n=0;n<y.length;n++)t=y[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!x||!S||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var r,n,o=[],c=s(t);for(n=0;n<c;n++)n in t&&b(o,t[n]);for(d(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:u(t)>u(r)?1:-1}}(e)),r=s(o),n=0;n<r;)t[n]=o[n++];for(;n<c;)l(t,n++);return t}})},62506:(e,t,r)=>{"use strict";var n=r(79989),o=r(90690),i=r(27578),a=r(68700),s=r(6310),l=r(5649),u=r(55565),c=r(27120),d=r(76522),f=r(98494),p=r(29042)("splice"),h=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,g,y,v,b=o(this),w=s(b),x=i(e,w),S=arguments.length;for(0===S?r=n=0:1===S?(r=0,n=w-x):(r=S-2,n=m(h(a(t),0),w-x)),u(w+r-n),p=c(b,n),g=0;g<n;g++)(y=x+g)in b&&d(p,g,b[y]);if(p.length=n,r<n){for(g=x;g<w-n;g++)v=g+r,(y=g+n)in b?b[v]=b[y]:f(b,v);for(g=w;g>w-n+r;g--)f(b,g-1)}else if(r>n)for(g=w-n;g>x;g--)v=g+r-1,(y=g+n-1)in b?b[v]=b[y]:f(b,v);for(g=0;g<r;g++)b[g+x]=arguments[g+2];return l(b,w-n+r),p}})},59903:(e,t,r)=>{"use strict";var n=r(36812),o=r(11880),i=r(81797),a=r(44201)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},34284:(e,t,r)=>{"use strict";var n=r(67697),o=r(41236).EXISTS,i=r(68844),a=r(62148),s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},48324:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(61735),a=r(22615),s=r(68844),l=r(3689),u=r(69985),c=r(30734),d=r(96004),f=r(92643),p=r(50146),h=String,m=o("JSON","stringify"),g=s(/./.exec),y=s("".charAt),v=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,k=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),C=function(e,t){var r=d(arguments),n=f(t);if(u(n)||void 0!==e&&!c(e))return r[1]=function(e,t){if(u(n)&&(t=a(n,this,h(e),t)),!c(t))return t},i(m,null,r)},P=function(e,t,r){var n=y(r,t-1),o=y(r,t+1);return g(S,e)&&!g(_,o)||g(_,e)&&!g(S,n)?"\\u"+w(v(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(e,t,r){var n=d(arguments),o=i(k?C:m,null,n);return E&&"string"==typeof o?b(o,x,P):o}})},7629:(e,t,r)=>{"use strict";var n=r(19037);r(55997)(n.JSON,"JSON",!0)},77509:(e,t,r)=>{"use strict";r(55997)(Math,"Math",!0)},79288:(e,t,r)=>{"use strict";var n=r(79989),o=r(53931),i=r(67697),a=r(19037),s=r(50496),l=r(68844),u=r(35266),c=r(36812),d=r(33457),f=r(23622),p=r(30734),h=r(88732),m=r(3689),g=r(72741).f,y=r(82474).f,v=r(72560).f,b=r(23648),w=r(61435).trim,x=a.Number,S=s.Number,_=x.prototype,k=a.TypeError,E=l("".slice),C=l("".charCodeAt),P=function(e){var t=h(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,r,n,o,i,a,s,l,u=h(e,"number");if(p(u))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=C(u,0))||45===t){if(88===(r=C(u,2))||120===r)return NaN}else if(48===t){switch(C(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=E(u,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>o)return NaN;return parseInt(i,n)}return+u},T=u("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),R=function(e){return f(_,e)&&m((function(){b(e)}))},A=function(e){var t=arguments.length<1?0:x(P(e));return R(this)?d(Object(t),this,A):t};A.prototype=_,T&&!o&&(_.constructor=A),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var M=function(e,t){for(var r,n=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)c(t,r=n[o])&&!c(e,r)&&v(e,r,y(t,r))};o&&S&&M(s.Number,S),(T||o)&&M(s.Number,x)},60429:(e,t,r)=>{"use strict";var n=r(79989),o=r(45394);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},81919:(e,t,r)=>{"use strict";var n=r(79989),o=r(3689),i=r(65290),a=r(82474).f,s=r(67697);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},99474:(e,t,r)=>{"use strict";var n=r(79989),o=r(67697),i=r(19152),a=r(65290),s=r(82474),l=r(76522);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=s.f,u=i(n),c={},d=0;u.length>d;)void 0!==(r=o(n,t=u[d++]))&&l(c,t,r);return c}})},79434:(e,t,r)=>{"use strict";var n=r(79989),o=r(50146),i=r(3689),a=r(7518),s=r(90690);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},88052:(e,t,r)=>{"use strict";var n=r(79989),o=r(3689),i=r(90690),a=r(61868),s=r(81748);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},69358:(e,t,r)=>{"use strict";var n=r(79989),o=r(90690),i=r(20300);n({target:"Object",stat:!0,forced:r(3689)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},60228:(e,t,r)=>{"use strict";var n=r(23043),o=r(11880),i=r(65073);n||o(Object.prototype,"toString",i,{unsafe:!0})},86466:(e,t,r)=>{"use strict";var n=r(79989),o=r(49419).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},81692:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(10509),a=r(48742),s=r(9302),l=r(18734);n({target:"Promise",stat:!0,forced:r(562)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=i(t.resolve),a=[],s=0,c=1;l(e,(function(e){var i=s++,l=!1;c++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--c||n(a))}),u)})),--c||n(a)}));return c.error&&u(c.value),r.promise}})},75089:(e,t,r)=>{"use strict";var n=r(79989),o=r(53931),i=r(87073).CONSTRUCTOR,a=r(17919),s=r(76058),l=r(69985),u=r(11880),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var d=s("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},56697:(e,t,r)=>{"use strict";var n,o,i,a=r(79989),s=r(53931),l=r(50806),u=r(19037),c=r(22615),d=r(11880),f=r(49385),p=r(55997),h=r(14241),m=r(10509),g=r(69985),y=r(48999),v=r(767),b=r(76373),w=r(99886).set,x=r(80231),S=r(20920),_=r(9302),k=r(34410),E=r(618),C=r(17919),P=r(87073),O=r(48742),T=P.CONSTRUCTOR,R=P.REJECTION_EVENT,A=P.SUBCLASSING,M=E.getterFor("Promise"),j=E.set,I=C&&C.prototype,D=C,N=I,L=u.TypeError,Z=u.document,F=u.process,B=O.f,V=B,z=!!(Z&&Z.createEvent&&u.dispatchEvent),W=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},U=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&q(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?u(new L("Promise-chain cycle")):(n=W(r))?c(n,r,l,u):l(r)):u(i)}catch(e){d&&!o&&d.exit(),u(e)}},$=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)U(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},H=function(e,t,r){var n,o;z?((n=Z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!R&&(o=u["on"+e])?o(n):"unhandledrejection"===e&&S("Unhandled promise rejection",r)},Y=function(e){c(w,u,(function(){var t,r=e.facade,n=e.value;if(G(e)&&(t=_((function(){l?F.emit("unhandledRejection",n,r):H("unhandledrejection",r,n)})),e.rejection=l||G(e)?2:1,t.error))throw t.value}))},G=function(e){return 1!==e.rejection&&!e.parent},q=function(e){c(w,u,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):H("rejectionhandled",t,e.value)}))},K=function(e,t,r){return function(n){e(t,n,r)}},X=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$(e,!0))},Q=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=W(t);n?x((function(){var r={done:!1};try{c(n,t,K(Q,r,e),K(X,r,e))}catch(t){X(r,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){X({done:!1},t,e)}}};if(T&&(N=(D=function(e){v(this,N),m(e),c(n,this);var t=M(this);try{e(K(Q,t),K(X,t))}catch(e){X(t,e)}}).prototype,(n=function(e){j(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(N,"then",(function(e,t){var r=M(this),n=B(b(this,D));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?F.domain:void 0,0===r.state?r.reactions.add(n):x((function(){U(n,r)})),n.promise})),o=function(){var e=new n,t=M(e);this.promise=e,this.resolve=K(Q,t),this.reject=K(X,t)},O.f=B=function(e){return e===D||void 0===e?new o(e):V(e)},!s&&g(C)&&I!==Object.prototype)){i=I.then,A||d(I,"then",(function(e,t){var r=this;return new D((function(e,t){c(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}f&&f(I,N)}a({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:D}),p(D,"Promise",!1,!0),h("Promise")},73964:(e,t,r)=>{"use strict";r(56697),r(81692),r(75089),r(58829),r(42092),r(57905)},58829:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(10509),a=r(48742),s=r(9302),l=r(18734);n({target:"Promise",stat:!0,forced:r(562)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},42092:(e,t,r)=>{"use strict";var n=r(79989),o=r(48742);n({target:"Promise",stat:!0,forced:r(87073).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},57905:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(53931),a=r(17919),s=r(87073).CONSTRUCTOR,l=r(72945),u=o("Promise"),c=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},30050:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(61735),a=r(86761),s=r(52655),l=r(85027),u=r(48999),c=r(25391),d=r(3689),f=o("Reflect","construct"),p=Object.prototype,h=[].push,m=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!d((function(){f((function(){}))})),y=m||g;n({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!m)return f(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,d=c(u(o)?o:p),y=i(e,d,t);return u(y)?y:d}})},32349:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(48999),a=r(85027),s=r(76251),l=r(82474),u=r(61868);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,c,d=arguments.length<3?t:arguments[2];return a(t)===d?t[r]:(n=l.f(t,r))?s(n)?n.value:void 0===n.get?void 0:o(n.get,d):i(c=u(t))?e(c,r,d):void 0}})},52003:(e,t,r)=>{"use strict";var n=r(67697),o=r(19037),i=r(68844),a=r(35266),s=r(33457),l=r(75773),u=r(25391),c=r(72741).f,d=r(23622),f=r(91245),p=r(34327),h=r(63477),m=r(87901),g=r(38055),y=r(11880),v=r(3689),b=r(36812),w=r(618).enforce,x=r(14241),S=r(44201),_=r(62100),k=r(26738),E=S("match"),C=o.RegExp,P=C.prototype,O=o.SyntaxError,T=i(P.exec),R=i("".charAt),A=i("".replace),M=i("".indexOf),j=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,N=/a/g,L=new C(D)!==D,Z=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,B=n&&(!L||Z||_||k||v((function(){return N[E]=!1,C(D)!==D||C(N)===N||"/a/i"!==String(C(D,"i"))})));if(a("RegExp",B)){for(var V=function(e,t){var r,n,o,i,a,c,m=d(P,this),g=f(e),y=void 0===t,v=[],x=e;if(!m&&g&&y&&e.constructor===V)return e;if((g||d(P,e))&&(e=e.source,y&&(t=h(x))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),x=e,_&&"dotAll"in D&&(n=!!t&&M(t,"s")>-1)&&(t=A(t,/s/g,"")),r=t,Z&&"sticky"in D&&(o=!!t&&M(t,"y")>-1)&&F&&(t=A(t,/y/g,"")),k&&(e=(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a=u(null),s=!1,l=!1,c=0,d="";n<=r;n++){if("\\"===(t=R(e,n)))t+=R(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(I,j(e,n+1))&&(n+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===d||b(a,d))throw new O("Invalid capture group name");a[d]=!0,i[i.length]=[d,c],l=!1,d="";continue}l?d+=t:o+=t}return[o,i]}(e))[0],v=i[1]),a=s(C(e,t),m?this:P,V),(n||o||v.length)&&(c=w(a),n&&(c.dotAll=!0,c.raw=V(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=R(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+R(e,++n);return o}(e),r)),o&&(c.sticky=!0),v.length&&(c.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},z=c(C),W=0;z.length>W;)g(V,C,z[W++]);P.constructor=V,V.prototype=P,y(o,"RegExp",V,{constructor:!0})}x("RegExp")},64043:(e,t,r)=>{"use strict";var n=r(79989),o=r(56308);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},12826:(e,t,r)=>{"use strict";var n=r(41236).PROPER,o=r(11880),i=r(85027),a=r(34327),s=r(3689),l=r(63477),u=RegExp.prototype,c=u.toString,d=s((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),f=n&&"toString"!==c.name;(d||f)&&o(u,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},17985:(e,t,r)=>{"use strict";r(20319)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(70800))},19649:(e,t,r)=>{"use strict";r(17985)},43843:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(42124),a=r(74684),s=r(34327),l=r(27413),u=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},21694:(e,t,r)=>{"use strict";var n=r(10730).charAt,o=r(34327),i=r(618),a=r(91934),s=r(27807),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},22462:(e,t,r)=>{"use strict";var n=r(22615),o=r(65773),i=r(85027),a=r(981),s=r(43126),l=r(34327),u=r(74684),c=r(54849),d=r(71514),f=r(66100);o("match",(function(e,t,r){return[function(t){var r=u(this),o=a(t)?void 0:c(t,e);return o?n(o,t,r):new RegExp(t)[e](l(r))},function(e){var n=i(this),o=l(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return f(n,o);var u=n.unicode;n.lastIndex=0;for(var c,p=[],h=0;null!==(c=f(n,o));){var m=l(c[0]);p[h]=m,""===m&&(n.lastIndex=d(o,s(n.lastIndex),u)),h++}return 0===h?null:p}]}))},57267:(e,t,r)=>{"use strict";var n=r(61735),o=r(22615),i=r(68844),a=r(65773),s=r(3689),l=r(85027),u=r(69985),c=r(981),d=r(68700),f=r(43126),p=r(34327),h=r(74684),m=r(71514),g=r(54849),y=r(27017),v=r(66100),b=r(44201)("replace"),w=Math.max,x=Math.min,S=i([].concat),_=i([].push),k=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),P=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=P?"$":"$0";return[function(e,r){var n=h(this),i=c(e)?void 0:g(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===k(o,i)&&-1===k(o,"$<")){var c=r(t,a,s,o);if(c.done)return c.value}var h=u(o);h||(o=p(o));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var C,P=[];null!==(C=v(a,s))&&(_(P,C),b);){""===p(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var O,T="",R=0,A=0;A<P.length;A++){for(var M,j=p((C=P[A])[0]),I=w(x(d(C.index),s.length),0),D=[],N=1;N<C.length;N++)_(D,void 0===(O=C[N])?O:String(O));var L=C.groups;if(h){var Z=S([j],D,I,s);void 0!==L&&_(Z,L),M=p(n(o,void 0,Z))}else M=y(j,s,I,D,L,o);I>=R&&(T+=E(s,R,I)+M,R=I+j.length)}return T+E(s,R)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||P)},61514:(e,t,r)=>{"use strict";var n=r(22615),o=r(65773),i=r(85027),a=r(981),s=r(74684),l=r(70953),u=r(34327),c=r(54849),d=r(66100);o("search",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:c(t,e);return o?n(o,t,r):new RegExp(t)[e](u(r))},function(e){var n=i(this),o=u(e),a=r(t,n,o);if(a.done)return a.value;var s=n.lastIndex;l(s,0)||(n.lastIndex=0);var c=d(n,o);return l(n.lastIndex,s)||(n.lastIndex=s),null===c?-1:c.index}]}))},10974:(e,t,r)=>{"use strict";var n=r(79989),o=r(72291);n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==o},{trimLeft:o})},3255:(e,t,r)=>{"use strict";r(10974);var n=r(79989),o=r(72291);n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==o},{trimStart:o})},28436:(e,t,r)=>{"use strict";var n=r(79989),o=r(61435).trim;n({target:"String",proto:!0,forced:r(75984)("trim")},{trim:function(){return o(this)}})},58373:(e,t,r)=>{"use strict";r(35405)("asyncIterator")},37855:(e,t,r)=>{"use strict";var n=r(79989),o=r(19037),i=r(22615),a=r(68844),s=r(53931),l=r(67697),u=r(50146),c=r(3689),d=r(36812),f=r(23622),p=r(85027),h=r(65290),m=r(18360),g=r(34327),y=r(75684),v=r(25391),b=r(20300),w=r(72741),x=r(26062),S=r(7518),_=r(82474),k=r(72560),E=r(98920),C=r(49556),P=r(11880),O=r(62148),T=r(83430),R=r(2713),A=r(57248),M=r(14630),j=r(44201),I=r(96145),D=r(35405),N=r(13032),L=r(55997),Z=r(618),F=r(2960).forEach,B=R("hidden"),V=Z.set,z=Z.getterFor("Symbol"),W=Object.prototype,U=o.Symbol,$=U&&U.prototype,H=o.RangeError,Y=o.TypeError,G=o.QObject,q=_.f,K=k.f,X=x.f,Q=C.f,J=a([].push),ee=T("symbols"),te=T("op-symbols"),re=T("wks"),ne=!G||!G.prototype||!G.prototype.findChild,oe=function(e,t,r){var n=q(W,t);n&&delete W[t],K(e,t,r),n&&e!==W&&K(W,t,n)},ie=l&&c((function(){return 7!==v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?oe:K,ae=function(e,t){var r=ee[e]=v($);return V(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===W&&se(te,t,r),p(e);var n=m(t);return p(r),d(ee,n)?(r.enumerable?(d(e,B)&&e[B][n]&&(e[B][n]=!1),r=v(r,{enumerable:y(0,!1)})):(d(e,B)||K(e,B,y(1,v(null))),e[B][n]=!0),ie(e,n,r)):K(e,n,r)},le=function(e,t){p(e);var r=h(t),n=b(r).concat(fe(r));return F(n,(function(t){l&&!i(ue,r,t)||se(e,t,r[t])})),e},ue=function(e){var t=m(e),r=i(Q,this,t);return!(this===W&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,B)&&this[B][t])||r)},ce=function(e,t){var r=h(e),n=m(t);if(r!==W||!d(ee,n)||d(te,n)){var o=q(r,n);return!o||!d(ee,n)||d(r,B)&&r[B][n]||(o.enumerable=!0),o}},de=function(e){var t=X(h(e)),r=[];return F(t,(function(e){d(ee,e)||d(A,e)||J(r,e)})),r},fe=function(e){var t=e===W,r=X(t?te:h(e)),n=[];return F(r,(function(e){!d(ee,e)||t&&!d(W,e)||J(n,ee[e])})),n};u||(P($=(U=function(){if(f($,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=M(e),r=function(e){var n=void 0===this?o:this;n===W&&i(r,te,e),d(n,B)&&d(n[B],t)&&(n[B][t]=!1);var a=y(1,e);try{ie(n,t,a)}catch(e){if(!(e instanceof H))throw e;oe(n,t,a)}};return l&&ne&&ie(W,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return z(this).tag})),P(U,"withoutSetter",(function(e){return ae(M(e),e)})),C.f=ue,k.f=se,E.f=le,_.f=ce,w.f=x.f=de,S.f=fe,I.f=function(e){return ae(j(e),e)},l&&(O($,"description",{configurable:!0,get:function(){return z(this).description}}),s||P(W,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),F(b(re),(function(e){D(e)})),n({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de}),N(),L(U,"Symbol"),A[B]=!0},86544:(e,t,r)=>{"use strict";var n=r(79989),o=r(67697),i=r(19037),a=r(68844),s=r(36812),l=r(69985),u=r(23622),c=r(34327),d=r(62148),f=r(8758),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(g,p),g.prototype=h,h.constructor=g;var y="Symbol(description detection)"===String(p("description detection")),v=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),S=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=b(e),r=y?S(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},43975:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(36812),a=r(34327),s=r(83430),l=r(46549),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,c[r]=t,r}})},84254:(e,t,r)=>{"use strict";r(35405)("iterator")},59749:(e,t,r)=>{"use strict";r(37855),r(43975),r(81445),r(48324),r(79434)},81445:(e,t,r)=>{"use strict";var n=r(79989),o=r(36812),i=r(30734),a=r(23691),s=r(83430),l=r(46549),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},69373:(e,t,r)=>{"use strict";var n=r(35405),o=r(13032);n("toPrimitive"),o()},66793:(e,t,r)=>{"use strict";var n=r(76058),o=r(35405),i=r(55997);o("toStringTag"),i(n("Symbol"),"Symbol")},47522:(e,t,r)=>{"use strict";var n=r(19037),o=r(66338),i=r(33265),a=r(57612),s=r(75773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(n[u]&&n[u].prototype);l(i)},76265:(e,t,r)=>{"use strict";var n=r(19037),o=r(66338),i=r(33265),a=r(752),s=r(75773),l=r(55997),u=r(44201)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var f in o)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},87462:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:()=>n})},63366:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{Z:()=>n})},90512:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{Z:()=>o});const o=function(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.b=document.baseURI||self.location.href,o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{Editor:()=>Jc,ItemStore:()=>Ek,Presenter:()=>ed,ValidationPresenter:()=>td,bundleLoader:()=>Ik,engine:()=>Hu,renderingContext:()=>fi,system:()=>Jo,utils:()=>Xo,validate:()=>nc});o(35666),o(60228),o(47522),o(25728),o(752),o(19649),o(21694),o(76265),o(62506),o(34338),o(89730),o(60429),o(6203),o(77049),o(50886),o(59749),o(86544),o(84254),o(12826),o(34284),o(64043);var e=o(67294),t=o.t(e,2),r=o(62177),n=o(89572),a=o(39713),l=o(63366),u=o(87462),c=o(90512),d=o(47925),f=o(94780),p=o(22283),h=o(90948),m=o(71657),g=o(51705),y=o(2068),v=o(13511);function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}const x=e.createContext(null);function S(t,r){var n=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){n[t.key]=function(t){return r&&(0,e.isValidElement)(t)?r(t):t}(t)})),n}function _(e,t,r){return null!=r[t]?r[t]:e.props[t]}function k(t,r,n){var o=S(t.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(r,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var l=a in r,u=a in o,c=r[a],d=(0,e.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,e.isValidElement)(c)&&(i[a]=(0,e.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:_(s,"exit",t),enter:_(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",t),enter:_(s,"enter",t)})}})),i}var E=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},C=function(t){function r(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}w(r,t);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,r){var n,o,i=r.children,a=r.handleExited;return{children:r.firstRender?(n=t,o=a,S(n.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:_(t,"appear",n),enter:_(t,"enter",n),exit:_(t,"exit",n)})}))):k(t,i,a),firstRender:!1}},n.handleExited=function(e,t){var r=S(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,u.Z)({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var t=this.props,r=t.component,n=t.childFactory,o=(0,l.Z)(t,["component","childFactory"]),i=this.state.contextValue,a=E(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?e.createElement(x.Provider,{value:i},a):e.createElement(x.Provider,{value:i},e.createElement(r,o,a))},r}(e.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(e){return e}};const P=C;var O=o(75260),T=o(70444),R=o(27278),A=o(16797),M=(o(66751),o(8679),(0,O.w)((function(t,r){var n=t.styles,o=(0,A.O)([n],void 0,e.useContext(O.T));if(!O.i){for(var i,a=o.name,s=o.styles,l=o.next;void 0!==l;)a+=" "+l.name,s+=l.styles,l=l.next;var u=!0===r.compat,c=r.insert("",{name:a,styles:s},r.sheet,u);return u?null:e.createElement("style",((i={})["data-emotion"]=r.key+"-global "+a,i.dangerouslySetInnerHTML={__html:c},i.nonce=r.sheet.nonce,i))}var d=e.useRef();return(0,R.j)((function(){var e=r.key+"-global",t=new r.sheet.constructor({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),t.hydrate([i])),d.current=[t,n],function(){t.flush()}}),[r]),(0,R.j)((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,T.My)(r,o.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}r.insert("",o,t,!1)}}),[r,o.name]),null})));function j(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,A.O)(t)}var I=function(){var e=j.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var D=o(85893);const N=function(t){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:d}=t,[f,p]=e.useState(!1),h=(0,c.Z)(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},g=(0,c.Z)(n.child,f&&n.childLeaving,o&&n.childPulsate);return l||f||p(!0),e.useEffect(()=>{if(!l&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}},[u,l,d]),(0,D.jsx)("span",{className:h,style:m,children:(0,D.jsx)("span",{className:g})})};var L=o(1588);const Z=(0,L.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),F=["center","classes","className"];let B,V,z,W,U=e=>e;const $=I(B||(B=U`
|
|
94
|
+
*/function r(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u"),t.isNCNameStartChar=r,t.isNCNameChar=function(e){return r(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},22134:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0SU1FB9sHEgk6F1W2ZXkAAAMkSURBVDjLhZNfSN11GMY/7/f7O+eox+W/CGbptmTJGptTWgwGmWW6xQKtga2g0U30D5rdSEFFN60RbQV1IURd9GeuiyWxShd6JtO8ydha5i6WJNtkarGcHc8539/v+3u7EF1d9Vy9D8/zPvDC+8C/8GTPGP+H93sH/sNldTjwyhjHD+8GoO3ZwZfqNt56MJ1ONqgii0vL5yenrnw6/tljRwE6Dp2iu3Mdzc3NKwGryw89M9C0pX79xM6mDaRLUhhjsEZIJIRcPmIw8wvXLk+393/Qdfq19wZobSxGut48w4k37mfPc983NTXUTmzdUo33XkFk+6YURoSLsxHJhNV16ZQMnZ1ifubXAx+9tb/v61NDN094/sg5bWqoxXuv1hoCazjYWg7AidG/MUYwRriltFiO94/z6iP5OzbvePCqBejozhzatrVmj/eqcYzEqpJ3scwshHLxipNsPhZVFVXEhZFurLlNPj45WXd+7Mu+AKCqovQpjcG5SKw1asTIw/eWs7Ts1YjIxKUczolaG4u3hlQqQbK0fK/qTyUGwFizreA8Bee14Dy5fKRjF27ojroStt9ZrGHkNQw9zsXqnCd0Hq+pZDiX3RQAeB9LGHpEkDhW4lj4c9GhqgCEYYyqICbGeoMYQxzHZAsmHQAUXPhzwflGI2CtahCI5AVAFFRc6IkVNcaINaoiRix5kkHp9QAgm13+PJd3jYmEVRsrPhbN5b2AAuhfNxxFSYuxqoEVsrmIitTybEl1/bQB6D/W+u7CwnWiSMWFEQaVlx+vQUQQEXmhs1pACV0kiGH8x0n2N1f0imz0wbFPTtP9dBtlqaX2+T/MYFVFuWRzkX4ztiDGCCKi1qx8YjKR0B8mfpN9jX7qrvXB22tdeKJnkC+OtNPzznddl+aK+srKK0kmAgIrWGswYgi9Z3rmdzp36tSj91U+ULVh17Xh4eGVgJGREUYuFHj9xTamJ4dvP3oy9+FiLrF3uWCSCqRTIdXlbrZjd1lvfU3R4craXWEmk6GlpeVmLYeGhvjq2zNrXPVccTQ/evfi5bP3ZK+Oblads6taJpNZ8/0Dy3R3nlDQL+wAAAAASUVORK5CYII="},43348:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAG6SURBVDiNpZI9a1NRHIefc+45J0l7E1NaF4cE0cHMClYQRRCh38DNIfoBxMXFFl06CRb0CxTBSQdBRAcXsUN9AUGQijaggihe01ybmzT3vDiIIpirFv/r7+Hh/yZCCPxPyaLgwurZ68dutwbH7+xLll8tXSviRFEHJ+/N+bndJ8TIDXmePLFXD9/U2+rg6cfHwushpYri5cYLVcQVBrl3fN3KEFIycq4I+ykQQATYH4F1nnQ0QCDI7W8CBTggKID23fZiJ+2ce/ThoTKRwqgIHUmyfIgUgi2XM3urGSpaUzGa/TsP2UatefnM3oXzIoSAXtSfTx84NU3kCJFHSPFd4FOkENRVHSkVJWKSfo80+0I+uZ7cOPpsRgFYa1lPOiij0OWIWilGS0HfbRJJ0EGTjTLWkjf0BgOmTJUZM/plB575+68fXEGhUaCVxEQRs80Wk8aw8naVslaUlKIaK7RJc2vVPPzhD8pLOhzZ02JqosxKZ4137Z4YxxX+gfOe3OVIAbn3fz3jWMGnzR5BeKzbtuCibMT18L7bFd1+Tmx32PFc4QgL/uB0dRkY7ppobNR87VKRoHCJ/1rfAF8ir6zXPA5QAAAAAElFTkSuQmCC"},59636:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABuwAAAbsBOuzj4gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIXSURBVDiNpZM9aBNxGMafN80Rm49ekktS83H5IMHSUjscFcGCtQg1iRA1OAtOgmBHiVvq1EEIFB0c0r0IpVwWFx0MOIggaIci2FaTq2LtqW1MyeV6f6cLZ9pF+oz/931+PC8Pf2KM4SSyncjdD1ghkt7cvvV9leNy/YurHJf78OB+c4VIOhawTCT5J8denRkdC0aLWfkZUdYyy4Wz03I8GIyevjJdX7ZAegANWEpOnncdNLcRS47aw/lLtSpRvkJ0zXn5Qk0cmbC3txrIzOadGrBk+uwWQGmt/rKWHD9nB7MhEE7ZNy625F3DoNlExqY2FAw4Hfj24r2uASXTR9YWnhJlh0eickzMcIbGYPO6ccAMODsGHIkItt6+7irvPhbuMPb8WAAALBJlI5lhORKMcocagRwO6KyDr8qn7s6XX4U5i/mfE0x1AGhaF/r6OvSfbRCAAZ8TzHMKnf7l/gQLRFkxIcjj+x0OagttvxsEYFBtAX431jyD3cbnnULJkqLXwjxRTkxF5KmWzglqCy7Biyc8zxZ5L3MFfBDUFqb+HHJiOi4v8PzVIwAWDz2eGfJyod3fcAf8qHh5Q9hUir7N5s0KzxvuoIDQDxUzniGOF8VHvdiMMTDGUAakaiK2p0hnWTmd0ueA6+bsLlCcT6d0RZpg1URsrwxI5qwHMCEPM9GNe8AN67sJqedz21YzY+xojf+rE//Gv3sS6xhM1kjhAAAAAElFTkSuQmCC"},65230:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACGUlEQVQ4y52TTUhUcRTFf//3n/FjZsxmQsOvmtJF5VQ6i3IsaaJcVIs24UKIIKRNuGrboihaRWQptbVtmLvCWgyZWJRlNimUaKajMH1gWprzfO/dFiYozgR54WzuPedwOZcL/6jDtXjq68hlPRXejRqM0TPwhK51Gdy6QoNM5oqTyHFaLnP8v8TRCFmJPobly0GRZI2MvSBeX4dOxzXSNZsaaS4pLqrA8IMuYOuWwtDpUzSl46pohOxohGhVJdVlxVQHNlJdVuorN7L3GSjvEkt+4iy8sscTc8PTM7ydmKJ/YIg3sV6eqjvXOH+uUbWii8EVBJUPKu22IBbILFgjYCdpa5czem6eeHiXOlAQcG8TXY7gQkRlgEbEjZhj9MdTD1vbuajHEljjkzwI7zSP+H2zJaiiJbLDWtgOznwfQx9+dF+66Zzs6ialAYbHMJNf6QzvSJ3I81iFqELEUWtg/37PyGjy9dU251jnY36tukJHl3yP9cpd23SwLZUepkPPS27ffyQzyzrXyow2bTBKbcuLs6iWU1s+1t8Mvfh9RtlKzSqDgE8HHdsDpiDmFJL6BBio7CAqqwixPPi9OpjRINdlBBdnP4OM8G16Yep53GpR4K7dO9gcyB/djDLIcRmZDcQy8sYn5j8+G1i83hEz7/W+s1MANSF9o+GoffZQlfuCWIYv4w9EQq78PRXayDQPbdd6f6XesLL3By3z9hHiEQ65AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDEwLTAyLTExVDAxOjIwOjIxLTA2OjAwtZnToAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAwNi0xMC0wMVQwMDo1NjoyNi0wNTowMJWSAJ0AAAAASUVORK5CYII="},98388:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACJUlEQVQ4jaWTO2hVQRCGv5k959yb+zg3MUQNEt+QwlejkCIRAhEhBGxSWAkWksLGgKWNjTYqEhDS24qgQoJWNhGxMWBjIxYKQTQPE9HknrM7FucmxiiiON0u/3z8/8wu/GfJ5sPA+VQP9pVPlyu6/cu8f3L30se5vwacGu+o9hwpPYoTBuNEiBP5bLkN3x6de/YngAIMjLXXOvfFU1nTBrMmZJmRZ9bQWKbH73f3r4vP3exMJl7vHrs2s+vA+l0E0LEnnsianAQrbImgYqiSxiWZvvywe3jhXf6it690L3gbad/pXgFHNwDNNRsxAzMBDFFQFdSBi6glZZnqOZzMGtLvYsECe3+K0FzjbdY08szIM/AZ5Dn43AjBKJWlJkJ/z35HvaEEozZ6pcNtAL4u+bGsyUKeFU3eG8EbwcO2LkfvsZhDxxMqNUUdmCFtdU03AM8nF2dXl/2QDzbvAwQPIUAwqDaErAmihWXnAINyTX4AAGbuLL5cWwlDwKdiHoXYabEVn7cyu2LU5bo2fgIAPL21MEuwIVHWAJKStGYB3lsLKgjQVvsNACBK9IIIJRGI4laUYFhoOVBAoJJq+gvgzPWuq6JcFCmEqlI0tiIVbwRUoNIoHESbAS4SFyeF9aQkrH4zPrz3LC8IlXqgmipRDC4CdazAls8EcOJsfUdbXTsqqaa1dm1U2zVNO7WRdro07dK0rapp5HjzeHJ58sGNJdva/8/1HRdPyP0VYmT/AAAAAElFTkSuQmCC"},82777:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACnklEQVQ4jY2SX0hTYRjG39VEQl2RN2UXZQRFd0EIEUH/BhVBZCSEeFMpQSgVjc3/VhSCXUSBWSG5bipDU1IoCVEa6JTUzvGsZrP5Z9NtHre5qZubO0/fNylqDOqFh8P5OO/vfb73PES8UjYQnagh0g2TSi9kkF7Qkl7MZc9slV4kKuogyj5IyYs35xtJZRA16wxiQ3qlFNY+s+NM0wR21loVdm5Wl4o5HE67jycBHL7Bp2rYh8PFbU74l6NYjSlxxRQFraIfmbcsoZQyUUvX+4nSMhMA7JA1N/DmSHQVzkAMdp+C6QUF7kUF4WgM/ROLSCkbdTOHGjpQmADQf8ngtueDYXyXoxhxrcLiiWFsPgabl8NicXDBqymoDEIRnXuYCBC0x56MI7gUQvePFZgmV2B2RDA0E8HIbDQud2AFxgEZbLHP6UJjIkDMPd04DtkfRItlCR3WZXTZOCyEHvua7PIyXn+e44DmJAAhe/u9r4rP70ezuADjSAAvhSDejDKgFESrJQiXN4DyTgcH1FB+UwJAN8RdmF/0OWF1yKg3e/Go34fHAz48HfRh0O6F7PVj7/0xsCWWsIFE+/P/AJx9wF3kbKqWQh+EGUzPuGEac6PX6oHN4YHLI6NdWkDdJy82VlsiDJL3N0STRXS1m2VB1KpLR915RhvqeybRZJqCrs2OPXVW3O6WUWvyoeKjjIykkM07iC63cycadp2i+Lb5wvid9WKJhjXdfO+BrmsOJZ1upFdJHHI+ns7fpVpPtOsI0VEd0ak7azrJdK2f7ygvvcoSudLuwiWmi29nkVohhdnArCTZTqht+1hazXFIWqUUKWhxovDdLLbe/cb+inDo34AESGq5FN7Cmw1iH3tX/x/gF6S4l+K2+WS9oOah+glT18LOvPJgZQAAAABJRU5ErkJggg=="},64836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},44517:(e,t,r)=>{"use strict";var n=r(17405),o=r(22773),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},67651:(e,t,r)=>{"use strict";var n=r(74333),o=r(22773),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},59747:(e,t,r)=>{"use strict";var n=r(26633),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},30689:(e,t,r)=>{"use strict";var n=r(96418),o=r(25094),i=r(20341).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},70280:(e,t,r)=>{"use strict";var n=r(76598).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},21141:(e,t,r)=>{"use strict";var n=r(94125),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},2955:(e,t,r)=>{"use strict";var n=r(87181),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},74585:(e,t,r)=>{"use strict";var n=r(32479);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},86348:(e,t,r)=>{"use strict";var n=r(80364).forEach,o=r(61116)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},59140:(e,t,r)=>{"use strict";var n=r(86658),o=r(19710),i=r(12154),a=function(e){return function(t,r,a){var s=n(t),l=i(s);if(0===l)return!e&&-1;var u,c=o(a,l);if(e&&r!=r){for(;l>c;)if((u=s[c++])!=u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},80364:(e,t,r)=>{"use strict";var n=r(69299),o=r(3271),i=r(60586),a=r(69271),s=r(12154),l=r(63918),u=o([].push),c=function(e){var t=1===e,r=2===e,o=3===e,c=4===e,d=6===e,f=7===e,p=5===e||d;return function(h,m,g,y){for(var v,b,w=a(h),x=i(w),S=s(x),_=n(m,g),k=0,E=y||l,C=t?E(h,S):r||f?E(h,0):void 0;S>k;k++)if((p||k in x)&&(b=_(v=x[k],k,w),e))if(t)C[k]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:u(C,v)}else switch(e){case 4:return!1;case 7:u(C,v)}return d?-1:o||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},74502:(e,t,r)=>{"use strict";var n=r(32479),o=r(96418),i=r(59459),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},61116:(e,t,r)=>{"use strict";var n=r(32479);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},98e3:(e,t,r)=>{"use strict";var n=r(24952),o=r(9739),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},50386:(e,t,r)=>{"use strict";var n=r(3271);e.exports=n([].slice)},26402:(e,t,r)=>{"use strict";var n=r(50386),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,s,l=1;l<r;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=o(r/2),c=i(n(e,0,u),t),d=i(n(e,u),t),f=c.length,p=d.length,h=0,m=0;h<f||m<p;)e[h+m]=h<f&&m<p?t(c[h],d[m])<=0?c[h++]:d[m++]:h<f?c[h++]:d[m++];return e};e.exports=i},83225:(e,t,r)=>{"use strict";var n=r(9739),o=r(74333),i=r(87181),a=r(96418)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},63918:(e,t,r)=>{"use strict";var n=r(83225);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},48377:(e,t,r)=>{"use strict";var n=r(96418)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},27579:(e,t,r)=>{"use strict";var n=r(3271),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},24230:(e,t,r)=>{"use strict";var n=r(42066),o=r(17405),i=r(27579),a=r(96418)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},36776:(e,t,r)=>{"use strict";var n=r(25094),o=r(49839),i=r(85640),a=r(69299),s=r(21141),l=r(41838),u=r(4302),c=r(18434),d=r(71620),f=r(70928),p=r(24952),h=r(58157).fastKey,m=r(69933),g=m.set,y=m.getterFor;e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,o){s(e,f),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(o)||u(o,e[c],{that:e,AS_ENTRIES:r})})),f=d.prototype,m=y(t),v=function(e,t,r){var n,o,i=m(e),a=b(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var r,n=m(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=m(this),r=b(this,e);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first===r&&(t.first=n),t.last===r&&(t.last=o),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&o(f,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",o=y(t),i=y(n);c(e,t,(function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,d(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},57902:(e,t,r)=>{"use strict";var n=r(32162),o=r(32451),i=r(3271),a=r(25135),s=r(67089),l=r(58157),u=r(4302),c=r(21141),d=r(17405),f=r(41838),p=r(87181),h=r(32479),m=r(48377),g=r(38565),y=r(23885);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=v?"set":"add",x=o[e],S=x&&x.prototype,_=x,k={},E=function(e){var t=i(S[e]);s(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!d(x)||!(b||S.forEach&&!h((function(){(new x).entries().next()})))))_=r.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var C=new _,P=C[w](b?{}:-0,1)!==C,O=h((function(){C.has(1)})),T=m((function(e){new x(e)})),R=!b&&h((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((_=t((function(e,t){c(e,S);var r=y(new x,e,_);return f(t)||u(t,r[w],{that:r,AS_ENTRIES:v}),r}))).prototype=S,S.constructor=_),(O||R)&&(E("delete"),E("has"),v&&E("get")),(R||P)&&E(w),b&&S.clear&&delete S.clear}return k[e]=_,n({global:!0,constructor:!0,forced:_!==x},k),g(_,e),b||r.setStrong(_,e,v),_}},29726:(e,t,r)=>{"use strict";var n=r(74633),o=r(74730),i=r(67537),a=r(20341);e.exports=function(e,t,r){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},33752:(e,t,r)=>{"use strict";var n=r(96418)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},39159:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},71620:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},25298:(e,t,r)=>{"use strict";var n=r(24952),o=r(20341),i=r(31433);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},31433:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},25508:(e,t,r)=>{"use strict";var n=r(24952),o=r(20341),i=r(31433);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},8448:(e,t,r)=>{"use strict";var n=r(2955),o=r(90319),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},49839:(e,t,r)=>{"use strict";var n=r(51893),o=r(20341);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},67089:(e,t,r)=>{"use strict";var n=r(17405),o=r(20341),i=r(51893),a=r(48213);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},85640:(e,t,r)=>{"use strict";var n=r(67089);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},48213:(e,t,r)=>{"use strict";var n=r(32451),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},47008:(e,t,r)=>{"use strict";var n=r(22773),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},24952:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},82116:(e,t,r)=>{"use strict";var n=r(32451),o=r(87181),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},93409:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},16411:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},75427:(e,t,r)=>{"use strict";var n=r(82116)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},6256:(e,t,r)=>{"use strict";var n=r(70707).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},97384:(e,t,r)=>{"use strict";var n=r(73529),o=r(55089);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},73529:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},6956:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/MSIE|Trident/.test(n)},60700:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},3865:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},55089:(e,t,r)=>{"use strict";var n=r(32451),o=r(27579);e.exports="process"===o(n.process)},20874:(e,t,r)=>{"use strict";var n=r(70707);e.exports=/web0s(?!.*chrome)/i.test(n)},70707:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},59459:(e,t,r)=>{"use strict";var n,o,i=r(32451),a=r(70707),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},18216:(e,t,r)=>{"use strict";var n=r(70707).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},51410:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},32162:(e,t,r)=>{"use strict";var n=r(32451),o=r(67537).f,i=r(25298),a=r(67089),s=r(48213),l=r(29726),u=r(25135);e.exports=function(e,t){var r,c,d,f,p,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(p=o(r,c))&&p.value:r[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(r,c,f,e)}}},32479:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},44896:(e,t,r)=>{"use strict";r(9081);var n=r(5234),o=r(67089),i=r(40387),a=r(32479),s=r(96418),l=r(25298),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!p||!h||r){var m=/./[f],g=t(f,""[e],(function(e,t,r,o,a){var s=t.exec;return s===i||s===c.exec?p&&!a?{done:!0,value:n(m,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(c,f,g[1])}d&&l(c[f],"sham",!0)}},3369:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},83483:(e,t,r)=>{"use strict";var n=r(59117),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},69299:(e,t,r)=>{"use strict";var n=r(21678),o=r(44517),i=r(59117),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},59117:(e,t,r)=>{"use strict";var n=r(32479);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},5428:(e,t,r)=>{"use strict";var n=r(3271),o=r(44517),i=r(87181),a=r(74633),s=r(50386),l=r(59117),u=Function,c=n([].concat),d=n([].join),f={},p=function(e,t,r){if(!a(f,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";f[t]=u("C,a","return new C("+d(n,",")+")")}return f[t](e,r)};e.exports=l?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),a=function(){var r=c(n,s(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},5234:(e,t,r)=>{"use strict";var n=r(59117),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},74251:(e,t,r)=>{"use strict";var n=r(24952),o=r(74633),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},48891:(e,t,r)=>{"use strict";var n=r(3271),o=r(44517);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},21678:(e,t,r)=>{"use strict";var n=r(27579),o=r(3271);e.exports=function(e){if("Function"===n(e))return o(e)}},3271:(e,t,r)=>{"use strict";var n=r(59117),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},24289:(e,t,r)=>{"use strict";var n=r(32451),o=r(17405),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},44128:(e,t,r)=>{"use strict";var n=r(24230),o=r(37961),i=r(41838),a=r(78230),s=r(96418)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},599:(e,t,r)=>{"use strict";var n=r(5234),o=r(44517),i=r(2955),a=r(22773),s=r(44128),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},44291:(e,t,r)=>{"use strict";var n=r(3271),o=r(9739),i=r(17405),a=r(27579),s=r(73247),l=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?l(r,u):"number"!=typeof u&&"Number"!==a(u)&&"String"!==a(u)||l(r,s(u))}var c=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var n=0;n<c;n++)if(r[n]===e)return t}}}},37961:(e,t,r)=>{"use strict";var n=r(44517),o=r(41838);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},93315:(e,t,r)=>{"use strict";var n=r(3271),o=r(69271),i=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,f){var p=r+e.length,h=n.length,m=c;return void 0!==d&&(d=o(d),m=u),s(f,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>h){var f=i(c/10);return 0===f?o:f<=h?void 0===n[f-1]?a(s,1):n[f-1]+a(s,1):o}u=n[c-1]}return void 0===u?"":u}))}},32451:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},74633:(e,t,r)=>{"use strict";var n=r(3271),o=r(69271),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},99295:e=>{"use strict";e.exports={}},14735:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},29227:(e,t,r)=>{"use strict";var n=r(24289);e.exports=n("document","documentElement")},8338:(e,t,r)=>{"use strict";var n=r(24952),o=r(32479),i=r(82116);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},60586:(e,t,r)=>{"use strict";var n=r(3271),o=r(32479),i=r(27579),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},23885:(e,t,r)=>{"use strict";var n=r(17405),o=r(87181),i=r(70210);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6273:(e,t,r)=>{"use strict";var n=r(3271),o=r(17405),i=r(19321),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},58157:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(99295),a=r(87181),s=r(74633),l=r(20341).f,u=r(6076),c=r(93982),d=r(39483),f=r(66871),p=r(3369),h=!1,m=f("meta"),g=0,y=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=u.f,t=o([].splice),r={};r[m]=1,e(r).length&&(u.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===m){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&d(e)&&!s(e,m)&&y(e),e}};i[m]=!0},69933:(e,t,r)=>{"use strict";var n,o,i,a=r(75237),s=r(32451),l=r(87181),u=r(25298),c=r(74633),d=r(19321),f=r(69683),p=r(99295),h=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(c(e,y))throw new h("Object already initialized");return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},45812:(e,t,r)=>{"use strict";var n=r(96418),o=r(78230),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},9739:(e,t,r)=>{"use strict";var n=r(27579);e.exports=Array.isArray||function(e){return"Array"===n(e)}},17405:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},74333:(e,t,r)=>{"use strict";var n=r(3271),o=r(32479),i=r(17405),a=r(24230),s=r(24289),l=r(6273),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),p=!d.test(u),h=function(e){if(!i(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},25135:(e,t,r)=>{"use strict";var n=r(32479),o=r(17405),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},41838:e=>{"use strict";e.exports=function(e){return null==e}},87181:(e,t,r)=>{"use strict";var n=r(17405);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},26633:(e,t,r)=>{"use strict";var n=r(87181);e.exports=function(e){return n(e)||null===e}},87138:e=>{"use strict";e.exports=!1},53340:(e,t,r)=>{"use strict";var n=r(87181),o=r(27579),i=r(96418)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},76796:(e,t,r)=>{"use strict";var n=r(24289),o=r(17405),i=r(94125),a=r(68429),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},4302:(e,t,r)=>{"use strict";var n=r(69299),o=r(5234),i=r(2955),a=r(22773),s=r(45812),l=r(12154),u=r(94125),c=r(599),d=r(44128),f=r(71635),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,y,v,b,w,x,S,_=r&&r.that,k=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),O=n(t,_),T=function(e){return g&&f(g,"normal",e),new h(!0,e)},R=function(e){return k?(i(e),P?O(e[0],e[1],T):O(e[0],e[1])):P?O(e,T):O(e)};if(E)g=e.iterator;else if(C)g=e;else{if(!(y=d(e)))throw new p(a(e)+" is not iterable");if(s(y)){for(v=0,b=l(e);b>v;v++)if((w=R(e[v]))&&u(m,w))return w;return new h(!1)}g=c(e,y)}for(x=E?e.next:g.next;!(S=o(x,g)).done;){try{w=R(S.value)}catch(e){f(g,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},71635:(e,t,r)=>{"use strict";var n=r(5234),o=r(2955),i=r(37961);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},13653:(e,t,r)=>{"use strict";var n=r(78607).IteratorPrototype,o=r(25094),i=r(31433),a=r(38565),s=r(78230),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,c,!1,!0),s[c]=l,e}},18434:(e,t,r)=>{"use strict";var n=r(32162),o=r(5234),i=r(87138),a=r(74251),s=r(17405),l=r(13653),u=r(96666),c=r(70210),d=r(38565),f=r(25298),p=r(67089),h=r(96418),m=r(78230),g=r(78607),y=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),S=function(){return this};e.exports=function(e,t,r,a,h,g,_){l(r,t,a);var k,E,C,P=function(e){if(e===h&&M)return M;if(!w&&e&&e in R)return R[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",T=!1,R=e.prototype,A=R[x]||R["@@iterator"]||h&&R[h],M=!w&&A||P(h),j="Array"===t&&R.entries||A;if(j&&(k=u(j.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===b||(c?c(k,b):s(k[x])||p(k,x,S)),d(k,O,!0,!0),i&&(m[O]=S)),y&&"values"===h&&A&&"values"!==A.name&&(!i&&v?f(R,"name","values"):(T=!0,M=function(){return o(A,this)})),h)if(E={values:P("values"),keys:g?M:P("keys"),entries:P("entries")},_)for(C in E)(w||T||!(C in R))&&p(R,C,E[C]);else n({target:t,proto:!0,forced:w||T},E);return i&&!_||R[x]===M||p(R,x,M,{name:h}),m[t]=M,E}},78607:(e,t,r)=>{"use strict";var n,o,i,a=r(32479),s=r(17405),l=r(87181),u=r(25094),c=r(96666),d=r(67089),f=r(96418),p=r(87138),h=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(n=o):m=!0),!l(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[h])||d(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},78230:e=>{"use strict";e.exports={}},12154:(e,t,r)=>{"use strict";var n=r(9641);e.exports=function(e){return n(e.length)}},51893:(e,t,r)=>{"use strict";var n=r(3271),o=r(32479),i=r(17405),a=r(74633),s=r(24952),l=r(74251).CONFIGURABLE,u=r(6273),c=r(69933),d=c.enforce,f=c.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||u(this)}),"toString")},21797:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},8783:(e,t,r)=>{"use strict";var n,o,i,a,s,l=r(32451),u=r(3318),c=r(69299),d=r(98743).set,f=r(16986),p=r(3865),h=r(60700),m=r(20874),g=r(55089),y=l.MutationObserver||l.WebKitMutationObserver,v=l.document,b=l.process,w=l.Promise,x=u("queueMicrotask");if(!x){var S=new f,_=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&n(),e}e&&e.enter()};p||g||m||!y||!v?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),n=function(){s(_)}):g?n=function(){b.nextTick(_)}:(d=c(d,l),n=function(){d(_)}):(o=!0,i=v.createTextNode(""),new y(_).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(e){S.head||n(),S.add(e)}}e.exports=x},21128:(e,t,r)=>{"use strict";var n=r(44517),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},31730:(e,t,r)=>{"use strict";var n=r(53340),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},25094:(e,t,r)=>{"use strict";var n,o=r(2955),i=r(79203),a=r(51410),s=r(99295),l=r(29227),u=r(82116),c=r(69683),d=c("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&n?h(n):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(n);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[d]=e):r=m(),void 0===t?r:i.f(r,t)}},79203:(e,t,r)=>{"use strict";var n=r(24952),o=r(22916),i=r(20341),a=r(2955),s=r(86658),l=r(32005);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,r=o[c++],n[r]);return e}},20341:(e,t,r)=>{"use strict";var n=r(24952),o=r(8338),i=r(22916),a=r(2955),s=r(50514),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=c(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},67537:(e,t,r)=>{"use strict";var n=r(24952),o=r(5234),i=r(67109),a=r(31433),s=r(86658),l=r(50514),u=r(74633),c=r(8338),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},93982:(e,t,r)=>{"use strict";var n=r(27579),o=r(86658),i=r(6076).f,a=r(50386),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},6076:(e,t,r)=>{"use strict";var n=r(67530),o=r(51410).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},93188:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},96666:(e,t,r)=>{"use strict";var n=r(74633),o=r(17405),i=r(69271),a=r(69683),s=r(39159),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},39483:(e,t,r)=>{"use strict";var n=r(32479),o=r(87181),i=r(27579),a=r(74585),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},94125:(e,t,r)=>{"use strict";var n=r(3271);e.exports=n({}.isPrototypeOf)},67530:(e,t,r)=>{"use strict";var n=r(3271),o=r(74633),i=r(86658),a=r(59140).indexOf,s=r(99295),l=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,c=[];for(r in n)!o(s,r)&&o(n,r)&&l(c,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},32005:(e,t,r)=>{"use strict";var n=r(67530),o=r(51410);e.exports=Object.keys||function(e){return n(e,o)}},67109:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},70210:(e,t,r)=>{"use strict";var n=r(48891),o=r(87181),i=r(24915),a=r(59747);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),a(n),o(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},71447:(e,t,r)=>{"use strict";var n=r(24952),o=r(32479),i=r(3271),a=r(96666),s=r(32005),l=r(86658),u=i(r(67109).f),c=i([].push),d=n&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),f=function(e){return function(t){for(var r,o=l(t),i=s(o),f=d&&null===a(o),p=i.length,h=0,m=[];p>h;)r=i[h++],n&&!(f?r in o:u(o,r))||c(m,e?[r,o[r]]:o[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},69267:(e,t,r)=>{"use strict";var n=r(42066),o=r(24230);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},90319:(e,t,r)=>{"use strict";var n=r(5234),o=r(17405),i=r(87181),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},74730:(e,t,r)=>{"use strict";var n=r(24289),o=r(3271),i=r(6076),a=r(93188),s=r(2955),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},70992:(e,t,r)=>{"use strict";var n=r(32451);e.exports=n},62686:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},39508:(e,t,r)=>{"use strict";var n=r(32451),o=r(9967),i=r(17405),a=r(25135),s=r(6273),l=r(96418),u=r(97384),c=r(73529),d=r(87138),f=r(59459),p=o&&o.prototype,h=l("species"),m=!1,g=i(n.PromiseRejectionEvent),y=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(d&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(u||c)&&!g}));e.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:m}},9967:(e,t,r)=>{"use strict";var n=r(32451);e.exports=n.Promise},16181:(e,t,r)=>{"use strict";var n=r(2955),o=r(87181),i=r(21128);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},62221:(e,t,r)=>{"use strict";var n=r(9967),o=r(48377),i=r(39508).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},16986:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},74355:(e,t,r)=>{"use strict";var n=r(5234),o=r(2955),i=r(17405),a=r(27579),s=r(40387),l=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},40387:(e,t,r)=>{"use strict";var n,o,i=r(5234),a=r(3271),s=r(73247),l=r(32754),u=r(62616),c=r(4999),d=r(25094),f=r(69933).get,p=r(19980),h=r(49932),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,v=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),S=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),_=u.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||_||p||h)&&(y=function(e){var t,r,n,o,a,u,c,p=this,h=f(p),E=s(e),C=h.raw;if(C)return C.lastIndex=p.lastIndex,t=i(y,C,E),p.lastIndex=C.lastIndex,t;var P=h.groups,O=_&&p.sticky,T=i(l,p),R=p.source,A=0,M=E;if(O&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),M=x(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==v(E,p.lastIndex-1))&&(R="(?: "+R+")",M=" "+M,A++),r=new RegExp("^(?:"+R+")",T)),k&&(r=new RegExp("^"+R+"$(?!\\s)",T)),S&&(n=p.lastIndex),o=i(g,O?r:p,M),O?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:S&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),k&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&P)for(o.groups=u=d(null),a=0;a<P.length;a++)u[(c=P[a])[0]]=o[c[1]];return o}),e.exports=y},32754:(e,t,r)=>{"use strict";var n=r(2955);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},98017:(e,t,r)=>{"use strict";var n=r(5234),o=r(74633),i=r(94125),a=r(32754),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},62616:(e,t,r)=>{"use strict";var n=r(32479),o=r(32451).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},19980:(e,t,r)=>{"use strict";var n=r(32479),o=r(32451).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},49932:(e,t,r)=>{"use strict";var n=r(32479),o=r(32451).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},24915:(e,t,r)=>{"use strict";var n=r(41838),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},3318:(e,t,r)=>{"use strict";var n=r(32451),o=r(24952),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},70928:(e,t,r)=>{"use strict";var n=r(24289),o=r(49839),i=r(96418),a=r(24952),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},38565:(e,t,r)=>{"use strict";var n=r(20341).f,o=r(74633),i=r(96418)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},69683:(e,t,r)=>{"use strict";var n=r(4999),o=r(66871),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},19321:(e,t,r)=>{"use strict";var n=r(87138),o=r(32451),i=r(48213),a=e.exports=o["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4999:(e,t,r)=>{"use strict";var n=r(19321);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},58343:(e,t,r)=>{"use strict";var n=r(2955),o=r(67651),i=r(41838),a=r(96418)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},76598:(e,t,r)=>{"use strict";var n=r(3271),o=r(65815),i=r(73247),a=r(24915),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=i(a(t)),f=o(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=l(d,f))<55296||n>56319||f+1===p||(c=l(d,f+1))<56320||c>57343?e?s(d,f):n:e?u(d,f,f+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},82834:(e,t,r)=>{"use strict";var n=r(3271),o=r(24915),i=r(73247),a=r(28628),s=n("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},41414:(e,t,r)=>{"use strict";var n=r(59459),o=r(32479),i=r(32451).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},77416:(e,t,r)=>{"use strict";var n=r(5234),o=r(24289),i=r(96418),a=r(67089);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},81836:(e,t,r)=>{"use strict";var n=r(41414);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},98743:(e,t,r)=>{"use strict";var n,o,i,a,s=r(32451),l=r(83483),u=r(69299),c=r(17405),d=r(74633),f=r(32479),p=r(29227),h=r(50386),m=r(82116),g=r(42289),y=r(3865),v=r(55089),b=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,_=s.Function,k=s.MessageChannel,E=s.String,C=0,P={};f((function(){n=s.location}));var O=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},T=function(e){return function(){O(e)}},R=function(e){O(e.data)},A=function(e){s.postMessage(E(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){g(arguments.length,1);var t=c(e)?e:_(e),r=h(arguments,1);return P[++C]=function(){l(t,void 0,r)},o(C),C},w=function(e){delete P[e]},v?o=function(e){x.nextTick(T(e))}:S&&S.now?o=function(e){S.now(T(e))}:k&&!y?(a=(i=new k).port2,i.port1.onmessage=R,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(A)?(o=A,s.addEventListener("message",R,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},37130:(e,t,r)=>{"use strict";var n=r(3271);e.exports=n(1..valueOf)},19710:(e,t,r)=>{"use strict";var n=r(65815),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},86658:(e,t,r)=>{"use strict";var n=r(60586),o=r(24915);e.exports=function(e){return n(o(e))}},65815:(e,t,r)=>{"use strict";var n=r(21797);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9641:(e,t,r)=>{"use strict";var n=r(65815),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},69271:(e,t,r)=>{"use strict";var n=r(24915),o=Object;e.exports=function(e){return o(n(e))}},96492:(e,t,r)=>{"use strict";var n=r(5234),o=r(87181),i=r(76796),a=r(37961),s=r(90319),l=r(96418),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},50514:(e,t,r)=>{"use strict";var n=r(96492),o=r(76796);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},42066:(e,t,r)=>{"use strict";var n={};n[r(96418)("toStringTag")]="z",e.exports="[object z]"===String(n)},73247:(e,t,r)=>{"use strict";var n=r(24230),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},22773:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},66871:(e,t,r)=>{"use strict";var n=r(3271),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},68429:(e,t,r)=>{"use strict";var n=r(41414);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},22916:(e,t,r)=>{"use strict";var n=r(24952),o=r(32479);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},42289:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},75237:(e,t,r)=>{"use strict";var n=r(32451),o=r(17405),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},82318:(e,t,r)=>{"use strict";var n=r(70992),o=r(74633),i=r(66717),a=r(20341).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},66717:(e,t,r)=>{"use strict";var n=r(96418);t.f=n},96418:(e,t,r)=>{"use strict";var n=r(32451),o=r(4999),i=r(74633),a=r(66871),s=r(41414),l=r(68429),u=n.Symbol,c=o("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},28628:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},48888:(e,t,r)=>{"use strict";var n=r(32162),o=r(32479),i=r(9739),a=r(87181),s=r(69271),l=r(12154),u=r(93409),c=r(25508),d=r(63918),f=r(74502),p=r(96418),h=r(59459),m=p("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),f=d(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(y(i=-1===t?a:arguments[t]))for(o=l(i),u(p+o),r=0;r<o;r++,p++)r in i&&c(f,p,i[r]);else u(p+1),c(f,p++,i);return f.length=p,f}})},2458:(e,t,r)=>{"use strict";var n=r(32162),o=r(80364).filter;n({target:"Array",proto:!0,forced:!r(74502)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},3925:(e,t,r)=>{"use strict";var n=r(32162),o=r(80364).find,i=r(30689),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},17554:(e,t,r)=>{"use strict";var n=r(32162),o=r(59140).includes,i=r(32479),a=r(30689);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54458:(e,t,r)=>{"use strict";var n=r(86658),o=r(30689),i=r(78230),a=r(69933),s=r(20341).f,l=r(18434),u=r(71620),c=r(87138),d=r(24952),f=a.set,p=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},65273:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(60586),a=r(86658),s=r(61116),l=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},72870:(e,t,r)=>{"use strict";var n=r(32162),o=r(80364).map;n({target:"Array",proto:!0,forced:!r(74502)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},45872:(e,t,r)=>{"use strict";var n=r(32162),o=r(9739),i=r(74333),a=r(87181),s=r(19710),l=r(12154),u=r(86658),c=r(25508),d=r(96418),f=r(74502),p=r(50386),h=f("slice"),m=d("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,d,f=u(this),h=l(f),v=s(e,h),b=s(void 0===t?h:t,h);if(o(f)&&(r=f.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return p(f,v,b);for(n=new(void 0===r?g:r)(y(b-v,0)),d=0;v<b;v++,d++)v in f&&c(n,d,f[v]);return n.length=d,n}})},91756:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(44517),a=r(69271),s=r(12154),l=r(47008),u=r(73247),c=r(32479),d=r(26402),f=r(61116),p=r(6256),h=r(6956),m=r(59459),g=r(18216),y=[],v=o(y.sort),b=o(y.push),w=c((function(){y.sort(void 0)})),x=c((function(){y.sort(null)})),S=f("sort"),_=!c((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)y.push({k:t+n,v:r})}for(y.sort((function(e,t){return t.v-e.v})),n=0;n<y.length;n++)t=y[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!x||!S||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var r,n,o=[],c=s(t);for(n=0;n<c;n++)n in t&&b(o,t[n]);for(d(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:u(t)>u(r)?1:-1}}(e)),r=s(o),n=0;n<r;)t[n]=o[n++];for(;n<c;)l(t,n++);return t}})},15796:(e,t,r)=>{"use strict";var n=r(32162),o=r(69271),i=r(19710),a=r(65815),s=r(12154),l=r(98e3),u=r(93409),c=r(63918),d=r(25508),f=r(47008),p=r(74502)("splice"),h=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,g,y,v,b=o(this),w=s(b),x=i(e,w),S=arguments.length;for(0===S?r=n=0:1===S?(r=0,n=w-x):(r=S-2,n=m(h(a(t),0),w-x)),u(w+r-n),p=c(b,n),g=0;g<n;g++)(y=x+g)in b&&d(p,g,b[y]);if(p.length=n,r<n){for(g=x;g<w-n;g++)v=g+r,(y=g+n)in b?b[v]=b[y]:f(b,v);for(g=w;g>w-n+r;g--)f(b,g-1)}else if(r>n)for(g=w-n;g>x;g--)v=g+r-1,(y=g+n-1)in b?b[v]=b[y]:f(b,v);for(g=0;g<r;g++)b[g+x]=arguments[g+2];return l(b,w-n+r),p}})},4099:(e,t,r)=>{"use strict";var n=r(74633),o=r(67089),i=r(8448),a=r(96418)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},40454:(e,t,r)=>{"use strict";var n=r(24952),o=r(74251).EXISTS,i=r(3271),a=r(49839),s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},63322:(e,t,r)=>{"use strict";var n=r(32162),o=r(32451);n({global:!0,forced:o.globalThis!==o},{globalThis:o})},17767:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(83483),a=r(5234),s=r(3271),l=r(32479),u=r(17405),c=r(76796),d=r(50386),f=r(44291),p=r(41414),h=String,m=o("JSON","stringify"),g=s(/./.exec),y=s("".charAt),v=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,k=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),C=function(e,t){var r=d(arguments),n=f(t);if(u(n)||void 0!==e&&!c(e))return r[1]=function(e,t){if(u(n)&&(t=a(n,this,h(e),t)),!c(t))return t},i(m,null,r)},P=function(e,t,r){var n=y(r,t-1),o=y(r,t+1);return g(S,e)&&!g(_,o)||g(_,e)&&!g(S,n)?"\\u"+w(v(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(e,t,r){var n=d(arguments),o=i(k?C:m,null,n);return E&&"string"==typeof o?b(o,x,P):o}})},17299:(e,t,r)=>{"use strict";var n=r(32451);r(38565)(n.JSON,"JSON",!0)},69590:(e,t,r)=>{"use strict";r(57902)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(36776))},7517:(e,t,r)=>{"use strict";r(69590)},12766:(e,t,r)=>{"use strict";r(38565)(Math,"Math",!0)},75397:(e,t,r)=>{"use strict";var n=r(32162),o=r(87138),i=r(24952),a=r(32451),s=r(70992),l=r(3271),u=r(25135),c=r(74633),d=r(23885),f=r(94125),p=r(76796),h=r(96492),m=r(32479),g=r(6076).f,y=r(67537).f,v=r(20341).f,b=r(37130),w=r(82834).trim,x=a.Number,S=s.Number,_=x.prototype,k=a.TypeError,E=l("".slice),C=l("".charCodeAt),P=function(e){var t=h(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,r,n,o,i,a,s,l,u=h(e,"number");if(p(u))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=C(u,0))||45===t){if(88===(r=C(u,2))||120===r)return NaN}else if(48===t){switch(C(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=E(u,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>o)return NaN;return parseInt(i,n)}return+u},T=u("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),R=function(e){return f(_,e)&&m((function(){b(e)}))},A=function(e){var t=arguments.length<1?0:x(P(e));return R(this)?d(Object(t),this,A):t};A.prototype=_,T&&!o&&(_.constructor=A),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var M=function(e,t){for(var r,n=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)c(t,r=n[o])&&!c(e,r)&&v(e,r,y(t,r))};o&&S&&M(s.Number,S),(T||o)&&M(s.Number,x)},93900:(e,t,r)=>{"use strict";var n=r(32162),o=r(41414),i=r(32479),a=r(93188),s=r(69271);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},20539:(e,t,r)=>{"use strict";var n=r(32162),o=r(32479),i=r(69271),a=r(96666),s=r(39159);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},10373:(e,t,r)=>{"use strict";var n=r(32162),o=r(69271),i=r(32005);n({target:"Object",stat:!0,forced:r(32479)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},45195:(e,t,r)=>{"use strict";var n=r(42066),o=r(67089),i=r(69267);n||o(Object.prototype,"toString",i,{unsafe:!0})},13090:(e,t,r)=>{"use strict";var n=r(32162),o=r(71447).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},65716:(e,t,r)=>{"use strict";var n=r(32162),o=r(5234),i=r(44517),a=r(21128),s=r(62686),l=r(4302);n({target:"Promise",stat:!0,forced:r(62221)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=i(t.resolve),a=[],s=0,c=1;l(e,(function(e){var i=s++,l=!1;c++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--c||n(a))}),u)})),--c||n(a)}));return c.error&&u(c.value),r.promise}})},79901:(e,t,r)=>{"use strict";var n=r(32162),o=r(87138),i=r(39508).CONSTRUCTOR,a=r(9967),s=r(24289),l=r(17405),u=r(67089),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var d=s("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},54083:(e,t,r)=>{"use strict";var n,o,i,a=r(32162),s=r(87138),l=r(55089),u=r(32451),c=r(5234),d=r(67089),f=r(70210),p=r(38565),h=r(70928),m=r(44517),g=r(17405),y=r(87181),v=r(21141),b=r(58343),w=r(98743).set,x=r(8783),S=r(14735),_=r(62686),k=r(16986),E=r(69933),C=r(9967),P=r(39508),O=r(21128),T=P.CONSTRUCTOR,R=P.REJECTION_EVENT,A=P.SUBCLASSING,M=E.getterFor("Promise"),j=E.set,I=C&&C.prototype,D=C,N=I,L=u.TypeError,Z=u.document,F=u.process,B=O.f,V=B,z=!!(Z&&Z.createEvent&&u.dispatchEvent),W=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},U=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&q(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?u(new L("Promise-chain cycle")):(n=W(r))?c(n,r,l,u):l(r)):u(i)}catch(e){d&&!o&&d.exit(),u(e)}},$=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)U(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},H=function(e,t,r){var n,o;z?((n=Z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!R&&(o=u["on"+e])?o(n):"unhandledrejection"===e&&S("Unhandled promise rejection",r)},Y=function(e){c(w,u,(function(){var t,r=e.facade,n=e.value;if(G(e)&&(t=_((function(){l?F.emit("unhandledRejection",n,r):H("unhandledrejection",r,n)})),e.rejection=l||G(e)?2:1,t.error))throw t.value}))},G=function(e){return 1!==e.rejection&&!e.parent},q=function(e){c(w,u,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):H("rejectionhandled",t,e.value)}))},K=function(e,t,r){return function(n){e(t,n,r)}},X=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$(e,!0))},Q=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=W(t);n?x((function(){var r={done:!1};try{c(n,t,K(Q,r,e),K(X,r,e))}catch(t){X(r,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){X({done:!1},t,e)}}};if(T&&(N=(D=function(e){v(this,N),m(e),c(n,this);var t=M(this);try{e(K(Q,t),K(X,t))}catch(e){X(t,e)}}).prototype,(n=function(e){j(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(N,"then",(function(e,t){var r=M(this),n=B(b(this,D));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?F.domain:void 0,0===r.state?r.reactions.add(n):x((function(){U(n,r)})),n.promise})),o=function(){var e=new n,t=M(e);this.promise=e,this.resolve=K(Q,t),this.reject=K(X,t)},O.f=B=function(e){return e===D||void 0===e?new o(e):V(e)},!s&&g(C)&&I!==Object.prototype)){i=I.then,A||d(I,"then",(function(e,t){var r=this;return new D((function(e,t){c(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}f&&f(I,N)}a({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:D}),p(D,"Promise",!1,!0),h("Promise")},30695:(e,t,r)=>{"use strict";r(54083),r(65716),r(79901),r(72075),r(49489),r(25548)},72075:(e,t,r)=>{"use strict";var n=r(32162),o=r(5234),i=r(44517),a=r(21128),s=r(62686),l=r(4302);n({target:"Promise",stat:!0,forced:r(62221)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},49489:(e,t,r)=>{"use strict";var n=r(32162),o=r(21128);n({target:"Promise",stat:!0,forced:r(39508).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},25548:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(87138),a=r(9967),s=r(39508).CONSTRUCTOR,l=r(16181),u=o("Promise"),c=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},80528:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(83483),a=r(5428),s=r(67651),l=r(2955),u=r(87181),c=r(25094),d=r(32479),f=o("Reflect","construct"),p=Object.prototype,h=[].push,m=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!d((function(){f((function(){}))})),y=m||g;n({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!m)return f(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,d=c(u(o)?o:p),y=i(e,d,t);return u(y)?y:d}})},9081:(e,t,r)=>{"use strict";var n=r(32162),o=r(40387);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},7741:(e,t,r)=>{"use strict";var n=r(74251).PROPER,o=r(67089),i=r(2955),a=r(73247),s=r(32479),l=r(98017),u=RegExp.prototype,c=u.toString,d=s((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),f=n&&"toString"!==c.name;(d||f)&&o(u,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},9807:(e,t,r)=>{"use strict";r(57902)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(36776))},42781:(e,t,r)=>{"use strict";r(9807)},39385:(e,t,r)=>{"use strict";var n=r(32162),o=r(3271),i=r(31730),a=r(24915),s=r(73247),l=r(33752),u=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},94825:(e,t,r)=>{"use strict";var n=r(76598).charAt,o=r(73247),i=r(69933),a=r(18434),s=r(71620),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},24601:(e,t,r)=>{"use strict";var n=r(83483),o=r(5234),i=r(3271),a=r(44896),s=r(32479),l=r(2955),u=r(17405),c=r(41838),d=r(65815),f=r(9641),p=r(73247),h=r(24915),m=r(70280),g=r(37961),y=r(93315),v=r(74355),b=r(96418)("replace"),w=Math.max,x=Math.min,S=i([].concat),_=i([].push),k=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),P=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=P?"$":"$0";return[function(e,r){var n=h(this),i=c(e)?void 0:g(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===k(o,i)&&-1===k(o,"$<")){var c=r(t,a,s,o);if(c.done)return c.value}var h=u(o);h||(o=p(o));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var C,P=[];null!==(C=v(a,s))&&(_(P,C),b);){""===p(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var O,T="",R=0,A=0;A<P.length;A++){for(var M,j=p((C=P[A])[0]),I=w(x(d(C.index),s.length),0),D=[],N=1;N<C.length;N++)_(D,void 0===(O=C[N])?O:String(O));var L=C.groups;if(h){var Z=S([j],D,I,s);void 0!==L&&_(Z,L),M=p(n(o,void 0,Z))}else M=y(j,s,I,D,L,o);I>=R&&(T+=E(s,R,I)+M,R=I+j.length)}return T+E(s,R)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||P)},73220:(e,t,r)=>{"use strict";var n,o=r(32162),i=r(21678),a=r(67537).f,s=r(9641),l=r(73247),u=r(31730),c=r(24915),d=r(33752),f=r(87138),p=i("".slice),h=Math.min,m=d("startsWith");o({target:"String",proto:!0,forced:!!(f||m||(n=a(String.prototype,"startsWith"),!n||n.writable))&&!m},{startsWith:function(e){var t=l(c(this));u(e);var r=s(h(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return p(t,r,r+n.length)===n}})},85110:(e,t,r)=>{"use strict";r(82318)("asyncIterator")},10359:(e,t,r)=>{"use strict";var n=r(32162),o=r(32451),i=r(5234),a=r(3271),s=r(87138),l=r(24952),u=r(41414),c=r(32479),d=r(74633),f=r(94125),p=r(2955),h=r(86658),m=r(50514),g=r(73247),y=r(31433),v=r(25094),b=r(32005),w=r(6076),x=r(93982),S=r(93188),_=r(67537),k=r(20341),E=r(79203),C=r(67109),P=r(67089),O=r(49839),T=r(4999),R=r(69683),A=r(99295),M=r(66871),j=r(96418),I=r(66717),D=r(82318),N=r(77416),L=r(38565),Z=r(69933),F=r(80364).forEach,B=R("hidden"),V=Z.set,z=Z.getterFor("Symbol"),W=Object.prototype,U=o.Symbol,$=U&&U.prototype,H=o.RangeError,Y=o.TypeError,G=o.QObject,q=_.f,K=k.f,X=x.f,Q=C.f,J=a([].push),ee=T("symbols"),te=T("op-symbols"),re=T("wks"),ne=!G||!G.prototype||!G.prototype.findChild,oe=function(e,t,r){var n=q(W,t);n&&delete W[t],K(e,t,r),n&&e!==W&&K(W,t,n)},ie=l&&c((function(){return 7!==v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?oe:K,ae=function(e,t){var r=ee[e]=v($);return V(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===W&&se(te,t,r),p(e);var n=m(t);return p(r),d(ee,n)?(r.enumerable?(d(e,B)&&e[B][n]&&(e[B][n]=!1),r=v(r,{enumerable:y(0,!1)})):(d(e,B)||K(e,B,y(1,v(null))),e[B][n]=!0),ie(e,n,r)):K(e,n,r)},le=function(e,t){p(e);var r=h(t),n=b(r).concat(fe(r));return F(n,(function(t){l&&!i(ue,r,t)||se(e,t,r[t])})),e},ue=function(e){var t=m(e),r=i(Q,this,t);return!(this===W&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,B)&&this[B][t])||r)},ce=function(e,t){var r=h(e),n=m(t);if(r!==W||!d(ee,n)||d(te,n)){var o=q(r,n);return!o||!d(ee,n)||d(r,B)&&r[B][n]||(o.enumerable=!0),o}},de=function(e){var t=X(h(e)),r=[];return F(t,(function(e){d(ee,e)||d(A,e)||J(r,e)})),r},fe=function(e){var t=e===W,r=X(t?te:h(e)),n=[];return F(r,(function(e){!d(ee,e)||t&&!d(W,e)||J(n,ee[e])})),n};u||(P($=(U=function(){if(f($,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=M(e),r=function(e){var n=void 0===this?o:this;n===W&&i(r,te,e),d(n,B)&&d(n[B],t)&&(n[B][t]=!1);var a=y(1,e);try{ie(n,t,a)}catch(e){if(!(e instanceof H))throw e;oe(n,t,a)}};return l&&ne&&ie(W,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return z(this).tag})),P(U,"withoutSetter",(function(e){return ae(M(e),e)})),C.f=ue,k.f=se,E.f=le,_.f=ce,w.f=x.f=de,S.f=fe,I.f=function(e){return ae(j(e),e)},l&&(O($,"description",{configurable:!0,get:function(){return z(this).description}}),s||P(W,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),F(b(re),(function(e){D(e)})),n({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de}),N(),L(U,"Symbol"),A[B]=!0},14223:(e,t,r)=>{"use strict";var n=r(32162),o=r(24952),i=r(32451),a=r(3271),s=r(74633),l=r(17405),u=r(94125),c=r(73247),d=r(49839),f=r(29726),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(g,p),g.prototype=h,h.constructor=g;var y="Symbol(description detection)"===String(p("description detection")),v=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),S=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=b(e),r=y?S(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},51071:(e,t,r)=>{"use strict";var n=r(32162),o=r(24289),i=r(74633),a=r(73247),s=r(4999),l=r(81836),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,c[r]=t,r}})},58965:(e,t,r)=>{"use strict";r(82318)("iterator")},49361:(e,t,r)=>{"use strict";r(10359),r(51071),r(57627),r(17767),r(93900)},57627:(e,t,r)=>{"use strict";var n=r(32162),o=r(74633),i=r(76796),a=r(22773),s=r(4999),l=r(81836),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},64120:(e,t,r)=>{"use strict";var n=r(82318),o=r(77416);n("toPrimitive"),o()},67483:(e,t,r)=>{"use strict";var n=r(24289),o=r(82318),i=r(38565);o("toStringTag"),i(n("Symbol"),"Symbol")},74289:(e,t,r)=>{"use strict";r(63322)},83500:(e,t,r)=>{"use strict";var n=r(32451),o=r(16411),i=r(75427),a=r(86348),s=r(25298),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(n[u]&&n[u].prototype);l(i)},56270:(e,t,r)=>{"use strict";var n=r(32451),o=r(16411),i=r(75427),a=r(54458),s=r(25298),l=r(38565),u=r(96418)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var f in o)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},10509:(e,t,r)=>{"use strict";var n=r(69985),o=r(23691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},52655:(e,t,r)=>{"use strict";var n=r(19429),o=r(23691),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},23550:(e,t,r)=>{"use strict";var n=r(60598),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},87370:(e,t,r)=>{"use strict";var n=r(44201),o=r(25391),i=r(72560).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},71514:(e,t,r)=>{"use strict";var n=r(10730).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},767:(e,t,r)=>{"use strict";var n=r(23622),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},85027:(e,t,r)=>{"use strict";var n=r(48999),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},11655:(e,t,r)=>{"use strict";var n=r(3689);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},57612:(e,t,r)=>{"use strict";var n=r(2960).forEach,o=r(16834)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},21055:(e,t,r)=>{"use strict";var n=r(54071),o=r(22615),i=r(90690),a=r(71228),s=r(93292),l=r(19429),u=r(6310),c=r(76522),d=r(5185),f=r(91664),p=Array;e.exports=function(e){var t=i(e),r=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=n(m,h>2?arguments[2]:void 0));var y,v,b,w,x,S,_=f(t),k=0;if(!_||this===p&&s(_))for(y=u(t),v=r?new this(y):p(y);y>k;k++)S=g?m(t[k],k):t[k],c(v,k,S);else for(x=(w=d(t,_)).next,v=r?new this:[];!(b=o(x,w)).done;k++)S=g?a(w,m,[b.value,k],!0):b.value,c(v,k,S);return v.length=k,v}},84328:(e,t,r)=>{"use strict";var n=r(65290),o=r(27578),i=r(6310),a=function(e){return function(t,r,a){var s,l=n(t),u=i(l),c=o(a,u);if(e&&r!=r){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,r)=>{"use strict";var n=r(54071),o=r(68844),i=r(94413),a=r(90690),s=r(6310),l=r(27120),u=o([].push),c=function(e){var t=1===e,r=2===e,o=3===e,c=4===e,d=6===e,f=7===e,p=5===e||d;return function(h,m,g,y){for(var v,b,w=a(h),x=i(w),S=s(x),_=n(m,g),k=0,E=y||l,C=t?E(h,S):r||f?E(h,0):void 0;S>k;k++)if((p||k in x)&&(b=_(v=x[k],k,w),e))if(t)C[k]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:u(C,v)}else switch(e){case 4:return!1;case 7:u(C,v)}return d?-1:o||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},29042:(e,t,r)=>{"use strict";var n=r(3689),o=r(44201),i=r(3615),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},16834:(e,t,r)=>{"use strict";var n=r(3689);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},5649:(e,t,r)=>{"use strict";var n=r(67697),o=r(92297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},96004:(e,t,r)=>{"use strict";var n=r(68844);e.exports=n([].slice)},50382:(e,t,r)=>{"use strict";var n=r(96004),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,s,l=1;l<r;){for(s=l,a=e[l];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==l++&&(e[s]=a)}else for(var u=o(r/2),c=i(n(e,0,u),t),d=i(n(e,u),t),f=c.length,p=d.length,h=0,m=0;h<f||m<p;)e[h+m]=h<f&&m<p?t(c[h],d[m])<=0?c[h++]:d[m++]:h<f?c[h++]:d[m++];return e};e.exports=i},25271:(e,t,r)=>{"use strict";var n=r(92297),o=r(19429),i=r(48999),a=r(44201)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===s||n(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},27120:(e,t,r)=>{"use strict";var n=r(25271);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},71228:(e,t,r)=>{"use strict";var n=r(85027),o=r(72125);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},86431:(e,t,r)=>{"use strict";var n=r(44201)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},6648:(e,t,r)=>{"use strict";var n=r(68844),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},50926:(e,t,r)=>{"use strict";var n=r(23043),o=r(69985),i=r(6648),a=r(44201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?r:l?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},70800:(e,t,r)=>{"use strict";var n=r(25391),o=r(62148),i=r(6045),a=r(54071),s=r(767),l=r(981),u=r(18734),c=r(91934),d=r(27807),f=r(14241),p=r(67697),h=r(45375).fastKey,m=r(618),g=m.set,y=m.getterFor;e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,o){s(e,f),g(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(o)||u(o,e[c],{that:e,AS_ENTRIES:r})})),f=d.prototype,m=y(t),v=function(e,t,r){var n,o,i=m(e),a=b(e,t);return a?a.value=r:(i.last=a={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var r,n=m(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===t)return r};return i(f,{clear:function(){for(var e=m(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=n(null),p?e.size=0:this.size=0},delete:function(e){var t=m(this),r=b(this,e);if(r){var n=r.next,o=r.previous;delete t.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),t.first===r&&(t.first=n),t.last===r&&(t.last=o),p?t.size--:this.size--}return!!r},forEach:function(e){for(var t,r=m(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&o(f,"size",{configurable:!0,get:function(){return m(this).size}}),d},setStrong:function(e,t,r){var n=t+" Iterator",o=y(t),i=y(n);c(e,t,(function(e,t){g(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?d("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,d(void 0,!0))}),r?"entries":"values",!r,!0),f(t)}}},20319:(e,t,r)=>{"use strict";var n=r(79989),o=r(19037),i=r(68844),a=r(35266),s=r(11880),l=r(45375),u=r(18734),c=r(767),d=r(69985),f=r(981),p=r(48999),h=r(3689),m=r(86431),g=r(55997),y=r(33457);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=v?"set":"add",x=o[e],S=x&&x.prototype,_=x,k={},E=function(e){var t=i(S[e]);s(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!d(x)||!(b||S.forEach&&!h((function(){(new x).entries().next()})))))_=r.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var C=new _,P=C[w](b?{}:-0,1)!==C,O=h((function(){C.has(1)})),T=m((function(e){new x(e)})),R=!b&&h((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));T||((_=t((function(e,t){c(e,S);var r=y(new x,e,_);return f(t)||u(t,r[w],{that:r,AS_ENTRIES:v}),r}))).prototype=S,S.constructor=_),(O||R)&&(E("delete"),E("has"),v&&E("get")),(R||P)&&E(w),b&&S.clear&&delete S.clear}return k[e]=_,n({global:!0,constructor:!0,forced:_!==x},k),g(_,e),b||r.setStrong(_,e,v),_}},8758:(e,t,r)=>{"use strict";var n=r(36812),o=r(19152),i=r(82474),a=r(72560);e.exports=function(e,t,r){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||l(e,d,u(t,d))}}},27413:(e,t,r)=>{"use strict";var n=r(44201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},81748:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},27807:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},75773:(e,t,r)=>{"use strict";var n=r(67697),o=r(72560),i=r(75684);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},75684:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},76522:(e,t,r)=>{"use strict";var n=r(18360),o=r(72560),i=r(75684);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},81797:(e,t,r)=>{"use strict";var n=r(85027),o=r(35899),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},62148:(e,t,r)=>{"use strict";var n=r(98702),o=r(72560);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},11880:(e,t,r)=>{"use strict";var n=r(69985),o=r(72560),i=r(98702),a=r(95014);e.exports=function(e,t,r,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(n(r)&&i(r,u,s),s.global)l?e[t]=r:a(t,r);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},6045:(e,t,r)=>{"use strict";var n=r(11880);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},95014:(e,t,r)=>{"use strict";var n=r(19037),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},98494:(e,t,r)=>{"use strict";var n=r(23691),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},67697:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},36420:(e,t,r)=>{"use strict";var n=r(19037),o=r(48999),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},55565:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},66338:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},33265:(e,t,r)=>{"use strict";var n=r(36420)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},97365:(e,t,r)=>{"use strict";var n=r(30071).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},72532:(e,t,r)=>{"use strict";var n=r(88563),o=r(50806);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},88563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},37298:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/MSIE|Trident/.test(n)},63221:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},4764:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},50806:(e,t,r)=>{"use strict";var n=r(19037),o=r(6648);e.exports="process"===o(n.process)},27486:(e,t,r)=>{"use strict";var n=r(30071);e.exports=/web0s(?!.*chrome)/i.test(n)},30071:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,r)=>{"use strict";var n,o,i=r(19037),a=r(30071),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},27922:(e,t,r)=>{"use strict";var n=r(30071).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},72739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,r)=>{"use strict";var n=r(19037),o=r(82474).f,i=r(75773),a=r(11880),s=r(95014),l=r(8758),u=r(35266);e.exports=function(e,t){var r,c,d,f,p,h=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[h]||s(h,{}):n[h]&&n[h].prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(p=o(r,c))&&p.value:r[c],!u(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(r,c,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},65773:(e,t,r)=>{"use strict";r(64043);var n=r(22615),o=r(11880),i=r(56308),a=r(3689),s=r(44201),l=r(75773),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return t=!0,null},r[f](""),!t}));if(!p||!h||r){var m=/./[f],g=t(f,""[e],(function(e,t,r,o,a){var s=t.exec;return s===i||s===c.exec?p&&!a?{done:!0,value:n(m,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(c,f,g[1])}d&&l(c[f],"sham",!0)}},71594:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},61735:(e,t,r)=>{"use strict";var n=r(97215),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},54071:(e,t,r)=>{"use strict";var n=r(46576),o=r(10509),i=r(97215),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},97215:(e,t,r)=>{"use strict";var n=r(3689);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},86761:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509),i=r(48999),a=r(36812),s=r(96004),l=r(97215),u=Function,c=n([].concat),d=n([].join),f={},p=function(e,t,r){if(!a(f,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";f[t]=u("C,a","return new C("+d(n,",")+")")}return f[t](e,r)};e.exports=l?u.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),a=function(){var r=c(n,s(arguments));return this instanceof a?p(t,r.length,r):t.apply(e,r)};return i(r)&&(a.prototype=r),a}},22615:(e,t,r)=>{"use strict";var n=r(97215),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},41236:(e,t,r)=>{"use strict";var n=r(67697),o=r(36812),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},52743:(e,t,r)=>{"use strict";var n=r(68844),o=r(10509);e.exports=function(e,t,r){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},46576:(e,t,r)=>{"use strict";var n=r(6648),o=r(68844);e.exports=function(e){if("Function"===n(e))return o(e)}},68844:(e,t,r)=>{"use strict";var n=r(97215),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);e.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}},76058:(e,t,r)=>{"use strict";var n=r(19037),o=r(69985),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},91664:(e,t,r)=>{"use strict";var n=r(50926),o=r(54849),i=r(981),a=r(9478),s=r(44201)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},5185:(e,t,r)=>{"use strict";var n=r(22615),o=r(10509),i=r(85027),a=r(23691),s=r(91664),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new l(a(e)+" is not iterable")}},92643:(e,t,r)=>{"use strict";var n=r(68844),o=r(92297),i=r(69985),a=r(6648),s=r(34327),l=n([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,r=[],n=0;n<t;n++){var u=e[n];"string"==typeof u?l(r,u):"number"!=typeof u&&"Number"!==a(u)&&"String"!==a(u)||l(r,s(u))}var c=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var n=0;n<c;n++)if(r[n]===e)return t}}}},54849:(e,t,r)=>{"use strict";var n=r(10509),o=r(981);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},27017:(e,t,r)=>{"use strict";var n=r(68844),o=r(90690),i=Math.floor,a=n("".charAt),s=n("".replace),l=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,f){var p=r+e.length,h=n.length,m=c;return void 0!==d&&(d=o(d),m=u),s(f,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,p);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>h){var f=i(c/10);return 0===f?o:f<=h?void 0===n[f-1]?a(s,1):n[f-1]+a(s,1):o}u=n[c-1]}return void 0===u?"":u}))}},19037:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(e,t,r)=>{"use strict";var n=r(68844),o=r(90690),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},57248:e=>{"use strict";e.exports={}},20920:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},2688:(e,t,r)=>{"use strict";var n=r(76058);e.exports=n("document","documentElement")},68506:(e,t,r)=>{"use strict";var n=r(67697),o=r(3689),i=r(36420);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},94413:(e,t,r)=>{"use strict";var n=r(68844),o=r(3689),i=r(6648),a=Object,s=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},33457:(e,t,r)=>{"use strict";var n=r(69985),o=r(48999),i=r(49385);e.exports=function(e,t,r){var a,s;return i&&n(a=t.constructor)&&a!==r&&o(s=a.prototype)&&s!==r.prototype&&i(e,s),e}},6738:(e,t,r)=>{"use strict";var n=r(68844),o=r(69985),i=r(84091),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},45375:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(57248),a=r(48999),s=r(36812),l=r(72560).f,u=r(72741),c=r(26062),d=r(27049),f=r(14630),p=r(71594),h=!1,m=f("meta"),g=0,y=function(e){l(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=u.f,t=o([].splice),r={};r[m]=1,e(r).length&&(u.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===m){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&d(e)&&!s(e,m)&&y(e),e}};i[m]=!0},618:(e,t,r)=>{"use strict";var n,o,i,a=r(59834),s=r(19037),l=r(48999),u=r(75773),c=r(36812),d=r(84091),f=r(2713),p=r(57248),h=s.TypeError,m=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},o=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=f("state");p[y]=!0,n=function(e,t){if(c(e,y))throw new h("Object already initialized");return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=o(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},93292:(e,t,r)=>{"use strict";var n=r(44201),o=r(9478),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},92297:(e,t,r)=>{"use strict";var n=r(6648);e.exports=Array.isArray||function(e){return"Array"===n(e)}},69985:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},19429:(e,t,r)=>{"use strict";var n=r(68844),o=r(3689),i=r(69985),a=r(50926),s=r(76058),l=r(6738),u=function(){},c=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=n(d.exec),p=!d.test(u),h=function(e){if(!i(e))return!1;try{return c(u,[],e),!0}catch(e){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!c||o((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?m:h},76251:(e,t,r)=>{"use strict";var n=r(36812);e.exports=function(e){return void 0!==e&&(n(e,"value")||n(e,"writable"))}},35266:(e,t,r)=>{"use strict";var n=r(3689),o=r(69985),i=/#|\.prototype\./,a=function(e,t){var r=l[s(e)];return r===c||r!==u&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},981:e=>{"use strict";e.exports=function(e){return null==e}},48999:(e,t,r)=>{"use strict";var n=r(69985);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},60598:(e,t,r)=>{"use strict";var n=r(48999);e.exports=function(e){return n(e)||null===e}},53931:e=>{"use strict";e.exports=!1},91245:(e,t,r)=>{"use strict";var n=r(48999),o=r(6648),i=r(44201)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},30734:(e,t,r)=>{"use strict";var n=r(76058),o=r(69985),i=r(23622),a=r(39525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},18734:(e,t,r)=>{"use strict";var n=r(54071),o=r(22615),i=r(85027),a=r(23691),s=r(93292),l=r(6310),u=r(23622),c=r(5185),d=r(91664),f=r(72125),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,r){var g,y,v,b,w,x,S,_=r&&r.that,k=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),O=n(t,_),T=function(e){return g&&f(g,"normal",e),new h(!0,e)},R=function(e){return k?(i(e),P?O(e[0],e[1],T):O(e[0],e[1])):P?O(e,T):O(e)};if(E)g=e.iterator;else if(C)g=e;else{if(!(y=d(e)))throw new p(a(e)+" is not iterable");if(s(y)){for(v=0,b=l(e);b>v;v++)if((w=R(e[v]))&&u(m,w))return w;return new h(!1)}g=c(e,y)}for(x=E?e.next:g.next;!(S=o(x,g)).done;){try{w=R(S.value)}catch(e){f(g,"throw",e)}if("object"==typeof w&&w&&u(m,w))return w}return new h(!1)}},72125:(e,t,r)=>{"use strict";var n=r(22615),o=r(85027),i=r(54849);e.exports=function(e,t,r){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return o(a),r}},30974:(e,t,r)=>{"use strict";var n=r(12013).IteratorPrototype,o=r(25391),i=r(75684),a=r(55997),s=r(9478),l=function(){return this};e.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=o(n,{next:i(+!u,r)}),a(e,c,!1,!0),s[c]=l,e}},91934:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(53931),a=r(41236),s=r(69985),l=r(30974),u=r(61868),c=r(49385),d=r(55997),f=r(75773),p=r(11880),h=r(44201),m=r(9478),g=r(12013),y=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),S=function(){return this};e.exports=function(e,t,r,a,h,g,_){l(r,t,a);var k,E,C,P=function(e){if(e===h&&M)return M;if(!w&&e&&e in R)return R[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},O=t+" Iterator",T=!1,R=e.prototype,A=R[x]||R["@@iterator"]||h&&R[h],M=!w&&A||P(h),j="Array"===t&&R.entries||A;if(j&&(k=u(j.call(new e)))!==Object.prototype&&k.next&&(i||u(k)===b||(c?c(k,b):s(k[x])||p(k,x,S)),d(k,O,!0,!0),i&&(m[O]=S)),y&&"values"===h&&A&&"values"!==A.name&&(!i&&v?f(R,"name","values"):(T=!0,M=function(){return o(A,this)})),h)if(E={values:P("values"),keys:g?M:P("keys"),entries:P("entries")},_)for(C in E)(w||T||!(C in R))&&p(R,C,E[C]);else n({target:t,proto:!0,forced:w||T},E);return i&&!_||R[x]===M||p(R,x,M,{name:h}),m[t]=M,E}},12013:(e,t,r)=>{"use strict";var n,o,i,a=r(3689),s=r(69985),l=r(48999),u=r(25391),c=r(61868),d=r(11880),f=r(44201),p=r(53931),h=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(n=o):m=!0),!l(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[h])||d(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,r)=>{"use strict";var n=r(43126);e.exports=function(e){return n(e.length)}},98702:(e,t,r)=>{"use strict";var n=r(68844),o=r(3689),i=r(69985),a=r(36812),s=r(67697),l=r(41236).CONFIGURABLE,u=r(6738),c=r(618),d=c.enforce,f=c.get,p=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),y=n([].join),v=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||u(this)}),"toString")},58828:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},80231:(e,t,r)=>{"use strict";var n,o,i,a,s,l=r(19037),u=r(70517),c=r(54071),d=r(99886).set,f=r(34410),p=r(4764),h=r(63221),m=r(27486),g=r(50806),y=l.MutationObserver||l.WebKitMutationObserver,v=l.document,b=l.process,w=l.Promise,x=u("queueMicrotask");if(!x){var S=new f,_=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&n(),e}e&&e.enter()};p||g||m||!y||!v?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=c(a.then,a),n=function(){s(_)}):g?n=function(){b.nextTick(_)}:(d=c(d,l),n=function(){d(_)}):(o=!0,i=v.createTextNode(""),new y(_).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),x=function(e){S.head||n(),S.add(e)}}e.exports=x},48742:(e,t,r)=>{"use strict";var n=r(10509),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},42124:(e,t,r)=>{"use strict";var n=r(91245),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},45394:(e,t,r)=>{"use strict";var n=r(67697),o=r(68844),i=r(22615),a=r(3689),s=r(20300),l=r(7518),u=r(49556),c=r(90690),d=r(94413),f=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[r]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var r=c(e),o=arguments.length,a=1,f=l.f,p=u.f;o>a;)for(var m,g=d(arguments[a++]),y=f?h(s(g),f(g)):s(g),v=y.length,b=0;v>b;)m=y[b++],n&&!i(p,g,m)||(r[m]=g[m]);return r}:f},25391:(e,t,r)=>{"use strict";var n,o=r(85027),i=r(98920),a=r(72739),s=r(57248),l=r(2688),u=r(36420),c=r(2713),d=c("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&n?h(n):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):h(n);for(var r=a.length;r--;)delete m.prototype[a[r]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[d]=e):r=m(),void 0===t?r:i.f(r,t)}},98920:(e,t,r)=>{"use strict";var n=r(67697),o=r(15648),i=r(72560),a=r(85027),s=r(65290),l=r(20300);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,r=o[c++],n[r]);return e}},72560:(e,t,r)=>{"use strict";var n=r(67697),o=r(68506),i=r(15648),a=r(85027),s=r(18360),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=c(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(a(e),t=s(t),a(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},82474:(e,t,r)=>{"use strict";var n=r(67697),o=r(22615),i=r(49556),a=r(75684),s=r(65290),l=r(18360),u=r(36812),c=r(68506),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},26062:(e,t,r)=>{"use strict";var n=r(6648),o=r(65290),i=r(72741).f,a=r(96004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},72741:(e,t,r)=>{"use strict";var n=r(54948),o=r(72739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},61868:(e,t,r)=>{"use strict";var n=r(36812),o=r(69985),i=r(90690),a=r(2713),s=r(81748),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof u?c:null}},27049:(e,t,r)=>{"use strict";var n=r(3689),o=r(48999),i=r(6648),a=r(11655),s=Object.isExtensible,l=n((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},23622:(e,t,r)=>{"use strict";var n=r(68844);e.exports=n({}.isPrototypeOf)},54948:(e,t,r)=>{"use strict";var n=r(68844),o=r(36812),i=r(65290),a=r(84328).indexOf,s=r(57248),l=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,c=[];for(r in n)!o(s,r)&&o(n,r)&&l(c,r);for(;t.length>u;)o(n,r=t[u++])&&(~a(c,r)||l(c,r));return c}},20300:(e,t,r)=>{"use strict";var n=r(54948),o=r(72739);e.exports=Object.keys||function(e){return n(e,o)}},49556:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},49385:(e,t,r)=>{"use strict";var n=r(52743),o=r(85027),i=r(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},49419:(e,t,r)=>{"use strict";var n=r(67697),o=r(3689),i=r(68844),a=r(61868),s=r(20300),l=r(65290),u=i(r(49556).f),c=i([].push),d=n&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),f=function(e){return function(t){for(var r,o=l(t),i=s(o),f=d&&null===a(o),p=i.length,h=0,m=[];p>h;)r=i[h++],n&&!(f?r in o:u(o,r))||c(m,e?[r,o[r]]:o[r]);return m}};e.exports={entries:f(!0),values:f(!1)}},65073:(e,t,r)=>{"use strict";var n=r(23043),o=r(50926);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},35899:(e,t,r)=>{"use strict";var n=r(22615),o=r(69985),i=r(48999),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&o(r=e.toString)&&!i(s=n(r,e)))return s;if(o(r=e.valueOf)&&!i(s=n(r,e)))return s;if("string"!==t&&o(r=e.toString)&&!i(s=n(r,e)))return s;throw new a("Can't convert object to primitive value")}},19152:(e,t,r)=>{"use strict";var n=r(76058),o=r(68844),i=r(72741),a=r(7518),s=r(85027),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=a.f;return r?l(t,r(e)):t}},50496:(e,t,r)=>{"use strict";var n=r(19037);e.exports=n},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},87073:(e,t,r)=>{"use strict";var n=r(19037),o=r(17919),i=r(69985),a=r(35266),s=r(6738),l=r(44201),u=r(72532),c=r(88563),d=r(53931),f=r(3615),p=o&&o.prototype,h=l("species"),m=!1,g=i(n.PromiseRejectionEvent),y=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(d&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(m=r.then((function(){}))instanceof n))return!0}return!t&&(u||c)&&!g}));e.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:m}},17919:(e,t,r)=>{"use strict";var n=r(19037);e.exports=n.Promise},72945:(e,t,r)=>{"use strict";var n=r(85027),o=r(48999),i=r(48742);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},562:(e,t,r)=>{"use strict";var n=r(17919),o=r(86431),i=r(87073).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},38055:(e,t,r)=>{"use strict";var n=r(72560).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},34410:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},66100:(e,t,r)=>{"use strict";var n=r(22615),o=r(85027),i=r(69985),a=r(6648),s=r(56308),l=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var u=n(r,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return n(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},56308:(e,t,r)=>{"use strict";var n,o,i=r(22615),a=r(68844),s=r(34327),l=r(69633),u=r(87901),c=r(83430),d=r(25391),f=r(618).get,p=r(62100),h=r(26738),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,v=a("".charAt),b=a("".indexOf),w=a("".replace),x=a("".slice),S=(o=/b*/g,i(g,n=/a/,"a"),i(g,o,"a"),0!==n.lastIndex||0!==o.lastIndex),_=u.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||_||p||h)&&(y=function(e){var t,r,n,o,a,u,c,p=this,h=f(p),E=s(e),C=h.raw;if(C)return C.lastIndex=p.lastIndex,t=i(y,C,E),p.lastIndex=C.lastIndex,t;var P=h.groups,O=_&&p.sticky,T=i(l,p),R=p.source,A=0,M=E;if(O&&(T=w(T,"y",""),-1===b(T,"g")&&(T+="g"),M=x(E,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==v(E,p.lastIndex-1))&&(R="(?: "+R+")",M=" "+M,A++),r=new RegExp("^(?:"+R+")",T)),k&&(r=new RegExp("^"+R+"$(?!\\s)",T)),S&&(n=p.lastIndex),o=i(g,O?r:p,M),O?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:S&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),k&&o&&o.length>1&&i(m,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&P)for(o.groups=u=d(null),a=0;a<P.length;a++)u[(c=P[a])[0]]=o[c[1]];return o}),e.exports=y},69633:(e,t,r)=>{"use strict";var n=r(85027);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},63477:(e,t,r)=>{"use strict";var n=r(22615),o=r(36812),i=r(23622),a=r(69633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:n(a,e)}},87901:(e,t,r)=>{"use strict";var n=r(3689),o=r(19037).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),s=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},62100:(e,t,r)=>{"use strict";var n=r(3689),o=r(19037).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},26738:(e,t,r)=>{"use strict";var n=r(3689),o=r(19037).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},74684:(e,t,r)=>{"use strict";var n=r(981),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},70517:(e,t,r)=>{"use strict";var n=r(19037),o=r(67697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},70953:e=>{"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},14241:(e,t,r)=>{"use strict";var n=r(76058),o=r(62148),i=r(44201),a=r(67697),s=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},55997:(e,t,r)=>{"use strict";var n=r(72560).f,o=r(36812),i=r(44201)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},2713:(e,t,r)=>{"use strict";var n=r(83430),o=r(14630),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},84091:(e,t,r)=>{"use strict";var n=r(19037),o=r(95014),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},83430:(e,t,r)=>{"use strict";var n=r(53931),o=r(84091);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},76373:(e,t,r)=>{"use strict";var n=r(85027),o=r(52655),i=r(981),a=r(44201)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||i(r=n(s)[a])?t:o(r)}},10730:(e,t,r)=>{"use strict";var n=r(68844),o=r(68700),i=r(34327),a=r(74684),s=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(e){return function(t,r){var n,c,d=i(a(t)),f=o(r),p=d.length;return f<0||f>=p?e?"":void 0:(n=l(d,f))<55296||n>56319||f+1===p||(c=l(d,f+1))<56320||c>57343?e?s(d,f):n:e?u(d,f,f+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},75984:(e,t,r)=>{"use strict";var n=r(41236).PROPER,o=r(3689),i=r(86350);e.exports=function(e){return o((function(){return!!i[e]()||"
"!=="
"[e]()||n&&i[e].name!==e}))}},72291:(e,t,r)=>{"use strict";var n=r(61435).start,o=r(75984);e.exports=o("trimStart")?function(){return n(this)}:"".trimStart},61435:(e,t,r)=>{"use strict";var n=r(68844),o=r(74684),i=r(34327),a=r(86350),s=n("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var r=i(o(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,u,"$1")),r}};e.exports={start:c(1),end:c(2),trim:c(3)}},50146:(e,t,r)=>{"use strict";var n=r(3615),o=r(3689),i=r(19037).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},13032:(e,t,r)=>{"use strict";var n=r(22615),o=r(76058),i=r(44201),a=r(11880);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return n(r,this)}),{arity:1})}},46549:(e,t,r)=>{"use strict";var n=r(50146);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},99886:(e,t,r)=>{"use strict";var n,o,i,a,s=r(19037),l=r(61735),u=r(54071),c=r(69985),d=r(36812),f=r(3689),p=r(2688),h=r(96004),m=r(36420),g=r(21500),y=r(4764),v=r(50806),b=s.setImmediate,w=s.clearImmediate,x=s.process,S=s.Dispatch,_=s.Function,k=s.MessageChannel,E=s.String,C=0,P={};f((function(){n=s.location}));var O=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},T=function(e){return function(){O(e)}},R=function(e){O(e.data)},A=function(e){s.postMessage(E(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){g(arguments.length,1);var t=c(e)?e:_(e),r=h(arguments,1);return P[++C]=function(){l(t,void 0,r)},o(C),C},w=function(e){delete P[e]},v?o=function(e){x.nextTick(T(e))}:S&&S.now?o=function(e){S.now(T(e))}:k&&!y?(a=(i=new k).port2,i.port1.onmessage=R,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(A)?(o=A,s.addEventListener("message",R,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:b,clear:w}},23648:(e,t,r)=>{"use strict";var n=r(68844);e.exports=n(1..valueOf)},27578:(e,t,r)=>{"use strict";var n=r(68700),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},65290:(e,t,r)=>{"use strict";var n=r(94413),o=r(74684);e.exports=function(e){return n(o(e))}},68700:(e,t,r)=>{"use strict";var n=r(58828);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},43126:(e,t,r)=>{"use strict";var n=r(68700),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},90690:(e,t,r)=>{"use strict";var n=r(74684),o=Object;e.exports=function(e){return o(n(e))}},88732:(e,t,r)=>{"use strict";var n=r(22615),o=r(48999),i=r(30734),a=r(54849),s=r(35899),l=r(44201),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,l=a(e,c);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},18360:(e,t,r)=>{"use strict";var n=r(88732),o=r(30734);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},23043:(e,t,r)=>{"use strict";var n={};n[r(44201)("toStringTag")]="z",e.exports="[object z]"===String(n)},34327:(e,t,r)=>{"use strict";var n=r(50926),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},23691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},14630:(e,t,r)=>{"use strict";var n=r(68844),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},39525:(e,t,r)=>{"use strict";var n=r(50146);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(e,t,r)=>{"use strict";var n=r(67697),o=r(3689);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},21500:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},59834:(e,t,r)=>{"use strict";var n=r(19037),o=r(69985),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},35405:(e,t,r)=>{"use strict";var n=r(50496),o=r(36812),i=r(96145),a=r(72560).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},96145:(e,t,r)=>{"use strict";var n=r(44201);t.f=n},44201:(e,t,r)=>{"use strict";var n=r(19037),o=r(83430),i=r(36812),a=r(14630),s=r(50146),l=r(39525),u=n.Symbol,c=o("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},86350:e=>{"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},34338:(e,t,r)=>{"use strict";var n=r(79989),o=r(3689),i=r(92297),a=r(48999),s=r(90690),l=r(6310),u=r(55565),c=r(76522),d=r(27120),f=r(29042),p=r(44201),h=r(3615),m=p("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(e){var t,r,n,o,i,a=s(this),f=d(a,0),p=0;for(t=-1,n=arguments.length;t<n;t++)if(y(i=-1===t?a:arguments[t]))for(o=l(i),u(p+o),r=0;r<o;r++,p++)r in i&&c(f,p,i[r]);else u(p+1),c(f,p++,i);return f.length=p,f}})},38077:(e,t,r)=>{"use strict";var n=r(79989),o=r(2960).filter;n({target:"Array",proto:!0,forced:!r(29042)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},25728:(e,t,r)=>{"use strict";var n=r(79989),o=r(2960).find,i=r(87370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},77049:(e,t,r)=>{"use strict";var n=r(79989),o=r(21055);n({target:"Array",stat:!0,forced:!r(86431)((function(e){Array.from(e)}))},{from:o})},76801:(e,t,r)=>{"use strict";var n=r(79989),o=r(84328).includes,i=r(3689),a=r(87370);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,r)=>{"use strict";var n=r(65290),o=r(87370),i=r(9478),a=r(618),s=r(72560).f,l=r(91934),u=r(27807),c=r(53931),d=r(67697),f=a.set,p=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},6203:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(94413),a=r(65290),s=r(16834),l=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},50886:(e,t,r)=>{"use strict";var n=r(79989),o=r(2960).map;n({target:"Array",proto:!0,forced:!r(29042)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},89730:(e,t,r)=>{"use strict";var n=r(79989),o=r(92297),i=r(19429),a=r(48999),s=r(27578),l=r(6310),u=r(65290),c=r(76522),d=r(44201),f=r(29042),p=r(96004),h=f("slice"),m=d("species"),g=Array,y=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,d,f=u(this),h=l(f),v=s(e,h),b=s(void 0===t?h:t,h);if(o(f)&&(r=f.constructor,(i(r)&&(r===g||o(r.prototype))||a(r)&&null===(r=r[m]))&&(r=void 0),r===g||void 0===r))return p(f,v,b);for(n=new(void 0===r?g:r)(y(b-v,0)),d=0;v<b;v++,d++)v in f&&c(n,d,f[v]);return n.length=d,n}})},65137:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(10509),a=r(90690),s=r(6310),l=r(98494),u=r(34327),c=r(3689),d=r(50382),f=r(16834),p=r(97365),h=r(37298),m=r(3615),g=r(27922),y=[],v=o(y.sort),b=o(y.push),w=c((function(){y.sort(void 0)})),x=c((function(){y.sort(null)})),S=f("sort"),_=!c((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)y.push({k:t+n,v:r})}for(y.sort((function(e,t){return t.v-e.v})),n=0;n<y.length;n++)t=y[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:w||!x||!S||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var r,n,o=[],c=s(t);for(n=0;n<c;n++)n in t&&b(o,t[n]);for(d(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:u(t)>u(r)?1:-1}}(e)),r=s(o),n=0;n<r;)t[n]=o[n++];for(;n<c;)l(t,n++);return t}})},62506:(e,t,r)=>{"use strict";var n=r(79989),o=r(90690),i=r(27578),a=r(68700),s=r(6310),l=r(5649),u=r(55565),c=r(27120),d=r(76522),f=r(98494),p=r(29042)("splice"),h=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var r,n,p,g,y,v,b=o(this),w=s(b),x=i(e,w),S=arguments.length;for(0===S?r=n=0:1===S?(r=0,n=w-x):(r=S-2,n=m(h(a(t),0),w-x)),u(w+r-n),p=c(b,n),g=0;g<n;g++)(y=x+g)in b&&d(p,g,b[y]);if(p.length=n,r<n){for(g=x;g<w-n;g++)v=g+r,(y=g+n)in b?b[v]=b[y]:f(b,v);for(g=w;g>w-n+r;g--)f(b,g-1)}else if(r>n)for(g=w-n;g>x;g--)v=g+r-1,(y=g+n-1)in b?b[v]=b[y]:f(b,v);for(g=0;g<r;g++)b[g+x]=arguments[g+2];return l(b,w-n+r),p}})},59903:(e,t,r)=>{"use strict";var n=r(36812),o=r(11880),i=r(81797),a=r(44201)("toPrimitive"),s=Date.prototype;n(s,a)||o(s,a,i)},34284:(e,t,r)=>{"use strict";var n=r(67697),o=r(41236).EXISTS,i=r(68844),a=r(62148),s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);n&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},48324:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(61735),a=r(22615),s=r(68844),l=r(3689),u=r(69985),c=r(30734),d=r(96004),f=r(92643),p=r(50146),h=String,m=o("JSON","stringify"),g=s(/./.exec),y=s("".charAt),v=s("".charCodeAt),b=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,k=!p||l((function(){var e=o("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),C=function(e,t){var r=d(arguments),n=f(t);if(u(n)||void 0!==e&&!c(e))return r[1]=function(e,t){if(u(n)&&(t=a(n,this,h(e),t)),!c(t))return t},i(m,null,r)},P=function(e,t,r){var n=y(r,t-1),o=y(r,t+1);return g(S,e)&&!g(_,o)||g(_,e)&&!g(S,n)?"\\u"+w(v(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(e,t,r){var n=d(arguments),o=i(k?C:m,null,n);return E&&"string"==typeof o?b(o,x,P):o}})},7629:(e,t,r)=>{"use strict";var n=r(19037);r(55997)(n.JSON,"JSON",!0)},77509:(e,t,r)=>{"use strict";r(55997)(Math,"Math",!0)},79288:(e,t,r)=>{"use strict";var n=r(79989),o=r(53931),i=r(67697),a=r(19037),s=r(50496),l=r(68844),u=r(35266),c=r(36812),d=r(33457),f=r(23622),p=r(30734),h=r(88732),m=r(3689),g=r(72741).f,y=r(82474).f,v=r(72560).f,b=r(23648),w=r(61435).trim,x=a.Number,S=s.Number,_=x.prototype,k=a.TypeError,E=l("".slice),C=l("".charCodeAt),P=function(e){var t=h(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,r,n,o,i,a,s,l,u=h(e,"number");if(p(u))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=C(u,0))||45===t){if(88===(r=C(u,2))||120===r)return NaN}else if(48===t){switch(C(u,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(a=(i=E(u,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>o)return NaN;return parseInt(i,n)}return+u},T=u("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),R=function(e){return f(_,e)&&m((function(){b(e)}))},A=function(e){var t=arguments.length<1?0:x(P(e));return R(this)?d(Object(t),this,A):t};A.prototype=_,T&&!o&&(_.constructor=A),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var M=function(e,t){for(var r,n=i?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)c(t,r=n[o])&&!c(e,r)&&v(e,r,y(t,r))};o&&S&&M(s.Number,S),(T||o)&&M(s.Number,x)},60429:(e,t,r)=>{"use strict";var n=r(79989),o=r(45394);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},81919:(e,t,r)=>{"use strict";var n=r(79989),o=r(3689),i=r(65290),a=r(82474).f,s=r(67697);n({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},99474:(e,t,r)=>{"use strict";var n=r(79989),o=r(67697),i=r(19152),a=r(65290),s=r(82474),l=r(76522);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=s.f,u=i(n),c={},d=0;u.length>d;)void 0!==(r=o(n,t=u[d++]))&&l(c,t,r);return c}})},79434:(e,t,r)=>{"use strict";var n=r(79989),o=r(50146),i=r(3689),a=r(7518),s=r(90690);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},88052:(e,t,r)=>{"use strict";var n=r(79989),o=r(3689),i=r(90690),a=r(61868),s=r(81748);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},69358:(e,t,r)=>{"use strict";var n=r(79989),o=r(90690),i=r(20300);n({target:"Object",stat:!0,forced:r(3689)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},60228:(e,t,r)=>{"use strict";var n=r(23043),o=r(11880),i=r(65073);n||o(Object.prototype,"toString",i,{unsafe:!0})},86466:(e,t,r)=>{"use strict";var n=r(79989),o=r(49419).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},81692:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(10509),a=r(48742),s=r(9302),l=r(18734);n({target:"Promise",stat:!0,forced:r(562)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=i(t.resolve),a=[],s=0,c=1;l(e,(function(e){var i=s++,l=!1;c++,o(r,t,e).then((function(e){l||(l=!0,a[i]=e,--c||n(a))}),u)})),--c||n(a)}));return c.error&&u(c.value),r.promise}})},75089:(e,t,r)=>{"use strict";var n=r(79989),o=r(53931),i=r(87073).CONSTRUCTOR,a=r(17919),s=r(76058),l=r(69985),u=r(11880),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var d=s("Promise").prototype.catch;c.catch!==d&&u(c,"catch",d,{unsafe:!0})}},56697:(e,t,r)=>{"use strict";var n,o,i,a=r(79989),s=r(53931),l=r(50806),u=r(19037),c=r(22615),d=r(11880),f=r(49385),p=r(55997),h=r(14241),m=r(10509),g=r(69985),y=r(48999),v=r(767),b=r(76373),w=r(99886).set,x=r(80231),S=r(20920),_=r(9302),k=r(34410),E=r(618),C=r(17919),P=r(87073),O=r(48742),T=P.CONSTRUCTOR,R=P.REJECTION_EVENT,A=P.SUBCLASSING,M=E.getterFor("Promise"),j=E.set,I=C&&C.prototype,D=C,N=I,L=u.TypeError,Z=u.document,F=u.process,B=O.f,V=B,z=!!(Z&&Z.createEvent&&u.dispatchEvent),W=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},U=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&q(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?u(new L("Promise-chain cycle")):(n=W(r))?c(n,r,l,u):l(r)):u(i)}catch(e){d&&!o&&d.exit(),u(e)}},$=function(e,t){e.notified||(e.notified=!0,x((function(){for(var r,n=e.reactions;r=n.get();)U(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},H=function(e,t,r){var n,o;z?((n=Z.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!R&&(o=u["on"+e])?o(n):"unhandledrejection"===e&&S("Unhandled promise rejection",r)},Y=function(e){c(w,u,(function(){var t,r=e.facade,n=e.value;if(G(e)&&(t=_((function(){l?F.emit("unhandledRejection",n,r):H("unhandledrejection",r,n)})),e.rejection=l||G(e)?2:1,t.error))throw t.value}))},G=function(e){return 1!==e.rejection&&!e.parent},q=function(e){c(w,u,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):H("rejectionhandled",t,e.value)}))},K=function(e,t,r){return function(n){e(t,n,r)}},X=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$(e,!0))},Q=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=W(t);n?x((function(){var r={done:!1};try{c(n,t,K(Q,r,e),K(X,r,e))}catch(t){X(r,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){X({done:!1},t,e)}}};if(T&&(N=(D=function(e){v(this,N),m(e),c(n,this);var t=M(this);try{e(K(Q,t),K(X,t))}catch(e){X(t,e)}}).prototype,(n=function(e){j(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(N,"then",(function(e,t){var r=M(this),n=B(b(this,D));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?F.domain:void 0,0===r.state?r.reactions.add(n):x((function(){U(n,r)})),n.promise})),o=function(){var e=new n,t=M(e);this.promise=e,this.resolve=K(Q,t),this.reject=K(X,t)},O.f=B=function(e){return e===D||void 0===e?new o(e):V(e)},!s&&g(C)&&I!==Object.prototype)){i=I.then,A||d(I,"then",(function(e,t){var r=this;return new D((function(e,t){c(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete I.constructor}catch(e){}f&&f(I,N)}a({global:!0,constructor:!0,wrap:!0,forced:T},{Promise:D}),p(D,"Promise",!1,!0),h("Promise")},73964:(e,t,r)=>{"use strict";r(56697),r(81692),r(75089),r(58829),r(42092),r(57905)},58829:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(10509),a=r(48742),s=r(9302),l=r(18734);n({target:"Promise",stat:!0,forced:r(562)},{race:function(e){var t=this,r=a.f(t),n=r.reject,u=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},42092:(e,t,r)=>{"use strict";var n=r(79989),o=r(48742);n({target:"Promise",stat:!0,forced:r(87073).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},57905:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(53931),a=r(17919),s=r(87073).CONSTRUCTOR,l=r(72945),u=o("Promise"),c=i&&!s;n({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},30050:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(61735),a=r(86761),s=r(52655),l=r(85027),u=r(48999),c=r(25391),d=r(3689),f=o("Reflect","construct"),p=Object.prototype,h=[].push,m=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),g=!d((function(){f((function(){}))})),y=m||g;n({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var r=arguments.length<3?e:s(arguments[2]);if(g&&!m)return f(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,d=c(u(o)?o:p),y=i(e,d,t);return u(y)?y:d}})},32349:(e,t,r)=>{"use strict";var n=r(79989),o=r(22615),i=r(48999),a=r(85027),s=r(76251),l=r(82474),u=r(61868);n({target:"Reflect",stat:!0},{get:function e(t,r){var n,c,d=arguments.length<3?t:arguments[2];return a(t)===d?t[r]:(n=l.f(t,r))?s(n)?n.value:void 0===n.get?void 0:o(n.get,d):i(c=u(t))?e(c,r,d):void 0}})},52003:(e,t,r)=>{"use strict";var n=r(67697),o=r(19037),i=r(68844),a=r(35266),s=r(33457),l=r(75773),u=r(25391),c=r(72741).f,d=r(23622),f=r(91245),p=r(34327),h=r(63477),m=r(87901),g=r(38055),y=r(11880),v=r(3689),b=r(36812),w=r(618).enforce,x=r(14241),S=r(44201),_=r(62100),k=r(26738),E=S("match"),C=o.RegExp,P=C.prototype,O=o.SyntaxError,T=i(P.exec),R=i("".charAt),A=i("".replace),M=i("".indexOf),j=i("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,N=/a/g,L=new C(D)!==D,Z=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,B=n&&(!L||Z||_||k||v((function(){return N[E]=!1,C(D)!==D||C(N)===N||"/a/i"!==String(C(D,"i"))})));if(a("RegExp",B)){for(var V=function(e,t){var r,n,o,i,a,c,m=d(P,this),g=f(e),y=void 0===t,v=[],x=e;if(!m&&g&&y&&e.constructor===V)return e;if((g||d(P,e))&&(e=e.source,y&&(t=h(x))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),x=e,_&&"dotAll"in D&&(n=!!t&&M(t,"s")>-1)&&(t=A(t,/s/g,"")),r=t,Z&&"sticky"in D&&(o=!!t&&M(t,"y")>-1)&&F&&(t=A(t,/y/g,"")),k&&(e=(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a=u(null),s=!1,l=!1,c=0,d="";n<=r;n++){if("\\"===(t=R(e,n)))t+=R(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(I,j(e,n+1))&&(n+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===d||b(a,d))throw new O("Invalid capture group name");a[d]=!0,i[i.length]=[d,c],l=!1,d="";continue}l?d+=t:o+=t}return[o,i]}(e))[0],v=i[1]),a=s(C(e,t),m?this:P,V),(n||o||v.length)&&(c=w(a),n&&(c.dotAll=!0,c.raw=V(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=R(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+R(e,++n);return o}(e),r)),o&&(c.sticky=!0),v.length&&(c.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},z=c(C),W=0;z.length>W;)g(V,C,z[W++]);P.constructor=V,V.prototype=P,y(o,"RegExp",V,{constructor:!0})}x("RegExp")},64043:(e,t,r)=>{"use strict";var n=r(79989),o=r(56308);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},12826:(e,t,r)=>{"use strict";var n=r(41236).PROPER,o=r(11880),i=r(85027),a=r(34327),s=r(3689),l=r(63477),u=RegExp.prototype,c=u.toString,d=s((function(){return"/a/b"!==c.call({source:"a",flags:"b"})})),f=n&&"toString"!==c.name;(d||f)&&o(u,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},17985:(e,t,r)=>{"use strict";r(20319)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(70800))},19649:(e,t,r)=>{"use strict";r(17985)},43843:(e,t,r)=>{"use strict";var n=r(79989),o=r(68844),i=r(42124),a=r(74684),s=r(34327),l=r(27413),u=o("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},21694:(e,t,r)=>{"use strict";var n=r(10730).charAt,o=r(34327),i=r(618),a=r(91934),s=r(27807),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),r=t.string,o=t.index;return o>=r.length?s(void 0,!0):(e=n(r,o),t.index+=e.length,s(e,!1))}))},22462:(e,t,r)=>{"use strict";var n=r(22615),o=r(65773),i=r(85027),a=r(981),s=r(43126),l=r(34327),u=r(74684),c=r(54849),d=r(71514),f=r(66100);o("match",(function(e,t,r){return[function(t){var r=u(this),o=a(t)?void 0:c(t,e);return o?n(o,t,r):new RegExp(t)[e](l(r))},function(e){var n=i(this),o=l(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return f(n,o);var u=n.unicode;n.lastIndex=0;for(var c,p=[],h=0;null!==(c=f(n,o));){var m=l(c[0]);p[h]=m,""===m&&(n.lastIndex=d(o,s(n.lastIndex),u)),h++}return 0===h?null:p}]}))},57267:(e,t,r)=>{"use strict";var n=r(61735),o=r(22615),i=r(68844),a=r(65773),s=r(3689),l=r(85027),u=r(69985),c=r(981),d=r(68700),f=r(43126),p=r(34327),h=r(74684),m=r(71514),g=r(54849),y=r(27017),v=r(66100),b=r(44201)("replace"),w=Math.max,x=Math.min,S=i([].concat),_=i([].push),k=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),P=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=P?"$":"$0";return[function(e,r){var n=h(this),i=c(e)?void 0:g(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===k(o,i)&&-1===k(o,"$<")){var c=r(t,a,s,o);if(c.done)return c.value}var h=u(o);h||(o=p(o));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var C,P=[];null!==(C=v(a,s))&&(_(P,C),b);){""===p(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var O,T="",R=0,A=0;A<P.length;A++){for(var M,j=p((C=P[A])[0]),I=w(x(d(C.index),s.length),0),D=[],N=1;N<C.length;N++)_(D,void 0===(O=C[N])?O:String(O));var L=C.groups;if(h){var Z=S([j],D,I,s);void 0!==L&&_(Z,L),M=p(n(o,void 0,Z))}else M=y(j,s,I,D,L,o);I>=R&&(T+=E(s,R,I)+M,R=I+j.length)}return T+E(s,R)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||P)},61514:(e,t,r)=>{"use strict";var n=r(22615),o=r(65773),i=r(85027),a=r(981),s=r(74684),l=r(70953),u=r(34327),c=r(54849),d=r(66100);o("search",(function(e,t,r){return[function(t){var r=s(this),o=a(t)?void 0:c(t,e);return o?n(o,t,r):new RegExp(t)[e](u(r))},function(e){var n=i(this),o=u(e),a=r(t,n,o);if(a.done)return a.value;var s=n.lastIndex;l(s,0)||(n.lastIndex=0);var c=d(n,o);return l(n.lastIndex,s)||(n.lastIndex=s),null===c?-1:c.index}]}))},10974:(e,t,r)=>{"use strict";var n=r(79989),o=r(72291);n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==o},{trimLeft:o})},3255:(e,t,r)=>{"use strict";r(10974);var n=r(79989),o=r(72291);n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==o},{trimStart:o})},28436:(e,t,r)=>{"use strict";var n=r(79989),o=r(61435).trim;n({target:"String",proto:!0,forced:r(75984)("trim")},{trim:function(){return o(this)}})},58373:(e,t,r)=>{"use strict";r(35405)("asyncIterator")},37855:(e,t,r)=>{"use strict";var n=r(79989),o=r(19037),i=r(22615),a=r(68844),s=r(53931),l=r(67697),u=r(50146),c=r(3689),d=r(36812),f=r(23622),p=r(85027),h=r(65290),m=r(18360),g=r(34327),y=r(75684),v=r(25391),b=r(20300),w=r(72741),x=r(26062),S=r(7518),_=r(82474),k=r(72560),E=r(98920),C=r(49556),P=r(11880),O=r(62148),T=r(83430),R=r(2713),A=r(57248),M=r(14630),j=r(44201),I=r(96145),D=r(35405),N=r(13032),L=r(55997),Z=r(618),F=r(2960).forEach,B=R("hidden"),V=Z.set,z=Z.getterFor("Symbol"),W=Object.prototype,U=o.Symbol,$=U&&U.prototype,H=o.RangeError,Y=o.TypeError,G=o.QObject,q=_.f,K=k.f,X=x.f,Q=C.f,J=a([].push),ee=T("symbols"),te=T("op-symbols"),re=T("wks"),ne=!G||!G.prototype||!G.prototype.findChild,oe=function(e,t,r){var n=q(W,t);n&&delete W[t],K(e,t,r),n&&e!==W&&K(W,t,n)},ie=l&&c((function(){return 7!==v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?oe:K,ae=function(e,t){var r=ee[e]=v($);return V(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},se=function(e,t,r){e===W&&se(te,t,r),p(e);var n=m(t);return p(r),d(ee,n)?(r.enumerable?(d(e,B)&&e[B][n]&&(e[B][n]=!1),r=v(r,{enumerable:y(0,!1)})):(d(e,B)||K(e,B,y(1,v(null))),e[B][n]=!0),ie(e,n,r)):K(e,n,r)},le=function(e,t){p(e);var r=h(t),n=b(r).concat(fe(r));return F(n,(function(t){l&&!i(ue,r,t)||se(e,t,r[t])})),e},ue=function(e){var t=m(e),r=i(Q,this,t);return!(this===W&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,B)&&this[B][t])||r)},ce=function(e,t){var r=h(e),n=m(t);if(r!==W||!d(ee,n)||d(te,n)){var o=q(r,n);return!o||!d(ee,n)||d(r,B)&&r[B][n]||(o.enumerable=!0),o}},de=function(e){var t=X(h(e)),r=[];return F(t,(function(e){d(ee,e)||d(A,e)||J(r,e)})),r},fe=function(e){var t=e===W,r=X(t?te:h(e)),n=[];return F(r,(function(e){!d(ee,e)||t&&!d(W,e)||J(n,ee[e])})),n};u||(P($=(U=function(){if(f($,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=M(e),r=function(e){var n=void 0===this?o:this;n===W&&i(r,te,e),d(n,B)&&d(n[B],t)&&(n[B][t]=!1);var a=y(1,e);try{ie(n,t,a)}catch(e){if(!(e instanceof H))throw e;oe(n,t,a)}};return l&&ne&&ie(W,t,{configurable:!0,set:r}),ae(t,e)}).prototype,"toString",(function(){return z(this).tag})),P(U,"withoutSetter",(function(e){return ae(M(e),e)})),C.f=ue,k.f=se,E.f=le,_.f=ce,w.f=x.f=de,S.f=fe,I.f=function(e){return ae(j(e),e)},l&&(O($,"description",{configurable:!0,get:function(){return z(this).description}}),s||P(W,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),F(b(re),(function(e){D(e)})),n({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:de}),N(),L(U,"Symbol"),A[B]=!0},86544:(e,t,r)=>{"use strict";var n=r(79989),o=r(67697),i=r(19037),a=r(68844),s=r(36812),l=r(69985),u=r(23622),c=r(34327),d=r(62148),f=r(8758),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(g,p),g.prototype=h,h.constructor=g;var y="Symbol(description detection)"===String(p("description detection")),v=a(h.valueOf),b=a(h.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),S=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=b(e),r=y?S(t,7,-1):x(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},43975:(e,t,r)=>{"use strict";var n=r(79989),o=r(76058),i=r(36812),a=r(34327),s=r(83430),l=r(46549),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var r=o("Symbol")(t);return u[t]=r,c[r]=t,r}})},84254:(e,t,r)=>{"use strict";r(35405)("iterator")},59749:(e,t,r)=>{"use strict";r(37855),r(43975),r(81445),r(48324),r(79434)},81445:(e,t,r)=>{"use strict";var n=r(79989),o=r(36812),i=r(30734),a=r(23691),s=r(83430),l=r(46549),u=s("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},69373:(e,t,r)=>{"use strict";var n=r(35405),o=r(13032);n("toPrimitive"),o()},66793:(e,t,r)=>{"use strict";var n=r(76058),o=r(35405),i=r(55997);o("toStringTag"),i(n("Symbol"),"Symbol")},47522:(e,t,r)=>{"use strict";var n=r(19037),o=r(66338),i=r(33265),a=r(57612),s=r(75773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(n[u]&&n[u].prototype);l(i)},76265:(e,t,r)=>{"use strict";var n=r(19037),o=r(66338),i=r(33265),a=r(752),s=r(75773),l=r(55997),u=r(44201)("iterator"),c=a.values,d=function(e,t){if(e){if(e[u]!==c)try{s(e,u,c)}catch(t){e[u]=c}if(l(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var f in o)d(n[f]&&n[f].prototype,f);d(i,"DOMTokenList")},87462:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:()=>n})},63366:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}r.d(t,{Z:()=>n})},90512:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{Z:()=>o});const o=function(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.b=document.baseURI||self.location.href,o.nc=void 0;var i={};return(()=>{"use strict";o.r(i),o.d(i,{Editor:()=>ed,ItemStore:()=>Ck,Presenter:()=>td,ValidationPresenter:()=>rd,bundleLoader:()=>Dk,engine:()=>Yu,renderingContext:()=>pi,system:()=>ei,utils:()=>Qo,validate:()=>oc});o(35666),o(60228),o(47522),o(25728),o(752),o(19649),o(21694),o(76265),o(62506),o(34338),o(89730),o(60429),o(6203),o(77049),o(50886),o(59749),o(86544),o(84254),o(12826),o(34284),o(64043);var e=o(67294),t=o.t(e,2),r=o(62177),n=o(89572),a=o(39713),l=o(63366),u=o(87462),c=o(90512),d=o(47925),f=o(94780),p=o(22283),h=o(90948),m=o(71657),g=o(51705),y=o(2068),v=o(13511);function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}const x=e.createContext(null);function S(t,r){var n=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){n[t.key]=function(t){return r&&(0,e.isValidElement)(t)?r(t):t}(t)})),n}function _(e,t,r){return null!=r[t]?r[t]:e.props[t]}function k(t,r,n){var o=S(t.children),i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(r,o);return Object.keys(i).forEach((function(a){var s=i[a];if((0,e.isValidElement)(s)){var l=a in r,u=a in o,c=r[a],d=(0,e.isValidElement)(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,e.isValidElement)(c)&&(i[a]=(0,e.cloneElement)(s,{onExited:n.bind(null,s),in:c.props.in,exit:_(s,"exit",t),enter:_(s,"enter",t)})):i[a]=(0,e.cloneElement)(s,{in:!1}):i[a]=(0,e.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:_(s,"exit",t),enter:_(s,"enter",t)})}})),i}var E=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},C=function(t){function r(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}w(r,t);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,r){var n,o,i=r.children,a=r.handleExited;return{children:r.firstRender?(n=t,o=a,S(n.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:_(t,"appear",n),enter:_(t,"enter",n),exit:_(t,"exit",n)})}))):k(t,i,a),firstRender:!1}},n.handleExited=function(e,t){var r=S(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=(0,u.Z)({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var t=this.props,r=t.component,n=t.childFactory,o=(0,l.Z)(t,["component","childFactory"]),i=this.state.contextValue,a=E(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===r?e.createElement(x.Provider,{value:i},a):e.createElement(x.Provider,{value:i},e.createElement(r,o,a))},r}(e.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(e){return e}};const P=C;var O=o(75260),T=o(70444),R=o(27278),A=o(16797),M=(o(66751),o(8679),(0,O.w)((function(t,r){var n=t.styles,o=(0,A.O)([n],void 0,e.useContext(O.T));if(!O.i){for(var i,a=o.name,s=o.styles,l=o.next;void 0!==l;)a+=" "+l.name,s+=l.styles,l=l.next;var u=!0===r.compat,c=r.insert("",{name:a,styles:s},r.sheet,u);return u?null:e.createElement("style",((i={})["data-emotion"]=r.key+"-global "+a,i.dangerouslySetInnerHTML={__html:c},i.nonce=r.sheet.nonce,i))}var d=e.useRef();return(0,R.j)((function(){var e=r.key+"-global",t=new r.sheet.constructor({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),t.hydrate([i])),d.current=[t,n],function(){t.flush()}}),[r]),(0,R.j)((function(){var e=d.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&(0,T.My)(r,o.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}r.insert("",o,t,!1)}}),[r,o.name]),null})));function j(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,A.O)(t)}var I=function(){var e=j.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var D=o(85893);const N=function(t){const{className:r,classes:n,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:u,timeout:d}=t,[f,p]=e.useState(!1),h=(0,c.Z)(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),m={width:s,height:s,top:-s/2+a,left:-s/2+i},g=(0,c.Z)(n.child,f&&n.childLeaving,o&&n.childPulsate);return l||f||p(!0),e.useEffect(()=>{if(!l&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}},[u,l,d]),(0,D.jsx)("span",{className:h,style:m,children:(0,D.jsx)("span",{className:g})})};var L=o(1588);const Z=(0,L.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),F=["center","classes","className"];let B,V,z,W,U=e=>e;const $=I(B||(B=U`
|
|
95
95
|
0% {
|
|
96
96
|
transform: scale(0);
|
|
97
97
|
opacity: 0.1;
|
|
@@ -164,4 +164,4 @@ var n=r(48764),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,
|
|
|
164
164
|
animation-iteration-count: infinite;
|
|
165
165
|
animation-delay: 200ms;
|
|
166
166
|
}
|
|
167
|
-
`),Z.rippleVisible,$,550,({theme:e})=>e.transitions.easing.easeInOut,Z.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Z.child,Z.childLeaving,H,550,({theme:e})=>e.transitions.easing.easeInOut,Z.childPulsate,Y,({theme:e})=>e.transitions.easing.easeInOut),K=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=(0,l.Z)(n,F),[d,f]=e.useState([]),p=e.useRef(0),h=e.useRef(null);e.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const g=e.useRef(!1),y=e.useRef(0),v=e.useRef(null),b=e.useRef(null);e.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const w=e.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;f(e=>[...e,(0,D.jsx)(q,{classes:{ripple:(0,c.Z)(i.ripple,Z.ripple),rippleVisible:(0,c.Z)(i.rippleVisible,Z.rippleVisible),ripplePulsate:(0,c.Z)(i.ripplePulsate,Z.ripplePulsate),child:(0,c.Z)(i.child,Z.child),childLeaving:(0,c.Z)(i.childLeaving,Z.childLeaving),childPulsate:(0,c.Z)(i.childPulsate,Z.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},p.current)]),p.current+=1,h.current=a},[i]),x=e.useCallback((e={},t={},r=(()=>{}))=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:b.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{w({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},80)):w({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},[o,w]),S=e.useCallback(()=>{x({},{pulsate:!0})},[x]),_=e.useCallback((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void(y.current=setTimeout(()=>{_(e,t)}));v.current=null,f(e=>e.length>0?e.slice(1):e),h.current=t},[]);return e.useImperativeHandle(r,()=>({pulsate:S,start:x,stop:_}),[S,x,_]),(0,D.jsx)(G,(0,u.Z)({className:(0,c.Z)(Z.root,i.root,a),ref:b},s,{children:(0,D.jsx)(P,{component:null,exit:!0,children:d})}))}));var X=o(34867);function Q(e){return(0,X.ZP)("MuiButtonBase",e)}const J=(0,L.Z)("MuiButtonBase",["root","disabled","focusVisible"]),ee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],te=(0,h.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&."+J.disabled]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),re=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:d="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:b=!1,focusRipple:w=!1,LinkComponent:x="a",onBlur:S,onClick:_,onContextMenu:k,onDragLeave:E,onFocus:C,onFocusVisible:P,onKeyDown:O,onKeyUp:T,onMouseDown:R,onMouseLeave:A,onMouseUp:M,onTouchEnd:j,onTouchMove:I,onTouchStart:N,tabIndex:L=0,TouchRippleProps:Z,touchRippleRef:F,type:B}=n,V=(0,l.Z)(n,ee),z=e.useRef(null),W=e.useRef(null),U=(0,g.Z)(W,F),{isFocusVisibleRef:$,onFocus:H,onBlur:Y,ref:G}=(0,v.Z)(),[q,X]=e.useState(!1);p&&q&&X(!1),e.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),z.current.focus()}}),[]);const[J,re]=e.useState(!1);e.useEffect(()=>{re(!0)},[]);const ne=J&&!h&&!p;function oe(e,t,r=b){return(0,y.Z)(n=>{t&&t(n);return!r&&W.current&&W.current[e](n),!0})}e.useEffect(()=>{q&&w&&!h&&J&&W.current.pulsate()},[h,w,q,J]);const ie=oe("start",R),ae=oe("stop",k),se=oe("stop",E),le=oe("stop",M),ue=oe("stop",e=>{q&&e.preventDefault(),A&&A(e)}),ce=oe("start",N),de=oe("stop",j),fe=oe("stop",I),pe=oe("stop",e=>{Y(e),!1===$.current&&X(!1),S&&S(e)},!1),he=(0,y.Z)(e=>{z.current||(z.current=e.currentTarget),H(e),!0===$.current&&(X(!0),P&&P(e)),C&&C(e)}),me=()=>{const e=z.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ge=e.useRef(!1),ye=(0,y.Z)(e=>{w&&!ge.current&&q&&W.current&&" "===e.key&&(ge.current=!0,W.current.stop(e,()=>{W.current.start(e)})),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!p&&(e.preventDefault(),_&&_(e))}),ve=(0,y.Z)(e=>{w&&" "===e.key&&W.current&&q&&!e.defaultPrevented&&(ge.current=!1,W.current.stop(e,()=>{W.current.pulsate(e)})),T&&T(e),_&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&_(e)});let be=d;"button"===be&&(V.href||V.to)&&(be=x);const we={};"button"===be?(we.type=void 0===B?"button":B,we.disabled=p):(V.href||V.to||(we.role="button"),p&&(we["aria-disabled"]=p));const xe=(0,g.Z)(r,G,z);const Se=(0,u.Z)({},n,{centerRipple:i,component:d,disabled:p,disableRipple:h,disableTouchRipple:b,focusRipple:w,tabIndex:L,focusVisible:q}),_e=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,f.Z)(i,Q,o);return r&&n&&(a.root+=" "+n),a})(Se);return(0,D.jsxs)(te,(0,u.Z)({as:be,className:(0,c.Z)(_e.root,s),ownerState:Se,onBlur:pe,onClick:_,onContextMenu:ae,onFocus:he,onKeyDown:ye,onKeyUp:ve,onMouseDown:ie,onMouseLeave:ue,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:fe,onTouchStart:ce,ref:xe,tabIndex:p?-1:L,type:B},we,V,{children:[a,ne?(0,D.jsx)(K,(0,u.Z)({ref:U,center:i},Z)):null]}))}));var ne=o(98216);function oe(e){return(0,X.ZP)("MuiButton",e)}const ie=(0,L.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const ae=e.createContext({});const se=e.createContext(void 0),le=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ue=e=>(0,u.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ce=(0,h.ZP)(re,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,ne.Z)(r.color)}`],t["size"+(0,ne.Z)(r.size)],t[`${r.variant}Size${(0,ne.Z)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,u.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,u.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:"1px solid "+(e.vars||e).palette[t.color].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),["&."+ie.focusVisible]:(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),["&."+ie.disabled]:(0,u.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.action.disabledBackground},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:"1px solid "+(0,p.Fq)(e.palette[t.color].main,.5)},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&."+ie.focusVisible]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&."+ie.disabled]:{boxShadow:"none"}}),de=(0,h.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t["iconSize"+(0,ne.Z)(r.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ue(e))),fe=(0,h.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t["iconSize"+(0,ne.Z)(r.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ue(e))),pe=e.forwardRef((function(t,r){const n=e.useContext(ae),o=e.useContext(se),i=(0,d.Z)(n,t),a=(0,m.Z)({props:i,name:"MuiButton"}),{children:s,color:p="primary",component:h="button",className:g,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:x,fullWidth:S=!1,size:_="medium",startIcon:k,type:E,variant:C="text"}=a,P=(0,l.Z)(a,le),O=(0,u.Z)({},a,{color:p,component:h,disabled:y,disableElevation:v,disableFocusRipple:b,fullWidth:S,size:_,type:E,variant:C}),T=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${(0,ne.Z)(t)}`,"size"+(0,ne.Z)(o),`${i}Size${(0,ne.Z)(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize"+(0,ne.Z)(o)],endIcon:["endIcon","iconSize"+(0,ne.Z)(o)]},l=(0,f.Z)(s,oe,a);return(0,u.Z)({},a,l)})(O),R=k&&(0,D.jsx)(de,{className:T.startIcon,ownerState:O,children:k}),A=w&&(0,D.jsx)(fe,{className:T.endIcon,ownerState:O,children:w}),M=o||"";return(0,D.jsxs)(ce,(0,u.Z)({ownerState:O,className:(0,c.Z)(n.className,T.root,g,M),component:h,disabled:y,focusRipple:!b,focusVisibleClassName:(0,c.Z)(T.focusVisible,x),ref:r,type:E},P,{classes:T,children:[R,s,A]}))}));o(38077),o(69358),o(76801),o(43843),o(69373),o(59903),o(79288),o(74289),o(48888),o(3925),o(45195),o(10373),o(83500),o(49361),o(14223),o(58965),o(54458),o(94825),o(56270);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"__rdfjson_namespaces"in globalThis||(globalThis.__rdfjson_namespaces={ical:"http://www.w3.org/2002/12/cal/ical#",vcard:"http://www.w3.org/2006/vcard/ns#",dcterms:"http://purl.org/dc/terms/",skos:"http://www.w3.org/2004/02/skos/core#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",owl:"http://www.w3.org/2002/07/owl#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",foaf:"http://xmlns.com/foaf/0.1/",wot:"http://xmlns.com/wot/0.1/",dc:"http://purl.org/dc/elements/1.1/",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",gn:"http://www.geonames.org/ontology#",locn:"http://www.w3.org/ns/locn#",schema:"http://schema.org/",ex:"http://example.com/",gsp:"http://www.opengis.net/ont/geosparql#",odrs:"http://schema.theodi.org/odrs#"});var me=globalThis.__rdfjson_namespaces,ge=0,ye=function(e,t,r){return me[e]||(me[e]=t),{abbrev:e,ns:t,localname:r,full:t+r,pretty:"".concat(e,":").concat(r)}},ve=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));if(t)return ye(t,me[t],e.substring(me[t].length));var r=e.lastIndexOf("/"),n=e.lastIndexOf("#");return n>r&&(r=n),ye("ns".concat(ge+=1),e.substring(0,r+1),e.substring(r+1))};const be=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));return t?ye(t,me[t],e.substring(me[t].length)).pretty:e},we=function(e){return ve(e).pretty},xe=function(e){var t=e.split(":");return 2===t.length&&me.hasOwnProperty(t[0])?me[t[0]]+t[1]:e},Se=function(e,t){"string"==typeof e?me[e]=t:"object"===he(e)&&Object.keys(e).forEach((function(t){me[t]=e[t]}))};o(85110),o(67483),o(17299),o(12766),o(20539),o(40454),o(45872),o(30695),o(72870),o(2458),o(13090),o(64120),o(4099),o(75397),o(7741),o(15796),o(42781);function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke=function(e){return void 0!==e&&(null===e||"object"===_e(e)||Array.isArray(e)||"function"==typeof e)},Ee=function(e){return"string"==typeof e||e instanceof String},Ce=function(e,t,r){0===e[t][r].length&&(delete e[t][r],0===Object.keys(e[t]).length&&delete e[t])},Pe=function(e){if(!ke(e[0]))throw new Error("Graph is not a object.");if(!Ee(e[1]))throw new Error("Subject is not a string.");if(!Ee(e[2]))throw new Error("Predicate is not a string.");if(!ke(e[3]))throw new Error("Object is not a object.");if(void 0===e[3].type)throw new Error("Object has no type attribute, must be one of 'uri', 'literal', or 'bnode'");if(void 0===e[3].value)throw new Error("Object has no value attribute corresponding to the lexical value of the object.")},Oe=function(e,t){return e===t||null==e&&e===t||(Ee(e)?Ee(t)?e===t:e===t.value:Ee(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},Te=function(e){var t={type:e.type,value:e.value};return null!=e.ng&&(t.ng=e.ng),null!=e.lang&&(t.lang=e.lang),null!=e.datatype&&(t.datatype=e.datatype),t},Re=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const Ae={isObject:ke,isString:Ee,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&Oe(e.o,t.o)},add:function(e,t,r,n,o){if(Pe([e,t,r,n]),void 0===e[t])return e[t]={},e[t][r]=[n],n;if(void 0===e[t][r])return e[t][r]=[n],n;var i,a=e[t][r];if(!o)for(i=a.length-1;i>=0;i--)if(Oe(n,a[i]))return a[i];return a.push(n),n},remove:function(e,t,r,n){if(Pe([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(Oe(n,i[o])){var a=i[o];return i.splice(o,1),Ce(e,t,r),a}}},contains:function(e,t,r,n){if(Pe([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(Oe(n,i[o]))return i[o]}},cleanup:Ce,checkForWrongArgs:Pe,objectEquals:Oe,findDirectOrRDFValue:function(e,t,r){var n=e.find(t,r);if(n.length>0)return"bnode"!==n[0].getType()?n[0].getValue():e.findFirstValue(n[0].getValue(),"http://www.w3.org/1999/02/22-rdf-syntax-ns#value")},clone:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return Object.keys(e).forEach((function(n){var o=e[n];r[n]={},Object.keys(o).forEach((function(e){var i=o[e];if(1===i.length)r[n][e]=[Te(i[0])];else if(t){var a=[],s=new Set;r[n][e]=a,o[e].forEach((function(e){var t=Te(e),r=Re(t);s.has(r)||(s.add(r),a.push(t))}))}else{var l=[];r[n][e]=l,o[e].forEach((function(e){l.push(Te(e))}))}}))})),r}};function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ie(n.key),n)}}function Ie(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:String(t)}var De=function(){function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graph=t,this._s=r,this._p=n,this._o=o,this._o._statement=this,this._asserted=i}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph}},{key:"setAsserted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e!==this._asserted&&(e?this._graph.add(this,void 0,void 0,this._silentValue,t):this._graph.remove(this,this._silentValue),this._asserted=e)}},{key:"isAsserted",value:function(){return this._asserted}},{key:"getSubject",value:function(){return this._s}},{key:"isSubjectBlank",value:function(){return!0!==this._sIsBlank&&!1!==this._sIsBlank&&(this._sIsBlank=0===this._s.indexOf("_:")),this._sIsBlank}},{key:"isObjectBlank",value:function(){return"bnode"===this.getType()}},{key:"setSubject",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._s=t,this._graph.add(this),delete this._sIsBlank):this._s=t}},{key:"getPredicate",value:function(){return this._p}},{key:"setPredicate",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._p=t,this._graph.add(this)):this._p=t}},{key:"getNamedGraph",value:function(){return this._o.ng}},{key:"setNamedGraph",value:function(e){this._o.ng=e}},{key:"getObject",value:function(){return this._o}},{key:"getCleanObject",value:function(){var e=this._o,t={value:e.value,type:e.type};return this._o.ng&&(t.ng=e.ng),e.lang&&(t.lang=e.lang),this._o.datatype&&(t.datatype=e.datatype),t}},{key:"getType",value:function(){return this._o.type}},{key:"setType",value:function(e){throw new Error("Changing the type of an object is not supported, create a new statement instead.")}},{key:"getValue",value:function(){return this._o.value}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._silentValue=!0===t,e!==this._o.value&&(this._o.value=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getLanguage",value:function(){return this._o.lang}},{key:"setLanguage",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type)throw new Error("Cannot set the language for a resource, has to be a literal");this._o.lang!==e&&(this._o.lang=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getDatatype",value:function(){return this._o.datatype}},{key:"setDatatype",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type||null!=this._o.lang)throw new Error("Cannot set the datatype for a resource, has to be a literal");this._o.datatype!==e&&(this._o.datatype=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}}])&&je(t.prototype,r),n&&je(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ne=(o(91756),o(65273),o(2568));const Le=function(e,t){var r=[],n=new Set((t||[]).map((function(e){return xe(e)}))),o=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var r=e.getDatatype();return r&&"http://www.w3.org/2001/XMLSchema#string"!==r&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==r&&(t+="^^".concat(r)),t},s=function(e,t){var r=i[e]||{rels:[]};i[e]=r,r.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!n.has(i)){var l="bnode"===e.getType(),u=e.isSubjectBlank();if(u||l)return o.push(e),u&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),u?i:t+i));r.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Ne(e.rels.join(""))})),o.forEach((function(e){var t=[];t.push(e.isSubjectBlank()?i[e.getSubject()].hash:e.getSubject()),t.push(e.getPredicate()),t.push("bnode"===e.getType()?i[e.getValue()].hash:a(e)),r.push(t.join(""))})),r.sort(),Ne(r.join(""))};class Ze{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}Ze.prototype.termType="BlankNode";const Fe=Ze;class Be{equals(e){return!!e&&e.termType===this.termType}}Be.prototype.termType="DefaultGraph",Be.prototype.value="";const Ve=Be;const ze=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const r=e.fromTerm(t.subject),n=e.fromTerm(t.predicate),o=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(r,n,o,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class We{constructor(e,t,r){this.value=e,this.language=t,this.datatype=r}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}We.prototype.termType="Literal";const Ue=We;class $e{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}$e.prototype.termType="NamedNode";const He=$e;class Ye{constructor(e,t,r,n){this.subject=e,this.predicate=t,this.object=r,this.graph=n}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}Ye.prototype.termType="Quad",Ye.prototype.value="";const Ge=Ye;class qe{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}qe.prototype.termType="Variable";const Ke=qe,Xe=new He("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),Qe=new He("http://www.w3.org/2001/XMLSchema#string");class Je{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new Ve}}namedNode(e){return new He(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new Fe(e)}literal(e,t){return"string"==typeof t?new Ue(e,t,Xe):new Ue(e,"",t||Qe)}variable(e){return new Ke(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,r,n=this.defaultGraph()){return new Ge(e,t,r,n)}fromTerm(e){return ze(this,e)}fromQuad(e){return ze(this,e)}}Je.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const et=new Je;var tt=function(e){return 0===e.indexOf("_:")?e.substring(2):e},rt=function(e){return e.find().map((function(e){var t=e.getSubject(),r=e.getPredicate(),n=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return et.literal(e.value,e.lang);if(e.datatype){var t=et.namedNode(e.datatype);return et.literal(e.value,t)}return et.literal(e.value);case"uri":return et.namedNode(e.value);case"blank":return et.blankNode(tt(e.value))}}(e.getObject()),o=e.getNamedGraph()?et.namedNode(e.getNamedGraph()):void 0;return et.quad(e.isSubjectBlank()?et.blankNode(tt(t)):et.namedNode(t),et.namedNode(r),n,o)}))},nt=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ot=function(e,t){var r=t||new Graph,n=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:nt(e.value),type:"bnode"};case"Literal":return e.language?{value:e.value,type:"literal",lang:e.language}:e.datatype?{value:e.value,type:"literal",datatype:e.datatype.value}:{value:e.value,type:"literal"}}}(e.object||e._object);return"DefaultGraph"!==e.graph.termType&&(t.ng=e.graph.value),t};e.forEach((function(e){r.add("BlankNode"===e.subject.termType?nt(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?nt(e.predicate.value):e.predicate.value,n(e))}))};function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lt(n.key),n)}}function lt(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==it(t)?t:String(t)}var ut=function(e){return 0===e.length?e:[e[0]]},ct=function e(t,r,n){return{object:function(o){for(var i=0;i<r.length;i++){var a=void 0;if(n)a=r[i].getSubject();else{var s=r[i].getType();if("uri"===s||"bnode"===s)continue;a=r[i].getValue()}var l=t.find(a,o);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(o){var i,a=[];if(!0===n)for(i=0;i<r.length;i++)a=a.concat(t.find(r[i].getSubject(),o));else for(i=0;i<r.length;i++){var s=r[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(r[i].getValue(),o)))}return e(t,a)},constr:function(o,i){var a=i;Ae.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<r.length;l++){var u=n?r[l].getSubject():r[l].getValue();t.find(u,o,a).length>0&&s.push(r[l])}return e(t,s,n)},each:function(o,i){if(!0===n)for(var a=0;a<r.length;a++){var s="_:"===r[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||o(e(t,r[a],n))}else for(var l=0;l<r.length;l++)o(e(t,r[l],n))},statements:function(){return r},nodes:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:r[o].getSubject()})}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getObject());return t},values:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(r[o].getSubject())}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getValue());return t},firstValue:function(e){if(!0===n)for(var t=0;t<r.length;t++){var o="_:"===r[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===o)return r[t].getSubject()}else for(var i=0;i<r.length;i++)if(null==e||e===r[i].getType())return r[i].getValue()}}},dt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;at(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==r&&this.validate(),this._changed=!1}var t,r,n;return t=e,(r=[{key:"addQuads",value:function(e){return ot(e,this),this}},{key:"toQuads",value:function(){return rt(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var r=e._graph[t];return Object.keys(r).find((function(e){return r[e].find((function(e){return null==e._statement||e._statement.isAsserted()}))}))}))}},{key:"onChange",value:function(){}},{key:"setChanged",value:function(e){this._changed=!(!0!==e&&null!=e),this._changed&&this.onChange()}},{key:"isChanged",value:function(){return this._changed}},{key:"addAll",value:function(e,t){for(var r,n={},o=e.find(),i=0;i<o.length;i++){var a=o[i],s=a.getSubject(),l=a.getPredicate(),u=a.getCleanObject();t&&(u.ng=t),0===s.indexOf("_:")&&(r=n[s]||this._newBNode(),n[s]=r,s=r),0===l.indexOf("_:")&&(r=n[l]||this._newBNode(),n[l]=r,l=r),"bnode"===u.type&&(r=n[u.value]||this._newBNode(),n[u.value]=r,u.value=r),this.add(s,l,u)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(e instanceof De){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),u=Ae.add(this._graph,s,i,l,o);return!0!==n&&this.setChanged(),this._get(s,i,u,!0)}return this.create(e,t,r,!0,n,o)}},{key:"addL",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.lang=n),this.create(e,t,o,!0)}},{key:"addD",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.datatype=xe(n)),this.create(e,t,o,!0)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=r;if(a=null==a?this._newBNode():xe(a),s=null==s?this._newBNode():xe(s),null==l?l={type:"bnode",value:this._newBNode()}:Ae.isString(l)?l={type:"uri",value:xe(l)}:"object"!==it(l)||Array.isArray(l)?l={type:"uri",value:"".concat(l)}:("uri"===(l={type:l.type,value:l.value,lang:l.lang,datatype:l.datatype,ng:l.ng}).type&&null!=l.value&&(l.value=xe(l.value)),l.datatype&&(l.datatype=xe(l.datatype))),!1!==n){var u=Ae.add(this._graph,a,s,l,i);return!0!==o&&this.setChanged(),this._getOrCreate(a,s,u,!0)}return new De(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.find(e,t,r),i=0;i<o.length;i++)this.remove(o[i],n)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getSubject(),n=e.getPredicate(),o=e.getObject();this._trackBNodes(r,n,o),null!=Ae.remove(this._graph,r,n,o)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,r){var n=e,o=t,i=r;if("string"==typeof n&&(n=xe(n)),"string"==typeof o&&(o=xe(o)),"object"===it(i)&&null!==i&&"uri"===i.type?i.value=xe(i.value):"string"==typeof i&&(i={type:"uri",value:xe(i)}),null==i)return null==o?null==n?this._find():this._findS(n):null==n?this._findP(o):this._findSP(n,o);if(null==o)return null==n?this._findO(i):this._findSO(n,i);if(null==n)return this._findPO(o,i);var a=this._get(n,o,Ae.contains(this._graph,n,o,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var r=this.find(e,t);if(r.length>0)return r[0].getValue()}},{key:"projection",value:function(e,t,r){var n=this,o={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?n.findPath(e,a):n.find(e,a);if(s.length>0)switch("*"===i[0]?o[i.substr(1)]=s.map((function(e){return e.getValue()})):o[i]=s[0].getValue(),r||"none"){case"statement":o["*".concat(i)]=s;break;case"objects":o["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":o["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),o}},{key:"subjects",value:function(e,t){return ct(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return ct(this,ut(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return ct(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return ct(this,ut(this.find(e,t,null)))}},{key:"findPath",value:function(e,t){return t.slice(1).reduce((function(e,t){return e.objects(t)}),this.objects(e,t[0])).statements()}},{key:"addList",value:function(e){return this._addList(e,"add")}},{key:"addListL",value:function(e,t){return this._addList(e,"addL",t)}},{key:"addListD",value:function(e,t){return this._addList(e,"addD",t)}},{key:"_addList",value:function(e,t,r){var n,o=this;if(Array.isArray(e)&&0!==e.length){var i=n=this._newBNode(),a=e.length-1;e.forEach((function(e,n){o[t](i,"rdf:first",e,r),n!==a?i=o.add(i,"rdf:rest").getValue():o.add(i,"rdf:rest","rdf:nil")}))}else n=xe("rdf:nil");return n}},{key:"removeList",value:function(e){var t=!1,r="object"===it(e)?e.value:e;try{var n=xe("rdf:nil");for(t=r===n;r!==n&&null!=r;){var o=this.findFirstValue(r,"rdf:rest");this.findAndRemove(r),t=null!=(r=o)}}catch(e){return console.warn("Invalid list for object: ".concat(r)),!1}return t}},{key:"getList",value:function(e){var t="object"===it(e)?e.value:xe(e),r=[];try{for(var n=xe("rdf:nil");t!==n&&null!=t;)r.push(this.find(t,"rdf:first")[0].getObject()),t=this.findFirstValue(t,"rdf:rest")}catch(e){console.warn("Invalid list for object: ".concat(t))}return r}},{key:"findFirstListAsValues",value:function(e,t){return this.getList(this.findFirstValue(e,t)).map((function(e){return e.value}))}},{key:"findAndRemoveLists",value:function(e,t){var r=this,n=!1;return this.find(e,t).forEach((function(e){r.removeList(e.getValue())&&(r.remove(e),n=!0)})),n}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,Ae.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var r=this._graph;if(r.hasOwnProperty(e)){if(r.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");r[t]=r[e],delete r[e]}return this.forEach((function(r,n,o){"uri"===o.type&&o.value===e&&(o.value=t),r===t&&o._statement&&(o._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,r){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t)){if(!r)throw new Error("Cannot replace subject with target URI since it already exists.");var o=n[t],i=n[e];Object.keys(i).forEach((function(e){if(o.hasOwnProperty(e)){var t=o[e],r=i[e].filter((function(e){return!t.find((function(t){return Ae.objectEquals(t,e)}))}));o[e]=t.concat(r)}else o[e]=i[e]})),delete n[e]}else n[t]=n[e],delete n[e];this.forEach((function(r,n,o){"bnode"===o.type&&o.value===e&&(o.value=t,o.type="uri"),r===t&&o._statement&&(o._statement._s=t)}))}return delete this._bnodes[e],this}},{key:"clone",value:function(){return new e(this.exportRDFJSON(!1))}},{key:"findProperties",value:function(e){return Object.keys(this._graph[e]||{})}},{key:"validate",value:function(){if(this.report=this._validate(),!this.report.valid)throw this.report;return this.report}},{key:"registerBNode",value:function(e){this._bnodes[e]=!0}},{key:"forEach",value:function(e){var t=this._graph;Object.keys(t).forEach((function(r){var n=t[r];Object.keys(n).forEach((function(t){n[t].forEach((function(n){e(r,t,n)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(r){t.push(e(r))})),t}},{key:"equals",value:function(e,t){return Le(this,t)===Le(e,t)}},{key:"size",value:function(){var e=0;return Object.values(this._graph).forEach((function(t){Object.values(t).forEach((function(t){e+=t.length}))})),e}},{key:"_get",value:function(e,t,r,n){if(null!=r)return this._getOrCreate(e,t,r,n)}},{key:"_getOrCreate",value:function(e,t,r,n){return null==r._statement&&(r._statement=new De(this,e,t,r,n)),r._statement}},{key:"_graphObject",value:function(e){return null==e._statement||e._statement._graph===this?e:{type:e.type,value:e.value,lang:e.lang,datatype:e.datatype}}},{key:"_findSP",value:function(e,t){var r=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(n){return r._get(e,t,n,!0)}))}},{key:"_findS",value:function(e){var t=this,r=this._graph[e],n=Object.keys(r||{}).map((function(r){return t._findSP(e,r)}));return Array.prototype.concat.apply([],n)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(r,n,o){t.push(e._get(r,n,o,!0))})),t}},{key:"_findP",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){e===o&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findO",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){Ae.objectEquals(e,i)&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findSO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===o&&Ae.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_findPO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===i&&Ae.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(r){var n=e[r];Ae.isObject(n)?Object.keys(n).forEach((function(e){var o=n[e];Array.isArray(o)?o.forEach((function(n,o){Ae.isObject(n)?null!=n.type?Ae.isString(n.value)?t.nr+=1:(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Element ".concat(o+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:r,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:r,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,r;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(r="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[r])return this._bnodes[r]=!0,r;throw new Error("Failed creating a new blank node, increadible unprobable...")}},{key:"_indexBNodes",value:function(){var e=this;if(!this._bnodesIndexed){var t=this._graph;Object.keys(t).forEach((function(r){0===r.indexOf("_:")&&(e._bnodes[r]=!0);var n=t[r];Object.keys(n).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),n[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,r){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===r.type&&(this._bnodes[r.value]=!0)}}])&&st(t.prototype,r),n&&st(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();o(9081),o(24601);o(73220),o(17554),o(39385),o(80528),o(7517),o(25787);function ft(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ht(n.key),n)}}function ht(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:String(t)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t,r){return xt(t),function(e,t){if(t&&("object"===ft(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,bt()?Reflect.construct(t,r||[],xt(e).constructor):t.apply(e,r))}function yt(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return vt(e,arguments,xt(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wt(r,e)}(e)}function vt(e,t,r){if(bt())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&wt(o,r.prototype),o}function bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function wt(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xt(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function St(e){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ct(n.key),n)}}function Et(e,t,r){return t&&kt(e.prototype,t),r&&kt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==St(t)?t:String(t)}var Pt={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#"},Ot={rdftype:"".concat(Pt.rdf,"type"),rdfssco:"".concat(Pt.rdfs,"subClassOf"),rdfsdomain:"".concat(Pt.rdfs,"domain"),rdfsrange:"".concat(Pt.rdfs,"range"),rdfsspo:"".concat(Pt.rdfs,"subPropertyOf"),rdfsClass:"".concat(Pt.rdfs,"Class"),owlClass:"".concat(Pt.owl,"Class"),owlObjectProperty:"".concat(Pt.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Pt.owl,"DatatypeProperty"),rdfProperty:"".concat(Pt.rdf,"Property")},Tt=function(e,t,r){for(var n={},o=!1,i=e.find(t,r),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(n[s.getLanguage()||""]=s.getValue()||"",o=!0)}if(o)return null==n.en&&null!=n[""]&&(n.en=n[""],delete n[""]),n},Rt=function(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n];r[o]||(t.push(o),r[o]=!0)}return t},At=function(){function e(t,r){_t(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=r}return Et(e,[{key:"getURI",value:function(){return this._uri}},{key:"getLabel",value:function(){var e=this.getLabels();if(null!=e.en)return e.en;var t=Object.objects(e);return t.length>0?t[0]:""}},{key:"getLabels",value:function(){return null==this._labels&&(this._labels=Tt(this._graph,this._uri,"".concat(Pt.rdfs,"label")),null==this._labels&&(this._labels={en:this._uri.substr(this._uri.lastIndexOf("/")+1)})),this._labels}},{key:"getComment",value:function(){var e=this.getComments();return null!=e?null!=e.en?e.en:Object.objects(e)[0]:""}},{key:"getComments",value:function(){return null==this._comments&&(this._comments=Tt(this._graph,this._uri,"".concat(Pt.rdfs,"comment"))),this._comments}},{key:"addParent",value:function(e){this._parents.push(e),e._children.push(this)}},{key:"getDirectParents",value:function(){return this._parents}},{key:"getParents",value:function(){if(this._parentLock)return[];if(this._parentLock=!0,null==this._allParents){this._allParents=[];for(var e=0;e<this._parents.length;e++)this._allParents=this._allParents.concat(this._parents[e].getParents()),this._allParents.push(this._parents[e])}return delete this._parentLock,this._allParents}},{key:"getChildren",value:function(){if(this._childLock)return[];if(this._childLock=!0,null==this._allChildren){this._allChildren=[];for(var e=0;e<this._children.length;e++)this._allChildren=this._allChildren.concat(this._children[e].getChildren()),this._allChildren.push(this._children[e])}return delete this._childLock,this._allChildren}},{key:"setRange",value:function(e){null==this._range&&(this._range=[]),this._range.push(e)}},{key:"setDomain",value:function(e){null==this._domain&&(this._domain=[]),this._domain.push(e),e.setDomainOf(this)}},{key:"getRange",value:function(){if(null==this._allRange){this._allRange=this._range||[];for(var e=0;e<this._parents.length;e++)this._allRange=this._allRange.concat(this._parents[e].getRange());this._allRange=Rt(this._allRange)}return this._allRange}},{key:"getDomain",value:function(){if(null==this._allDomain){this._allDomain=this._domain||[];for(var e=0;e<this._parents.length;e++)this._allDomain=this._allDomain.concat(this._parents[e].getDomain());this._allDomain=Rt(this._allDomain)}return this._allDomain}},{key:"setDomainOf",value:function(e){null==this._domainOf&&(this._domainOf=[]),this._domainOf.push(e)}},{key:"getDomainOf",value:function(){return this._domainOf}},{key:"getAllDomainOf",value:function(){if(this._domainOfLock)return[];if(this._domainOfLock=!0,null==this._allDomainOf){var e=this._domainOf||[];this._allDomainOf=this._domainOf||[];for(var t=0;t<e.length;t++)this._allDomainOf=this._allDomainOf.concat(e[t].getChildren());for(var r=0;r<this._parents.length;r++)this._allDomainOf=this._allDomainOf.concat(this._parents[r].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Mt=function(e,t,r,n){for(var o=0;o<r.length;o++){var i=r[o],a=i.getSubject(),s=e[a];if(s||(s=new At(a,i.getGraph()),e[a]=s,t.push(s)),n){var l=i.getValue(),u=e[l];u||(u=new At(l,i.getGraph()),e[l]=u,t.push(u)),s.addParent(u)}}},jt=function(){function e(){_t(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return Et(e,[{key:"addGraph",value:function(e){Mt(this._cidx,this._carr,e.find(null,Ot.rdftype,Ot.rdfsClass)),Mt(this._cidx,this._carr,e.find(null,Ot.rdftype,Ot.owlClass)),Mt(this._cidx,this._carr,e.find(null,Ot.rdfssco,null),!0),Mt(this._pidx,this._parr,e.find(null,Ot.rdftype,Ot.rdfProperty)),Mt(this._pidx,this._parr,e.find(null,Ot.rdfsspo,null),!0),Mt(this._pidx,this._parr,e.find(null,Ot.rdftype,Ot.owlDatatypeProperty)),Mt(this._pidx,this._parr,e.find(null,Ot.rdftype,Ot.owlObjectProperty)),function(e,t,r){for(var n,o,i,a=e.find(null,Ot.rdfsdomain,null),s=0;s<a.length;s++)n=t[(i=a[s]).getSubject()],o=r[i.getValue()],null!=n&&null!=o&&n.setDomain(o);a=e.find(null,Ot.rdfsrange,null);for(var l=0;l<a.length;l++)n=t[(i=a[l]).getSubject()],o=i.getValue(),null!=n&&null!=o&&n.setRange(o)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],r=!1;t||(t=new At(e,new dt),this._cidx[e]=t,this._carr.push(t),r=!0);for(var n=0;n<this._carr.length;n++){var o=this._carr[n];(r&&o!==t||-1===o.getParents().indexOf(t)&&o!==t)&&o.addParent(t)}}},{key:"getClasses",value:function(){return this._carr}},{key:"getProperties",value:function(){return this._parr}},{key:"isClass",value:function(e){return null!=this._cidx[e]}},{key:"isProperty",value:function(e){return null!=this._pidx[e]}},{key:"getClass",value:function(e){return this._cidx[e]}},{key:"getProperty",value:function(e){return this._pidx[e]}}],[{key:"getInstances",value:function(e){for(var t=[],r=[e].concat(e.getChildren()),n=0;n<r.length;n++)for(var o=r[n],i=o.getGraph.find(null,Ot.rdftype,o.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();jt.prototype.ns=Pt,jt.prototype.terms=Ot,jt.global=new jt;function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nt(n.key),n)}}function Nt(e){var t=function(e,t){if("object"!=It(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=It(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==It(t)?t:String(t)}var Lt=function(e){this.filterObj={},this.registry=e};Lt.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Lt.prototype[e]=function(t){var r={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[xe(e)]=n.map((function(e){return xe(e)})):r[xe(e)]=xe(n)})),this.filterObj[e]=r;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=xe(t);break;default:this.filterObj[e]=t||!0}return this}}));var Zt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.components=[],this.priorities={CHECK:1,ITEMTYPE:2,CHOICES:4,NODETYPE:8,DATATYPE:16,RDFTYPE:32,CONSTRAINT:64,PREDICATE:128,STYLE:256,ITEM:512}}var t,r,n;return t=e,(r=[{key:"calculatePriority",value:function(e,t){var r=0;if(t.itemtype&&(r+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(r+=this.priorities.CHOICES,t.choices){case"static":if(!e.hasStaticChoices())return-1;break;case"dynamic":if(!e.hasChoices()||e.hasStaticChoices())return-1;break;case"none":if(e.hasChoices())return-1;break;case"any":default:if(!e.hasChoices())return-1}if(t.nodetype&&(r+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){r+=this.priorities.DATATYPE;var n=e.getDatatype(),o=!0;if(n&&(o=Array.isArray(n)?!n.includes(t.datatype):n!==t.datatype),o)return-1}return t.rdftype&&(r+=this.priorities.RDFTYPE,!function(e,t){var r=e.getConstraints();return null!=r&&r[rdfType]===t}(e,t.rdftype))||t.constraint&&(r+=this.priorities.CONSTRAINT,!function(e,t){if(null==t)return!0;var r=e.getConstraints(),n=!0;return null!=r&&(Object.keys(r).find((function(e){var o=t[e];return""!==o&&"*"!==o&&o!==r[e]&&(n=!1,!0)})),n)}(e,t.constraint))||t.predicate&&(r+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(r+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(r+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:r:-1}},{key:"getPriority",value:function(e,t){for(var r=0;r<this.components.length;r++)if(this.components[r].component===t){var n=this.calculatePriority(e,this.components[r].filter);if(n>=0)return n}return 0}},{key:"getComponentBefore",value:function(e,t){var r=this.getPriority(e,t);return this.getComponent(e,r)}},{key:"getComponent",value:function(e,t){for(var r,n,o,i=-1,a=0;a<this.components.length;a++)o=this.components[a],(n=this.calculatePriority(e,o.filter))>i&&(void 0===t||n<t)&&(r=o,i=n);if(r)return r.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Lt(this).itemtype(e)}},{key:"choices",value:function(e){return new Lt(this).choices(e)}},{key:"nodetype",value:function(e){return new Lt(this).nodetype(e)}},{key:"datatype",value:function(e){return new Lt(this).datatype(e)}},{key:"rdftype",value:function(e){return new Lt(this).rdftype(e)}},{key:"constraint",value:function(e){return new Lt(this).constraint(e)}},{key:"predicate",value:function(e){return new Lt(this).predicate(e)}},{key:"style",value:function(e){return new Lt(this).style(e)}},{key:"item",value:function(e){return new Lt(this).item(e)}},{key:"check",value:function(e){return new Lt(this).check(e)}}])&&Dt(t.prototype,r),n&&Dt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Ft=function(){this.__data__=[],this.size=0};const Bt=function(e,t){return e===t||e!=e&&t!=t};const Vt=function(e,t){for(var r=e.length;r--;)if(Bt(e[r][0],t))return r;return-1};var zt=Array.prototype.splice;const Wt=function(e){var t=this.__data__,r=Vt(t,e);return!(r<0)&&(r==t.length-1?t.pop():zt.call(t,r,1),--this.size,!0)};const Ut=function(e){var t=this.__data__,r=Vt(t,e);return r<0?void 0:t[r][1]};const $t=function(e){return Vt(this.__data__,e)>-1};const Ht=function(e,t){var r=this.__data__,n=Vt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Yt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yt.prototype.clear=Ft,Yt.prototype.delete=Wt,Yt.prototype.get=Ut,Yt.prototype.has=$t,Yt.prototype.set=Ht;const Gt=Yt;const qt=function(){this.__data__=new Gt,this.size=0};const Kt=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const Xt=function(e){return this.__data__.get(e)};const Qt=function(e){return this.__data__.has(e)};const Jt="object"==typeof global&&global&&global.Object===Object&&global;var er="object"==typeof self&&self&&self.Object===Object&&self;const tr=Jt||er||Function("return this")();const rr=tr.Symbol;var nr=Object.prototype,or=nr.hasOwnProperty,ir=nr.toString,ar=rr?rr.toStringTag:void 0;const sr=function(e){var t=or.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch(e){}var o=ir.call(e);return n&&(t?e[ar]=r:delete e[ar]),o};var lr=Object.prototype.toString;const ur=function(e){return lr.call(e)};var cr=rr?rr.toStringTag:void 0;const dr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":cr&&cr in Object(e)?sr(e):ur(e)};const fr=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const pr=function(e){if(!fr(e))return!1;var t=dr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const hr=tr["__core-js_shared__"];var mr,gr=(mr=/[^.]+$/.exec(hr&&hr.keys&&hr.keys.IE_PROTO||""))?"Symbol(src)_1."+mr:"";const yr=function(e){return!!gr&&gr in e};var vr=Function.prototype.toString;const br=function(e){if(null!=e){try{return vr.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var wr=/^\[object .+?Constructor\]$/,xr=Function.prototype,Sr=Object.prototype,_r=xr.toString,kr=Sr.hasOwnProperty,Er=RegExp("^"+_r.call(kr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Cr=function(e){return!(!fr(e)||yr(e))&&(pr(e)?Er:wr).test(br(e))};const Pr=function(e,t){return null==e?void 0:e[t]};const Or=function(e,t){var r=Pr(e,t);return Cr(r)?r:void 0};const Tr=Or(tr,"Map");const Rr=Or(Object,"create");const Ar=function(){this.__data__=Rr?Rr(null):{},this.size=0};const Mr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var jr=Object.prototype.hasOwnProperty;const Ir=function(e){var t=this.__data__;if(Rr){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return jr.call(t,e)?t[e]:void 0};var Dr=Object.prototype.hasOwnProperty;const Nr=function(e){var t=this.__data__;return Rr?void 0!==t[e]:Dr.call(t,e)};const Lr=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Rr&&void 0===t?"__lodash_hash_undefined__":t,this};function Zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zr.prototype.clear=Ar,Zr.prototype.delete=Mr,Zr.prototype.get=Ir,Zr.prototype.has=Nr,Zr.prototype.set=Lr;const Fr=Zr;const Br=function(){this.size=0,this.__data__={hash:new Fr,map:new(Tr||Gt),string:new Fr}};const Vr=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const zr=function(e,t){var r=e.__data__;return Vr(t)?r["string"==typeof t?"string":"hash"]:r.map};const Wr=function(e){var t=zr(this,e).delete(e);return this.size-=t?1:0,t};const Ur=function(e){return zr(this,e).get(e)};const $r=function(e){return zr(this,e).has(e)};const Hr=function(e,t){var r=zr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Yr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Yr.prototype.clear=Br,Yr.prototype.delete=Wr,Yr.prototype.get=Ur,Yr.prototype.has=$r,Yr.prototype.set=Hr;const Gr=Yr;const qr=function(e,t){var r=this.__data__;if(r instanceof Gt){var n=r.__data__;if(!Tr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gr(n)}return r.set(e,t),this.size=r.size,this};function Kr(e){var t=this.__data__=new Gt(e);this.size=t.size}Kr.prototype.clear=qt,Kr.prototype.delete=Kt,Kr.prototype.get=Xt,Kr.prototype.has=Qt,Kr.prototype.set=qr;const Xr=Kr;const Qr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};const Jr=function(){try{var e=Or(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const en=function(e,t,r){"__proto__"==t&&Jr?Jr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var tn=Object.prototype.hasOwnProperty;const rn=function(e,t,r){var n=e[t];tn.call(e,t)&&Bt(n,r)&&(void 0!==r||t in e)||en(e,t,r)};const nn=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?en(r,s,l):rn(r,s,l)}return r};const on=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};const an=function(e){return null!=e&&"object"==typeof e};const sn=function(e){return an(e)&&"[object Arguments]"==dr(e)};var ln=Object.prototype,un=ln.hasOwnProperty,cn=ln.propertyIsEnumerable;const dn=sn(function(){return arguments}())?sn:function(e){return an(e)&&un.call(e,"callee")&&!cn.call(e,"callee")};const fn=Array.isArray;const pn=function(){return!1};var hn="object"==typeof exports&&exports&&!exports.nodeType&&exports,mn=hn&&"object"==typeof module&&module&&!module.nodeType&&module,gn=mn&&mn.exports===hn?tr.Buffer:void 0;const yn=(gn?gn.isBuffer:void 0)||pn;var vn=/^(?:0|[1-9]\d*)$/;const bn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&vn.test(e))&&e>-1&&e%1==0&&e<t};const wn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var xn={};xn["[object Float32Array]"]=xn["[object Float64Array]"]=xn["[object Int8Array]"]=xn["[object Int16Array]"]=xn["[object Int32Array]"]=xn["[object Uint8Array]"]=xn["[object Uint8ClampedArray]"]=xn["[object Uint16Array]"]=xn["[object Uint32Array]"]=!0,xn["[object Arguments]"]=xn["[object Array]"]=xn["[object ArrayBuffer]"]=xn["[object Boolean]"]=xn["[object DataView]"]=xn["[object Date]"]=xn["[object Error]"]=xn["[object Function]"]=xn["[object Map]"]=xn["[object Number]"]=xn["[object Object]"]=xn["[object RegExp]"]=xn["[object Set]"]=xn["[object String]"]=xn["[object WeakMap]"]=!1;const Sn=function(e){return an(e)&&wn(e.length)&&!!xn[dr(e)]};const _n=function(e){return function(t){return e(t)}};var kn="object"==typeof exports&&exports&&!exports.nodeType&&exports,En=kn&&"object"==typeof module&&module&&!module.nodeType&&module,Cn=En&&En.exports===kn&&Jt.process;const Pn=function(){try{var e=En&&En.require&&En.require("util").types;return e||Cn&&Cn.binding&&Cn.binding("util")}catch(e){}}();var On=Pn&&Pn.isTypedArray;const Tn=On?_n(On):Sn;var Rn=Object.prototype.hasOwnProperty;const An=function(e,t){var r=fn(e),n=!r&&dn(e),o=!r&&!n&&yn(e),i=!r&&!n&&!o&&Tn(e),a=r||n||o||i,s=a?on(e.length,String):[],l=s.length;for(var u in e)!t&&!Rn.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||bn(u,l))||s.push(u);return s};var Mn=Object.prototype;const jn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Mn)};const In=function(e,t){return function(r){return e(t(r))}};const Dn=In(Object.keys,Object);var Nn=Object.prototype.hasOwnProperty;const Ln=function(e){if(!jn(e))return Dn(e);var t=[];for(var r in Object(e))Nn.call(e,r)&&"constructor"!=r&&t.push(r);return t};const Zn=function(e){return null!=e&&wn(e.length)&&!pr(e)};const Fn=function(e){return Zn(e)?An(e):Ln(e)};const Bn=function(e,t){return e&&nn(t,Fn(t),e)};const Vn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var zn=Object.prototype.hasOwnProperty;const Wn=function(e){if(!fr(e))return Vn(e);var t=jn(e),r=[];for(var n in e)("constructor"!=n||!t&&zn.call(e,n))&&r.push(n);return r};const Un=function(e){return Zn(e)?An(e,!0):Wn(e)};const $n=function(e,t){return e&&nn(t,Un(t),e)};var Hn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yn=Hn&&"object"==typeof module&&module&&!module.nodeType&&module,Gn=Yn&&Yn.exports===Hn?tr.Buffer:void 0,qn=Gn?Gn.allocUnsafe:void 0;const Kn=function(e,t){if(t)return e.slice();var r=e.length,n=qn?qn(r):new e.constructor(r);return e.copy(n),n};const Xn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};const Qn=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i};const Jn=function(){return[]};var eo=Object.prototype.propertyIsEnumerable,to=Object.getOwnPropertySymbols;const ro=to?function(e){return null==e?[]:(e=Object(e),Qn(to(e),(function(t){return eo.call(e,t)})))}:Jn;const no=function(e,t){return nn(e,ro(e),t)};const oo=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};const io=In(Object.getPrototypeOf,Object);const ao=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)oo(t,ro(e)),e=io(e);return t}:Jn;const so=function(e,t){return nn(e,ao(e),t)};const lo=function(e,t,r){var n=t(e);return fn(e)?n:oo(n,r(e))};const uo=function(e){return lo(e,Fn,ro)};const co=function(e){return lo(e,Un,ao)};const fo=Or(tr,"DataView");const po=Or(tr,"Promise");const ho=Or(tr,"Set");const mo=Or(tr,"WeakMap");var go=br(fo),yo=br(Tr),vo=br(po),bo=br(ho),wo=br(mo),xo=dr;(fo&&"[object DataView]"!=xo(new fo(new ArrayBuffer(1)))||Tr&&"[object Map]"!=xo(new Tr)||po&&"[object Promise]"!=xo(po.resolve())||ho&&"[object Set]"!=xo(new ho)||mo&&"[object WeakMap]"!=xo(new mo))&&(xo=function(e){var t=dr(e),r="[object Object]"==t?e.constructor:void 0,n=r?br(r):"";if(n)switch(n){case go:return"[object DataView]";case yo:return"[object Map]";case vo:return"[object Promise]";case bo:return"[object Set]";case wo:return"[object WeakMap]"}return t});const So=xo;var _o=Object.prototype.hasOwnProperty;const ko=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&_o.call(e,"index")&&(r.index=e.index,r.input=e.input),r};const Eo=tr.Uint8Array;const Co=function(e){var t=new e.constructor(e.byteLength);return new Eo(t).set(new Eo(e)),t};const Po=function(e,t){var r=t?Co(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var Oo=/\w*$/;const To=function(e){var t=new e.constructor(e.source,Oo.exec(e));return t.lastIndex=e.lastIndex,t};var Ro=rr?rr.prototype:void 0,Ao=Ro?Ro.valueOf:void 0;const Mo=function(e){return Ao?Object(Ao.call(e)):{}};const jo=function(e,t){var r=t?Co(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};const Io=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Co(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Po(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jo(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return To(e);case"[object Set]":return new n;case"[object Symbol]":return Mo(e)}};var Do=Object.create;const No=function(){function e(){}return function(t){if(!fr(t))return{};if(Do)return Do(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Lo=function(e){return"function"!=typeof e.constructor||jn(e)?{}:No(io(e))};const Zo=function(e){return an(e)&&"[object Map]"==So(e)};var Fo=Pn&&Pn.isMap;const Bo=Fo?_n(Fo):Zo;const Vo=function(e){return an(e)&&"[object Set]"==So(e)};var zo=Pn&&Pn.isSet;const Wo=zo?_n(zo):Vo;var Uo={};Uo["[object Arguments]"]=Uo["[object Array]"]=Uo["[object ArrayBuffer]"]=Uo["[object DataView]"]=Uo["[object Boolean]"]=Uo["[object Date]"]=Uo["[object Float32Array]"]=Uo["[object Float64Array]"]=Uo["[object Int8Array]"]=Uo["[object Int16Array]"]=Uo["[object Int32Array]"]=Uo["[object Map]"]=Uo["[object Number]"]=Uo["[object Object]"]=Uo["[object RegExp]"]=Uo["[object Set]"]=Uo["[object String]"]=Uo["[object Symbol]"]=Uo["[object Uint8Array]"]=Uo["[object Uint8ClampedArray]"]=Uo["[object Uint16Array]"]=Uo["[object Uint32Array]"]=!0,Uo["[object Error]"]=Uo["[object Function]"]=Uo["[object WeakMap]"]=!1;const $o=function e(t,r,n,o,i,a){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!fr(t))return t;var d=fn(t);if(d){if(s=ko(t),!l)return Xn(t,s)}else{var f=So(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(yn(t))return Kn(t,l);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=u||p?{}:Lo(t),!l)return u?so(t,$n(s,t)):no(t,Bn(s,t))}else{if(!Uo[f])return i?t:{};s=Io(t,f,l)}}a||(a=new Xr);var h=a.get(t);if(h)return h;a.set(t,s),Wo(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,a))})):Bo(t)&&t.forEach((function(o,i){s.set(i,e(o,r,n,i,t,a))}));var m=d?void 0:(c?u?co:uo:u?Un:Fn)(t);return Qr(m||t,(function(o,i){m&&(o=t[i=o]),rn(s,i,e(o,r,n,i,t,a))})),s};const Ho=function(e){return $o(e,5)};o(65137),o(57267),o(52003),o(22462);var Yo=o(30381),Go=o.n(Yo),qo=function(e,t){var r=t||Go().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(r))return{value:e[r],precision:"exact",lang:r};if(r.indexOf("_")>-1&&e.hasOwnProperty(r.substr(0,2)))return{value:e[r.substr(0,2)],precision:"coarsen",lang:r.substr(0,2)};if(e.hasOwnProperty("en"))return{value:e.en,precision:"default",lang:"en"};if(e.hasOwnProperty(""))return{value:e[""],precision:"nolang",lang:""};var n=Object.keys(e);return n.length>0?{value:e[n[0]],precision:"any",lang:n[0]}:{precision:"none"}},Ko=function(e,t,r){var n=e.find(t,r);if(n.length>0){for(var o={},i=0;i<n.length;i++)o[n[i].getLanguage()||""]=n[i].getValue();return o}};const Xo={getLocalizedValue:qo,getLocalizedMap:function(e,t,r){var n,o=t,i=r;e.getItem?(n=e.getGraph(),o=e.getValue(),i=e.getItem().getURIValueLabelProperties()):n=e,null!=i&&0!==i.length||(i=Jo.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],u=0;u<s.length;u++){var c=Ko(n,o,s[u]);c&&l.push(qo(c).value)}if(l.length>0)return{"":l.join(" ")}}else{var d=Ko(n,o,s);if(d)return d}}},cloneArrayWithLabels:function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n],i=qo(o.label),a={value:o.value,label:i.value||o.value||""};!0===o.top&&(a.top=!0),null!=o.children&&(a.children=Ho(o.children)),!1===o.selectable?a.selectable=!1:a.selectable=!0,r.push(a)}return!0!==t&&r.sort((function(e,t){return e.label>t.label?1:-1})),r},extractGist:function(e,t){var r=t;if(r){-1===r.indexOf("$1")&&(r+="$1");var n="".concat(r).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),o=new RegExp(n).exec(e);if(null!=o)return o[1]}return e},findFirstValue:function(e,t,r,n){var o=e.findFirstValueBinding(e.match(t,r,n),!1);if(o)return o.getChoice?qo(o.getChoice().label).value:o.getGist()},generateUUID:function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)}))}};var Qo=function(e,t,r,n){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var o=Xo.getLocalizedMap(n,t,e.getURIValueLabelProperties());if(!o){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");o=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:o}}return{value:t,label:t}};const Jo={hasDnDSupport:function(e){return!1},addDnD:function(e,t,r){return{}},attachExternalLinkBehaviour:function(){return!1},attachLinkBehaviour:function(e,t){return!1},openChoiceSelector:function(e,t){alert('This alert is a placeholder for a search dialog that should be provided as part of the integration of RDForms into a wider system.\nSimply override the methods "getChoices" and "openChoiceSelector" in the system module.'),t({value:"http://example.com/choice1",label:{en:"First choice",sv:"Första valet"}})},getChoice:function(e,t,r,n){return Qo(e,t,0,n)},getFallbackChoice:Qo,labelProperties:["http://www.w3.org/2000/01/rdf-schema#label","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2004/02/skos/core#prefLabel","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/name"],createURI:function(e,t){for(var r=t.getChildrenRootUri(),n=r.lastIndexOf("#"),o=-1===n?"".concat(r,"#"):r.substring(0,n+1),i=t.getGraph()._graph;;){var a=o+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},ei=JSON.parse('{"edit_add":"Add","edit_remove":"Remove","edit_clear":"Clear","edit_browse":"Browse and select","edit_browse_create":"Browse and select or create","edit_expand":"Expand","edit_upgrade":"Provide additional information for this web address","info_label":"Label","info_property":"Property","info_description":"Description","info_missing":"No information","address_label":"Address","validation_min_required_one":"at least one value is required","validation_min_required_more":"a minimum of $1 values is required","validation_min_recommended_one":"at least one value is recommended","validation_min_recommended_more":"a minimum of $1 values is recommended","validation_max_one":"at most one value is allowed","validation_max_more":"a maximum of $1 values are allowed","validation_at_most_one_child":"A maximum of one value is allowed","validation_at_least_one_child":"A minimum of one value is required","validation_exactly_one_child":"Exactly one value is required","validation_deprecated":"This field is deprecated","validation_nodetype":"Wrong nodetype","validation_value":"Wrong value","validation_datatype":"Wrong datatype","validation_constraints":"Missing constraints","validation_pattern":"Value does not follow pattern","validation_language":"A language code is required","date_date":"Date","date_time":"Time","date_year":"Year","date_date_and_time":"Date and time","date_year_and_month":"Year and month","date_month_and_day":"Month and day","date_openDatePicker":"Open date picker dialog","date_openTimePicker":"Open time picker dialog","date_openYearPicker":"Open year picker dialog","date_nextMonth":"Next month","date_previousMonth":"Previous month","duration_years":"Years","duration_months":"Months","duration_days":"Days","duration_hours":"Hours","duration_minutes":"Minutes","mandatoryLabel":"Mandatory","recommendedLabel":"Recommended","optionalLabel":"Optional","today":"Today","mandatoryMark":"*","recommendedMark":"(Recommended)","optionalMark":"(Optional)","deprecatedField":"This field has been deprecated, please remove it.","missingValueField":"This field is required, please provide a value.","dependencyField":"This field depends on another field, please review the field it depends on or remove this value.","wrongValueField":"This is an invalid value, please change or remove it.","wrongDatatypeField":"The value has an invalid datatype, please change or remove it.","openLinkExternally":"Open link externally","showMore":"Show more","showLess":"Show less"}');function ti(e){return(ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ri,ni,oi,ii,ai,si="body",li=[{value:"",label:{en:""}},{value:"bg",label:{en:"Bulgarian",bg:"български"}},{value:"es",label:{en:"Spanish",es:"Español"}},{value:"cs",label:{en:"Czech",cs:"čeština"}},{value:"da",label:{en:"Danish",da:"Dansk"}},{value:"no",label:{en:"Norwegian",no:"Norsk",nb:"Norsk",nn:"Norsk nynorsk"}},{value:"nb",label:{en:"Norwegian (bokmål)",nb:"Norsk bokmål",no:"Norsk bokmål",nn:"Norsk bokmål"}},{value:"nn",label:{en:"Norwegian (nynorsk)",nb:"Norsk nynorsk",no:"Norsk nynorsk",nn:"Norsk nynorsk"}},{value:"de",label:{en:"German",de:"Deutsch"}},{value:"et",label:{en:"Estonian",et:"Eesti keel"}},{value:"el",label:{en:"Greek",el:"ελληνικά"}},{value:"en",label:{en:"English"}},{value:"fr",label:{en:"French",fr:"Français"}},{value:"ga",label:{en:"Irish",ga:"Gaeilge"}},{value:"hr",label:{en:"Croatian",hr:"Hrvatski"}},{value:"it",label:{en:"Italian",it:"Italiano"}},{value:"lv",label:{en:"Latvian",lv:"Latviešu valoda"}},{value:"lt",label:{en:"Lithuanian",lt:"Lietuvių kalba"}},{value:"hu",label:{en:"Hungarian",hu:"Magyar"}},{value:"mt",label:{en:"Maltese",mt:"Malti"}},{value:"nl",label:{en:"Dutch",nl:"Nederlands"}},{value:"pl",label:{en:"Polish",pl:"Polski"}},{value:"pt",label:{en:"Portuguese",pt:"Português"}},{value:"ro",label:{en:"Romanian",ro:"Română"}},{value:"sk",label:{en:"Slovak",sk:"Slovenčina"}},{value:"sl",label:{en:"Slovenian",sl:"Slovenščina"}},{value:"fi",label:{en:"Finnish",fi:"Suomi"}},{value:"sv",label:{en:"Swedish",sv:"Svenska"}}],ui={domQuery:function(){},domCreate:function(){},domCreateAfter:function(){},domClassToggle:function(){},domSetAttr:function(){},domText:function(){},createDomNode:function(e){return e instanceof Node?e:"string"==typeof e?document.getElementById(e):document.createElement("div")},destroyDomNode:function(){},presenterRegistry:new Zt,editorRegistry:new Zt,chooserRegistry:new Zt,renderPresenter:function(e,t,r){var n=ui.presenterRegistry.getComponent(t.getItem());n&&(ui.prePresenterRenderer(e,t,r),n(e,t,r),ui.postPresenterRenderer(e,t,r))},renderEditor:function(e,t,r){var n=ui.editorRegistry.getComponent(t.getItem());n&&(ui.preEditorRenderer(e,t,r),n(e,t,r),ui.postEditorRenderer(e,t,r))},renderValidationMessage:function(e,t,r){},renderSelect:function(){},getChoice:function(e,t){var r=ui.chooserRegistry.getComponent(e);if(null==r)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return r.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=ui.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,r){var n=ui.chooserRegistry.getComponent(e.getItem());if(null!=n&&n&&n.getChoice)n.show(e,t,r);else{var o=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(o))}},getExtLinkClass:function(){return""},setMessages:function(e){ri=e},getMessages:function(){return ri||ei},getLanguageList:function(){return ni||li},getPrimaryLanguageList:function(){if(!ii){for(var e,t=ui.getLanguageList(),r=oi||[],n=[],o=0;o<t.length;o++){var i=t[o].value,a=r.indexOf(i);""===i&&(e=t[o]),-1!==a&&(n[a]=t[o])}ii=[];for(var s=0;s<n.length;s++)"object"===ti(n[s])&&ii.push(n[s]);ii.length>0&&e&&ii.splice(0,0,e)}return ii},getNonPrimaryLanguageList:function(){if(!ai){var e=ui.getPrimaryLanguageList().length>0,t=ui.getLanguageList(),r=oi||[];ai=[];for(var n=0;n<t.length;n++){var o=t[n].value;-1===r.indexOf(o)&&(e&&""===o||ai.push(t[n]))}}return ai},setPrimaryLanguageCodes:function(e){ai=null,ii=null,oi=e},setLanguageList:function(e){ni=e},filterTranslations:function(e,t,r){for(var n={},o=0;o<e.length;o++){var i=e[o].getLanguage();""===i||null==i?n.noLanguage=!0:i===t?n.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?n.close=!0:0===i.indexOf(r)&&(n.defaultLanguage=!0)}return n.best?e.filter((function(e){return e.getLanguage()===t})):n.close?e.filter((function(e){var r=e.getLanguage();return r&&(-1!==r.indexOf(t)||-1!==t.indexOf(r))})):n.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(r)})):e},setPopoverContainer:function(e){si=e},getPopoverContainer:function(){return si},preEditorViewRenderer:function(e,t){},prePresenterViewRenderer:function(e,t){},preEditorRenderer:function(){},postEditorRenderer:function(){},prePresenterRenderer:function(){},postPresenterRenderer:function(){},renderEditorLabel:function(){},renderEditorLabelScopeEnd:function(){},renderPresenterLabel:function(){},attachItemInfo:function(){},addCreateChildButton:function(){},addGroupButtons:function(){},addExpandButton:function(){},addRemoveButton:function(){},addPresenterTable:function(){},fillPresenterTable:function(){},addEditorTable:function(){},fillEditorTable:function(){},addTruncateControl:function(){}};Jo.getChoice=ui.getChoice;var ci=function(e,t,r){new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,binding:t,topLevel:!1,compact:r.view.compact,showLanguage:r.view.showLanguage,showDescription:r.view.showDescription,defaultLanguage:r.view.defaultLanguage,filterTranslations:r.view.filterTranslations,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e)};ui.presenterRegistry.itemtype("group").register(ci),ui.presenterRegistry.itemtype("propertygroup").register(ci);var di=function(e,t,r){var n=new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,languages:r.view.languages,binding:t,topLevel:!1,compact:r.view.compact,showDescription:r.view.showDescription,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e);r.view._subEditors.push(n)};ui.editorRegistry.itemtype("group").register(di),ui.editorRegistry.itemtype("propertygroup").register(di);const fi=ui;function pi(e){return"string"==typeof e}function hi(e,t,r){return void 0===e||pi(e)?t:(0,u.Z)({},t,{ownerState:(0,u.Z)({},t.ownerState,r)})}var mi=o(96682),gi=o(58794),yi=o(10606);function vi(){const e=(0,mi.Z)(gi.Z);return e[yi.Z]||e}var bi=o(73935);const wi=!1;var xi=function(e){return e.scrollTop},Si=function(t){function r(e,r){var n;n=t.call(this,e,r)||this;var o,i=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?i?(o="exited",n.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",n.state={status:o},n.nextCallback=null,n}w(r,t),r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?"entering"!==r&&"entered"!==r&&(t="entering"):"entering"!==r&&"entered"!==r||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this);r&&xi(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[bi.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||wi?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:bi.findDOMNode(this);t&&!wi?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:bi.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var r=this.props,n=r.children,o=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,l.Z)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(x.Provider,{value:null},"function"==typeof n?n(t,o):e.cloneElement(e.Children.only(n),o))},r}(e.Component);function _i(){}Si.contextType=x,Si.propTypes={},Si.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i},Si.UNMOUNTED="unmounted",Si.EXITED="exited",Si.ENTERING="entering",Si.ENTERED="entered",Si.EXITING="exiting";const ki=Si,Ei=e=>e.scrollTop;function Ci(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Pi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Oi(e){return`scale(${e}, ${e**2})`}const Ti={entering:{opacity:1,transform:Oi(1)},entered:{opacity:1,transform:"none"}},Ri="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ai=e.forwardRef((function(t,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:s,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:y,timeout:v="auto",TransitionComponent:b=ki}=t,w=(0,l.Z)(t,Pi),x=e.useRef(),S=e.useRef(),_=vi(),k=e.useRef(null),E=(0,g.Z)(k,i.ref,r),C=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},P=C(f),O=C((e,t)=>{Ei(e);const{duration:r,delay:n,easing:o}=Ci({style:y,timeout:v,easing:a},{mode:"enter"});let i;"auto"===v?(i=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=i):i=r,e.style.transition=[_.transitions.create("opacity",{duration:i,delay:n}),_.transitions.create("transform",{duration:Ri?i:.666*i,delay:n,easing:o})].join(","),c&&c(e,t)}),T=C(d),R=C(m),A=C(e=>{const{duration:t,delay:r,easing:n}=Ci({style:y,timeout:v,easing:a},{mode:"exit"});let o;"auto"===v?(o=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:r}),_.transitions.create("transform",{duration:Ri?o:.666*o,delay:Ri?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Oi(.75),p&&p(e)}),M=C(h);return e.useEffect(()=>()=>{clearTimeout(x.current)},[]),(0,D.jsx)(b,(0,u.Z)({appear:o,in:s,nodeRef:k,onEnter:O,onEntered:T,onEntering:P,onExit:A,onExited:M,onExiting:R,addEndListener:e=>{"auto"===v&&(x.current=setTimeout(e,S.current||0)),n&&n(k.current,e)},timeout:"auto"===v?null:v},w,{children:(t,r)=>e.cloneElement(i,(0,u.Z)({style:(0,u.Z)({opacity:0,transform:Oi(.75),visibility:"exited"!==t||s?void 0:"hidden"},Ti[t],y,i.props.style),ref:E},r))}))}));Ai.muiSupportAuto=!0;const Mi=Ai;var ji=o(33703),Ii=o(73546),Di=o(82690);function Ni(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Li(e){return e instanceof Ni(e).Element||e instanceof Element}function Zi(e){return e instanceof Ni(e).HTMLElement||e instanceof HTMLElement}function Fi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ni(e).ShadowRoot||e instanceof ShadowRoot)}var Bi=Math.max,Vi=Math.min,zi=Math.round;function Wi(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Ui(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function $i(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Zi(e)&&(o=e.offsetWidth>0&&zi(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zi(n.height)/e.offsetHeight||1);var a=(Li(e)?Ni(e):window).visualViewport,s=!Ui()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,c=n.width/o,d=n.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Hi(e){var t=Ni(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yi(e){return e?(e.nodeName||"").toLowerCase():null}function Gi(e){return((Li(e)?e.ownerDocument:e.document)||window.document).documentElement}function qi(e){return $i(Gi(e)).left+Hi(e).scrollLeft}function Ki(e){return Ni(e).getComputedStyle(e)}function Xi(e){var t=Ki(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Qi(e,t,r){void 0===r&&(r=!1);var n,o,i=Zi(t),a=Zi(t)&&function(e){var t=e.getBoundingClientRect(),r=zi(t.width)/e.offsetWidth||1,n=zi(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=Gi(t),l=$i(e,a,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!r)&&(("body"!==Yi(t)||Xi(s))&&(u=(n=t)!==Ni(n)&&Zi(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Hi(n)),Zi(t)?((c=$i(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=qi(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function Ji(e){var t=$i(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ea(e){return"html"===Yi(e)?e:e.assignedSlot||e.parentNode||(Fi(e)?e.host:null)||Gi(e)}function ta(e,t){var r;void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(Yi(t))>=0?t.ownerDocument.body:Zi(t)&&Xi(t)?t:e(ea(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Ni(n),a=o?[i].concat(i.visualViewport||[],Xi(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ta(ea(a)))}function ra(e){return["table","td","th"].indexOf(Yi(e))>=0}function na(e){return Zi(e)&&"fixed"!==Ki(e).position?e.offsetParent:null}function oa(e){for(var t=Ni(e),r=na(e);r&&ra(r)&&"static"===Ki(r).position;)r=na(r);return r&&("html"===Yi(r)||"body"===Yi(r)&&"static"===Ki(r).position)?t:r||function(e){var t=/firefox/i.test(Wi());if(/Trident/i.test(Wi())&&Zi(e)&&"fixed"===Ki(e).position)return null;var r=ea(e);for(Fi(r)&&(r=r.host);Zi(r)&&["html","body"].indexOf(Yi(r))<0;){var n=Ki(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var ia="top",aa="bottom",sa="right",la="left",ua=[ia,aa,sa,la],ca=ua.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),da=[].concat(ua,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),fa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function pa(e){var t=new Map,r=new Set,n=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||function e(o){r.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(n){if(!r.has(n)){var o=t.get(n);o&&e(o)}})),n.push(o)}(e)})),n}var ha={placement:"bottom",modifiers:[],strategy:"absolute"};function ma(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ga(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?ha:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ha,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Li(e)?ta(e):e.contextElement?ta(e.contextElement):[],popper:ta(t)};var a,u,f=function(e){var t=pa(e);return fa.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((a=[].concat(n,s.options.modifiers),u=a.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:n});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(ma(t,r)){s.rects={reference:Qi(t,oa(r),"fixed"===s.options.strategy),popper:Ji(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!ma(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),c}}var ya={passive:!0};function va(e){return e.split("-")[0]}function ba(e){return e.split("-")[1]}function wa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xa(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?va(o):null,a=o?ba(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case ia:t={x:s,y:r.y-n.height};break;case aa:t={x:s,y:r.y+r.height};break;case sa:t={x:r.x+r.width,y:l};break;case la:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=i?wa(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(r[c]/2-n[c]/2);break;case"end":t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var Sa={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _a(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=la,w=ia,x=window;if(u){var S=oa(r),_="clientHeight",k="clientWidth";if(S===Ni(r)&&"static"!==Ki(S=Gi(r)).position&&"absolute"===s&&(_="scrollHeight",k="scrollWidth"),S=S,o===ia||(o===la||o===sa)&&"end"===i)w=aa,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[_])-n.height,m*=l?1:-1;if(o===la||(o===ia||o===aa)&&"end"===i)b=sa,p-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-n.width,p*=l?1:-1}var E,C=Object.assign({position:s},u&&Sa),P=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:zi(r*o)/o||0,y:zi(n*o)/o||0}}({x:p,y:m},Ni(r)):{x:p,y:m};return p=P.x,m=P.y,l?Object.assign({},C,((E={})[w]=v?"0":"",E[b]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[w]=v?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var ka={left:"right",right:"left",bottom:"top",top:"bottom"};function Ea(e){return e.replace(/left|right|bottom|top/g,(function(e){return ka[e]}))}var Ca={start:"end",end:"start"};function Pa(e){return e.replace(/start|end/g,(function(e){return Ca[e]}))}function Oa(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Fi(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ta(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ra(e,t,r){return"viewport"===t?Ta(function(e,t){var r=Ni(e),n=Gi(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=Ui();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+qi(e),y:l}}(e,r)):Li(t)?function(e,t){var r=$i(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Ta(function(e){var t,r=Gi(e),n=Hi(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Bi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Bi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+qi(e),l=-n.scrollTop;return"rtl"===Ki(o||r).direction&&(s+=Bi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Gi(e)))}function Aa(e,t,r,n){var o="clippingParents"===t?function(e){var t=ta(ea(e)),r=["absolute","fixed"].indexOf(Ki(e).position)>=0&&Zi(e)?oa(e):e;return Li(r)?t.filter((function(e){return Li(e)&&Oa(e,r)&&"body"!==Yi(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=Ra(e,r,n);return t.top=Bi(o.top,t.top),t.right=Vi(o.right,t.right),t.bottom=Vi(o.bottom,t.bottom),t.left=Bi(o.left,t.left),t}),Ra(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ma(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ja(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Ia(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,u=r.rootBoundary,c=void 0===u?"viewport":u,d=r.elementContext,f=void 0===d?"popper":d,p=r.altBoundary,h=void 0!==p&&p,m=r.padding,g=void 0===m?0:m,y=Ma("number"!=typeof g?g:ja(g,ua)),v="popper"===f?"reference":"popper",b=e.rects.popper,w=e.elements[h?v:f],x=Aa(Li(w)?w:w.contextElement||Gi(e.elements.popper),l,c,a),S=$i(e.elements.reference),_=xa({reference:S,element:b,strategy:"absolute",placement:o}),k=Ta(Object.assign({},b,_)),E="popper"===f?k:S,C={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},P=e.modifiersData.offset;if("popper"===f&&P){var O=P[o];Object.keys(C).forEach((function(e){var t=[sa,aa].indexOf(e)>=0?1:-1,r=[ia,aa].indexOf(e)>=0?"y":"x";C[e]+=O[r]*t}))}return C}function Da(e,t,r){return Bi(e,Vi(t,r))}function Na(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function La(e){return[ia,sa,aa,la].some((function(t){return e[t]>=0}))}var Za=ga({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=Ni(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",r.update,ya)})),s&&l.addEventListener("resize",r.update,ya),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",r.update,ya)})),s&&l.removeEventListener("resize",r.update,ya)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=xa({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,u={placement:va(t.placement),variation:ba(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_a(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,_a(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:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Zi(o)&&Yi(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Zi(n)&&Yi(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=da.reduce((function(e,r){return e[r]=function(e,t,r){var n=va(e),o=[la,ia].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[la,sa].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),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[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,g=t.options.placement,y=va(g),v=l||(y===g||!h?[Ea(g)]:function(e){if("auto"===va(e))return[];var t=Ea(e);return[Pa(e),t,Pa(t)]}(g)),b=[g].concat(v).reduce((function(e,r){return e.concat("auto"===va(r)?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?da:l,c=ba(n),d=c?s?ca:ca.filter((function(e){return ba(e)===c})):ua,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=Ia(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[va(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,_=!0,k=b[0],E=0;E<b.length;E++){var C=b[E],P=va(C),O="start"===ba(C),T=[ia,aa].indexOf(P)>=0,R=T?"width":"height",A=Ia(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=T?O?sa:la:O?aa:ia;w[R]>x[R]&&(M=Ea(M));var j=Ea(M),I=[];if(i&&I.push(A[P]<=0),s&&I.push(A[M]<=0,A[j]<=0),I.every((function(e){return e}))){k=C,_=!1;break}S.set(C,I)}if(_)for(var D=function(e){var t=b.find((function(t){var r=S.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=h?3:1;N>0;N--){if("break"===D(N))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,m=void 0===h?0:h,g=Ia(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=va(t.placement),v=ba(t.placement),b=!v,w=wa(y),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(i){var T,R="y"===w?ia:la,A="y"===w?aa:sa,M="y"===w?"height":"width",j=S[w],I=j+g[R],D=j-g[A],N=p?-k[M]/2:0,L="start"===v?_[M]:k[M],Z="start"===v?-k[M]:-_[M],F=t.elements.arrow,B=p&&F?Ji(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[R],W=V[A],U=Da(0,_[M],B[M]),$=b?_[M]/2-N-U-z-C.mainAxis:L-U-z-C.mainAxis,H=b?-_[M]/2+N+U+W+C.mainAxis:Z+U+W+C.mainAxis,Y=t.elements.arrow&&oa(t.elements.arrow),G=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(T=null==P?void 0:P[w])?T:0,K=j+H-q,X=Da(p?Vi(I,j+$-q-G):I,j,p?Bi(D,K):D);S[w]=X,O[w]=X-j}if(s){var Q,J="x"===w?ia:la,ee="x"===w?aa:sa,te=S[x],re="y"===x?"height":"width",ne=te+g[J],oe=te-g[ee],ie=-1!==[ia,la].indexOf(y),ae=null!=(Q=null==P?void 0:P[x])?Q:0,se=ie?ne:te-_[re]-k[re]-ae+C.altAxis,le=ie?te+_[re]+k[re]-ae-C.altAxis:oe,ue=p&&ie?function(e,t,r){var n=Da(e,t,r);return n>r?r:n}(se,te,le):Da(p?se:ne,te,p?le:oe);S[x]=ue,O[x]=ue-te}t.modifiersData[n]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=va(r.placement),l=wa(s),u=[la,sa].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return Ma("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ja(e,ua))}(o.padding,r),d=Ji(i),f="y"===l?ia:la,p="y"===l?aa:sa,h=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],m=a[l]-r.rects.reference[l],g=oa(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=c[f],w=y-d[u]-c[p],x=y/2-d[u]/2+v,S=Da(b,x,w),_=l;r.modifiersData[n]=((t={})[_]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Oa(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ia(t,{elementContext:"reference"}),s=Ia(t,{altBoundary:!0}),l=Na(a,n),u=Na(s,o,i),c=La(l),d=La(u);t.modifiersData[r]={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})}}]}),Fa=o(7960);const Ba=e.forwardRef((function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,s]=e.useState(null),l=(0,ji.Z)(e.isValidElement(n)?n.ref:null,r);if((0,Ii.Z)(()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,i]),(0,Ii.Z)(()=>{if(a&&!i)return(0,Fa.Z)(r,a),()=>{(0,Fa.Z)(r,null)}},[r,a,i]),i){if(e.isValidElement(n)){const t={ref:l};return e.cloneElement(n,t)}return(0,D.jsx)(e.Fragment,{children:n})}return(0,D.jsx)(e.Fragment,{children:a?bi.createPortal(n,a):a})}));function Va(e,t){const r=X._v[t];return r?"base--"+r:function(e,t){return`base-${e}-${t}`}(e,t)}function za(e){return Va("Popper",e)}!function(e,t){const r={};t.forEach(t=>{r[t]=Va(e,t)})}("Popper",["root"]);function Wa(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Ua(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const $a=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ha(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,l.Z)(e,$a),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:d,internalRef:f}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,c.Z)(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,u.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=(0,u.Z)({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Wa((0,u.Z)({},o,n)),s=Ua(n),l=Ua(o),d=t(a),f=(0,c.Z)(null==d?void 0:d.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),p=(0,u.Z)({},null==d?void 0:d.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),h=(0,u.Z)({},d,r,l,s);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:d.ref}}((0,u.Z)({},a,{externalSlotProps:s})),p=(0,ji.Z)(f,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return hi(r,(0,u.Z)({},d,{ref:p}),o)}const Ya={disableDefaultClasses:!1},Ga=e.createContext(Ya);const qa=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ka=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Xa(e){return"function"==typeof e?e():e}function Qa(e){return void 0!==e.nodeType}const Ja=()=>(0,f.Z)({root:["root"]},function(t){const{disableDefaultClasses:r}=e.useContext(Ga);return e=>r?"":t(e)}(za)),es={},ts=e.forwardRef((function(t,r){var n;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:c,open:d,placement:f,popperOptions:p,popperRef:h,slotProps:m={},slots:g={},TransitionProps:y}=t,v=(0,l.Z)(t,qa),b=e.useRef(null),w=(0,ji.Z)(b,r),x=e.useRef(null),S=(0,ji.Z)(x,h),_=e.useRef(S);(0,Ii.Z)(()=>{_.current=S},[S]),e.useImperativeHandle(h,()=>x.current,[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,a),[E,C]=e.useState(k),[P,O]=e.useState(Xa(o));e.useEffect(()=>{x.current&&x.current.forceUpdate()}),e.useEffect(()=>{o&&O(Xa(o))},[o]),(0,Ii.Z)(()=>{if(!P||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=Za(P,b.current,(0,u.Z)({placement:k},p,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}},[P,s,c,d,p,k]);const T={placement:E};null!==y&&(T.TransitionProps=y);const R=Ja(),A=null!=(n=g.root)?n:"div",M=Ha({elementType:A,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:R.root});return(0,D.jsx)(A,(0,u.Z)({},M,{children:"function"==typeof i?i(T):i}))})),rs=e.forwardRef((function(t,r){const{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:d,open:f,placement:p="bottom",popperOptions:h=es,popperRef:m,style:g,transition:y=!1,slotProps:v={},slots:b={}}=t,w=(0,l.Z)(t,Ka),[x,S]=e.useState(!0);if(!c&&!f&&(!y||x))return null;let _;if(i)_=i;else if(n){const e=Xa(n);_=e&&Qa(e)?(0,Di.Z)(e).body:(0,Di.Z)(null).body}const k=f||!c||y&&!x?void 0:"none",E=y?{in:f,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,D.jsx)(Ba,{disablePortal:s,container:_,children:(0,D.jsx)(ts,(0,u.Z)({anchorEl:n,direction:a,disablePortal:s,modifiers:d,ref:r,open:y?!x:f,placement:p,popperOptions:h,popperRef:m,slotProps:v,slots:b},w,{style:(0,u.Z)({position:"fixed",top:0,left:0,display:k},g),TransitionProps:E,children:o}))})}));var ns=o(34168);const os=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],is=(0,h.ZP)(rs,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),as=e.forwardRef((function(e,t){var r;const n=(0,ns.Z)(),o=(0,m.Z)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:c,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w,slots:x,slotProps:S}=o,_=(0,l.Z)(o,os),k=null!=(r=null==x?void 0:x.root)?r:null==s?void 0:s.Root,E=(0,u.Z)({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w},_);return(0,D.jsx)(is,(0,u.Z)({as:a,direction:null==n?void 0:n.direction,slots:{root:k},slotProps:null!=S?S:c},E,{ref:t}))}));var ss=o(27909),ls=o(49299);function us(e){return(0,X.ZP)("MuiTooltip",e)}const cs=(0,L.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ds=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const fs=(0,h.ZP)(as,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{['&[data-popper-placement*="bottom"] .'+cs.arrow]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'+cs.arrow]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'+cs.arrow]:(0,u.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'+cs.arrow]:(0,u.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ps=(0,h.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement"+(0,ne.Z)(r.placement.split("-")[0])]]}})(({theme:e,ownerState:t})=>{return(0,u.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${cs.popper}[data-popper-placement*="left"] &`]:(0,u.Z)({transformOrigin:"right center"},t.isRtl?(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${cs.popper}[data-popper-placement*="right"] &`]:(0,u.Z)({transformOrigin:"left center"},t.isRtl?(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${cs.popper}[data-popper-placement*="top"] &`]:(0,u.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${cs.popper}[data-popper-placement*="bottom"] &`]:(0,u.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var r}),hs=(0,h.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ms=!1,gs=null,ys={x:0,y:0};function vs(e,t){return r=>{t&&t(r),e(r)}}const bs=e.forwardRef((function(t,r){var n,o,i,a,s,d,p,h,b,w,x,S,_,k,E,C,P,O,T;const R=(0,m.Z)({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:M,components:j={},componentsProps:I={},describeChild:N=!1,disableFocusListener:L=!1,disableHoverListener:Z=!1,disableInteractive:F=!1,disableTouchListener:B=!1,enterDelay:V=100,enterNextDelay:z=0,enterTouchDelay:W=700,followCursor:U=!1,id:$,leaveDelay:H=0,leaveTouchDelay:Y=1500,onClose:G,onOpen:q,open:K,placement:X="bottom",PopperComponent:Q,PopperProps:J={},slotProps:ee={},slots:te={},title:re,TransitionComponent:oe=Mi,TransitionProps:ie}=R,ae=(0,l.Z)(R,ds),se=e.isValidElement(M)?M:(0,D.jsx)("span",{children:M}),le=vi(),ue="rtl"===le.direction,[ce,de]=e.useState(),[fe,pe]=e.useState(null),he=e.useRef(!1),me=F||U,ge=e.useRef(),ye=e.useRef(),ve=e.useRef(),be=e.useRef(),[we,xe]=(0,ls.Z)({controlled:K,default:!1,name:"Tooltip",state:"open"});let Se=we;const _e=(0,ss.Z)($),ke=e.useRef(),Ee=e.useCallback(()=>{void 0!==ke.current&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),clearTimeout(be.current)},[]);e.useEffect(()=>()=>{clearTimeout(ge.current),clearTimeout(ye.current),clearTimeout(ve.current),Ee()},[Ee]);const Ce=e=>{clearTimeout(gs),ms=!0,xe(!0),q&&!Se&&q(e)},Pe=(0,y.Z)(e=>{clearTimeout(gs),gs=setTimeout(()=>{ms=!1},800+H),xe(!1),G&&Se&&G(e),clearTimeout(ge.current),ge.current=setTimeout(()=>{he.current=!1},le.transitions.duration.shortest)}),Oe=e=>{he.current&&"touchstart"!==e.type||(ce&&ce.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(ve.current),V||ms&&z?ye.current=setTimeout(()=>{Ce(e)},ms?z:V):Ce(e))},Te=e=>{clearTimeout(ye.current),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},H)},{isFocusVisibleRef:Re,onBlur:Ae,onFocus:Me,ref:je}=(0,v.Z)(),[,Ie]=e.useState(!1),De=e=>{Ae(e),!1===Re.current&&(Ie(!1),Te(e))},Ne=e=>{ce||de(e.currentTarget),Me(e),!0===Re.current&&(Ie(!0),Oe(e))},Le=e=>{he.current=!0;const t=se.props;t.onTouchStart&&t.onTouchStart(e)},Ze=Oe,Fe=Te,Be=e=>{Le(e),clearTimeout(ve.current),clearTimeout(ge.current),Ee(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ke.current,Oe(e)},W)},Ve=e=>{se.props.onTouchEnd&&se.props.onTouchEnd(e),Ee(),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},Y)};e.useEffect(()=>{if(Se)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Pe(e)}},[Pe,Se]);const ze=(0,g.Z)(se.ref,je,de,r);re||0===re||(Se=!1);const We=e.useRef(),Ue={},$e="string"==typeof re;N?(Ue.title=Se||!$e||Z?null:re,Ue["aria-describedby"]=Se?_e:null):(Ue["aria-label"]=$e?re:null,Ue["aria-labelledby"]=Se&&!$e?_e:null);const He=(0,u.Z)({},Ue,ae,se.props,{className:(0,c.Z)(ae.className,se.props.className),onTouchStart:Le,ref:ze},U?{onMouseMove:e=>{const t=se.props;t.onMouseMove&&t.onMouseMove(e),ys={x:e.clientX,y:e.clientY},We.current&&We.current.update()}}:{});const Ye={};B||(He.onTouchStart=Be,He.onTouchEnd=Ve),Z||(He.onMouseOver=vs(Ze,He.onMouseOver),He.onMouseLeave=vs(Fe,He.onMouseLeave),me||(Ye.onMouseOver=Ze,Ye.onMouseLeave=Fe)),L||(He.onFocus=vs(Ne,He.onFocus),He.onBlur=vs(De,He.onBlur),me||(Ye.onFocus=Ne,Ye.onBlur=De));const Ge=e.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(fe),options:{element:fe,padding:4}}];return null!=(e=J.popperOptions)&&e.modifiers&&(t=t.concat(J.popperOptions.modifiers)),(0,u.Z)({},J.popperOptions,{modifiers:t})},[fe,J]),qe=(0,u.Z)({},R,{isRtl:ue,arrow:A,disableInteractive:me,placement:X,PopperComponentProp:Q,touch:he.current}),Ke=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement"+(0,ne.Z)(i.split("-")[0])],arrow:["arrow"]};return(0,f.Z)(a,us,t)})(qe),Xe=null!=(n=null!=(o=te.popper)?o:j.Popper)?n:fs,Qe=null!=(i=null!=(a=null!=(s=te.transition)?s:j.Transition)?a:oe)?i:Mi,Je=null!=(d=null!=(p=te.tooltip)?p:j.Tooltip)?d:ps,et=null!=(h=null!=(b=te.arrow)?b:j.Arrow)?h:hs,tt=hi(Xe,(0,u.Z)({},J,null!=(w=ee.popper)?w:I.popper,{className:(0,c.Z)(Ke.popper,null==J?void 0:J.className,null==(x=null!=(S=ee.popper)?S:I.popper)?void 0:x.className)}),qe),rt=hi(Qe,(0,u.Z)({},ie,null!=(_=ee.transition)?_:I.transition),qe),nt=hi(Je,(0,u.Z)({},null!=(k=ee.tooltip)?k:I.tooltip,{className:(0,c.Z)(Ke.tooltip,null==(E=null!=(C=ee.tooltip)?C:I.tooltip)?void 0:E.className)}),qe),ot=hi(et,(0,u.Z)({},null!=(P=ee.arrow)?P:I.arrow,{className:(0,c.Z)(Ke.arrow,null==(O=null!=(T=ee.arrow)?T:I.arrow)?void 0:O.className)}),qe);return(0,D.jsxs)(e.Fragment,{children:[e.cloneElement(se,He),(0,D.jsx)(Xe,(0,u.Z)({as:null!=Q?Q:as,placement:X,anchorEl:U?{getBoundingClientRect:()=>({top:ys.y,left:ys.x,right:ys.x,bottom:ys.y,width:0,height:0})}:ce,popperRef:We,open:!!ce&&Se,id:_e,transition:!0},Ye,tt,{popperOptions:Ge,children:({TransitionProps:e})=>(0,D.jsx)(Qe,(0,u.Z)({timeout:le.transitions.duration.shorter},e,rt,{children:(0,D.jsxs)(Je,(0,u.Z)({},nt,{children:[re,A?(0,D.jsx)(et,(0,u.Z)({},ot,{ref:pe})):null]}))}))}))]})}));var ws=o(59948);function xs(e){return e.substring(2).toLowerCase()}function Ss(t){const{children:r,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),u=e.useRef(!1),c=e.useRef(!1);e.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const d=(0,ji.Z)(r.ref,l),f=(0,ws.Z)(e=>{const t=c.current;c.current=!1;const r=(0,Di.Z)(l.current);if(!u.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),o||!n&&t||i(e)}),p=e=>t=>{c.current=!0;const n=r.props[e];n&&n(t)},h={ref:d};return!1!==a&&(h[a]=p(a)),e.useEffect(()=>{if(!1!==a){const e=xs(a),t=(0,Di.Z)(l.current),r=()=>{s.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",r)}}},[f,a]),!1!==o&&(h[o]=p(o)),e.useEffect(()=>{if(!1!==o){const e=xs(o),t=(0,Di.Z)(l.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}},[f,o]),(0,D.jsx)(e.Fragment,{children:e.cloneElement(r,h)})}o(88052),o(32349),o(81919),o(30050);var _s=o(20745);function ks(e){return(ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Es(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cs(n.key),n)}}function Cs(e){var t=function(e,t){if("object"!=ks(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ks(t)?t:String(t)}var Ps=0,Os=function(){function e(t){var r=t.item,n=t.statement,o=t.graph,i=t.matchingCode;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=r,this._statement=n,this._graph=o,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Ps),this._matchingCode=i||"correct",Ps+=1}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph||(this._statement?this._graph=this._statement.getGraph():this._parent&&(this._graph=this._parent.getGraph())),this._graph}},{key:"isReadOnly",value:function(){if(!("_readOnly"in this)){var e=this.getParent();e&&e._readOnly?this._readyOnly=!0:this._readOnly=!(!this._statement||!this._statement.getNamedGraph())}return this._readOnly}},{key:"remove",value:function(){}},{key:"setSubject",value:function(e){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(e,t){}},{key:"getGist",value:function(){return Xo.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var r=e,n=this.getItem().getValueTemplate();n&&r.length>0&&(-1===n.indexOf("$1")&&(n+="$1"),r=n.replace("$1",r)),this.setValue(r,t)}},{key:"getCardinalityTracker",value:function(){return this._cardinalityTracker}},{key:"setCardinalityTracker",value:function(e){this._cardinalityTracker=e}},{key:"getItem",value:function(){return this._item}},{key:"getStatement",value:function(){return this._statement}},{key:"getParent",value:function(){return this._parent}},{key:"setParent",value:function(e){this._parent=e}},{key:"isValid",value:function(){}},{key:"getMatchingCode",value:function(){return this._matchingCode}},{key:"setMatchingCode",value:function(e){this._matchingCode=e}},{key:"setAncestorValid",value:function(e){this._ancestorValid=e,this.updateAssertions()}},{key:"updateAssertions",value:function(){}},{key:"getHash",value:function(){return this._hash}},{key:"addListener",value:function(e){this._listeners||(this._listeners=[]),this._listeners.push(e)}},{key:"removeListener",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"bindingChange",value:function(e){if(this._listeners)for(var t=0;t<this._listeners.length;t++)this._listeners[t](e);this._parent&&this._parent.bindingChange(e),this._cardinalityTracker&&this._cardinalityTracker.touch()}},{key:"_isValidObjectValue",value:function(e){var t=e;if("string"!=typeof t&&null!==t)throw new Error("In a binding every object value need to be a string!");var r=this._item.getPattern();return r?null!=(t=Xo.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(r,"$")).test(t):null!=t&&""!==t}},{key:"_isValidPredicateValue",value:function(e){if("string"!=typeof e&&null!==e)throw new Error("In a binding every predicate need to be a string!");return null!=e&&""!==e}}])&&Es(t.prototype,r),n&&Es(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Ts={UNKNOWN:"unknown",OK:"correct",TOO_FEW_VALUES:"few",TOO_FEW_VALUES_MIN:"min",TOO_FEW_VALUES_PREF:"pref",TOO_MANY_VALUES:"many",AT_MOST_ONE_CHILD:"atmostonechild",AT_LEAST_ONE_CHILD:"atleastonechild",EXACTLY_ONE_CHILD:"exactlyonechild",WRONG_VALUE:"value",WRONG_PATTERN:"pattern",WRONG_NODETYPE:"nodetype",WRONG_DATATYPE:"datatype",MISSING_LANGUAGE:"language",MISSING_CONSTRAINTS:"constraints"};function Rs(e){return(Rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function As(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ms(n.key),n)}}function Ms(e){var t=function(e,t){if("object"!=Rs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rs(t)?t:String(t)}var js=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listener=[],this._limits=t.getCardinality()||{},this._counter=0,this._depsOk=!0,this._listeners=[],this._code=0}var t,r,n;return t=e,(r=[{key:"addListener",value:function(e){return this._listeners.push(e),e}},{key:"removeListener",value:function(e){this._listeners.splice(this._listeners.indexOf(e),1)}},{key:"cardinalityChanged",value:function(){this._listeners.forEach((function(e){return e()}))}},{key:"getCardinality",value:function(){return this._counter}},{key:"isMax",value:function(){return null!=this._limits.max&&this._counter>=this._limits.max}},{key:"isMin",value:function(){return null!=this._limits.min&&this._counter<=this._limits.min}},{key:"isFine",value:function(){return this._fine}},{key:"isDepsOk",value:function(){return this._depsOk}},{key:"getCode",value:function(){return this._code}},{key:"setCode",value:function(e){this._code!==e&&(this._code=e,this.cardinalityChanged())}},{key:"setDepsOk",value:function(e){this._depsOk!==e&&(this._code=Ts.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=Ts.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=Ts.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=Ts.UNKNOWN,this.cardinalityChanged()}},{key:"_checkCounter",value:function(){null!=this._limits.max&&this._counter===this._limits.max?this._fine=!0:null!=this._limits.max&&this._counter>this._limits.max?this._fine=!1:null!=this._limits.min&&this._counter===this._limits.min?this._fine=!0:null!=this._limits.min&&this._counter<this._limits.min&&(this._fine=!1),this.cardinalityChanged()}}])&&As(t.prototype,r),n&&As(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Is(e){return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ds(e){return function(e){if(Array.isArray(e))return Ns(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ns(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ns(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ns(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ls(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Zs(n.key),n)}}function Zs(e){var t=function(e,t){if("object"!=Is(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Is(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Is(t)?t:String(t)}function Fs(e,t,r){return t=zs(t),function(e,t){if(t&&("object"===Is(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],zs(e).constructor):t.apply(e,r))}function Bs(){return(Bs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Vs(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Vs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zs(e)););return e}function zs(e){return(zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ws(e,t){return(Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Us=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=Fs(this,t,[e]);var n=e.constraints,o=void 0===n?[]:n,i=e.childrenRootUri,a=void 0===i?null:i;return r._constraints=o,r._childBindings=r._item.getChildren().map((function(){return[]})),r._rootUri=a,r._validPredicate=!0,r._validObject=!0,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate()),r._validObject=r._isValidObjectValue(r._statement.getValue(),r._statement.getType())),r._cachedChildBindings=null,r}var r,n,o;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&&Ws(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement&&this._statement.isObjectBlank()?"":this._statement&&this._statement.getValue()}},{key:"oneChildValidityChanged",value:function(e){return e!==this._oneValidChild&&!(!e&&(delete this._oneValidChild,this.isValid()))&&(this._oneValidChild=e,this._notifyValidityChange(e&&this._validPredicate&&this._validObject),this._validPredicate&&this._validObject)}},{key:"setSubject",value:function(e){this._statement?this._statement.setSubject(e):this.getChildBindings().forEach((function(t){return t.setSubject(e)}))}},{key:"getChildrenRootUri",value:function(){return this._statement?this._statement.getValue():null!=this._rootUri?this._rootUri:null!=this._parent?this._parent.getChildrenRootUri():void 0}},{key:"addChildBinding",value:function(e){this.addChildBindings([e])}},{key:"addChildBindings",value:function(e){var t=this;if(this._cachedChildBindings=null,Array.isArray(e)&&0!==e.length)for(var r=e[0].getItem(),n=this._item.getChildren(),o=function(){if(r===n[i]){var o=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new js(r);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(o),o.increment()}),t),1}},i=n.length;i>=0&&!o();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e.getItem()===t[r]){this._childBindings[r].splice(this._childBindings[r].indexOf(e),1),delete e._parent,e.getCardinalityTracker().decrement();break}this.oneChildValidityChanged(),this.bindingChange(e)}},{key:"getChildBindingsFor",value:function(e){for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e===t[r])return this._childBindings[r]}},{key:"getItemGroupedChildBindings",value:function(){return this._childBindings}},{key:"getChildBindings",value:function(){var e;return null==this._cachedChildBindings&&(this._childBindings&&this._childBindings.length>0?this._cachedChildBindings=(e=[]).concat.apply(e,Ds(this._childBindings)):this._cachedChildBindings=[]),this._cachedChildBindings}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!0)):(this._validPredicate=!1,!1!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!1)),this.updateAssertions()}},{key:"setValue",value:function(e){if("URI"!==this.getItem().getNodetype()||!this._statement)throw new Error("Cannot change the value of a group unless its nodetype is URI and also that it corresponds to a statement");var t=this._validObject;this._isValidObjectValue(e,"uri")?(this._validObject=!0,this._statement._o.type="uri",this._statement.setValue(e),this._constraints.forEach((function(t){return t.setSubject(e)})),this.getChildBindings().forEach((function(t){return t.setSubject(e)})),!t&&this._validPredicate&&this._notifyValidityChange(!0)):(this._validObject=!1,t&&this._validPredicate&&this._notifyValidityChange(!1))}},{key:"getPredicate",value:function(){return this._statement?this._statement.getPredicate():void 0}},{key:"remove",value:function(){this._oneValidChild=!1,this.setAncestorValid(!1),null!=this._parent&&this._parent.removeChildBinding(this),Bs(zs(t.prototype),"remove",this).call(this,arguments)}},{key:"_isValid",value:function(){return"URI"===this.getItem().getNodetype()?this._validObject&&this._validPredicate:this._oneValidChild&&this._validPredicate&&this._validObject}},{key:"isValid",value:function(){return null==this._oneValidChild&&(this._oneValidChild=this._forceOneValidChildCheck()),this._isValid()}},{key:"setAncestorValid",value:function(e){var t=this;this._ancestorValid=e,this.updateAssertions(),this._childBindings.forEach((function(r){return r.forEach((function(r){return r.setAncestorValid(e&&t._isValid())}),t)}),this)}},{key:"updateAssertions",value:function(){null==this._oneValidChild&&this.isValid();var e=this._ancestorValid&&this._isValid();null!=this._statement&&this._statement.setAsserted(e),this._constraints.forEach((function(t){return t.setAsserted(e)})),this.getChildBindings().forEach((function(e){return e.updateAssertions()}))}},{key:"_forceOneValidChildCheck",value:function(){return this._childBindings.some((function(e){return e.some((function(e){return e.isValid()}))}))}},{key:"_notifyValidityChange",value:function(e){this._parent&&this._parent.oneChildValidityChanged(e)||(this.updateAssertions(),this._childBindings.forEach((function(t){return t.forEach((function(t){return t.setAncestorValid(e)}))})))}},{key:"_isValidObjectValue",value:function(e,r){return("URI"!==this.getItem().getNodetype()||"uri"===r)&&Bs(zs(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&Ls(r.prototype,n),o&&Ls(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Os);function $s(e){return($s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ys(n.key),n)}}function Ys(e){var t=function(e,t){if("object"!=$s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$s(t)?t:String(t)}var Gs=0,qs=function(e,t,r){null==r||""===r||Array.isArray(r)&&0===r.length?delete e[t]:e[t]=r},Ks=function(){function e(t){var r=t.source,n=void 0===r?{}:r,o=t.bundle,i=t.itemStore;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=i,this._source=n,this._bundle=o,Gs+=1,this._internalId=Gs,this._styles=["heading","invisible","invisibleGroup","stars","commentOn","multiline","horizontalRadioButtons","verticalRadioButtons","horizontalCheckBoxes","verticalCheckBoxes","nonEditable","expandable","compact","nonCompact","dropDown","table","firstcolumnfixedtable","tree","externalLink","internalLink","noLink","image","label","tooltip","strictmatch","relaxedDatatypeMatch","viewAllTranslations","filterTranslations","email","atLeastOneChild","atMostOneChild","exactlyOneChild","noLabelInPresent","autoInitDate","autoUpdateDate","autoUUID","autoValue","showURI","showLink","showValue","showDescriptionInPresent","showDescriptionInEdit","textAsChoice","preserveOrderOfChoices","linkWithLabel","deprecated","inline","truncate","noTruncate","card","cardInPresent","cardInEdit"],this._getLocalizedValue=Xo.getLocalizedValue}var t,r,n;return t=e,(r=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){qs(this.getSource(!0),"id",e),delete s["@id"]}},{key:"getType",value:function(e){var t=this.getSource(e);return t.type||t["@type"]}},{key:"setType",value:function(e){qs(this.getSource(!0),"type",e),delete s["@type"],this.refreshExtends()}},{key:"getExtends",value:function(){return this.getSource(!0).extends||""}},{key:"refreshExtends",value:function(){this.isExtention&&this.setExtends(this.getExtends())}},{key:"setExtends",value:function(e){var t=this.getSource(!0),r=this._itemStore.getItem(e);this._source=null==r?t:this._itemStore.createExtendedSource(r.getSource(),t),""===e||null==e?delete t.extends:t.extends=e}},{key:"isExtention",value:function(){return null!=this.getExtends()}},{key:"_getText",value:function(e,t,r){var n=this.getSource(r);return t?Xo.getLocalizedValue(n[e]):Xo.getLocalizedValue(n[e]).value}},{key:"_setText",value:function(e,t,r){var n=this.getSource(!0);n[e]=this._setLangHash(n[e],t,r),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){qs(this.getSource(!0),e,t),this.refreshExtends()}},{key:"getLabel",value:function(e,t){return this._getText("label",e,t)}},{key:"setLabel",value:function(e,t){this._setText("label",e,t)}},{key:"getLabelMap",value:function(e){return this.getSource(e).label}},{key:"setLabelMap",value:function(e){this._setTextMap("label",e)}},{key:"getEditLabel",value:function(e,t){return this._getText("editlabel",e,t)}},{key:"setEditLabel",value:function(e,t){this._setText("editlabel",e,t)}},{key:"getEditLabelMap",value:function(e){return this.getSource(e).editlabel}},{key:"setEditLabelMap",value:function(e){this._setTextMap("editlabel",e)}},{key:"getDescription",value:function(e,t){return this._getText("description",e,t)}},{key:"setDescription",value:function(e,t){this._setText("description",e,t)}},{key:"getDescriptionMap",value:function(e){return this.getSource(e).description}},{key:"setDescriptionMap",value:function(e){this._setTextMap("description",e)}},{key:"getEditDescription",value:function(e,t){return this._getText("editdescription",e,t)}},{key:"setEditDescription",value:function(e,t){this._setText("editdescription",e,t)}},{key:"getEditDescriptionMap",value:function(e){return this.getSource(e).editdescription}},{key:"setEditDescriptionMap",value:function(e){this._setTextMap("editdescription",e)}},{key:"getHelp",value:function(e,t){return this._getText("help",e,t)}},{key:"setHelp",value:function(e,t){this._setText("help",e,t)}},{key:"getHelpMap",value:function(e){return this.getSource(e).help}},{key:"setHelpMap",value:function(e){this._setTextMap("help",e)}},{key:"getPlaceholder",value:function(e,t){return this._getText("placeholder",e,t)}},{key:"setPlaceholder",value:function(e,t){this._setText("placeholder",e,t)}},{key:"getPlaceholderMap",value:function(e){return this.getSource(e).placeholder}},{key:"setPlaceholderMap",value:function(e){this._setTextMap("placeholder",e)}},{key:"getPurpose",value:function(e,t){return this._getText("purpose",e,t)}},{key:"setPurpose",value:function(e,t){this._setText("purpose",e,t)}},{key:"getPurposeMap",value:function(e){return this.getSource(e).purpose}},{key:"setPurposeMap",value:function(e){this._setTextMap("purpose",e)}},{key:"getSpecification",value:function(e,t){return this._getText("specification",e,t)}},{key:"setSpecification",value:function(e,t){this._setText("specification",e,t)}},{key:"getSpecificationMap",value:function(e){return this.getSource(e).specification}},{key:"setSpecificationMap",value:function(e){this._setTextMap("specification",e)}},{key:"getText",value:function(e,t,r){var n=this.getSource(r).text||{};return t?Xo.getLocalizedValue(n[e]):Xo.getLocalizedValue(n[e]).value}},{key:"setText",value:function(e,t,r){var n=this.getSource(!0),o=n.text=n.text||{};o[e]=this._setLangHash(o[e],t,r),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var r=this.getSource(!0),n=r.text=r.text||{};qs(n,e,t),this.refreshExtends()}},{key:"getEnhanced",value:function(e){var t=this.getSource(!0);return"boolean"==typeof t.enhanced?t.enhanced:t.enhanced&&t.enhanced[e]||!1}},{key:"setEnhanced",value:function(e,t){var r=this.getSource(!0);"boolean"==typeof e?!0===e?r.enhanced=!0:delete r.enhanced:(r.enhanced="boolean"==typeof r.enhanced?{}:r.enhanced||{},t?r.enhanced[e]=!0:(delete r.enhanced[e],0===Object.keys(r).length&&delete r.enhanced)),this.setExtends(this.getExtends())}},{key:"getProperty",value:function(e){var t=null,r=this.getSource(e);return r&&null!=(t=r.property)&&""!==t&&(t=xe(t)),t}},{key:"setProperty",value:function(e){qs(this.getSource(!0),"property",e),this.refreshExtends()}},{key:"getURIValueLabelProperties",value:function(e){var t=this.getSource(e).uriValueLabelProperties;return null!=t?t.map((function(e){return xe(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){qs(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var r={};return Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[xe(e)]=n.map((function(e){return xe(e)})):r[xe(e)]=xe(n)})),r}return t}},{key:"setConstraints",value:function(e){qs(this.getSource(!0),"constraints",e),this.refreshExtends()}},{key:"getDeps",value:function(e){var t=this.getSource(e).deps;return null!=t?t.map((function(e){return"*"!==e&&".."!==e?xe(e):e})):t}},{key:"setDeps",value:function(e){qs(this.getSource(!0),"deps",e),this.refreshExtends()}},{key:"getDatatype",value:function(e){var t=this.getSource(e).datatype;return null!=t&&""!==t?Array.isArray(t)?t.map((function(e){return xe(e)})):xe(t):t}},{key:"setDatatype",value:function(e){qs(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){qs(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){qs(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){qs(this.getSource(!0),"member",e),this.refreshExtends()}},{key:"getNodetype",value:function(e){var t=this.getSource(e);return t.nodetype||t.nodeType}},{key:"setNodetype",value:function(e){qs(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){qs(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){qs(this.getSource(!0),"valueTemplate",e),this.refreshExtends()}},{key:"getCardinality",value:function(e){if(!this.getProperty()&&"text"===this.getType())return{min:1,max:1};var t=this.getSource(e);return t&&"cardinality"in t?t.cardinality:this.getProperty()?{}:{max:1}}},{key:"setCardinality",value:function(e){qs(this.getSource(!0),"cardinality",e),this.refreshExtends()}},{key:"isEnabled",value:function(e){var t=this.getSource(e);return null==t.enabled||t.enabled}},{key:"setEnabled",value:function(e){var t=this.getSource(!0);e?delete t.enabled:t.enabled=e,this.refreshExtends()}},{key:"getClasses",value:function(e){var t=this.getSource(e);return t&&"cls"in t?t.cls:[]}},{key:"setClasses",value:function(e){qs(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var r=this.getSource(t);return!!this.hasStyle(e,t)||null!=r.cls&&r.cls.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getAvailableStyles",value:function(){return this._styles}},{key:"getStyles",value:function(e){return this.getSource(e).styles||[]}},{key:"setStyles",value:function(e){qs(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var r=this.getSource(t);return!(!r||!("styles"in r))&&r.styles.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getSource",value:function(e,t){if(!0===e)return this._source._extendedSource||this._source;if(!1===e){var r=this._itemStore.getItem(this.getExtends());return null==r?this._source:r.getSource()}return this._source}},{key:"getBundle",value:function(){return this._bundle}},{key:"toStringShort",value:function(){return"'".concat(this.getLabel(),"'").concat(this.getId()?" (ID: '".concat(this.getId(),"')"):"")}},{key:"toString",value:function(){var e=[];return this.getId()&&e.push("ID: '".concat(this.getId(),"'")),e.push("TYPE: '".concat(this.getType(),"'")),this.getProperty()&&e.push("PROPERTY: '".concat(this.getProperty(),"'")),this.getExtends()&&e.push("EXTENDS: '".concat(this.getExtends(),"'")),"'".concat(this.getLabel(),"' (").concat(e.join(", "),")")}},{key:"_setLangHash",value:function(e,t,r){var n=e||{};if("string"==typeof t)"string"==typeof r?n[r]=t:n[""]=t;else if("object"===$s(t)&&null!==t)return t;return n}}])&&Hs(t.prototype,r),n&&Hs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Xs(e){return(Xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Js(n.key),n)}}function Js(e){var t=function(e,t){if("object"!=Xs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xs(t)?t:String(t)}function el(e,t,r){return t=nl(t),function(e,t){if(t&&("object"===Xs(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],nl(e).constructor):t.apply(e,r))}function tl(){return(tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=rl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function rl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nl(e)););return e}function nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ol(e,t){return(ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var il=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=el(this,t,[e]))._children=e.children,null!=r._source.content&&(r._source.items=r._source.content,delete r._source.content),r._forceChildrenClones=!1,r._parent=null,r}var r,n,o;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&&ol(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){var t,r=e&&this.isExtention(),n=r?this._ochildren:this._children;return null==n&&(n=this._itemStore.getChildren(this,r),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=n).forEach((function(e){e.__label=(e.getLabel()||"").toLowerCase()})),t.sort((function(e,t){return null!=e._source.priority?null!=t._source.priority?e._source.priority>t._source.priority?-1:e._source.priority<t._source.priority?1:0:e._source.priority>0?-1:1:null!=t._source.priority?t._source.priority>0?1:-1:e.__label>t.__label?1:e.__label<t.__label?-1:0}))),this["_".concat(r?"o":"","children")]=n),n}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){tl(nl(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return tl(nl(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&Qs(r.prototype,n),o&&Qs(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ks);function al(e){return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ll(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ul(n.key),n)}}function ul(e){var t=function(e,t){if("object"!=al(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=al(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==al(t)?t:String(t)}function cl(e,t,r){return t=pl(t),function(e,t){if(t&&("object"===al(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],pl(e).constructor):t.apply(e,r))}function dl(){return(dl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=fl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function fl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=pl(e)););return e}function pl(e){return(pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hl(e,t){return(hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ml=function(e){function t(){return sl(this,t),cl(this,t,arguments)}var r,n,o;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&&hl(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var r=function(){return{min:1,max:1,pref:1}},n=dl(pl(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=n.map((function(e){var t=Object.create(e);return t.getCardinality=r,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&ll(r.prototype,n),o&&ll(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(il);function gl(e){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bl(n.key),n)}}function bl(e){var t=function(e,t){if("object"!=gl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gl(t)?t:String(t)}function wl(e,t,r){return t=xl(t),function(e,t){if(t&&("object"===gl(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],xl(e).constructor):t.apply(e,r))}function xl(e){return(xl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sl(e,t){return(Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _l=function(e){function t(){return yl(this,t),wl(this,t,arguments)}var r,n,o;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&&Sl(e,t)}(t,e),r=t,(n=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&vl(r.prototype,n),o&&vl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ks);function kl(e){return(kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function El(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cl(n.key),n)}}function Cl(e){var t=function(e,t){if("object"!=kl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kl(t)?t:String(t)}function Pl(e,t,r){return t=Rl(t),function(e,t){if(t&&("object"===kl(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Rl(e).constructor):t.apply(e,r))}function Ol(){return(Ol="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Tl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Tl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Rl(e)););return e}function Rl(e){return(Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Al(e,t){return(Al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ml=function(e){null!=e&&e.forEach((function(e){e.value=xe(e.value)}))},jl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Pl(this,t,[e]))._ontologyStore=e.ontologyStore,r}var r,n,o;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&&Al(e,t)}(t,e),r=t,(n=[{key:"getChoices",value:function(e){return this.getStaticChoices(e)||this.getDynamicChoices(e)||[]}},{key:"hasChoices",value:function(e){var t=this.getSource(e);return null!=t.ontologyUrl||null!=t.choices}},{key:"hasStaticChoices",value:function(e){return null!=this.getSource(e).choices}},{key:"getStaticChoices",value:function(e){var t=this.getSource(e);if(t.choices){var r=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(r&&Ml(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(r&&Ml(t.choices),this._staticIsSorted=!0)}return t.choices}},{key:"setStaticChoices",value:function(e){var t=this.getSource(!0);t.choices!==e&&(null!=e&&(this._origStaticIsSorted=!0),t.choices=e,this.refreshExtends())}},{key:"setExtends",value:function(e){Ol(Rl(t.prototype),"setExtends",this).call(this,e),delete this._staticIsSorted,delete this._origStaticIsSorted}},{key:"getDynamicChoices",value:function(e){var t=this;if(null==this._dynamicChoices){if(null==e)return this._dynamicChoices=this._ontologyStore.getChoices(this),this._dynamicChoices;this._ontologyStore.getChoices(this,(function(r){t._dynamicChoices=r,null==t._dynamicChoices&&(console.log("Failed lookup of choices for ".concat(t.getLabel())),console.log("OntologyUrl is: ".concat(t._source.ontologyUrl))),e(t._dynamicChoices)}))}else{if(null==e)return this._dynamicChoices;e(this._dynamicChoices)}}},{key:"getOntologyUrl",value:function(e){var t=this.getSource(e).ontologyUrl;return null!=t&&""!==t?xe(t):t}},{key:"setOntologyUrl",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.ontologyUrl:t.ontologyUrl=e,this.refreshExtends()}},{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties||["http://www.w3.org/2000/01/rdf-schema#label"]}},{key:"getParentProperty",value:function(e){var t=this.getSource(e).parentProperty;return null!=t&&""!==t?xe(t):t}},{key:"setParentProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.parentProperty:t.parentProperty=e,this.refreshExtends()}},{key:"getHierarchyProperty",value:function(e){var t=this.getSource(e).hierarchyProperty;return null!=t&&""!==t?xe(t):t}},{key:"setHierarchyProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.hierarchyProperty:t.hierarchyProperty=e,this.refreshExtends()}},{key:"isParentPropertyInverted",value:function(e){return!0===this.getSource(e).isParentPropertyInverted}},{key:"setParentPropertyInverted",value:function(e){var t=this.getSource(!0);!0===e?t.isParentPropertyInverted=!0:delete t.isParentPropertyInverted,this.refreshExtends()}},{key:"isHierarchyPropertyInverted",value:function(e){return!0===this.getSource(e).isHierarchyPropertyInverted}},{key:"setHierarchyPropertyInverted",value:function(e){var t=this.getSource(!0);e?t.isHierarchyPropertyInverted=!0:delete t.isHierarchyPropertyInverted,this.refreshExtends()}}])&&El(r.prototype,n),o&&El(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ks);o(28436);function Il(e){return(Il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nl(n.key),n)}}function Nl(e){var t=function(e,t){if("object"!=Il(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Il(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Il(t)?t:String(t)}function Ll(e,t,r){return t=Bl(t),function(e,t){if(t&&("object"===Il(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Bl(e).constructor):t.apply(e,r))}function Zl(){return(Zl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Fl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Fl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Bl(e)););return e}function Bl(e){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vl(e,t){return(Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var zl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ll(this,t,[e]))._validObject=!0,r._validPredicate=!0,r._excludeFromTreeValidityCheck=!1,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate(),!0),r._validObject=r._isValidObjectValue(r._statement.getValue())),r}var r,n,o;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&&Vl(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var r="string"==typeof e?e.trim():e,n=this._validObject;this._isValidObjectValue(r)?(this._statement.setValue(r,t),this._validObject=!0,!0===n||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==r&&null!==r||this._statement.setValue("",t),this._validObject=!1,!1!==n&&!0===this._validPredicate&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"setSubject",value:function(e){this._statement.setSubject(e)}},{key:"getPredicate",value:function(){return this._statement.getPredicate()}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!0)):(this._validPredicate=!1,!1!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"getLanguage",value:function(){return this._statement.getLanguage()}},{key:"setLanguage",value:function(e,t){this._statement.setLanguage(e,t),t||this.bindingChange(this)}},{key:"getDatatype",value:function(){return this._statement.getDatatype()}},{key:"setDatatype",value:function(e){this._statement.setDatatype(xe(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Zl(Bl(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){var e=this._ancestorValid&&this._validObject&&this._validPredicate;this._statement.setAsserted(e,!0),this.bindingChange(this)}},{key:"isValid",value:function(){return this._validObject&&this._validPredicate&&!this._excludeFromTreeValidityCheck}}])&&Dl(r.prototype,n),o&&Dl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Os);function Wl(e){return(Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$l(n.key),n)}}function $l(e){var t=function(e,t){if("object"!=Wl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wl(t)?t:String(t)}function Hl(e,t,r){return t=ql(t),function(e,t){if(t&&("object"===Wl(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ql(e).constructor):t.apply(e,r))}function Yl(){return(Yl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Gl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Gl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ql(e)););return e}function ql(e){return(ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kl(e,t){return(Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Xl="http://www.w3.org/2000/01/rdf-schema#label",Ql="http://www.w3.org/2000/01/rdf-schema#seeAlso",Jl=function(e){function t(e){var r,n=e.choice,o=e.item,i=e.statement,a=e.matchingCode;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Hl(this,t,[{choice:n,item:o,statement:i,matchingCode:a}]))._choice=n,r._validPredicate=null!=o.getProperty(),r}var r,n,o;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&&Kl(e,t)}(t,e),r=t,o=[{key:"seeAlso",get:function(){return Ql}}],(n=[{key:"setChoice",value:function(e,t){this._choice=e,null==e?this.setValue(null,null,t):this.getValue()!==e.value&&this.setValue(e.value,e,t),e&&e.mismatch?this.setMatchingCode(Ts.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==Ts.WRONG_VALUE||this.setMatchingCode(Ts.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,r,n){var o=this.getValue();Yl(ql(t.prototype),"setValue",this).call(this,e,r,n);var i=this._statement.getGraph();if(i.findAndRemove(o,Xl,void 0,n),i.findAndRemove(o,Ql,void 0,n),null!=e&&null!=r&&(r.seeAlso&&r.inlineSeeAlso&&i.create(e,Ql,r.seeAlso,!0,n),!0===r.inlineLabel)){var a=r.label||{};Object.keys(a).forEach((function(t){return i.create(e,Xl,{value:a[t],lang:t,type:"literal"},!0,n)}))}}}])&&Ul(r.prototype,n),o&&Ul(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(zl);function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ru(n.key),n)}}function ru(e){var t=function(e,t){if("object"!=eu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=eu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eu(t)?t:String(t)}function nu(e,t,r){return t=ou(t),function(e,t){if(t&&("object"===eu(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ou(e).constructor):t.apply(e,r))}function ou(e){return(ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iu(e,t){return(iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var au=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=nu(this,t,[e]))._objectBinding=e.objectBinding,r}var r,n,o;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&&iu(e,t)}(t,e),r=t,(n=[{key:"remove",value:function(){}},{key:"setValue",value:function(e){this._objectBinding.setPredicate(e)}},{key:"getValue",value:function(){return this._objectBinding.getPredicate()}},{key:"isValid",value:function(){return!1}},{key:"updateAssertions",value:function(){}}])&&tu(r.prototype,n),o&&tu(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Jl);function su(e){return(su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uu(n.key),n)}}function uu(e){var t=function(e,t){if("object"!=su(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==su(t)?t:String(t)}function cu(e,t,r){return t=du(t),function(e,t){if(t&&("object"===su(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],du(e).constructor):t.apply(e,r))}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fu(e,t){return(fu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var pu=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=cu(this,t,[e]);var n=e.statement,o=e.constraints;r._statement=void 0,r._validPredicate=!0,r._constraints=[];var i,a=r._item.getChildren(),s=a[1];i=s instanceof il?new Us({item:s,statement:n,constraints:o}):s instanceof jl?new Jl({item:s,statement:n}):new zl({item:s,statement:n});var l=new au({item:a[0],objectBinding:i});return r.addChildBinding(l),r.addChildBinding(i),r}var r,n,o;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&&fu(e,t)}(t,e),r=t,(n=[{key:"getPredicateBinding",value:function(){return this._childBindings[0][0]}},{key:"getObjectBinding",value:function(){return this._childBindings[1][0]}},{key:"getGraph",value:function(){return this.getObjectBinding().getGraph()}}])&&lu(r.prototype,n),o&&lu(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Us);function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yu(n.key),n)}}function yu(e){var t=function(e,t){if("object"!=hu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hu(t)?t:String(t)}function vu(e,t,r){return t=xu(t),function(e,t){if(t&&("object"===hu(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],xu(e).constructor):t.apply(e,r))}function bu(){return(bu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=wu(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function wu(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=xu(e)););return e}function xu(e){return(xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Su(e,t){return(Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _u,ku,Eu,Cu,Pu,Ou=function(e){function t(){return mu(this,t),vu(this,t,arguments)}var r,n,o;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&&Su(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._parent.getValue()}},{key:"setValue",value:function(e){return this._parent.setValue(e)}},{key:"getGist",value:function(){return this._parent.getGist()}},{key:"setGist",value:function(e,t){return this._parent.setGist(e,t)}},{key:"setSubject",value:function(e){}},{key:"getPredicate",value:function(){return this._parent.getPredicate()}},{key:"remove",value:function(){this._parent.removeChildBinding(this),bu(xu(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&gu(r.prototype,n),o&&gu(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(zl);function Tu(e){return(Tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ru,Au,Mu,ju,Iu,Du,Nu=!1,Lu=function(e,t,r){var n=new Us({item:r,childrenRootUri:t,graph:e});return _u(n),ku(n),n},Zu=function(e,t,r){var n=new Us({item:r,childrenRootUri:t,graph:e});return _u(n),Nu=!0,_u(n),Nu=!1,ku(n),n},Fu=function(e,t,r,n){var o=e.findProperties(t),i=[],a={};if(null!=n){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof il&&t.getChildren().forEach(e)}(e),i.push(e))};n.forEach((function(e){var t=r.getItem(e);null!=t?t instanceof il&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=r.getItemByProperty(e))?s(t):console.warn("Warning, when autodetecting a template: Required item '".concat(e,"' is neither an id for a loaded item or a property for a loaded item, ignoring."))}))}return o.forEach((function(e){if(!a[e]){var t=r.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),r.createTemplateFromChildren(i)},Bu=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},Vu=function(e,t){var r,n,o=t.getChildren()[1],i=e.getGraph();o instanceof il?(r=i.create(e.getChildrenRootUri(),"",null,!1),n=Pu(i,r.getSubject(),o)):r=o instanceof jl?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new pu({item:t,statement:r,constraints:n});return e.addChildBinding(a),o instanceof il&&o.getChildren().forEach((function(e){zu(a.getObjectBinding(),e)})),a},zu=function(e,t,r){return t instanceof _l?function(e,t){if(!t.getProperty()){var r=new Ou({item:t,statement:null,matchingCode:Ts.OK});return e.addChildBinding(r),r}var n=e.getGraph(),o=t.getNodetype(),i={value:"",type:"literal"};"URI"===o?i.type="uri":"DATATYPE_LITERAL"===o&&(i.datatype=Bu(t));var a=t.getValue();if(null!=a&&0===e.getChildBindingsFor(t).length){i.value=a;var s=t.getLanguage();null!=s&&(i.lang=s)}var l=n.create(e.getChildrenRootUri(),t.getProperty(),i,!1),u=new zl({item:t,statement:l});return e.addChildBinding(u),u}(e,t):t instanceof ml?Vu(e,t):t instanceof il?function(e,t,r){var n,o;if(void 0!==t.getProperty()){var i=e.getGraph();n=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),o=Pu(i,n.getValue(),t)}var a=new Us({item:t,statement:n,constraints:o});e.addChildBinding(a);var s=t._source["@id"];if(s){if(r[s])return a;r[s]=!0}return a}(e,t,r||{}):t instanceof jl?function(e,t){var r=e.getGraph(),n=t.getNodetype(),o={type:"literal",value:""};"DATATYPE_LITERAL"===n?o.datatype=Bu(t):"RESOURCE"!==n&&"URI"!==n||(o.type="uri");var i=r.create(e.getChildrenRootUri(),t.getProperty(),o,!1),a=new Jl({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(Iu(t,s,r),!0),a}(e,t):void 0};_u=function(e){Nu&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&_u(e)})),e.getItem().getChildren().forEach((function(t){Nu?void 0!==t.getProperty()&&Ru(e,t):Ru(e,t)}))};Ru=function(e,t){t instanceof jl?function(e,t){if(null!=t.getProperty()){var r=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Eu(e)){var n=Au(t,e),o=Mu(t,e),i=ju(t,e);if(n&&o&&i||Nu){var a=Iu(t,e.getValue(),e.getGraph());if(void 0!==a){Cu(e);var s=n?Ts.OK:Ts.WRONG_NODETYPE;o?i?a.mismatch&&(s=Ts.WRONG_VALUE):s=Ts.WRONG_PATTERN:s=Ts.WRONG_DATATYPE,r.push(new Jl({item:t,statement:e,choice:a,matchingCode:s}))}}}})),r.length>0&&e.addChildBindings(r)}}(e,t):t instanceof ml?function(e,t){var r,n,o,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),u=[];l.find(e.getChildrenRootUri()).forEach((function(e){Eu(e)&&Au(s,e)&&ju(s,e)&&void 0!==(o=Iu(a,e.getPredicate(),e.getGraph()))&&(n=null,s instanceof il?void 0!==(r=Du(l,e.getValue(),s))&&(Cu(e),n=new pu({item:t,statement:e,constraints:r}),_u(n.getObjectBinding())):s instanceof jl?void 0!==(i=Iu(s,e.getValue(),e.getGraph()))&&(Cu(e),(n=new pu({item:t,statement:e})).getObjectBinding().setChoice(i)):(Cu(e),n=new pu({item:t,statement:e})),null!==n&&(n.getPredicateBinding().setChoice(o),u.push(n)))})),u.length>0&&e.addChildBindings(u)}(e,t):t instanceof il?function(e,t){var r,n,o,i,a=e.getGraph();void 0!==t.getProperty()?(r=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(n=[],r.forEach((function(e){if(Eu(e)){var r=ju(t,e),s=Au(t,e);if((r&&s||Nu)&&(void 0!==(o=Du(a,e.getValue(),t))||Nu)){var l=s?Ts.OK:Ts.WRONG_NODETYPE;r?void 0===o&&(l=Ts.MISSING_CONSTRAINTS):l=Ts.WRONG_PATTERN,Cu(e),i=new Us({item:t,statement:e,constraints:o,matchingCode:l}),n.push(i),l===Ts.OK&&_u(i)}}})),e.addChildBindings(n)):(i=new Us({item:t}),e.addChildBindings([i]),_u(i))}(e,t):t instanceof _l&&function(e,t){var r=[];null==t.getProperty()?r.push(new Ou({item:t,statement:null,matchingCode:Ts.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Eu(e)&&ju(t,e)){var n=Au(t,e),o=Mu(t,e);if(n&&(o||t.hasStyle("relaxedDatatypeMatch"))||Nu){Cu(e);var i=n?Ts.OK:Ts.WRONG_NODETYPE;o||(i=Ts.WRONG_DATATYPE),r.push(new zl({item:t,statement:e,matchingCode:i}))}}})),r.length>0&&e.addChildBindings(r)}(e,t)},Au=function(e,t){var r=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===r;case"RESOURCE":return"uri"===r||"bnode"===r;case"URI":return"uri"===r;case"BLANK":return"bnode"===r}return!1},Mu=function(e,t){var r="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==r||(Array.isArray(r)?-1!==r.indexOf(t.getDatatype()):t.getDatatype()===r)},ju=function(e,t){var r=e.getPattern(),n=Xo.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==r)try{return new RegExp("^".concat(r,"$")).test(n)}catch(e){return!0}return!0},Du=function(e,t,r){var n,o=r.getConstraints(),i=[],a=function(r,o){if(1!==(n=e.find(t,r,{type:"uri",value:o})).length)return!1;i.push(n[0])};if("object"===Tu(o)&&null!==o){for(var s,l=Object.keys(o),u=function(){var e=l[c],t=o[e];if(t instanceof Array){var r=!0;if(t.forEach((function(t){!1!==a(e,t)&&(r=!1)})),r)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},c=0;c<l.length;c++)if(s=u())return s.v;return i}return[]},Pu=function(e,t,r){var n=[],o=r.getConstraints();return"object"===Tu(o)&&null!==o&&Object.keys(o).forEach((function(r){var i=o[r];Array.isArray(i)?n.push(e.create(t,r,{type:"uri",value:i[0]},!1)):n.push(e.create(t,r,{type:"uri",value:i},!1))})),n},Iu=function(e,t,r){var n,o;if(e.hasChoices()){for(o=e.getChoices(),n=0;n<o.length;n++)if(o[n].value===t)return o[n];if(!e.hasStyle("strictmatch")||Nu)return{value:t,label:{"":t},mismatch:!0}}else{var i=Xo.getLocalizedMap(r,t,e.getLabelProperties());null==i&&Nu&&(i={"":t,mismatch:!0});var a=r.findFirstValue(t,Jl.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=Jo.getChoice)return Jo.getChoice(e,t,a,r)}},Cu=function(e){e._dibbs=!0},Eu=function(e){return!0!==e._dibbs},ku=function(e){var t,r,n,o=e.getItemGroupedChildBindings()||[];for(t=0;t<o.length;t++)for(n=o[t],r=0;r<n.length;r++){var i=n[r];i._statement&&delete i._statement._dibbs,(i instanceof Us||i instanceof pu)&&ku(i)}};var Wu=function e(t,r){for(var n="/"===r[0]?r.slice(1):r,o=t.getItemGroupedChildBindings(),i=n[0],a=0;a<o.length;a++)for(var s=o[a],l=void 0,u=0;u<s.length;u++){var c=s[u],d=c.getItem();if(d instanceof jl&&void 0===d.getProperty()&&i===d.getId()&&2===n.length&&n[1]===c.getValue())return c;if(c.isValid()){if("propertygroup"===d.getType())d=(c=c.getObjectBinding()).getItem();else if(void 0===d.getProperty()&&(l=e(c,n)))return l;if("*"===i||i===c.getPredicate()||i===d.getId())if("group"===d.getType()){if(l=e(c,n.slice(1)))return l}else if(1===n.length||"*"===n[1]||n[1]===c.getValue())return c}}},Uu=function(e,t){var r=t[0],n=e;if("/"===r){for(;n.getParent();)n=n.getParent();return n}if(".."===r){for(var o=0;o<t.length;o++){if(".."!==t[o]||!n.getParent())return n;n=n.getParent()}return n}return e},$u=function(e,t){var r=e.getId(),n={},o={};e.getChoices().forEach((function(e){n[e.value]=0,o[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===r||"/"===t[0]&&t[1]===r)){var o="/"===t[0]?t[2]:t[1],i=n[o];void 0!==i&&(n[o]=i+1)}}));var i,a=0;return Object.keys(n).forEach((function(e){(!i||n[e]>a)&&(i=e,a=n[e])})),o[i]};const Hu={detectLevel:function(e){if(e.mandatory>0){if(0===e.recommended&&0===e.optional)return"mandatory";if(0===e.optional)return"mixed_mandatory_recommended";if(0===e.recommended)return"mixed_mandatory_optional"}else{if(e.recommended>0)return 0===e.optional?"recommended":"mixed_recommended_optional";if(0===e.recommended&&e.recommended>0&&0===e.optional)return"optional"}return"mixed_all"},levelProfile:function(e){var t=function e(t,r,n){var o=r.getCardinality();return n&&"group"===r.getType()||(null!=o?o.min>0?t.mandatory+=1:o.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===r.getType()&&r.getChildren().forEach((function(r){return e(t,r)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,r){if(t instanceof zl)return t;for(var n=t.getItemGroupedChildBindings(),o=Go().locale(),i=0;i<n.length;i++){var a=n[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof _l))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},u=0;u<a.length;u++){var c=a[u].getLanguage();null==c?l.emptyLanguageValue=a[u]:c===o?l.perfectLocaleLanguageValue=a[u]:c.substring(0,1)===o.substring(0,1)?l.localeLanguageValue=a[u]:-1!==c.indexOf("en")?l.defaultLanguageValue=a[u]:l.anyLanguageValue=a[u]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(r){var d=zu(t,s,{});return d instanceof zl?(d.setLanguage(o),d):e(d,!0)}}},create:zu,constructTemplate:Fu,findPopularChoice:$u,match:Lu,fuzzyMatch:Zu,matchPathBelowBinding:Wu,findBindingRelativeToParentBinding:Uu,CODES:Ts};var Yu=function(e,t){var r=t;return null==r?r={errors:[],warnings:[],deprecated:[]}:(r.errors=r.errors||[],r.warnings=r.warnings||[],r.deprecated=r.deprecated||[]),Xu(e,r,!0)},Gu=function(e){for(var t=0,r=0;r<e.length;r++)e[r].isValid()&&(t+=1);return t},qu=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},Ku=function(e,t){if(t.hasStyle("deprecated"))return!0;var r=t.getDeps();if(r){var n=Uu(e,r);if(!Wu(n,r))return!0}return!1},Xu=function e(t,r,n){if(t.getMatchingCode()===Ts.OK){var o=t.getItem();if(!0===n||t.isValid()||null==o.getProperty()||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var i=o.getChildren();if(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild")||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Gu(s);l>1&&(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild"))?a=Ts.AT_MOST_ONE_CHILD:1!==l&&o.hasStyle("exactlyOneChild")?a=Ts.EXACTLY_ONE_CHILD:0===l&&o.hasStyle("atLeastOneChild")&&(a=Ts.AT_LEAST_ONE_CHILD),a&&(qu([t],a),i.length>0&&r.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,n){var o=i[n];if(!Ku(t,o)&&null!=o.getProperty()){var a=Gu(e),s=o.getCardinality();null!=s.min&&s.min>a?(r.errors.push({parentBinding:t,item:o,code:Ts.TOO_FEW_VALUES_MIN}),qu(e,Ts.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&r.warnings.push({parentBinding:t,item:o,code:Ts.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(r.errors.push({parentBinding:t,item:o,code:Ts.TOO_MANY_VALUES}),qu(e,Ts.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(n){var o=n.getItem();n.getMatchingCode()!==Ts.OK&&r.errors.push({parentBinding:n,item:o,code:n.getMatchingCode()}),o.hasStyle("deprecated")&&r.deprecated.push(n),Ku(t,o)||"group"===o.getType()&&e(n,r)}))}return r}},Qu=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},Ju=function(e,t,r){for(var n=e;;){var o=n.getChildrenRootUri?n.getChildrenRootUri():n.getParent().getChildrenRootUri();if(o===t)return!0;if(r[o])return!1;n=n.getParent()}},ec=function(e,t){var r=e,n=[];for(null!=t.getProperty()&&r.getItem()!==t&&n.push(we(t.getProperty()));null!=r.getItem().getProperty()&&n.push(we(r.getItem().getProperty())),null!=r.getParent();)r=r.getParent();return n.reverse(),n.join(" > ")},tc=function(e){var t=e.errors,r=e.warnings,n=e.deprecated;e.errors=t.map((function(e){return{path:ec(e.parentBinding,e.item),code:e.code}})),e.warnings=r.map((function(e){return{path:ec(e.parentBinding,e.item),code:e.code}})),e.deprecated=n.map((function(e){return function(e){return"".concat(ec(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},rc=function(e,t,r,n){var o=Zu(t,e,r),i=Yu(o);return function(e,t,r){var n=e.errors,o=e.warnings,i=e.deprecated;e.errors=n.filter((function(e){return Ju(e.parentBinding,t,r)})),e.warnings=o.filter((function(e){return Ju(e.parentBinding,t,r)})),e.deprecated=i.filter((function(e){return Ju(e,t,r)}))}(i,e,n||{}),tc(i),i};const nc={graphReport:function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},a={},s={errors:0,warnings:0,deprecated:0,resources:[]};Object.keys(t).forEach((function(t){var r=Qu(e,t);i[t]=r,r.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(o){r=t[o],i[o].forEach((function(t){(n=rc(t,e,r,a)).uri=t,n.type=o,n.template=r.getId(),s.resources.push(n),s.errors+=n.errors.length,s.warnings+=n.warnings.length,s.deprecated+=n.deprecated.length}))}));var l=[];return o.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Yu};function oc(e){return(oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ic(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ac(n.key),n)}}function ac(e){var t=function(e,t){if("object"!=oc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oc(t)?t:String(t)}var sc=0;function lc(e){return(lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dc(n.key),n)}}function dc(e){var t=function(e,t){if("object"!=lc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lc(t)?t:String(t)}function fc(e,t,r){return t=mc(t),function(e,t){if(t&&("object"===lc(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function pc(){return(pc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=hc(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function hc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=mc(e)););return e}function mc(e){return(mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gc(e,t){return(gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var yc=function(e,t,r){if(0===r.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var n=t.getChildren();return 0===n.length||!!r[0].getItemGroupedChildBindings().find((function(t,r){return yc(e,n[r],t)}))}return!0},vc=function(e){function t(){return uc(this,t),fc(this,t,arguments)}var r,n,o;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&&gc(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",pc(mc(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return yc(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),r="group"===t.getType();return!(!t.getProperty()&&r&&0===t.getChildren().length)&&r&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?fi.filterTranslations(t,this.getLocale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,r){r.hasStyle("noLabelInPresent")?fi.domClassToggle(e,"rdformsInvisibleGroup",!0):fi.renderPresenterLabel(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return fi.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return fi.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){fi.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){fi.renderPresenter(e,t,this.context)}},{key:"truncateAt",value:function(e,t){return"group"!==e.getType()&&t&&t.length>this.truncateLimit&&(this.truncate||e.hasStyle("truncate"))&&!e.hasStyle("noTruncate")?this.truncateLimit:-1}}])&&cc(r.prototype,n),o&&cc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=sc,sc+=1,this.locale=t.locale,this.defaultTextLanguage=t.defaultTextLanguage,this.messages=t.messages,this.parentView=t.parentView,this.srcNodeRef=r,this.binding=t.binding||null,this.template=t.template||null,this.graph=t.graph||null,this.resource=t.resource||"",this.topLevel=!1!==t.topLevel,this.compact=!1!==t.compact,this.showDescription=!0===t.showDescription,this.styleCls=t.styleCls||"",this.truncateLimit=void 0!==t.truncateLimit?t.truncateLimit:10,this.truncate=void 0!==t.truncate&&t.truncate,Array.isArray(t.filterPredicates)?this.filterPredicates=t.filterPredicates.reduce((function(e,t){return e[t]=!0,e}),{}):"object"===oc(t.filterPredicates)?this.filterPredicates=t.filterPredicates:"string"==typeof t.filterPredicates?this.filterPredicates=t.filterPredicates.split(",").reduce((function(e,t){return e[t]=!0,e}),{}):this.filterPredicates=null,this.restrictToItem=t.restrictToItem,this.fuzzy=!0===t.fuzzy,this.markOrigin=!1!==t.markOrigin,this._handleParams(t),this._labelIndex={},this.domNode=fi.createDomNode(r,this),fi.domClassToggle(this.domNode,"rdforms",!0),fi.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,r,n;return t=e,(r=[{key:"getParentView",value:function(){return this.parentView}},{key:"getNamedGraphId",value:function(e){if(this.markOrigin){this.namedGraphs||(this.namedGraphs={},this.namedGraphCounter=65);var t=this.namedGraphs[e];return void 0===t&&(t=String.fromCharCode(this.namedGraphCounter),this.namedGraphs[e]=t,this.namedGraphCounter+=1),t}}},{key:"getNamedGraphFromId",value:function(e){var t=this;return this.namedGraphs?Object.keys(this.namedGraphs).find((function(r){return t.namedGraphs[r]===e})):void 0}},{key:"destroy",value:function(){fi.destroyDomNode(this.domNode,this)}},{key:"getBinding",value:function(){return this.binding}},{key:"_handleParams",value:function(e){if(e.binding)this.binding=e.binding;else{if(this.template=e.template||this.template,this.graph=e.graph||this.graph,this.resource=e.resource||this.resource,null==this.graph||null==this.resource||null==this.template)return;this.fuzzy?(this.binding=Zu(this.graph,this.resource,this.template),Yu(this.binding)):this.binding=Lu(this.graph,this.resource,this.template)}}},{key:"showNow",value:function(){return!0}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(){}},{key:"addTable",value:function(){}},{key:"fillTable",value:function(){}},{key:"addLabel",value:function(){}},{key:"addComponent",value:function(){}},{key:"showAsTable",value:function(e){return"group"===e.getType()&&(e.hasStyle("table")||e.hasClass("rdformsTable"))}},{key:"show",value:function(e){this._handleParams(e),this.render()}},{key:"render",value:function(){if(fi.domText(this.domNode,""),null!=this.binding&&(this.messages||(this.messages=fi.getMessages()),null!=this.binding)){var e,t,r,n,o,i=this.binding.getItem().getChildren(),a=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?fi.domClassToggle(this.domNode,"compact",!1):fi.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),e=0;e<a.length;e++)if(n=a[e],o=i[e],(!this.restrictToItem||this.restrictToItem===o)&&this.showNow(o,n)){if(n=this.prepareBindings(o,n),this.showAsTable(o))this.context={view:this},r=this.createRowNode(r,n[0],o),n.length>0&&(t=this.addTable(r,n[0],o),this.fillTable(t,n));else if(n.length>0)if(this.isMultiValued(o))this.context={view:this},r=this.addRow(r,n[0],!0);else{for(var s=this.truncateAt(o,n),l=0;l<n.length;l++)this.context={view:this},r=this.addRow(r,n[l],0===l||n[l]instanceof Us,l,s);if(-1!==s){var u=fi.domQuery(".rdformsFields",r);u&&fi.addTruncateControl(u,this.context)}}else this.context={view:this},r=this.createRowNode(r,null,o);n.length>0&&n[0].getCardinalityTracker().checkCardinality()}}}},{key:"addRow",value:function(e,t,r,n,o){var i,a,s=r,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof Us),!0===s){a=this.createRowNode(e,t,l);var u=fi.domCreate("div",a);fi.domClassToggle(u,"rdformsFields",!0),-1!==o&&fi.domClassToggle(u,"rdformsTruncated",!0),l.hasStyle("inline")&&fi.domClassToggle(u,"rdformsInline",!0),i=fi.domCreate("div",u),this.createEndOfRowNode(a,t,l)}else{var c=fi.domQuery(".rdformsFields",e);if(null!=c)i=fi.domCreate("div",c),fi.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==o&&n>=o&&fi.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var d=fi.domCreate("div",e);fi.domClassToggle(d,"rdformsFields",!0),l.hasStyle("inline")&&fi.domClassToggle(d,"rdformsInline",!0),i=fi.domCreate("div",d),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(fi.domClassToggle(i,"rdformsOrigin",!0),fi.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(fi.domClassToggle(i,"rdformsOrigin",!0),fi.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?fi.domClassToggle(i,"rdformsGroup",!0):fi.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&fi.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,r){var n;n=null==e?fi.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):fi.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),r.getClasses().forEach((function(e){fi.domClassToggle(n,e,!0)})),fi.domClassToggle(n,"rdformsRow",!0),fi.domClassToggle(n,"rdformsTopLevel",this.topLevel),fi.domClassToggle(n,"rdformsInvisibleGroup",r.hasStyle("invisibleGroup")),fi.domClassToggle(n,"rdformsHeading",r.hasStyle("heading")),fi.domClassToggle(n,"notCompact","group"===r.getType()||r.hasStyle("nonCompact")),fi.domClassToggle(n,"rdformsCompactItem",r.hasStyle("compact")),this.addLabel(n,t,r),t&&this.filterBinding(t)&&fi.domClassToggle(n,"hiddenProperty",!0);var o=void 0!==this._subEditors;return(r.hasStyle("card")||r.hasStyle("cardInEdit")&&o||r.hasStyle("cardInPresent")&&!o)&&fi.domClassToggle(n,"rdformsCard",!0),n}},{key:"createEndOfRowNode",value:function(e,t,r){}},{key:"_getFilterPredicates",value:function(){return this.parentView?this.parentView._getFilterPredicates():this.filterPredicates}},{key:"filterBinding",value:function(e){return this.filterItem(e.getItem())}},{key:"filterItem",value:function(e){var t=this,r=this._getFilterPredicates();return!!r&&function e(r,n){var o=r.getId();if(o&&Object.keys(n).includes(o))return!0;var i=r.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=be(i);return a?!0===n[i]||!0===n[l]||!0===n["*".concat(i)]||!0===n["".concat(l)]:!0===n["*".concat(i)]||!0===n["*".concat(l)]}if("group"===r.getType()){var u=r.getChildren()||[],c=!1;return u.forEach((function(t){e(t,n)||(c=!0)})),!c}return!1}(e,r)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,r=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=r._labelIndex[e.getHash()])})),void 0!==t?t:this.parentView?this.parentView.getLabelIndex(e.getParent()):""}},{key:"createLabelIndex",value:function(e){var t="".concat(e.getHash(),"_").concat(this._viewId,"_label");return this._labelIndex[e.getHash()]=t,t}},{key:"getRowIndex",value:function(e){return"".concat(e.getHash(),"_").concat(this._viewId,"_row")}},{key:"isMultiValued",value:function(e){return!1}},{key:"truncateAt",value:function(e,t){return-1}},{key:"getLocale",value:function(){return this.locale||(this.parentView?this.parentView.getLocale():Go().locale())}},{key:"getDefaultTextLanguage",value:function(){return this.defaultTextLanguage||(this.parentView?this.parentView.getDefaultTextLanguage():this.getLocale())}}])&&ic(t.prototype,r),n&&ic(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());function bc(e){return(bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sc(n.key),n)}}function Sc(e){var t=function(e,t){if("object"!=bc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=bc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bc(t)?t:String(t)}function _c(e,t,r){return t=Cc(t),function(e,t){if(t&&("object"===bc(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Cc(e).constructor):t.apply(e,r))}function kc(){return(kc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Ec(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Ec(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Cc(e)););return e}function Cc(e){return(Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pc(e,t){return(Pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Oc=function(e,t,r,n){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===r.length)return!1;var o=t.getProperty();if(r.length>0){if(o)return!e.filterItem(t);if("group"!==t.getType())return!0;var i=t.getChildren();if(0===i.length)return!0;if(t.hasStyle("atLeastOneChild")||t.hasStyle("exactlyOneChild"))return!0;if(r[0].getItemGroupedChildBindings().find((function(t,r){return Oc(e,i[r],t,n)})))return!0;if(!o)return!1}var a=t.getCardinality();switch(n){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},Tc=function(e){function t(){return wc(this,t),_c(this,t,arguments)}var r,n,o;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&&Pc(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this._subEditors=this._subEditors||[],this.includeLevel=e.includeLevel||"recommended",this.hideAddress=!1!==e.hideAddress,e.styleCls=e.styleCls||"rdformsEditor",e.filterTranslations=void 0!==e.filterTranslations&&e.filterTranslations,kc(Cc(t.prototype),"_handleParams",this).call(this,e)}},{key:"getSubEditorForBinding",value:function(e){return this._subEditors.find((function(t){return t.getBinding()===e}))}},{key:"report",value:function(e){var t=this,r=e||Yu(this.binding);Object.keys(this._binding2node).forEach((function(e){fi.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var n=function(){var e=r.errors[o];if(e.parentBinding===t.binding)if(e.code===Ts.TOO_FEW_VALUES_MIN){var n=e.item,i=n.getCardinality().min;t.binding.getChildBindingsFor(n).find((function(e){return i-=1,e.isValid()||fi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===Ts.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==Ts.OK&&fi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},o=0;o<r.errors.length;o++)n();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(r)}},{key:"getIncludeLevel",value:function(){return this.includeLevel}},{key:"setIncludeLevel",value:function(e){this.includeLevel!==e&&(this.includeLevel=e,null!=this.graph&&null!=this.resource&&null!=this.template&&(this.binding=Lu(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],kc(Cc(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Oc(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality();if(r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?1:"group"===e.getType()?(e.getProperty(),1):1,e.hasStyle("nonEditable")&&!e.hasStyle("autoInitDate")&&!e.hasStyle("autoUpdateDate")&&!e.hasStyle("autoUUID")&&!e.hasStyle("autoValue")&&!e.getValue())return n;if(r>n.length)for(n=n.concat([]);r>n.length;)n.push(zu(this.binding,e));return n}},{key:"addLabel",value:function(e,t,r){fi.renderEditorLabel(e,t,r,this.context)}},{key:"createEndOfRowNode",value:function(e,t,r){fi.renderEditorLabelScopeEnd(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):fi.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){fi.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){fi.preEditorViewRenderer(this.domNode,this.binding,{view:this,inEditor:!0,topLevel:this.topLevel,hideAddress:this.hideAddress})}},{key:"addComponent",value:function(e,t){this.context.inEditor=!0,t.getItem().hasStyle("nonEditable")?fi.renderPresenter(e,t,this.context):fi.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,r,n){if(null!=r||!n.hasStyle("nonEditable")){var o=kc(Cc(t.prototype),"createRowNode",this).call(this,e,r,n);if("choice"===n.getType()&&void 0===n.getProperty()){var i=$u(n,r.getParent());i&&r.setChoice(i)}var a=n.getDeps();if(a){var s=function(e){e?(fi.domClassToggle(o,"missingDepsWithValue",!1),fi.domClassToggle(o,"missingDeps",!1)):r.isValid()?fi.domClassToggle(o,"missingDepsWithValue",!0):fi.domClassToggle(o,"missingDeps",!0),r.getCardinalityTracker().setDepsOk(e)},l=Uu(r.getParent(),a);Wu(l,a)||s(!1),l.addListener((function e(){r.getParent()?s(Wu(l,a)):l.removeListener(e)}))}return this.filterBinding(r)&&fi.domClassToggle(o,"hiddenProperty",!0),n.hasStyle("deprecated")&&fi.domClassToggle(o,"rdformsDeprecated",!0),o}}},{key:"isMultiValued",value:function(e){return fi.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&xc(r.prototype,n),o&&xc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(vc);function Rc(e){return(Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jc(n.key),n)}}function jc(e){var t=function(e,t){if("object"!=Rc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Rc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Rc(t)?t:String(t)}function Ic(e,t,r){return t=Lc(t),function(e,t){if(t&&("object"===Rc(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Lc(e).constructor):t.apply(e,r))}function Dc(){return(Dc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Nc(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Nc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Lc(e)););return e}function Lc(e){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zc(e,t){return(Zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Fc=function(e,t,r){return 1===r?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",r)},Bc=function(e){function t(){return Ac(this,t),Ic(this,t,arguments)}var r,n,o;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&&Zc(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,Dc(Lc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Yu(this.binding)}},{key:"showNow",value:function(e,t){if(e.hasStyle("invisible"))return!1;if(t.length>0)return!0;if(e.hasStyle("deprecated"))return!1;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;var r=this.binding.getMatchingCode();if(r===Ts.MISSING_CONSTRAINTS||r===Ts.WRONG_NODETYPE)return!1;var n=e.getCardinality();switch(this.includeLevel){case"mandatory":return n&&n.min>=1;case"recommended":default:return n&&(n.min>=1||n.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality(),i=null!=o.min?o.min:0,a=null!=o.pref?o.pref:0;r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?0:"group"===e.getType()&&null==e.getProperty()?1:0;var s=this.binding.getMatchingCode(),l=!(this.binding.getItem().hasStyle("atleastOneChild")||this.binding.getItem().hasStyle("atMostOneChild")||this.binding.getItem().hasStyle("disjoint")||this.binding.getItem().hasStyle("exactlyOneChild"))||s===Ts.TOO_FEW_VALUES_MIN||s===Ts.TOO_FEW_VALUES_PREF,u=s===Ts.MISSING_CONSTRAINTS||s===Ts.WRONG_NODETYPE;if(r>n.length&&l&&!u)for(n=n.concat([]);r>n.length;){var c=zu(this.binding,e);n.length<i?c.setMatchingCode(Ts.TOO_FEW_VALUES_MIN):n.length<a&&c.setMatchingCode(Ts.TOO_FEW_VALUES_PREF),n.push(c)}return n}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var r,n,o=t.getItem(),i=o.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===o.getType()?null===(r=t.getCardinalityTracker())||void 0===r?void 0:r.getCode():void 0,u=l&&l!==Ts.OK&&l!==Ts.UNKNOWN?l:t.getMatchingCode(),c=u===Ts.TOO_FEW_VALUES_PREF;if(u!==Ts.TOO_FEW_VALUES_PREF&&u!==Ts.OK)return fi.domClassToggle(e,"error",!0),u===Ts.TOO_FEW_VALUES_MIN?n=Fc(this.messages,"validation_min_required",a):u===Ts.TOO_MANY_VALUES?n=Fc(this.messages,"validation_max",i.max||1):u===Ts.AT_MOST_ONE_CHILD?n=this.messages.validation_at_most_one_child:u===Ts.AT_LEAST_ONE_CHILD?n=this.messages.validation_at_least_one_child:u===Ts.EXACTLY_ONE_CHILD?n=this.messages.validation_exactly_one_child:u===Ts.WRONG_NODETYPE?n=this.messages.validation_nodetype:u===Ts.WRONG_VALUE?n=this.messages.validation_value:u===Ts.WRONG_DATATYPE?n=this.messages.validation_datatype:u===Ts.MISSING_CONSTRAINTS?n=this.messages.validation_constraints:u===Ts.WRONG_PATTERN?n=this.messages.validation_pattern:u===Ts.MISSING_LANGUAGE&&(n=this.messages.validation_language),fi.renderValidationMessage(e,"error",n),!0;if(c){fi.domClassToggle(e,"warning",!0);var d=Fc(this.messages,"validation_min_recommended",s);return fi.renderValidationMessage(e,"warning",d),!0}return!!o.hasStyle("deprecated")&&(fi.domClassToggle(e,"deprecated",!0),fi.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,r){Dc(Lc(t.prototype),"addComponent",this).call(this,e,r),this.addValidationMarker(e,r)}}])&&Mc(r.prototype,n),o&&Mc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(vc);function Vc(e){return(Vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$c(n.key),n)}}function Uc(e,t,r){return t&&Wc(e.prototype,t),r&&Wc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $c(e){var t=function(e,t){if("object"!=Vc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vc(t)?t:String(t)}function Hc(e,t,r){return t=qc(t),function(e,t){if(t&&("object"===Vc(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],qc(e).constructor):t.apply(e,r))}function Yc(){return(Yc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Gc(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Gc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qc(e)););return e}function qc(e){return(qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kc(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&&Xc(e,t)}function Xc(e,t){return(Xc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Qc=function(t){var r=function(t){function r(){return zc(this,r),Hc(this,r,arguments)}return Kc(r,t),Uc(r,[{key:"render",value:function(){if(this.domNode.clear(),Yc(qc(r.prototype),"render",this).call(this),!this.initiatedAlready&&this.domNode.parent instanceof Node){var t=this.domNode.component;(0,_s.s)(this.domNode.parent).render(e.createElement(t,null))}this.initiatedAlready=!0}}]),r}(t);return r.Component=function(e){function t(e){var n;return zc(this,t),(n=Hc(this,t,[e])).fix=new r(e),n}return Kc(t,e),Uc(t,[{key:"render",value:function(){return this.fix.domNode.component}}]),t}(e.Component),r},Jc=Qc(Tc),ed=Qc(vc),td=Qc(Bc);function rd(e){return(rd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var nd=["className"];function od(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return id(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return id(e,t)}(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 id(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ad(e,t,r){var n;return n=function(e,t){if("object"!=rd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=rd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==rd(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sd(){return(sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ld(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ud=(0,h.ZP)((0,e.forwardRef)((function(t,r){var n=t.className,o=ld(t,nd);return e.createElement(bs,sd({},o,{classes:{popper:n}}))})))((function(e){var t=e.theme;return ad(ad({},"& .".concat(cs.tooltip),{backgroundColor:t.palette.background.default,fontSize:12,color:"black",boxShadow:t.shadows[10],pointerEvents:"auto"}),"& .".concat(cs.tooltipPlacementBottom),{margin:"2px 0 24px 0",marginTop:"0px !important"})})),cd=function(t){var r=od((0,e.useState)(!1),2),n=r[0],o=r[1],i=function(){o(!1)},a=function(){o(!0)},s="",l=t.item.getProperty();l&&(s=e.createElement("div",{className:"rdformsProperty"},e.createElement("a",{target:"_blank",href:l},l)));var u=t.context.view instanceof Jc?t.item.getEditDescriptionMap()||t.item.getDescriptionMap():t.item.getDescriptionMap()||(l?"":t.context.view.messages.info_missing||""),c=Xo.getLocalizedValue(u,t.context.view.getLocale()).value;return e.createElement(Ss,{onClickAway:i},e.createElement(ud,{title:e.createElement(e.Fragment,null,e.createElement("p",{className:"rdformsLinebreaks rdformsDescription"},c),s),placement:"bottom-start",disableHoverListener:!0,disableTouchListener:!0,onClose:i,onOpen:a,open:n},e.createElement("span",{onClick:a},t.children)))};fi.renderPresenterLabel=function(t,r,n,o){var i=o.view instanceof Jc&&n.getEditLabelMap()||n.getLabelMap(),a=Xo.getLocalizedValue(i,o.view.getLocale()).value;a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s,l=o.view;if(n.hasStyle("showDescriptionInPresent")||l.showDescription){var u=n.hasStyle("compact")||l.compact&&!n.hasStyle("nonCompact")&&(l.topLevel&&"group"!==n.getType()||l.parentView&&l.parentView.topLevel&&l.binding.getItem().hasStyle("heading")),c=l instanceof Jc&&n.getEditDescriptionMap()||n.getDescriptionMap(),d=Xo.getLocalizedValue(c,o.view.getLocale()).value;!u&&d&&(s=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},d))}var f=r?o.view.createLabelIndex(r):void 0;a=n.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",id:f,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},a)):e.createElement("span",{tabIndex:"0",id:f,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},a)),t.appendChild(e.createElement(e.Fragment,{key:"".concat(r?r.getHash():n._internalId,"_label")},e.createElement(cd,{context:o,item:n},a),s))},fi.renderEditorLabel=function(t,r,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))fi.renderPresenterLabel(t,r,n,o,!0);else{var i=n.getEditLabelMap()||n.getLabelMap(),a=Xo.getLocalizedValue(i,o.view.getLocale()).value;a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"",a=n.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",className:"rdformsLabel"},a):e.createElement("span",{tabIndex:"0",className:"rdformsLabel"},a),a=e.createElement(cd,{item:n,context:o},a);var s,l,u=n.getCardinality(),c=o.view.messages;n.getProperty()&&(s=u.min>0?e.createElement("span",{className:"rdformsMark rdformsMandatoryMark"},c.mandatoryMark):u.pref>0?e.createElement("span",{className:"rdformsMark rdformsRecommendedMark"},c.recommendedMark):e.createElement("span",{className:"rdformsMark rdformsOptionalMark"},c.optionalMark)),null==r?l=fi.addExpandButton(t,null,n,o):"group"!==n.getType()||o.view.showAsTable(n)||n.getProperty()&&(l=fi.addRemoveButton(t,r,o));var d,f=o.view;if(n.hasStyle("showDescriptionInEdit")||f.showDescription){var p=n.hasStyle("compact")||f.compact&&!n.hasStyle("nonCompact")&&(f.topLevel&&"group"!==n.getType()||f.parentView&&f.parentView.topLevel&&f.binding.getItem().hasStyle("heading")),h=f instanceof Jc&&n.getEditDescriptionMap()||n.getDescriptionMap(),m=Xo.getLocalizedValue(h,o.view.getLocale()).value;!p&&m&&(d=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},m))}var g=o.view.createLabelIndex(r);t.appendChild(e.createElement(e.Fragment,{key:"".concat(r.getHash(),"_label")},e.createElement("div",{id:g,className:"rdformsLabelRow"},a,s,l&&e.createElement(l,null)),d))}};var dd=function(t){var r,n=t.rowNode,o=t.binding,i=(t.item,t.context),a=od((0,e.useState)(o.getCardinalityTracker().getCode()),2),s=a[0],l=a[1];if((0,e.useEffect)((function(){var e=o.getCardinalityTracker(),t=function(){var t=e.getCode();fi.domClassToggle(n,"rdformsError",t!==Ts.UNKNOWN),l(t)};t();var r=e.addListener(t);return function(){return e.removeListener(r)}}),[]),s===Ts.UNKNOWN)return"";switch(s){case Ts.TOO_MANY_VALUES:case Ts.AT_MOST_ONE_CHILD:r=i.view.messages.validation_at_most_one_child;break;case Ts.AT_LEAST_ONE_CHILD:r=i.view.messages.validation_at_least_one_child;break;case Ts.EXACTLY_ONE_CHILD:r=i.view.messages.validation_exactly_one_child;break;case Ts.TOO_FEW_VALUES_MIN:default:r=i.view.messages.missingValueField}return e.createElement("div",{className:"rdformsWarning"},r)};fi.renderEditorLabelScopeEnd=function(t,r,n,o){if(!n.hasStyle("nonEditable")&&!n.hasStyle("heading")){if(!o.view.isMultiValued(n)){var i,a=n.getCardinality();null==r?i=fi.addExpandButton(t,null,n,o):!r.getPredicate()||o.view.showAsTable(n)||1===a.max||null!=a.max&&a.max===a.min||(i=fi.addCreateChildButton(t,null,r,o)),i&&t.appendChild(e.createElement(i,{key:"".concat(r.getHash(),"_labelEnd")}))}if(n.hasStyle("deprecated")){var s=r.getCardinalityTracker(),l=s.addListener((function(){0===s.getCardinality()&&(s.removeListener(l),t.destroy())}));t.appendChild(e.createElement("div",{key:"deprecatedWarning",className:"rdformsWarning"},o.view.messages.deprecatedField))}n.getDeps()&&t.appendChild(e.createElement("div",{key:"dependencyWarning",className:"rdformsWarning rdformsDependency"},o.view.messages.dependencyField)),t.appendChild(e.createElement(dd,{key:"errMessage",rowNode:t,binding:r,item:n,context:o}))}};var fd=function(e){var t,r=function(e){return e&&e.length>1?parseInt(e[0],10):0},n=r(e.match(/([0-9])*Y/)),o=r(e.match(/([0-9])*D/)),i=r(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=r(e.match(/([0-9])*M/));else{var s=e.split("T");t=r(s[0].match(/([0-9])*M/)),a=r(s[1].match(/([0-9])*M/))}return{years:n,months:t,days:o,hours:i,minutes:a}},pd=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),r=new Date("".concat(t).concat(e));return r.setMinutes(r.getMinutes()+r.getTimezoneOffset()),r}return new Date(e)}catch(e){return null}},hd=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"DateTime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";case"http://www.w3.org/2001/XMLSchema#time":return"Time";case"http://www.w3.org/2001/XMLSchema#gYearMonth":return"YearMonth";case"http://www.w3.org/2001/XMLSchema#gMonthDay":return"MonthDay";default:return}},md=function(e){var t=e.getDatatype();return Array.isArray(t)?hd(t[0]):hd(t)},gd=function(e,t){if(e)switch(t){case"DateTime":return e.toISOString();case"Date":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,10);case"YearMonth":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,7);case"MonthDay":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(5,5);case"Time":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(11);case"Year":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,4);default:return""}return""},yd=function(e){var t={},r=e.getDatatype();return(Array.isArray(r)?r:[r]).forEach((function(e){var r=hd(e);r&&(t[r]=!0)})),t},vd=function(e,t){var r=e.getValue();if(null!=r&&""!==r){var n=e.getItem(),o=pd(r);if(o){var i=function(e){return e.indexOf("T")>0?"DateTime":e.indexOf(":")>0?"Time":/^\d\d\d\d-\d\d$/.test(e)?"YearMonth":/^\d\d-\d\d$/.test(e)?"MonthDay":e.length>4?"Date":"Year"}(r),a=hd(e.getDatatype()),s=md(n),l=yd(n);return function(e,t,r){switch(e){case"DateTime":return Go()(t).locale(r).format("lll");case"Date":return Go()(t).locale(r).format("LL");case"Time":return Go()(t).locale(r).format("LT");case"Year":return Go()(t).locale(r).format("YYYY");case"YearMonth":return Go()(t).locale(r).format("MMMM YYYY");case"MonthDay":return Go()(t).locale(r).format("D MMMM");default:return""}}(l[a]?a:l[i]?i:s,o,t)}}},bd=function(e,t){var r,n=null===(r=e.getStatement()||e.getParent().getStatement())||void 0===r?void 0:r.getNamedGraph();if(n){for(var o=t.view;o.getParentView();)o=o.getParentView();return o.getNamedGraphId(n)}};function wd(){return(wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var xd=fi.presenterRegistry;xd.itemtype("text").datatype("xsd:duration").register((function(t,r,n){var o=fd(r.getValue());t.appendChild(e.createElement("div",{key:r.getHash()},["years","months","days","hours","minutes"].map((function(t){return 0!==o[t]&&e.createElement(e.Fragment,{key:t},e.createElement("span",{className:"durationLabel"},n.view.messages["duration_".concat(t)],":"),e.createElement("span",{className:"durationValue"},o[t]))}))))})),xd.itemtype("text").nodetype("URI").register((function(t,r){var n=Xo.getLocalizedMap(r),o=r.getValue(),i=r.getItem().hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,r)||{}:Jo.attachLinkBehaviour(t,r)||{},a=i.component||null;delete i.component;var s=r.getItem().hasStyle("showValue")?o:n?Xo.getLocalizedValue(n).value||o:r.getGist();t.appendChild(e.createElement("a",wd({},i,{key:r.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(t,r,n){var o=r.getValue(),i=r.getItem().hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,r)||{}:Jo.attachLinkBehaviour(t,r)||{},a=i.component||null;delete i.component;var s,l=r.getItem().getChildren().find((function(e){return e.hasStyle("label")})),u=l?fi.filterTranslations(r.getChildBindingsFor(l),n.view.getLocale(),n.view.defaultLanguage):[],c=r.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),d=c?fi.filterTranslations(r.getChildBindingsFor(c),n.view.getLocale(),n.view.defaultLanguage):[],f=d.length>0?d[0].getValue():o;if(u.length>0)s=u[0].getValue();else{var p=Xo.getLocalizedMap(r);s=r.getItem().hasStyle("showValue")?o:p?Xo.getLocalizedValue(p).value||o:r.getGist()}t.appendChild(e.createElement("a",wd({},i,{key:r.getHash(),title:f,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("text").nodetype("URI").style("externalLink").register((function(t,r){var n=Xo.getLocalizedMap(r),o=r.getValue(),i=Jo.attachExternalLinkBehaviour(t,r)||{};i.target=i.target||"_blank";var a=i.component||null;delete i.component;var s=r.getItem().hasStyle("showValue")?o:n?Xo.getLocalizedValue(n).value||o:r.getGist();t.appendChild(e.createElement("a",wd({},i,{key:r.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),xd.itemtype("text").nodetype("URI").style("image").register((function(t,r){t.appendChild(e.createElement("img",{key:r.getHash(),className:"rdformsImage",src:r.getGixt()}))})),xd.itemtype("text").register((function(t,r,n){var o=r.getItem(),i=r.getLanguage();o.hasStyle("inline")||(o.hasStyle("multiline")?fi.domClassToggle(t,"rdformsMultiline",!0):fi.domClassToggle(t,"rdformsSingleline",!0),n.view.showLanguage&&i&&t.appendChild(e.createElement("span",{className:"rdformsLanguage",key:"lang_".concat(r.getHash())},i)));var a=r.getParent();if(o.hasStyle("label")&&!0!==n.view.topLevel&&null!=a&&a.getItem().getChildren()[0]===o&&null!=a.getStatement()&&"uri"===a.getStatement().getType()){var s=Jo.attachLinkBehaviour(t,r,a),l=s.component||null;delete s.component,i&&(s.lang=i);var u=Xo.getLocalizedMap(r),c=a.getGist();t.appendChild(e.createElement("a",wd({},s,{key:r.getHash(),className:"rdformsUrl",href:a.getStatement().getValue()}),e.createElement("span",null,u&&Xo.getLocalizedValue(u).value||c),l))}else{var d=o.hasStyle("showValue")?r.getValue():r.getGist();i?t.appendChild(e.createElement("span",{lang:i,key:r.getHash()},d)):t.appendChild(e.createElement("span",{key:r.getHash()},d))}}));var Sd=o(92996),_d=o(59766),kd=o(56535),Ed=o(74161),Cd=o(39336);const Pd=["onChange","maxRows","minRows","style","value"];function Od(e){return parseInt(e,10)||0}const Td={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rd(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Ad=e.forwardRef((function(t,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:s}=t,c=(0,l.Z)(t,Pd),{current:d}=e.useRef(null!=s),f=e.useRef(null),p=(0,ji.Z)(r,f),h=e.useRef(null),m=e.useRef(0),[g,y]=e.useState({outerHeightStyle:0}),v=e.useCallback(()=>{const e=f.current,r=(0,Ed.Z)(e).getComputedStyle(e);if("0px"===r.width)return{outerHeightStyle:0};const n=h.current;n.style.width=r.width,n.value=e.value||t.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,s=Od(r.paddingBottom)+Od(r.paddingTop),l=Od(r.borderBottomWidth)+Od(r.borderTopWidth),u=n.scrollHeight;n.value="x";const c=n.scrollHeight;let d=u;i&&(d=Math.max(Number(i)*c,d)),o&&(d=Math.min(Number(o)*c,d)),d=Math.max(d,c);return{outerHeightStyle:d+("border-box"===a?s+l:0),overflow:Math.abs(d-u)<=1}},[o,i,t.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return m.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(m.current+=1,{overflow:n,outerHeightStyle:r}):e},w=e.useCallback(()=>{const e=v();Rd(e)||y(t=>b(t,e))},[v]);(0,Ii.Z)(()=>{const e=()=>{m.current=0,(()=>{const e=v();Rd(e)||bi.flushSync(()=>{y(t=>b(t,e))})})()};let t;const r=(0,Cd.Z)(e),n=f.current,o=(0,Ed.Z)(n);let i;return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(n)),()=>{r.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",r),i&&i.disconnect()}},[v]),(0,Ii.Z)(()=>{w()}),e.useEffect(()=>{m.current=0},[s]);return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("textarea",(0,u.Z)({value:s,onChange:e=>{m.current=0,d||w(),n&&n(e)},ref:p,rows:i,style:(0,u.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},c)),(0,D.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,u.Z)({},Td,a,{paddingTop:0,paddingBottom:0})})]})}));function Md({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const jd=e.createContext(void 0);function Id(){return e.useContext(jd)}var Dd=o(58974);function Nd(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return(0,D.jsx)(M,{styles:n})}const Ld=function({styles:e,themeId:t,defaultTheme:r={}}){const n=(0,mi.Z)(r),o="function"==typeof e?e(t&&n[t]||n):e;return(0,D.jsx)(Nd,{styles:o})};const Zd=function(e){return(0,D.jsx)(Ld,(0,u.Z)({},e,{defaultTheme:gi.Z,themeId:yi.Z}))};function Fd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bd(e,t=!1){return e&&(Fd(e.value)&&""!==e.value||t&&Fd(e.defaultValue)&&""!==e.defaultValue)}function Vd(e){return(0,X.ZP)("MuiInputBase",e)}const zd=(0,L.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Wd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Ud=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color"+(0,ne.Z)(r.color)],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},$d=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Hd=(0,h.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ud})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&."+zd.disabled]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,u.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Yd=(0,h.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=(0,u.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,u.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&."+zd.disabled]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Gd=(0,D.jsx)(Zd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qd=e.forwardRef((function(t,r){var n;const o=(0,m.Z)({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:d,components:p={},componentsProps:h={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:b,endAdornment:w,fullWidth:x=!1,id:S,inputComponent:_="input",inputProps:k={},inputRef:E,maxRows:C,minRows:P,multiline:O=!1,name:T,onBlur:R,onChange:A,onClick:M,onFocus:j,onKeyDown:I,onKeyUp:N,placeholder:L,readOnly:Z,renderSuffix:F,rows:B,slotProps:V={},slots:z={},startAdornment:W,type:U="text",value:$}=o,H=(0,l.Z)(o,Wd),Y=null!=k.value?k.value:$,{current:G}=e.useRef(null!=Y),q=e.useRef(),K=e.useCallback(e=>{0},[]),X=(0,g.Z)(q,E,k.ref,K),[Q,J]=e.useState(!1),ee=Id();const te=Md({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ee?ee.focused:Q,e.useEffect(()=>{!ee&&v&&Q&&(J(!1),R&&R())},[ee,v,Q,R]);const re=ee&&ee.onFilled,oe=ee&&ee.onEmpty,ie=e.useCallback(e=>{Bd(e)?re&&re():oe&&oe()},[re,oe]);(0,Dd.Z)(()=>{G&&ie({value:Y})},[Y,ie,G]);e.useEffect(()=>{ie(q.current)},[]);let ae=_,se=k;O&&"input"===ae&&(se=B?(0,u.Z)({type:void 0,minRows:B,maxRows:B},se):(0,u.Z)({type:void 0,maxRows:C,minRows:P},se),ae=Ad);e.useEffect(()=>{ee&&ee.setAdornedStart(Boolean(W))},[ee,W]);const le=(0,u.Z)({},o,{color:te.color||"primary",disabled:te.disabled,endAdornment:w,error:te.error,focused:te.focused,formControl:ee,fullWidth:x,hiddenLabel:te.hiddenLabel,multiline:O,size:te.size,startAdornment:W,type:U}),ue=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,g={root:["root","color"+(0,ne.Z)(r),n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&"size"+(0,ne.Z)(p),c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,f.Z)(g,Vd,t)})(le),ce=z.root||p.Root||Hd,de=V.root||h.root||{},fe=z.input||p.Input||Yd;return se=(0,u.Z)({},se,null!=(n=V.input)?n:h.input),(0,D.jsxs)(e.Fragment,{children:[!b&&Gd,(0,D.jsxs)(ce,(0,u.Z)({},de,!pi(ce)&&{ownerState:(0,u.Z)({},le,de.ownerState)},{ref:r,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),M&&M(e)}},H,{className:(0,c.Z)(ue.root,de.className,d,Z&&"MuiInputBase-readOnly"),children:[W,(0,D.jsx)(jd.Provider,{value:null,children:(0,D.jsx)(fe,(0,u.Z)({ownerState:le,"aria-invalid":te.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:y,disabled:te.disabled,id:S,onAnimationStart:e=>{ie("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:T,placeholder:L,readOnly:Z,required:te.required,rows:B,value:Y,onKeyDown:I,onKeyUp:N,type:U},se,!pi(fe)&&{as:ae,ownerState:(0,u.Z)({},le,se.ownerState)},{ref:X,className:(0,c.Z)(ue.input,se.className,Z&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),k.onBlur&&k.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||q.current;if(null==t)throw new Error((0,kd.Z)(1));ie({value:t.value})}k.onChange&&k.onChange(e,...t),A&&A(e,...t)},onFocus:e=>{te.disabled?e.stopPropagation():(j&&j(e),k.onFocus&&k.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):J(!0))}}))}),w,F?F((0,u.Z)({},te,{startAdornment:W})):null]}))]})}));function Kd(e){return(0,X.ZP)("MuiInput",e)}const Xd=(0,u.Z)({},zd,(0,L.Z)("MuiInput",["root","underline","input"])),Qd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jd=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ud(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,u.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(e.vars||e).palette[t.color].main,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+Xd.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+r,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xd.disabled}, .${Xd.error}):before`]:{borderBottom:"2px solid "+(e.vars||e).palette.text.primary,"@media (hover: none)":{borderBottom:"1px solid "+r}},[`&.${Xd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ef=(0,h.ZP)(Yd,{name:"MuiInput",slot:"Input",overridesResolver:$d})({}),tf=e.forwardRef((function(e,t){var r,n,o,i;const a=(0,m.Z)({props:e,name:"MuiInput"}),{disableUnderline:s,components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:g=!1,slotProps:y,slots:v={},type:b="text"}=a,w=(0,l.Z)(a,Qd),x=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,f.Z)(n,Kd,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:{disableUnderline:s}}},_=(null!=y?y:d)?(0,_d.Z)(null!=y?y:d,S):S,k=null!=(r=null!=(n=v.root)?n:c.Root)?r:Jd,E=null!=(o=null!=(i=v.input)?i:c.Input)?o:ef;return(0,D.jsx)(qd,(0,u.Z)({slots:{root:k,input:E},slotProps:_,fullWidth:p,inputComponent:h,multiline:g,ref:t,type:b},w,{classes:x}))}));tf.muiName="Input";const rf=tf;function nf(e){return(0,X.ZP)("MuiFilledInput",e)}const of=(0,u.Z)({},zd,(0,L.Z)("MuiFilledInput",["root","underline","input"])),af=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sf=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ud(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,u.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},["&."+of.focused]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},["&."+of.disabled]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${of.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+of.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+(e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${of.disabled}, .${of.error}):before`]:{borderBottom:"1px solid "+(e.vars||e).palette.text.primary},[`&.${of.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,u.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),lf=(0,h.ZP)(Yd,{name:"MuiFilledInput",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>(0,u.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),uf=e.forwardRef((function(e,t){var r,n,o,i;const a=(0,m.Z)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:y={},type:v="text"}=a,b=(0,l.Z)(a,af),w=(0,u.Z)({},a,{fullWidth:d,inputComponent:p,multiline:h,type:v}),x=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,f.Z)(n,nf,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:w},input:{ownerState:w}},_=(null!=g?g:c)?(0,_d.Z)(S,null!=g?g:c):S,k=null!=(r=null!=(n=y.root)?n:s.Root)?r:sf,E=null!=(o=null!=(i=y.input)?i:s.Input)?o:lf;return(0,D.jsx)(qd,(0,u.Z)({slots:{root:k,input:E},componentsProps:_,fullWidth:d,inputComponent:p,multiline:h,ref:t,type:v},b,{classes:x}))}));uf.muiName="Input";const cf=uf;var df;const ff=["children","classes","className","label","notched"],pf=(0,h.ZP)("fieldset",{shouldForwardProp:h.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),hf=(0,h.ZP)("legend",{shouldForwardProp:h.FO})(({ownerState:e,theme:t})=>(0,u.Z)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,u.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mf(e){return(0,X.ZP)("MuiOutlinedInput",e)}const gf=(0,u.Z)({},zd,(0,L.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),yf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vf=(0,h.ZP)(Hd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ud})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,u.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,["&:hover ."+gf.notchedOutline]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{["&:hover ."+gf.notchedOutline]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${gf.focused} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gf.error} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gf.disabled} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,u.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),bf=(0,h.ZP)((function(e){const{className:t,label:r,notched:n}=e,o=(0,l.Z)(e,ff),i=null!=r&&""!==r,a=(0,u.Z)({},e,{notched:n,withLabel:i});return(0,D.jsx)(pf,(0,u.Z)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,D.jsx)(hf,{ownerState:a,children:i?(0,D.jsx)("span",{children:r}):df||(df=(0,D.jsx)("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),wf=(0,h.ZP)(Yd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$d})(({theme:e,ownerState:t})=>(0,u.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),xf=e.forwardRef((function(t,r){var n,o,i,a,s;const c=(0,m.Z)({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:g,multiline:y=!1,notched:v,slots:b={},type:w="text"}=c,x=(0,l.Z)(c,yf),S=(e=>{const{classes:t}=e,r=(0,f.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},mf,t);return(0,u.Z)({},t,r)})(c),_=Id(),k=Md({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=(0,u.Z)({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:_,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:y,size:k.size,type:w}),C=null!=(n=null!=(o=b.root)?o:d.Root)?n:vf,P=null!=(i=null!=(a=b.input)?a:d.Input)?i:wf;return(0,D.jsx)(qd,(0,u.Z)({slots:{root:C,input:P},renderSuffix:t=>(0,D.jsx)(bf,{ownerState:E,className:S.notchedOutline,label:null!=g&&""!==g&&k.required?s||(s=(0,D.jsxs)(e.Fragment,{children:[g," ","*"]})):g,notched:void 0!==v?v:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:p,inputComponent:h,multiline:y,ref:r,type:w},x,{classes:(0,u.Z)({},S,{notchedOutline:null})}))}));xf.muiName="Input";const Sf=xf;function _f(e){return(0,X.ZP)("MuiFormLabel",e)}const kf=(0,L.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ef=["children","className","color","component","disabled","error","filled","focused","required"],Cf=(0,h.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&."+kf.focused]:{color:(e.vars||e).palette[t.color].main},["&."+kf.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+kf.error]:{color:(e.vars||e).palette.error.main}})),Pf=(0,h.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+kf.error]:{color:(e.vars||e).palette.error.main}})),Of=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:i="label"}=r,a=(0,l.Z)(r,Ef),s=Md({props:r,muiFormControl:Id(),states:["color","required","focused","disabled","error","filled"]}),d=(0,u.Z)({},r,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:i,filled:a,required:s}=e,l={root:["root","color"+(0,ne.Z)(r),o&&"disabled",i&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,f.Z)(l,_f,t)})(d);return(0,D.jsxs)(Cf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:[n,s.required&&(0,D.jsxs)(Pf,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}));function Tf(e){return(0,X.ZP)("MuiInputLabel",e)}(0,L.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Rf=["disableAnimation","margin","shrink","variant","className"],Af=(0,h.ZP)(Of,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& ."+kf.asterisk]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,u.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Mf=e.forwardRef((function(e,t){const r=(0,m.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:i}=r,a=(0,l.Z)(r,Rf),s=Id();let d=o;void 0===d&&s&&(d=s.filled||s.focused||s.adornedStart);const p=Md({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),h=(0,u.Z)({},r,{disableAnimation:n,formControl:s,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n&&"normal"!==n&&"size"+(0,ne.Z)(n),a],asterisk:[s&&"asterisk"]},c=(0,f.Z)(l,Tf,t);return(0,u.Z)({},t,c)})(h);return(0,D.jsx)(Af,(0,u.Z)({"data-shrink":d,ownerState:h,ref:t,className:(0,c.Z)(g.root,i)},a,{classes:g}))}));var jf=o(48502);function If(e){return(0,X.ZP)("MuiFormControl",e)}(0,L.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Df=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Nf=(0,h.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,t["margin"+(0,ne.Z)(e.margin)],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,u.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Lf=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:d=!1,error:p=!1,focused:h,fullWidth:g=!1,hiddenLabel:y=!1,margin:v="none",required:b=!1,size:w="medium",variant:x="outlined"}=n,S=(0,l.Z)(n,Df),_=(0,u.Z)({},n,{color:a,component:s,disabled:d,error:p,fullWidth:g,hiddenLabel:y,margin:v,required:b,size:w,variant:x}),k=(e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&"margin"+(0,ne.Z)(r),n&&"fullWidth"]};return(0,f.Z)(o,If,t)})(_),[E,C]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{if(!(0,jf.Z)(e,["Input","Select"]))return;const r=(0,jf.Z)(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)}),t}),[P,O]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{(0,jf.Z)(e,["Input","Select"])&&(Bd(e.props,!0)||Bd(e.props.inputProps,!0))&&(t=!0)}),t}),[T,R]=e.useState(!1);d&&T&&R(!1);const A=void 0===h||d?T:h;const M=e.useMemo(()=>({adornedStart:E,setAdornedStart:C,color:a,disabled:d,error:p,filled:P,focused:A,fullWidth:g,hiddenLabel:y,size:w,onBlur:()=>{R(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{R(!0)},registerEffect:void 0,required:b,variant:x}),[E,a,d,p,P,A,g,y,void 0,b,w,x]);return(0,D.jsx)(jd.Provider,{value:M,children:(0,D.jsx)(Nf,(0,u.Z)({as:s,ownerState:_,className:(0,c.Z)(k.root,i),ref:r},S,{children:o}))})}));function Zf(e){return(0,X.ZP)("MuiFormHelperText",e)}const Ff=(0,L.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Bf;const Vf=["children","className","component","disabled","error","filled","focused","margin","required","variant"],zf=(0,h.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t["size"+(0,ne.Z)(r.size)],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&."+Ff.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+Ff.error]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Wf=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:i="p"}=r,a=(0,l.Z)(r,Vf),s=Md({props:r,muiFormControl:Id(),states:["variant","size","disabled","error","filled","focused","required"]}),d=(0,u.Z)({},r,{component:i,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",n&&"size"+(0,ne.Z)(n),r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,f.Z)(u,Zf,t)})(d);return(0,D.jsx)(zf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:" "===n?Bf||(Bf=(0,D.jsx)("span",{className:"notranslate",children:""})):n}))}));o(76607);var Uf=o(8038);const $f=e.createContext({});function Hf(e){return(0,X.ZP)("MuiList",e)}(0,L.Z)("MuiList",["root","padding","dense","subheader"]);const Yf=["children","className","component","dense","disablePadding","subheader"],Gf=(0,h.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>(0,u.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),qf=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:d=!1,subheader:p}=n,h=(0,l.Z)(n,Yf),g=e.useMemo(()=>({dense:s}),[s]),y=(0,u.Z)({},n,{component:a,dense:s,disablePadding:d}),v=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,f.Z)(i,Hf,t)})(y);return(0,D.jsx)($f.Provider,{value:g,children:(0,D.jsxs)(Gf,(0,u.Z)({as:a,className:(0,c.Z)(v.root,i),ref:r,ownerState:y},h,{children:[p,o]}))})}));function Kf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Xf=Kf,Qf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Jf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ep(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function tp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function rp(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&tp(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const np=e.forwardRef((function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu"}=t,h=(0,l.Z)(t,Qf),m=e.useRef(null),y=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Dd.Z)(()=>{o&&m.current.focus()},[o]),e.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,t)=>{const r=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&r){const r=Xf((0,Uf.Z)(e))+"px";m.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,m.current.style.width=`calc(100% + ${r})`}return m.current}}),[]);const v=(0,g.Z)(m,r);let b=-1;e.Children.forEach(a,(t,r)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===p&&t.props.selected||-1===b)&&(b=r),b===r&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))):b===r&&(b+=1,b>=a.length&&(b=-1))});const w=e.Children.map(a,(t,r)=>{if(r===b){const r={};return i&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===p&&(r.tabIndex=0),e.cloneElement(t,r)}return t});return(0,D.jsx)(qf,(0,u.Z)({role:"menu",ref:v,className:s,onKeyDown:e=>{const t=m.current,r=e.key,n=(0,Uf.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),rp(t,n,d,c,Jf);else if("ArrowUp"===r)e.preventDefault(),rp(t,n,d,c,ep);else if("Home"===r)e.preventDefault(),rp(t,null,d,c,Jf);else if("End"===r)e.preventDefault(),rp(t,null,d,c,ep);else if(1===r.length){const o=y.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&tp(n,o);o.previousKeyMatched&&(s||rp(t,n,!1,c,Jf,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:o?0:-1},h,{children:w}))}));var op=o(57144),ip=o(5340),ap=o(49064);function sp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lp(e){return parseInt((0,Ed.Z)(e).getComputedStyle(e).paddingRight,10)||0}function up(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&sp(e,o)})}function cp(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function dp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Di.Z)(e);return t.body===e?(0,Ed.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Kf((0,Di.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=lp(n)+e+"px";const t=(0,Di.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=lp(t)+e+"px"})}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Di.Z)(n).body;else{const t=n.parentElement,r=(0,Ed.Z)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const fp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&sp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);up(t,e.mount,e.modalRef,n,!0);const o=cp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=cp(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=dp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&sp(e.modalRef,t),up(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&sp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function pp(t){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=fp,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:p}=t,h=e.useRef({}),m=e.useRef(null),g=e.useRef(null),y=(0,ji.Z)(g,p),[v,b]=e.useState(!f),w=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(x=!1);const S=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),_=()=>{i.mount(S(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},k=(0,ws.Z)(()=>{const e=function(e){return"function"==typeof e?e():e}(r)||(0,Di.Z)(m.current).body;i.add(S(),e),g.current&&_()}),E=e.useCallback(()=>i.isTopModal(S()),[i]),C=(0,ws.Z)(e=>{m.current=e,e&&(f&&E()?_():g.current&&sp(g.current,x))}),P=e.useCallback(()=>{i.remove(S(),x)},[x,i]);e.useEffect(()=>()=>{P()},[P]),e.useEffect(()=>{f?k():w&&a||P()},[f,P,w,a,k]);const O=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},T=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(e={})=>{const r=Wa(t);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,u.Z)({},r,e);return(0,u.Z)({role:"presentation"},n,{onKeyDown:O(n),ref:y})},getBackdropProps:(e={})=>{const t=e;return(0,u.Z)({"aria-hidden":!0},t,{onClick:T(t),open:f})},getTransitionProps:()=>({onEnter:(0,ap.Z)(()=>{b(!1),s&&s()},null==c?void 0:c.props.onEnter),onExited:(0,ap.Z)(()=>{b(!0),l&&l(),a&&P()},null==c?void 0:c.props.onExited)}),rootRef:y,portalRef:C,isTopModal:E,exited:v,hasTransition:w}}const hp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mp(e){const t=[],r=[];return Array.from(e.querySelectorAll(hp)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'+t);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function gp(){return!0}function yp(t){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=mp,isEnabled:s=gp,open:l}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),f=e.useRef(null),p=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=(0,ji.Z)(r.ref,m),y=e.useRef(null);e.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Di.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Di.Z)(m.current),t=t=>{y.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var n,i;const e=Boolean((null==(n=y.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=y.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[n,o,i,s,l,a]);const v=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(r,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const t=r.props.onFocus;t&&t(e)}}),(0,D.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const vp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bp={entering:{opacity:1},entered:{opacity:1}},wp=e.forwardRef((function(t,r){const n=vi(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:d,onEnter:f,onEntered:p,onEntering:h,onExit:m,onExited:y,onExiting:v,style:b,timeout:w=o,TransitionComponent:x=ki}=t,S=(0,l.Z)(t,vp),_=e.useRef(null),k=(0,g.Z)(_,s.ref,r),E=e=>t=>{if(e){const r=_.current;void 0===t?e(r):e(r,t)}},C=E(h),P=E((e,t)=>{Ei(e);const r=Ci({style:b,timeout:w,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),f&&f(e,t)}),O=E(p),T=E(v),R=E(e=>{const t=Ci({style:b,timeout:w,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)}),A=E(y);return(0,D.jsx)(x,(0,u.Z)({appear:a,in:d,nodeRef:_,onEnter:P,onEntered:O,onEntering:C,onExit:R,onExited:A,onExiting:T,addEndListener:e=>{i&&i(_.current,e)},timeout:w},S,{children:(t,r)=>e.cloneElement(s,(0,u.Z)({style:(0,u.Z)({opacity:0,visibility:"exited"!==t||d?void 0:"hidden"},bp[t],b,s.props.style),ref:k},r))}))}));function xp(e){return(0,X.ZP)("MuiBackdrop",e)}(0,L.Z)("MuiBackdrop",["root","invisible"]);const Sp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_p=(0,h.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>(0,u.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),kp=e.forwardRef((function(e,t){var r,n,o;const i=(0,m.Z)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:d="div",components:p={},componentsProps:h={},invisible:g=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:w=wp,transitionDuration:x}=i,S=(0,l.Z)(i,Sp),_=(0,u.Z)({},i,{component:d,invisible:g}),k=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,f.Z)(n,xp,t)})(_),E=null!=(r=v.root)?r:h.root;return(0,D.jsx)(w,(0,u.Z)({in:y,timeout:x},S,{children:(0,D.jsx)(_p,(0,u.Z)({"aria-hidden":!0},E,{as:null!=(n=null!=(o=b.root)?o:p.Root)?n:d,className:(0,c.Z)(k.root,s,null==E?void 0:E.className),ownerState:(0,u.Z)({},_,null==E?void 0:E.ownerState),classes:k,ref:t,children:a}))}))}));function Ep(e){return(0,X.ZP)("MuiModal",e)}(0,L.Z)("MuiModal",["root","hidden","backdrop"]);const Cp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Pp=(0,h.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,u.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Op=(0,h.ZP)(kp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Tp=e.forwardRef((function(t,r){var n,o,i,a,s,d;const p=(0,m.Z)({name:"MuiModal",props:t}),{BackdropComponent:h=Op,BackdropProps:g,className:y,closeAfterTransition:v=!1,children:b,container:w,component:x,components:S={},componentsProps:_={},disableAutoFocus:k=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:P=!1,disableRestoreFocus:O=!1,disableScrollLock:T=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:M,open:j,slotProps:I,slots:N}=p,L=(0,l.Z)(p,Cp),Z=(0,u.Z)({},p,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:P,disableRestoreFocus:O,disableScrollLock:T,hideBackdrop:R,keepMounted:A}),{getRootProps:F,getBackdropProps:B,getTransitionProps:V,portalRef:z,isTopModal:W,exited:U,hasTransition:$}=pp((0,u.Z)({},Z,{rootRef:r})),H=(0,u.Z)({},Z,{exited:U}),Y=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,f.Z)(o,Ep,n)})(H),G={};if(void 0===b.props.tabIndex&&(G.tabIndex="-1"),$){const{onEnter:e,onExited:t}=V();G.onEnter=e,G.onExited=t}const q=null!=(n=null!=(o=null==N?void 0:N.root)?o:S.Root)?n:Pp,K=null!=(i=null!=(a=null==N?void 0:N.backdrop)?a:S.Backdrop)?i:h,X=null!=(s=null==I?void 0:I.root)?s:_.root,Q=null!=(d=null==I?void 0:I.backdrop)?d:_.backdrop,J=Ha({elementType:q,externalSlotProps:X,externalForwardedProps:L,getSlotProps:F,additionalProps:{ref:r,as:x},ownerState:H,className:(0,c.Z)(y,null==X?void 0:X.className,null==Y?void 0:Y.root,!H.open&&H.exited&&(null==Y?void 0:Y.hidden))}),ee=Ha({elementType:K,externalSlotProps:Q,additionalProps:g,getSlotProps:e=>B((0,u.Z)({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,c.Z)(null==Q?void 0:Q.className,null==g?void 0:g.className,null==Y?void 0:Y.backdrop),ownerState:H});return A||j||$&&!U?(0,D.jsx)(Ba,{ref:z,container:w,disablePortal:P,children:(0,D.jsxs)(q,(0,u.Z)({},J,{children:[!R&&h?(0,D.jsx)(K,(0,u.Z)({},ee)):null,(0,D.jsx)(yp,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:O,isEnabled:W,open:j,children:e.cloneElement(b,G)})]}))}):null})),Rp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ap(e){return(0,X.ZP)("MuiPaper",e)}(0,L.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Mp=["className","component","elevation","square","variant"],jp=(0,h.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation"+r.elevation]]}})(({theme:e,ownerState:t})=>{var r;return(0,u.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.divider},"elevation"===t.variant&&(0,u.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,p.Fq)("#fff",Rp(t.elevation))}, ${(0,p.Fq)("#fff",Rp(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),Ip=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,d=(0,l.Z)(r,Mp),p=(0,u.Z)({},r,{component:o,elevation:i,square:a,variant:s}),h=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&"elevation"+r]};return(0,f.Z)(i,Ap,o)})(p);return(0,D.jsx)(jp,(0,u.Z)({as:o,ownerState:p,className:(0,c.Z)(h.root,n),ref:t},d))}));function Dp(e){return(0,X.ZP)("MuiPopover",e)}(0,L.Z)("MuiPopover",["root","paper"]);const Np=["onEntering"],Lp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zp=["slotProps"];function Fp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Bp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Vp(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?e+"px":e).join(" ")}function zp(e){return"function"==typeof e?e():e}const Wp=(0,h.ZP)(Tp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Up=(0,h.ZP)(Ip,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$p=e.forwardRef((function(t,r){var n,o,i;const a=(0,m.Z)({props:t,name:"MuiPopover"}),{action:s,anchorEl:d,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:y="anchorEl",children:v,className:b,container:w,elevation:x=8,marginThreshold:S=16,open:_,PaperProps:k={},slots:E,slotProps:C,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:O=Mi,transitionDuration:T="auto",TransitionProps:{onEntering:R}={},disableScrollLock:A=!1}=a,M=(0,l.Z)(a.TransitionProps,Np),j=(0,l.Z)(a,Lp),I=null!=(n=null==C?void 0:C.paper)?n:k,N=e.useRef(),L=(0,g.Z)(N,I.ref),Z=(0,u.Z)({},a,{anchorOrigin:p,anchorReference:y,elevation:x,marginThreshold:S,externalPaperSlotProps:I,transformOrigin:P,TransitionComponent:O,transitionDuration:T,TransitionProps:M}),F=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Dp,t)})(Z),B=e.useCallback(()=>{if("anchorPosition"===y)return h;const e=zp(d),t=(e&&1===e.nodeType?e:(0,Uf.Z)(N.current).body).getBoundingClientRect();return{top:t.top+Fp(t,p.vertical),left:t.left+Bp(t,p.horizontal)}},[d,p.horizontal,p.vertical,h,y]),V=e.useCallback(e=>({vertical:Fp(e,P.vertical),horizontal:Bp(e,P.horizontal)}),[P.horizontal,P.vertical]),z=e.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=V(t);if("none"===y)return{top:null,left:null,transformOrigin:Vp(r)};const n=B();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,l=(0,ip.Z)(zp(d)),u=l.innerHeight-S,c=l.innerWidth-S;if(null!==S&&o<S){const e=o-S;o-=e,r.vertical+=e}else if(null!==S&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==S&&i<S){const e=i-S;i-=e,r.horizontal+=e}else if(s>c){const e=s-c;i-=e,r.horizontal+=e}return{top:Math.round(o)+"px",left:Math.round(i)+"px",transformOrigin:Vp(r)}},[d,y,B,V,S]),[W,U]=e.useState(_),$=e.useCallback(()=>{const e=N.current;if(!e)return;const t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)},[z]);e.useEffect(()=>(A&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[d,A,$]);e.useEffect(()=>{_&&$()}),e.useImperativeHandle(s,()=>_?{updatePosition:()=>{$()}}:null,[_,$]),e.useEffect(()=>{if(!_)return;const e=(0,op.Z)(()=>{$()}),t=(0,ip.Z)(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[d,_,$]);let H=T;"auto"!==T||O.muiSupportAuto||(H=void 0);const Y=w||(d?(0,Uf.Z)(zp(d)).body:void 0),G=null!=(o=null==E?void 0:E.root)?o:Wp,q=null!=(i=null==E?void 0:E.paper)?i:Up,K=Ha({elementType:q,externalSlotProps:(0,u.Z)({},I,{style:W?I.style:(0,u.Z)({},I.style,{opacity:0})}),additionalProps:{elevation:x,ref:L},ownerState:Z,className:(0,c.Z)(F.paper,null==I?void 0:I.className)}),X=Ha({elementType:G,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:j,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Y,open:_},ownerState:Z,className:(0,c.Z)(F.root,b)}),{slotProps:Q}=X,J=(0,l.Z)(X,Zp);return(0,D.jsx)(G,(0,u.Z)({},J,!pi(G)&&{slotProps:Q,disableScrollLock:A},{children:(0,D.jsx)(O,(0,u.Z)({appear:!0,in:_,onEntering:(e,t)=>{R&&R(e,t),$()},onExited:()=>{U(!1)},timeout:H},M,{children:(0,D.jsx)(q,(0,u.Z)({},K,{children:v}))}))}))}));function Hp(e){return(0,X.ZP)("MuiMenu",e)}(0,L.Z)("MuiMenu",["root","paper","list"]);const Yp=["onEntering"],Gp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qp={vertical:"top",horizontal:"right"},Kp={vertical:"top",horizontal:"left"},Xp=(0,h.ZP)($p,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Qp=(0,h.ZP)(Up,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jp=(0,h.ZP)(np,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eh=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:d,disableAutoFocusItem:p=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:v={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:x}={},variant:S="selectedMenu",slots:_={},slotProps:k={}}=i,E=(0,l.Z)(i.TransitionProps,Yp),C=(0,l.Z)(i,Gp),P=vi(),O="rtl"===P.direction,T=(0,u.Z)({},i,{autoFocus:a,disableAutoFocusItem:p,MenuListProps:h,onEntering:x,PaperProps:v,transitionDuration:w,TransitionProps:E,variant:S}),R=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"],list:["list"]},Hp,t)})(T),A=a&&!p&&y,M=e.useRef(null);let j=-1;e.Children.map(s,(t,r)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===S&&t.props.selected||-1===j)&&(j=r))});const I=null!=(n=_.paper)?n:Qp,N=null!=(o=k.paper)?o:v,L=Ha({elementType:_.root,externalSlotProps:k.root,ownerState:T,className:[R.root,d]}),Z=Ha({elementType:I,externalSlotProps:N,ownerState:T,className:R.paper});return(0,D.jsx)(Xp,(0,u.Z)({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?qp:Kp,slots:{paper:I,root:_.root},slotProps:{root:L,paper:Z},open:y,ref:r,transitionDuration:w,TransitionProps:(0,u.Z)({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,P),x&&x(e,t)}},E),ownerState:T},C,{classes:b,children:(0,D.jsx)(Jp,(0,u.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===j||p),autoFocusItem:A,variant:S},h,{className:(0,c.Z)(R.list,h.className),children:s}))}))}));function th(e){return(0,X.ZP)("MuiNativeSelect",e)}const rh=(0,L.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),nh=["className","disabled","error","IconComponent","inputRef","variant"],oh=({ownerState:e,theme:t})=>(0,u.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,u.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&."+rh.disabled]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ih=(0,h.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:h.FO,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&."+rh.multiple]:t.multiple}]}})(oh),ah=({ownerState:e,theme:t})=>(0,u.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,["&."+rh.disabled]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),sh=(0,h.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon"+(0,ne.Z)(r.variant)],r.open&&t.iconOpen]}})(ah),lh=e.forwardRef((function(t,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:s,variant:d="standard"}=t,p=(0,l.Z)(t,nh),h=(0,u.Z)({},t,{disabled:o,variant:d,error:i}),m=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,ne.Z)(r),i&&"iconOpen",n&&"disabled"]};return(0,f.Z)(s,th,t)})(h);return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(ih,(0,u.Z)({ownerState:h,className:(0,c.Z)(m.select,n),disabled:o,ref:s||r},p)),t.multiple?null:(0,D.jsx)(sh,{as:a,ownerState:h,className:m.icon})]})}));function uh(e){return(0,X.ZP)("MuiSelect",e)}const ch=(0,L.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dh;const fh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],ph=(0,h.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["&."+ch.select]:t.select},{["&."+ch.select]:t[r.variant]},{["&."+ch.error]:t.error},{["&."+ch.multiple]:t.multiple}]}})(oh,{["&."+ch.select]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hh=(0,h.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon"+(0,ne.Z)(r.variant)],r.open&&t.iconOpen]}})(ah),mh=(0,h.ZP)("input",{shouldForwardProp:e=>(0,h.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yh(e){return null==e||"string"==typeof e&&!e.trim()}const vh=e.forwardRef((function(t,r){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:d,className:p,defaultOpen:h,defaultValue:m,disabled:y,displayEmpty:v,error:b=!1,IconComponent:w,inputRef:x,labelId:S,MenuProps:_={},multiple:k,name:E,onBlur:C,onChange:P,onClose:O,onFocus:T,onOpen:R,open:A,readOnly:M,renderValue:j,SelectDisplayProps:I={},tabIndex:N,value:L,variant:Z="standard"}=t,F=(0,l.Z)(t,fh),[B,V]=(0,ls.Z)({controlled:L,default:m,name:"Select"}),[z,W]=(0,ls.Z)({controlled:A,default:h,name:"Select"}),U=e.useRef(null),$=e.useRef(null),[H,Y]=e.useState(null),{current:G}=e.useRef(null!=A),[q,K]=e.useState(),X=(0,g.Z)(r,x),Q=e.useCallback(e=>{$.current=e,e&&Y(e)},[]),J=null==H?void 0:H.parentNode;e.useImperativeHandle(X,()=>({focus:()=>{$.current.focus()},node:U.current,value:B}),[B]),e.useEffect(()=>{h&&z&&H&&!G&&(K(s?null:J.clientWidth),$.current.focus())},[H,s]),e.useEffect(()=>{a&&$.current.focus()},[a]),e.useEffect(()=>{if(!S)return;const e=(0,Uf.Z)($.current).getElementById(S);if(e){const t=()=>{getSelection().isCollapsed&&$.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[S]);const ee=(e,t)=>{e?R&&R(t):O&&O(t),G||(K(s?null:J.clientWidth),W(e))},te=e.Children.toArray(d),re=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(k){r=Array.isArray(B)?B.slice():[];const t=B.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),B!==r&&(V(r),P)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:E}}),P(o,e)}k||ee(!1,t)}},oe=null!==H&&z;let ie,ae;delete F["aria-invalid"];const se=[];let le=!1,ue=!1;(Bd({value:B})||v)&&(j?ie=j(B):le=!0);const ce=te.map(t=>{if(!e.isValidElement(t))return null;let r;if(k){if(!Array.isArray(B))throw new Error((0,kd.Z)(2));r=B.some(e=>gh(e,t.props.value)),r&&le&&se.push(t.props.children)}else r=gh(B,t.props.value),r&&le&&(ae=t.props.children);return r&&(ue=!0),e.cloneElement(t,{"aria-selected":r?"true":"false",onClick:re(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:r,value:void 0,"data-value":t.props.value})});le&&(ie=k?0===se.length?null:se.reduce((e,t,r)=>(e.push(t),r<se.length-1&&e.push(", "),e),[]):ae);let de,fe=q;!s&&G&&H&&(fe=J.clientWidth),de=void 0!==N?N:y?null:0;const pe=I.id||(E?"mui-component-select-"+E:void 0),he=(0,u.Z)({},t,{variant:Z,value:B,open:oe,error:b}),me=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,ne.Z)(r),i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,f.Z)(s,uh,t)})(he),ge=(0,u.Z)({},_.PaperProps,null==(n=_.slotProps)?void 0:n.paper),ye=(0,Sd.Z)();return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(ph,(0,u.Z)({ref:Q,tabIndex:de,role:"combobox","aria-controls":ye,"aria-disabled":y?"true":void 0,"aria-expanded":oe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[S,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:y||M?null:e=>{0===e.button&&(e.preventDefault(),$.current.focus(),ee(!0,e))},onBlur:e=>{!oe&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:E}}),C(e))},onFocus:T},I,{ownerState:he,className:(0,c.Z)(I.className,me.select,p),id:pe,children:yh(ie)?dh||(dh=(0,D.jsx)("span",{className:"notranslate",children:""})):ie})),(0,D.jsx)(mh,(0,u.Z)({"aria-invalid":b,value:Array.isArray(B)?B.join(","):B,name:E,ref:U,"aria-hidden":!0,onChange:e=>{const t=te.find(t=>t.props.value===e.target.value);void 0!==t&&(V(t.props.value),P&&P(e,t))},tabIndex:-1,disabled:y,className:me.nativeInput,autoFocus:a,ownerState:he},F)),(0,D.jsx)(hh,{as:w,className:me.icon,ownerState:he}),(0,D.jsx)(eh,(0,u.Z)({id:"menu-"+(E||""),anchorEl:J,open:oe,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,u.Z)({"aria-labelledby":S,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:ye},_.MenuListProps),slotProps:(0,u.Z)({},_.slotProps,{paper:(0,u.Z)({},ge,{style:(0,u.Z)({minWidth:fe},null!=ge?ge.style:null)})}),children:ce}))]})}));var bh=o(82066);const wh=(0,bh.Z)((0,D.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),xh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Sh=["root"],_h={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,h.FO)(e)&&"variant"!==e,slot:"Root"},kh=(0,h.ZP)(rf,_h)(""),Eh=(0,h.ZP)(Sf,_h)(""),Ch=(0,h.ZP)(cf,_h)(""),Ph=e.forwardRef((function(t,r){const n=(0,m.Z)({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:p=wh,id:h,input:y,inputProps:v,label:b,labelId:w,MenuProps:x,multiple:S=!1,native:_=!1,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:O,variant:T="outlined"}=n,R=(0,l.Z)(n,xh),A=_?lh:vh,M=Md({props:n,muiFormControl:Id(),states:["variant","error"]}),j=M.variant||T,I=(0,u.Z)({},n,{variant:j,classes:a}),N=(e=>{const{classes:t}=e;return t})(I),L=(0,l.Z)(N,Sh),Z=y||{standard:(0,D.jsx)(kh,{ownerState:I}),outlined:(0,D.jsx)(Eh,{label:b,ownerState:I}),filled:(0,D.jsx)(Ch,{ownerState:I})}[j],F=(0,g.Z)(r,Z.ref);return(0,D.jsx)(e.Fragment,{children:e.cloneElement(Z,(0,u.Z)({inputComponent:A,inputProps:(0,u.Z)({children:i,error:M.error,IconComponent:p,variant:j,type:void 0,multiple:S},_?{id:h}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:x,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:(0,u.Z)({id:h},O)},v,{classes:v?(0,_d.Z)(L,v.classes):L},y?y.props.inputProps:{})},S&&_&&"outlined"===j?{notched:!0}:{},{ref:F,className:(0,c.Z)(Z.props.className,s,N.root)},!y&&{variant:j},R))})}));Ph.muiName="Select";const Oh=Ph;function Th(e){return(0,X.ZP)("MuiTextField",e)}(0,L.Z)("MuiTextField",["root"]);const Rh=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ah={standard:rf,filled:cf,outlined:Sf},Mh=(0,h.ZP)(Lf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jh=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:w,inputProps:x,InputProps:S,inputRef:_,label:k,maxRows:E,minRows:C,multiline:P=!1,name:O,onBlur:T,onChange:R,onFocus:A,placeholder:M,required:j=!1,rows:I,select:N=!1,SelectProps:L,type:Z,value:F,variant:B="outlined"}=r,V=(0,l.Z)(r,Rh),z=(0,u.Z)({},r,{autoFocus:o,color:s,disabled:p,error:h,fullWidth:y,multiline:P,required:j,select:N,variant:B}),W=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Th,t)})(z);const U={};"outlined"===B&&(w&&void 0!==w.shrink&&(U.notched=w.shrink),U.label=k),N&&(L&&L.native||(U.id=void 0),U["aria-describedby"]=void 0);const $=(0,Sd.Z)(b),H=v&&$?$+"-helper-text":void 0,Y=k&&$?$+"-label":void 0,G=Ah[B],q=(0,D.jsx)(G,(0,u.Z)({"aria-describedby":H,autoComplete:n,autoFocus:o,defaultValue:d,fullWidth:y,multiline:P,name:O,rows:I,maxRows:E,minRows:C,type:Z,value:F,id:$,inputRef:_,onBlur:T,onChange:R,onFocus:A,placeholder:M,inputProps:x},U,S));return(0,D.jsxs)(Mh,(0,u.Z)({className:(0,c.Z)(W.root,a),disabled:p,error:h,fullWidth:y,ref:t,required:j,color:s,variant:B,ownerState:z},V,{children:[null!=k&&""!==k&&(0,D.jsx)(Mf,(0,u.Z)({htmlFor:$,id:Y},w,{children:k})),N?(0,D.jsx)(Oh,(0,u.Z)({"aria-describedby":H,id:$,labelId:Y,value:F,input:q},L,{children:i})):q,v&&(0,D.jsx)(Wf,(0,u.Z)({id:H},g,{children:v}))]}))}));var Ih=o(54048);function Dh(e){return(0,X.ZP)("MuiIconButton",e)}const Nh=(0,L.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Lh=["edge","children","className","color","disabled","disableFocusRipple","size"],Zh=(0,h.ZP)(re,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color"+(0,ne.Z)(r.color)],r.edge&&t["edge"+(0,ne.Z)(r.edge)],t["size"+(0,ne.Z)(r.size)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return(0,u.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,u.Z)({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":(0,u.Z)({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{["&."+Nh.disabled]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Fh=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=(0,l.Z)(r,Lh),g=(0,u.Z)({},r,{edge:n,color:a,disabled:s,disableFocusRipple:d,size:p}),y=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled","default"!==n&&"color"+(0,ne.Z)(n),o&&"edge"+(0,ne.Z)(o),"size"+(0,ne.Z)(i)]};return(0,f.Z)(a,Dh,t)})(g);return(0,D.jsx)(Zh,(0,u.Z)({className:(0,c.Z)(y.root,i),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:g},h,{children:o}))}));const Bh=(0,L.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Vh=(0,L.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);const zh=(0,L.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Wh(e){return(0,X.ZP)("MuiMenuItem",e)}const Uh=(0,L.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$h=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Hh=(0,h.ZP)(re,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:"1px solid "+(e.vars||e).palette.divider,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&."+Uh.selected]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+Uh.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&."+Uh.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["&."+Uh.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + ."+Bh.root]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + ."+Bh.inset]:{marginLeft:52},["& ."+zh.root]:{marginTop:0,marginBottom:0},["& ."+zh.inset]:{paddingLeft:36},["& ."+Vh.root]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,u.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Vh.root} svg`]:{fontSize:"1.25rem"}}))),Yh=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:d=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:y,className:v}=n,b=(0,l.Z)(n,$h),w=e.useContext($f),x=e.useMemo(()=>({dense:a||w.dense||!1,disableGutters:d}),[w.dense,a,d]),S=e.useRef(null);(0,Dd.Z)(()=>{o&&S.current&&S.current.focus()},[o]);const _=(0,u.Z)({},n,{dense:x.dense,divider:s,disableGutters:d}),k=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e,s={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},l=(0,f.Z)(s,Wh,a);return(0,u.Z)({},a,l)})(n),E=(0,g.Z)(S,r);let C;return n.disabled||(C=void 0!==y?y:-1),(0,D.jsx)($f.Provider,{value:x,children:(0,D.jsx)(Hh,(0,u.Z)({ref:E,role:h,tabIndex:C,component:i,focusVisibleClassName:(0,c.Z)(k.focusVisible,p),className:(0,c.Z)(k.root,v)},b,{ownerState:_,classes:k}))})}));function Gh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qh(e,t)}(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 qh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Kh=function(e,t){return{value:e.value,label:Xo.getLocalizedValue(t&&e.editlabel||e.label).value,description:e.description||e.editdescription?Xo.getLocalizedValue(t&&e.editdescription||e.description).value:void 0,seeAlso:e.seeAlso,mismatch:e.mismatch,original:e}},Xh=function(e){return Kh(e,!0)},Qh=function(t,r){return(0,e.useMemo)((function(){var e=t.getItem(),n=e.getChoices().map(r?Xh:Kh);e.hasStyle("preserveOrderOfChoices")||n.sort((function(e,t){return e.label<t.label?-1:1}));var o=t.getChoice();return null!=o&&o.mismatch&&n.unshift({value:o.value,label:o.value,mismatch:!0,original:o}),n}),[])},Jh=function(t,r){var n=r?Xh:Kh,o=Gh((0,e.useState)((function(){var e=t.getChoice()||null;return e?n(e):null})),2),i=o[0],a=o[1];return(0,e.useEffect)((function(){i&&i.original.load&&i.original.load((function(){a(n(i.original))}),(function(){a(n(i.original))}))}),[]),[i,a]},em=0,tm=function(t,r){return(0,e.useMemo)((function(){return bd(t,r)}))};function rm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nm(e,t)}(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 nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var om=function(t){var r=rm((0,e.useState)(t.binding.getLanguage()||""),2),n=r[0],o=r[1],i=(0,e.useMemo)((function(){var e=Xo.cloneArrayWithLabels(fi.getPrimaryLanguageList()),t=Xo.cloneArrayWithLabels(fi.getNonPrimaryLanguageList());return 0===e.length?t:e.concat([null],t)}));(0,e.useEffect)((function(){if(!t.binding.isValid()){var e=t.context.view.getDefaultTextLanguage();"string"==typeof e&&""!==e&&(o(e),t.binding.setLanguage(e,!0))}}),[]);(0,e.useEffect)((function(){t.context.clearLanguage=function(){o("")}}),[]);var a=tm(t.binding,t.context);return e.createElement(Lf,{className:"rdformsLangControl",variant:fi.materialVariant},e.createElement(Oh,{inputProps:{"aria-labelledby":t.labelledby},value:n,disabled:!!a,onChange:function(e){t.binding.setLanguage(e.target.value),o(e.target.value)}},i.map((function(t){return null===t?e.createElement(Yh,{key:"_none",value:"_none",disabled:!0},"─────"):e.createElement(Yh,{key:t.value,value:t.value},t.label||" ")}))))},im=fi.editorRegistry;im.itemtype("text").register((function(t,r,n){var o=r.getItem(),i=o.getNodetype(),a=o.hasStyle("multiline"),s=o.hasStyle("externalLink"),l="LANGUAGE_LITERAL"===i||"PLAIN_LITERAL"===i,u=o.getPattern(),c=u?new RegExp(u):null,d=function(){var t=rm((0,e.useState)(r.getGist()),2),i=t[0],u=t[1],d=r.getValue();(0,e.useEffect)((function(){n.clear=function(){u(""),n.clearLanguage&&n.clearLanguage()}}),[]);var f=null===i||""===i||!c||c.test(i),p=n.view.getLabelIndex(r),h={value:i,"aria-labelledby":p,onChange:function(e){var t=e.target.value;!c||c.test(t)?r.setGist(t):r.setGist(""),u(t)}},m=n.view.messages,g=tm(r,n);return e.createElement(e.Fragment,null,e.createElement(jh,{className:s||l?"rdformsTwoThirds":"",multiline:a,placeholder:o.getPlaceholder(),error:!f,disabled:!!g,helperText:f?"":o.getHelp()||"",variant:fi.materialVariant,inputProps:h}),s&&(null!=d||""===d)&&e.createElement(Fh,{"aria-label":m.openLinkExternally,disabled:!f,target:"_blank",href:d,title:d},e.createElement(Ih.Z,null)),l?e.createElement(om,{binding:r,context:n,labelledby:p}):"")};t.appendChild(e.createElement(d,{key:r.getHash()}))}));var am=function(t){return function(r,n,o){var i=t?new RegExp(t):null,a=n.getItem(),s=function(){var t=rm((0,e.useState)(n.getGist()),2),r=t[0],s=t[1];(0,e.useEffect)((function(){o.clear=function(){return s("")}}),[]);var l=!r||!i||i.test(r),u={value:r,"aria-labelledby":o.view.getLabelIndex(n),onChange:function(e){var t=e.target.value;!i||i.test(t)?n.setGist(t):n.setGist(""),s(t)}};return e.createElement(jh,{error:!l,placeholder:a.getPlaceholder(),helperText:l?"":a.getHelp()||"",variant:fi.materialVariant,inputProps:u})};r.appendChild(e.createElement(s,{key:n.getHash()}))}};function sm(){return(sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function lm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return um(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return um(e,t)}(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 um(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}im.itemtype("text").datatype("xsd:integer").register(am("^-?\\d+$")),im.itemtype("text").datatype("xsd:decimal").register(am("^-?(\\d+(\\.\\d+)?)$"));var cm=fi.presenterRegistry,dm=function(e){return function(t,r,n){var o,i=r.getChoice(),a=n.view instanceof Jc;if(i){var s=n.view.getLocale();a&&i.editdescription?o=Xo.getLocalizedValue(i.editdescription,s).value:i.description&&(o=Xo.getLocalizedValue(i.description,s).value),e(t,r,i,o,a,s)}}},fm=function(e,t,r){return Xo.getLocalizedValue(t&&e.editlabel||e.label,r)};cm.itemtype("choice").style("image").register(dm((function(t,r,n,o){t.appendChild(e.createElement("img",{key:r.getHash(),className:"rdformsImage",title:o||n.value,src:n.value}))}))),cm.itemtype("choice").style("stars").register(dm((function(t,r,n){isNaN(parseInt(n.value,10))||t.appendChild(e.createElement("span",{key:r.getHash(),className:"rdformsStar"}))}))),cm.itemtype("choice").register(dm((function(t,r,n,o,i,a){var s=r.getItem(),l=o||n.seeAlso||n.value;if(s.hasStaticChoices()&&!s.hasStyle("externalLink")||s.hasStyle("noLink"))t.appendChild(e.createElement((function(){var t=lm((0,e.useState)(fm(n,i,a)),2),o=t[0],s=t[1];(0,e.useEffect)((function(){null!=n.load&&n.load((function(){s(fm(n,i,a))}))}),[]);var u=o.lang?{lang:o.lang}:{};return e.createElement("div",sm({key:r.getHash()},u,{title:l}),o.value)}),{key:r.getHash()}));else{var u,c=(u=s.hasStyle("externalLink")?Jo.attachExternalLinkBehaviour(t,r)||{}:Jo.attachLinkBehaviour(t,r)||{}).component||null;delete u.component,t.appendChild(e.createElement((function(){var t=lm((0,e.useState)(fm(n,i,a)),2),r=t[0],o=t[1];return(0,e.useEffect)((function(){null!=n.load&&n.load((function(){o(fm(n,i,a))}))}),[]),r.lang&&(u.lang=r.lang),e.createElement("a",sm({},u,{title:l,href:n.seeAlso||n.value}),e.createElement("span",null,r.value),c)}),{key:r.getHash()}))}})));o(61514);function pm(e){return(0,X.ZP)("PrivateSwitchBase",e)}(0,L.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hm=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mm=(0,h.ZP)(re)(({ownerState:e})=>(0,u.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),gm=(0,h.ZP)("input",{shouldForwardProp:h.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ym=e.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:g,inputRef:y,name:v,onBlur:b,onChange:w,onFocus:x,readOnly:S,required:_=!1,tabIndex:k,type:E,value:C}=e,P=(0,l.Z)(e,hm),[O,T]=(0,ls.Z)({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=Id();let A=s;R&&void 0===A&&(A=R.disabled);const M="checkbox"===E||"radio"===E,j=(0,u.Z)({},e,{checked:O,disabled:A,disableFocusRipple:d,edge:p}),I=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&"edge"+(0,ne.Z)(o)],input:["input"]};return(0,f.Z)(i,pm,t)})(j);return(0,D.jsxs)(mm,(0,u.Z)({component:"span",className:(0,c.Z)(I.root,i),centerRipple:!0,focusRipple:!d,disabled:A,tabIndex:null,role:void 0,onFocus:e=>{x&&x(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{b&&b(e),R&&R.onBlur&&R.onBlur(e)},ownerState:j,ref:t},P,{children:[(0,D.jsx)(gm,(0,u.Z)({autoFocus:r,checked:n,defaultChecked:a,className:I.input,disabled:A,id:M?m:void 0,name:v,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;T(t),w&&w(e,t)},readOnly:S,ref:y,required:_,ownerState:j,tabIndex:k,type:E},"checkbox"===E&&void 0===C?{}:{value:C},g)),O?o:h]}))})),vm=(0,bh.Z)((0,D.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),bm=(0,bh.Z)((0,D.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),wm=(0,h.ZP)("span",{shouldForwardProp:h.FO})({position:"relative",display:"flex"}),xm=(0,h.ZP)(vm)({transform:"scale(1)"}),Sm=(0,h.ZP)(bm)(({theme:e,ownerState:t})=>(0,u.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));const _m=function(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=(0,u.Z)({},e,{checked:t});return(0,D.jsxs)(wm,{className:r.root,ownerState:o,children:[(0,D.jsx)(xm,{fontSize:n,className:r.background,ownerState:o}),(0,D.jsx)(Sm,{fontSize:n,className:r.dot,ownerState:o})]})};var km=o(35893);const Em=e.createContext(void 0);function Cm(e){return(0,X.ZP)("MuiRadio",e)}const Pm=(0,L.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Om=["checked","checkedIcon","color","icon","name","onChange","size","className"],Tm=(0,h.ZP)(ym,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t["size"+(0,ne.Z)(r.size)],t["color"+(0,ne.Z)(r.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{["&."+Pm.checked]:{color:(e.vars||e).palette[t.color].main}},{["&."+Pm.disabled]:{color:(e.vars||e).palette.action.disabled}}));const Rm=(0,D.jsx)(_m,{checked:!0}),Am=(0,D.jsx)(_m,{}),Mm=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=Rm,color:d="primary",icon:p=Am,name:h,onChange:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,Om),w=(0,u.Z)({},i,{color:d,size:y}),x=(e=>{const{classes:t,color:r,size:n}=e,o={root:["root","color"+(0,ne.Z)(r),"medium"!==n&&"size"+(0,ne.Z)(n)]};return(0,u.Z)({},t,(0,f.Z)(o,Cm,t))})(w),S=e.useContext(Em);let _=a;const k=(0,km.Z)(g,S&&S.onChange);let E=h;var C,P;return S&&(void 0===_&&(C=S.value,_="object"==typeof(P=i.value)&&null!==P?C===P:String(C)===String(P)),void 0===E&&(E=S.name)),(0,D.jsx)(Tm,(0,u.Z)({type:"radio",icon:e.cloneElement(p,{fontSize:null!=(n=Am.props.fontSize)?n:y}),checkedIcon:e.cloneElement(s,{fontSize:null!=(o=Rm.props.fontSize)?o:y}),ownerState:w,classes:x,name:E,checked:_,onChange:k,ref:r,className:(0,c.Z)(x.root,v)},b))}));function jm(e){return(0,X.ZP)("MuiFormGroup",e)}(0,L.Z)("MuiFormGroup",["root","row","error"]);const Im=["className","row"],Dm=(0,h.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Nm=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,i=(0,l.Z)(r,Im),a=Md({props:r,muiFormControl:Id(),states:["error"]}),s=(0,u.Z)({},r,{row:o,error:a.error}),d=(e=>{const{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,f.Z)(o,jm,t)})(s);return(0,D.jsx)(Dm,(0,u.Z)({className:(0,c.Z)(d.root,n),ownerState:s,ref:t},i))})),Lm=["actions","children","defaultValue","name","onChange","value"],Zm=e.forwardRef((function(t,r){const{actions:n,children:o,defaultValue:i,name:a,onChange:s,value:c}=t,d=(0,l.Z)(t,Lm),f=e.useRef(null),[p,h]=(0,ls.Z)({controlled:c,default:i,name:"RadioGroup"});e.useImperativeHandle(n,()=>({focus:()=>{let e=f.current.querySelector("input:not(:disabled):checked");e||(e=f.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);const m=(0,g.Z)(r,f),y=(0,ss.Z)(a),v=e.useMemo(()=>({name:y,onChange(e){h(e.target.value),s&&s(e,e.target.value)},value:p}),[y,s,h,p]);return(0,D.jsx)(Em.Provider,{value:v,children:(0,D.jsx)(Nm,(0,u.Z)({role:"radiogroup",ref:m},d,{children:o}))})}));const Fm=(0,o(22360).ZP)();var Bm=o(29628),Vm=o(38010);const zm=["sx"];function Wm(e){const{sx:t}=e,r=(0,l.Z)(e,zm),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Vm.Z;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,_d.P)(r)?(0,u.Z)({},n,r):n}:(0,u.Z)({},n,t),(0,u.Z)({},o,{sx:i})}var Um=o(86268),$m=o(95408),Hm=o(62605);const Ym=["component","direction","spacing","divider","children","className","useFlexGap"],Gm=(0,Um.Z)(),qm=Fm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Km(e){return(0,Bm.Z)({props:e,name:"MuiStack",defaultTheme:Gm})}function Xm(t,r){const n=e.Children.toArray(t).filter(Boolean);return n.reduce((t,o,i)=>(t.push(o),i<n.length-1&&t.push(e.cloneElement(r,{key:"separator-"+i})),t),[])}const Qm=({ownerState:e,theme:t})=>{let r=(0,u.Z)({display:"flex",flexDirection:"column"},(0,$m.k9)({theme:t},(0,$m.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const n=(0,Hm.hB)(t),o=Object.keys(t.breakpoints.values).reduce((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t),{}),i=(0,$m.P$)({values:e.direction,base:o}),a=(0,$m.P$)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}});const s=(t,r)=>{return e.useFlexGap?{gap:(0,Hm.NA)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin"+(o=r?i[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])]:(0,Hm.NA)(n,t)}};var o};r=(0,_d.Z)(r,(0,$m.k9)({theme:t},a,s))}return r=(0,$m.dt)(t.breakpoints,r),r};const Jm=function(t={}){const{createStyledComponent:r=qm,useThemeProps:n=Km,componentName:o="MuiStack"}=t,i=r(Qm);return e.forwardRef((function(e,t){const r=Wm(n(e)),{component:a="div",direction:s="column",spacing:d=0,divider:p,children:h,className:m,useFlexGap:g=!1}=r,y=(0,l.Z)(r,Ym),v={direction:s,spacing:d,useFlexGap:g},b=(0,f.Z)({root:["root"]},e=>(0,X.ZP)(o,e),{});return(0,D.jsx)(i,(0,u.Z)({as:a,ownerState:v,ref:t,className:(0,c.Z)(b.root,m)},y,{children:p?Xm(h,p):h}))}))}({createStyledComponent:(0,h.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,m.Z)({props:e,name:"MuiStack"})});function eg(e){return(0,X.ZP)("MuiTypography",e)}(0,L.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tg=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rg=(0,h.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align"+(0,ne.Z)(r.align)],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ng={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},og={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ig=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiTypography"}),n=(e=>og[e]||e)(r.color),o=Wm((0,u.Z)({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=ng}=o,v=(0,l.Z)(o,tg),b=(0,u.Z)({},o,{align:i,color:n,className:a,component:s,gutterBottom:d,noWrap:p,paragraph:h,variant:g,variantMapping:y}),w=s||(h?"p":y[g]||ng[g])||"span",x=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align"+(0,ne.Z)(t),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,f.Z)(s,eg,a)})(b);return(0,D.jsx)(rg,(0,u.Z)({as:w,ref:t,ownerState:b,className:(0,c.Z)(x.root,a)},v))}));function ag(e){return(0,X.ZP)("MuiFormControlLabel",e)}const sg=(0,L.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lg=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],ug=(0,h.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& ."+sg.label]:t.label},t.root,t["labelPlacement"+(0,ne.Z)(r.labelPlacement)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&."+sg.disabled]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& ."+sg.label]:{["&."+sg.disabled]:{color:(e.vars||e).palette.text.disabled}}})),cg=(0,h.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+sg.error]:{color:(e.vars||e).palette.error.main}})),dg=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:d,disabled:p,disableTypography:h,label:g,labelPlacement:y="end",required:v,slotProps:b={}}=i,w=(0,l.Z)(i,lg),x=Id(),S=null!=(n=null!=p?p:d.props.disabled)?n:null==x?void 0:x.disabled,_=null!=v?v:d.props.required,k={disabled:S,required:_};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===d.props[e]&&void 0!==i[e]&&(k[e]=i[e])});const E=Md({props:i,muiFormControl:x,states:["error"]}),C=(0,u.Z)({},i,{disabled:S,labelPlacement:y,required:_,error:E.error}),P=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled","labelPlacement"+(0,ne.Z)(n),o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,f.Z)(a,ag,t)})(C),O=null!=(o=b.typography)?o:s.typography;let T=g;return null==T||T.type===ig||h||(T=(0,D.jsx)(ig,(0,u.Z)({component:"span"},O,{className:(0,c.Z)(P.label,null==O?void 0:O.className),children:T}))),(0,D.jsxs)(ug,(0,u.Z)({className:(0,c.Z)(P.root,a),ownerState:C,ref:r},w,{children:[e.cloneElement(d,k),_?(0,D.jsxs)(Jm,{display:"block",children:[T,(0,D.jsxs)(cg,{ownerState:C,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):T]}))}));function fg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}(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 pg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hg(){return(hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var mg=function(t){return e.createElement(dg,hg({disabled:t.disabled,label:t.choice.label,value:t.choice.value,control:e.createElement(Mm,null)},t.choice.mismatch?{className:"mismatch"}:{},{title:t.choice.description||t.choice.seeAlso||t.choice.value}))};function gg(t){var r,n=t.binding,o=n.getItem(),i=(0,e.useMemo)((function(){return"_rdforms_".concat(em+=1)}),[]),a=Qh(n,!0),s=fg((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),l=s[0],u=s[1],c=fg((0,e.useState)((function(){var e=n.getChoice();return e?e.value:""})),2),d=c[0],f=c[1],p=o.hasStyle("verticalRadioButtons")?{}:{row:!0};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]);(0,e.useEffect)((function(){t.context.clear=function(){f(""),u(!1)}}),[]);var h=tm(n,t.context),m=o.getEditLabelMap()||o.getLabelMap(),g=Xo.getLocalizedValue(m,t.context.view.getLocale()).value;return e.createElement(e.Fragment,null,e.createElement(Lf,{component:"fieldset"},e.createElement(Zm,hg({},p,{key:"radio","aria-label":g,name:i,value:d,onChange:function(e){var t=e.target.value,r=a.find((function(e){return e.value===t}));r?(n.setChoice(r.original),u(!0===r.original.mismatch)):(n.setChoice(null),u(!1)),f(t)}}),a.map((function(t){return e.createElement(mg,{key:t.value,disabled:!!h,choice:t})})))),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}o(86466);const yg=(0,bh.Z)((0,D.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vg=(0,bh.Z)((0,D.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),bg=(0,bh.Z)((0,D.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function wg(e){return(0,X.ZP)("MuiCheckbox",e)}const xg=(0,L.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Sg=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],_g=(0,h.ZP)(ym,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size"+(0,ne.Z)(r.size)],"default"!==r.color&&t["color"+(0,ne.Z)(r.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${xg.checked}, &.${xg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},["&."+xg.disabled]:{color:(e.vars||e).palette.action.disabled}})),kg=(0,D.jsx)(vg,{}),Eg=(0,D.jsx)(yg,{}),Cg=(0,D.jsx)(bg,{}),Pg=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiCheckbox"}),{checkedIcon:a=kg,color:s="primary",icon:d=Eg,indeterminate:p=!1,indeterminateIcon:h=Cg,inputProps:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,Sg),w=p?h:d,x=p?h:a,S=(0,u.Z)({},i,{color:s,indeterminate:p,size:y}),_=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate","color"+(0,ne.Z)(n),"size"+(0,ne.Z)(o)]},a=(0,f.Z)(i,wg,t);return(0,u.Z)({},t,a)})(S);return(0,D.jsx)(_g,(0,u.Z)({type:"checkbox",inputProps:(0,u.Z)({"data-indeterminate":p},g),icon:e.cloneElement(w,{fontSize:null!=(n=w.props.fontSize)?n:y}),checkedIcon:e.cloneElement(x,{fontSize:null!=(o=x.props.fontSize)?o:y}),ownerState:S,ref:r,className:(0,c.Z)(_.root,v)},b,{classes:_}))}));function Og(){return(Og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Tg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rg(e,t)}(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 Rg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ag=function(t){var r=t.choice,n=t.binding,o=t.onChoiceChange,i=Tg(e.useState(r.value===n.getValue()),2),a=i[0],s=i[1];return e.createElement(dg,Og({disabled:t.disabled,label:r.label,control:e.createElement(Pg,{checked:a,onChange:function(e){n.setChoice(e.target.checked?r.original:null),s(e.target.checked),o()}})},r.mismatch?{className:"mismatch"}:{},{title:r.description||r.seeAlso||r.value}))};function Mg(t){var r,n=Tg(e.useState(0),2),o=n[0],i=n[1],a=t.binding,s=a.getItem(),l=Qh(a,!0),u=(0,e.useMemo)((function(){var e=a.getParent(),r={};e.getChildBindingsFor(s).forEach((function(e){return r[e.getValue()]=e}));var n=l.map((function(n){var o=r[n.value];return o?(delete r[n.value],[n,o,bd(o,t.context)]):[n,zu(e,s),void 0]}));return Object.values(r).forEach((function(e){var t=e.getChoice();t&&n.push([t,e])})),n})),c=Tg((0,e.useState)(!0===(null===(r=a.getChoice())||void 0===r?void 0:r.mismatch)),2),d=c[0],f=c[1],p=s.hasStyle("verticalCheckboxes")?{}:{row:!0},h=function(){var e=void 0!==u.find((function(e){return e[1].getChoice()&&e[1].getChoice().mismatch}));e!==d&&f(e)};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",d)}),[d]),t.context.clear=function(){u.forEach((function(e){return e[1].setChoice(null)})),f(!1),i(o+1)};var m=tm(a,t.context);return e.createElement(e.Fragment,null,e.createElement(Nm,p,u.map((function(t){return e.createElement(Ag,{key:"".concat(o,"-").concat(t[1].getHash()),choice:t[0],binding:t[1],disabled:!!t[2]||!!m,onChoiceChange:h})}))),d&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}var jg=o(19032);const Ig=t=>{const r=e.useRef({});return e.useEffect(()=>{r.current=t}),r.current};function Dg(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Ng(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const Lg=function(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let u=a?s.trim():s;r&&(u=u.toLowerCase()),t&&(u=Dg(u));const c=u?e.filter(e=>{let n=(i||l)(e);return r&&(n=n.toLowerCase()),t&&(n=Dg(n)),"start"===o?0===n.indexOf(u):n.indexOf(u)>-1}):e;return"number"==typeof n?c.slice(0,n):c}}(),Zg=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Fg(t){const{unstable_isActiveElementInListbox:r=Zg,unstable_classNamePrefix:n="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!t.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:f=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:v=Lg,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:_=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:k,handleHomeEndKeys:E=!t.freeSolo,id:C,includeInputInList:P=!1,inputValue:O,isOptionEqualToValue:T=((e,t)=>e===t),multiple:R=!1,onChange:A,onClose:M,onHighlightChange:j,onInputChange:I,onOpen:D,open:N,openOnFocus:L=!1,options:Z,readOnly:F=!1,selectOnFocus:B=!t.freeSolo,value:V}=t,z=(0,Sd.Z)(C);let W=_;W=e=>{const t=_(e);return"string"!=typeof t?String(t):t};const U=e.useRef(!1),$=e.useRef(!0),H=e.useRef(null),Y=e.useRef(null),[G,q]=e.useState(null),[K,X]=e.useState(-1),Q=i?0:-1,J=e.useRef(Q),[ee,te]=(0,jg.Z)({controlled:V,default:f,name:d}),[re,ne]=(0,jg.Z)({controlled:O,default:"",name:d,state:"inputValue"}),[oe,ie]=e.useState(!1),ae=e.useCallback((e,t)=>{if(!(R?ee.length<t.length:null!==t)&&!l)return;let r;if(R)r="";else if(null==t)r="";else{const e=W(t);r="string"==typeof e?e:""}re!==r&&(ne(r),I&&I(e,r,"reset"))},[W,re,R,I,ne,l,ee]),[se,le]=(0,jg.Z)({controlled:N,default:!1,name:d,state:"open"}),[ue,ce]=e.useState(!0),de=!R&&null!=ee&&re===W(ee),fe=se&&!F,pe=fe?v(Z.filter(e=>!b||!(R?ee:[ee]).some(t=>null!==t&&T(e,t))),{inputValue:de&&ue?"":re,getOptionLabel:W}):[],he=Ig({filteredOptions:pe,value:ee,inputValue:re});e.useEffect(()=>{const e=ee!==he.value;oe&&!e||w&&!e||ae(null,ee)},[ee,ae,oe,he.value,w]);const me=se&&pe.length>0&&!F;const ge=(0,ws.Z)(e=>{-1===e?H.current.focus():G.querySelector(`[data-tag-index="${e}"]`).focus()});e.useEffect(()=>{R&&K>ee.length-1&&(X(-1),ge(-1))},[ee,R,K,ge]);const ye=(0,ws.Z)(({event:e,index:t,reason:r="auto"})=>{if(J.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${z}-option-${t}`),j&&j(e,-1===t?null:pe[t],r),!Y.current)return;const o=Y.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(n+"-focused"),o.classList.remove(n+"-focusVisible"));let i=Y.current;if("listbox"!==Y.current.getAttribute("role")&&(i=Y.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=Y.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(n+"-focused"),"keyboard"===r&&a.classList.add(n+"-focusVisible"),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=i.clientHeight+i.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?i.scrollTop=r-i.clientHeight:e.offsetTop-e.offsetHeight*(k?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(k?1.3:0))}}),ve=(0,ws.Z)(({event:e,diff:t,direction:r="next",reason:n="auto"})=>{if(!fe)return;const i=function(e,t){if(!Y.current||e<0||e>=pe.length)return-1;let r=e;for(;;){const n=Y.current.querySelector(`[data-option-index="${r}"]`),o=!g&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if(r="next"===t?(r+1)%pe.length:(r-1+pe.length)%pe.length,r===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const r=J.current+t;return r<0?-1===r&&P?-1:y&&-1!==J.current||Math.abs(t)>1?0:e:r>e?r===e+1&&P?-1:y||Math.abs(t)>1?e:0:r})(),r);if(ye({index:i,reason:n,event:e}),o&&"reset"!==t)if(-1===i)H.current.value=re;else{const e=W(pe[i]);H.current.value=e;0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&H.current.setSelectionRange(re.length,e.length)}}),be=e.useCallback(()=>{if(!fe)return;if((()=>{if(-1!==J.current&&he.filteredOptions&&he.filteredOptions.length!==pe.length&&he.inputValue===re&&(R?ee.length===he.value.length&&he.value.every((e,t)=>W(ee[t])===W(e)):(e=he.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=he.filteredOptions[J.current];if(e){if(pe.some(t=>W(t)===W(e)))return!0}}var e,t;return!1})())return;const e=R?ee[0]:ee;if(0!==pe.length&&null!=e){if(Y.current)if(null==e)J.current>=pe.length-1?ye({index:pe.length-1}):ye({index:J.current});else{const t=pe[J.current];if(R&&t&&-1!==Ng(ee,e=>T(t,e)))return;const r=Ng(pe,t=>T(t,e));-1===r?ve({diff:"reset"}):ye({index:r})}}else ve({diff:"reset"})},[pe.length,!R&&ee,b,ve,ye,fe,re,R]),we=(0,ws.Z)(e=>{(0,Fa.Z)(Y,e),e&&be()});e.useEffect(()=>{be()},[be]);const xe=e=>{se||(le(!0),ce(!0),D&&D(e))},Se=(e,t)=>{se&&(le(!1),M&&M(e,t))},_e=(e,t,r,n)=>{if(R){if(ee.length===t.length&&ee.every((e,r)=>e===t[r]))return}else if(ee===t)return;A&&A(e,t,r,n),te(t)},ke=e.useRef(!1),Ee=(e,t,r="selectOption",n="options")=>{let o=r,i=t;if(R){i=Array.isArray(ee)?ee.slice():[];const e=Ng(i,e=>T(t,e));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),o="removeOption")}ae(e,i),_e(e,i,o,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||Se(e,o),(!0===s||"touch"===s&&ke.current||"mouse"===s&&!ke.current)&&H.current.blur()};const Ce=(e,t)=>{if(!R)return;""===re&&Se(e,"toggleInput");let r=K;-1===K?""===re&&"previous"===t&&(r=ee.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===ee.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return-1;const e=G.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),X(r),ge(r)},Pe=e=>{U.current=!0,ne(""),I&&I(e,"","clear"),_e(e,R?[]:null,"clear")},Oe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":fe&&E&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&E&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Ce(t,"previous");break;case"ArrowRight":Ce(t,"next");break;case"Enter":if(-1!==J.current&&fe){const e=pe[J.current],r=!!x&&x(e);if(t.preventDefault(),r)return;Ee(t,e,"selectOption"),o&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else w&&""!==re&&!1===de&&(R&&t.preventDefault(),Ee(t,re,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Se(t,"escape")):c&&(""!==re||R&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(R&&!F&&""===re&&ee.length>0){const e=-1===K?ee.length-1:K,r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if(R&&!F&&""===re&&ee.length>0&&-1!==K){const e=K,r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})}}},Te=e=>{ie(!0),L&&!U.current&&xe(e)},Re=e=>{r(Y)?H.current.focus():(ie(!1),$.current=!0,U.current=!1,a&&-1!==J.current&&fe?Ee(e,pe[J.current],"blur"):a&&w&&""!==re?Ee(e,re,"blur","freeSolo"):l&&ae(e,ee),Se(e,"blur"))},Ae=e=>{const t=e.target.value;re!==t&&(ne(t),ce(!1),I&&I(e,t,"input")),""===t?p||R||_e(e,null,"clear"):xe(e)},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ye({event:e,index:t,reason:"mouse"})},je=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},Ie=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),ke.current=!1},De=e=>t=>{const r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})},Ne=e=>{se?Se(e,"toggleInput"):xe(e)},Le=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==z&&e.preventDefault()},Ze=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&$.current&&H.current.selectionEnd-H.current.selectionStart==0&&H.current.select(),$.current=!1)},Fe=e=>{m||""!==re&&se||Ne(e)};let Be=w&&re.length>0;Be=Be||(R?ee.length>0:null!==ee);let Ve=pe;if(k){new Map;Ve=pe.reduce((e,t,r)=>{const n=k(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])}return m&&oe&&Re(),{getRootProps:(e={})=>(0,u.Z)({"aria-owns":me?z+"-listbox":null},e,{onKeyDown:Oe(e),onMouseDown:Le,onClick:Ze}),getInputLabelProps:()=>({id:z+"-label",htmlFor:z}),getInputProps:()=>({id:z,value:re,onBlur:Re,onFocus:Te,onChange:Ae,onMouseDown:Fe,"aria-activedescendant":fe?"":null,"aria-autocomplete":o?"both":"list","aria-controls":me?z+"-listbox":void 0,"aria-expanded":me,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>(0,u.Z)({key:e,"data-tag-index":e,tabIndex:-1},!F&&{onDelete:De(e)}),getListboxProps:()=>({role:"listbox",id:z+"-listbox","aria-labelledby":z+"-label",ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;const n=(R?ee:[ee]).some(e=>null!=e&&T(t,e)),o=!!x&&x(t);return{key:null!=(r=null==S?void 0:S(t))?r:W(t),tabIndex:-1,role:"option",id:`${z}-option-${e}`,onMouseMove:Me,onClick:Ie,onTouchStart:je,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:z,inputValue:re,value:ee,dirty:Be,expanded:fe&&G,popupOpen:fe,focused:oe||-1!==K,anchorEl:G,setAnchorEl:q,focusedTag:K,groupedOptions:Ve}}function Bg(e){return(0,X.ZP)("MuiListSubheader",e)}(0,L.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Vg=["className","color","component","disableGutters","disableSticky","inset"],zg=(0,h.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color"+(0,ne.Z)(r.color)],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,u.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Wg=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:d=!1}=r,p=(0,l.Z)(r,Vg),h=(0,u.Z)({},r,{color:o,component:i,disableGutters:a,disableSticky:s,inset:d}),g=(e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:i}=e,a={root:["root","default"!==r&&"color"+(0,ne.Z)(r),!n&&"gutters",o&&"inset",!i&&"sticky"]};return(0,f.Z)(a,Bg,t)})(h);return(0,D.jsx)(zg,(0,u.Z)({as:i,className:(0,c.Z)(g.root,n),ref:t,ownerState:h},p))}));Wg.muiSkipListHighlight=!0;const Ug=Wg,$g=(0,bh.Z)((0,D.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Hg(e){return(0,X.ZP)("MuiChip",e)}const Yg=(0,L.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Gg=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qg=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=r;return[{["& ."+Yg.avatar]:t.avatar},{["& ."+Yg.avatar]:t["avatar"+(0,ne.Z)(s)]},{["& ."+Yg.avatar]:t["avatarColor"+(0,ne.Z)(n)]},{["& ."+Yg.icon]:t.icon},{["& ."+Yg.icon]:t["icon"+(0,ne.Z)(s)]},{["& ."+Yg.icon]:t["iconColor"+(0,ne.Z)(o)]},{["& ."+Yg.deleteIcon]:t.deleteIcon},{["& ."+Yg.deleteIcon]:t["deleteIcon"+(0,ne.Z)(s)]},{["& ."+Yg.deleteIcon]:t["deleteIconColor"+(0,ne.Z)(n)]},{["& ."+Yg.deleteIcon]:t[`deleteIcon${(0,ne.Z)(l)}Color${(0,ne.Z)(n)}`]},t.root,t["size"+(0,ne.Z)(s)],t["color"+(0,ne.Z)(n)],i&&t.clickable,i&&"default"!==n&&t[`clickableColor${(0,ne.Z)(n)})`],a&&t.deletable,a&&"default"!==n&&t["deletableColor"+(0,ne.Z)(n)],t[l],t[`${l}${(0,ne.Z)(n)}`]]}})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,u.Z)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&."+Yg.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["& ."+Yg.avatar]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},["& ."+Yg.avatarColorPrimary]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},["& ."+Yg.avatarColorSecondary]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},["& ."+Yg.avatarSmall]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},["& ."+Yg.icon]:(0,u.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,u.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),["& ."+Yg.deleteIcon]:(0,u.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,p.Fq)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,p.Fq)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{["&."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>(0,u.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{["&:hover, &."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>(0,u.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?"1px solid "+e.vars.palette.Chip.defaultBorder:"1px solid "+("light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]),[`&.${Yg.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},["&."+Yg.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["& ."+Yg.avatar]:{marginLeft:4},["& ."+Yg.avatarSmall]:{marginLeft:2},["& ."+Yg.icon]:{marginLeft:4},["& ."+Yg.iconSmall]:{marginLeft:2},["& ."+Yg.deleteIcon]:{marginRight:5},["& ."+Yg.deleteIconSmall]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:"1px solid "+(e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7)),[`&.${Yg.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},["&."+Yg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},["& ."+Yg.deleteIcon]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Kg=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t["label"+(0,ne.Z)(n)]]}})(({ownerState:e})=>(0,u.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7}));function Xg(e){return"Backspace"===e.key||"Delete"===e.key}const Qg=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:d,deleteIcon:p,disabled:h=!1,icon:y,label:v,onClick:b,onDelete:w,onKeyDown:x,onKeyUp:S,size:_="medium",variant:k="filled",tabIndex:E,skipFocusWhenDisabled:C=!1}=n,P=(0,l.Z)(n,Gg),O=e.useRef(null),T=(0,g.Z)(O,r),R=e=>{e.stopPropagation(),w&&w(e)},A=!(!1===a||!b)||a,M=A||w?re:d||"div",j=(0,u.Z)({},n,{component:M,disabled:h,size:_,color:s,iconColor:e.isValidElement(y)&&y.props.color||s,onDelete:!!w,clickable:A,variant:k}),I=(e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,r&&"disabled","size"+(0,ne.Z)(n),"color"+(0,ne.Z)(o),s&&"clickable",s&&"clickableColor"+(0,ne.Z)(o),a&&"deletable",a&&"deletableColor"+(0,ne.Z)(o),`${l}${(0,ne.Z)(o)}`],label:["label","label"+(0,ne.Z)(n)],avatar:["avatar","avatar"+(0,ne.Z)(n),"avatarColor"+(0,ne.Z)(o)],icon:["icon","icon"+(0,ne.Z)(n),"iconColor"+(0,ne.Z)(i)],deleteIcon:["deleteIcon","deleteIcon"+(0,ne.Z)(n),"deleteIconColor"+(0,ne.Z)(o),`deleteIcon${(0,ne.Z)(l)}Color${(0,ne.Z)(o)}`]};return(0,f.Z)(u,Hg,t)})(j),N=M===re?(0,u.Z)({component:d||"div",focusVisibleClassName:I.focusVisible},w&&{disableRipple:!0}):{};let L=null;w&&(L=p&&e.isValidElement(p)?e.cloneElement(p,{className:(0,c.Z)(p.props.className,I.deleteIcon),onClick:R}):(0,D.jsx)($g,{className:(0,c.Z)(I.deleteIcon),onClick:R}));let Z=null;o&&e.isValidElement(o)&&(Z=e.cloneElement(o,{className:(0,c.Z)(I.avatar,o.props.className)}));let F=null;return y&&e.isValidElement(y)&&(F=e.cloneElement(y,{className:(0,c.Z)(I.icon,y.props.className)})),(0,D.jsxs)(qg,(0,u.Z)({as:M,className:(0,c.Z)(I.root,i),disabled:!(!A||!h)||void 0,onClick:b,onKeyDown:e=>{e.currentTarget===e.target&&Xg(e)&&e.preventDefault(),x&&x(e)},onKeyUp:e=>{e.currentTarget===e.target&&(w&&Xg(e)?w(e):"Escape"===e.key&&O.current&&O.current.blur()),S&&S(e)},ref:T,tabIndex:C&&h?-1:E,ownerState:j},N,P,{children:[Z||F,(0,D.jsx)(Kg,{className:(0,c.Z)(I.label),ownerState:j,children:v}),L]}))})),Jg=(0,bh.Z)((0,D.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function ey(e){return(0,X.ZP)("MuiAutocomplete",e)}const ty=(0,L.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var ry,ny;const oy=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],iy=["ref"],ay=["key"],sy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=r;return[{["& ."+ty.tag]:t.tag},{["& ."+ty.tag]:t["tagSize"+(0,ne.Z)(s)]},{["& ."+ty.inputRoot]:t.inputRoot},{["& ."+ty.input]:t.input},{["& ."+ty.input]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>(0,u.Z)({[`&.${ty.focused} .${ty.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover ."+ty.clearIndicator]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{["& ."+ty.tag]:(0,u.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& ."+ty.inputRoot]:{flexWrap:"wrap",[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:30},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:56},["& ."+ty.input]:{width:0,minWidth:30}},["& ."+Xd.root]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Xd.root}.${zd.sizeSmall}`]:{["& ."+Xd.input]:{padding:"2px 4px 3px 0"}},["& ."+gf.root]:{padding:9,[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:39},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:65},["& ."+ty.input]:{padding:"7.5px 4px 7.5px 5px"},["& ."+ty.endAdornment]:{right:9}},[`& .${gf.root}.${zd.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& ."+ty.input]:{padding:"2.5px 4px 2.5px 8px"}},["& ."+of.root]:{paddingTop:19,paddingLeft:8,[`.${ty.hasPopupIcon}&, .${ty.hasClearIcon}&`]:{paddingRight:39},[`.${ty.hasPopupIcon}.${ty.hasClearIcon}&`]:{paddingRight:65},["& ."+of.input]:{padding:"7px 4px"},["& ."+ty.endAdornment]:{right:9}},[`& .${of.root}.${zd.sizeSmall}`]:{paddingBottom:1,["& ."+of.input]:{padding:"2.5px 4px"}},["& ."+zd.hiddenLabel]:{paddingTop:8},[`& .${of.root}.${zd.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,["& ."+ty.input]:{paddingTop:16,paddingBottom:17}},[`& .${of.root}.${zd.hiddenLabel}.${zd.sizeSmall}`]:{["& ."+ty.input]:{paddingTop:8,paddingBottom:9}},["& ."+ty.input]:(0,u.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),ly=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),uy=(0,h.ZP)(Fh,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),cy=(0,h.ZP)(Fh,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>(0,u.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),dy=(0,h.ZP)(as,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& ."+ty.option]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),fy=(0,h.ZP)(Ip,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,u.Z)({},e.typography.body1,{overflow:"auto"})),py=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),hy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),my=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& ."+ty.option]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},["&."+ty.focused]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["&."+ty.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+ty.focused]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},["&."+ty.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),gy=(0,h.ZP)(Ug,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),yy=(0,h.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& ."+ty.option]:{paddingLeft:24}}),vy=e.forwardRef((function(t,r){var n,o,i,a;const s=(0,m.Z)({props:t,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:p=!1,autoSelect:h=!1,blurOnSelect:y=!1,ChipProps:v,className:b,clearIcon:w=ry||(ry=(0,D.jsx)(Jg,{fontSize:"small"})),clearOnBlur:x=!s.freeSolo,clearOnEscape:S=!1,clearText:_="Clear",closeText:k="Close",componentsProps:E={},defaultValue:C=(s.multiple?[]:null),disableClearable:P=!1,disableCloseOnSelect:O=!1,disabled:T=!1,disabledItemsFocusable:R=!1,disableListWrap:A=!1,disablePortal:M=!1,filterSelectedOptions:j=!1,forcePopupIcon:I="auto",freeSolo:N=!1,fullWidth:L=!1,getLimitTagsText:Z=(e=>"+"+e),getOptionLabel:F,groupBy:B,handleHomeEndKeys:V=!s.freeSolo,includeInputInList:z=!1,limitTags:W=-1,ListboxComponent:U="ul",ListboxProps:$,loading:H=!1,loadingText:Y="Loading…",multiple:G=!1,noOptionsText:q="No options",openOnFocus:K=!1,openText:X="Open",PaperComponent:Q=Ip,PopperComponent:J=as,popupIcon:ee=ny||(ny=(0,D.jsx)(wh,{})),readOnly:te=!1,renderGroup:re,renderInput:oe,renderOption:ie,renderTags:ae,selectOnFocus:se=!s.freeSolo,size:le="medium",slotProps:ue={}}=s,ce=(0,l.Z)(s,oy),{getRootProps:de,getInputProps:fe,getInputLabelProps:pe,getPopupIndicatorProps:he,getClearProps:me,getTagProps:ge,getListboxProps:ye,getOptionProps:ve,value:be,dirty:we,expanded:xe,id:Se,popupOpen:_e,focused:ke,focusedTag:Ee,anchorEl:Ce,setAnchorEl:Pe,inputValue:Oe,groupedOptions:Te}=Fg((0,u.Z)({},s,{componentName:"Autocomplete"})),Re=!P&&!T&&we&&!te,Ae=(!N||!0===I)&&!1!==I,{onMouseDown:Me}=fe(),{ref:je}=null!=$?$:{},Ie=ye(),{ref:De}=Ie,Ne=(0,l.Z)(Ie,iy),Le=(0,g.Z)(De,je),Ze=F||(e=>{var t;return null!=(t=e.label)?t:e}),Fe=(0,u.Z)({},s,{disablePortal:M,expanded:xe,focused:ke,fullWidth:L,getOptionLabel:Ze,hasClearIcon:Re,hasPopupIcon:Ae,inputFocused:-1===Ee,popupOpen:_e,size:le}),Be=(e=>{const{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",n&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize"+(0,ne.Z)(c)],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,f.Z)(d,ey,t)})(Fe);let Ve;if(G&&be.length>0){const e=e=>(0,u.Z)({className:Be.tag,disabled:T},ge(e));Ve=ae?ae(be,e,Fe):be.map((t,r)=>(0,D.jsx)(Qg,(0,u.Z)({label:Ze(t),size:le},e({index:r}),v)))}if(W>-1&&Array.isArray(Ve)){const e=Ve.length-W;!ke&&e>0&&(Ve=Ve.splice(0,W),Ve.push((0,D.jsx)("span",{className:Be.tag,children:Z(e)},Ve.length)))}const ze=re||(e=>(0,D.jsxs)("li",{children:[(0,D.jsx)(gy,{className:Be.groupLabel,ownerState:Fe,component:"div",children:e.group}),(0,D.jsx)(yy,{className:Be.groupUl,ownerState:Fe,children:e.children})]},e.key)),We=ie||((e,t)=>{const{key:r}=e,n=(0,l.Z)(e,ay);return(0,D.jsx)("li",(0,u.Z)({},n,{children:Ze(t)}),r)}),Ue=(e,t)=>{const r=ve({option:e,index:t});return We((0,u.Z)({},r,{className:Be.option}),e,{selected:r["aria-selected"],index:t,inputValue:Oe},Fe)},$e=null!=(n=ue.clearIndicator)?n:E.clearIndicator,He=null!=(o=ue.paper)?o:E.paper,Ye=null!=(i=ue.popper)?i:E.popper,Ge=null!=(a=ue.popupIndicator)?a:E.popupIndicator;return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(sy,(0,u.Z)({ref:r,className:(0,c.Z)(Be.root,b),ownerState:Fe},de(ce),{children:oe({id:Se,disabled:T,fullWidth:!0,size:"small"===le?"small":void 0,InputLabelProps:pe(),InputProps:(0,u.Z)({ref:Pe,className:Be.inputRoot,startAdornment:Ve,onClick:e=>{e.target===e.currentTarget&&Me(e)}},(Re||Ae)&&{endAdornment:(0,D.jsxs)(ly,{className:Be.endAdornment,ownerState:Fe,children:[Re?(0,D.jsx)(uy,(0,u.Z)({},me(),{"aria-label":_,title:_,ownerState:Fe},$e,{className:(0,c.Z)(Be.clearIndicator,null==$e?void 0:$e.className),children:w})):null,Ae?(0,D.jsx)(cy,(0,u.Z)({},he(),{disabled:T,"aria-label":_e?k:X,title:_e?k:X,ownerState:Fe},Ge,{className:(0,c.Z)(Be.popupIndicator,null==Ge?void 0:Ge.className),children:ee})):null]})}),inputProps:(0,u.Z)({className:Be.input,disabled:T,readOnly:te},fe())})})),Ce?(0,D.jsx)(dy,(0,u.Z)({as:J,disablePortal:M,style:{width:Ce?Ce.clientWidth:null},ownerState:Fe,role:"presentation",anchorEl:Ce,open:_e},Ye,{className:(0,c.Z)(Be.popper,null==Ye?void 0:Ye.className),children:(0,D.jsxs)(fy,(0,u.Z)({ownerState:Fe,as:Q},He,{className:(0,c.Z)(Be.paper,null==He?void 0:He.className),children:[H&&0===Te.length?(0,D.jsx)(py,{className:Be.loading,ownerState:Fe,children:Y}):null,0!==Te.length||N||H?null:(0,D.jsx)(hy,{className:Be.noOptions,ownerState:Fe,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:q}),Te.length>0?(0,D.jsx)(my,(0,u.Z)({as:U,className:Be.listbox,ownerState:Fe},Ne,$,{ref:Le,children:Te.map((e,t)=>B?ze({key:e.key,group:e.group,children:e.options.map((t,r)=>Ue(t,e.index+r))}):Ue(e,t))})):null]}))})):null]})}));function by(){return(by=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function wy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xy(e,t)}(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 xy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Sy=function(t){var r,n=t.binding,o=Qh(n,!0),i=wy(function(t,r){return(0,e.useState)((function(){var e=t.getChoice()||null;return null===e?null:r.find((function(t){return t.original===e}))}))}(n,o),2),a=i[0],s=i[1],l=wy((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),u=l[0],c=l[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",u)}),[u]),(0,e.useEffect)((function(){t.context.clear=function(){s(null),c(!1)}}),[]);var d=t.context.view.getLabelIndex(n),f=tm(n,t.context);return e.createElement(e.Fragment,null,e.createElement(vy,{className:"rdformsSearch",disableClearable:!0,value:a,options:o,onChange:function(e,t){n.setChoice(t.original),s(t),c(!0===t.original.mismatch)},disabled:!!f,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label},getOptionDisabled:function(e){return!0===e.mismatch},filterSelectedOptions:!0,renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=d,e.createElement(jh,by({placeholder:n.getItem().getPlaceholder()},t,a&&a.mismatch?{error:!0}:{},{variant:fi.materialVariant}))},disablePortal:!0}),u&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var _y=o(42761),ky=o(33502);function Ey(t){return e.createElement(ky.Z,t,e.createElement("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),e.createElement("path",{fill:"currentColor",d:"M 24,6 H 21 V 9 H 19 V 6 H 16 V 4 h 3 V 1 h 2 v 3 h 3 z"}))}const Cy=function(t){var r=(0,e.useMemo)((function(){return t.context.chooser&&t.context.chooser.supportsInlineCreate&&t.context.chooser.supportsInlineCreate(t.binding)})),n=r?t.context.view.messages.edit_browse_create:t.context.view.messages.edit_browse;return t.context.chooser.show?e.createElement(Fh,{disabled:t.disabled,"aria-label":n,title:n,onClick:t.onClick},r?e.createElement(Ey,null):e.createElement(_y.Z,null)):""};function Py(){return(Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Oy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ty(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ty(e,t)}(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 Ty(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ry=function(t){var r,n=t.binding,o=Oy(Jh(n,!0),2),i=o[0],a=o[1],s=Oy((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),l=s[0],u=s[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]),(0,e.useEffect)((function(){t.context.clear=function(){a(null),u(!1)}}),[]);var c="",d="";i&&(c=i.description?Xo.getLocalizedValue(i.description).value:i.seeAlso||i.value,d=i.label?Xo.getLocalizedValue(i.label).value:i.value);var f=t.context.view.getLabelIndex(t.binding),p=tm(n,t.context);return e.createElement(e.Fragment,null,e.createElement(jh,Py({inputProps:{"aria-labelledby":f},className:"rdformsSearch",disabled:!0},p||i&&i.mismatch?{mismatch:!0}:{},{title:c,value:d,placeholder:n.getItem().getPlaceholder(),error:l,variant:fi.materialVariant})),e.createElement(Cy,Py({},t,{disabled:!!p,onClick:function(){fi.openChoiceSelector(t.binding,(function(e){t.binding.setChoice(e),a(e),u(!0===e.mismatch)}),t.field)}})),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};o(3255);var Ay,My=o(86024);function jy(){return(jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Iy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Dy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dy(e,t)}(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 Dy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ny=function(t){var r,n=t.binding,o=Iy((0,e.useState)([]),2),i=o[0],a=o[1],s=Iy(Jh(n,!0),2),l=s[0],u=s[1],c=Iy((0,e.useState)(""),2),d=c[0],f=c[1],p=Iy((0,e.useState)(!1),2),h=p[0],m=p[1],g=Iy((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),y=g[0],v=g[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",y)}),[y]),(0,e.useEffect)((function(){t.context.clear=function(){u(null),v(!1)}}),[]);(0,e.useEffect)((function(){var e=!0;return h&&(Ay&&clearTimeout(Ay),Ay=setTimeout((function(){Ay=void 0,t.context.chooser.search(n,d.trimStart()).then((function(t){e&&a(t.map(Xh))}))}),200)),function(){e=!1}}),[d,h]);var b=t.context.view.getLabelIndex(n),w=tm(n,t.context),x=l&&l.original.upgradeComponent;return e.createElement(e.Fragment,null,e.createElement(vy,{className:"rdformsSearch",disableClearable:!0,fullWidth:!1,value:l,options:i,filterOptions:function(e){return e},open:h,onOpen:function(){return m(!0)},onClose:function(){return m(!1)},onInputChange:function(e,t){return f(t)},onChange:function(e,t){null===t?(n.setChoice(null),u(null),v(!1)):(n.setChoice(t.original),u(t),v(!0===t.original.mismatch))},disabled:!!w,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label||e.value},getOptionDisabled:function(e){return!0===e.mismatch},renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=b,e.createElement(jh,jy({"aria-labelledby":b},t,l&&l.mismatch?{error:!0}:{},{placeholder:n.getItem().getPlaceholder(),onKeyDown:function(e){var t=e.key,r=e.keyCode;("Enter"===t||13===r)&&!h&&m(!0)},variant:fi.materialVariant}))},disablePortal:!0}),e.createElement(Cy,jy({},t,{onClick:function(){fi.openChoiceSelector(t.binding,(function(e){n.setChoice(e),u(Xh(e)),v(!0===e.mismatch)}),t.field)},disabled:!!w})),l&&l.original.upgrade&&e.createElement(e.Fragment,null,e.createElement(Fh,{"aria-label":t.context.view.messages.edit_upgrade,title:t.context.view.messages.edit_upgrade,disabled:!!w,onClick:function(){l.original.upgrade(t.binding,(function(e){u(Xh(e)),v(!0===e.mismatch)}),t.field)}},e.createElement(My.Z,null)),x),y&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var Ly=fi.editorRegistry;Ly.itemtype("choice").choices().check((function(e){var t=e.getChoices();return!(e.getHierarchyProperty()||e.hasStyle("tree"))&&1===e.getCardinality().max&&!e.hasStyle("dropDown")&&(null!=t&&t.length<5||e.hasStyle("verticalRadioButtons")||e.hasStyle("horizontalRadioButtons"))})).register((function(t,r,n){t.appendChild(e.createElement(gg,{key:r.getHash(),binding:r,context:n,field:t}))}));var Zy=function(t,r,n){t.appendChild(e.createElement(Mg,{key:r.getHash(),binding:r,context:n,field:t}))};Ly.itemtype("choice").choices().style("verticalCheckBoxes").register(Zy),Ly.itemtype("choice").choices().style("horizontalCheckBoxes").register(Zy),Ly.itemtype("choice").choices().register((function(t,r,n){t.appendChild(e.createElement(Sy,{key:r.getHash(),binding:r,context:n,field:t}))})),Ly.itemtype("choice").choices("none").register((function(t,r,n){n.chooser=fi.chooserRegistry.getComponent(r.getItem()),"function"==typeof n.chooser.search?t.appendChild(e.createElement(Ny,{key:r.getHash(),binding:r,context:n,field:t})):t.appendChild(e.createElement(Ry,{key:r.getHash(),binding:r,context:n,field:t}))}));var Fy=o(50336),By=o(44510),Vy=o(96540);function zy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wy(e,t)}(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 Wy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}fi.addExpandButton=function(e,t,r,n){console.log("Expand button not yet supported")};var Uy=function(e,t){var r=e.getItem(),n=!r.hasStyle("deprecated");if(t.view.isMultiValued(r)&&n)return!0;var o=e.getCardinalityTracker(),i=t.view.showNow(e.getItem(),[]);return n&&(o.isMin()||1===o.getCardinality()&&i&&o.isDepsOk())};fi.addRemoveButton=function(t,r,n){return function(){var o=r.getItem(),i=r.getCardinalityTracker(),a=zy((0,e.useState)((function(){return Uy(r,n)})),2),s=a[0],l=a[1];(0,e.useEffect)((function(){var e=i.addListener((function(){l(Uy(r,n))}));return function(){return i.removeListener(e)}}),[]);var u=(0,e.useMemo)((function(){return function(){if(Uy(r,n)||!i.isDepsOk()&&1===i.getCardinality()){n.clear&&n.clear();var e=r.getItem().getNodetype(),a=r.getItem().getType();if("group"===a){if(r.remove(),n.view.showNow(o,[])){var s=n.view.prepareBindings(o,[]);s.length>0&&n.view.addRow(t,s[0])}t.destroy()}else"choice"===a?r.setChoice(null):r.setValue(""),"LANGUAGE_LITERAL"!==e&&"PLAIN_LITERAL"!==e||r.setLanguage("")}else n.view.isMultiValued(o)?(r.getParent().getChildBindingsFor(o).slice(0).forEach((function(e){e.remove()})),t.parent.destroy()):(r.remove(),t.destroy())}})),c=tm(r,n),d=s?n.view.messages.edit_clear:n.view.messages.edit_remove;return e.createElement(Fh,{size:"small","aria-label":d,disabled:!!c,title:d,onClick:u},s?e.createElement(By.Z,{fontSize:"small"}):e.createElement(Fy.Z,{fontSize:"small"}))}},fi.addCreateChildButton=function(t,r,n,o){return function(){var r=n.getItem(),i=n.getCardinalityTracker(),a=zy((0,e.useState)(i.isMax()||!i.isDepsOk()||r.hasStyle("deprecated")),2),s=a[0],l=a[1];(0,e.useEffect)((function(){o.rememberParent=n.getParent();var e=i.addListener((function(){l(i.isMax()||!i.isDepsOk())}));return function(){return i.removeListener(e)}}),[]);var u=r.getEditLabelMap()||r.getLabelMap(),c=Xo.getLocalizedValue(u,o.view.getLocale()).value;c=null!=c&&""!==c?c.charAt(0).toUpperCase()+c.slice(1):"";var d=o.view.messages.edit_add;return e.createElement(pe,{className:"rdformsAddChild",onClick:function(){if(!i.isMax()){var e=zu(o.rememberParent,r);o.view.addRow(t,e)}},"aria-label":d,title:d,disabled:s,variant:"text",color:"primary",startIcon:e.createElement(Vy.Z,null)},c)}};var $y=o(43421);function Hy(t,r,n,o,i){const[a,s]=e.useState(()=>i&&n?n(t).matches:o?o(t).matches:r);return(0,Dd.Z)(()=>{let e=!0;if(!n)return;const r=n(t),o=()=>{e&&s(r.matches)};return o(),r.addListener(o),()=>{e=!1,r.removeListener(o)}},[t,n]),a}const Yy=t.useSyncExternalStore;function Gy(t,r,n,o,i){const a=e.useCallback(()=>r,[r]),s=e.useMemo(()=>{if(i&&n)return()=>n(t).matches;if(null!==o){const{matches:e}=o(t);return()=>e}return a},[a,t,o,i,n]),[l,u]=e.useMemo(()=>{if(null===n)return[a,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]},[a,n,t]);return Yy(u,l,s)}function qy(e,t={}){const r=(0,ns.Z)(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:i=(n?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=(0,$y.Z)({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"==typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==Yy?Gy:Hy)(l,o,i,a,s)}const Ky={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:t+" view is open, go to text input view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${null===t?"No time selected":"Selected time is "+r.format(t,"fullTime")}`,hoursClockNumberText:e=>e+" hours",minutesClockNumberText:e=>e+" minutes",secondsClockNumberText:e=>e+" seconds",openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose date, selected date is "+t.format(t.date(e),"fullDate"):"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose time, selected time is "+t.format(t.date(e),"fullTime"):"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Xy=Ky;Qy=Ky,(0,u.Z)({},Qy);var Qy;const Jy=e.createContext(null);function ev(t){const r=(0,m.Z)({props:t,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:o,dateFormats:i,dateLibInstance:a,locale:s,adapterLocale:l,localeText:c}=r;const d=e.useMemo(()=>new o({locale:null!=l?l:s,formats:i,instance:a}),[o,s,l,i,a]),f=e.useMemo(()=>({minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}),[d]),p=e.useMemo(()=>({utils:d,defaultDates:f,localeText:(0,u.Z)({},Xy,null!=c?c:{})}),[f,d,c]);return(0,D.jsx)(Jy.Provider,{value:p,children:n})}const tv=()=>{const t=e.useContext(Jy);if(null===t)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return t},rv=()=>tv().utils,nv=()=>tv().defaultDates,ov=()=>tv().localeText,iv=()=>{const t=rv();return e.useRef(t.date()).current},av=({date:e,disableFuture:t,disablePast:r,maxDate:n,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());r&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(n,s)&&(n=s);let l=e,u=e;for(a.isBefore(e,o)&&(l=a.date(o),u=null),a.isAfter(e,n)&&(u&&(u=a.date(n)),l=null);l||u;){if(l&&a.isAfter(l,n)&&(l=null),u&&a.isBefore(u,o)&&(u=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},sv=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},lv=(e,t,r)=>{if(null==t)return r;const n=e.date(t);return e.isValid(n)?n:r},uv=e=>1===e.length&&"year"===e[0],cv=e=>2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year");function dv(e,t){var r;const n=rv(),o=nv(),i=(0,m.Z)({props:e,name:t}),a=null!=(r=i.views)?r:["year","day"];return(0,u.Z)({openTo:"day",disableFuture:!1,disablePast:!1},((e,t)=>uv(e)?{inputFormat:t.formats.year}:cv(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(a,n),i,{views:a,minDate:lv(n,i.minDate,o.minDate),maxDate:lv(n,i.maxDate,o.maxDate)})}const fv={emptyValue:null,getTodayValue:e=>e.date(),parseInput:sv,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function pv(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=pv(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const hv=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=pv(e))&&(n&&(n+=" "),n+=t);return n};const mv=e.createContext();function gv(e){return(0,X.ZP)("MuiGrid",e)}const yv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],vv=(0,L.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-"+e),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-"+e),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-"+e),...yv.map(e=>"grid-xs-"+e),...yv.map(e=>"grid-sm-"+e),...yv.map(e=>"grid-md-"+e),...yv.map(e=>"grid-lg-"+e),...yv.map(e=>"grid-xl-"+e)]),bv=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function wv(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function xv({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(e=>{""===r&&0!==t[e]&&(r=e)});const n=Object.keys(e).sort((t,r)=>e[t]-e[r]);return n.slice(0,n.indexOf(r))}const Sv=(0,h.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r["spacing-xs-"+String(e)]];const n=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])}),n}(a,u,t));const d=[];return u.forEach(e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])}),[t.root,n&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t["direction-xs-"+String(o)],"wrap"!==s&&t["wrap-xs-"+String(s)],...d]}})(({ownerState:e})=>(0,u.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap}),(function({theme:e,ownerState:t}){const r=(0,$m.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,$m.k9)({theme:e},r,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > ."+vv.item]={maxWidth:"none"}),t})}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=(0,$m.P$)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=xv({breakpoints:e.breakpoints.values,values:t})),o=(0,$m.k9)({theme:e},t,(t,n)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:"-"+wv(i),["& > ."+vv.item]:{paddingTop:wv(i)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,["& > ."+vv.item]:{paddingTop:0}}})}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=(0,$m.P$)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=xv({breakpoints:e.breakpoints.values,values:t})),o=(0,$m.k9)({theme:e},t,(t,n)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${wv(i)})`,marginLeft:"-"+wv(i),["& > ."+vv.item]:{paddingLeft:wv(i)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,["& > ."+vv.item]:{paddingLeft:0}}})}return o}),(function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,o)=>{let i={};if(t[o]&&(r=t[o]),!r)return n;if(!0===r)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,$m.P$)({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${wv(r)})`;c={flexBasis:e,maxWidth:e}}}i=(0,u.Z)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(n,i):n[e.breakpoints.up(o)]=i,n},{})}));const _v=e=>{const{classes:t,container:r,direction:n,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-"+String(e)];const r=[];return t.forEach(t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}}),r}(i,l));const c=[];l.forEach(t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)});const d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&"direction-xs-"+String(n),"wrap"!==a&&"wrap-xs-"+String(a),...c]};return(0,f.Z)(d,gv,t)};const kv=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiGrid"}),{breakpoints:o}=vi(),i=Wm(n),{className:a,columns:s,columnSpacing:d,component:f="div",container:p=!1,direction:h="row",item:g=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:w=!1}=i,x=(0,l.Z)(i,bv),S=y||v,_=d||v,k=e.useContext(mv),E=p?s||12:k,C={},P=(0,u.Z)({},x);o.keys.forEach(e=>{null!=x[e]&&(C[e]=x[e],delete P[e])});const O=(0,u.Z)({},i,{columns:E,container:p,direction:h,item:g,rowSpacing:S,columnSpacing:_,wrap:b,zeroMinWidth:w,spacing:v},C,{breakpoints:o.keys}),T=_v(O);return(0,D.jsx)(mv.Provider,{value:E,children:(0,D.jsx)(Sv,(0,u.Z)({ownerState:O,className:(0,c.Z)(T.root,a),as:f,ref:r},P))})})),Ev=(0,bh.Z)((0,D.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Cv=(0,bh.Z)((0,D.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Pv=(0,bh.Z)((0,D.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Ov=(0,bh.Z)((0,D.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Tv=(0,bh.Z)((0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,D.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Rv=((0,bh.Z)((0,D.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,bh.Z)((0,D.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));(0,bh.Z)((0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,D.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Av(e){return(0,X.ZP)("MuiPickersToolbar",e)}const Mv=(0,L.Z)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),jv=(0,h.ZP)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Iv=(0,h.ZP)(kv,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>(0,u.Z)({flex:1},!e.isLandscape&&{alignItems:"center"})),Dv=(0,h.ZP)(Fh,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{["&."+Mv.penIconButtonLandscape]:t.penIconButtonLandscape},t.penIconButton]})({}),Nv=e=>"clock"===e?(0,D.jsx)(Tv,{color:"inherit"}):(0,D.jsx)(Ov,{color:"inherit"}),Lv=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPickersToolbar"}),{children:n,className:o,getMobileKeyboardInputViewButtonText:i,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:l="column",toggleMobileKeyboardView:u,toolbarTitle:c,viewType:d="calendar"}=r,p=r,h=ov(),g=(e=>{const{classes:t,isLandscape:r}=e,n={root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]};return(0,f.Z)(n,Av,t)})(p);return(0,D.jsxs)(jv,{ref:t,className:hv(g.root,o),ownerState:p,children:[(0,D.jsx)(ig,{color:"text.secondary",variant:"overline",children:c}),(0,D.jsxs)(Iv,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?l:"row",alignItems:a?"flex-start":"flex-end",children:[n,(0,D.jsx)(Dv,{onClick:u,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":i?i(s,d):h.inputModeToggleButtonAriaLabel(s,d),children:s?Nv(d):(0,D.jsx)(Rv,{color:"inherit"})})]})]})}));function Zv(e){return(0,X.ZP)("MuiDatePickerToolbar",e)}(0,L.Z)("MuiDatePickerToolbar",["root","title"]);const Fv=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Bv=(0,h.ZP)(Lv,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vv=(0,h.ZP)(ig,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>(0,u.Z)({},e.isLandscape&&{margin:"auto 16px auto auto"})),zv=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,toolbarFormat:c,toolbarPlaceholder:d="––",toolbarTitle:p,views:h}=n,g=(0,l.Z)(n,Fv),y=rv(),v=ov(),b=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],title:["title"]},Zv,t)})(n),w=null!=p?p:v.datePickerDefaultToolbarTitle,x=e.useMemo(()=>o?c?y.formatByString(o,c):uv(h)?y.format(o,"year"):cv(h)?y.format(o,"month"):/en/.test(y.getCurrentLocaleCode())?y.format(o,"normalDateWithWeekday"):y.format(o,"normalDate"):d,[o,c,d,y,h]),S=n;return(0,D.jsx)(Bv,(0,u.Z)({ref:r,toolbarTitle:w,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,isLandscape:i,className:b.root},g,{children:(0,D.jsx)(Vv,{variant:"h4",align:i?"left":"center",ownerState:S,className:b.title,children:x})}))})),Wv=e.createContext(null);function Uv(e){return(0,X.ZP)("MuiDialogActions",e)}(0,L.Z)("MuiDialogActions",["root","spacing"]);const $v=["className","disableSpacing"],Hv=(0,h.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,u.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Yv=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,i=(0,l.Z)(r,$v),a=(0,u.Z)({},r,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,f.Z)(n,Uv,t)})(a);return(0,D.jsx)(Hv,(0,u.Z)({className:(0,c.Z)(s.root,n),ownerState:a,ref:t},i))})),Gv=["onAccept","onClear","onCancel","onSetToday","actions"],qv=t=>{const{onAccept:r,onClear:n,onCancel:o,onSetToday:i,actions:a}=t,s=(0,l.Z)(t,Gv),c=e.useContext(Wv),d=ov(),f="function"==typeof a?a(c):a;if(null==f||0===f.length)return null;const p=null==f?void 0:f.map(e=>{switch(e){case"clear":return(0,D.jsx)(pe,{onClick:n,children:d.clearButtonLabel},e);case"cancel":return(0,D.jsx)(pe,{onClick:o,children:d.cancelButtonLabel},e);case"accept":return(0,D.jsx)(pe,{onClick:r,children:d.okButtonLabel},e);case"today":return(0,D.jsx)(pe,{onClick:i,children:d.todayButtonLabel},e);default:return null}});return(0,D.jsx)(Yv,(0,u.Z)({},s,{children:p}))};function Kv(e){return(0,X.ZP)("MuiPickersPopper",e)}(0,L.Z)("MuiPickersPopper",["root","paper"]);function Xv(e,t){return Array.isArray(t)?t.every(t=>-1!==e.indexOf(t)):-1!==e.indexOf(t)}const Qv=(e,t)=>r=>{"Enter"!==r.key&&" "!==r.key||(e(r),r.preventDefault(),r.stopPropagation()),t&&t(r)},Jv=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Jv(t.shadowRoot):t:null},eb=["onClick","onTouchStart"],tb=(0,h.ZP)(as,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),rb=(0,h.ZP)(Ip,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>(0,u.Z)({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"}));function nb(t){var r;const n=(0,m.Z)({props:t,name:"MuiPickersPopper"}),{anchorEl:o,children:i,containerRef:a=null,onBlur:s,onClose:c,onClear:d,onAccept:p,onCancel:h,onSetToday:v,open:b,PopperProps:w,role:x,TransitionComponent:S=Mi,TrapFocusProps:_,PaperProps:k={},components:E,componentsProps:C}=n;e.useEffect(()=>{function e(e){!b||"Escape"!==e.key&&"Esc"!==e.key||c()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,b]);const P=e.useRef(null);e.useEffect(()=>{"tooltip"!==x&&(b?P.current=Jv(document):P.current&&P.current instanceof HTMLElement&&setTimeout(()=>{P.current instanceof HTMLElement&&P.current.focus()}))},[b,x]);const[O,T,R]=function(t,r){const n=e.useRef(!1),o=e.useRef(!1),i=e.useRef(null),a=e.useRef(!1);e.useEffect(()=>{if(t)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0),a.current=!1};function e(){a.current=!0}},[t]);const s=(0,y.Z)(e=>{if(!a.current)return;const t=o.current;o.current=!1;const s=(0,Uf.Z)(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(n.current)return void(n.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||t||r(e)}),l=()=>{o.current=!0};return e.useEffect(()=>{if(t){const e=(0,Uf.Z)(i.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}},[t,s]),e.useEffect(()=>{if(t){const e=(0,Uf.Z)(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),o.current=!1}}},[t,s]),[i,l,l]}(b,null!=s?s:c),A=e.useRef(null),M=(0,g.Z)(A,a),j=(0,g.Z)(M,O),I=n,N=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Kv,t)})(I),{onClick:L,onTouchStart:Z}=k,F=(0,l.Z)(k,eb),B=null!=(r=null==E?void 0:E.ActionBar)?r:qv,V=(null==E?void 0:E.PaperContent)||e.Fragment;return(0,D.jsx)(tb,(0,u.Z)({transition:!0,role:x,open:b,anchorEl:o,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),c())},className:N.root},w,{children:({TransitionProps:e,placement:t})=>(0,D.jsx)(yp,(0,u.Z)({open:b,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===x,isEnabled:()=>!0},_,{children:(0,D.jsx)(S,(0,u.Z)({},e,{children:(0,D.jsx)(rb,(0,u.Z)({tabIndex:-1,elevation:8,ref:j,onClick:e=>{T(e),L&&L(e)},onTouchStart:e=>{R(e),Z&&Z(e)},ownerState:(0,u.Z)({},I,{placement:t}),className:N.paper},F,{children:(0,D.jsxs)(V,(0,u.Z)({},null==C?void 0:C.paperContent,{children:[i,(0,D.jsx)(B,(0,u.Z)({onAccept:p,onClear:d,onCancel:h,onSetToday:v,actions:[]},null==C?void 0:C.actionBar))]}))}))}))}))}))}function ob(t){const{children:r,DateInputProps:n,KeyboardDateInputComponent:o,onClear:i,onDismiss:a,onCancel:s,onAccept:l,onSetToday:c,open:d,PopperProps:f,PaperProps:p,TransitionComponent:h,components:m,componentsProps:y}=t,v=e.useRef(null),b=(0,g.Z)(n.inputRef,v);return(0,D.jsxs)(Wv.Provider,{value:"desktop",children:[(0,D.jsx)(o,(0,u.Z)({},n,{inputRef:b})),(0,D.jsx)(nb,{role:"dialog",open:d,anchorEl:v.current,TransitionComponent:h,PopperProps:f,PaperProps:p,onClose:a,onCancel:s,onClear:i,onAccept:l,onSetToday:c,components:m,componentsProps:y,children:r})]})}function ib({onChange:t,onViewChange:r,openTo:n,view:o,views:i}){var a,s;const[l,u]=(0,ls.Z)({name:"Picker",state:"view",controlled:o,default:n&&Xv(i,n)?n:i[0]}),c=null!=(a=i[i.indexOf(l)-1])?a:null,d=null!=(s=i[i.indexOf(l)+1])?s:null,f=e.useCallback(e=>{u(e),r&&r(e)},[u,r]),p=e.useCallback(()=>{d&&f(d)},[d,f]);return{handleChangeAndOpenNext:e.useCallback((e,r)=>{const n="finish"===r,o=n&&Boolean(d)?"partial":r;t(e,o),n&&p()},[d,t,p]),nextView:d,previousView:c,openNext:p,openView:l,setOpenView:f}}const ab={x:110,y:110},sb=ab.x-ab.x,lb=0-ab.y,ub=(e,t,r)=>{const n=t-ab.x,o=r-ab.y,i=Math.atan2(sb,lb)-Math.atan2(n,o);let a=i*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=n**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function cb(e){return(0,X.ZP)("MuiClockPointer",e)}(0,L.Z)("MuiClockPointer",["root","thumb"]);const db=["className","hasSelected","isInner","type","value"],fb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),pb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>(0,u.Z)({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:"16px solid "+e.palette.primary.main,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function hb(t){const r=(0,m.Z)({props:t,name:"MuiClockPointer"}),{className:n,isInner:o,type:i,value:a}=r,s=(0,l.Z)(r,db),c=e.useRef(i);e.useEffect(()=>{c.current=i},[i]);const d=(0,u.Z)({},r,{shouldAnimate:c.current!==i}),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],thumb:["thumb"]},cb,t)})(d);return(0,D.jsx)(fb,(0,u.Z)({style:(()=>{let e=360/("hours"===i?12:60)*a;return"hours"===i&&a>12&&(e-=360),{height:Math.round(220*(o?.26:.4)),transform:`rotateZ(${e}deg)`}})(),className:hv(n,p.root),ownerState:d},s,{children:(0,D.jsx)(pb,{ownerState:d,className:p.thumb})}))}function mb(e){return(0,X.ZP)("MuiClock",e)}(0,L.Z)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const gb=(0,h.ZP)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),yb=(0,h.ZP)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),vb=(0,h.ZP)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),bb=(0,h.ZP)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>(0,u.Z)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),wb=(0,h.ZP)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),xb=(0,h.ZP)(Fh,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},"am"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),Sb=(0,h.ZP)(Fh,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function _b(t){const r=(0,m.Z)({props:t,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:i,children:a,date:s,getClockLabelText:l,handleMeridiemChange:u,isTimeDisabled:c,meridiemMode:d,minutesStep:p=1,onChange:h,selectedId:g,type:y,value:v,disabled:b,readOnly:w,className:x}=r,S=r,_=rv(),k=e.useContext(Wv),E=e.useRef(!1),C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},mb,t)})(S),P=c(v,y),O=!n&&"hours"===y&&(v<1||v>12),T=(e,t)=>{b||w||c(e,y)||h(e,t)},R=(e,t)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const i="seconds"===y||"minutes"===y?((e,t,r=1)=>{const n=6*r;let{value:o}=ub(n,e,t);return o=o*r%60,o})(r,o,p):((e,t,r)=>{const{value:n,distance:o}=ub(30,e,t);let i=n||12;return r?i%=12:o<74&&(i+=12,i%=24),i})(r,o,Boolean(n));T(i,t)},A=e.useMemo(()=>"hours"===y||v%5==0,[y,v]),M="minutes"===y?p:1,j=e.useRef(null);(0,Ii.Z)(()=>{i&&j.current.focus()},[i]);return(0,D.jsxs)(gb,{className:hv(x,C.root),children:[(0,D.jsxs)(yb,{className:C.clock,children:[(0,D.jsx)(bb,{onTouchMove:e=>{E.current=!0,R(e,"shallow")},onTouchEnd:e=>{E.current&&(R(e,"finish"),E.current=!1)},onMouseUp:e=>{E.current&&(E.current=!1),R(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&R(e.nativeEvent,"shallow")},ownerState:{disabled:b},className:C.squareMask}),!P&&(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(wb,{className:C.pin}),s&&(0,D.jsx)(hb,{type:y,value:v,isInner:O,hasSelected:A})]}),(0,D.jsx)(vb,{"aria-activedescendant":g,"aria-label":l(y,s,_),ref:j,role:"listbox",onKeyDown:e=>{if(!E.current)switch(e.key){case"Home":T(0,"partial"),e.preventDefault();break;case"End":T("minutes"===y?59:23,"partial"),e.preventDefault();break;case"ArrowUp":T(v+M,"partial"),e.preventDefault();break;case"ArrowDown":T(v-M,"partial"),e.preventDefault()}},tabIndex:0,className:C.wrapper,children:a})]}),n&&("desktop"===k||o)&&(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(xb,{onClick:w?void 0:()=>u("am"),disabled:b||null===d,ownerState:S,className:C.amButton,children:(0,D.jsx)(ig,{variant:"caption",children:"AM"})}),(0,D.jsx)(Sb,{disabled:b||null===d,onClick:w?void 0:()=>u("pm"),ownerState:S,className:C.pmButton,children:(0,D.jsx)(ig,{variant:"caption",children:"PM"})})]})]})}function kb(e){return(0,X.ZP)("MuiClockNumber",e)}const Eb=(0,L.Z)("MuiClockNumber",["root","selected","disabled"]),Cb=["className","disabled","index","inner","label","selected"],Pb=(0,h.ZP)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Eb.disabled]:t.disabled},{["&."+Eb.selected]:t.selected}]})(({theme:e,ownerState:t})=>(0,u.Z)({height:36,width:36,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},["&."+Eb.selected]:{color:e.palette.primary.contrastText},["&."+Eb.disabled]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&(0,u.Z)({},e.typography.body2,{color:e.palette.text.secondary})));function Ob(e){const t=(0,m.Z)({props:e,name:"MuiClockNumber"}),{className:r,disabled:n,index:o,inner:i,label:a,selected:s}=t,c=(0,l.Z)(t,Cb),d=t,p=(e=>{const{classes:t,selected:r,disabled:n}=e,o={root:["root",r&&"selected",n&&"disabled"]};return(0,f.Z)(o,kb,t)})(d),h=o%12/12*Math.PI*2-Math.PI/2,g=91*(i?.65:1),y=Math.round(Math.cos(h)*g),v=Math.round(Math.sin(h)*g);return(0,D.jsx)(Pb,(0,u.Z)({className:hv(r,p.root),"aria-disabled":!!n||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${y}px, ${v+92}px`},ownerState:d},c,{children:a}))}const Tb=({ampm:e,date:t,getClockNumberText:r,isDisabled:n,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?12:23,u=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=i.formatNumber(a);const c=u(t);s.push((0,D.jsx)(Ob,{id:c?o:void 0,index:t,inner:l,selected:c,disabled:n(t),label:a,"aria-label":r(a)},t))}return s},Rb=({utils:e,value:t,isDisabled:r,getClockNumberText:n,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([e,i],a)=>{const s=e===t;return(0,D.jsx)(Ob,{label:i,id:s?o:void 0,index:a+1,inner:!1,disabled:r(e),selected:s,"aria-label":n(i)},e)})};function Ab(e){return(0,X.ZP)("MuiPickersArrowSwitcher",e)}(0,L.Z)("MuiPickersArrowSwitcher",["root","spacer","button"]);const Mb=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],jb=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Ib=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Db=(0,h.ZP)(Fh,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,u.Z)({},e.hidden&&{visibility:"hidden"})),Nb=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPickersArrowSwitcher"}),{children:n,className:o,components:i,componentsProps:a,isLeftDisabled:s,isLeftHidden:c,isRightDisabled:d,isRightHidden:p,leftArrowButtonText:h,onLeftClick:g,onRightClick:y,rightArrowButtonText:v}=r,b=(0,l.Z)(r,Mb),w="rtl"===vi().direction,x=(null==a?void 0:a.leftArrowButton)||{},S=(null==i?void 0:i.LeftArrowIcon)||Cv,_=(null==a?void 0:a.rightArrowButton)||{},k=(null==i?void 0:i.RightArrowIcon)||Pv,E=r,C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],spacer:["spacer"],button:["button"]},Ab,t)})(E);return(0,D.jsxs)(jb,(0,u.Z)({ref:t,className:hv(C.root,o),ownerState:E},b,{children:[(0,D.jsx)(Db,(0,u.Z)({as:null==i?void 0:i.LeftArrowButton,size:"small","aria-label":h,title:h,disabled:s,edge:"end",onClick:g},x,{className:hv(C.button,x.className),ownerState:(0,u.Z)({},E,x,{hidden:c}),children:w?(0,D.jsx)(k,{}):(0,D.jsx)(S,{})})),n?(0,D.jsx)(ig,{variant:"subtitle1",component:"span",children:n}):(0,D.jsx)(Ib,{className:C.spacer,ownerState:E}),(0,D.jsx)(Db,(0,u.Z)({as:null==i?void 0:i.RightArrowButton,size:"small","aria-label":v,title:v,edge:"start",disabled:d,onClick:y},_,{className:hv(C.button,_.className),ownerState:(0,u.Z)({},E,_,{hidden:p}),children:w?(0,D.jsx)(S,{}):(0,D.jsx)(k,{})}))]}))})),Lb=(e,t,r)=>{if(r){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},Zb=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),Fb=(e=!1,t)=>(r,n)=>e?t.isAfter(r,n):Zb(r,t)>Zb(n,t);function Bb(t,r,n){const o=rv();return{meridiemMode:((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(t,o),handleMeridiemChange:e.useCallback(e=>{const i=null==t?null:((e,t,r,n)=>{const o=Lb(n.getHours(e),t,r);return n.setHours(e,o)})(t,e,Boolean(r),o);n(i,"partial")},[r,t,n,o])}}function Vb(e){return(0,X.ZP)("MuiClockPicker",e)}(0,L.Z)("MuiClockPicker",["root","arrowSwitcher"]);const zb=(0,h.ZP)("div")({overflowX:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"}),Wb=(0,h.ZP)(zb,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Ub=(0,h.ZP)(Nb,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),$b=()=>{},Hb=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiClockPicker"}),{ampm:o=!1,ampmInClock:i=!1,autoFocus:a,components:s,componentsProps:l,date:c,disableIgnoringDatePartForTimeValidation:d,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y,leftArrowButtonText:v,maxTime:b,minTime:w,minutesStep:x=1,rightArrowButtonText:S,shouldDisableTime:_,showViewSwitcher:k,onChange:E,view:C,views:P=["hours","minutes"],openTo:O,onViewChange:T,className:R,disabled:A,readOnly:M}=n;$b({leftArrowButtonText:v,rightArrowButtonText:S,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y});const j=ov(),I=null!=v?v:j.openPreviousView,N=null!=S?S:j.openNextView,L=null!=p?p:j.clockLabelText,Z=null!=h?h:j.hoursClockNumberText,F=null!=g?g:j.minutesClockNumberText,B=null!=y?y:j.secondsClockNumberText,{openView:V,setOpenView:z,nextView:W,previousView:U,handleChangeAndOpenNext:$}=ib({view:C,views:P,openTo:O,onViewChange:T,onChange:E}),H=iv(),Y=rv(),G=e.useMemo(()=>c||Y.setSeconds(Y.setMinutes(Y.setHours(H,0),0),0),[c,H,Y]),{meridiemMode:q,handleMeridiemChange:K}=Bb(G,o,$),X=e.useCallback((e,t)=>{const r=Fb(d,Y),n=({start:e,end:t})=>(!w||!r(w,t))&&(!b||!r(e,b)),i=(e,r=1)=>e%r==0&&(!_||!_(e,t));switch(t){case"hours":{const t=Lb(e,q,o),r=Y.setHours(G,t);return!n({start:Y.setSeconds(Y.setMinutes(r,0),0),end:Y.setSeconds(Y.setMinutes(r,59),59)})||!i(t)}case"minutes":{const t=Y.setMinutes(G,e);return!n({start:Y.setSeconds(t,0),end:Y.setSeconds(t,59)})||!i(e,x)}case"seconds":{const t=Y.setSeconds(G,e);return!n({start:t,end:t})||!i(e)}default:throw new Error("not supported")}},[o,G,d,b,q,w,x,_,Y]),Q=(0,ss.Z)(),J=e.useMemo(()=>{switch(V){case"hours":{const e=(e,t)=>{const r=Lb(e,q,o);$(Y.setHours(G,r),t)};return{onChange:e,value:Y.getHours(G),children:Tb({date:c,utils:Y,ampm:o,onChange:e,getClockNumberText:Z,isDisabled:e=>A||X(e,"hours"),selectedId:Q})}}case"minutes":{const e=Y.getMinutes(G),t=(e,t)=>{$(Y.setMinutes(G,e),t)};return{value:e,onChange:t,children:Rb({utils:Y,value:e,onChange:t,getClockNumberText:F,isDisabled:e=>A||X(e,"minutes"),selectedId:Q})}}case"seconds":{const e=Y.getSeconds(G),t=(e,t)=>{$(Y.setSeconds(G,e),t)};return{value:e,onChange:t,children:Rb({utils:Y,value:e,onChange:t,getClockNumberText:B,isDisabled:e=>A||X(e,"seconds"),selectedId:Q})}}default:throw new Error("You must provide the type for ClockView")}},[V,Y,c,o,Z,F,B,q,$,G,X,Q,A]),ee=n,te=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],arrowSwitcher:["arrowSwitcher"]},Vb,t)})(ee);return(0,D.jsxs)(Wb,{ref:r,className:hv(te.root,R),ownerState:ee,children:[k&&(0,D.jsx)(Ub,{className:te.arrowSwitcher,leftArrowButtonText:I,rightArrowButtonText:N,components:s,componentsProps:l,onLeftClick:()=>z(U),onRightClick:()=>z(W),isLeftDisabled:!U,isRightDisabled:!W,ownerState:ee}),(0,D.jsx)(_b,(0,u.Z)({autoFocus:a,date:c,ampmInClock:i,type:V,ampm:o,getClockLabelText:L,minutesStep:x,isTimeDisabled:X,meridiemMode:q,handleMeridiemChange:K,selectedId:Q,disabled:A,readOnly:M},J))]})}));function Yb(e){return(0,X.ZP)("PrivatePickersMonth",e)}const Gb=(0,L.Z)("PrivatePickersMonth",["root","selected"]),qb=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],Kb=(0,h.ZP)(ig,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Gb.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},["&."+Gb.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Xb=()=>{},Qb=t=>{const{disabled:r,onSelect:n,selected:o,value:i,tabIndex:a,hasFocus:s,onFocus:c=Xb,onBlur:d=Xb}=t,p=(0,l.Z)(t,qb),h=(e=>{const{classes:t,selected:r}=e,n={root:["root",r&&"selected"]};return(0,f.Z)(n,Yb,t)})(t),m=()=>{n(i)},g=e.useRef(null);return(0,Dd.Z)(()=>{var e;s&&(null==(e=g.current)||e.focus())},[s]),(0,D.jsx)(Kb,(0,u.Z)({ref:g,component:"button",type:"button",className:h.root,tabIndex:a,onClick:m,onKeyDown:Qv(m),color:o?"primary":void 0,variant:o?"h5":"subtitle1",disabled:r,onFocus:e=>c(e,i),onBlur:e=>d(e,i)},p))};function Jb(e){return(0,X.ZP)("MuiMonthPicker",e)}(0,L.Z)("MuiMonthPicker",["root"]);const ew=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"];const tw=(0,h.ZP)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),rw=e.forwardRef((function(t,r){const n=rv(),o=iv(),i=function(e,t){const r=rv(),n=nv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disableFuture:!1,disablePast:!1},o,{minDate:lv(r,o.minDate,n.minDate),maxDate:lv(r,o.maxDate,n.maxDate)})}(t,"MuiMonthPicker"),{className:a,date:s,disabled:c,disableFuture:d,disablePast:p,maxDate:h,minDate:g,onChange:v,shouldDisableMonth:b,readOnly:w,disableHighlightToday:x,autoFocus:S=!1,onMonthFocus:_,hasFocus:k,onFocusedViewChange:E}=i,C=(0,l.Z)(i,ew),P=i,O=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Jb,t)})(P),T=(0,mi.Z)(),R=e.useMemo(()=>null!=s?s:n.startOfMonth(o),[o,n,s]),A=e.useMemo(()=>null!=s?n.getMonth(s):x?null:n.getMonth(o),[o,s,n,x]),[M,j]=e.useState(()=>A||n.getMonth(o)),I=e.useCallback(e=>{const t=n.startOfMonth(p&&n.isAfter(o,g)?o:g),r=n.startOfMonth(d&&n.isBefore(o,h)?o:h);return!!n.isBefore(e,t)||(!!n.isAfter(e,r)||!!b&&b(e))},[d,p,h,g,o,b,n]),N=e=>{if(w)return;const t=n.setMonth(R,e);v(t,"finish")},[L,Z]=(0,ls.Z)({name:"MonthPicker",state:"hasFocus",controlled:k,default:S}),F=e.useCallback(e=>{Z(e),E&&E(e)},[Z,E]),B=e.useCallback(e=>{I(n.setMonth(R,e))||(j(e),F(!0),_&&_(e))},[I,n,R,F,_]);e.useEffect(()=>{j(e=>null!==A&&e!==A?A:e)},[A]);const V=(0,y.Z)(e=>{switch(e.key){case"ArrowUp":B((12+M-3)%12),e.preventDefault();break;case"ArrowDown":B((12+M+3)%12),e.preventDefault();break;case"ArrowLeft":B((12+M+("ltr"===T.direction?-1:1))%12),e.preventDefault();break;case"ArrowRight":B((12+M+("ltr"===T.direction?1:-1))%12),e.preventDefault()}}),z=e.useCallback((e,t)=>{B(t)},[B]),W=e.useCallback(()=>{F(!1)},[F]),U=n.getMonth(o);return(0,D.jsx)(tw,(0,u.Z)({ref:r,className:hv(O.root,a),ownerState:P,onKeyDown:V},C,{children:n.getMonthArray(R).map(e=>{const t=n.getMonth(e),r=n.format(e,"monthShort"),o=c||I(e);return(0,D.jsx)(Qb,{value:t,selected:t===A,tabIndex:t!==M||o?-1:0,hasFocus:L&&t===M,onSelect:N,onFocus:z,onBlur:W,disabled:o,"aria-current":U===t?"date":void 0,children:r},r)})}))}));function nw(t,r,n){const{value:o,onError:i}=t,a=tv(),s=e.useRef(null),l=r({adapter:a,value:o,props:t});return e.useEffect(()=>{i&&!n(l,s.current)&&i(l,o),s.current=l},[n,i,s,l,o]),l}const ow=({props:e,value:t,adapter:r})=>{const n=r.utils.date(),o=r.utils.date(t),i=lv(r.utils,e.minDate,r.defaultDates.minDate),a=lv(r.utils,e.maxDate,r.defaultDates.maxDate);if(null===o)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case Boolean(e.shouldDisableDate&&e.shouldDisableDate(o)):return"shouldDisableDate";case Boolean(e.disableFuture&&r.utils.isAfterDay(o,n)):return"disableFuture";case Boolean(e.disablePast&&r.utils.isBeforeDay(o,n)):return"disablePast";case Boolean(i&&r.utils.isBeforeDay(o,i)):return"minDate";case Boolean(a&&r.utils.isAfterDay(o,a)):return"maxDate";default:return null}},iw=({shouldDisableDate:t,minDate:r,maxDate:n,disableFuture:o,disablePast:i})=>{const a=tv();return e.useCallback(e=>null!==ow({adapter:a,value:e,props:{shouldDisableDate:t,minDate:r,maxDate:n,disableFuture:o,disablePast:i}}),[a,t,r,n,o,i])},aw=(e,t)=>e===t,sw=e=>nw(e,ow,aw),lw=({date:t,defaultCalendarMonth:r,disableFuture:n,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:d})=>{var f;const p=iv(),h=rv(),m=e.useRef(((e,t,r)=>(n,o)=>{switch(o.type){case"changeMonth":return(0,u.Z)({},n,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,u.Z)({},n,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=n.focusedDay&&null!=o.focusedDay&&r.isSameDay(o.focusedDay,n.focusedDay))return n;const i=null!=o.focusedDay&&!t&&!r.isSameMonth(n.currentMonth,o.focusedDay);return(0,u.Z)({},n,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?r.startOfMonth(o.focusedDay):n.currentMonth,slideDirection:null!=o.focusedDay&&r.isAfterDay(o.focusedDay,n.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(c),i,h)).current,[g,y]=e.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:t||p,currentMonth:h.startOfMonth(null!=(f=null!=t?t:r)?f:p),slideDirection:"left"}),v=e.useCallback(e=>{y((0,u.Z)({type:"changeMonth"},e)),l&&l(e.newMonth)},[l]),b=e.useCallback(e=>{const t=null!=e?e:p;h.isSameMonth(t,g.currentMonth)||v({newMonth:h.startOfMonth(t),direction:h.isAfterDay(t,g.currentMonth)?"left":"right"})},[g.currentMonth,v,p,h]),w=iw({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:n,disablePast:o}),x=e.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),S=e.useCallback((e,t)=>{w(e)||y({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})},[w]);return{calendarState:g,changeMonth:b,changeFocusedDay:S,isDateDisabled:w,onMonthSwitchingAnimationEnd:x,handleChangeMonth:v}},uw=e=>(0,X.ZP)("MuiPickersFadeTransitionGroup",e),cw=((0,L.Z)("MuiPickersFadeTransitionGroup",["root"]),(0,h.ZP)(P,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function dw(e){const t=(0,m.Z)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:n,reduceAnimations:o,transKey:i}=t,a=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},uw,t)})(t);return o?r:(0,D.jsx)(cw,{className:hv(a.root,n),children:(0,D.jsx)(wp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:r},i)})}function fw(e){return(0,X.ZP)("MuiPickersDay",e)}const pw=(0,L.Z)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),hw=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],mw=({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),["&."+pw.selected]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+pw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+pw.disabled]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:"0 2px"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${pw.selected})`]:{border:"1px solid "+e.palette.text.secondary}}),gw=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},yw=(0,h.ZP)(re,{name:"MuiPickersDay",slot:"Root",overridesResolver:gw})(mw),vw=(0,h.ZP)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:gw})(({theme:e,ownerState:t})=>(0,u.Z)({},mw({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),bw=()=>{},ww=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:c=!1,disableMargin:d=!1,isAnimating:p,onClick:h,onDaySelect:y,onFocus:v=bw,onBlur:b=bw,onKeyDown:w=bw,onMouseDown:x,outsideCurrentMonth:S,selected:_=!1,showDaysOutsideCurrentMonth:k=!1,children:E,today:C=!1}=n,P=(0,l.Z)(n,hw),O=(0,u.Z)({},n,{autoFocus:o,disabled:s,disableHighlightToday:c,disableMargin:d,selected:_,showDaysOutsideCurrentMonth:k,today:C}),T=(e=>{const{selected:t,disableMargin:r,disableHighlightToday:n,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u={root:["root",t&&"selected",i&&"disabled",!r&&"dayWithMargin",!n&&o&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,f.Z)(u,fw,l)})(O),R=rv(),A=e.useRef(null),M=(0,g.Z)(A,r);(0,Ii.Z)(()=>{!o||s||p||S||A.current.focus()},[o,s,p,S]);return S&&!k?(0,D.jsx)(vw,{className:hv(T.root,T.hiddenDaySpacingFiller,i),ownerState:O,role:P.role}):(0,D.jsx)(yw,(0,u.Z)({className:hv(T.root,i),ownerState:O,ref:M,centerRipple:!0,disabled:s,tabIndex:_?0:-1,onKeyDown:e=>w(e,a),onFocus:e=>v(e,a),onBlur:e=>b(e,a),onClick:e=>{s||y(a,"finish"),S&&e.currentTarget.focus(),h&&h(e)},onMouseDown:e=>{x&&x(e),S&&e.preventDefault()}},P,{children:E||R.format(a,"dayOfMonth")}))})),xw=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,Sw=e.memo(ww,xw);function _w(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var kw=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=_w(r.className,n):r.setAttribute("class",_w(r.className&&r.className.baseVal||"",n)));var r,n}))},Ew=function(t){function r(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,r){var n=e.resolveArguments(t,r),o=n[0],i=n[1];e.removeClasses(o,"exit"),e.addClass(o,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,r)},e.onEntering=function(t,r){var n=e.resolveArguments(t,r),o=n[0],i=n[1]?"appear":"enter";e.addClass(o,i,"active"),e.props.onEntering&&e.props.onEntering(t,r)},e.onEntered=function(t,r){var n=e.resolveArguments(t,r),o=n[0],i=n[1]?"appear":"enter";e.removeClasses(o,i),e.addClass(o,i,"done"),e.props.onEntered&&e.props.onEntered(t,r)},e.onExit=function(t){var r=e.resolveArguments(t)[0];e.removeClasses(r,"appear"),e.removeClasses(r,"enter"),e.addClass(r,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var r=e.resolveArguments(t)[0];e.addClass(r,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var r=e.resolveArguments(t)[0];e.removeClasses(r,"exit"),e.addClass(r,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,r){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,r]},e.getClassNames=function(t){var r=e.props.classNames,n="string"==typeof r,o=n?""+(n&&r?r+"-":"")+t:r[t];return{baseClassName:o,activeClassName:n?o+"-active":r[t+"Active"],doneClassName:n?o+"-done":r[t+"Done"]}},e}w(r,t);var n=r.prototype;return n.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&xi(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))}(e,n))},n.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&kw(e,n),o&&kw(e,o),i&&kw(e,i)},n.render=function(){var t=this.props,r=(t.classNames,(0,l.Z)(t,["classNames"]));return e.createElement(ki,(0,u.Z)({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(e.Component);Ew.defaultProps={classNames:""},Ew.propTypes={};const Cw=Ew,Pw=e=>(0,X.ZP)("PrivatePickersSlideTransition",e),Ow=(0,L.Z)("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Tw=["children","className","reduceAnimations","slideDirection","transKey"],Rw=(0,h.ZP)(P,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{["."+Ow["slideEnter-left"]]:t["slideEnter-left"]},{["."+Ow["slideEnter-right"]]:t["slideEnter-right"]},{["."+Ow.slideEnterActive]:t.slideEnterActive},{["."+Ow.slideExit]:t.slideExit},{["."+Ow["slideExitActiveLeft-left"]]:t["slideExitActiveLeft-left"]},{["."+Ow["slideExitActiveLeft-right"]]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},["& ."+Ow["slideEnter-left"]]:{willChange:"transform",transform:"translate(100%)",zIndex:1},["& ."+Ow["slideEnter-right"]]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},["& ."+Ow.slideEnterActive]:{transform:"translate(0%)",transition:t},["& ."+Ow.slideExit]:{transform:"translate(0%)"},["& ."+Ow["slideExitActiveLeft-left"]]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},["& ."+Ow["slideExitActiveLeft-right"]]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Aw=e=>(0,X.ZP)("MuiDayPicker",e),Mw=((0,L.Z)("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),e=>e.charAt(0).toUpperCase()),jw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Iw=(0,h.ZP)(ig,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),Dw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Nw=(0,h.ZP)(t=>{const{children:r,className:n,reduceAnimations:o,slideDirection:i,transKey:a}=t,s=(0,l.Z)(t,Tw),c=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Pw,t)})(t);if(o)return(0,D.jsx)("div",{className:hv(c.root,n),children:r});const d={exit:Ow.slideExit,enterActive:Ow.slideEnterActive,enter:Ow["slideEnter-"+i],exitActive:Ow["slideExitActiveLeft-"+i]};return(0,D.jsx)(Rw,{className:hv(c.root,n),childFactory:t=>e.cloneElement(t,{classNames:d}),role:"presentation",children:(0,D.jsx)(Cw,(0,u.Z)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:d},s,{children:r}),a)})},{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Lw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Zw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function Fw(t){const r=iv(),n=rv(),o=(0,m.Z)({props:t,name:"MuiDayPicker"}),i=(e=>{const{classes:t}=e;return(0,f.Z)({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Aw,t)})(o),{onFocusedDayChange:a,className:s,currentMonth:l,selectedDays:c,disabled:d,disableHighlightToday:p,focusedDay:h,isMonthSwitchingAnimating:g,loading:y,onSelectedDaysChange:v,onMonthSwitchingAnimationEnd:b,readOnly:w,reduceAnimations:x,renderDay:S,renderLoading:_=(()=>(0,D.jsx)("span",{children:"..."})),showDaysOutsideCurrentMonth:k,slideDirection:E,TransitionProps:C,disablePast:P,disableFuture:O,minDate:T,maxDate:R,shouldDisableDate:A,dayOfWeekFormatter:M=Mw,hasFocus:j,onFocusedViewChange:I,gridLabelId:N}=o,L=iw({shouldDisableDate:A,minDate:T,maxDate:R,disablePast:P,disableFuture:O}),[Z,F]=e.useState(()=>h||r),B=e.useCallback(e=>{I&&I(e)},[I]),V=e.useCallback((e,t="finish")=>{w||v(e,t)},[v,w]),z=e.useCallback(e=>{L(e)||(a(e),F(e),B(!0))},[L,a,B]),W=vi();function U(e,t){switch(e.key){case"ArrowUp":z(n.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":z(n.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const r=n.addDays(t,"ltr"===W.direction?-1:1),o="ltr"===W.direction?n.getPreviousMonth(t):n.getNextMonth(t),i=av({utils:n,date:r,minDate:"ltr"===W.direction?n.startOfMonth(o):r,maxDate:"ltr"===W.direction?r:n.endOfMonth(o),isDateDisabled:L});z(i||r),e.preventDefault();break}case"ArrowRight":{const r=n.addDays(t,"ltr"===W.direction?1:-1),o="ltr"===W.direction?n.getNextMonth(t):n.getPreviousMonth(t),i=av({utils:n,date:r,minDate:"ltr"===W.direction?r:n.startOfMonth(o),maxDate:"ltr"===W.direction?n.endOfMonth(o):r,isDateDisabled:L});z(i||r),e.preventDefault();break}case"Home":z(n.startOfWeek(t)),e.preventDefault();break;case"End":z(n.endOfWeek(t)),e.preventDefault();break;case"PageUp":z(n.getNextMonth(t)),e.preventDefault();break;case"PageDown":z(n.getPreviousMonth(t)),e.preventDefault()}}function $(e,t){z(t)}function H(e,t){j&&n.isSameDay(Z,t)&&B(!1)}const Y=n.getMonth(l),G=c.filter(e=>!!e).map(e=>n.startOfDay(e)),q=Y,K=e.useMemo(()=>e.createRef(),[q]),X=n.startOfWeek(r),Q=e.useMemo(()=>{const e=n.startOfMonth(l),t=n.endOfMonth(l);return L(Z)||n.isAfterDay(Z,t)||n.isBeforeDay(Z,e)?av({utils:n,date:Z,minDate:e,maxDate:t,disablePast:P,disableFuture:O,isDateDisabled:L}):Z},[l,O,P,Z,L,n]);return(0,D.jsxs)("div",{role:"grid","aria-labelledby":N,children:[(0,D.jsx)(jw,{role:"row",className:i.header,children:n.getWeekdays().map((e,t)=>{var r;return(0,D.jsx)(Iw,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(X,t),"weekday"),className:i.weekDayLabel,children:null!=(r=null==M?void 0:M(e))?r:e},e+t.toString())})}),y?(0,D.jsx)(Dw,{className:i.loadingContainer,children:_()}):(0,D.jsx)(Nw,(0,u.Z)({transKey:q,onExited:b,reduceAnimations:x,slideDirection:E,className:hv(s,i.slideTransition)},C,{nodeRef:K,children:(0,D.jsx)(Lw,{ref:K,role:"rowgroup",className:i.monthContainer,children:n.getWeekArray(l).map(t=>(0,D.jsx)(Zw,{role:"row",className:i.weekContainer,children:t.map(t=>{const o=null!==Q&&n.isSameDay(t,Q),i=G.some(e=>n.isSameDay(e,t)),a=n.isSameDay(t,r),s={key:null==t?void 0:t.toString(),day:t,isAnimating:g,disabled:d||L(t),autoFocus:j&&o,today:a,outsideCurrentMonth:n.getMonth(t)!==Y,selected:i,disableHighlightToday:p,showDaysOutsideCurrentMonth:k,onKeyDown:U,onFocus:$,onBlur:H,onDaySelect:V,tabIndex:o?0:-1,role:"gridcell","aria-selected":i};return a&&(s["aria-current"]="date"),S?S(t,G,s):(0,e.createElement)(Sw,(0,u.Z)({},s,{key:s.key}))})},"week-"+t[0]))})}))]})}const Bw=e=>(0,X.ZP)("MuiPickersCalendarHeader",e),Vw=((0,L.Z)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30})),zw=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>(0,u.Z)({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Ww=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Uw=(0,h.ZP)(Fh,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),$w=(0,h.ZP)(Ev,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>(0,u.Z)({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},"year"===t.openView&&{transform:"rotate(180deg)"})),Hw=()=>{};function Yw(t){const r=(0,m.Z)({props:t,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:o={},currentMonth:i,disabled:a,disableFuture:s,disablePast:l,getViewSwitchingButtonText:c,leftArrowButtonText:d,maxDate:p,minDate:h,onMonthChange:g,onViewChange:y,openView:v,reduceAnimations:b,rightArrowButtonText:w,views:x,labelId:S}=r;Hw({leftArrowButtonText:d,rightArrowButtonText:w,getViewSwitchingButtonText:c});const _=ov(),k=null!=d?d:_.previousMonth,E=null!=w?w:_.nextMonth,C=null!=c?c:_.calendarViewSwitchingButtonAriaLabel,P=rv(),O=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Bw,t)})(r),T=o.switchViewButton||{},R=function(t,{disableFuture:r,maxDate:n}){const o=rv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(r&&o.isBefore(e,n)?e:n);return!o.isAfter(i,t)},[r,n,t,o])}(i,{disableFuture:s,maxDate:p}),A=function(t,{disablePast:r,minDate:n}){const o=rv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(r&&o.isAfter(e,n)?e:n);return!o.isBefore(i,t)},[r,n,t,o])}(i,{disablePast:l,minDate:h});if(1===x.length&&"year"===x[0])return null;const M=r;return(0,D.jsxs)(Vw,{ownerState:M,className:O.root,children:[(0,D.jsxs)(zw,{role:"presentation",onClick:()=>{if(1!==x.length&&y&&!a)if(2===x.length)y(x.find(e=>e!==v)||x[0]);else{const e=0!==x.indexOf(v)?0:1;y(x[e])}},ownerState:M,"aria-live":"polite",className:O.labelContainer,children:[(0,D.jsx)(dw,{reduceAnimations:b,transKey:P.format(i,"monthAndYear"),children:(0,D.jsx)(Ww,{id:S,ownerState:M,className:O.label,children:P.format(i,"monthAndYear")})}),x.length>1&&!a&&(0,D.jsx)(Uw,(0,u.Z)({size:"small",as:n.SwitchViewButton,"aria-label":C(v),className:O.switchViewButton},T,{children:(0,D.jsx)($w,{as:n.SwitchViewIcon,ownerState:M,className:O.switchViewIcon})}))]}),(0,D.jsx)(wp,{in:"day"===v,children:(0,D.jsx)(Nb,{leftArrowButtonText:k,rightArrowButtonText:E,components:n,componentsProps:o,onLeftClick:()=>g(P.getPreviousMonth(i),"right"),onRightClick:()=>g(P.getNextMonth(i),"left"),isLeftDisabled:A,isRightDisabled:R})})]})}function Gw(e){return(0,X.ZP)("PrivatePickersYear",e)}const qw=(0,L.Z)("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Kw=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Xw=(0,h.ZP)("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+qw.modeDesktop]:t.modeDesktop},{["&."+qw.modeMobile]:t.modeMobile}]})(({ownerState:e})=>(0,u.Z)({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:"25%"})),Qw=(0,h.ZP)("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{["&."+qw.disabled]:t.disabled},{["&."+qw.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},["&."+qw.disabled]:{color:e.palette.text.secondary},["&."+qw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Jw=()=>{},ex=e.forwardRef((function(t,r){const{autoFocus:n,className:o,children:i,disabled:a,onClick:s,onKeyDown:c,value:d,tabIndex:p,onFocus:h=Jw,onBlur:m=Jw}=t,y=(0,l.Z)(t,Kw),v=e.useRef(null),b=(0,g.Z)(v,r),w=e.useContext(Wv),x=(0,u.Z)({},t,{wrapperVariant:w}),S=(e=>{const{wrapperVariant:t,disabled:r,selected:n,classes:o}=e,i={root:["root",t&&"mode"+(0,ne.Z)(t)],yearButton:["yearButton",r&&"disabled",n&&"selected"]};return(0,f.Z)(i,Gw,o)})(x);return e.useEffect(()=>{n&&v.current.focus()},[n]),(0,D.jsx)(Xw,{className:hv(S.root,o),ownerState:x,children:(0,D.jsx)(Qw,(0,u.Z)({ref:b,disabled:a,type:"button",tabIndex:a?-1:p,onClick:e=>s(e,d),onKeyDown:e=>c(e,d),onFocus:e=>h(e,d),onBlur:e=>m(e,d),className:S.yearButton,ownerState:x},y,{children:i}))})}));function tx(e){return(0,X.ZP)("MuiYearPicker",e)}(0,L.Z)("MuiYearPicker",["root"]);const rx=(0,h.ZP)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),nx=e.forwardRef((function(t,r){const n=iv(),o=vi(),i=rv(),a=function(e,t){const r=rv(),n=nv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disablePast:!1,disableFuture:!1},o,{minDate:lv(r,o.minDate,n.minDate),maxDate:lv(r,o.maxDate,n.maxDate)})}(t,"MuiYearPicker"),{autoFocus:s,className:l,date:c,disabled:d,disableFuture:p,disablePast:h,maxDate:y,minDate:v,onChange:b,readOnly:w,shouldDisableYear:x,disableHighlightToday:S,onYearFocus:_,hasFocus:k,onFocusedViewChange:E}=a,C=a,P=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},tx,t)})(C),O=e.useMemo(()=>null!=c?c:i.startOfYear(n),[n,i,c]),T=e.useMemo(()=>null!=c?i.getYear(c):S?null:i.getYear(n),[n,c,i,S]),R=e.useContext(Wv),A=e.useRef(null),[M,j]=e.useState(()=>T||i.getYear(n)),[I,N]=(0,jg.Z)({name:"YearPicker",state:"hasFocus",controlled:k,default:s}),L=e.useCallback(e=>{N(e),E&&E(e)},[N,E]),Z=e.useCallback(e=>!(!h||!i.isBeforeYear(e,n))||(!(!p||!i.isAfterYear(e,n))||(!(!v||!i.isBeforeYear(e,v))||(!(!y||!i.isAfterYear(e,y))||!(!x||!x(e))))),[p,h,y,v,n,x,i]),F=(e,t,r="finish")=>{if(w)return;const n=i.setYear(O,t);b(n,r)},B=e.useCallback(e=>{Z(i.setYear(O,e))||(j(e),L(!0),null==_||_(e))},[Z,i,O,L,_]);e.useEffect(()=>{j(e=>null!==T&&e!==T?T:e)},[T]);const V="desktop"===R?4:3,z=e.useCallback((e,t)=>{switch(e.key){case"ArrowUp":B(t-V),e.preventDefault();break;case"ArrowDown":B(t+V),e.preventDefault();break;case"ArrowLeft":B(t+("ltr"===o.direction?-1:1)),e.preventDefault();break;case"ArrowRight":B(t+("ltr"===o.direction?1:-1)),e.preventDefault()}},[B,o.direction,V]),W=e.useCallback((e,t)=>{B(t)},[B]),U=e.useCallback((e,t)=>{M===t&&L(!1)},[M,L]),$=i.getYear(n),H=e.useRef(null),Y=(0,g.Z)(r,H);return e.useEffect(()=>{if(s||null===H.current)return;const e=H.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,r=e.offsetTop,n=H.current.clientHeight,o=H.current.scrollTop,i=r+t;t>n||r<o||(H.current.scrollTop=i-n/2-t/2)},[s]),(0,D.jsx)(rx,{ref:Y,className:hv(P.root,l),ownerState:C,children:i.getYearRange(v,y).map(e=>{const t=i.getYear(e),r=t===T;return(0,D.jsx)(ex,{selected:r,value:t,onClick:F,onKeyDown:z,autoFocus:I&&t===M,ref:r?A:void 0,disabled:d||Z(e),tabIndex:t===M?0:-1,onFocus:W,onBlur:U,"aria-current":$===t?"date":void 0,children:i.format(e,"year")},i.format(e,"year"))})})})),ox="undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),ix=e=>(0,X.ZP)("MuiCalendarPicker",e),ax=((0,L.Z)("MuiCalendarPicker",["root","viewTransitionContainer"]),["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"]);const sx=(0,h.ZP)(zb,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),lx=(0,h.ZP)(dw,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),ux=e.forwardRef((function(t,r){const n=rv(),o=(0,ss.Z)(),i=function(e,t){const r=rv(),n=nv(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:ox,renderLoading:()=>(0,D.jsx)("span",{children:"..."})},o,{minDate:lv(r,o.minDate,n.minDate),maxDate:lv(r,o.maxDate,n.maxDate)})}(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:s,date:c,disableFuture:d,disablePast:p,defaultCalendarMonth:h,onChange:g,onYearChange:v,onMonthChange:b,reduceAnimations:w,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:_,view:k,views:E,openTo:C,className:P,disabled:O,readOnly:T,minDate:R,maxDate:A,disableHighlightToday:M,focusedView:j,onFocusedViewChange:I}=i,N=(0,l.Z)(i,ax),{openView:L,setOpenView:Z,openNext:F}=ib({view:k,views:E,openTo:C,onChange:g,onViewChange:s}),{calendarState:B,changeFocusedDay:V,changeMonth:z,handleChangeMonth:W,isDateDisabled:U,onMonthSwitchingAnimationEnd:$}=lw({date:c,defaultCalendarMonth:h,reduceAnimations:w,onMonthChange:b,minDate:R,maxDate:A,shouldDisableDate:x,disablePast:p,disableFuture:d}),H=e.useCallback((e,t)=>{const r=n.startOfMonth(e),o=n.endOfMonth(e),i=U(e)?av({utils:n,date:e,minDate:n.isBefore(R,r)?r:R,maxDate:n.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==b||b(r)):(F(),z(r)),V(i,!0)},[V,d,p,U,A,R,g,b,z,F,n]),Y=e.useCallback((e,t)=>{const r=n.startOfYear(e),o=n.endOfYear(e),i=U(e)?av({utils:n,date:e,minDate:n.isBefore(R,r)?r:R,maxDate:n.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==v||v(i)):(F(),z(r)),V(i,!0)},[V,d,p,U,A,R,g,v,F,n,z]),G=e.useCallback((e,t)=>g(c&&e?n.mergeDateAndTime(e,c):e,t),[n,c,g]);e.useEffect(()=>{c&&z(c)},[c]);const q=i,K=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ix,t)})(q),X={disablePast:p,disableFuture:d,maxDate:A,minDate:R},Q=O&&c||R,J=O&&c||A,ee={disableHighlightToday:M,readOnly:T,disabled:O},te=o+"-grid-label",[re,ne]=(0,ls.Z)({name:"DayPicker",state:"focusedView",controlled:j,default:a?L:null}),oe=null!==re,ie=(0,y.Z)(e=>t=>{I?I(e)(t):ne(t?e:t=>t===e?null:t)}),ae=e.useRef(L);return e.useEffect(()=>{ae.current!==L&&(ae.current=L,ie(L)(!0))},[L,ie]),(0,D.jsxs)(sx,{ref:r,className:hv(K.root,P),ownerState:q,children:[(0,D.jsx)(Yw,(0,u.Z)({},N,{views:E,openView:L,currentMonth:B.currentMonth,onViewChange:Z,onMonthChange:(e,t)=>W({newMonth:e,direction:t}),minDate:Q,maxDate:J,disabled:O,disablePast:p,disableFuture:d,reduceAnimations:w,labelId:te})),(0,D.jsx)(lx,{reduceAnimations:w,className:K.viewTransitionContainer,transKey:L,ownerState:q,children:(0,D.jsxs)("div",{children:["year"===L&&(0,D.jsx)(nx,(0,u.Z)({},N,X,ee,{autoFocus:a,date:c,onChange:Y,shouldDisableYear:_,hasFocus:oe,onFocusedViewChange:ie("year")})),"month"===L&&(0,D.jsx)(rw,(0,u.Z)({},X,ee,{autoFocus:a,hasFocus:oe,className:P,date:c,onChange:H,shouldDisableMonth:S,onFocusedViewChange:ie("month")})),"day"===L&&(0,D.jsx)(Fw,(0,u.Z)({},N,B,X,ee,{autoFocus:a,onMonthSwitchingAnimationEnd:$,onFocusedDayChange:V,reduceAnimations:w,selectedDays:[c],onSelectedDaysChange:G,shouldDisableDate:x,hasFocus:oe,onFocusedViewChange:ie("day"),gridLabelId:te}))]})})]})}));function cx(e){return(0,X.ZP)("MuiInputAdornment",e)}const dx=(0,L.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var fx;const px=["children","className","component","disablePointerEvents","disableTypography","position","variant"],hx=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position"+(0,ne.Z)(r.position)],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${dx.positionStart}&:not(.${dx.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),mx=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:d=!1,position:p,variant:h}=n,g=(0,l.Z)(n,px),y=Id()||{};let v=h;h&&y.variant,y&&!v&&(v=y.variant);const b=(0,u.Z)({},n,{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:s,position:p,variant:v}),w=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e,s={root:["root",r&&"disablePointerEvents",o&&"position"+(0,ne.Z)(o),a,n&&"hiddenLabel",i&&"size"+(0,ne.Z)(i)]};return(0,f.Z)(s,cx,t)})(b);return(0,D.jsx)(jd.Provider,{value:null,children:(0,D.jsx)(hx,(0,u.Z)({as:a,ownerState:b,className:(0,c.Z)(w.root,i),ref:r},g,{children:"string"!=typeof o||d?(0,D.jsxs)(e.Fragment,{children:["start"===p?fx||(fx=(0,D.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,D.jsx)(ig,{color:"text.secondary",children:o})}))})})),gx=t=>{const[,r]=(0,e.useReducer)(e=>e+1,0),n=(0,e.useRef)(null),{replace:o,append:i}=t,a=o?o(t.format(t.value)):t.format(t.value),s=(0,e.useRef)(!1);return(0,e.useLayoutEffect)(()=>{if(null==n.current)return;let[e,s,l,u,c]=n.current;n.current=null;const d=u&&c,f=e.slice(s.selectionStart).search(t.accept||/\d/g),p=-1!==f?f:0,h=e=>(e.match(t.accept||/\d/g)||[]).join(""),m=h(e.substr(0,s.selectionStart)),g=e=>{let t=0,r=0;for(let n=0;n!==m.length;++n){let o=e.indexOf(m[n],t)+1,i=h(e).indexOf(m[n],r)+1;i-r>1&&(o=t,i=r),r=Math.max(i,r),t=Math.max(t,o)}return t};if(!0===t.mask&&l&&!c){let t=g(e);const r=h(e.substr(t))[0];t=e.indexOf(r,t),e=`${e.substr(0,t)}${e.substr(t+1)}`}let y=t.format(e);null==i||s.selectionStart!==e.length||c||(l?y=i(y):""===h(y.slice(-1))&&(y=y.slice(0,-1)));const v=o?o(y):y;return a===v?r():t.onChange(v),()=>{let e=g(y);if(null!=t.mask&&(l||u&&!d))for(;y[e]&&""===h(y[e]);)e+=1;s.selectionStart=s.selectionEnd=e+(d?1+p:0)}}),(0,e.useEffect)(()=>{const e=e=>{"Delete"===e.code&&(s.current=!0)},t=e=>{"Delete"===e.code&&(s.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),{value:null!=n.current?n.current[0]:a,onChange:e=>{const o=e.target.value;n.current=[o,e.target,o.length>a.length,s.current,a===t.format(o)],r()}}},yx=(e,t,r)=>{const n=e.date(t);return null===t?"":e.isValid(n)?e.formatByString(n,r):""};function vx(e,t,r,n){if(!e)return!1;const o=n.formatByString(n.date("2019-01-01T09:00:00.000"),t).replace(r,"_"),i=n.formatByString(n.date("2019-11-21T22:30:00.000"),t).replace(r,"_"),a=i===o&&e===i;return!a&&n.lib,a}const bx=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],wx=e.forwardRef((function(t,r){const{className:n,components:o={},disableOpenPicker:i,getOpenDialogAriaText:a,InputAdornmentProps:s,InputProps:c,inputRef:d,openPicker:f,OpenPickerButtonProps:p,renderInput:h}=t,m=(0,l.Z)(t,bx),g=ov(),y=null!=a?a:g.openDatePickerDialogue,v=rv(),b=(({acceptRegex:t=/[\d]/gi,disabled:r,disableMaskedInput:n,ignoreInvalidInputs:o,inputFormat:i,inputProps:a,label:s,mask:l,onChange:c,rawValue:d,readOnly:f,rifmFormatter:p,TextFieldProps:h,validationError:m})=>{const g=rv(),y=g.getFormatHelperText(i),{shouldUseMaskedInput:v,maskToUse:b}=e.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const e=function(e,t,r,n){if(e)return e;const o=n.formatByString(n.date("2019-01-01T09:00:00.000"),t).replace(r,"_");return o===n.formatByString(n.date("2019-11-21T22:30:00.000"),t).replace(r,"_")?o:""}(l,i,t,g);return{shouldUseMaskedInput:vx(e,i,t,g),maskToUse:e}},[t,n,i,l,g]),w=e.useMemo(()=>v&&b?((e,t)=>r=>{let n=0;return r.split("").map((o,i)=>{if(t.lastIndex=0,n>e.length-1)return"";const a=e[n],s=e[n+1],l=t.test(o)?o:"",u="_"===a?l:a+l;n+=u.length;return i===r.length-1&&s&&"_"!==s?u?u+s:"":u}).join("")})(b,t):e=>e,[t,b,v]),x=null===d?null:g.date(d),[S,_]=e.useState(x),[k,E]=e.useState(yx(g,d,i)),C=e.useRef(),P=e.useRef(g.locale),O=e.useRef(i);e.useEffect(()=>{const e=d!==C.current,t=g.locale!==P.current,r=i!==O.current;if(C.current=d,P.current=g.locale,O.current=i,!e&&!t&&!r)return;const n=null===d?null:g.date(d),o=null===d||g.isValid(n);let a=null===S&&null===n;if(null!==S&&null!==n){const e=g.isEqual(S,n);if(e)a=!0;else{const t=Math.abs(g.getDiff(S,n));a=0===t?e:t<1e3}}if(!t&&!r&&(!o||a))return;const s=yx(g,d,i);_(n),E(s)},[g,d,i,S]);const T=e=>{const t=""===e||e===l?"":e;E(t);const r=null===t?null:g.parse(t,i);o&&!g.isValid(r)||(_(r),c(r,t||void 0))},R=gx({value:k,onChange:T,format:p||w}),A=v?R:{value:k,onChange:e=>{T(e.currentTarget.value)}};return(0,u.Z)({label:s,disabled:r,error:m,inputProps:(0,u.Z)({},A,{disabled:r,placeholder:y,readOnly:f,type:v?"tel":"text"},a)},h)})(m),w=(null==s?void 0:s.position)||"end",x=o.OpenPickerIcon||Ov;return h((0,u.Z)({ref:r,inputRef:d,className:n},b,{InputProps:(0,u.Z)({},c,{[w+"Adornment"]:i?void 0:(0,D.jsx)(mx,(0,u.Z)({position:w},s,{children:(0,D.jsx)(Fh,(0,u.Z)({edge:w,disabled:m.disabled||m.readOnly,"aria-label":y(m.rawValue,v)},p,{onClick:f,children:(0,D.jsx)(x,{})}))}))})}))}));function xx(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function Sx(e){return(0,X.ZP)("MuiCalendarOrClockPicker",e)}(0,L.Z)("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const _x=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],kx=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Ex=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),Cx={fullWidth:!0},Px=e=>"year"===e||"month"===e||"day"===e,Ox=e=>"hours"===e||"minutes"===e||"seconds"===e;function Tx(t){var r,n;const o=(0,m.Z)({props:t,name:"MuiCalendarOrClockPicker"}),{autoFocus:i,parsedValue:a,DateInputProps:s,isMobileKeyboardViewOpen:c,onDateChange:d,onViewChange:p,openTo:h,orientation:g,showToolbar:y,toggleMobileKeyboardView:v,ToolbarComponent:b=(()=>null),toolbarFormat:w,toolbarPlaceholder:x,toolbarTitle:S,views:_,dateRangeIcon:k,timeIcon:E,hideTabs:C}=o,P=(0,l.Z)(o,_x),O=null==(r=P.components)?void 0:r.Tabs,T=((t,r)=>{const[n,o]=e.useState(xx);if((0,Ii.Z)(()=>{const e=()=>{o(xx())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),Xv(t,["hours","minutes","seconds"]))return!1;return"landscape"===(r||n)})(_,g),R=e.useContext(Wv),A=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Sx,t)})(o),M=null!=y?y:"desktop"!==R,j=!C&&"undefined"!=typeof window&&window.innerHeight>667,I=e.useCallback((e,t)=>{d(e,R,t)},[d,R]),N=e.useCallback(e=>{c&&v(),p&&p(e)},[c,p,v]);const{openView:L,setOpenView:Z,handleChangeAndOpenNext:F}=ib({view:void 0,views:_,openTo:h,onChange:I,onViewChange:N}),{focusedView:B,setFocusedView:V}=(({autoFocus:t,openView:r})=>{const[n,o]=e.useState(t?r:null);return{focusedView:n,setFocusedView:e.useCallback(e=>t=>{o(t?e:t=>e===t?null:t)},[])}})({autoFocus:i,openView:L});return(0,D.jsxs)(Ex,{ownerState:{isLandscape:T},className:A.root,children:[M&&(0,D.jsx)(b,(0,u.Z)({},P,{views:_,isLandscape:T,parsedValue:a,onChange:I,setOpenView:Z,openView:L,toolbarTitle:S,toolbarFormat:w,toolbarPlaceholder:x,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:v})),j&&!!O&&(0,D.jsx)(O,(0,u.Z)({dateRangeIcon:k,timeIcon:E,view:L,onChange:Z},null==(n=P.componentsProps)?void 0:n.tabs)),(0,D.jsx)(zb,{children:c?(0,D.jsx)(kx,{className:A.mobileKeyboardInputView,children:(0,D.jsx)(wx,(0,u.Z)({},s,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:Cx}))}):(0,D.jsxs)(e.Fragment,{children:[Px(L)&&(0,D.jsx)(ux,(0,u.Z)({autoFocus:i,date:a,onViewChange:Z,onChange:F,view:L,views:_.filter(Px),focusedView:B,onFocusedViewChange:V},P)),Ox(L)&&(0,D.jsx)(Hb,(0,u.Z)({},P,{autoFocus:i,date:a,view:L,views:_.filter(Ox),onChange:F,onViewChange:Z,showViewSwitcher:"desktop"===R}))]})})]})}const Rx=(t,r)=>{const{onAccept:n,onChange:o,value:i,closeOnSelect:a}=t,s=rv(),{isOpen:l,setIsOpen:c}=(({open:t,onOpen:r,onClose:n})=>{const o=e.useRef("boolean"==typeof t).current,[i,a]=e.useState(!1);e.useEffect(()=>{if(o){if("boolean"!=typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(t)}},[o,t]);return{isOpen:i,setIsOpen:e.useCallback(e=>{o||a(e),e&&r&&r(),!e&&n&&n()},[o,r,n])}})(t),d=e.useMemo(()=>r.parseInput(s,i),[r,s,i]),[f,p]=e.useState(d),[h,m]=e.useState(()=>({committed:d,draft:d,resetFallback:d})),g=e.useCallback(e=>{m(t=>{switch(e.action){case"setAll":case"acceptAndClose":return{draft:e.value,committed:e.value,resetFallback:e.value};case"setCommitted":return(0,u.Z)({},t,{draft:e.value,committed:e.value});case"setDraft":return(0,u.Z)({},t,{draft:e.value});default:return t}}),(e.forceOnChangeCall||!e.skipOnChangeCall&&!r.areValuesEqual(s,h.committed,e.value))&&o(e.value),"acceptAndClose"===e.action&&(c(!1),n&&!r.areValuesEqual(s,h.resetFallback,e.value)&&n(e.value))},[n,o,c,h,s,r]);e.useEffect(()=>{s.isValid(d)&&p(d)},[s,d]),e.useEffect(()=>{l&&g({action:"setAll",value:d,skipOnChangeCall:!0})},[l]),r.areValuesEqual(s,h.committed,d)||g({action:"setCommitted",value:d,skipOnChangeCall:!0});const y=e.useMemo(()=>({open:l,onClear:()=>{g({value:r.emptyValue,action:"acceptAndClose",forceOnChangeCall:!r.areValuesEqual(s,i,r.emptyValue)})},onAccept:()=>{g({value:h.draft,action:"acceptAndClose",forceOnChangeCall:!r.areValuesEqual(s,i,d)})},onDismiss:()=>{g({value:h.committed,action:"acceptAndClose"})},onCancel:()=>{g({value:h.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{g({value:r.getTodayValue(s),action:"acceptAndClose"})}}),[g,l,s,h,r,i,d]),[v,b]=e.useState(!1),w=e.useMemo(()=>({parsedValue:h.draft,isMobileKeyboardViewOpen:v,toggleMobileKeyboardView:()=>b(!v),onDateChange:(e,t,r="partial")=>{switch(r){case"shallow":return g({action:"setDraft",value:e,skipOnChangeCall:!0});case"partial":return g({action:"setDraft",value:e});case"finish":return g((null!=a?a:"desktop"===t)?{value:e,action:"acceptAndClose"}:{value:e,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[g,v,h.draft,a]),x=e.useCallback((e,t)=>{const n=r.valueReducer?r.valueReducer(s,f,e):e;o(n,t)},[o,r,f,s]),S={pickerProps:w,inputProps:e.useMemo(()=>({onChange:x,open:l,rawValue:i,openPicker:()=>c(!0)}),[x,l,i,c]),wrapperProps:y};return e.useDebugValue(S,()=>({MuiPickerState:{dateState:h,other:S}})),S},Ax=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],Mx=e.forwardRef((function(e,t){const r=dv(e,"MuiDesktopDatePicker"),n=null!==sw(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(r,fv),{PopperProps:s,PaperProps:c,ToolbarComponent:d=zv,TransitionComponent:f,components:p,componentsProps:h}=r,m=(0,l.Z)(r,Ax),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:n});return(0,D.jsx)(ob,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:wx,PopperProps:s,PaperProps:c,TransitionComponent:f,components:p,componentsProps:h,children:(0,D.jsx)(Tx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))}));function jx(e){return(0,X.ZP)("MuiDialogContent",e)}(0,L.Z)("MuiDialogContent",["root","dividers"]);const Ix=(0,L.Z)("MuiDialogTitle",["root"]),Dx=["className","dividers"],Nx=(0,h.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>(0,u.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:"1px solid "+(e.vars||e).palette.divider,borderBottom:"1px solid "+(e.vars||e).palette.divider}:{[`.${Ix.root} + &`]:{paddingTop:0}})),Lx=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,i=(0,l.Z)(r,Dx),a=(0,u.Z)({},r,{dividers:o}),s=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,f.Z)(n,jx,t)})(a);return(0,D.jsx)(Nx,(0,u.Z)({className:(0,c.Z)(s.root,n),ownerState:a,ref:t},i))}));function Zx(e){return(0,X.ZP)("MuiDialog",e)}const Fx=(0,L.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Bx=e.createContext({}),Vx=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],zx=(0,h.ZP)(kp,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Wx=(0,h.ZP)(Tp,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Ux=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll"+(0,ne.Z)(r.scroll)]]}})(({ownerState:e})=>(0,u.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),$x=(0,h.ZP)(Ip,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper"+(0,ne.Z)(r.scroll)],t["paperWidth"+(0,ne.Z)(String(r.maxWidth))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,["&."+Fx.paperScrollBody]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,["&."+Fx.paperScrollBody]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&."+Fx.paperScrollBody]:{margin:0,maxWidth:"100%"}})),Hx=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiDialog"}),o=vi(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:d,BackdropProps:p,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:w="sm",onBackdropClick:x,onClose:S,open:_,PaperComponent:k=Ip,PaperProps:E={},scroll:C="paper",TransitionComponent:P=wp,transitionDuration:O=i,TransitionProps:T}=n,R=(0,l.Z)(n,Vx),A=(0,u.Z)({},n,{disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:w,scroll:C}),M=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container","scroll"+(0,ne.Z)(r)],paper:["paper","paperScroll"+(0,ne.Z)(r),"paperWidth"+(0,ne.Z)(String(n)),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,f.Z)(a,Zx,t)})(A),j=e.useRef(),I=(0,Sd.Z)(s),N=e.useMemo(()=>({titleId:I}),[I]);return(0,D.jsx)(Wx,(0,u.Z)({className:(0,c.Z)(M.root,g),closeAfterTransition:!0,components:{Backdrop:zx},componentsProps:{backdrop:(0,u.Z)({transitionDuration:O,as:d},p)},disableEscapeKeyDown:y,onClose:S,open:_,ref:r,onClick:e=>{j.current&&(j.current=null,x&&x(e),S&&S(e,"backdropClick"))},ownerState:A},R,{children:(0,D.jsx)(P,(0,u.Z)({appear:!0,in:_,timeout:O,role:"presentation"},T,{children:(0,D.jsx)(Ux,{className:(0,c.Z)(M.container),onMouseDown:e=>{j.current=e.target===e.currentTarget},ownerState:A,children:(0,D.jsx)($x,(0,u.Z)({as:k,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":I},E,{className:(0,c.Z)(M.paper,E.className),ownerState:A,children:(0,D.jsx)(Bx.Provider,{value:N,children:h})}))})}))}))})),Yx=(0,h.ZP)(Hx)({["& ."+Fx.container]:{outline:0},["& ."+Fx.paper]:{outline:0,minWidth:320}}),Gx=(0,h.ZP)(Lx)({"&:first-of-type":{padding:0}}),qx=e=>{var t;const{children:r,DialogProps:n={},onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:l,open:c,components:d,componentsProps:f}=e,p=null!=(t=null==d?void 0:d.ActionBar)?t:qv;return(0,D.jsxs)(Yx,(0,u.Z)({open:c,onClose:a},n,{children:[(0,D.jsx)(Gx,{children:r}),(0,D.jsx)(p,(0,u.Z)({onAccept:o,onClear:i,onCancel:s,onSetToday:l,actions:["cancel","accept"]},null==f?void 0:f.actionBar))]}))},Kx=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Xx(e){const{children:t,DateInputProps:r,DialogProps:n,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,PureDateInputComponent:f,components:p,componentsProps:h}=e,m=(0,l.Z)(e,Kx);return(0,D.jsxs)(Wv.Provider,{value:"mobile",children:[(0,D.jsx)(f,(0,u.Z)({components:p},m,r)),(0,D.jsx)(qx,{DialogProps:n,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,components:p,componentsProps:h,children:t})]})}const Qx=e.forwardRef((function(t,r){const{disabled:n,getOpenDialogAriaText:o,inputFormat:i,InputProps:a,inputRef:s,label:l,openPicker:c,rawValue:d,renderInput:f,TextFieldProps:p={},validationError:h,className:m}=t,g=ov(),v=null!=o?o:g.openDatePickerDialogue,b=rv(),w=e.useMemo(()=>(0,u.Z)({},a,{readOnly:!0}),[a]),x=yx(b,d,i),S=(0,y.Z)(e=>{e.stopPropagation(),c()});return f((0,u.Z)({label:l,disabled:n,ref:r,inputRef:s,error:h,InputProps:w,className:m},!t.readOnly&&!t.disabled&&{onClick:S},{inputProps:(0,u.Z)({disabled:n,readOnly:!0,"aria-readonly":!0,"aria-label":v(d,b),value:x},!t.readOnly&&{onClick:S},{onKeyDown:Qv(c)})},p))})),Jx=["ToolbarComponent","value","onChange","components","componentsProps"],eS=e.forwardRef((function(e,t){const r=dv(e,"MuiMobileDatePicker"),n=null!==sw(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(r,fv),{ToolbarComponent:s=zv,components:c,componentsProps:d}=r,f=(0,l.Z)(r,Jx),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:n});return(0,D.jsx)(Xx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Qx,components:c,componentsProps:d,children:(0,D.jsx)(Tx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),tS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],rS=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:n="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=r,s=(0,l.Z)(r,tS);return qy(n,{defaultMatches:!0})?(0,D.jsx)(Mx,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,D.jsx)(eS,(0,u.Z)({ref:t,DialogProps:o},s))}));function nS(e,t){var r;const n=(0,m.Z)({props:e,name:t}),o=rv(),i=null!=(r=n.ampm)?r:o.is12HourCycleInCurrentLocale(),a=ov().openTimePickerDialogue;return(0,u.Z)({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?o.formats.fullTime12h:o.formats.fullTime24h},n,{components:(0,u.Z)({OpenPickerIcon:Tv},n.components)})}const oS={emptyValue:null,parseInput:sv,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>t&&e.isValid(r)?e.mergeDateAndTime(t,r):r};function iS(e){return(0,X.ZP)("PrivatePickersToolbarText",e)}const aS=(0,L.Z)("PrivatePickersToolbarText",["root","selected"]),sS=["className","selected","value"],lS=(0,h.ZP)(ig,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+aS.selected]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,["&."+aS.selected]:{color:e.palette.text.primary}})),uS=e.forwardRef((function(e,t){const{className:r,value:n}=e,o=(0,l.Z)(e,sS),i=(e=>{const{classes:t,selected:r}=e,n={root:["root",r&&"selected"]};return(0,f.Z)(n,iS,t)})(e);return(0,D.jsx)(lS,(0,u.Z)({ref:t,className:hv(r,i.root),component:"span"},o,{children:n}))})),cS=["align","className","selected","typographyClassName","value","variant"],dS=(0,h.ZP)(pe,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),fS=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPickersToolbarButton"}),{align:n,className:o,selected:i,typographyClassName:a,value:s,variant:c}=r,d=(0,l.Z)(r,cS),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Av,t)})(r);return(0,D.jsx)(dS,(0,u.Z)({variant:"text",ref:t,className:hv(o,p.root)},d,{children:(0,D.jsx)(uS,{align:n,className:a,variant:c,value:s,selected:i})}))}));function pS(e){return(0,X.ZP)("MuiTimePickerToolbar",e)}const hS=(0,L.Z)("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),mS=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],gS=(0,h.ZP)(Lv,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({["& ."+Mv.penIconButtonLandscape]:{marginTop:"auto"}}),yS=(0,h.ZP)(uS,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),vS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{["&."+hS.hourMinuteLabelLandscape]:t.hourMinuteLabelLandscape,["&."+hS.hourMinuteLabelReverse]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})),bS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{["."+hS.ampmLabel]:t.ampmLabel},{["&."+hS.ampmLandscape]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{["& ."+hS.ampmLabel]:{fontSize:17}}));function wS(e){const t=(0,m.Z)({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:n,parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,onChange:s,openView:c,setOpenView:d,toggleMobileKeyboardView:p,toolbarTitle:h,views:g,disabled:y,readOnly:v}=t,b=(0,l.Z)(t,mS),w=rv(),x=ov(),S=null!=h?h:x.timePickerDefaultToolbarTitle,_=vi(),k=Boolean(r&&!n),{meridiemMode:E,handleMeridiemChange:C}=Bb(o,r,s),P=t,O=(e=>{const{theme:t,isLandscape:r,classes:n}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,f.Z)(o,pS,n)})((0,u.Z)({},P,{theme:_})),T=(0,D.jsx)(yS,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:O.separator});return(0,D.jsxs)(gS,(0,u.Z)({viewType:"clock",landscapeDirection:"row",toolbarTitle:S,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p,ownerState:P,className:O.root},b,{children:[(0,D.jsxs)(vS,{className:O.hourMinuteLabel,ownerState:P,children:[Xv(g,"hours")&&(0,D.jsx)(fS,{tabIndex:-1,variant:"h3",onClick:()=>d("hours"),selected:"hours"===c,value:o?(R=o,r?w.format(R,"hours12h"):w.format(R,"hours24h")):"--"}),Xv(g,["hours","minutes"])&&T,Xv(g,"minutes")&&(0,D.jsx)(fS,{tabIndex:-1,variant:"h3",onClick:()=>d("minutes"),selected:"minutes"===c,value:o?w.format(o,"minutes"):"--"}),Xv(g,["minutes","seconds"])&&T,Xv(g,"seconds")&&(0,D.jsx)(fS,{variant:"h3",onClick:()=>d("seconds"),selected:"seconds"===c,value:o?w.format(o,"seconds"):"--"})]}),k&&(0,D.jsxs)(bS,{className:O.ampmSelection,ownerState:P,children:[(0,D.jsx)(fS,{disableRipple:!0,variant:"subtitle2",selected:"am"===E,typographyClassName:O.ampmLabel,value:w.getMeridiemText("am"),onClick:v?void 0:()=>C("am"),disabled:y}),(0,D.jsx)(fS,{disableRipple:!0,variant:"subtitle2",selected:"pm"===E,typographyClassName:O.ampmLabel,value:w.getMeridiemText("pm"),onClick:v?void 0:()=>C("pm"),disabled:y})]})]}));var R}const xS=({adapter:e,value:t,props:r})=>{const{minTime:n,maxTime:o,minutesStep:i,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:s}=r,l=e.utils.date(t),u=Fb(s,e.utils);if(null===t)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(n&&u(n,l)):return"minTime";case Boolean(o&&u(l,o)):return"maxTime";case Boolean(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case Boolean(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case Boolean(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case Boolean(i&&e.utils.getMinutes(l)%i!=0):return"minutesStep";default:return null}},SS=(e,t)=>e===t,_S=e=>nw(e,xS,SS),kS=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],ES=e.forwardRef((function(e,t){const r=nS(e,"MuiDesktopTimePicker"),n=null!==_S(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(r,oS),{PaperProps:s,PopperProps:c,ToolbarComponent:d=wS,TransitionComponent:f,components:p,componentsProps:h}=r,m=(0,l.Z)(r,kS),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:n});return(0,D.jsx)(ob,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:wx,PopperProps:c,PaperProps:s,TransitionComponent:f,components:p,componentsProps:h,children:(0,D.jsx)(Tx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))})),CS=["ToolbarComponent","value","onChange","components","componentsProps"],PS=e.forwardRef((function(e,t){const r=nS(e,"MuiMobileTimePicker"),n=null!==_S(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Rx(r,oS),{ToolbarComponent:s=wS,components:c,componentsProps:d}=r,f=(0,l.Z)(r,CS),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:n});return(0,D.jsx)(Xx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Qx,components:c,componentsProps:d,children:(0,D.jsx)(Tx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),OS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],TS=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:n="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=r,s=(0,l.Z)(r,OS);return qy(n,{defaultMatches:!0})?(0,D.jsx)(ES,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,D.jsx)(PS,(0,u.Z)({ref:t,DialogProps:o},s))})),RS={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};class AS{constructor({locale:e,formats:t,instance:r}={}){this.lib="moment",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.getFormatHelperText=e=>{var t,r;return null!==(r=null===(t=e.match(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g))||void 0===t?void 0:t.map(e=>{const t=e[0];return"L"===t||";"===t?this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat(e):e}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase())&&void 0!==r?r:e},this.getCurrentLocaleCode=()=>this.locale||this.moment.locale(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.date=e=>{if(null===e)return null;const t=this.moment(e);return this.locale&&t.locale(this.locale),t},this.toJsDate=e=>e.toDate(),this.isValid=e=>this.moment(e).isValid(),this.isNull=e=>null===e,this.getDiff=(e,t,r)=>this.moment(t).isValid()?e.diff(t,r):0,this.isAfter=(e,t)=>e.isAfter(t),this.isBefore=(e,t)=>e.isBefore(t),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isBeforeMonth=(e,t)=>e.isBefore(t,"month"),this.isAfterMonth=(e,t)=>e.isAfter(t,"month"),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfDay=e=>e.clone().endOf("day"),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const r=e.clone();return this.locale&&r.locale(this.locale),r.format(t)},this.formatNumber=e=>e,this.getHours=e=>e.get("hours"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.setHours=(e,t)=>e.clone().hours(t),this.getMinutes=e=>e.get("minutes"),this.setMinutes=(e,t)=>e.clone().minutes(t),this.getSeconds=e=>e.get("seconds"),this.setSeconds=(e,t)=>e.clone().seconds(t),this.getMonth=e=>e.get("month"),this.getDaysInMonth=e=>e.daysInMonth(),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.setMonth=(e,t)=>e.clone().month(t),this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?this.moment.localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.startOfYear=e=>e.clone().startOf("year"),this.endOfYear=e=>e.clone().endOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.endOfMonth=e=>e.clone().endOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.endOfWeek=e=>e.clone().endOf("week"),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[e.clone().startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.getYear=e=>e.get("year"),this.setYear=(e,t)=>e.clone().set("year",t),this.getDate=e=>e.get("date"),this.setDate=(e,t)=>e.clone().set("date",t),this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>this.moment.weekdaysShort(!0),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.getWeekArray=e=>{const t=e.clone().startOf("month").startOf("week"),r=e.clone().endOf("month").endOf("week");let n=0,o=t;const i=[];for(;o.isBefore(r);){const e=Math.floor(n/7);i[e]=i[e]||[],i[e].push(o),o=o.clone().add(1,"day"),n+=1}return i},this.getYearRange=(e,t)=>{const r=this.moment(e).startOf("year"),n=this.moment(t).endOf("year"),o=[];let i=r;for(;i.isBefore(n);)o.push(i),i=i.clone().add(1,"year");return o},this.isWithinRange=(e,[t,r])=>e.isBetween(t,r,null,"[]"),this.moment=r||Go(),this.locale=e,this.formats=Object.assign({},RS,t)}}function MS(){return(MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function jS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return IS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IS(e,t)}(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 IS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var DS=function(t,r,n){try{var o=vd(r,n.view.getLocale());t.appendChild(e.createElement("div",{key:r.getHash()},o))}catch(e){console.warn("Could not present date, expected ISO8601 format in the form 2001-01-01 \n (potentially with time given after a 'T' character as well) but found '".concat(r.getValue(),"' instead."))}},NS=fi.presenterRegistry;NS.itemtype("text").datatype("xsd:dateTime").register(DS),NS.itemtype("text").datatype("xsd:date").register(DS),NS.itemtype("text").datatype("xsd:time").register(DS),NS.itemtype("text").datatype("xsd:gYear").register(DS),NS.itemtype("text").datatype("xsd:gYearMonth").register(DS),NS.itemtype("text").datatype("xsd:gMonthDay").register(DS),NS.itemtype("text").datatype("dcterms:W3CDTF").register(DS);var LS={format:{Year:"YYYY",DateTime:"YYYY-MM-DD",Date:"YYYY-MM-DD",YearMonth:"YYYY-MM",MonthDay:"MM-DD",Time:"YYYY-MM-DD"},mask:{Year:"____",DateTime:"____-__-__",Date:"____-__-__",YearMonth:"____-__",MonthDay:"__-__",Time:"____-__-__"},views:{Year:["year"],DateTime:["day"],Date:["day"],YearMonth:["year","month"],MonthDay:["month","day"],Time:["day"]},labelKey:{Year:"date_year",DateTime:"date_date",Date:"date_date",YearMonth:"date_year_and_month",MonthDay:"date_month_and_day",Time:"date_date"},ariaLabelKey:{Year:"date_openYearPicker",DateTime:"date_openDatePicker",Date:"date_openDatePicker",YearMonth:"date_openDatePicker",MonthDay:"date_openDatePicker",Time:"date_openDatePicker"}},ZS=function(t,r,n){var o=n.view.messages,i=function(){var i=r.getGist(),a=(0,e.useMemo)((function(){return yd(r.getItem())}),[]),s=jS((0,e.useState)(""===i?null:pd(i)),2),l=s[0],u=s[1],c=jS((0,e.useState)(function(e,t){var r=hd(e.getDatatype());return t[r]||(t[r]="error"),r||md(e.getItem())}(r,a)),2),d=c[0],f=c[1],p=1===Object.keys(a).length,h=jS((0,e.useState)(r.getMatchingCode()===Ts.WRONG_DATATYPE),2),m=h[0],g=h[1];(0,e.useEffect)((function(){t.toggleClass("mismatchReport",m)}),[m]),(0,e.useEffect)((function(){n.clear=function(){u(null),f(md(r.getItem())),g(!1)}}),[]);var y=function(e){null==e?(r.setValue(""),u(null)):e.isValid()&&(r.setValue(gd(e.toDate(),d)),u(e.toDate()))},v={"aria-labelledby":n.view.getLabelIndex(r),variant:fi.materialVariant},b=tm(r,n),w=a.Date||a.DateTime||a.Year||a.YearMonth||a.MonthDay,x=!b&&("DateTime"===d||"Date"===d||"Year"===d||"YearMonth"===d||"MonthDay"===d);return e.createElement(e.Fragment,null,e.createElement(ev,{dateAdapter:AS},e.createElement("span",{className:"rdformsDatePicker"},w&&e.createElement(rS,MS({renderInput:function(t){return e.createElement(jh,MS({},t,v))},leftArrowButtonProps:{"aria-label":o.date_previousMonth},rightArrowButtonProps:{"aria-label":o.date_nextMonth},KeyboardButtonProps:{"aria-label":o[LS.ariaLabelKey[d]]},label:o[LS.labelKey[d]]},x?{}:{disabled:!0},{value:x?l:null,minDate:Go()(new Date("0000-01-01")),inputFormat:LS.format[d],views:LS.views[d],onChange:y,autoOk:!0,mask:LS.mask[d]})),(a.DateTime||a.Time)&&e.createElement(TS,MS({renderInput:function(t){return e.createElement(jh,MS({},t,v))},label:o.date_time},b||"DateTime"!==d&&"Time"!==d?{disabled:!0}:{},{KeyboardButtonProps:{"aria-label":o.date_openTimePicker},value:"DateTime"===d||"Time"===d?l:null,onChange:y,ampm:!1,autoOk:!0})),!p&&e.createElement(Lf,{variant:fi.materialVariant},e.createElement(Oh,{value:d,inputProps:v,error:"error"===a[d],onChange:function(e){r.setDatatype(function(e){switch(e){case"DateTime":return"http://www.w3.org/2001/XMLSchema#dateTime";case"Date":return"http://www.w3.org/2001/XMLSchema#date";case"Time":return"http://www.w3.org/2001/XMLSchema#time";case"Year":return"http://www.w3.org/2001/XMLSchema#gYear";case"YearMonth":return"http://www.w3.org/2001/XMLSchema#gYearMonth";case"MonthDay":return"http://www.w3.org/2001/XMLSchema#gMonthDay";default:return""}}(e.target.value)),r.setValue(gd(l,e.target.value)),f(e.target.value),g("error"===a[e.target.value])},disabled:!!b},a.Year&&e.createElement(Yh,{disabled:"error"===a.Year,className:"rdformsDatatypeOption",value:"Year"},o.date_year),a.Date&&e.createElement(Yh,{disabled:"error"===a.Date,className:"rdformsDatatypeOption",value:"Date"},o.date_date),a.DateTime&&e.createElement(Yh,{disabled:"error"===a.DateTime,className:"rdformsDatatypeOption",value:"DateTime"},o.date_date_and_time),a.YearMonth&&e.createElement(Yh,{disabled:"error"===a.YearMonth,className:"rdformsDatatypeOption",value:"YearMonth"},o.date_year_and_month),a.MonthDay&&e.createElement(Yh,{disabled:"error"===a.MonthDay,className:"rdformsDatatypeOption",value:"MonthDay"},o.date_month_and_day),a.Time&&e.createElement(Yh,{disabled:"error"===a.Time,className:"rdformsDatatypeOption",value:"Time"},o.date_time))))),m&&e.createElement("div",{key:"warning",className:"rdformsWarning"},n.view.messages.wrongDatatypeField))};t.appendChild(e.createElement(i,{key:r.getHash()}))},FS=fi.editorRegistry;FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gMonthDay").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYearMonth").register(ZS),FS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#time").register(ZS),FS.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(ZS);o(99474);function BS(e){return(BS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zS(e,t,r){var n;return n=function(e,t){if("object"!=BS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=BS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==BS(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return US(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return US(e,t)}(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 US(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $S=["years","months","days","hours","minutes"];fi.editorRegistry.itemtype("text").datatype("xsd:duration").register((function(t,r,n){var o=n.view.messages,i=function(){var t=WS((0,e.useState)((function(){var e=r.getValue();return""===e?{}:fd(e)})),2),i=t[0],a=t[1];(0,e.useEffect)((function(){n.clear=function(){a({})}}),[]);var s=(0,e.useMemo)((function(){return $S.reduce((function(e,t){return e[t]=function(e){var n=e.target.value||"";a((function(e){var o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?VS(Object(r),!0).forEach((function(t){zS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return""!==n?o[t]=Math.abs(parseInt(n,10)):delete o[t],setTimeout((function(){r.setValue(function(e){if(e.years||e.months||e.days||e.hours||e.minutes){var t="P".concat(e.years?"".concat(e.years,"Y"):"").concat(e.months?"".concat(e.months,"M"):"").concat(e.days?"".concat(e.days,"D"):"");return(e.hours||e.minutes)&&(t="".concat(t,"T").concat(e.hours?"".concat(e.hours,"H"):"").concat(e.minutes?"".concat(e.minutes,"M"):"")),t}return null}(o))}),1),o}))},e}),{})})),l=n.view.getLabelIndex(r),u=tm(r,n);return e.createElement(e.Fragment,null,$S.map((function(t){return e.createElement(jh,{key:t,className:"rdformsDurationInput",value:"".concat(i[t]||""),disabled:!!u,label:o["duration_".concat(t)],type:"number",onChange:s[t],inputProps:{min:0,"aria-label":o["duration_".concat(t)],"aria-describedby":l},variant:fi.materialVariant})})))};t.appendChild(e.createElement(i,{key:r.getHash()}))}));var HS=fi.presenterRegistry,YS=fi.editorRegistry,GS=function(e){return function t(r,n,o){var i=n.getValue();o.inEditor&&(null!=i&&""!==i||n.setGist(Xo.generateUUID(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}};HS.itemtype("text").style("autoUUID").register(GS(HS)),YS.itemtype("text").style("autoUUID").register(GS(YS));var qS=function(e){return function t(r,n,o){var i=n.getValue(),a=n.getItem();o.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&n.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&n.setValue((new Date).toISOString(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}},KS=qS(HS);HS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(KS),HS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(KS),HS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(KS),HS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(KS);var XS=qS(YS);YS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(XS);var QS=function(e){return function t(r,n,o){if(o.inEditor){var i=n.getValue(),a=n.getItem().getDeps();if((null==i||""===i)&&a){var s=Hu.findBindingRelativeToParentBinding(n.getParent(),a),l=function(e){var t=Hu.matchPathBelowBinding(s,a),r=n.getGist(),o=t?t.getValue():"";r!=o&&n.setGist(o,e)};l(!0),s.addListener((function(e){e!=n&&l()}))}}e.getComponentBefore(n.getItem(),t)(r,n,o)}};function JS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return e_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e_(e,t)}(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 e_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}HS.itemtype("text").style("autoValue").register(QS(HS)),YS.itemtype("text").style("autoValue").register(QS(YS));var t_=function(t){var r=t.element,n=(0,e.useRef)();return(0,e.useEffect)((function(){n.current.appendChild(r)}),[r]),e.createElement("div",{ref:n})},r_=function(e,t,r){var n=!1;return t.split(" ").forEach((function(t){r?e.has(t)||(e.add(t),n=!0):e.has(t)&&(e.delete(t),n=!0)})),n},n_=function(e,t){return t.has(e.substr(1))},o_=function(e,t){return t.find((function(t){return t.component&&void 0!==t.domQuery(e)}))},i_=function(e,t,r){return r?e[t]=r:delete e[t],e},a_=0,s_=function(t,r,n){var o,i=new Set,a=[],s={},l={id:"struct_".concat(a_+=1),parent:r,toggleClass:function(e,t){return r_(i,e,t)},domQuery:function(e){return n_(e,i)?l:o_(e,a)},appendChild:function(e){a.push(e)},appendAfter:function(e,t){a.splice(a.indexOf(t)+1,0,e)},text:function(e){o=e},attr:function(e,t){return i_(s,e,t)},destroy:function(){return!(l.parent instanceof Node)&&l.parent.removeChild(l)},clear:function(){a=[]},component:function(){var r=JS((0,e.useState)(i),2),u=r[0],c=r[1],d=JS((0,e.useState)(a),2),f=d[0],p=d[1],h=JS((0,e.useState)(o),2),m=h[0],g=h[1],y=JS((0,e.useState)(s),2),v=(y[0],y[1]);return l.domQuery=function(e){return n_(e,u)?l:o_(e,f)},l.toggleClass=function(e,t){c((function(r){var n=new Set(r);return r_(n,e,t)?n:r}))},l.appendChild=function(e){p((function(t){return t.concat([e])}))},l.appendAfter=function(e,t){p((function(r){var n=r.slice(0);return n.splice(t&&n.indexOf(t)+1||0,0,e),n}))},l.text=function(e){return g(e)},l.removeChild=function(e){p((function(t){var r=t.slice(0);return r.splice(r.indexOf(e),1),r}))},l.clear=function(){p([])},l.attr=function(e,t){v((function(r){return i_(Object.assign({},r),e,t)}))},e.createElement(t,{id:n,className:Array.from(u).join(" ")},f.map((function(t,r){return function(t,r){return t instanceof Node?e.createElement(t_,{key:r,element:t}):t.component?e.createElement(t.component,{key:t.id}):t}(t,r)})),m)}};return l};fi.domQuery=function(e,t){return t.domQuery(e)},fi.domCreate=function(e,t,r){var n=s_(e,t,r);return t.appendChild(n),n},fi.domCreateAfter=function(e,t,r){if(t.parent){var n=s_(e,t.parent,r);return t.parent.appendAfter(n,t),n}},fi.domSetAttr=function(e,t,r){return e.attr(t,r)},fi.domText=function(e,t){return e.text(t)},fi.domClassToggle=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.toggleClass(t,r)},fi.createDomNode=function(e){var t;return null!=e&&e.component?e:(t=e instanceof Node?e:"string"==typeof e?document.getElementById(e):s_("div"),s_("div",t))},fi.destroyDomNode=function(e){e.component&&e.destroy()},fi.prePresenterViewRenderer=function(){},fi.materialVariant="filled",fi.preEditorRenderer=function(t,r,n){if("group"!==r.getItem().getType()&&!0!==n.noCardinalityButtons){n.controlDiv=s_("div",t),fi.domClassToggle(n.controlDiv,"rdformsFieldControl");var o=fi.addRemoveButton(t,r,n);n.controlDiv.appendChild(e.createElement(o,{key:"".concat(r.getHash(),"_removeButton")}))}},fi.postEditorRenderer=function(e,t,r){r.controlDiv&&e.appendChild(r.controlDiv)};var l_={error:n.Z,warning:r.Z,deprecated:a.Z},u_=0;fi.renderValidationMessage=function(t,r,n){var o=l_[r];u_+=1,t.appendChild(e.createElement("div",{className:"rdformsValidationMessageWrapper",key:"rdforms_valcount_".concat(u_)},e.createElement(o,null),e.createElement("span",{className:"rdformsValidationMessage"},n)))},fi.multiValueSupport=!0,fi.addTruncateControl=function(t,r){var n=function(){var n=JS((0,e.useState)(!0),2),o=n[0],i=n[1],a=r.view.messages;return e.createElement(e.Fragment,null,o?e.createElement(pe,{className:"rdformsShowMore",size:"small",onClick:function(){fi.domClassToggle(t,"rdformsTruncated",!1),i(!1)}},a.showMore):e.createElement(pe,{className:"rdformsShowLess",size:"small",onClick:function(){fi.domClassToggle(t,"rdformsTruncated",!0),i(!0)}},a.showLess))};t.appendChild(e.createElement(n,null))};var c_=o(93379),d_=o.n(c_),f_=o(7795),p_=o.n(f_),h_=o(90569),m_=o.n(h_),g_=o(3565),y_=o.n(g_),v_=o(19216),b_=o.n(v_),w_=o(44589),x_=o.n(w_),S_=o(57135),__={};__.styleTagTransform=x_(),__.setAttributes=y_(),__.insert=m_().bind(null,"head"),__.domAPI=p_(),__.insertStyleElement=b_();d_()(S_.Z,__);S_.Z&&S_.Z.locals&&S_.Z.locals;var k_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==o.g&&o.g||{},E_="URLSearchParams"in k_,C_="Symbol"in k_&&"iterator"in Symbol,P_="FileReader"in k_&&"Blob"in k_&&function(){try{return new Blob,!0}catch(e){return!1}}(),O_="FormData"in k_,T_="ArrayBuffer"in k_;if(T_)var R_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],A_=ArrayBuffer.isView||function(e){return e&&R_.indexOf(Object.prototype.toString.call(e))>-1};function M_(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function j_(e){return"string"!=typeof e&&(e=String(e)),e}function I_(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return C_&&(t[Symbol.iterator]=function(){return t}),t}function D_(e){this.map={},e instanceof D_?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function N_(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function L_(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function Z_(e){var t=new FileReader,r=L_(t);return t.readAsArrayBuffer(e),r}function F_(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function B_(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:P_&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:O_&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:E_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():T_&&P_&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=F_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):T_&&(ArrayBuffer.prototype.isPrototypeOf(e)||A_(e))?this._bodyArrayBuffer=F_(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):E_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},P_&&(this.blob=function(){var e=N_(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=N_(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(P_)return this.blob().then(Z_);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=N_(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=L_(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8";return t.readAsText(e,o),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},O_&&(this.formData=function(){return this.text().then(W_)}),this.json=function(){return this.text().then(JSON.parse)},this}D_.prototype.append=function(e,t){e=M_(e),t=j_(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},D_.prototype.delete=function(e){delete this.map[M_(e)]},D_.prototype.get=function(e){return e=M_(e),this.has(e)?this.map[e]:null},D_.prototype.has=function(e){return this.map.hasOwnProperty(M_(e))},D_.prototype.set=function(e,t){this.map[M_(e)]=j_(t)},D_.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},D_.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),I_(e)},D_.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),I_(e)},D_.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),I_(e)},C_&&(D_.prototype[Symbol.iterator]=D_.prototype.entries);var V_=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function z_(e,t){if(!(this instanceof z_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof z_){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new D_(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new D_(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),V_.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in k_)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function W_(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function U_(e,t){if(!(this instanceof U_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new D_(t.headers),this.url=t.url||"",this._initBody(e)}z_.prototype.clone=function(){return new z_(this,{body:this._bodyInit})},B_.call(z_.prototype),B_.call(U_.prototype),U_.prototype.clone=function(){return new U_(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new D_(this.headers),url:this.url})},U_.error=function(){var e=new U_(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var $_=[301,302,303,307,308];U_.redirect=function(e,t){if(-1===$_.indexOf(t))throw new RangeError("Invalid status code");return new U_(null,{status:t,headers:{location:e}})};var H_=k_.DOMException;try{new H_}catch(e){(H_=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),H_.prototype.constructor=H_}function Y_(e,t){return new Promise((function(r,n){var o=new z_(e,t);if(o.signal&&o.signal.aborted)return n(new H_("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new D_,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){r(new U_(a,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new H_("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&k_.location.href?k_.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(P_?i.responseType="blob":T_&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof D_||k_.Headers&&t.headers instanceof k_.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(M_(e)),i.setRequestHeader(e,j_(t.headers[e]))})),o.headers.forEach((function(e,t){-1===s.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}Y_.polyfill=!0,k_.fetch||(k_.fetch=Y_,k_.Headers=D_,k_.Request=z_,k_.Response=U_);const G_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const q_=function(e){return this.__data__.has(e)};function K_(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Gr;++t<r;)this.add(e[t])}K_.prototype.add=K_.prototype.push=G_,K_.prototype.has=q_;const X_=K_;const Q_=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};const J_=function(e,t){return e.has(t)};const ek=function(e,t,r,n,o,i){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new X_:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var g=a?n(m,h,d,t,e,i):n(h,m,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Q_(t,(function(e,t){if(!J_(p,t)&&(h===e||o(h,e,r,n,i)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,r,n,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const tk=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};const rk=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r};var nk=rr?rr.prototype:void 0,ok=nk?nk.valueOf:void 0;const ik=function(e,t,r,n,o,i,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Eo(e),new Eo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Bt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=tk;case"[object Set]":var l=1&n;if(s||(s=rk),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var c=ek(s(e),s(t),n,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ok)return ok.call(e)==ok.call(t)}return!1};var ak=Object.prototype.hasOwnProperty;const sk=function(e,t,r,n,o,i){var a=1&r,s=uo(e),l=s.length;if(l!=uo(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:ak.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],g=t[c];if(n)var y=a?n(g,m,c,t,e,i):n(m,g,c,e,t,i);if(!(void 0===y?m===g||o(m,g,r,n,i):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p};var lk=Object.prototype.hasOwnProperty;const uk=function(e,t,r,n,o,i){var a=fn(e),s=fn(t),l=a?"[object Array]":So(e),u=s?"[object Array]":So(t),c="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f=l==u;if(f&&yn(e)){if(!yn(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new Xr),a||Tn(e)?ek(e,t,r,n,o,i):ik(e,t,l,r,n,o,i);if(!(1&r)){var p=c&&lk.call(e,"__wrapped__"),h=d&&lk.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return i||(i=new Xr),o(m,g,r,n,i)}}return!!f&&(i||(i=new Xr),sk(e,t,r,n,o,i))};const ck=function e(t,r,n,o,i){return t===r||(null==t||null==r||!an(t)&&!an(r)?t!=t&&r!=r:uk(t,r,n,o,e,i))};const dk=function(e,t){return ck(e,t)};function fk(e){return(fk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hk(n.key),n)}}function hk(e){var t=function(e,t){if("object"!=fk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=fk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fk(t)?t:String(t)}var mk=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._registry={}}var t,r,n;return t=e,(r=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var r=this._findChoices(e);if(null==r);else{if(null==t)return r;t(r)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];if(dk(n.constraints,e.getConstraints())&&e.getParentProperty()===n.parentProperty&&e.getHierarchyProperty()===n.hierarchyProperty&&e.isParentPropertyInverted()===(n.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(n.isHierarchyPropertyInverted||!1))return n.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var r=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(r+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var n=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(n+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&pk(t.prototype,r),n&&pk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gk(e){return(gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vk(n.key),n)}}function vk(e){var t=function(e,t){if("object"!=gk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=gk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gk(t)?t:String(t)}var bk=0,wk=function(){function e(t){var r=t.itemStore,n=t.source,o=t.path,i=t.readOnly,a=void 0!==i&&i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=r,this._source=n,this._path=o,this._readOnly=a,this._items=[],bk+=1,this._id="_bundle_".concat(bk),this._root=null,this._modified=!1}var t,r,n;return t=e,(r=[{key:"getInternalId",value:function(){return this._id}},{key:"getSource",value:function(){return this._source}},{key:"setRoot",value:function(e){return this._source.root=e,e}},{key:"getRoot",value:function(){if(this._source.root)return this._itemStore.getItem(this._source.root)}},{key:"getItemStore",value:function(){return this._itemStore}},{key:"getPath",value:function(){return this._path}},{key:"getItems",value:function(){return this._items}},{key:"addItem",value:function(e){this._items.push(e)}},{key:"removeItem",value:function(e){this._items.splice(this._items.indexOf(e),1)}},{key:"isModified",value:function(){return this._modified}},{key:"setModified",value:function(e){this._modified=e}},{key:"isReadOnly",value:function(){return this._readOnly||null==this._path}}])&&yk(t.prototype,r),n&&yk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function xk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Sk(n.key),n)}}function Sk(e){var t=function(e,t){if("object"!=_k(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_k(t)?t:String(t)}function _k(e){return(_k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var kk=function e(t,r){if(!t||!r)return void 0===r?t:r;if(Array.isArray(t)&&Array.isArray(r))return[].concat(origSource[key],extSource[key]);if("object"===_k(t)&&"object"===_k(r)){var n={};return Object.keys(t).concat(Object.keys(r)).forEach((function(o){n[o]=e(t[o],r[o])})),n}return r},Ek=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.automaticSortAllowed=!0,this.handleErrorAs="throw",this._bundles=[],this._registry={},this._registryByProperty={},this._ontologyStore=t||new mk}var t,r,n;return t=e,(r=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var r=e.getSource(!0),n=r.content||r.items||[];if(t)return this._createItems(n,e._forceChildrenClones,e.getBundle());var o=this.getItem(r.extends);if(o){var i=e.getChildren(!0);return e.getEnhanced("items")||0===i.length?o.getChildren().concat(i):i}return e.getChildren(!0)}},{key:"getItem",value:function(e){if(null!=e)return this._registry[e]}},{key:"getItems",value:function(){var e=this;return Object.keys(this._registry).map((function(t){return e._registry[t]}))}},{key:"renameItem",value:function(e,t){if(this._registry[t])this._handleError("Cannot rename to ".concat(t," since an item with that id already exists."));else if(""!==t&&null!==t){var r=this._registry[e];r&&(delete this._registry[e],this._registry[t]=r,r.setId(t));for(var n=function r(n){var o=n.content;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&r(a)}},o=this.getItems(),i=0;i<o.length;i++){var a=o[i];a instanceof il&&n(a._source)}}else this._handleError("Cannot give an item an empty string or null as id.")}},{key:"getItemIds",value:function(){return Object.keys(this._registry)}},{key:"getItemByProperty",value:function(e){return this._registryByProperty[e]}},{key:"detectTemplate",value:function(e,t,r){return Fu(e,t,this,r)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new wk(e);this._bundles.push(t),e.source&&e.source.namespaces&&Se(e.source.namespaces);var r=e.source.templates||e.source.auxilliary;return r instanceof Array&&this._createItems(r,!1,t),"object"===_k(e.source.cachedChoices)&&this._ontologyStore.importRegistry(e.source.cachedChoices),t}},{key:"getBundles",value:function(){return this._bundles}},{key:"createTemplate",value:function(e){return this.registerBundle({source:e}).getRoot()}},{key:"createTemplateFromChildren",value:function(e){var t=this,r=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new il({source:{},children:r,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var r=Object.assign({},e,t);return t.enhanced&&(!0===t.enhanced?Object.keys(e).concat(Object.keys(t)):Object.keys(t.enhanced)).forEach((function(n){r[n]=kk(e[n],t[n])})),r._extendedSource=t,r.extends=null,delete r.children,r}},{key:"createItem",value:function(e,t,r,n){var o,i=e.id||e["@id"],a=e.type||e["@type"];if(e.extends){var s=this._registry[e.extends];if(null==s&&this._handleError("Cannot find item to extend with id: ".concat(e.extends)),s){var l=this.createExtendedSource(s.getSource(),e);return this.createItem(l,!1,!1,n)}}if(null!=a){switch(a){case"text":o=new _l({source:e,itemStore:this,bundle:n});break;case"choice":o=new jl({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:n});break;case"group":o=new il({source:e,children:null,itemStore:this,bundle:n});break;case"propertygroup":o=new ml({source:e,children:null,itemStore:this,bundle:n})}return!0!==r&&(null!=e.property&&(this._registryByProperty[e.property]=o,this.priorities&&null!=this.priorities[e.property]&&(o.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=o,null!=n&&n.addItem(o))),o}if(null!=i){if(null!=this._registry[i]){if(!0===t||Object.keys(e).find((function(e){return"id"!==e&&"@id"!==e}))){var u=Object.assign(Object.assign({},this._registry[i]._source),e);return this.createItem(u,!1,!0)}return this._registry[i]}this._handleError("Cannot find referenced subitem using identifier: ".concat(i))}else this._handleError("Cannot create subitem, `type` for creating new or `id` for referencing external are required.")}},{key:"removeItem",value:function(e,t){var r=e.getBundle();null!=r&&r.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var n=e.getProperty();null!=n&&this._registryByProperty[n]===e&&delete this._registryByProperty[n]}},{key:"_createItems",value:function(e,t,r){var n=this;return e.map((function(o,i){var a="string"==typeof o?e[i]={id:o}:o;return n.createItem(a,t,!1,r)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&xk(t.prototype,r),n&&xk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();o(73964),o(58373),o(66793),o(7629),o(77509);function Ck(e){return(Ck="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pk(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Pk=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new T(n||[]);return o(a,"_invoke",{value:E(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=v.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Ck(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=C(s,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?h:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Ck(t)+" is not iterable")}return y.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(k.prototype),u(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Ok(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Tk(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ok(i,n,o,a,s,"next",e)}function s(e){Ok(i,n,o,a,s,"throw",e)}a(void 0)}))}}var Rk=function(e,t,r){var n="Fetching template bundle ".concat(r," failed.");if(e===t-1)throw Error("".concat(n," Cannot recover from this, please fix."));console.log("".concat(n," Will try to fetch from a fallback option."))},Ak=function(){var e=Tk(Pk().mark((function e(t){var r,n,o,i,a;return Pk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.length,i=0;case 2:if(!(i<r)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:n=e.sent,e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(3),Error("A network error ocurred while trying to fetch bundle ".concat(t[i]));case 12:if(!n||!n.ok){e.next=30;break}if(e.prev=13,!(a=n.headers.has("content-type")&&n.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,n.json();case 18:return o=e.sent,e.abrupt("break",34);case 22:throw new Error("Failed fetching template ".concat(t[i],". Expected a JSON file and got ").concat(a));case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(13),Rk(i,r,t[i]);case 28:e.next=31;break;case 30:Rk(i,r,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",o);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),Mk=function(e){return e.map((function(e){return e instanceof Array?Ak(e):Promise.resolve(e)}))},jk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const Ik=function(){var e=Tk(Pk().mark((function e(t){var r,n,o,i,a,s=arguments;return Pk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:[],n=s.length>2&&void 0!==s[2]?s[2]:function(){},0===r.length&&n&&n([]),o=Mk(r),e.next=6,Promise.all(o);case 6:return i=e.sent,a=jk(t,i),n(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),i})());
|
|
167
|
+
`),Z.rippleVisible,$,550,({theme:e})=>e.transitions.easing.easeInOut,Z.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Z.child,Z.childLeaving,H,550,({theme:e})=>e.transitions.easing.easeInOut,Z.childPulsate,Y,({theme:e})=>e.transitions.easing.easeInOut),K=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,s=(0,l.Z)(n,F),[d,f]=e.useState([]),p=e.useRef(0),h=e.useRef(null);e.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const g=e.useRef(!1),y=e.useRef(0),v=e.useRef(null),b=e.useRef(null);e.useEffect(()=>()=>{y.current&&clearTimeout(y.current)},[]);const w=e.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;f(e=>[...e,(0,D.jsx)(q,{classes:{ripple:(0,c.Z)(i.ripple,Z.ripple),rippleVisible:(0,c.Z)(i.rippleVisible,Z.rippleVisible),ripplePulsate:(0,c.Z)(i.ripplePulsate,Z.ripplePulsate),child:(0,c.Z)(i.child,Z.child),childLeaving:(0,c.Z)(i.childLeaving,Z.childLeaving),childPulsate:(0,c.Z)(i.childPulsate,Z.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},p.current)]),p.current+=1,h.current=a},[i]),x=e.useCallback((e={},t={},r=(()=>{}))=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:b.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{w({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},y.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},80)):w({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},[o,w]),S=e.useCallback(()=>{x({},{pulsate:!0})},[x]),_=e.useCallback((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void(y.current=setTimeout(()=>{_(e,t)}));v.current=null,f(e=>e.length>0?e.slice(1):e),h.current=t},[]);return e.useImperativeHandle(r,()=>({pulsate:S,start:x,stop:_}),[S,x,_]),(0,D.jsx)(G,(0,u.Z)({className:(0,c.Z)(Z.root,i.root,a),ref:b},s,{children:(0,D.jsx)(P,{component:null,exit:!0,children:d})}))}));var X=o(34867);function Q(e){return(0,X.ZP)("MuiButtonBase",e)}const J=(0,L.Z)("MuiButtonBase",["root","disabled","focusVisible"]),ee=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],te=(0,h.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&."+J.disabled]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),re=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:d="button",disabled:p=!1,disableRipple:h=!1,disableTouchRipple:b=!1,focusRipple:w=!1,LinkComponent:x="a",onBlur:S,onClick:_,onContextMenu:k,onDragLeave:E,onFocus:C,onFocusVisible:P,onKeyDown:O,onKeyUp:T,onMouseDown:R,onMouseLeave:A,onMouseUp:M,onTouchEnd:j,onTouchMove:I,onTouchStart:N,tabIndex:L=0,TouchRippleProps:Z,touchRippleRef:F,type:B}=n,V=(0,l.Z)(n,ee),z=e.useRef(null),W=e.useRef(null),U=(0,g.Z)(W,F),{isFocusVisibleRef:$,onFocus:H,onBlur:Y,ref:G}=(0,v.Z)(),[q,X]=e.useState(!1);p&&q&&X(!1),e.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),z.current.focus()}}),[]);const[J,re]=e.useState(!1);e.useEffect(()=>{re(!0)},[]);const ne=J&&!h&&!p;function oe(e,t,r=b){return(0,y.Z)(n=>{t&&t(n);return!r&&W.current&&W.current[e](n),!0})}e.useEffect(()=>{q&&w&&!h&&J&&W.current.pulsate()},[h,w,q,J]);const ie=oe("start",R),ae=oe("stop",k),se=oe("stop",E),le=oe("stop",M),ue=oe("stop",e=>{q&&e.preventDefault(),A&&A(e)}),ce=oe("start",N),de=oe("stop",j),fe=oe("stop",I),pe=oe("stop",e=>{Y(e),!1===$.current&&X(!1),S&&S(e)},!1),he=(0,y.Z)(e=>{z.current||(z.current=e.currentTarget),H(e),!0===$.current&&(X(!0),P&&P(e)),C&&C(e)}),me=()=>{const e=z.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},ge=e.useRef(!1),ye=(0,y.Z)(e=>{w&&!ge.current&&q&&W.current&&" "===e.key&&(ge.current=!0,W.current.stop(e,()=>{W.current.start(e)})),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!p&&(e.preventDefault(),_&&_(e))}),ve=(0,y.Z)(e=>{w&&" "===e.key&&W.current&&q&&!e.defaultPrevented&&(ge.current=!1,W.current.stop(e,()=>{W.current.pulsate(e)})),T&&T(e),_&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&_(e)});let be=d;"button"===be&&(V.href||V.to)&&(be=x);const we={};"button"===be?(we.type=void 0===B?"button":B,we.disabled=p):(V.href||V.to||(we.role="button"),p&&(we["aria-disabled"]=p));const xe=(0,g.Z)(r,G,z);const Se=(0,u.Z)({},n,{centerRipple:i,component:d,disabled:p,disableRipple:h,disableTouchRipple:b,focusRipple:w,tabIndex:L,focusVisible:q}),_e=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,f.Z)(i,Q,o);return r&&n&&(a.root+=" "+n),a})(Se);return(0,D.jsxs)(te,(0,u.Z)({as:be,className:(0,c.Z)(_e.root,s),ownerState:Se,onBlur:pe,onClick:_,onContextMenu:ae,onFocus:he,onKeyDown:ye,onKeyUp:ve,onMouseDown:ie,onMouseLeave:ue,onMouseUp:le,onDragLeave:se,onTouchEnd:de,onTouchMove:fe,onTouchStart:ce,ref:xe,tabIndex:p?-1:L,type:B},we,V,{children:[a,ne?(0,D.jsx)(K,(0,u.Z)({ref:U,center:i},Z)):null]}))}));var ne=o(98216);function oe(e){return(0,X.ZP)("MuiButton",e)}const ie=(0,L.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const ae=e.createContext({});const se=e.createContext(void 0),le=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ue=e=>(0,u.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ce=(0,h.ZP)(re,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,ne.Z)(r.color)}`],t["size"+(0,ne.Z)(r.size)],t[`${r.variant}Size${(0,ne.Z)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,u.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,u.Z)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:"1px solid "+(e.vars||e).palette[t.color].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),["&."+ie.focusVisible]:(0,u.Z)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),["&."+ie.disabled]:(0,u.Z)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.action.disabledBackground},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:"1px solid "+(0,p.Fq)(e.palette[t.color].main,.5)},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&."+ie.focusVisible]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&."+ie.disabled]:{boxShadow:"none"}}),de=(0,h.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t["iconSize"+(0,ne.Z)(r.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ue(e))),fe=(0,h.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t["iconSize"+(0,ne.Z)(r.size)]]}})(({ownerState:e})=>(0,u.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ue(e))),pe=e.forwardRef((function(t,r){const n=e.useContext(ae),o=e.useContext(se),i=(0,d.Z)(n,t),a=(0,m.Z)({props:i,name:"MuiButton"}),{children:s,color:p="primary",component:h="button",className:g,disabled:y=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:x,fullWidth:S=!1,size:_="medium",startIcon:k,type:E,variant:C="text"}=a,P=(0,l.Z)(a,le),O=(0,u.Z)({},a,{color:p,component:h,disabled:y,disableElevation:v,disableFocusRipple:b,fullWidth:S,size:_,type:E,variant:C}),T=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${(0,ne.Z)(t)}`,"size"+(0,ne.Z)(o),`${i}Size${(0,ne.Z)(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize"+(0,ne.Z)(o)],endIcon:["endIcon","iconSize"+(0,ne.Z)(o)]},l=(0,f.Z)(s,oe,a);return(0,u.Z)({},a,l)})(O),R=k&&(0,D.jsx)(de,{className:T.startIcon,ownerState:O,children:k}),A=w&&(0,D.jsx)(fe,{className:T.endIcon,ownerState:O,children:w}),M=o||"";return(0,D.jsxs)(ce,(0,u.Z)({ownerState:O,className:(0,c.Z)(n.className,T.root,g,M),component:h,disabled:y,focusRipple:!b,focusVisibleClassName:(0,c.Z)(T.focusVisible,x),ref:r,type:E},P,{classes:T,children:[R,s,A]}))}));o(38077),o(76801),o(43843),o(69358),o(69373),o(59903),o(79288),o(74289),o(48888),o(3925),o(45195),o(10373),o(83500),o(49361),o(14223),o(58965),o(54458),o(94825),o(56270);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"__rdfjson_namespaces"in globalThis||(globalThis.__rdfjson_namespaces={ical:"http://www.w3.org/2002/12/cal/ical#",vcard:"http://www.w3.org/2006/vcard/ns#",dcterms:"http://purl.org/dc/terms/",skos:"http://www.w3.org/2004/02/skos/core#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",owl:"http://www.w3.org/2002/07/owl#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",foaf:"http://xmlns.com/foaf/0.1/",wot:"http://xmlns.com/wot/0.1/",dc:"http://purl.org/dc/elements/1.1/",xsd:"http://www.w3.org/2001/XMLSchema#",dcat:"http://www.w3.org/ns/dcat#",org:"http://www.w3.org/ns/org#",gn:"http://www.geonames.org/ontology#",locn:"http://www.w3.org/ns/locn#",schema:"http://schema.org/",ex:"http://example.com/",gsp:"http://www.opengis.net/ont/geosparql#",odrs:"http://schema.theodi.org/odrs#"});var me=globalThis.__rdfjson_namespaces,ge=0,ye=function(e,t,r){return me[e]||(me[e]=t),{abbrev:e,ns:t,localname:r,full:t+r,pretty:"".concat(e,":").concat(r)}},ve=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));if(t)return ye(t,me[t],e.substring(me[t].length));var r=e.lastIndexOf("/"),n=e.lastIndexOf("#");return n>r&&(r=n),ye("ns".concat(ge+=1),e.substring(0,r+1),e.substring(r+1))};const be=function(e){var t=Object.keys(me).find((function(t){return 0===e.indexOf(me[t])}));return t?ye(t,me[t],e.substring(me[t].length)).pretty:e},we=function(e){return ve(e).pretty},xe=function(e){var t=e.split(":");return 2===t.length&&me.hasOwnProperty(t[0])?me[t[0]]+t[1]:e},Se=function(e,t){"string"==typeof e?me[e]=t:"object"===he(e)&&Object.keys(e).forEach((function(t){me[t]=e[t]}))};o(85110),o(67483),o(17299),o(12766),o(20539),o(40454),o(45872),o(30695),o(72870),o(2458),o(13090),o(64120),o(4099),o(75397),o(7741),o(15796),o(42781);function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ke=function(e){return void 0!==e&&(null===e||"object"===_e(e)||Array.isArray(e)||"function"==typeof e)},Ee=function(e){return"string"==typeof e||e instanceof String},Ce=function(e,t,r){0===e[t][r].length&&(delete e[t][r],0===Object.keys(e[t]).length&&delete e[t])},Pe=function(e){if(!ke(e[0]))throw new Error("Graph is not a object.");if(!Ee(e[1]))throw new Error("Subject is not a string.");if(!Ee(e[2]))throw new Error("Predicate is not a string.");if(!ke(e[3]))throw new Error("Object is not a object.");if(void 0===e[3].type)throw new Error("Object has no type attribute, must be one of 'uri', 'literal', or 'bnode'");if(void 0===e[3].value)throw new Error("Object has no value attribute corresponding to the lexical value of the object.")},Oe=function(e,t){return e===t||null==e&&e===t||(Ee(e)?Ee(t)?e===t:e===t.value:Ee(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},Te=function(e){var t={type:e.type,value:e.value};return null!=e.ng&&(t.ng=e.ng),null!=e.lang&&(t.lang=e.lang),null!=e.datatype&&(t.datatype=e.datatype),t},Re=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const Ae={isObject:ke,isString:Ee,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&Oe(e.o,t.o)},add:function(e,t,r,n,o){if(Pe([e,t,r,n]),void 0===e[t])return e[t]={},e[t][r]=[n],n;if(void 0===e[t][r])return e[t][r]=[n],n;var i,a=e[t][r];if(!o)for(i=a.length-1;i>=0;i--)if(Oe(n,a[i]))return a[i];return a.push(n),n},remove:function(e,t,r,n){if(Pe([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(Oe(n,i[o])){var a=i[o];return i.splice(o,1),Ce(e,t,r),a}}},contains:function(e,t,r,n){if(Pe([e,t,r,n]),void 0!==e[t]&&void 0!==e[t][r]){var o,i=e[t][r];for(o=i.length-1;o>=0;o--)if(Oe(n,i[o]))return i[o]}},cleanup:Ce,checkForWrongArgs:Pe,objectEquals:Oe,findDirectOrRDFValue:function(e,t,r){var n=e.find(t,r);if(n.length>0)return"bnode"!==n[0].getType()?n[0].getValue():e.findFirstValue(n[0].getValue(),"http://www.w3.org/1999/02/22-rdf-syntax-ns#value")},clone:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return Object.keys(e).forEach((function(n){var o=e[n];r[n]={},Object.keys(o).forEach((function(e){var i=o[e];if(1===i.length)r[n][e]=[Te(i[0])];else if(t){var a=[],s=new Set;r[n][e]=a,o[e].forEach((function(e){var t=Te(e),r=Re(t);s.has(r)||(s.add(r),a.push(t))}))}else{var l=[];r[n][e]=l,o[e].forEach((function(e){l.push(Te(e))}))}}))})),r}};function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ie(n.key),n)}}function Ie(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:String(t)}var De=function(){function e(t,r,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._graph=t,this._s=r,this._p=n,this._o=o,this._o._statement=this,this._asserted=i}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph}},{key:"setAsserted",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e!==this._asserted&&(e?this._graph.add(this,void 0,void 0,this._silentValue,t):this._graph.remove(this,this._silentValue),this._asserted=e)}},{key:"isAsserted",value:function(){return this._asserted}},{key:"getSubject",value:function(){return this._s}},{key:"isSubjectBlank",value:function(){return!0!==this._sIsBlank&&!1!==this._sIsBlank&&(this._sIsBlank=0===this._s.indexOf("_:")),this._sIsBlank}},{key:"isObjectBlank",value:function(){return"bnode"===this.getType()}},{key:"setSubject",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._s=t,this._graph.add(this),delete this._sIsBlank):this._s=t}},{key:"getPredicate",value:function(){return this._p}},{key:"setPredicate",value:function(e){this._silentValue=!1;var t=xe(e);this._asserted?(this._graph.remove(this),this._p=t,this._graph.add(this)):this._p=t}},{key:"getNamedGraph",value:function(){return this._o.ng}},{key:"setNamedGraph",value:function(e){this._o.ng=e}},{key:"getObject",value:function(){return this._o}},{key:"getCleanObject",value:function(){var e=this._o,t={value:e.value,type:e.type};return this._o.ng&&(t.ng=e.ng),e.lang&&(t.lang=e.lang),this._o.datatype&&(t.datatype=e.datatype),t}},{key:"getType",value:function(){return this._o.type}},{key:"setType",value:function(e){throw new Error("Changing the type of an object is not supported, create a new statement instead.")}},{key:"getValue",value:function(){return this._o.value}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._silentValue=!0===t,e!==this._o.value&&(this._o.value=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getLanguage",value:function(){return this._o.lang}},{key:"setLanguage",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type)throw new Error("Cannot set the language for a resource, has to be a literal");this._o.lang!==e&&(this._o.lang=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}},{key:"getDatatype",value:function(){return this._o.datatype}},{key:"setDatatype",value:function(e,t){if(this._silentValue=!0===t,"literal"!==this._o.type||null!=this._o.lang)throw new Error("Cannot set the datatype for a resource, has to be a literal");this._o.datatype!==e&&(this._o.datatype=e,this.isAsserted()&&!0!==t&&this._graph.setChanged())}}])&&je(t.prototype,r),n&&je(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Ne=(o(91756),o(65273),o(2568));const Le=function(e,t){var r=[],n=new Set((t||[]).map((function(e){return xe(e)}))),o=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var r=e.getDatatype();return r&&"http://www.w3.org/2001/XMLSchema#string"!==r&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==r&&(t+="^^".concat(r)),t},s=function(e,t){var r=i[e]||{rels:[]};i[e]=r,r.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!n.has(i)){var l="bnode"===e.getType(),u=e.isSubjectBlank();if(u||l)return o.push(e),u&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),u?i:t+i));r.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Ne(e.rels.join(""))})),o.forEach((function(e){var t=[];t.push(e.isSubjectBlank()?i[e.getSubject()].hash:e.getSubject()),t.push(e.getPredicate()),t.push("bnode"===e.getType()?i[e.getValue()].hash:a(e)),r.push(t.join(""))})),r.sort(),Ne(r.join(""))};class Ze{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}Ze.prototype.termType="BlankNode";const Fe=Ze;class Be{equals(e){return!!e&&e.termType===this.termType}}Be.prototype.termType="DefaultGraph",Be.prototype.value="";const Ve=Be;const ze=function(e,t){if(!t)return null;if("BlankNode"===t.termType)return e.blankNode(t.value);if("DefaultGraph"===t.termType)return e.defaultGraph();if("Literal"===t.termType)return e.literal(t.value,t.language||e.namedNode(t.datatype.value));if("NamedNode"===t.termType)return e.namedNode(t.value);if("Quad"===t.termType){const r=e.fromTerm(t.subject),n=e.fromTerm(t.predicate),o=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(r,n,o,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class We{constructor(e,t,r){this.value=e,this.language=t,this.datatype=r}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}We.prototype.termType="Literal";const Ue=We;class $e{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}$e.prototype.termType="NamedNode";const He=$e;class Ye{constructor(e,t,r,n){this.subject=e,this.predicate=t,this.object=r,this.graph=n}equals(e){return!!e&&("Quad"===e.termType||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}}Ye.prototype.termType="Quad",Ye.prototype.value="";const Ge=Ye;class qe{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}qe.prototype.termType="Variable";const Ke=qe,Xe=new He("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),Qe=new He("http://www.w3.org/2001/XMLSchema#string");class Je{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new Ve}}namedNode(e){return new He(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new Fe(e)}literal(e,t){return"string"==typeof t?new Ue(e,t,Xe):new Ue(e,"",t||Qe)}variable(e){return new Ke(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,r,n=this.defaultGraph()){return new Ge(e,t,r,n)}fromTerm(e){return ze(this,e)}fromQuad(e){return ze(this,e)}}Je.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const et=new Je;var tt=function(e){return 0===e.indexOf("_:")?e.substring(2):e},rt=function(e){return e.find().map((function(e){var t=e.getSubject(),r=e.getPredicate(),n=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return et.literal(e.value,e.lang);if(e.datatype){var t=et.namedNode(e.datatype);return et.literal(e.value,t)}return et.literal(e.value);case"uri":return et.namedNode(e.value);case"blank":return et.blankNode(tt(e.value))}}(e.getObject()),o=e.getNamedGraph()?et.namedNode(e.getNamedGraph()):void 0;return et.quad(e.isSubjectBlank()?et.blankNode(tt(t)):et.namedNode(t),et.namedNode(r),n,o)}))},nt=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ot=function(e,t){var r=t||new Graph,n=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:nt(e.value),type:"bnode"};case"Literal":return e.language?{value:e.value,type:"literal",lang:e.language}:e.datatype?{value:e.value,type:"literal",datatype:e.datatype.value}:{value:e.value,type:"literal"}}}(e.object||e._object);return"DefaultGraph"!==e.graph.termType&&(t.ng=e.graph.value),t};e.forEach((function(e){r.add("BlankNode"===e.subject.termType?nt(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?nt(e.predicate.value):e.predicate.value,n(e))}))};function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lt(n.key),n)}}function lt(e){var t=function(e,t){if("object"!=it(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=it(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==it(t)?t:String(t)}var ut=function(e){return 0===e.length?e:[e[0]]},ct=function e(t,r,n){return{object:function(o){for(var i=0;i<r.length;i++){var a=void 0;if(n)a=r[i].getSubject();else{var s=r[i].getType();if("uri"===s||"bnode"===s)continue;a=r[i].getValue()}var l=t.find(a,o);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(o){var i,a=[];if(!0===n)for(i=0;i<r.length;i++)a=a.concat(t.find(r[i].getSubject(),o));else for(i=0;i<r.length;i++){var s=r[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(r[i].getValue(),o)))}return e(t,a)},constr:function(o,i){var a=i;Ae.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<r.length;l++){var u=n?r[l].getSubject():r[l].getValue();t.find(u,o,a).length>0&&s.push(r[l])}return e(t,s,n)},each:function(o,i){if(!0===n)for(var a=0;a<r.length;a++){var s="_:"===r[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||o(e(t,r[a],n))}else for(var l=0;l<r.length;l++)o(e(t,r[l],n))},statements:function(){return r},nodes:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:r[o].getSubject()})}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getObject());return t},values:function(e){var t=[];if(!0===n)for(var o=0;o<r.length;o++){var i="_:"===r[o].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(r[o].getSubject())}else for(var a=0;a<r.length;a++)null!=e&&e!==r[a].getType()||t.push(r[a].getValue());return t},firstValue:function(e){if(!0===n)for(var t=0;t<r.length;t++){var o="_:"===r[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===o)return r[t].getSubject()}else for(var i=0;i<r.length;i++)if(null==e||e===r[i].getType())return r[i].getValue()}}},dt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;at(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==r&&this.validate(),this._changed=!1}var t,r,n;return t=e,(r=[{key:"addQuads",value:function(e){return ot(e,this),this}},{key:"toQuads",value:function(){return rt(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var r=e._graph[t];return Object.keys(r).find((function(e){return r[e].find((function(e){return null==e._statement||e._statement.isAsserted()}))}))}))}},{key:"onChange",value:function(){}},{key:"setChanged",value:function(e){this._changed=!(!0!==e&&null!=e),this._changed&&this.onChange()}},{key:"isChanged",value:function(){return this._changed}},{key:"addAll",value:function(e,t){for(var r,n={},o=e.find(),i=0;i<o.length;i++){var a=o[i],s=a.getSubject(),l=a.getPredicate(),u=a.getCleanObject();t&&(u.ng=t),0===s.indexOf("_:")&&(r=n[s]||this._newBNode(),n[s]=r,s=r),0===l.indexOf("_:")&&(r=n[l]||this._newBNode(),n[l]=r,l=r),"bnode"===u.type&&(r=n[u.value]||this._newBNode(),n[u.value]=r,u.value=r),this.add(s,l,u)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(e instanceof De){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),u=Ae.add(this._graph,s,i,l,o);return!0!==n&&this.setChanged(),this._get(s,i,u,!0)}return this.create(e,t,r,!0,n,o)}},{key:"addL",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.lang=n),this.create(e,t,o,!0)}},{key:"addD",value:function(e,t,r,n){var o={type:"literal",value:r};return"string"==typeof n&&(o.datatype=xe(n)),this.create(e,t,o,!0)}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=r;if(a=null==a?this._newBNode():xe(a),s=null==s?this._newBNode():xe(s),null==l?l={type:"bnode",value:this._newBNode()}:Ae.isString(l)?l={type:"uri",value:xe(l)}:"object"!==it(l)||Array.isArray(l)?l={type:"uri",value:"".concat(l)}:("uri"===(l={type:l.type,value:l.value,lang:l.lang,datatype:l.datatype,ng:l.ng}).type&&null!=l.value&&(l.value=xe(l.value)),l.datatype&&(l.datatype=xe(l.datatype))),!1!==n){var u=Ae.add(this._graph,a,s,l,i);return!0!==o&&this.setChanged(),this._getOrCreate(a,s,u,!0)}return new De(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.find(e,t,r),i=0;i<o.length;i++)this.remove(o[i],n)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.getSubject(),n=e.getPredicate(),o=e.getObject();this._trackBNodes(r,n,o),null!=Ae.remove(this._graph,r,n,o)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,r){var n=e,o=t,i=r;if("string"==typeof n&&(n=xe(n)),"string"==typeof o&&(o=xe(o)),"object"===it(i)&&null!==i&&"uri"===i.type?i.value=xe(i.value):"string"==typeof i&&(i={type:"uri",value:xe(i)}),null==i)return null==o?null==n?this._find():this._findS(n):null==n?this._findP(o):this._findSP(n,o);if(null==o)return null==n?this._findO(i):this._findSO(n,i);if(null==n)return this._findPO(o,i);var a=this._get(n,o,Ae.contains(this._graph,n,o,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var r=this.find(e,t);if(r.length>0)return r[0].getValue()}},{key:"projection",value:function(e,t,r){var n=this,o={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?n.findPath(e,a):n.find(e,a);if(s.length>0)switch("*"===i[0]?o[i.substr(1)]=s.map((function(e){return e.getValue()})):o[i]=s[0].getValue(),r||"none"){case"statement":o["*".concat(i)]=s;break;case"objects":o["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":o["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),o}},{key:"subjects",value:function(e,t){return ct(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return ct(this,ut(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return ct(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return ct(this,ut(this.find(e,t,null)))}},{key:"findPath",value:function(e,t){return t.slice(1).reduce((function(e,t){return e.objects(t)}),this.objects(e,t[0])).statements()}},{key:"addList",value:function(e){return this._addList(e,"add")}},{key:"addListL",value:function(e,t){return this._addList(e,"addL",t)}},{key:"addListD",value:function(e,t){return this._addList(e,"addD",t)}},{key:"_addList",value:function(e,t,r){var n,o=this;if(Array.isArray(e)&&0!==e.length){var i=n=this._newBNode(),a=e.length-1;e.forEach((function(e,n){o[t](i,"rdf:first",e,r),n!==a?i=o.add(i,"rdf:rest").getValue():o.add(i,"rdf:rest","rdf:nil")}))}else n=xe("rdf:nil");return n}},{key:"removeList",value:function(e){var t=!1,r="object"===it(e)?e.value:e;try{var n=xe("rdf:nil");for(t=r===n;r!==n&&null!=r;){var o=this.findFirstValue(r,"rdf:rest");this.findAndRemove(r),t=null!=(r=o)}}catch(e){return console.warn("Invalid list for object: ".concat(r)),!1}return t}},{key:"getList",value:function(e){var t="object"===it(e)?e.value:xe(e),r=[];try{for(var n=xe("rdf:nil");t!==n&&null!=t;)r.push(this.find(t,"rdf:first")[0].getObject()),t=this.findFirstValue(t,"rdf:rest")}catch(e){console.warn("Invalid list for object: ".concat(t))}return r}},{key:"findFirstListAsValues",value:function(e,t){return this.getList(this.findFirstValue(e,t)).map((function(e){return e.value}))}},{key:"findAndRemoveLists",value:function(e,t){var r=this,n=!1;return this.find(e,t).forEach((function(e){r.removeList(e.getValue())&&(r.remove(e),n=!0)})),n}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,Ae.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var r=this._graph;if(r.hasOwnProperty(e)){if(r.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");r[t]=r[e],delete r[e]}return this.forEach((function(r,n,o){"uri"===o.type&&o.value===e&&(o.value=t),r===t&&o._statement&&(o._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,r){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t)){if(!r)throw new Error("Cannot replace subject with target URI since it already exists.");var o=n[t],i=n[e];Object.keys(i).forEach((function(e){if(o.hasOwnProperty(e)){var t=o[e],r=i[e].filter((function(e){return!t.find((function(t){return Ae.objectEquals(t,e)}))}));o[e]=t.concat(r)}else o[e]=i[e]})),delete n[e]}else n[t]=n[e],delete n[e];this.forEach((function(r,n,o){"bnode"===o.type&&o.value===e&&(o.value=t,o.type="uri"),r===t&&o._statement&&(o._statement._s=t)}))}return delete this._bnodes[e],this}},{key:"clone",value:function(){return new e(this.exportRDFJSON(!1))}},{key:"findProperties",value:function(e){return Object.keys(this._graph[e]||{})}},{key:"validate",value:function(){if(this.report=this._validate(),!this.report.valid)throw this.report;return this.report}},{key:"registerBNode",value:function(e){this._bnodes[e]=!0}},{key:"forEach",value:function(e){var t=this._graph;Object.keys(t).forEach((function(r){var n=t[r];Object.keys(n).forEach((function(t){n[t].forEach((function(n){e(r,t,n)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(r){t.push(e(r))})),t}},{key:"equals",value:function(e,t){return Le(this,t)===Le(e,t)}},{key:"size",value:function(){var e=0;return Object.values(this._graph).forEach((function(t){Object.values(t).forEach((function(t){e+=t.length}))})),e}},{key:"_get",value:function(e,t,r,n){if(null!=r)return this._getOrCreate(e,t,r,n)}},{key:"_getOrCreate",value:function(e,t,r,n){return null==r._statement&&(r._statement=new De(this,e,t,r,n)),r._statement}},{key:"_graphObject",value:function(e){return null==e._statement||e._statement._graph===this?e:{type:e.type,value:e.value,lang:e.lang,datatype:e.datatype}}},{key:"_findSP",value:function(e,t){var r=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(n){return r._get(e,t,n,!0)}))}},{key:"_findS",value:function(e){var t=this,r=this._graph[e],n=Object.keys(r||{}).map((function(r){return t._findSP(e,r)}));return Array.prototype.concat.apply([],n)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(r,n,o){t.push(e._get(r,n,o,!0))})),t}},{key:"_findP",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){e===o&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findO",value:function(e){var t=this,r=[];return this.forEach((function(n,o,i){Ae.objectEquals(e,i)&&r.push(t._get(n,o,i,!0))})),r}},{key:"_findSO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===o&&Ae.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_findPO",value:function(e,t){var r=this,n=[];return this.forEach((function(o,i,a){e===i&&Ae.objectEquals(t,a)&&n.push(r._get(o,i,a,!0))})),n}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(r){var n=e[r];Ae.isObject(n)?Object.keys(n).forEach((function(e){var o=n[e];Array.isArray(o)?o.forEach((function(n,o){Ae.isObject(n)?null!=n.type?Ae.isString(n.value)?t.nr+=1:(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Object ".concat(o+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:r,p:e,oindex:o+1,message:"Element ".concat(o+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:r,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:r,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,r;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(r="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[r])return this._bnodes[r]=!0,r;throw new Error("Failed creating a new blank node, increadible unprobable...")}},{key:"_indexBNodes",value:function(){var e=this;if(!this._bnodesIndexed){var t=this._graph;Object.keys(t).forEach((function(r){0===r.indexOf("_:")&&(e._bnodes[r]=!0);var n=t[r];Object.keys(n).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),n[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,r){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===r.type&&(this._bnodes[r.value]=!0)}}])&&st(t.prototype,r),n&&st(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();o(9081),o(24601);o(73220),o(17554),o(39385),o(80528),o(7517),o(25787);function ft(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ht(n.key),n)}}function ht(e){var t=function(e,t){if("object"!=ft(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ft(t)?t:String(t)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gt(e,t,r){return xt(t),function(e,t){if(t&&("object"===ft(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,bt()?Reflect.construct(t,r||[],xt(e).constructor):t.apply(e,r))}function yt(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return vt(e,arguments,xt(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wt(r,e)}(e)}function vt(e,t,r){if(bt())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&wt(o,r.prototype),o}function bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function wt(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xt(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function St(e){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ct(n.key),n)}}function Et(e,t,r){return t&&kt(e.prototype,t),r&&kt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==St(t)?t:String(t)}var Pt={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#"},Ot={rdftype:"".concat(Pt.rdf,"type"),rdfssco:"".concat(Pt.rdfs,"subClassOf"),rdfsdomain:"".concat(Pt.rdfs,"domain"),rdfsrange:"".concat(Pt.rdfs,"range"),rdfsspo:"".concat(Pt.rdfs,"subPropertyOf"),rdfsClass:"".concat(Pt.rdfs,"Class"),owlClass:"".concat(Pt.owl,"Class"),owlObjectProperty:"".concat(Pt.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Pt.owl,"DatatypeProperty"),rdfProperty:"".concat(Pt.rdf,"Property")},Tt=function(e,t,r){for(var n={},o=!1,i=e.find(t,r),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(n[s.getLanguage()||""]=s.getValue()||"",o=!0)}if(o)return null==n.en&&null!=n[""]&&(n.en=n[""],delete n[""]),n},Rt=function(e){for(var t=[],r={},n=0;n<e.length;n++){var o=e[n];r[o]||(t.push(o),r[o]=!0)}return t},At=function(){function e(t,r){_t(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=r}return Et(e,[{key:"getURI",value:function(){return this._uri}},{key:"getLabel",value:function(){var e=this.getLabels();if(null!=e.en)return e.en;var t=Object.objects(e);return t.length>0?t[0]:""}},{key:"getLabels",value:function(){return null==this._labels&&(this._labels=Tt(this._graph,this._uri,"".concat(Pt.rdfs,"label")),null==this._labels&&(this._labels={en:this._uri.substr(this._uri.lastIndexOf("/")+1)})),this._labels}},{key:"getComment",value:function(){var e=this.getComments();return null!=e?null!=e.en?e.en:Object.objects(e)[0]:""}},{key:"getComments",value:function(){return null==this._comments&&(this._comments=Tt(this._graph,this._uri,"".concat(Pt.rdfs,"comment"))),this._comments}},{key:"addParent",value:function(e){this._parents.push(e),e._children.push(this)}},{key:"getDirectParents",value:function(){return this._parents}},{key:"getParents",value:function(){if(this._parentLock)return[];if(this._parentLock=!0,null==this._allParents){this._allParents=[];for(var e=0;e<this._parents.length;e++)this._allParents=this._allParents.concat(this._parents[e].getParents()),this._allParents.push(this._parents[e])}return delete this._parentLock,this._allParents}},{key:"getChildren",value:function(){if(this._childLock)return[];if(this._childLock=!0,null==this._allChildren){this._allChildren=[];for(var e=0;e<this._children.length;e++)this._allChildren=this._allChildren.concat(this._children[e].getChildren()),this._allChildren.push(this._children[e])}return delete this._childLock,this._allChildren}},{key:"setRange",value:function(e){null==this._range&&(this._range=[]),this._range.push(e)}},{key:"setDomain",value:function(e){null==this._domain&&(this._domain=[]),this._domain.push(e),e.setDomainOf(this)}},{key:"getRange",value:function(){if(null==this._allRange){this._allRange=this._range||[];for(var e=0;e<this._parents.length;e++)this._allRange=this._allRange.concat(this._parents[e].getRange());this._allRange=Rt(this._allRange)}return this._allRange}},{key:"getDomain",value:function(){if(null==this._allDomain){this._allDomain=this._domain||[];for(var e=0;e<this._parents.length;e++)this._allDomain=this._allDomain.concat(this._parents[e].getDomain());this._allDomain=Rt(this._allDomain)}return this._allDomain}},{key:"setDomainOf",value:function(e){null==this._domainOf&&(this._domainOf=[]),this._domainOf.push(e)}},{key:"getDomainOf",value:function(){return this._domainOf}},{key:"getAllDomainOf",value:function(){if(this._domainOfLock)return[];if(this._domainOfLock=!0,null==this._allDomainOf){var e=this._domainOf||[];this._allDomainOf=this._domainOf||[];for(var t=0;t<e.length;t++)this._allDomainOf=this._allDomainOf.concat(e[t].getChildren());for(var r=0;r<this._parents.length;r++)this._allDomainOf=this._allDomainOf.concat(this._parents[r].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Mt=function(e,t,r,n){for(var o=0;o<r.length;o++){var i=r[o],a=i.getSubject(),s=e[a];if(s||(s=new At(a,i.getGraph()),e[a]=s,t.push(s)),n){var l=i.getValue(),u=e[l];u||(u=new At(l,i.getGraph()),e[l]=u,t.push(u)),s.addParent(u)}}},jt=function(){function e(){_t(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return Et(e,[{key:"addGraph",value:function(e){Mt(this._cidx,this._carr,e.find(null,Ot.rdftype,Ot.rdfsClass)),Mt(this._cidx,this._carr,e.find(null,Ot.rdftype,Ot.owlClass)),Mt(this._cidx,this._carr,e.find(null,Ot.rdfssco,null),!0),Mt(this._pidx,this._parr,e.find(null,Ot.rdftype,Ot.rdfProperty)),Mt(this._pidx,this._parr,e.find(null,Ot.rdfsspo,null),!0),Mt(this._pidx,this._parr,e.find(null,Ot.rdftype,Ot.owlDatatypeProperty)),Mt(this._pidx,this._parr,e.find(null,Ot.rdftype,Ot.owlObjectProperty)),function(e,t,r){for(var n,o,i,a=e.find(null,Ot.rdfsdomain,null),s=0;s<a.length;s++)n=t[(i=a[s]).getSubject()],o=r[i.getValue()],null!=n&&null!=o&&n.setDomain(o);a=e.find(null,Ot.rdfsrange,null);for(var l=0;l<a.length;l++)n=t[(i=a[l]).getSubject()],o=i.getValue(),null!=n&&null!=o&&n.setRange(o)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],r=!1;t||(t=new At(e,new dt),this._cidx[e]=t,this._carr.push(t),r=!0);for(var n=0;n<this._carr.length;n++){var o=this._carr[n];(r&&o!==t||-1===o.getParents().indexOf(t)&&o!==t)&&o.addParent(t)}}},{key:"getClasses",value:function(){return this._carr}},{key:"getProperties",value:function(){return this._parr}},{key:"isClass",value:function(e){return null!=this._cidx[e]}},{key:"isProperty",value:function(e){return null!=this._pidx[e]}},{key:"getClass",value:function(e){return this._cidx[e]}},{key:"getProperty",value:function(e){return this._pidx[e]}}],[{key:"getInstances",value:function(e){for(var t=[],r=[e].concat(e.getChildren()),n=0;n<r.length;n++)for(var o=r[n],i=o.getGraph.find(null,Ot.rdftype,o.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();jt.prototype.ns=Pt,jt.prototype.terms=Ot,jt.global=new jt;function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nt(n.key),n)}}function Nt(e){var t=function(e,t){if("object"!=It(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=It(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==It(t)?t:String(t)}var Lt=function(e,t){if(null==t)return!0;var r=e.getConstraints(),n=!0;return null!=r&&(Object.keys(r).find((function(e){var o,i,a,s,l=t[e];return""!==l&&"*"!==l&&(o=l,i=r[e],a=Array.isArray(o)?o:null!=o?[o]:[],s=Array.isArray(i)?i:null!=i?[i]:[],a.length!==s.length||!a.every((function(e){return s.includes(e)})))&&(n=!1,!0)})),n)},Zt=function(e){this.filterObj={},this.registry=e};Zt.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Zt.prototype[e]=function(t){var r={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[xe(e)]=n.map((function(e){return xe(e)})):r[xe(e)]=xe(n)})),this.filterObj[e]=r;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=xe(t);break;default:this.filterObj[e]=t||!0}return this}}));var Ft=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.components=[],this.priorities={CHECK:1,ITEMTYPE:2,CHOICES:4,NODETYPE:8,DATATYPE:16,RDFTYPE:32,CONSTRAINT:64,PREDICATE:128,STYLE:256,ITEM:512}}var t,r,n;return t=e,(r=[{key:"calculatePriority",value:function(e,t){var r=0;if(t.itemtype&&(r+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(r+=this.priorities.CHOICES,t.choices){case"static":if(!e.hasStaticChoices())return-1;break;case"dynamic":if(!e.hasChoices()||e.hasStaticChoices())return-1;break;case"none":if(e.hasChoices())return-1;break;case"any":default:if(!e.hasChoices())return-1}if(t.nodetype&&(r+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){r+=this.priorities.DATATYPE;var n=e.getDatatype(),o=!0;if(n&&(o=Array.isArray(n)?!n.includes(t.datatype):n!==t.datatype),o)return-1}return t.rdftype&&(r+=this.priorities.RDFTYPE,!function(e,t){var r=e.getConstraints();return null!=r&&r[rdfType]===t}(e,t.rdftype))||t.constraint&&(r+=this.priorities.CONSTRAINT,!Lt(e,t.constraint))||t.predicate&&(r+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(r+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(r+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:r:-1}},{key:"getPriority",value:function(e,t){for(var r=0;r<this.components.length;r++)if(this.components[r].component===t){var n=this.calculatePriority(e,this.components[r].filter);if(n>=0)return n}return 0}},{key:"getComponentBefore",value:function(e,t){var r=this.getPriority(e,t);return this.getComponent(e,r)}},{key:"getComponent",value:function(e,t){for(var r,n,o,i=-1,a=0;a<this.components.length;a++)o=this.components[a],(n=this.calculatePriority(e,o.filter))>i&&(void 0===t||n<t)&&(r=o,i=n);if(r)return r.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Zt(this).itemtype(e)}},{key:"choices",value:function(e){return new Zt(this).choices(e)}},{key:"nodetype",value:function(e){return new Zt(this).nodetype(e)}},{key:"datatype",value:function(e){return new Zt(this).datatype(e)}},{key:"rdftype",value:function(e){return new Zt(this).rdftype(e)}},{key:"constraint",value:function(e){return new Zt(this).constraint(e)}},{key:"predicate",value:function(e){return new Zt(this).predicate(e)}},{key:"style",value:function(e){return new Zt(this).style(e)}},{key:"item",value:function(e){return new Zt(this).item(e)}},{key:"check",value:function(e){return new Zt(this).check(e)}}])&&Dt(t.prototype,r),n&&Dt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Bt=function(){this.__data__=[],this.size=0};const Vt=function(e,t){return e===t||e!=e&&t!=t};const zt=function(e,t){for(var r=e.length;r--;)if(Vt(e[r][0],t))return r;return-1};var Wt=Array.prototype.splice;const Ut=function(e){var t=this.__data__,r=zt(t,e);return!(r<0)&&(r==t.length-1?t.pop():Wt.call(t,r,1),--this.size,!0)};const $t=function(e){var t=this.__data__,r=zt(t,e);return r<0?void 0:t[r][1]};const Ht=function(e){return zt(this.__data__,e)>-1};const Yt=function(e,t){var r=this.__data__,n=zt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Gt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gt.prototype.clear=Bt,Gt.prototype.delete=Ut,Gt.prototype.get=$t,Gt.prototype.has=Ht,Gt.prototype.set=Yt;const qt=Gt;const Kt=function(){this.__data__=new qt,this.size=0};const Xt=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const Qt=function(e){return this.__data__.get(e)};const Jt=function(e){return this.__data__.has(e)};const er="object"==typeof global&&global&&global.Object===Object&&global;var tr="object"==typeof self&&self&&self.Object===Object&&self;const rr=er||tr||Function("return this")();const nr=rr.Symbol;var or=Object.prototype,ir=or.hasOwnProperty,ar=or.toString,sr=nr?nr.toStringTag:void 0;const lr=function(e){var t=ir.call(e,sr),r=e[sr];try{e[sr]=void 0;var n=!0}catch(e){}var o=ar.call(e);return n&&(t?e[sr]=r:delete e[sr]),o};var ur=Object.prototype.toString;const cr=function(e){return ur.call(e)};var dr=nr?nr.toStringTag:void 0;const fr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dr&&dr in Object(e)?lr(e):cr(e)};const pr=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const hr=function(e){if(!pr(e))return!1;var t=fr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const mr=rr["__core-js_shared__"];var gr,yr=(gr=/[^.]+$/.exec(mr&&mr.keys&&mr.keys.IE_PROTO||""))?"Symbol(src)_1."+gr:"";const vr=function(e){return!!yr&&yr in e};var br=Function.prototype.toString;const wr=function(e){if(null!=e){try{return br.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var xr=/^\[object .+?Constructor\]$/,Sr=Function.prototype,_r=Object.prototype,kr=Sr.toString,Er=_r.hasOwnProperty,Cr=RegExp("^"+kr.call(Er).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Pr=function(e){return!(!pr(e)||vr(e))&&(hr(e)?Cr:xr).test(wr(e))};const Or=function(e,t){return null==e?void 0:e[t]};const Tr=function(e,t){var r=Or(e,t);return Pr(r)?r:void 0};const Rr=Tr(rr,"Map");const Ar=Tr(Object,"create");const Mr=function(){this.__data__=Ar?Ar(null):{},this.size=0};const jr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Ir=Object.prototype.hasOwnProperty;const Dr=function(e){var t=this.__data__;if(Ar){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Ir.call(t,e)?t[e]:void 0};var Nr=Object.prototype.hasOwnProperty;const Lr=function(e){var t=this.__data__;return Ar?void 0!==t[e]:Nr.call(t,e)};const Zr=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ar&&void 0===t?"__lodash_hash_undefined__":t,this};function Fr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Fr.prototype.clear=Mr,Fr.prototype.delete=jr,Fr.prototype.get=Dr,Fr.prototype.has=Lr,Fr.prototype.set=Zr;const Br=Fr;const Vr=function(){this.size=0,this.__data__={hash:new Br,map:new(Rr||qt),string:new Br}};const zr=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Wr=function(e,t){var r=e.__data__;return zr(t)?r["string"==typeof t?"string":"hash"]:r.map};const Ur=function(e){var t=Wr(this,e).delete(e);return this.size-=t?1:0,t};const $r=function(e){return Wr(this,e).get(e)};const Hr=function(e){return Wr(this,e).has(e)};const Yr=function(e,t){var r=Wr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Gr.prototype.clear=Vr,Gr.prototype.delete=Ur,Gr.prototype.get=$r,Gr.prototype.has=Hr,Gr.prototype.set=Yr;const qr=Gr;const Kr=function(e,t){var r=this.__data__;if(r instanceof qt){var n=r.__data__;if(!Rr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new qr(n)}return r.set(e,t),this.size=r.size,this};function Xr(e){var t=this.__data__=new qt(e);this.size=t.size}Xr.prototype.clear=Kt,Xr.prototype.delete=Xt,Xr.prototype.get=Qt,Xr.prototype.has=Jt,Xr.prototype.set=Kr;const Qr=Xr;const Jr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e};const en=function(){try{var e=Tr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const tn=function(e,t,r){"__proto__"==t&&en?en(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var rn=Object.prototype.hasOwnProperty;const nn=function(e,t,r){var n=e[t];rn.call(e,t)&&Vt(n,r)&&(void 0!==r||t in e)||tn(e,t,r)};const on=function(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?tn(r,s,l):nn(r,s,l)}return r};const an=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n};const sn=function(e){return null!=e&&"object"==typeof e};const ln=function(e){return sn(e)&&"[object Arguments]"==fr(e)};var un=Object.prototype,cn=un.hasOwnProperty,dn=un.propertyIsEnumerable;const fn=ln(function(){return arguments}())?ln:function(e){return sn(e)&&cn.call(e,"callee")&&!dn.call(e,"callee")};const pn=Array.isArray;const hn=function(){return!1};var mn="object"==typeof exports&&exports&&!exports.nodeType&&exports,gn=mn&&"object"==typeof module&&module&&!module.nodeType&&module,yn=gn&&gn.exports===mn?rr.Buffer:void 0;const vn=(yn?yn.isBuffer:void 0)||hn;var bn=/^(?:0|[1-9]\d*)$/;const wn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&bn.test(e))&&e>-1&&e%1==0&&e<t};const xn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Sn={};Sn["[object Float32Array]"]=Sn["[object Float64Array]"]=Sn["[object Int8Array]"]=Sn["[object Int16Array]"]=Sn["[object Int32Array]"]=Sn["[object Uint8Array]"]=Sn["[object Uint8ClampedArray]"]=Sn["[object Uint16Array]"]=Sn["[object Uint32Array]"]=!0,Sn["[object Arguments]"]=Sn["[object Array]"]=Sn["[object ArrayBuffer]"]=Sn["[object Boolean]"]=Sn["[object DataView]"]=Sn["[object Date]"]=Sn["[object Error]"]=Sn["[object Function]"]=Sn["[object Map]"]=Sn["[object Number]"]=Sn["[object Object]"]=Sn["[object RegExp]"]=Sn["[object Set]"]=Sn["[object String]"]=Sn["[object WeakMap]"]=!1;const _n=function(e){return sn(e)&&xn(e.length)&&!!Sn[fr(e)]};const kn=function(e){return function(t){return e(t)}};var En="object"==typeof exports&&exports&&!exports.nodeType&&exports,Cn=En&&"object"==typeof module&&module&&!module.nodeType&&module,Pn=Cn&&Cn.exports===En&&er.process;const On=function(){try{var e=Cn&&Cn.require&&Cn.require("util").types;return e||Pn&&Pn.binding&&Pn.binding("util")}catch(e){}}();var Tn=On&&On.isTypedArray;const Rn=Tn?kn(Tn):_n;var An=Object.prototype.hasOwnProperty;const Mn=function(e,t){var r=pn(e),n=!r&&fn(e),o=!r&&!n&&vn(e),i=!r&&!n&&!o&&Rn(e),a=r||n||o||i,s=a?an(e.length,String):[],l=s.length;for(var u in e)!t&&!An.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wn(u,l))||s.push(u);return s};var jn=Object.prototype;const In=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||jn)};const Dn=function(e,t){return function(r){return e(t(r))}};const Nn=Dn(Object.keys,Object);var Ln=Object.prototype.hasOwnProperty;const Zn=function(e){if(!In(e))return Nn(e);var t=[];for(var r in Object(e))Ln.call(e,r)&&"constructor"!=r&&t.push(r);return t};const Fn=function(e){return null!=e&&xn(e.length)&&!hr(e)};const Bn=function(e){return Fn(e)?Mn(e):Zn(e)};const Vn=function(e,t){return e&&on(t,Bn(t),e)};const zn=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var Wn=Object.prototype.hasOwnProperty;const Un=function(e){if(!pr(e))return zn(e);var t=In(e),r=[];for(var n in e)("constructor"!=n||!t&&Wn.call(e,n))&&r.push(n);return r};const $n=function(e){return Fn(e)?Mn(e,!0):Un(e)};const Hn=function(e,t){return e&&on(t,$n(t),e)};var Yn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gn=Yn&&"object"==typeof module&&module&&!module.nodeType&&module,qn=Gn&&Gn.exports===Yn?rr.Buffer:void 0,Kn=qn?qn.allocUnsafe:void 0;const Xn=function(e,t){if(t)return e.slice();var r=e.length,n=Kn?Kn(r):new e.constructor(r);return e.copy(n),n};const Qn=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t};const Jn=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i};const eo=function(){return[]};var to=Object.prototype.propertyIsEnumerable,ro=Object.getOwnPropertySymbols;const no=ro?function(e){return null==e?[]:(e=Object(e),Jn(ro(e),(function(t){return to.call(e,t)})))}:eo;const oo=function(e,t){return on(e,no(e),t)};const io=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e};const ao=Dn(Object.getPrototypeOf,Object);const so=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)io(t,no(e)),e=ao(e);return t}:eo;const lo=function(e,t){return on(e,so(e),t)};const uo=function(e,t,r){var n=t(e);return pn(e)?n:io(n,r(e))};const co=function(e){return uo(e,Bn,no)};const fo=function(e){return uo(e,$n,so)};const po=Tr(rr,"DataView");const ho=Tr(rr,"Promise");const mo=Tr(rr,"Set");const go=Tr(rr,"WeakMap");var yo=wr(po),vo=wr(Rr),bo=wr(ho),wo=wr(mo),xo=wr(go),So=fr;(po&&"[object DataView]"!=So(new po(new ArrayBuffer(1)))||Rr&&"[object Map]"!=So(new Rr)||ho&&"[object Promise]"!=So(ho.resolve())||mo&&"[object Set]"!=So(new mo)||go&&"[object WeakMap]"!=So(new go))&&(So=function(e){var t=fr(e),r="[object Object]"==t?e.constructor:void 0,n=r?wr(r):"";if(n)switch(n){case yo:return"[object DataView]";case vo:return"[object Map]";case bo:return"[object Promise]";case wo:return"[object Set]";case xo:return"[object WeakMap]"}return t});const _o=So;var ko=Object.prototype.hasOwnProperty;const Eo=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ko.call(e,"index")&&(r.index=e.index,r.input=e.input),r};const Co=rr.Uint8Array;const Po=function(e){var t=new e.constructor(e.byteLength);return new Co(t).set(new Co(e)),t};const Oo=function(e,t){var r=t?Po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var To=/\w*$/;const Ro=function(e){var t=new e.constructor(e.source,To.exec(e));return t.lastIndex=e.lastIndex,t};var Ao=nr?nr.prototype:void 0,Mo=Ao?Ao.valueOf:void 0;const jo=function(e){return Mo?Object(Mo.call(e)):{}};const Io=function(e,t){var r=t?Po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};const Do=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return Po(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Oo(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Io(e,r);case"[object Map]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return Ro(e);case"[object Set]":return new n;case"[object Symbol]":return jo(e)}};var No=Object.create;const Lo=function(){function e(){}return function(t){if(!pr(t))return{};if(No)return No(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Zo=function(e){return"function"!=typeof e.constructor||In(e)?{}:Lo(ao(e))};const Fo=function(e){return sn(e)&&"[object Map]"==_o(e)};var Bo=On&&On.isMap;const Vo=Bo?kn(Bo):Fo;const zo=function(e){return sn(e)&&"[object Set]"==_o(e)};var Wo=On&&On.isSet;const Uo=Wo?kn(Wo):zo;var $o={};$o["[object Arguments]"]=$o["[object Array]"]=$o["[object ArrayBuffer]"]=$o["[object DataView]"]=$o["[object Boolean]"]=$o["[object Date]"]=$o["[object Float32Array]"]=$o["[object Float64Array]"]=$o["[object Int8Array]"]=$o["[object Int16Array]"]=$o["[object Int32Array]"]=$o["[object Map]"]=$o["[object Number]"]=$o["[object Object]"]=$o["[object RegExp]"]=$o["[object Set]"]=$o["[object String]"]=$o["[object Symbol]"]=$o["[object Uint8Array]"]=$o["[object Uint8ClampedArray]"]=$o["[object Uint16Array]"]=$o["[object Uint32Array]"]=!0,$o["[object Error]"]=$o["[object Function]"]=$o["[object WeakMap]"]=!1;const Ho=function e(t,r,n,o,i,a){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=i?n(t,o,i,a):n(t)),void 0!==s)return s;if(!pr(t))return t;var d=pn(t);if(d){if(s=Eo(t),!l)return Qn(t,s)}else{var f=_o(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(vn(t))return Xn(t,l);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(s=u||p?{}:Zo(t),!l)return u?lo(t,Hn(s,t)):oo(t,Vn(s,t))}else{if(!$o[f])return i?t:{};s=Do(t,f,l)}}a||(a=new Qr);var h=a.get(t);if(h)return h;a.set(t,s),Uo(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,a))})):Vo(t)&&t.forEach((function(o,i){s.set(i,e(o,r,n,i,t,a))}));var m=d?void 0:(c?u?fo:co:u?$n:Bn)(t);return Jr(m||t,(function(o,i){m&&(o=t[i=o]),nn(s,i,e(o,r,n,i,t,a))})),s};const Yo=function(e){return Ho(e,5)};o(65137),o(57267),o(52003),o(22462);var Go=o(30381),qo=o.n(Go),Ko=function(e,t){var r=t||qo().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(r))return{value:e[r],precision:"exact",lang:r};if(r.indexOf("_")>-1&&e.hasOwnProperty(r.substr(0,2)))return{value:e[r.substr(0,2)],precision:"coarsen",lang:r.substr(0,2)};if(e.hasOwnProperty("en"))return{value:e.en,precision:"default",lang:"en"};if(e.hasOwnProperty(""))return{value:e[""],precision:"nolang",lang:""};var n=Object.keys(e);return n.length>0?{value:e[n[0]],precision:"any",lang:n[0]}:{precision:"none"}},Xo=function(e,t,r){var n=e.find(t,r);if(n.length>0){for(var o={},i=0;i<n.length;i++)o[n[i].getLanguage()||""]=n[i].getValue();return o}};const Qo={getLocalizedValue:Ko,getLocalizedMap:function(e,t,r){var n,o=t,i=r;e.getItem?(n=e.getGraph(),o=e.getValue(),i=e.getItem().getURIValueLabelProperties()):n=e,null!=i&&0!==i.length||(i=ei.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],u=0;u<s.length;u++){var c=Xo(n,o,s[u]);c&&l.push(Ko(c).value)}if(l.length>0)return{"":l.join(" ")}}else{var d=Xo(n,o,s);if(d)return d}}},cloneArrayWithLabels:function(e,t){for(var r=[],n=0;n<e.length;n++){var o=e[n],i=Ko(o.label),a={value:o.value,label:i.value||o.value||""};!0===o.top&&(a.top=!0),null!=o.children&&(a.children=Yo(o.children)),!1===o.selectable?a.selectable=!1:a.selectable=!0,r.push(a)}return!0!==t&&r.sort((function(e,t){return e.label>t.label?1:-1})),r},extractGist:function(e,t){var r=t;if(r){-1===r.indexOf("$1")&&(r+="$1");var n="".concat(r).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),o=new RegExp(n).exec(e);if(null!=o)return o[1]}return e},findFirstValue:function(e,t,r,n){var o=e.findFirstValueBinding(e.match(t,r,n),!1);if(o)return o.getChoice?Ko(o.getChoice().label).value:o.getGist()},generateUUID:function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?r:3&r|8).toString(16)}))}};var Jo=function(e,t,r,n){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var o=Qo.getLocalizedMap(n,t,e.getURIValueLabelProperties());if(!o){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");o=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:o}}return{value:t,label:t}};const ei={hasDnDSupport:function(e){return!1},addDnD:function(e,t,r){return{}},attachExternalLinkBehaviour:function(){return!1},attachLinkBehaviour:function(e,t){return!1},openChoiceSelector:function(e,t){alert('This alert is a placeholder for a search dialog that should be provided as part of the integration of RDForms into a wider system.\nSimply override the methods "getChoices" and "openChoiceSelector" in the system module.'),t({value:"http://example.com/choice1",label:{en:"First choice",sv:"Första valet"}})},getChoice:function(e,t,r,n){return Jo(e,t,0,n)},getFallbackChoice:Jo,labelProperties:["http://www.w3.org/2000/01/rdf-schema#label","http://purl.org/dc/terms/title","http://purl.org/dc/elements/1.1/title","http://www.w3.org/2004/02/skos/core#prefLabel","http://xmlns.com/foaf/0.1/name","http://xmlns.com/foaf/name"],createURI:function(e,t){for(var r=t.getChildrenRootUri(),n=r.lastIndexOf("#"),o=-1===n?"".concat(r,"#"):r.substring(0,n+1),i=t.getGraph()._graph;;){var a=o+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},ti=JSON.parse('{"edit_add":"Add","edit_remove":"Remove","edit_clear":"Clear","edit_browse":"Browse and select","edit_browse_create":"Browse and select or create","edit_expand":"Expand","edit_upgrade":"Provide additional information for this web address","info_label":"Label","info_property":"Property","info_description":"Description","info_missing":"No information","address_label":"Address","validation_min_required_one":"at least one value is required","validation_min_required_more":"a minimum of $1 values is required","validation_min_recommended_one":"at least one value is recommended","validation_min_recommended_more":"a minimum of $1 values is recommended","validation_max_one":"at most one value is allowed","validation_max_more":"a maximum of $1 values are allowed","validation_at_most_one_child":"A maximum of one value is allowed","validation_at_least_one_child":"A minimum of one value is required","validation_exactly_one_child":"Exactly one value is required","validation_deprecated":"This field is deprecated","validation_nodetype":"Wrong nodetype","validation_value":"Wrong value","validation_datatype":"Wrong datatype","validation_constraints":"Missing constraints","validation_pattern":"Value does not follow pattern","validation_language":"A language code is required","date_date":"Date","date_time":"Time","date_year":"Year","date_date_and_time":"Date and time","date_year_and_month":"Year and month","date_month_and_day":"Month and day","date_openDatePicker":"Open date picker dialog","date_openTimePicker":"Open time picker dialog","date_openYearPicker":"Open year picker dialog","date_nextMonth":"Next month","date_previousMonth":"Previous month","duration_years":"Years","duration_months":"Months","duration_days":"Days","duration_hours":"Hours","duration_minutes":"Minutes","mandatoryLabel":"Mandatory","recommendedLabel":"Recommended","optionalLabel":"Optional","today":"Today","mandatoryMark":"*","recommendedMark":"(Recommended)","optionalMark":"(Optional)","deprecatedField":"This field has been deprecated, please remove it.","missingValueField":"This field is required, please provide a value.","dependencyField":"This field depends on another field, please review the field it depends on or remove this value.","wrongValueField":"This is an invalid value, please change or remove it.","wrongDatatypeField":"The value has an invalid datatype, please change or remove it.","openLinkExternally":"Open link externally","showMore":"Show more","showLess":"Show less"}');function ri(e){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ni,oi,ii,ai,si,li="body",ui=[{value:"",label:{en:""}},{value:"bg",label:{en:"Bulgarian",bg:"български"}},{value:"es",label:{en:"Spanish",es:"Español"}},{value:"cs",label:{en:"Czech",cs:"čeština"}},{value:"da",label:{en:"Danish",da:"Dansk"}},{value:"no",label:{en:"Norwegian",no:"Norsk",nb:"Norsk",nn:"Norsk nynorsk"}},{value:"nb",label:{en:"Norwegian (bokmål)",nb:"Norsk bokmål",no:"Norsk bokmål",nn:"Norsk bokmål"}},{value:"nn",label:{en:"Norwegian (nynorsk)",nb:"Norsk nynorsk",no:"Norsk nynorsk",nn:"Norsk nynorsk"}},{value:"de",label:{en:"German",de:"Deutsch"}},{value:"et",label:{en:"Estonian",et:"Eesti keel"}},{value:"el",label:{en:"Greek",el:"ελληνικά"}},{value:"en",label:{en:"English"}},{value:"fr",label:{en:"French",fr:"Français"}},{value:"ga",label:{en:"Irish",ga:"Gaeilge"}},{value:"hr",label:{en:"Croatian",hr:"Hrvatski"}},{value:"it",label:{en:"Italian",it:"Italiano"}},{value:"lv",label:{en:"Latvian",lv:"Latviešu valoda"}},{value:"lt",label:{en:"Lithuanian",lt:"Lietuvių kalba"}},{value:"hu",label:{en:"Hungarian",hu:"Magyar"}},{value:"mt",label:{en:"Maltese",mt:"Malti"}},{value:"nl",label:{en:"Dutch",nl:"Nederlands"}},{value:"pl",label:{en:"Polish",pl:"Polski"}},{value:"pt",label:{en:"Portuguese",pt:"Português"}},{value:"ro",label:{en:"Romanian",ro:"Română"}},{value:"sk",label:{en:"Slovak",sk:"Slovenčina"}},{value:"sl",label:{en:"Slovenian",sl:"Slovenščina"}},{value:"fi",label:{en:"Finnish",fi:"Suomi"}},{value:"sv",label:{en:"Swedish",sv:"Svenska"}}],ci={domQuery:function(){},domCreate:function(){},domCreateAfter:function(){},domClassToggle:function(){},domSetAttr:function(){},domText:function(){},createDomNode:function(e){return e instanceof Node?e:"string"==typeof e?document.getElementById(e):document.createElement("div")},destroyDomNode:function(){},presenterRegistry:new Ft,editorRegistry:new Ft,chooserRegistry:new Ft,renderPresenter:function(e,t,r){var n=ci.presenterRegistry.getComponent(t.getItem());n&&(ci.prePresenterRenderer(e,t,r),n(e,t,r),ci.postPresenterRenderer(e,t,r))},renderEditor:function(e,t,r){var n=ci.editorRegistry.getComponent(t.getItem());n&&(ci.preEditorRenderer(e,t,r),n(e,t,r),ci.postEditorRenderer(e,t,r))},renderValidationMessage:function(e,t,r){},renderSelect:function(){},getChoice:function(e,t){var r=ci.chooserRegistry.getComponent(e);if(null==r)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return r.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=ci.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,r){var n=ci.chooserRegistry.getComponent(e.getItem());if(null!=n&&n&&n.getChoice)n.show(e,t,r);else{var o=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(o))}},getExtLinkClass:function(){return""},setMessages:function(e){ni=e},getMessages:function(){return ni||ti},getLanguageList:function(){return oi||ui},getPrimaryLanguageList:function(){if(!ai){for(var e,t=ci.getLanguageList(),r=ii||[],n=[],o=0;o<t.length;o++){var i=t[o].value,a=r.indexOf(i);""===i&&(e=t[o]),-1!==a&&(n[a]=t[o])}ai=[];for(var s=0;s<n.length;s++)"object"===ri(n[s])&&ai.push(n[s]);ai.length>0&&e&&ai.splice(0,0,e)}return ai},getNonPrimaryLanguageList:function(){if(!si){var e=ci.getPrimaryLanguageList().length>0,t=ci.getLanguageList(),r=ii||[];si=[];for(var n=0;n<t.length;n++){var o=t[n].value;-1===r.indexOf(o)&&(e&&""===o||si.push(t[n]))}}return si},setPrimaryLanguageCodes:function(e){si=null,ai=null,ii=e},setLanguageList:function(e){oi=e},filterTranslations:function(e,t,r){for(var n={},o=0;o<e.length;o++){var i=e[o].getLanguage();""===i||null==i?n.noLanguage=!0:i===t?n.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?n.close=!0:0===i.indexOf(r)&&(n.defaultLanguage=!0)}return n.best?e.filter((function(e){return e.getLanguage()===t})):n.close?e.filter((function(e){var r=e.getLanguage();return r&&(-1!==r.indexOf(t)||-1!==t.indexOf(r))})):n.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(r)})):e},setPopoverContainer:function(e){li=e},getPopoverContainer:function(){return li},preEditorViewRenderer:function(e,t){},prePresenterViewRenderer:function(e,t){},preEditorRenderer:function(){},postEditorRenderer:function(){},prePresenterRenderer:function(){},postPresenterRenderer:function(){},renderEditorLabel:function(){},renderEditorLabelScopeEnd:function(){},renderPresenterLabel:function(){},attachItemInfo:function(){},addCreateChildButton:function(){},addGroupButtons:function(){},addExpandButton:function(){},addRemoveButton:function(){},addPresenterTable:function(){},fillPresenterTable:function(){},addEditorTable:function(){},fillEditorTable:function(){},addTruncateControl:function(){}};ei.getChoice=ci.getChoice;var di=function(e,t,r){new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,binding:t,topLevel:!1,compact:r.view.compact,showLanguage:r.view.showLanguage,showDescription:r.view.showDescription,defaultLanguage:r.view.defaultLanguage,filterTranslations:r.view.filterTranslations,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e)};ci.presenterRegistry.itemtype("group").register(di),ci.presenterRegistry.itemtype("propertygroup").register(di);var fi=function(e,t,r){var n=new(0,r.view.constructor)({parentView:r.view,messages:r.view.messages,languages:r.view.languages,binding:t,topLevel:!1,compact:r.view.compact,showDescription:r.view.showDescription,truncate:r.view.truncate,truncateLimit:r.view.truncateLimit,includeLevel:r.view.includeLevel},e);r.view._subEditors.push(n)};ci.editorRegistry.itemtype("group").register(fi),ci.editorRegistry.itemtype("propertygroup").register(fi);const pi=ci;function hi(e){return"string"==typeof e}function mi(e,t,r){return void 0===e||hi(e)?t:(0,u.Z)({},t,{ownerState:(0,u.Z)({},t.ownerState,r)})}var gi=o(96682),yi=o(58794),vi=o(10606);function bi(){const e=(0,gi.Z)(yi.Z);return e[vi.Z]||e}var wi=o(73935);const xi=!1;var Si=function(e){return e.scrollTop},_i=function(t){function r(e,r){var n;n=t.call(this,e,r)||this;var o,i=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?i?(o="exited",n.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",n.state={status:o},n.nextCallback=null,n}w(r,t),r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?"entering"!==r&&"entered"!==r&&(t="entering"):"entering"!==r&&"entered"!==r||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:wi.findDOMNode(this);r&&Si(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[wi.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||xi?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:wi.findDOMNode(this);t&&!xi?(this.props.onExit(n),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:wi.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var r=this.props,n=r.children,o=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,l.Z)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(x.Provider,{value:null},"function"==typeof n?n(t,o):e.cloneElement(e.Children.only(n),o))},r}(e.Component);function ki(){}_i.contextType=x,_i.propTypes={},_i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ki,onEntering:ki,onEntered:ki,onExit:ki,onExiting:ki,onExited:ki},_i.UNMOUNTED="unmounted",_i.EXITED="exited",_i.ENTERING="entering",_i.ENTERED="entered",_i.EXITING="exiting";const Ei=_i,Ci=e=>e.scrollTop;function Pi(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Oi=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ti(e){return`scale(${e}, ${e**2})`}const Ri={entering:{opacity:1,transform:Ti(1)},entered:{opacity:1,transform:"none"}},Ai="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Mi=e.forwardRef((function(t,r){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:s,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:y,timeout:v="auto",TransitionComponent:b=Ei}=t,w=(0,l.Z)(t,Oi),x=e.useRef(),S=e.useRef(),_=bi(),k=e.useRef(null),E=(0,g.Z)(k,i.ref,r),C=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},P=C(f),O=C((e,t)=>{Ci(e);const{duration:r,delay:n,easing:o}=Pi({style:y,timeout:v,easing:a},{mode:"enter"});let i;"auto"===v?(i=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=i):i=r,e.style.transition=[_.transitions.create("opacity",{duration:i,delay:n}),_.transitions.create("transform",{duration:Ai?i:.666*i,delay:n,easing:o})].join(","),c&&c(e,t)}),T=C(d),R=C(m),A=C(e=>{const{duration:t,delay:r,easing:n}=Pi({style:y,timeout:v,easing:a},{mode:"exit"});let o;"auto"===v?(o=_.transitions.getAutoHeightDuration(e.clientHeight),S.current=o):o=t,e.style.transition=[_.transitions.create("opacity",{duration:o,delay:r}),_.transitions.create("transform",{duration:Ai?o:.666*o,delay:Ai?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Ti(.75),p&&p(e)}),M=C(h);return e.useEffect(()=>()=>{clearTimeout(x.current)},[]),(0,D.jsx)(b,(0,u.Z)({appear:o,in:s,nodeRef:k,onEnter:O,onEntered:T,onEntering:P,onExit:A,onExited:M,onExiting:R,addEndListener:e=>{"auto"===v&&(x.current=setTimeout(e,S.current||0)),n&&n(k.current,e)},timeout:"auto"===v?null:v},w,{children:(t,r)=>e.cloneElement(i,(0,u.Z)({style:(0,u.Z)({opacity:0,transform:Ti(.75),visibility:"exited"!==t||s?void 0:"hidden"},Ri[t],y,i.props.style),ref:E},r))}))}));Mi.muiSupportAuto=!0;const ji=Mi;var Ii=o(33703),Di=o(73546),Ni=o(82690);function Li(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zi(e){return e instanceof Li(e).Element||e instanceof Element}function Fi(e){return e instanceof Li(e).HTMLElement||e instanceof HTMLElement}function Bi(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Li(e).ShadowRoot||e instanceof ShadowRoot)}var Vi=Math.max,zi=Math.min,Wi=Math.round;function Ui(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function $i(){return!/^((?!chrome|android).)*safari/i.test(Ui())}function Hi(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Fi(e)&&(o=e.offsetWidth>0&&Wi(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Wi(n.height)/e.offsetHeight||1);var a=(Zi(e)?Li(e):window).visualViewport,s=!$i()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,u=(n.top+(s&&a?a.offsetTop:0))/i,c=n.width/o,d=n.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function Yi(e){var t=Li(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gi(e){return e?(e.nodeName||"").toLowerCase():null}function qi(e){return((Zi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ki(e){return Hi(qi(e)).left+Yi(e).scrollLeft}function Xi(e){return Li(e).getComputedStyle(e)}function Qi(e){var t=Xi(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ji(e,t,r){void 0===r&&(r=!1);var n,o,i=Fi(t),a=Fi(t)&&function(e){var t=e.getBoundingClientRect(),r=Wi(t.width)/e.offsetWidth||1,n=Wi(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=qi(t),l=Hi(e,a,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!r)&&(("body"!==Gi(t)||Qi(s))&&(u=(n=t)!==Li(n)&&Fi(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Yi(n)),Fi(t)?((c=Hi(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ki(s))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function ea(e){var t=Hi(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ta(e){return"html"===Gi(e)?e:e.assignedSlot||e.parentNode||(Bi(e)?e.host:null)||qi(e)}function ra(e,t){var r;void 0===t&&(t=[]);var n=function e(t){return["html","body","#document"].indexOf(Gi(t))>=0?t.ownerDocument.body:Fi(t)&&Qi(t)?t:e(ta(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Li(n),a=o?[i].concat(i.visualViewport||[],Qi(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ra(ta(a)))}function na(e){return["table","td","th"].indexOf(Gi(e))>=0}function oa(e){return Fi(e)&&"fixed"!==Xi(e).position?e.offsetParent:null}function ia(e){for(var t=Li(e),r=oa(e);r&&na(r)&&"static"===Xi(r).position;)r=oa(r);return r&&("html"===Gi(r)||"body"===Gi(r)&&"static"===Xi(r).position)?t:r||function(e){var t=/firefox/i.test(Ui());if(/Trident/i.test(Ui())&&Fi(e)&&"fixed"===Xi(e).position)return null;var r=ta(e);for(Bi(r)&&(r=r.host);Fi(r)&&["html","body"].indexOf(Gi(r))<0;){var n=Xi(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var aa="top",sa="bottom",la="right",ua="left",ca=[aa,sa,la,ua],da=ca.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),fa=[].concat(ca,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),pa=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ha(e){var t=new Map,r=new Set,n=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||function e(o){r.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(n){if(!r.has(n)){var o=t.get(n);o&&e(o)}})),n.push(o)}(e)})),n}var ma={placement:"bottom",modifiers:[],strategy:"absolute"};function ga(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ya(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?ma:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ma,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Zi(e)?ra(e):e.contextElement?ra(e.contextElement):[],popper:ra(t)};var a,u,f=function(e){var t=ha(e);return pa.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((a=[].concat(n,s.options.modifiers),u=a.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:c,options:n});l.push(i||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,r=e.popper;if(ga(t,r)){s.rects={reference:Ji(t,ia(r),"fixed"===s.options.strategy),popper:ea(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:c})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!ga(e,t))return c;function d(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(r).then((function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)})),c}}var va={passive:!0};function ba(e){return e.split("-")[0]}function wa(e){return e.split("-")[1]}function xa(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Sa(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?ba(o):null,a=o?wa(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case aa:t={x:s,y:r.y-n.height};break;case sa:t={x:s,y:r.y+r.height};break;case la:t={x:r.x+r.width,y:l};break;case ua:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=i?xa(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case"start":t[u]=t[u]-(r[c]/2-n[c]/2);break;case"end":t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var _a={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ka(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"==typeof c?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=ua,w=aa,x=window;if(u){var S=ia(r),_="clientHeight",k="clientWidth";if(S===Li(r)&&"static"!==Xi(S=qi(r)).position&&"absolute"===s&&(_="scrollHeight",k="scrollWidth"),S=S,o===aa||(o===ua||o===la)&&"end"===i)w=sa,m-=(d&&S===x&&x.visualViewport?x.visualViewport.height:S[_])-n.height,m*=l?1:-1;if(o===ua||(o===aa||o===sa)&&"end"===i)b=la,p-=(d&&S===x&&x.visualViewport?x.visualViewport.width:S[k])-n.width,p*=l?1:-1}var E,C=Object.assign({position:s},u&&_a),P=!0===c?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Wi(r*o)/o||0,y:Wi(n*o)/o||0}}({x:p,y:m},Li(r)):{x:p,y:m};return p=P.x,m=P.y,l?Object.assign({},C,((E={})[w]=v?"0":"",E[b]=y?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",E)):Object.assign({},C,((t={})[w]=v?m+"px":"",t[b]=y?p+"px":"",t.transform="",t))}var Ea={left:"right",right:"left",bottom:"top",top:"bottom"};function Ca(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ea[e]}))}var Pa={start:"end",end:"start"};function Oa(e){return e.replace(/start|end/g,(function(e){return Pa[e]}))}function Ta(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Bi(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ra(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Aa(e,t,r){return"viewport"===t?Ra(function(e,t){var r=Li(e),n=qi(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=$i();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Ki(e),y:l}}(e,r)):Zi(t)?function(e,t){var r=Hi(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):Ra(function(e){var t,r=qi(e),n=Yi(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Vi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Vi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Ki(e),l=-n.scrollTop;return"rtl"===Xi(o||r).direction&&(s+=Vi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(qi(e)))}function Ma(e,t,r,n){var o="clippingParents"===t?function(e){var t=ra(ta(e)),r=["absolute","fixed"].indexOf(Xi(e).position)>=0&&Fi(e)?ia(e):e;return Zi(r)?t.filter((function(e){return Zi(e)&&Ta(e,r)&&"body"!==Gi(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=Aa(e,r,n);return t.top=Vi(o.top,t.top),t.right=zi(o.right,t.right),t.bottom=zi(o.bottom,t.bottom),t.left=Vi(o.left,t.left),t}),Aa(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ja(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ia(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Da(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,u=r.rootBoundary,c=void 0===u?"viewport":u,d=r.elementContext,f=void 0===d?"popper":d,p=r.altBoundary,h=void 0!==p&&p,m=r.padding,g=void 0===m?0:m,y=ja("number"!=typeof g?g:Ia(g,ca)),v="popper"===f?"reference":"popper",b=e.rects.popper,w=e.elements[h?v:f],x=Ma(Zi(w)?w:w.contextElement||qi(e.elements.popper),l,c,a),S=Hi(e.elements.reference),_=Sa({reference:S,element:b,strategy:"absolute",placement:o}),k=Ra(Object.assign({},b,_)),E="popper"===f?k:S,C={top:x.top-E.top+y.top,bottom:E.bottom-x.bottom+y.bottom,left:x.left-E.left+y.left,right:E.right-x.right+y.right},P=e.modifiersData.offset;if("popper"===f&&P){var O=P[o];Object.keys(C).forEach((function(e){var t=[la,sa].indexOf(e)>=0?1:-1,r=[aa,sa].indexOf(e)>=0?"y":"x";C[e]+=O[r]*t}))}return C}function Na(e,t,r){return Vi(e,zi(t,r))}function La(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Za(e){return[aa,la,sa,ua].some((function(t){return e[t]>=0}))}var Fa=ya({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=Li(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",r.update,va)})),s&&l.addEventListener("resize",r.update,va),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",r.update,va)})),s&&l.removeEventListener("resize",r.update,va)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Sa({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,u={placement:ba(t.placement),variation:wa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ka(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,ka(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:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];Fi(o)&&Gi(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});Fi(n)&&Gi(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=fa.reduce((function(e,r){return e[r]=function(e,t,r){var n=ba(e),o=[ua,aa].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ua,la].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),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[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,g=t.options.placement,y=ba(g),v=l||(y===g||!h?[Ca(g)]:function(e){if("auto"===ba(e))return[];var t=Ca(e);return[Oa(e),t,Oa(t)]}(g)),b=[g].concat(v).reduce((function(e,r){return e.concat("auto"===ba(r)?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=void 0===l?fa:l,c=wa(n),d=c?s?da:da.filter((function(e){return wa(e)===c})):ca,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=Da(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[ba(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,S=new Map,_=!0,k=b[0],E=0;E<b.length;E++){var C=b[E],P=ba(C),O="start"===wa(C),T=[aa,sa].indexOf(P)>=0,R=T?"width":"height",A=Da(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),M=T?O?la:ua:O?sa:aa;w[R]>x[R]&&(M=Ca(M));var j=Ca(M),I=[];if(i&&I.push(A[P]<=0),s&&I.push(A[M]<=0,A[j]<=0),I.every((function(e){return e}))){k=C,_=!1;break}S.set(C,I)}if(_)for(var D=function(e){var t=b.find((function(t){var r=S.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=h?3:1;N>0;N--){if("break"===D(N))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,m=void 0===h?0:h,g=Da(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=ba(t.placement),v=wa(t.placement),b=!v,w=xa(y),x="x"===w?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,k=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(i){var T,R="y"===w?aa:ua,A="y"===w?sa:la,M="y"===w?"height":"width",j=S[w],I=j+g[R],D=j-g[A],N=p?-k[M]/2:0,L="start"===v?_[M]:k[M],Z="start"===v?-k[M]:-_[M],F=t.elements.arrow,B=p&&F?ea(F):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[R],W=V[A],U=Na(0,_[M],B[M]),$=b?_[M]/2-N-U-z-C.mainAxis:L-U-z-C.mainAxis,H=b?-_[M]/2+N+U+W+C.mainAxis:Z+U+W+C.mainAxis,Y=t.elements.arrow&&ia(t.elements.arrow),G=Y?"y"===w?Y.clientTop||0:Y.clientLeft||0:0,q=null!=(T=null==P?void 0:P[w])?T:0,K=j+H-q,X=Na(p?zi(I,j+$-q-G):I,j,p?Vi(D,K):D);S[w]=X,O[w]=X-j}if(s){var Q,J="x"===w?aa:ua,ee="x"===w?sa:la,te=S[x],re="y"===x?"height":"width",ne=te+g[J],oe=te-g[ee],ie=-1!==[aa,ua].indexOf(y),ae=null!=(Q=null==P?void 0:P[x])?Q:0,se=ie?ne:te-_[re]-k[re]-ae+C.altAxis,le=ie?te+_[re]+k[re]-ae-C.altAxis:oe,ue=p&&ie?function(e,t,r){var n=Na(e,t,r);return n>r?r:n}(se,te,le):Na(p?se:ne,te,p?le:oe);S[x]=ue,O[x]=ue-te}t.modifiersData[n]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=ba(r.placement),l=xa(s),u=[ua,la].indexOf(s)>=0?"height":"width";if(i&&a){var c=function(e,t){return ja("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ia(e,ca))}(o.padding,r),d=ea(i),f="y"===l?aa:ua,p="y"===l?sa:la,h=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],m=a[l]-r.rects.reference[l],g=ia(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,b=c[f],w=y-d[u]-c[p],x=y/2-d[u]/2+v,S=Na(b,x,w),_=l;r.modifiersData[n]=((t={})[_]=S,t.centerOffset=S-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ta(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Da(t,{elementContext:"reference"}),s=Da(t,{altBoundary:!0}),l=La(a,n),u=La(s,o,i),c=Za(l),d=Za(u);t.modifiersData[r]={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})}}]}),Ba=o(7960);const Va=e.forwardRef((function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[a,s]=e.useState(null),l=(0,Ii.Z)(e.isValidElement(n)?n.ref:null,r);if((0,Di.Z)(()=>{i||s(function(e){return"function"==typeof e?e():e}(o)||document.body)},[o,i]),(0,Di.Z)(()=>{if(a&&!i)return(0,Ba.Z)(r,a),()=>{(0,Ba.Z)(r,null)}},[r,a,i]),i){if(e.isValidElement(n)){const t={ref:l};return e.cloneElement(n,t)}return(0,D.jsx)(e.Fragment,{children:n})}return(0,D.jsx)(e.Fragment,{children:a?wi.createPortal(n,a):a})}));function za(e,t){const r=X._v[t];return r?"base--"+r:function(e,t){return`base-${e}-${t}`}(e,t)}function Wa(e){return za("Popper",e)}!function(e,t){const r={};t.forEach(t=>{r[t]=za(e,t)})}("Popper",["root"]);function Ua(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function $a(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const Ha=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ya(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,l.Z)(e,Ha),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:d,internalRef:f}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,c.Z)(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,u.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=(0,u.Z)({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ua((0,u.Z)({},o,n)),s=$a(n),l=$a(o),d=t(a),f=(0,c.Z)(null==d?void 0:d.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),p=(0,u.Z)({},null==d?void 0:d.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),h=(0,u.Z)({},d,r,l,s);return f.length>0&&(h.className=f),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:d.ref}}((0,u.Z)({},a,{externalSlotProps:s})),p=(0,Ii.Z)(f,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return mi(r,(0,u.Z)({},d,{ref:p}),o)}const Ga={disableDefaultClasses:!1},qa=e.createContext(Ga);const Ka=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Xa=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Qa(e){return"function"==typeof e?e():e}function Ja(e){return void 0!==e.nodeType}const es=()=>(0,f.Z)({root:["root"]},function(t){const{disableDefaultClasses:r}=e.useContext(qa);return e=>r?"":t(e)}(Wa)),ts={},rs=e.forwardRef((function(t,r){var n;const{anchorEl:o,children:i,direction:a,disablePortal:s,modifiers:c,open:d,placement:f,popperOptions:p,popperRef:h,slotProps:m={},slots:g={},TransitionProps:y}=t,v=(0,l.Z)(t,Ka),b=e.useRef(null),w=(0,Ii.Z)(b,r),x=e.useRef(null),S=(0,Ii.Z)(x,h),_=e.useRef(S);(0,Di.Z)(()=>{_.current=S},[S]),e.useImperativeHandle(h,()=>x.current,[]);const k=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(f,a),[E,C]=e.useState(k),[P,O]=e.useState(Qa(o));e.useEffect(()=>{x.current&&x.current.forceUpdate()}),e.useEffect(()=>{o&&O(Qa(o))},[o]),(0,Di.Z)(()=>{if(!P||!d)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=c&&(e=e.concat(c)),p&&null!=p.modifiers&&(e=e.concat(p.modifiers));const t=Fa(P,b.current,(0,u.Z)({placement:k},p,{modifiers:e}));return _.current(t),()=>{t.destroy(),_.current(null)}},[P,s,c,d,p,k]);const T={placement:E};null!==y&&(T.TransitionProps=y);const R=es(),A=null!=(n=g.root)?n:"div",M=Ya({elementType:A,externalSlotProps:m.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:R.root});return(0,D.jsx)(A,(0,u.Z)({},M,{children:"function"==typeof i?i(T):i}))})),ns=e.forwardRef((function(t,r){const{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:d,open:f,placement:p="bottom",popperOptions:h=ts,popperRef:m,style:g,transition:y=!1,slotProps:v={},slots:b={}}=t,w=(0,l.Z)(t,Xa),[x,S]=e.useState(!0);if(!c&&!f&&(!y||x))return null;let _;if(i)_=i;else if(n){const e=Qa(n);_=e&&Ja(e)?(0,Ni.Z)(e).body:(0,Ni.Z)(null).body}const k=f||!c||y&&!x?void 0:"none",E=y?{in:f,onEnter:()=>{S(!1)},onExited:()=>{S(!0)}}:void 0;return(0,D.jsx)(Va,{disablePortal:s,container:_,children:(0,D.jsx)(rs,(0,u.Z)({anchorEl:n,direction:a,disablePortal:s,modifiers:d,ref:r,open:y?!x:f,placement:p,popperOptions:h,popperRef:m,slotProps:v,slots:b},w,{style:(0,u.Z)({position:"fixed",top:0,left:0,display:k},g),TransitionProps:E,children:o}))})}));var os=o(34168);const is=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],as=(0,h.ZP)(ns,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ss=e.forwardRef((function(e,t){var r;const n=(0,os.Z)(),o=(0,m.Z)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:c,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w,slots:x,slotProps:S}=o,_=(0,l.Z)(o,is),k=null!=(r=null==x?void 0:x.root)?r:null==s?void 0:s.Root,E=(0,u.Z)({anchorEl:i,container:d,disablePortal:f,keepMounted:p,modifiers:h,open:g,placement:y,popperOptions:v,popperRef:b,transition:w},_);return(0,D.jsx)(as,(0,u.Z)({as:a,direction:null==n?void 0:n.direction,slots:{root:k},slotProps:null!=S?S:c},E,{ref:t}))}));var ls=o(27909),us=o(49299);function cs(e){return(0,X.ZP)("MuiTooltip",e)}const ds=(0,L.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),fs=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const ps=(0,h.ZP)(ss,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{['&[data-popper-placement*="bottom"] .'+ds.arrow]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'+ds.arrow]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'+ds.arrow]:(0,u.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'+ds.arrow]:(0,u.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),hs=(0,h.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement"+(0,ne.Z)(r.placement.split("-")[0])]]}})(({theme:e,ownerState:t})=>{return(0,u.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${ds.popper}[data-popper-placement*="left"] &`]:(0,u.Z)({transformOrigin:"right center"},t.isRtl?(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ds.popper}[data-popper-placement*="right"] &`]:(0,u.Z)({transformOrigin:"left center"},t.isRtl?(0,u.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,u.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ds.popper}[data-popper-placement*="top"] &`]:(0,u.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ds.popper}[data-popper-placement*="bottom"] &`]:(0,u.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var r}),ms=(0,h.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,p.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let gs=!1,ys=null,vs={x:0,y:0};function bs(e,t){return r=>{t&&t(r),e(r)}}const ws=e.forwardRef((function(t,r){var n,o,i,a,s,d,p,h,b,w,x,S,_,k,E,C,P,O,T;const R=(0,m.Z)({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:M,components:j={},componentsProps:I={},describeChild:N=!1,disableFocusListener:L=!1,disableHoverListener:Z=!1,disableInteractive:F=!1,disableTouchListener:B=!1,enterDelay:V=100,enterNextDelay:z=0,enterTouchDelay:W=700,followCursor:U=!1,id:$,leaveDelay:H=0,leaveTouchDelay:Y=1500,onClose:G,onOpen:q,open:K,placement:X="bottom",PopperComponent:Q,PopperProps:J={},slotProps:ee={},slots:te={},title:re,TransitionComponent:oe=ji,TransitionProps:ie}=R,ae=(0,l.Z)(R,fs),se=e.isValidElement(M)?M:(0,D.jsx)("span",{children:M}),le=bi(),ue="rtl"===le.direction,[ce,de]=e.useState(),[fe,pe]=e.useState(null),he=e.useRef(!1),me=F||U,ge=e.useRef(),ye=e.useRef(),ve=e.useRef(),be=e.useRef(),[we,xe]=(0,us.Z)({controlled:K,default:!1,name:"Tooltip",state:"open"});let Se=we;const _e=(0,ls.Z)($),ke=e.useRef(),Ee=e.useCallback(()=>{void 0!==ke.current&&(document.body.style.WebkitUserSelect=ke.current,ke.current=void 0),clearTimeout(be.current)},[]);e.useEffect(()=>()=>{clearTimeout(ge.current),clearTimeout(ye.current),clearTimeout(ve.current),Ee()},[Ee]);const Ce=e=>{clearTimeout(ys),gs=!0,xe(!0),q&&!Se&&q(e)},Pe=(0,y.Z)(e=>{clearTimeout(ys),ys=setTimeout(()=>{gs=!1},800+H),xe(!1),G&&Se&&G(e),clearTimeout(ge.current),ge.current=setTimeout(()=>{he.current=!1},le.transitions.duration.shortest)}),Oe=e=>{he.current&&"touchstart"!==e.type||(ce&&ce.removeAttribute("title"),clearTimeout(ye.current),clearTimeout(ve.current),V||gs&&z?ye.current=setTimeout(()=>{Ce(e)},gs?z:V):Ce(e))},Te=e=>{clearTimeout(ye.current),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},H)},{isFocusVisibleRef:Re,onBlur:Ae,onFocus:Me,ref:je}=(0,v.Z)(),[,Ie]=e.useState(!1),De=e=>{Ae(e),!1===Re.current&&(Ie(!1),Te(e))},Ne=e=>{ce||de(e.currentTarget),Me(e),!0===Re.current&&(Ie(!0),Oe(e))},Le=e=>{he.current=!0;const t=se.props;t.onTouchStart&&t.onTouchStart(e)},Ze=Oe,Fe=Te,Be=e=>{Le(e),clearTimeout(ve.current),clearTimeout(ge.current),Ee(),ke.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ke.current,Oe(e)},W)},Ve=e=>{se.props.onTouchEnd&&se.props.onTouchEnd(e),Ee(),clearTimeout(ve.current),ve.current=setTimeout(()=>{Pe(e)},Y)};e.useEffect(()=>{if(Se)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Pe(e)}},[Pe,Se]);const ze=(0,g.Z)(se.ref,je,de,r);re||0===re||(Se=!1);const We=e.useRef(),Ue={},$e="string"==typeof re;N?(Ue.title=Se||!$e||Z?null:re,Ue["aria-describedby"]=Se?_e:null):(Ue["aria-label"]=$e?re:null,Ue["aria-labelledby"]=Se&&!$e?_e:null);const He=(0,u.Z)({},Ue,ae,se.props,{className:(0,c.Z)(ae.className,se.props.className),onTouchStart:Le,ref:ze},U?{onMouseMove:e=>{const t=se.props;t.onMouseMove&&t.onMouseMove(e),vs={x:e.clientX,y:e.clientY},We.current&&We.current.update()}}:{});const Ye={};B||(He.onTouchStart=Be,He.onTouchEnd=Ve),Z||(He.onMouseOver=bs(Ze,He.onMouseOver),He.onMouseLeave=bs(Fe,He.onMouseLeave),me||(Ye.onMouseOver=Ze,Ye.onMouseLeave=Fe)),L||(He.onFocus=bs(Ne,He.onFocus),He.onBlur=bs(De,He.onBlur),me||(Ye.onFocus=Ne,Ye.onBlur=De));const Ge=e.useMemo(()=>{var e;let t=[{name:"arrow",enabled:Boolean(fe),options:{element:fe,padding:4}}];return null!=(e=J.popperOptions)&&e.modifiers&&(t=t.concat(J.popperOptions.modifiers)),(0,u.Z)({},J.popperOptions,{modifiers:t})},[fe,J]),qe=(0,u.Z)({},R,{isRtl:ue,arrow:A,disableInteractive:me,placement:X,PopperComponentProp:Q,touch:he.current}),Ke=(e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement"+(0,ne.Z)(i.split("-")[0])],arrow:["arrow"]};return(0,f.Z)(a,cs,t)})(qe),Xe=null!=(n=null!=(o=te.popper)?o:j.Popper)?n:ps,Qe=null!=(i=null!=(a=null!=(s=te.transition)?s:j.Transition)?a:oe)?i:ji,Je=null!=(d=null!=(p=te.tooltip)?p:j.Tooltip)?d:hs,et=null!=(h=null!=(b=te.arrow)?b:j.Arrow)?h:ms,tt=mi(Xe,(0,u.Z)({},J,null!=(w=ee.popper)?w:I.popper,{className:(0,c.Z)(Ke.popper,null==J?void 0:J.className,null==(x=null!=(S=ee.popper)?S:I.popper)?void 0:x.className)}),qe),rt=mi(Qe,(0,u.Z)({},ie,null!=(_=ee.transition)?_:I.transition),qe),nt=mi(Je,(0,u.Z)({},null!=(k=ee.tooltip)?k:I.tooltip,{className:(0,c.Z)(Ke.tooltip,null==(E=null!=(C=ee.tooltip)?C:I.tooltip)?void 0:E.className)}),qe),ot=mi(et,(0,u.Z)({},null!=(P=ee.arrow)?P:I.arrow,{className:(0,c.Z)(Ke.arrow,null==(O=null!=(T=ee.arrow)?T:I.arrow)?void 0:O.className)}),qe);return(0,D.jsxs)(e.Fragment,{children:[e.cloneElement(se,He),(0,D.jsx)(Xe,(0,u.Z)({as:null!=Q?Q:ss,placement:X,anchorEl:U?{getBoundingClientRect:()=>({top:vs.y,left:vs.x,right:vs.x,bottom:vs.y,width:0,height:0})}:ce,popperRef:We,open:!!ce&&Se,id:_e,transition:!0},Ye,tt,{popperOptions:Ge,children:({TransitionProps:e})=>(0,D.jsx)(Qe,(0,u.Z)({timeout:le.transitions.duration.shorter},e,rt,{children:(0,D.jsxs)(Je,(0,u.Z)({},nt,{children:[re,A?(0,D.jsx)(et,(0,u.Z)({},ot,{ref:pe})):null]}))}))}))]})}));var xs=o(59948);function Ss(e){return e.substring(2).toLowerCase()}function _s(t){const{children:r,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),u=e.useRef(!1),c=e.useRef(!1);e.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const d=(0,Ii.Z)(r.ref,l),f=(0,xs.Z)(e=>{const t=c.current;c.current=!1;const r=(0,Ni.Z)(l.current);if(!u.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),o||!n&&t||i(e)}),p=e=>t=>{c.current=!0;const n=r.props[e];n&&n(t)},h={ref:d};return!1!==a&&(h[a]=p(a)),e.useEffect(()=>{if(!1!==a){const e=Ss(a),t=(0,Ni.Z)(l.current),r=()=>{s.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",r)}}},[f,a]),!1!==o&&(h[o]=p(o)),e.useEffect(()=>{if(!1!==o){const e=Ss(o),t=(0,Ni.Z)(l.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}},[f,o]),(0,D.jsx)(e.Fragment,{children:e.cloneElement(r,h)})}o(88052),o(32349),o(81919),o(30050);var ks=o(20745);function Es(e){return(Es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ps(n.key),n)}}function Ps(e){var t=function(e,t){if("object"!=Es(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Es(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Es(t)?t:String(t)}var Os=0,Ts=function(){function e(t){var r=t.item,n=t.statement,o=t.graph,i=t.matchingCode;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._item=r,this._statement=n,this._graph=o,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Os),this._matchingCode=i||"correct",Os+=1}var t,r,n;return t=e,(r=[{key:"getGraph",value:function(){return this._graph||(this._statement?this._graph=this._statement.getGraph():this._parent&&(this._graph=this._parent.getGraph())),this._graph}},{key:"isReadOnly",value:function(){if(!("_readOnly"in this)){var e=this.getParent();e&&e._readOnly?this._readyOnly=!0:this._readOnly=!(!this._statement||!this._statement.getNamedGraph())}return this._readOnly}},{key:"remove",value:function(){}},{key:"setSubject",value:function(e){}},{key:"getValue",value:function(){}},{key:"setValue",value:function(e,t){}},{key:"getGist",value:function(){return Qo.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var r=e,n=this.getItem().getValueTemplate();n&&r.length>0&&(-1===n.indexOf("$1")&&(n+="$1"),r=n.replace("$1",r)),this.setValue(r,t)}},{key:"getCardinalityTracker",value:function(){return this._cardinalityTracker}},{key:"setCardinalityTracker",value:function(e){this._cardinalityTracker=e}},{key:"getItem",value:function(){return this._item}},{key:"getStatement",value:function(){return this._statement}},{key:"getParent",value:function(){return this._parent}},{key:"setParent",value:function(e){this._parent=e}},{key:"isValid",value:function(){}},{key:"getMatchingCode",value:function(){return this._matchingCode}},{key:"setMatchingCode",value:function(e){this._matchingCode=e}},{key:"setAncestorValid",value:function(e){this._ancestorValid=e,this.updateAssertions()}},{key:"updateAssertions",value:function(){}},{key:"getHash",value:function(){return this._hash}},{key:"addListener",value:function(e){this._listeners||(this._listeners=[]),this._listeners.push(e)}},{key:"removeListener",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"bindingChange",value:function(e){if(this._listeners)for(var t=0;t<this._listeners.length;t++)this._listeners[t](e);this._parent&&this._parent.bindingChange(e),this._cardinalityTracker&&this._cardinalityTracker.touch()}},{key:"_isValidObjectValue",value:function(e){var t=e;if("string"!=typeof t&&null!==t)throw new Error("In a binding every object value need to be a string!");var r=this._item.getPattern();return r?null!=(t=Qo.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(r,"$")).test(t):null!=t&&""!==t}},{key:"_isValidPredicateValue",value:function(e){if("string"!=typeof e&&null!==e)throw new Error("In a binding every predicate need to be a string!");return null!=e&&""!==e}}])&&Cs(t.prototype,r),n&&Cs(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Rs={UNKNOWN:"unknown",OK:"correct",TOO_FEW_VALUES:"few",TOO_FEW_VALUES_MIN:"min",TOO_FEW_VALUES_PREF:"pref",TOO_MANY_VALUES:"many",AT_MOST_ONE_CHILD:"atmostonechild",AT_LEAST_ONE_CHILD:"atleastonechild",EXACTLY_ONE_CHILD:"exactlyonechild",WRONG_VALUE:"value",WRONG_PATTERN:"pattern",WRONG_NODETYPE:"nodetype",WRONG_DATATYPE:"datatype",MISSING_LANGUAGE:"language",MISSING_CONSTRAINTS:"constraints"};function As(e){return(As="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ms(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,js(n.key),n)}}function js(e){var t=function(e,t){if("object"!=As(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=As(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==As(t)?t:String(t)}var Is=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._listener=[],this._limits=t.getCardinality()||{},this._counter=0,this._depsOk=!0,this._listeners=[],this._code=0}var t,r,n;return t=e,(r=[{key:"addListener",value:function(e){return this._listeners.push(e),e}},{key:"removeListener",value:function(e){this._listeners.splice(this._listeners.indexOf(e),1)}},{key:"cardinalityChanged",value:function(){this._listeners.forEach((function(e){return e()}))}},{key:"getCardinality",value:function(){return this._counter}},{key:"isMax",value:function(){return null!=this._limits.max&&this._counter>=this._limits.max}},{key:"isMin",value:function(){return null!=this._limits.min&&this._counter<=this._limits.min}},{key:"isFine",value:function(){return this._fine}},{key:"isDepsOk",value:function(){return this._depsOk}},{key:"getCode",value:function(){return this._code}},{key:"setCode",value:function(e){this._code!==e&&(this._code=e,this.cardinalityChanged())}},{key:"setDepsOk",value:function(e){this._depsOk!==e&&(this._code=Rs.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=Rs.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=Rs.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=Rs.UNKNOWN,this.cardinalityChanged()}},{key:"_checkCounter",value:function(){null!=this._limits.max&&this._counter===this._limits.max?this._fine=!0:null!=this._limits.max&&this._counter>this._limits.max?this._fine=!1:null!=this._limits.min&&this._counter===this._limits.min?this._fine=!0:null!=this._limits.min&&this._counter<this._limits.min&&(this._fine=!1),this.cardinalityChanged()}}])&&Ms(t.prototype,r),n&&Ms(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ds(e){return(Ds="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ns(e){return function(e){if(Array.isArray(e))return Ls(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ls(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ls(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Zs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fs(n.key),n)}}function Fs(e){var t=function(e,t){if("object"!=Ds(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ds(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ds(t)?t:String(t)}function Bs(e,t,r){return t=Ws(t),function(e,t){if(t&&("object"===Ds(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Ws(e).constructor):t.apply(e,r))}function Vs(){return(Vs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=zs(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function zs(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ws(e)););return e}function Ws(e){return(Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Us(e,t){return(Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var $s=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=Bs(this,t,[e]);var n=e.constraints,o=void 0===n?[]:n,i=e.childrenRootUri,a=void 0===i?null:i;return r._constraints=o,r._childBindings=r._item.getChildren().map((function(){return[]})),r._rootUri=a,r._validPredicate=!0,r._validObject=!0,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate()),r._validObject=r._isValidObjectValue(r._statement.getValue(),r._statement.getType())),r._cachedChildBindings=null,r}var r,n,o;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&&Us(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement&&this._statement.isObjectBlank()?"":this._statement&&this._statement.getValue()}},{key:"oneChildValidityChanged",value:function(e){return e!==this._oneValidChild&&!(!e&&(delete this._oneValidChild,this.isValid()))&&(this._oneValidChild=e,this._notifyValidityChange(e&&this._validPredicate&&this._validObject),this._validPredicate&&this._validObject)}},{key:"setSubject",value:function(e){this._statement?this._statement.setSubject(e):this.getChildBindings().forEach((function(t){return t.setSubject(e)}))}},{key:"getChildrenRootUri",value:function(){return this._statement?this._statement.getValue():null!=this._rootUri?this._rootUri:null!=this._parent?this._parent.getChildrenRootUri():void 0}},{key:"addChildBinding",value:function(e){this.addChildBindings([e])}},{key:"addChildBindings",value:function(e){var t=this;if(this._cachedChildBindings=null,Array.isArray(e)&&0!==e.length)for(var r=e[0].getItem(),n=this._item.getChildren(),o=function(){if(r===n[i]){var o=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new Is(r);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(o),o.increment()}),t),1}},i=n.length;i>=0&&!o();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e.getItem()===t[r]){this._childBindings[r].splice(this._childBindings[r].indexOf(e),1),delete e._parent,e.getCardinalityTracker().decrement();break}this.oneChildValidityChanged(),this.bindingChange(e)}},{key:"getChildBindingsFor",value:function(e){for(var t=this._item.getChildren(),r=t.length;r>=0;r--)if(e===t[r])return this._childBindings[r]}},{key:"getItemGroupedChildBindings",value:function(){return this._childBindings}},{key:"getChildBindings",value:function(){var e;return null==this._cachedChildBindings&&(this._childBindings&&this._childBindings.length>0?this._cachedChildBindings=(e=[]).concat.apply(e,Ns(this._childBindings)):this._cachedChildBindings=[]),this._cachedChildBindings}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!0)):(this._validPredicate=!1,!1!==t&&this._validObject&&("URI"===this.getItem().getNodetype()||this._oneValidChild)&&this._notifyValidityChange(!1)),this.updateAssertions()}},{key:"setValue",value:function(e){if("URI"!==this.getItem().getNodetype()||!this._statement)throw new Error("Cannot change the value of a group unless its nodetype is URI and also that it corresponds to a statement");var t=this._validObject;this._isValidObjectValue(e,"uri")?(this._validObject=!0,this._statement._o.type="uri",this._statement.setValue(e),this._constraints.forEach((function(t){return t.setSubject(e)})),this.getChildBindings().forEach((function(t){return t.setSubject(e)})),!t&&this._validPredicate&&this._notifyValidityChange(!0)):(this._validObject=!1,t&&this._validPredicate&&this._notifyValidityChange(!1))}},{key:"getPredicate",value:function(){return this._statement?this._statement.getPredicate():void 0}},{key:"remove",value:function(){this._oneValidChild=!1,this.setAncestorValid(!1),null!=this._parent&&this._parent.removeChildBinding(this),Vs(Ws(t.prototype),"remove",this).call(this,arguments)}},{key:"_isValid",value:function(){return"URI"===this.getItem().getNodetype()?this._validObject&&this._validPredicate:this._oneValidChild&&this._validPredicate&&this._validObject}},{key:"isValid",value:function(){return null==this._oneValidChild&&(this._oneValidChild=this._forceOneValidChildCheck()),this._isValid()}},{key:"setAncestorValid",value:function(e){var t=this;this._ancestorValid=e,this.updateAssertions(),this._childBindings.forEach((function(r){return r.forEach((function(r){return r.setAncestorValid(e&&t._isValid())}),t)}),this)}},{key:"updateAssertions",value:function(){null==this._oneValidChild&&this.isValid();var e=this._ancestorValid&&this._isValid();null!=this._statement&&this._statement.setAsserted(e),this._constraints.forEach((function(t){return t.setAsserted(e)})),this.getChildBindings().forEach((function(e){return e.updateAssertions()}))}},{key:"_forceOneValidChildCheck",value:function(){return this._childBindings.some((function(e){return e.some((function(e){return e.isValid()}))}))}},{key:"_notifyValidityChange",value:function(e){this._parent&&this._parent.oneChildValidityChanged(e)||(this.updateAssertions(),this._childBindings.forEach((function(t){return t.forEach((function(t){return t.setAncestorValid(e)}))})))}},{key:"_isValidObjectValue",value:function(e,r){return("URI"!==this.getItem().getNodetype()||"uri"===r)&&Vs(Ws(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&Zs(r.prototype,n),o&&Zs(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ts);function Hs(e){return(Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ys(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gs(n.key),n)}}function Gs(e){var t=function(e,t){if("object"!=Hs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hs(t)?t:String(t)}var qs=0,Ks=function(e,t,r){null==r||""===r||Array.isArray(r)&&0===r.length?delete e[t]:e[t]=r},Xs=function(){function e(t){var r=t.source,n=void 0===r?{}:r,o=t.bundle,i=t.itemStore;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=i,this._source=n,this._bundle=o,qs+=1,this._internalId=qs,this._styles=["heading","invisible","invisibleGroup","stars","commentOn","multiline","horizontalRadioButtons","verticalRadioButtons","horizontalCheckBoxes","verticalCheckBoxes","nonEditable","expandable","compact","nonCompact","dropDown","table","firstcolumnfixedtable","tree","externalLink","internalLink","noLink","image","label","tooltip","strictmatch","relaxedDatatypeMatch","viewAllTranslations","filterTranslations","email","atLeastOneChild","atMostOneChild","exactlyOneChild","noLabelInPresent","autoInitDate","autoUpdateDate","autoUUID","autoValue","showURI","showLink","showValue","showDescriptionInPresent","showDescriptionInEdit","textAsChoice","preserveOrderOfChoices","linkWithLabel","deprecated","inline","truncate","noTruncate","card","cardInPresent","cardInEdit"],this._getLocalizedValue=Qo.getLocalizedValue}var t,r,n;return t=e,(r=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){Ks(this.getSource(!0),"id",e),delete s["@id"]}},{key:"getType",value:function(e){var t=this.getSource(e);return t.type||t["@type"]}},{key:"setType",value:function(e){Ks(this.getSource(!0),"type",e),delete s["@type"],this.refreshExtends()}},{key:"getExtends",value:function(){return this.getSource(!0).extends||""}},{key:"refreshExtends",value:function(){this.isExtention&&this.setExtends(this.getExtends())}},{key:"setExtends",value:function(e){var t=this.getSource(!0),r=this._itemStore.getItem(e);this._source=null==r?t:this._itemStore.createExtendedSource(r.getSource(),t),""===e||null==e?delete t.extends:t.extends=e}},{key:"isExtention",value:function(){return null!=this.getExtends()}},{key:"_getText",value:function(e,t,r){var n=this.getSource(r);return t?Qo.getLocalizedValue(n[e]):Qo.getLocalizedValue(n[e]).value}},{key:"_setText",value:function(e,t,r){var n=this.getSource(!0);n[e]=this._setLangHash(n[e],t,r),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){Ks(this.getSource(!0),e,t),this.refreshExtends()}},{key:"getLabel",value:function(e,t){return this._getText("label",e,t)}},{key:"setLabel",value:function(e,t){this._setText("label",e,t)}},{key:"getLabelMap",value:function(e){return this.getSource(e).label}},{key:"setLabelMap",value:function(e){this._setTextMap("label",e)}},{key:"getEditLabel",value:function(e,t){return this._getText("editlabel",e,t)}},{key:"setEditLabel",value:function(e,t){this._setText("editlabel",e,t)}},{key:"getEditLabelMap",value:function(e){return this.getSource(e).editlabel}},{key:"setEditLabelMap",value:function(e){this._setTextMap("editlabel",e)}},{key:"getDescription",value:function(e,t){return this._getText("description",e,t)}},{key:"setDescription",value:function(e,t){this._setText("description",e,t)}},{key:"getDescriptionMap",value:function(e){return this.getSource(e).description}},{key:"setDescriptionMap",value:function(e){this._setTextMap("description",e)}},{key:"getEditDescription",value:function(e,t){return this._getText("editdescription",e,t)}},{key:"setEditDescription",value:function(e,t){this._setText("editdescription",e,t)}},{key:"getEditDescriptionMap",value:function(e){return this.getSource(e).editdescription}},{key:"setEditDescriptionMap",value:function(e){this._setTextMap("editdescription",e)}},{key:"getHelp",value:function(e,t){return this._getText("help",e,t)}},{key:"setHelp",value:function(e,t){this._setText("help",e,t)}},{key:"getHelpMap",value:function(e){return this.getSource(e).help}},{key:"setHelpMap",value:function(e){this._setTextMap("help",e)}},{key:"getPlaceholder",value:function(e,t){return this._getText("placeholder",e,t)}},{key:"setPlaceholder",value:function(e,t){this._setText("placeholder",e,t)}},{key:"getPlaceholderMap",value:function(e){return this.getSource(e).placeholder}},{key:"setPlaceholderMap",value:function(e){this._setTextMap("placeholder",e)}},{key:"getPurpose",value:function(e,t){return this._getText("purpose",e,t)}},{key:"setPurpose",value:function(e,t){this._setText("purpose",e,t)}},{key:"getPurposeMap",value:function(e){return this.getSource(e).purpose}},{key:"setPurposeMap",value:function(e){this._setTextMap("purpose",e)}},{key:"getSpecification",value:function(e,t){return this._getText("specification",e,t)}},{key:"setSpecification",value:function(e,t){this._setText("specification",e,t)}},{key:"getSpecificationMap",value:function(e){return this.getSource(e).specification}},{key:"setSpecificationMap",value:function(e){this._setTextMap("specification",e)}},{key:"getText",value:function(e,t,r){var n=this.getSource(r).text||{};return t?Qo.getLocalizedValue(n[e]):Qo.getLocalizedValue(n[e]).value}},{key:"setText",value:function(e,t,r){var n=this.getSource(!0),o=n.text=n.text||{};o[e]=this._setLangHash(o[e],t,r),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var r=this.getSource(!0),n=r.text=r.text||{};Ks(n,e,t),this.refreshExtends()}},{key:"getEnhanced",value:function(e){var t=this.getSource(!0);return"boolean"==typeof t.enhanced?t.enhanced:t.enhanced&&t.enhanced[e]||!1}},{key:"setEnhanced",value:function(e,t){var r=this.getSource(!0);"boolean"==typeof e?!0===e?r.enhanced=!0:delete r.enhanced:(r.enhanced="boolean"==typeof r.enhanced?{}:r.enhanced||{},t?r.enhanced[e]=!0:(delete r.enhanced[e],0===Object.keys(r).length&&delete r.enhanced)),this.setExtends(this.getExtends())}},{key:"getProperty",value:function(e){var t=null,r=this.getSource(e);return r&&null!=(t=r.property)&&""!==t&&(t=xe(t)),t}},{key:"setProperty",value:function(e){Ks(this.getSource(!0),"property",e),this.refreshExtends()}},{key:"getURIValueLabelProperties",value:function(e){var t=this.getSource(e).uriValueLabelProperties;return null!=t?t.map((function(e){return xe(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){Ks(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var r={};return Object.keys(t).forEach((function(e){var n=t[e];Array.isArray(n)?r[xe(e)]=n.map((function(e){return xe(e)})):r[xe(e)]=xe(n)})),r}return t}},{key:"setConstraints",value:function(e){Ks(this.getSource(!0),"constraints",e),this.refreshExtends()}},{key:"getDeps",value:function(e){var t=this.getSource(e).deps;return null!=t?t.map((function(e){return"*"!==e&&".."!==e?xe(e):e})):t}},{key:"setDeps",value:function(e){Ks(this.getSource(!0),"deps",e),this.refreshExtends()}},{key:"getDatatype",value:function(e){var t=this.getSource(e).datatype;return null!=t&&""!==t?Array.isArray(t)?t.map((function(e){return xe(e)})):xe(t):t}},{key:"setDatatype",value:function(e){Ks(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){Ks(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){Ks(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){Ks(this.getSource(!0),"member",e),this.refreshExtends()}},{key:"getNodetype",value:function(e){var t=this.getSource(e);return t.nodetype||t.nodeType}},{key:"setNodetype",value:function(e){Ks(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){Ks(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){Ks(this.getSource(!0),"valueTemplate",e),this.refreshExtends()}},{key:"getCardinality",value:function(e){if(!this.getProperty()&&"text"===this.getType())return{min:1,max:1};var t=this.getSource(e);return t&&"cardinality"in t?t.cardinality:this.getProperty()?{}:{max:1}}},{key:"setCardinality",value:function(e){Ks(this.getSource(!0),"cardinality",e),this.refreshExtends()}},{key:"isEnabled",value:function(e){var t=this.getSource(e);return null==t.enabled||t.enabled}},{key:"setEnabled",value:function(e){var t=this.getSource(!0);e?delete t.enabled:t.enabled=e,this.refreshExtends()}},{key:"getClasses",value:function(e){var t=this.getSource(e);return t&&"cls"in t?t.cls:[]}},{key:"setClasses",value:function(e){Ks(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var r=this.getSource(t);return!!this.hasStyle(e,t)||null!=r.cls&&r.cls.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getAvailableStyles",value:function(){return this._styles}},{key:"getStyles",value:function(e){return this.getSource(e).styles||[]}},{key:"setStyles",value:function(e){Ks(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var r=this.getSource(t);return!(!r||!("styles"in r))&&r.styles.some((function(t){return t.toLowerCase()===e.toLowerCase()}))}},{key:"getSource",value:function(e,t){if(!0===e)return this._source._extendedSource||this._source;if(!1===e){var r=this._itemStore.getItem(this.getExtends());return null==r?this._source:r.getSource()}return this._source}},{key:"getBundle",value:function(){return this._bundle}},{key:"toStringShort",value:function(){return"'".concat(this.getLabel(),"'").concat(this.getId()?" (ID: '".concat(this.getId(),"')"):"")}},{key:"toString",value:function(){var e=[];return this.getId()&&e.push("ID: '".concat(this.getId(),"'")),e.push("TYPE: '".concat(this.getType(),"'")),this.getProperty()&&e.push("PROPERTY: '".concat(this.getProperty(),"'")),this.getExtends()&&e.push("EXTENDS: '".concat(this.getExtends(),"'")),"'".concat(this.getLabel(),"' (").concat(e.join(", "),")")}},{key:"_setLangHash",value:function(e,t,r){var n=e||{};if("string"==typeof t)"string"==typeof r?n[r]=t:n[""]=t;else if("object"===Hs(t)&&null!==t)return t;return n}}])&&Ys(t.prototype,r),n&&Ys(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qs(e){return(Qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Js(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,el(n.key),n)}}function el(e){var t=function(e,t){if("object"!=Qs(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qs(t)?t:String(t)}function tl(e,t,r){return t=ol(t),function(e,t){if(t&&("object"===Qs(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],ol(e).constructor):t.apply(e,r))}function rl(){return(rl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=nl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function nl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ol(e)););return e}function ol(e){return(ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function il(e,t){return(il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var al=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=tl(this,t,[e]))._children=e.children,null!=r._source.content&&(r._source.items=r._source.content,delete r._source.content),r._forceChildrenClones=!1,r._parent=null,r}var r,n,o;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&&il(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){var t,r=e&&this.isExtention(),n=r?this._ochildren:this._children;return null==n&&(n=this._itemStore.getChildren(this,r),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=n).forEach((function(e){e.__label=(e.getLabel()||"").toLowerCase()})),t.sort((function(e,t){return null!=e._source.priority?null!=t._source.priority?e._source.priority>t._source.priority?-1:e._source.priority<t._source.priority?1:0:e._source.priority>0?-1:1:null!=t._source.priority?t._source.priority>0?1:-1:e.__label>t.__label?1:e.__label<t.__label?-1:0}))),this["_".concat(r?"o":"","children")]=n),n}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){rl(ol(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return rl(ol(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&Js(r.prototype,n),o&&Js(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Xs);function sl(e){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ul(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cl(n.key),n)}}function cl(e){var t=function(e,t){if("object"!=sl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sl(t)?t:String(t)}function dl(e,t,r){return t=hl(t),function(e,t){if(t&&("object"===sl(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],hl(e).constructor):t.apply(e,r))}function fl(){return(fl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=pl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function pl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hl(e)););return e}function hl(e){return(hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ml(e,t){return(ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var gl=function(e){function t(){return ll(this,t),dl(this,t,arguments)}var r,n,o;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&&ml(e,t)}(t,e),r=t,(n=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var r=function(){return{min:1,max:1,pref:1}},n=fl(hl(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=n.map((function(e){var t=Object.create(e);return t.getCardinality=r,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&ul(r.prototype,n),o&&ul(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(al);function yl(e){return(yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wl(n.key),n)}}function wl(e){var t=function(e,t){if("object"!=yl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yl(t)?t:String(t)}function xl(e,t,r){return t=Sl(t),function(e,t){if(t&&("object"===yl(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Sl(e).constructor):t.apply(e,r))}function Sl(e){return(Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _l(e,t){return(_l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var kl=function(e){function t(){return vl(this,t),xl(this,t,arguments)}var r,n,o;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&&_l(e,t)}(t,e),r=t,(n=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&bl(r.prototype,n),o&&bl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Xs);function El(e){return(El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pl(n.key),n)}}function Pl(e){var t=function(e,t){if("object"!=El(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=El(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==El(t)?t:String(t)}function Ol(e,t,r){return t=Al(t),function(e,t){if(t&&("object"===El(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Al(e).constructor):t.apply(e,r))}function Tl(){return(Tl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Rl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Rl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Al(e)););return e}function Al(e){return(Al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ml(e,t){return(Ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jl=function(e){null!=e&&e.forEach((function(e){e.value=xe(e.value)}))},Il=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ol(this,t,[e]))._ontologyStore=e.ontologyStore,r}var r,n,o;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&&Ml(e,t)}(t,e),r=t,(n=[{key:"getChoices",value:function(e){return this.getStaticChoices(e)||this.getDynamicChoices(e)||[]}},{key:"hasChoices",value:function(e){var t=this.getSource(e);return null!=t.ontologyUrl||null!=t.choices}},{key:"hasStaticChoices",value:function(e){return null!=this.getSource(e).choices}},{key:"getStaticChoices",value:function(e){var t=this.getSource(e);if(t.choices){var r=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(r&&jl(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(r&&jl(t.choices),this._staticIsSorted=!0)}return t.choices}},{key:"setStaticChoices",value:function(e){var t=this.getSource(!0);t.choices!==e&&(null!=e&&(this._origStaticIsSorted=!0),t.choices=e,this.refreshExtends())}},{key:"setExtends",value:function(e){Tl(Al(t.prototype),"setExtends",this).call(this,e),delete this._staticIsSorted,delete this._origStaticIsSorted}},{key:"getDynamicChoices",value:function(e){var t=this;if(null==this._dynamicChoices){if(null==e)return this._dynamicChoices=this._ontologyStore.getChoices(this),this._dynamicChoices;this._ontologyStore.getChoices(this,(function(r){t._dynamicChoices=r,null==t._dynamicChoices&&(console.log("Failed lookup of choices for ".concat(t.getLabel())),console.log("OntologyUrl is: ".concat(t._source.ontologyUrl))),e(t._dynamicChoices)}))}else{if(null==e)return this._dynamicChoices;e(this._dynamicChoices)}}},{key:"getOntologyUrl",value:function(e){var t=this.getSource(e).ontologyUrl;return null!=t&&""!==t?xe(t):t}},{key:"setOntologyUrl",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.ontologyUrl:t.ontologyUrl=e,this.refreshExtends()}},{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties||["http://www.w3.org/2000/01/rdf-schema#label"]}},{key:"getParentProperty",value:function(e){var t=this.getSource(e).parentProperty;return null!=t&&""!==t?xe(t):t}},{key:"setParentProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.parentProperty:t.parentProperty=e,this.refreshExtends()}},{key:"getHierarchyProperty",value:function(e){var t=this.getSource(e).hierarchyProperty;return null!=t&&""!==t?xe(t):t}},{key:"setHierarchyProperty",value:function(e){var t=this.getSource(!0);null==e||""===e?delete t.hierarchyProperty:t.hierarchyProperty=e,this.refreshExtends()}},{key:"isParentPropertyInverted",value:function(e){return!0===this.getSource(e).isParentPropertyInverted}},{key:"setParentPropertyInverted",value:function(e){var t=this.getSource(!0);!0===e?t.isParentPropertyInverted=!0:delete t.isParentPropertyInverted,this.refreshExtends()}},{key:"isHierarchyPropertyInverted",value:function(e){return!0===this.getSource(e).isHierarchyPropertyInverted}},{key:"setHierarchyPropertyInverted",value:function(e){var t=this.getSource(!0);e?t.isHierarchyPropertyInverted=!0:delete t.isHierarchyPropertyInverted,this.refreshExtends()}}])&&Cl(r.prototype,n),o&&Cl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Xs);o(28436);function Dl(e){return(Dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nl(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ll(n.key),n)}}function Ll(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dl(t)?t:String(t)}function Zl(e,t,r){return t=Vl(t),function(e,t){if(t&&("object"===Dl(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Vl(e).constructor):t.apply(e,r))}function Fl(){return(Fl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Bl(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Bl(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Vl(e)););return e}function Vl(e){return(Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zl(e,t){return(zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Wl=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Zl(this,t,[e]))._validObject=!0,r._validPredicate=!0,r._excludeFromTreeValidityCheck=!1,r._statement&&(r._validPredicate=r._isValidPredicateValue(r._statement.getPredicate(),!0),r._validObject=r._isValidObjectValue(r._statement.getValue())),r}var r,n,o;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&&zl(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var r="string"==typeof e?e.trim():e,n=this._validObject;this._isValidObjectValue(r)?(this._statement.setValue(r,t),this._validObject=!0,!0===n||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==r&&null!==r||this._statement.setValue("",t),this._validObject=!1,!1!==n&&!0===this._validPredicate&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"setSubject",value:function(e){this._statement.setSubject(e)}},{key:"getPredicate",value:function(){return this._statement.getPredicate()}},{key:"setPredicate",value:function(e){var t=this._validPredicate;this._isValidPredicateValue(e)?(this._statement.setPredicate(e),this._validPredicate=!0,!0!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!0)):(this._validPredicate=!1,!1!==t&&!0===this._validObject&&this._parent.oneChildValidityChanged(!1)),this.updateAssertions()}},{key:"getLanguage",value:function(){return this._statement.getLanguage()}},{key:"setLanguage",value:function(e,t){this._statement.setLanguage(e,t),t||this.bindingChange(this)}},{key:"getDatatype",value:function(){return this._statement.getDatatype()}},{key:"setDatatype",value:function(e){this._statement.setDatatype(xe(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Fl(Vl(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){var e=this._ancestorValid&&this._validObject&&this._validPredicate;this._statement.setAsserted(e,!0),this.bindingChange(this)}},{key:"isValid",value:function(){return this._validObject&&this._validPredicate&&!this._excludeFromTreeValidityCheck}}])&&Nl(r.prototype,n),o&&Nl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Ts);function Ul(e){return(Ul="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hl(n.key),n)}}function Hl(e){var t=function(e,t){if("object"!=Ul(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ul(t)?t:String(t)}function Yl(e,t,r){return t=Kl(t),function(e,t){if(t&&("object"===Ul(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Kl(e).constructor):t.apply(e,r))}function Gl(){return(Gl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=ql(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function ql(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Kl(e)););return e}function Kl(e){return(Kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xl(e,t){return(Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ql="http://www.w3.org/2000/01/rdf-schema#label",Jl="http://www.w3.org/2000/01/rdf-schema#seeAlso",eu=function(e){function t(e){var r,n=e.choice,o=e.item,i=e.statement,a=e.matchingCode;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Yl(this,t,[{choice:n,item:o,statement:i,matchingCode:a}]))._choice=n,r._validPredicate=null!=o.getProperty(),r}var r,n,o;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&&Xl(e,t)}(t,e),r=t,o=[{key:"seeAlso",get:function(){return Jl}}],(n=[{key:"setChoice",value:function(e,t){this._choice=e,null==e?this.setValue(null,null,t):this.getValue()!==e.value&&this.setValue(e.value,e,t),e&&e.mismatch?this.setMatchingCode(Rs.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==Rs.WRONG_VALUE||this.setMatchingCode(Rs.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,r,n){var o=this.getValue();Gl(Kl(t.prototype),"setValue",this).call(this,e,r,n);var i=this._statement.getGraph();if(i.findAndRemove(o,Ql,void 0,n),i.findAndRemove(o,Jl,void 0,n),null!=e&&null!=r&&(r.seeAlso&&r.inlineSeeAlso&&i.create(e,Jl,r.seeAlso,!0,n),!0===r.inlineLabel)){var a=r.label||{};Object.keys(a).forEach((function(t){return i.create(e,Ql,{value:a[t],lang:t,type:"literal"},!0,n)}))}}}])&&$l(r.prototype,n),o&&$l(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Wl);function tu(e){return(tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ru(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nu(n.key),n)}}function nu(e){var t=function(e,t){if("object"!=tu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tu(t)?t:String(t)}function ou(e,t,r){return t=iu(t),function(e,t){if(t&&("object"===tu(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],iu(e).constructor):t.apply(e,r))}function iu(e){return(iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function au(e,t){return(au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var su=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=ou(this,t,[e]))._objectBinding=e.objectBinding,r}var r,n,o;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&&au(e,t)}(t,e),r=t,(n=[{key:"remove",value:function(){}},{key:"setValue",value:function(e){this._objectBinding.setPredicate(e)}},{key:"getValue",value:function(){return this._objectBinding.getPredicate()}},{key:"isValid",value:function(){return!1}},{key:"updateAssertions",value:function(){}}])&&ru(r.prototype,n),o&&ru(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(eu);function lu(e){return(lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cu(n.key),n)}}function cu(e){var t=function(e,t){if("object"!=lu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=lu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lu(t)?t:String(t)}function du(e,t,r){return t=fu(t),function(e,t){if(t&&("object"===lu(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],fu(e).constructor):t.apply(e,r))}function fu(e){return(fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pu(e,t){return(pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var hu=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=du(this,t,[e]);var n=e.statement,o=e.constraints;r._statement=void 0,r._validPredicate=!0,r._constraints=[];var i,a=r._item.getChildren(),s=a[1];i=s instanceof al?new $s({item:s,statement:n,constraints:o}):s instanceof Il?new eu({item:s,statement:n}):new Wl({item:s,statement:n});var l=new su({item:a[0],objectBinding:i});return r.addChildBinding(l),r.addChildBinding(i),r}var r,n,o;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&&pu(e,t)}(t,e),r=t,(n=[{key:"getPredicateBinding",value:function(){return this._childBindings[0][0]}},{key:"getObjectBinding",value:function(){return this._childBindings[1][0]}},{key:"getGraph",value:function(){return this.getObjectBinding().getGraph()}}])&&uu(r.prototype,n),o&&uu(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}($s);function mu(e){return(mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vu(n.key),n)}}function vu(e){var t=function(e,t){if("object"!=mu(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mu(t)?t:String(t)}function bu(e,t,r){return t=Su(t),function(e,t){if(t&&("object"===mu(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Su(e).constructor):t.apply(e,r))}function wu(){return(wu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=xu(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function xu(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Su(e)););return e}function Su(e){return(Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _u(e,t){return(_u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ku,Eu,Cu,Pu,Ou,Tu=function(e){function t(){return gu(this,t),bu(this,t,arguments)}var r,n,o;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&&_u(e,t)}(t,e),r=t,(n=[{key:"getValue",value:function(){return this._parent.getValue()}},{key:"setValue",value:function(e){return this._parent.setValue(e)}},{key:"getGist",value:function(){return this._parent.getGist()}},{key:"setGist",value:function(e,t){return this._parent.setGist(e,t)}},{key:"setSubject",value:function(e){}},{key:"getPredicate",value:function(){return this._parent.getPredicate()}},{key:"remove",value:function(){this._parent.removeChildBinding(this),wu(Su(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&yu(r.prototype,n),o&&yu(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(Wl);function Ru(e){return(Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Au,Mu,ju,Iu,Du,Nu,Lu=!1,Zu=function(e,t,r){var n=new $s({item:r,childrenRootUri:t,graph:e});return ku(n),Eu(n),n},Fu=function(e,t,r){var n=new $s({item:r,childrenRootUri:t,graph:e});return ku(n),Lu=!0,ku(n),Lu=!1,Eu(n),n},Bu=function(e,t,r,n){var o=e.findProperties(t),i=[],a={};if(null!=n){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof al&&t.getChildren().forEach(e)}(e),i.push(e))};n.forEach((function(e){var t=r.getItem(e);null!=t?t instanceof al&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=r.getItemByProperty(e))?s(t):console.warn("Warning, when autodetecting a template: Required item '".concat(e,"' is neither an id for a loaded item or a property for a loaded item, ignoring."))}))}return o.forEach((function(e){if(!a[e]){var t=r.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),r.createTemplateFromChildren(i)},Vu=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},zu=function(e,t){var r,n,o=t.getChildren()[1],i=e.getGraph();o instanceof al?(r=i.create(e.getChildrenRootUri(),"",null,!1),n=Ou(i,r.getSubject(),o)):r=o instanceof Il?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new hu({item:t,statement:r,constraints:n});return e.addChildBinding(a),o instanceof al&&o.getChildren().forEach((function(e){Wu(a.getObjectBinding(),e)})),a},Wu=function(e,t,r){return t instanceof kl?function(e,t){if(!t.getProperty()){var r=new Tu({item:t,statement:null,matchingCode:Rs.OK});return e.addChildBinding(r),r}var n=e.getGraph(),o=t.getNodetype(),i={value:"",type:"literal"};"URI"===o?i.type="uri":"DATATYPE_LITERAL"===o&&(i.datatype=Vu(t));var a=t.getValue();if(null!=a&&0===e.getChildBindingsFor(t).length){i.value=a;var s=t.getLanguage();null!=s&&(i.lang=s)}var l=n.create(e.getChildrenRootUri(),t.getProperty(),i,!1),u=new Wl({item:t,statement:l});return e.addChildBinding(u),u}(e,t):t instanceof gl?zu(e,t):t instanceof al?function(e,t,r){var n,o;if(void 0!==t.getProperty()){var i=e.getGraph();n=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),o=Ou(i,n.getValue(),t)}var a=new $s({item:t,statement:n,constraints:o});e.addChildBinding(a);var s=t._source["@id"];if(s){if(r[s])return a;r[s]=!0}return a}(e,t,r||{}):t instanceof Il?function(e,t){var r=e.getGraph(),n=t.getNodetype(),o={type:"literal",value:""};"DATATYPE_LITERAL"===n?o.datatype=Vu(t):"RESOURCE"!==n&&"URI"!==n||(o.type="uri");var i=r.create(e.getChildrenRootUri(),t.getProperty(),o,!1),a=new eu({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(Du(t,s,r),!0),a}(e,t):void 0};ku=function(e){Lu&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&ku(e)})),e.getItem().getChildren().forEach((function(t){Lu?void 0!==t.getProperty()&&Au(e,t):Au(e,t)}))};Au=function(e,t){t instanceof Il?function(e,t){if(null!=t.getProperty()){var r=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Cu(e)){var n=Mu(t,e),o=ju(t,e),i=Iu(t,e);if(n&&o&&i||Lu){var a=Du(t,e.getValue(),e.getGraph());if(void 0!==a){Pu(e);var s=n?Rs.OK:Rs.WRONG_NODETYPE;o?i?a.mismatch&&(s=Rs.WRONG_VALUE):s=Rs.WRONG_PATTERN:s=Rs.WRONG_DATATYPE,r.push(new eu({item:t,statement:e,choice:a,matchingCode:s}))}}}})),r.length>0&&e.addChildBindings(r)}}(e,t):t instanceof gl?function(e,t){var r,n,o,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),u=[];l.find(e.getChildrenRootUri()).forEach((function(e){Cu(e)&&Mu(s,e)&&Iu(s,e)&&void 0!==(o=Du(a,e.getPredicate(),e.getGraph()))&&(n=null,s instanceof al?void 0!==(r=Nu(l,e.getValue(),s))&&(Pu(e),n=new hu({item:t,statement:e,constraints:r}),ku(n.getObjectBinding())):s instanceof Il?void 0!==(i=Du(s,e.getValue(),e.getGraph()))&&(Pu(e),(n=new hu({item:t,statement:e})).getObjectBinding().setChoice(i)):(Pu(e),n=new hu({item:t,statement:e})),null!==n&&(n.getPredicateBinding().setChoice(o),u.push(n)))})),u.length>0&&e.addChildBindings(u)}(e,t):t instanceof al?function(e,t){var r,n,o,i,a=e.getGraph();void 0!==t.getProperty()?(r=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(n=[],r.forEach((function(e){if(Cu(e)){var r=Iu(t,e),s=Mu(t,e);if((r&&s||Lu)&&(void 0!==(o=Nu(a,e.getValue(),t))||Lu)){var l=s?Rs.OK:Rs.WRONG_NODETYPE;r?void 0===o&&(l=Rs.MISSING_CONSTRAINTS):l=Rs.WRONG_PATTERN,Pu(e),i=new $s({item:t,statement:e,constraints:o,matchingCode:l}),n.push(i),l===Rs.OK&&ku(i)}}})),e.addChildBindings(n)):(i=new $s({item:t}),e.addChildBindings([i]),ku(i))}(e,t):t instanceof kl&&function(e,t){var r=[];null==t.getProperty()?r.push(new Tu({item:t,statement:null,matchingCode:Rs.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Cu(e)&&Iu(t,e)){var n=Mu(t,e),o=ju(t,e);if(n&&(o||t.hasStyle("relaxedDatatypeMatch"))||Lu){Pu(e);var i=n?Rs.OK:Rs.WRONG_NODETYPE;o||(i=Rs.WRONG_DATATYPE),r.push(new Wl({item:t,statement:e,matchingCode:i}))}}})),r.length>0&&e.addChildBindings(r)}(e,t)},Mu=function(e,t){var r=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===r;case"RESOURCE":return"uri"===r||"bnode"===r;case"URI":return"uri"===r;case"BLANK":return"bnode"===r}return!1},ju=function(e,t){var r="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==r||(Array.isArray(r)?-1!==r.indexOf(t.getDatatype()):t.getDatatype()===r)},Iu=function(e,t){var r=e.getPattern(),n=Qo.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==r)try{return new RegExp("^".concat(r,"$")).test(n)}catch(e){return!0}return!0},Nu=function(e,t,r){var n,o=r.getConstraints(),i=[],a=function(r,o){if(1!==(n=e.find(t,r,{type:"uri",value:o})).length)return!1;i.push(n[0])};if("object"===Ru(o)&&null!==o){for(var s,l=Object.keys(o),u=function(){var e=l[c],t=o[e];if(t instanceof Array){var r=!0;if(t.forEach((function(t){!1!==a(e,t)&&(r=!1)})),r)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},c=0;c<l.length;c++)if(s=u())return s.v;return i}return[]},Ou=function(e,t,r){var n=[],o=r.getConstraints();return"object"===Ru(o)&&null!==o&&Object.keys(o).forEach((function(r){var i=o[r];Array.isArray(i)?n.push(e.create(t,r,{type:"uri",value:i[0]},!1)):n.push(e.create(t,r,{type:"uri",value:i},!1))})),n},Du=function(e,t,r){var n,o;if(e.hasChoices()){for(o=e.getChoices(),n=0;n<o.length;n++)if(o[n].value===t)return o[n];if(!e.hasStyle("strictmatch")||Lu)return{value:t,label:{"":t},mismatch:!0}}else{var i=Qo.getLocalizedMap(r,t,e.getLabelProperties());null==i&&Lu&&(i={"":t,mismatch:!0});var a=r.findFirstValue(t,eu.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=ei.getChoice)return ei.getChoice(e,t,a,r)}},Pu=function(e){e._dibbs=!0},Cu=function(e){return!0!==e._dibbs},Eu=function(e){var t,r,n,o=e.getItemGroupedChildBindings()||[];for(t=0;t<o.length;t++)for(n=o[t],r=0;r<n.length;r++){var i=n[r];i._statement&&delete i._statement._dibbs,(i instanceof $s||i instanceof hu)&&Eu(i)}};var Uu=function e(t,r){for(var n="/"===r[0]?r.slice(1):r,o=t.getItemGroupedChildBindings(),i=n[0],a=0;a<o.length;a++)for(var s=o[a],l=void 0,u=0;u<s.length;u++){var c=s[u],d=c.getItem();if(d instanceof Il&&void 0===d.getProperty()&&i===d.getId()&&2===n.length&&n[1]===c.getValue())return c;if(c.isValid()){if("propertygroup"===d.getType())d=(c=c.getObjectBinding()).getItem();else if(void 0===d.getProperty()&&(l=e(c,n)))return l;if("*"===i||i===c.getPredicate()||i===d.getId())if("group"===d.getType()){if(l=e(c,n.slice(1)))return l}else if(1===n.length||"*"===n[1]||n[1]===c.getValue())return c}}},$u=function(e,t){var r=t[0],n=e;if("/"===r){for(;n.getParent();)n=n.getParent();return n}if(".."===r){for(var o=0;o<t.length;o++){if(".."!==t[o]||!n.getParent())return n;n=n.getParent()}return n}return e},Hu=function(e,t){var r=e.getId(),n={},o={};e.getChoices().forEach((function(e){n[e.value]=0,o[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===r||"/"===t[0]&&t[1]===r)){var o="/"===t[0]?t[2]:t[1],i=n[o];void 0!==i&&(n[o]=i+1)}}));var i,a=0;return Object.keys(n).forEach((function(e){(!i||n[e]>a)&&(i=e,a=n[e])})),o[i]};const Yu={detectLevel:function(e){if(e.mandatory>0){if(0===e.recommended&&0===e.optional)return"mandatory";if(0===e.optional)return"mixed_mandatory_recommended";if(0===e.recommended)return"mixed_mandatory_optional"}else{if(e.recommended>0)return 0===e.optional?"recommended":"mixed_recommended_optional";if(0===e.recommended&&e.recommended>0&&0===e.optional)return"optional"}return"mixed_all"},levelProfile:function(e){var t=function e(t,r,n){var o=r.getCardinality();return n&&"group"===r.getType()||(null!=o?o.min>0?t.mandatory+=1:o.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===r.getType()&&r.getChildren().forEach((function(r){return e(t,r)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,r){if(t instanceof Wl)return t;for(var n=t.getItemGroupedChildBindings(),o=qo().locale(),i=0;i<n.length;i++){var a=n[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof kl))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},u=0;u<a.length;u++){var c=a[u].getLanguage();null==c?l.emptyLanguageValue=a[u]:c===o?l.perfectLocaleLanguageValue=a[u]:c.substring(0,1)===o.substring(0,1)?l.localeLanguageValue=a[u]:-1!==c.indexOf("en")?l.defaultLanguageValue=a[u]:l.anyLanguageValue=a[u]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(r){var d=Wu(t,s,{});return d instanceof Wl?(d.setLanguage(o),d):e(d,!0)}}},create:Wu,constructTemplate:Bu,findPopularChoice:Hu,match:Zu,fuzzyMatch:Fu,matchPathBelowBinding:Uu,findBindingRelativeToParentBinding:$u,CODES:Rs};var Gu=function(e,t){var r=t;return null==r?r={errors:[],warnings:[],deprecated:[]}:(r.errors=r.errors||[],r.warnings=r.warnings||[],r.deprecated=r.deprecated||[]),Qu(e,r,!0)},qu=function(e){for(var t=0,r=0;r<e.length;r++)e[r].isValid()&&(t+=1);return t},Ku=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},Xu=function(e,t){if(t.hasStyle("deprecated"))return!0;var r=t.getDeps();if(r){var n=$u(e,r);if(!Uu(n,r))return!0}return!1},Qu=function e(t,r,n){if(t.getMatchingCode()===Rs.OK){var o=t.getItem();if(!0===n||t.isValid()||null==o.getProperty()||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var i=o.getChildren();if(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild")||o.hasStyle("atLeastOneChild")||o.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=qu(s);l>1&&(o.hasStyle("disjoint")||o.hasStyle("atMostOneChild"))?a=Rs.AT_MOST_ONE_CHILD:1!==l&&o.hasStyle("exactlyOneChild")?a=Rs.EXACTLY_ONE_CHILD:0===l&&o.hasStyle("atLeastOneChild")&&(a=Rs.AT_LEAST_ONE_CHILD),a&&(Ku([t],a),i.length>0&&r.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,n){var o=i[n];if(!Xu(t,o)&&null!=o.getProperty()){var a=qu(e),s=o.getCardinality();null!=s.min&&s.min>a?(r.errors.push({parentBinding:t,item:o,code:Rs.TOO_FEW_VALUES_MIN}),Ku(e,Rs.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&r.warnings.push({parentBinding:t,item:o,code:Rs.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(r.errors.push({parentBinding:t,item:o,code:Rs.TOO_MANY_VALUES}),Ku(e,Rs.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(n){var o=n.getItem();n.getMatchingCode()!==Rs.OK&&r.errors.push({parentBinding:n,item:o,code:n.getMatchingCode()}),o.hasStyle("deprecated")&&r.deprecated.push(n),Xu(t,o)||"group"===o.getType()&&e(n,r)}))}return r}},Ju=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},ec=function(e,t,r){for(var n=e;;){var o=n.getChildrenRootUri?n.getChildrenRootUri():n.getParent().getChildrenRootUri();if(o===t)return!0;if(r[o])return!1;n=n.getParent()}},tc=function(e,t){var r=e,n=[];for(null!=t.getProperty()&&r.getItem()!==t&&n.push(we(t.getProperty()));null!=r.getItem().getProperty()&&n.push(we(r.getItem().getProperty())),null!=r.getParent();)r=r.getParent();return n.reverse(),n.join(" > ")},rc=function(e){var t=e.errors,r=e.warnings,n=e.deprecated;e.errors=t.map((function(e){return{path:tc(e.parentBinding,e.item),code:e.code}})),e.warnings=r.map((function(e){return{path:tc(e.parentBinding,e.item),code:e.code}})),e.deprecated=n.map((function(e){return function(e){return"".concat(tc(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},nc=function(e,t,r,n){var o=Fu(t,e,r),i=Gu(o);return function(e,t,r){var n=e.errors,o=e.warnings,i=e.deprecated;e.errors=n.filter((function(e){return ec(e.parentBinding,t,r)})),e.warnings=o.filter((function(e){return ec(e.parentBinding,t,r)})),e.deprecated=i.filter((function(e){return ec(e,t,r)}))}(i,e,n||{}),rc(i),i};const oc={graphReport:function(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},a={},s={errors:0,warnings:0,deprecated:0,resources:[]};Object.keys(t).forEach((function(t){var r=Ju(e,t);i[t]=r,r.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(o){r=t[o],i[o].forEach((function(t){(n=nc(t,e,r,a)).uri=t,n.type=o,n.template=r.getId(),s.resources.push(n),s.errors+=n.errors.length,s.warnings+=n.warnings.length,s.deprecated+=n.deprecated.length}))}));var l=[];return o.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Gu};function ic(e){return(ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ac(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sc(n.key),n)}}function sc(e){var t=function(e,t){if("object"!=ic(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ic(t)?t:String(t)}var lc=0;function uc(e){return(uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fc(n.key),n)}}function fc(e){var t=function(e,t){if("object"!=uc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=uc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uc(t)?t:String(t)}function pc(e,t,r){return t=gc(t),function(e,t){if(t&&("object"===uc(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function hc(){return(hc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=mc(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function mc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gc(e)););return e}function gc(e){return(gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yc(e,t){return(yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var vc=function(e,t,r){if(0===r.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var n=t.getChildren();return 0===n.length||!!r[0].getItemGroupedChildBindings().find((function(t,r){return vc(e,n[r],t)}))}return!0},bc=function(e){function t(){return cc(this,t),pc(this,t,arguments)}var r,n,o;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&&yc(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",hc(gc(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return vc(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),r="group"===t.getType();return!(!t.getProperty()&&r&&0===t.getChildren().length)&&r&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?pi.filterTranslations(t,this.getLocale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,r){r.hasStyle("noLabelInPresent")?pi.domClassToggle(e,"rdformsInvisibleGroup",!0):pi.renderPresenterLabel(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return pi.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return pi.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){pi.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){pi.renderPresenter(e,t,this.context)}},{key:"truncateAt",value:function(e,t){return"group"!==e.getType()&&t&&t.length>this.truncateLimit&&(this.truncate||e.hasStyle("truncate"))&&!e.hasStyle("noTruncate")?this.truncateLimit:-1}}])&&dc(r.prototype,n),o&&dc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=lc,lc+=1,this.locale=t.locale,this.defaultTextLanguage=t.defaultTextLanguage,this.messages=t.messages,this.parentView=t.parentView,this.srcNodeRef=r,this.binding=t.binding||null,this.template=t.template||null,this.graph=t.graph||null,this.resource=t.resource||"",this.topLevel=!1!==t.topLevel,this.compact=!1!==t.compact,this.showDescription=!0===t.showDescription,this.styleCls=t.styleCls||"",this.truncateLimit=void 0!==t.truncateLimit?t.truncateLimit:10,this.truncate=void 0!==t.truncate&&t.truncate,Array.isArray(t.filterPredicates)?this.filterPredicates=t.filterPredicates.reduce((function(e,t){return e[t]=!0,e}),{}):"object"===ic(t.filterPredicates)?this.filterPredicates=t.filterPredicates:"string"==typeof t.filterPredicates?this.filterPredicates=t.filterPredicates.split(",").reduce((function(e,t){return e[t]=!0,e}),{}):this.filterPredicates=null,this.restrictToItem=t.restrictToItem,this.fuzzy=!0===t.fuzzy,this.markOrigin=!1!==t.markOrigin,this._handleParams(t),this._labelIndex={},this.domNode=pi.createDomNode(r,this),pi.domClassToggle(this.domNode,"rdforms",!0),pi.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,r,n;return t=e,(r=[{key:"getParentView",value:function(){return this.parentView}},{key:"getNamedGraphId",value:function(e){if(this.markOrigin){this.namedGraphs||(this.namedGraphs={},this.namedGraphCounter=65);var t=this.namedGraphs[e];return void 0===t&&(t=String.fromCharCode(this.namedGraphCounter),this.namedGraphs[e]=t,this.namedGraphCounter+=1),t}}},{key:"getNamedGraphFromId",value:function(e){var t=this;return this.namedGraphs?Object.keys(this.namedGraphs).find((function(r){return t.namedGraphs[r]===e})):void 0}},{key:"destroy",value:function(){pi.destroyDomNode(this.domNode,this)}},{key:"getBinding",value:function(){return this.binding}},{key:"_handleParams",value:function(e){if(e.binding)this.binding=e.binding;else{if(this.template=e.template||this.template,this.graph=e.graph||this.graph,this.resource=e.resource||this.resource,null==this.graph||null==this.resource||null==this.template)return;this.fuzzy?(this.binding=Fu(this.graph,this.resource,this.template),Gu(this.binding)):this.binding=Zu(this.graph,this.resource,this.template)}}},{key:"showNow",value:function(){return!0}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(){}},{key:"addTable",value:function(){}},{key:"fillTable",value:function(){}},{key:"addLabel",value:function(){}},{key:"addComponent",value:function(){}},{key:"showAsTable",value:function(e){return"group"===e.getType()&&(e.hasStyle("table")||e.hasClass("rdformsTable"))}},{key:"show",value:function(e){this._handleParams(e),this.render()}},{key:"render",value:function(){if(pi.domText(this.domNode,""),null!=this.binding&&(this.messages||(this.messages=pi.getMessages()),null!=this.binding)){var e,t,r,n,o,i=this.binding.getItem().getChildren(),a=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?pi.domClassToggle(this.domNode,"compact",!1):pi.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),e=0;e<a.length;e++)if(n=a[e],o=i[e],(!this.restrictToItem||this.restrictToItem===o)&&this.showNow(o,n)){if(n=this.prepareBindings(o,n),this.showAsTable(o))this.context={view:this},r=this.createRowNode(r,n[0],o),n.length>0&&(t=this.addTable(r,n[0],o),this.fillTable(t,n));else if(n.length>0)if(this.isMultiValued(o))this.context={view:this},r=this.addRow(r,n[0],!0);else{for(var s=this.truncateAt(o,n),l=0;l<n.length;l++)this.context={view:this},r=this.addRow(r,n[l],0===l||n[l]instanceof $s,l,s);if(-1!==s){var u=pi.domQuery(".rdformsFields",r);u&&pi.addTruncateControl(u,this.context)}}else this.context={view:this},r=this.createRowNode(r,null,o);n.length>0&&n[0].getCardinalityTracker().checkCardinality()}}}},{key:"addRow",value:function(e,t,r,n,o){var i,a,s=r,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof $s),!0===s){a=this.createRowNode(e,t,l);var u=pi.domCreate("div",a);pi.domClassToggle(u,"rdformsFields",!0),-1!==o&&pi.domClassToggle(u,"rdformsTruncated",!0),l.hasStyle("inline")&&pi.domClassToggle(u,"rdformsInline",!0),i=pi.domCreate("div",u),this.createEndOfRowNode(a,t,l)}else{var c=pi.domQuery(".rdformsFields",e);if(null!=c)i=pi.domCreate("div",c),pi.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==o&&n>=o&&pi.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var d=pi.domCreate("div",e);pi.domClassToggle(d,"rdformsFields",!0),l.hasStyle("inline")&&pi.domClassToggle(d,"rdformsInline",!0),i=pi.domCreate("div",d),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(pi.domClassToggle(i,"rdformsOrigin",!0),pi.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(pi.domClassToggle(i,"rdformsOrigin",!0),pi.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?pi.domClassToggle(i,"rdformsGroup",!0):pi.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&pi.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,r){var n;n=null==e?pi.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):pi.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),r.getClasses().forEach((function(e){pi.domClassToggle(n,e,!0)})),pi.domClassToggle(n,"rdformsRow",!0),pi.domClassToggle(n,"rdformsTopLevel",this.topLevel),pi.domClassToggle(n,"rdformsInvisibleGroup",r.hasStyle("invisibleGroup")),pi.domClassToggle(n,"rdformsHeading",r.hasStyle("heading")),pi.domClassToggle(n,"notCompact","group"===r.getType()||r.hasStyle("nonCompact")),pi.domClassToggle(n,"rdformsCompactItem",r.hasStyle("compact")),this.addLabel(n,t,r),t&&this.filterBinding(t)&&pi.domClassToggle(n,"hiddenProperty",!0);var o=void 0!==this._subEditors;return(r.hasStyle("card")||r.hasStyle("cardInEdit")&&o||r.hasStyle("cardInPresent")&&!o)&&pi.domClassToggle(n,"rdformsCard",!0),n}},{key:"createEndOfRowNode",value:function(e,t,r){}},{key:"_getFilterPredicates",value:function(){return this.parentView?this.parentView._getFilterPredicates():this.filterPredicates}},{key:"filterBinding",value:function(e){return this.filterItem(e.getItem())}},{key:"filterItem",value:function(e){var t=this,r=this._getFilterPredicates();return!!r&&function e(r,n){var o=r.getId();if(o&&Object.keys(n).includes(o))return!0;var i=r.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=be(i);return a?!0===n[i]||!0===n[l]||!0===n["*".concat(i)]||!0===n["".concat(l)]:!0===n["*".concat(i)]||!0===n["*".concat(l)]}if("group"===r.getType()){var u=r.getChildren()||[],c=!1;return u.forEach((function(t){e(t,n)||(c=!0)})),!c}return!1}(e,r)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,r=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=r._labelIndex[e.getHash()])})),void 0!==t?t:this.parentView?this.parentView.getLabelIndex(e.getParent()):""}},{key:"createLabelIndex",value:function(e){var t="".concat(e.getHash(),"_").concat(this._viewId,"_label");return this._labelIndex[e.getHash()]=t,t}},{key:"getRowIndex",value:function(e){return"".concat(e.getHash(),"_").concat(this._viewId,"_row")}},{key:"isMultiValued",value:function(e){return!1}},{key:"truncateAt",value:function(e,t){return-1}},{key:"getLocale",value:function(){return this.locale||(this.parentView?this.parentView.getLocale():qo().locale())}},{key:"getDefaultTextLanguage",value:function(){return this.defaultTextLanguage||(this.parentView?this.parentView.getDefaultTextLanguage():this.getLocale())}}])&&ac(t.prototype,r),n&&ac(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}());function wc(e){return(wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_c(n.key),n)}}function _c(e){var t=function(e,t){if("object"!=wc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wc(t)?t:String(t)}function kc(e,t,r){return t=Pc(t),function(e,t){if(t&&("object"===wc(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Pc(e).constructor):t.apply(e,r))}function Ec(){return(Ec="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Cc(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Cc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Pc(e)););return e}function Pc(e){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oc(e,t){return(Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Tc=function(e,t,r,n){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===r.length)return!1;var o=t.getProperty();if(r.length>0){if(o)return!e.filterItem(t);if("group"!==t.getType())return!0;var i=t.getChildren();if(0===i.length)return!0;if(t.hasStyle("atLeastOneChild")||t.hasStyle("exactlyOneChild"))return!0;if(r[0].getItemGroupedChildBindings().find((function(t,r){return Tc(e,i[r],t,n)})))return!0;if(!o)return!1}var a=t.getCardinality();switch(n){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},Rc=function(e){function t(){return xc(this,t),kc(this,t,arguments)}var r,n,o;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&&Oc(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){this._subEditors=this._subEditors||[],this.includeLevel=e.includeLevel||"recommended",this.hideAddress=!1!==e.hideAddress,e.styleCls=e.styleCls||"rdformsEditor",e.filterTranslations=void 0!==e.filterTranslations&&e.filterTranslations,Ec(Pc(t.prototype),"_handleParams",this).call(this,e)}},{key:"getSubEditorForBinding",value:function(e){return this._subEditors.find((function(t){return t.getBinding()===e}))}},{key:"report",value:function(e){var t=this,r=e||Gu(this.binding);Object.keys(this._binding2node).forEach((function(e){pi.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var n=function(){var e=r.errors[o];if(e.parentBinding===t.binding)if(e.code===Rs.TOO_FEW_VALUES_MIN){var n=e.item,i=n.getCardinality().min;t.binding.getChildBindingsFor(n).find((function(e){return i-=1,e.isValid()||pi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===Rs.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==Rs.OK&&pi.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},o=0;o<r.errors.length;o++)n();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(r)}},{key:"getIncludeLevel",value:function(){return this.includeLevel}},{key:"setIncludeLevel",value:function(e){this.includeLevel!==e&&(this.includeLevel=e,null!=this.graph&&null!=this.resource&&null!=this.template&&(this.binding=Zu(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],Ec(Pc(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Tc(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality();if(r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?1:"group"===e.getType()?(e.getProperty(),1):1,e.hasStyle("nonEditable")&&!e.hasStyle("autoInitDate")&&!e.hasStyle("autoUpdateDate")&&!e.hasStyle("autoUUID")&&!e.hasStyle("autoValue")&&!e.getValue())return n;if(r>n.length)for(n=n.concat([]);r>n.length;)n.push(Wu(this.binding,e));return n}},{key:"addLabel",value:function(e,t,r){pi.renderEditorLabel(e,t,r,this.context)}},{key:"createEndOfRowNode",value:function(e,t,r){pi.renderEditorLabelScopeEnd(e,t,r,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):pi.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){pi.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){pi.preEditorViewRenderer(this.domNode,this.binding,{view:this,inEditor:!0,topLevel:this.topLevel,hideAddress:this.hideAddress})}},{key:"addComponent",value:function(e,t){this.context.inEditor=!0,t.getItem().hasStyle("nonEditable")?pi.renderPresenter(e,t,this.context):pi.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,r,n){if(null!=r||!n.hasStyle("nonEditable")){var o=Ec(Pc(t.prototype),"createRowNode",this).call(this,e,r,n);if("choice"===n.getType()&&void 0===n.getProperty()){var i=Hu(n,r.getParent());i&&r.setChoice(i)}var a=n.getDeps();if(a){var s=function(e){e?(pi.domClassToggle(o,"missingDepsWithValue",!1),pi.domClassToggle(o,"missingDeps",!1)):r.isValid()?pi.domClassToggle(o,"missingDepsWithValue",!0):pi.domClassToggle(o,"missingDeps",!0),r.getCardinalityTracker().setDepsOk(e)},l=$u(r.getParent(),a);Uu(l,a)||s(!1),l.addListener((function e(){r.getParent()?s(Uu(l,a)):l.removeListener(e)}))}return this.filterBinding(r)&&pi.domClassToggle(o,"hiddenProperty",!0),n.hasStyle("deprecated")&&pi.domClassToggle(o,"rdformsDeprecated",!0),o}}},{key:"isMultiValued",value:function(e){return pi.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&Sc(r.prototype,n),o&&Sc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(bc);function Ac(e){return(Ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ic(n.key),n)}}function Ic(e){var t=function(e,t){if("object"!=Ac(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ac(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ac(t)?t:String(t)}function Dc(e,t,r){return t=Zc(t),function(e,t){if(t&&("object"===Ac(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Zc(e).constructor):t.apply(e,r))}function Nc(){return(Nc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=Lc(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function Lc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Zc(e)););return e}function Zc(e){return(Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fc(e,t){return(Fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Bc=function(e,t,r){return 1===r?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",r)},Vc=function(e){function t(){return Mc(this,t),Dc(this,t,arguments)}var r,n,o;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&&Fc(e,t)}(t,e),r=t,(n=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,Nc(Zc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Gu(this.binding)}},{key:"showNow",value:function(e,t){if(e.hasStyle("invisible"))return!1;if(t.length>0)return!0;if(e.hasStyle("deprecated"))return!1;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;if(e.hasStyle("atLeastOneChild")||e.hasStyle("exactlyOneChild"))return!0;var r=this.binding.getMatchingCode();if(r===Rs.MISSING_CONSTRAINTS||r===Rs.WRONG_NODETYPE)return!1;var n=e.getCardinality();switch(this.includeLevel){case"mandatory":return n&&n.min>=1;case"recommended":default:return n&&(n.min>=1||n.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var r,n=t,o=e.getCardinality(),i=null!=o.min?o.min:0,a=null!=o.pref?o.pref:0;r=o.pref>0?o.pref:o.min>0?o.min:"propertygroup"===e.getType()?0:"group"===e.getType()&&null==e.getProperty()?1:0;var s=this.binding.getMatchingCode(),l=!(this.binding.getItem().hasStyle("atleastOneChild")||this.binding.getItem().hasStyle("atMostOneChild")||this.binding.getItem().hasStyle("disjoint")||this.binding.getItem().hasStyle("exactlyOneChild"))||s===Rs.TOO_FEW_VALUES_MIN||s===Rs.TOO_FEW_VALUES_PREF,u=s===Rs.MISSING_CONSTRAINTS||s===Rs.WRONG_NODETYPE;if(r>n.length&&l&&!u)for(n=n.concat([]);r>n.length;){var c=Wu(this.binding,e);n.length<i?c.setMatchingCode(Rs.TOO_FEW_VALUES_MIN):n.length<a&&c.setMatchingCode(Rs.TOO_FEW_VALUES_PREF),n.push(c)}return n}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var r,n,o=t.getItem(),i=o.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===o.getType()?null===(r=t.getCardinalityTracker())||void 0===r?void 0:r.getCode():void 0,u=l&&l!==Rs.OK&&l!==Rs.UNKNOWN?l:t.getMatchingCode(),c=u===Rs.TOO_FEW_VALUES_PREF;if(u!==Rs.TOO_FEW_VALUES_PREF&&u!==Rs.OK)return pi.domClassToggle(e,"error",!0),u===Rs.TOO_FEW_VALUES_MIN?n=Bc(this.messages,"validation_min_required",a):u===Rs.TOO_MANY_VALUES?n=Bc(this.messages,"validation_max",i.max||1):u===Rs.AT_MOST_ONE_CHILD?n=this.messages.validation_at_most_one_child:u===Rs.AT_LEAST_ONE_CHILD?n=this.messages.validation_at_least_one_child:u===Rs.EXACTLY_ONE_CHILD?n=this.messages.validation_exactly_one_child:u===Rs.WRONG_NODETYPE?n=this.messages.validation_nodetype:u===Rs.WRONG_VALUE?n=this.messages.validation_value:u===Rs.WRONG_DATATYPE?n=this.messages.validation_datatype:u===Rs.MISSING_CONSTRAINTS?n=this.messages.validation_constraints:u===Rs.WRONG_PATTERN?n=this.messages.validation_pattern:u===Rs.MISSING_LANGUAGE&&(n=this.messages.validation_language),pi.renderValidationMessage(e,"error",n),!0;if(c){pi.domClassToggle(e,"warning",!0);var d=Bc(this.messages,"validation_min_recommended",s);return pi.renderValidationMessage(e,"warning",d),!0}return!!o.hasStyle("deprecated")&&(pi.domClassToggle(e,"deprecated",!0),pi.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,r){Nc(Zc(t.prototype),"addComponent",this).call(this,e,r),this.addValidationMarker(e,r)}}])&&jc(r.prototype,n),o&&jc(r,o),Object.defineProperty(r,"prototype",{writable:!1}),t}(bc);function zc(e){return(zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hc(n.key),n)}}function $c(e,t,r){return t&&Uc(e.prototype,t),r&&Uc(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hc(e){var t=function(e,t){if("object"!=zc(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zc(t)?t:String(t)}function Yc(e,t,r){return t=Kc(t),function(e,t){if(t&&("object"===zc(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,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,r||[],Kc(e).constructor):t.apply(e,r))}function Gc(){return(Gc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=qc(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}}).apply(this,arguments)}function qc(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Kc(e)););return e}function Kc(e){return(Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xc(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&&Qc(e,t)}function Qc(e,t){return(Qc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Jc=function(t){var r=function(t){function r(){return Wc(this,r),Yc(this,r,arguments)}return Xc(r,t),$c(r,[{key:"render",value:function(){if(this.domNode.clear(),Gc(Kc(r.prototype),"render",this).call(this),!this.initiatedAlready&&this.domNode.parent instanceof Node){var t=this.domNode.component;(0,ks.s)(this.domNode.parent).render(e.createElement(t,null))}this.initiatedAlready=!0}}]),r}(t);return r.Component=function(e){function t(e){var n;return Wc(this,t),(n=Yc(this,t,[e])).fix=new r(e),n}return Xc(t,e),$c(t,[{key:"render",value:function(){return this.fix.domNode.component}}]),t}(e.Component),r},ed=Jc(Rc),td=Jc(bc),rd=Jc(Vc);function nd(e){return(nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var od=["className"];function id(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ad(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ad(e,t)}(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 ad(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sd(e,t,r){var n;return n=function(e,t){if("object"!=nd(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=nd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==nd(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ld(){return(ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ud(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var cd=(0,h.ZP)((0,e.forwardRef)((function(t,r){var n=t.className,o=ud(t,od);return e.createElement(ws,ld({},o,{classes:{popper:n}}))})))((function(e){var t=e.theme;return sd(sd({},"& .".concat(ds.tooltip),{backgroundColor:t.palette.background.default,fontSize:12,color:"black",boxShadow:t.shadows[10],pointerEvents:"auto"}),"& .".concat(ds.tooltipPlacementBottom),{margin:"2px 0 24px 0",marginTop:"0px !important"})})),dd=function(t){var r=id((0,e.useState)(!1),2),n=r[0],o=r[1],i=function(){o(!1)},a=function(){o(!0)},s="",l=t.item.getProperty();l&&(s=e.createElement("div",{className:"rdformsProperty"},e.createElement("a",{target:"_blank",href:l},l)));var u=t.context.view instanceof ed?t.item.getEditDescriptionMap()||t.item.getDescriptionMap():t.item.getDescriptionMap()||(l?"":t.context.view.messages.info_missing||""),c=Qo.getLocalizedValue(u,t.context.view.getLocale()).value;return e.createElement(_s,{onClickAway:i},e.createElement(cd,{title:e.createElement(e.Fragment,null,e.createElement("p",{className:"rdformsLinebreaks rdformsDescription"},c),s),placement:"bottom-start",disableHoverListener:!0,disableTouchListener:!0,onClose:i,onOpen:a,open:n},e.createElement("span",{onClick:a},t.children)))};pi.renderPresenterLabel=function(t,r,n,o){var i=o.view instanceof ed&&n.getEditLabelMap()||n.getLabelMap(),a=Qo.getLocalizedValue(i,o.view.getLocale()).value;a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s,l=o.view;if(n.hasStyle("showDescriptionInPresent")||l.showDescription){var u=n.hasStyle("compact")||l.compact&&!n.hasStyle("nonCompact")&&(l.topLevel&&"group"!==n.getType()||l.parentView&&l.parentView.topLevel&&l.binding.getItem().hasStyle("heading")),c=l instanceof ed&&n.getEditDescriptionMap()||n.getDescriptionMap(),d=Qo.getLocalizedValue(c,o.view.getLocale()).value;!u&&d&&(s=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},d))}var f=r?o.view.createLabelIndex(r):void 0;a=n.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",id:f,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},a)):e.createElement("span",{tabIndex:"0",id:f,className:"rdformsLabelRow"},e.createElement("span",{className:"rdformsLabel"},a)),t.appendChild(e.createElement(e.Fragment,{key:"".concat(r?r.getHash():n._internalId,"_label")},e.createElement(dd,{context:o,item:n},a),s))},pi.renderEditorLabel=function(t,r,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))pi.renderPresenterLabel(t,r,n,o,!0);else{var i=n.getEditLabelMap()||n.getLabelMap(),a=Qo.getLocalizedValue(i,o.view.getLocale()).value;a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"",a=n.hasStyle("heading")?e.createElement("h2",{tabIndex:"0",className:"rdformsLabel"},a):e.createElement("span",{tabIndex:"0",className:"rdformsLabel"},a),a=e.createElement(dd,{item:n,context:o},a);var s,l,u=n.getCardinality(),c=o.view.messages;n.getProperty()&&(s=u.min>0?e.createElement("span",{className:"rdformsMark rdformsMandatoryMark"},c.mandatoryMark):u.pref>0?e.createElement("span",{className:"rdformsMark rdformsRecommendedMark"},c.recommendedMark):e.createElement("span",{className:"rdformsMark rdformsOptionalMark"},c.optionalMark)),null==r?l=pi.addExpandButton(t,null,n,o):"group"!==n.getType()||o.view.showAsTable(n)||n.getProperty()&&(l=pi.addRemoveButton(t,r,o));var d,f=o.view;if(n.hasStyle("showDescriptionInEdit")||f.showDescription){var p=n.hasStyle("compact")||f.compact&&!n.hasStyle("nonCompact")&&(f.topLevel&&"group"!==n.getType()||f.parentView&&f.parentView.topLevel&&f.binding.getItem().hasStyle("heading")),h=f instanceof ed&&n.getEditDescriptionMap()||n.getDescriptionMap(),m=Qo.getLocalizedValue(h,o.view.getLocale()).value;!p&&m&&(d=e.createElement("div",{className:"rdformsDescription",tabIndex:"0"},m))}var g=o.view.createLabelIndex(r);t.appendChild(e.createElement(e.Fragment,{key:"".concat(r.getHash(),"_label")},e.createElement("div",{id:g,className:"rdformsLabelRow"},a,s,l&&e.createElement(l,null)),d))}};var fd=function(t){var r,n=t.rowNode,o=t.binding,i=(t.item,t.context),a=id((0,e.useState)(o.getCardinalityTracker().getCode()),2),s=a[0],l=a[1];if((0,e.useEffect)((function(){var e=o.getCardinalityTracker(),t=function(){var t=e.getCode();pi.domClassToggle(n,"rdformsError",t!==Rs.UNKNOWN),l(t)};t();var r=e.addListener(t);return function(){return e.removeListener(r)}}),[]),s===Rs.UNKNOWN)return"";switch(s){case Rs.TOO_MANY_VALUES:case Rs.AT_MOST_ONE_CHILD:r=i.view.messages.validation_at_most_one_child;break;case Rs.AT_LEAST_ONE_CHILD:r=i.view.messages.validation_at_least_one_child;break;case Rs.EXACTLY_ONE_CHILD:r=i.view.messages.validation_exactly_one_child;break;case Rs.TOO_FEW_VALUES_MIN:default:r=i.view.messages.missingValueField}return e.createElement("div",{className:"rdformsWarning"},r)};pi.renderEditorLabelScopeEnd=function(t,r,n,o){if(!n.hasStyle("nonEditable")&&!n.hasStyle("heading")){if(!o.view.isMultiValued(n)){var i,a=n.getCardinality();null==r?i=pi.addExpandButton(t,null,n,o):!r.getPredicate()||o.view.showAsTable(n)||1===a.max||null!=a.max&&a.max===a.min||(i=pi.addCreateChildButton(t,null,r,o)),i&&t.appendChild(e.createElement(i,{key:"".concat(r.getHash(),"_labelEnd")}))}if(n.hasStyle("deprecated")){var s=r.getCardinalityTracker(),l=s.addListener((function(){0===s.getCardinality()&&(s.removeListener(l),t.destroy())}));t.appendChild(e.createElement("div",{key:"deprecatedWarning",className:"rdformsWarning"},o.view.messages.deprecatedField))}n.getDeps()&&t.appendChild(e.createElement("div",{key:"dependencyWarning",className:"rdformsWarning rdformsDependency"},o.view.messages.dependencyField)),t.appendChild(e.createElement(fd,{key:"errMessage",rowNode:t,binding:r,item:n,context:o}))}};var pd=function(e){var t,r=function(e){return e&&e.length>1?parseInt(e[0],10):0},n=r(e.match(/([0-9])*Y/)),o=r(e.match(/([0-9])*D/)),i=r(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=r(e.match(/([0-9])*M/));else{var s=e.split("T");t=r(s[0].match(/([0-9])*M/)),a=r(s[1].match(/([0-9])*M/))}return{years:n,months:t,days:o,hours:i,minutes:a}},hd=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),r=new Date("".concat(t).concat(e));return r.setMinutes(r.getMinutes()+r.getTimezoneOffset()),r}return new Date(e)}catch(e){return null}},md=function(e){switch(e){case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://purl.org/dc/terms/W3CDTF":return"DateTime";case"http://www.w3.org/2001/XMLSchema#date":return"Date";case"http://www.w3.org/2001/XMLSchema#gYear":return"Year";case"http://www.w3.org/2001/XMLSchema#time":return"Time";case"http://www.w3.org/2001/XMLSchema#gYearMonth":return"YearMonth";case"http://www.w3.org/2001/XMLSchema#gMonthDay":return"MonthDay";default:return}},gd=function(e){var t=e.getDatatype();return Array.isArray(t)?md(t[0]):md(t)},yd=function(e,t){if(e)switch(t){case"DateTime":return e.toISOString();case"Date":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,10);case"YearMonth":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,7);case"MonthDay":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(5,5);case"Time":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(11);case"Year":return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e.toISOString().substr(0,4);default:return""}return""},vd=function(e){var t={},r=e.getDatatype();return(Array.isArray(r)?r:[r]).forEach((function(e){var r=md(e);r&&(t[r]=!0)})),t},bd=function(e,t){var r=e.getValue();if(null!=r&&""!==r){var n=e.getItem(),o=hd(r);if(o){var i=function(e){return e.indexOf("T")>0?"DateTime":e.indexOf(":")>0?"Time":/^\d\d\d\d-\d\d$/.test(e)?"YearMonth":/^\d\d-\d\d$/.test(e)?"MonthDay":e.length>4?"Date":"Year"}(r),a=md(e.getDatatype()),s=gd(n),l=vd(n);return function(e,t,r){switch(e){case"DateTime":return qo()(t).locale(r).format("lll");case"Date":return qo()(t).locale(r).format("LL");case"Time":return qo()(t).locale(r).format("LT");case"Year":return qo()(t).locale(r).format("YYYY");case"YearMonth":return qo()(t).locale(r).format("MMMM YYYY");case"MonthDay":return qo()(t).locale(r).format("D MMMM");default:return""}}(l[a]?a:l[i]?i:s,o,t)}}},wd=function(e,t){var r,n=null===(r=e.getStatement()||e.getParent().getStatement())||void 0===r?void 0:r.getNamedGraph();if(n){for(var o=t.view;o.getParentView();)o=o.getParentView();return o.getNamedGraphId(n)}};function xd(){return(xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Sd=pi.presenterRegistry;Sd.itemtype("text").datatype("xsd:duration").register((function(t,r,n){var o=pd(r.getValue());t.appendChild(e.createElement("div",{key:r.getHash()},["years","months","days","hours","minutes"].map((function(t){return 0!==o[t]&&e.createElement(e.Fragment,{key:t},e.createElement("span",{className:"durationLabel"},n.view.messages["duration_".concat(t)],":"),e.createElement("span",{className:"durationValue"},o[t]))}))))})),Sd.itemtype("text").nodetype("URI").register((function(t,r){var n=Qo.getLocalizedMap(r),o=r.getValue(),i=r.getItem().hasStyle("externalLink")?ei.attachExternalLinkBehaviour(t,r)||{}:ei.attachLinkBehaviour(t,r)||{},a=i.component||null;delete i.component;var s=r.getItem().hasStyle("showValue")?o:n?Qo.getLocalizedValue(n).value||o:r.getGist();t.appendChild(e.createElement("a",xd({},i,{key:r.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),Sd.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(t,r,n){var o=r.getValue(),i=r.getItem().hasStyle("externalLink")?ei.attachExternalLinkBehaviour(t,r)||{}:ei.attachLinkBehaviour(t,r)||{},a=i.component||null;delete i.component;var s,l=r.getItem().getChildren().find((function(e){return e.hasStyle("label")})),u=l?pi.filterTranslations(r.getChildBindingsFor(l),n.view.getLocale(),n.view.defaultLanguage):[],c=r.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),d=c?pi.filterTranslations(r.getChildBindingsFor(c),n.view.getLocale(),n.view.defaultLanguage):[],f=d.length>0?d[0].getValue():o;if(u.length>0)s=u[0].getValue();else{var p=Qo.getLocalizedMap(r);s=r.getItem().hasStyle("showValue")?o:p?Qo.getLocalizedValue(p).value||o:r.getGist()}t.appendChild(e.createElement("a",xd({},i,{key:r.getHash(),title:f,href:o}),e.createElement("span",null,s),a))})),Sd.itemtype("text").nodetype("URI").style("externalLink").register((function(t,r){var n=Qo.getLocalizedMap(r),o=r.getValue(),i=ei.attachExternalLinkBehaviour(t,r)||{};i.target=i.target||"_blank";var a=i.component||null;delete i.component;var s=r.getItem().hasStyle("showValue")?o:n?Qo.getLocalizedValue(n).value||o:r.getGist();t.appendChild(e.createElement("a",xd({},i,{key:r.getHash(),title:o,href:o}),e.createElement("span",null,s),a))})),Sd.itemtype("text").nodetype("URI").style("image").register((function(t,r){t.appendChild(e.createElement("img",{key:r.getHash(),className:"rdformsImage",src:r.getGixt()}))})),Sd.itemtype("text").register((function(t,r,n){var o=r.getItem(),i=r.getLanguage();o.hasStyle("inline")||(o.hasStyle("multiline")?pi.domClassToggle(t,"rdformsMultiline",!0):pi.domClassToggle(t,"rdformsSingleline",!0),n.view.showLanguage&&i&&t.appendChild(e.createElement("span",{className:"rdformsLanguage",key:"lang_".concat(r.getHash())},i)));var a=r.getParent();if(o.hasStyle("label")&&!0!==n.view.topLevel&&null!=a&&a.getItem().getChildren()[0]===o&&null!=a.getStatement()&&"uri"===a.getStatement().getType()){var s=ei.attachLinkBehaviour(t,r,a),l=s.component||null;delete s.component,i&&(s.lang=i);var u=Qo.getLocalizedMap(r),c=a.getGist();t.appendChild(e.createElement("a",xd({},s,{key:r.getHash(),className:"rdformsUrl",href:a.getStatement().getValue()}),e.createElement("span",null,u&&Qo.getLocalizedValue(u).value||c),l))}else{var d=o.hasStyle("showValue")?r.getValue():r.getGist();i?t.appendChild(e.createElement("span",{lang:i,key:r.getHash()},d)):t.appendChild(e.createElement("span",{key:r.getHash()},d))}}));var _d=o(92996),kd=o(59766),Ed=o(56535),Cd=o(74161),Pd=o(39336);const Od=["onChange","maxRows","minRows","style","value"];function Td(e){return parseInt(e,10)||0}const Rd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ad(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Md=e.forwardRef((function(t,r){const{onChange:n,maxRows:o,minRows:i=1,style:a,value:s}=t,c=(0,l.Z)(t,Od),{current:d}=e.useRef(null!=s),f=e.useRef(null),p=(0,Ii.Z)(r,f),h=e.useRef(null),m=e.useRef(0),[g,y]=e.useState({outerHeightStyle:0}),v=e.useCallback(()=>{const e=f.current,r=(0,Cd.Z)(e).getComputedStyle(e);if("0px"===r.width)return{outerHeightStyle:0};const n=h.current;n.style.width=r.width,n.value=e.value||t.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,s=Td(r.paddingBottom)+Td(r.paddingTop),l=Td(r.borderBottomWidth)+Td(r.borderTopWidth),u=n.scrollHeight;n.value="x";const c=n.scrollHeight;let d=u;i&&(d=Math.max(Number(i)*c,d)),o&&(d=Math.min(Number(o)*c,d)),d=Math.max(d,c);return{outerHeightStyle:d+("border-box"===a?s+l:0),overflow:Math.abs(d-u)<=1}},[o,i,t.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return m.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(m.current+=1,{overflow:n,outerHeightStyle:r}):e},w=e.useCallback(()=>{const e=v();Ad(e)||y(t=>b(t,e))},[v]);(0,Di.Z)(()=>{const e=()=>{m.current=0,(()=>{const e=v();Ad(e)||wi.flushSync(()=>{y(t=>b(t,e))})})()};let t;const r=(0,Pd.Z)(e),n=f.current,o=(0,Cd.Z)(n);let i;return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(n)),()=>{r.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",r),i&&i.disconnect()}},[v]),(0,Di.Z)(()=>{w()}),e.useEffect(()=>{m.current=0},[s]);return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("textarea",(0,u.Z)({value:s,onChange:e=>{m.current=0,d||w(),n&&n(e)},ref:p,rows:i,style:(0,u.Z)({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},c)),(0,D.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:(0,u.Z)({},Rd,a,{paddingTop:0,paddingBottom:0})})]})}));function jd({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Id=e.createContext(void 0);function Dd(){return e.useContext(Id)}var Nd=o(58974);function Ld(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return(0,D.jsx)(M,{styles:n})}const Zd=function({styles:e,themeId:t,defaultTheme:r={}}){const n=(0,gi.Z)(r),o="function"==typeof e?e(t&&n[t]||n):e;return(0,D.jsx)(Ld,{styles:o})};const Fd=function(e){return(0,D.jsx)(Zd,(0,u.Z)({},e,{defaultTheme:yi.Z,themeId:vi.Z}))};function Bd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Vd(e,t=!1){return e&&(Bd(e.value)&&""!==e.value||t&&Bd(e.defaultValue)&&""!==e.defaultValue)}function zd(e){return(0,X.ZP)("MuiInputBase",e)}const Wd=(0,L.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ud=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],$d=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color"+(0,ne.Z)(r.color)],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Hd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Yd=(0,h.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:$d})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&."+Wd.disabled]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,u.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Gd=(0,h.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=(0,u.Z)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,u.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Wd.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&."+Wd.disabled]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),qd=(0,D.jsx)(Fd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Kd=e.forwardRef((function(t,r){var n;const o=(0,m.Z)({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:d,components:p={},componentsProps:h={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:b,endAdornment:w,fullWidth:x=!1,id:S,inputComponent:_="input",inputProps:k={},inputRef:E,maxRows:C,minRows:P,multiline:O=!1,name:T,onBlur:R,onChange:A,onClick:M,onFocus:j,onKeyDown:I,onKeyUp:N,placeholder:L,readOnly:Z,renderSuffix:F,rows:B,slotProps:V={},slots:z={},startAdornment:W,type:U="text",value:$}=o,H=(0,l.Z)(o,Ud),Y=null!=k.value?k.value:$,{current:G}=e.useRef(null!=Y),q=e.useRef(),K=e.useCallback(e=>{0},[]),X=(0,g.Z)(q,E,k.ref,K),[Q,J]=e.useState(!1),ee=Dd();const te=jd({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ee?ee.focused:Q,e.useEffect(()=>{!ee&&v&&Q&&(J(!1),R&&R())},[ee,v,Q,R]);const re=ee&&ee.onFilled,oe=ee&&ee.onEmpty,ie=e.useCallback(e=>{Vd(e)?re&&re():oe&&oe()},[re,oe]);(0,Nd.Z)(()=>{G&&ie({value:Y})},[Y,ie,G]);e.useEffect(()=>{ie(q.current)},[]);let ae=_,se=k;O&&"input"===ae&&(se=B?(0,u.Z)({type:void 0,minRows:B,maxRows:B},se):(0,u.Z)({type:void 0,maxRows:C,minRows:P},se),ae=Md);e.useEffect(()=>{ee&&ee.setAdornedStart(Boolean(W))},[ee,W]);const le=(0,u.Z)({},o,{color:te.color||"primary",disabled:te.disabled,endAdornment:w,error:te.error,focused:te.focused,formControl:ee,fullWidth:x,hiddenLabel:te.hiddenLabel,multiline:O,size:te.size,startAdornment:W,type:U}),ue=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:m}=e,g={root:["root","color"+(0,ne.Z)(r),n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&"size"+(0,ne.Z)(p),c&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,f.Z)(g,zd,t)})(le),ce=z.root||p.Root||Yd,de=V.root||h.root||{},fe=z.input||p.Input||Gd;return se=(0,u.Z)({},se,null!=(n=V.input)?n:h.input),(0,D.jsxs)(e.Fragment,{children:[!b&&qd,(0,D.jsxs)(ce,(0,u.Z)({},de,!hi(ce)&&{ownerState:(0,u.Z)({},le,de.ownerState)},{ref:r,onClick:e=>{q.current&&e.currentTarget===e.target&&q.current.focus(),M&&M(e)}},H,{className:(0,c.Z)(ue.root,de.className,d,Z&&"MuiInputBase-readOnly"),children:[W,(0,D.jsx)(Id.Provider,{value:null,children:(0,D.jsx)(fe,(0,u.Z)({ownerState:le,"aria-invalid":te.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:y,disabled:te.disabled,id:S,onAnimationStart:e=>{ie("mui-auto-fill-cancel"===e.animationName?q.current:{value:"x"})},name:T,placeholder:L,readOnly:Z,required:te.required,rows:B,value:Y,onKeyDown:I,onKeyUp:N,type:U},se,!hi(fe)&&{as:ae,ownerState:(0,u.Z)({},le,se.ownerState)},{ref:X,className:(0,c.Z)(ue.input,se.className,Z&&"MuiInputBase-readOnly"),onBlur:e=>{R&&R(e),k.onBlur&&k.onBlur(e),ee&&ee.onBlur?ee.onBlur(e):J(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||q.current;if(null==t)throw new Error((0,Ed.Z)(1));ie({value:t.value})}k.onChange&&k.onChange(e,...t),A&&A(e,...t)},onFocus:e=>{te.disabled?e.stopPropagation():(j&&j(e),k.onFocus&&k.onFocus(e),ee&&ee.onFocus?ee.onFocus(e):J(!0))}}))}),w,F?F((0,u.Z)({},te,{startAdornment:W})):null]}))]})}));function Xd(e){return(0,X.ZP)("MuiInput",e)}const Qd=(0,u.Z)({},Wd,(0,L.Z)("MuiInput",["root","underline","input"])),Jd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ef=(0,h.ZP)(Yd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$d(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,u.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(e.vars||e).palette[t.color].main,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+Qd.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+r,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qd.disabled}, .${Qd.error}):before`]:{borderBottom:"2px solid "+(e.vars||e).palette.text.primary,"@media (hover: none)":{borderBottom:"1px solid "+r}},[`&.${Qd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),tf=(0,h.ZP)(Gd,{name:"MuiInput",slot:"Input",overridesResolver:Hd})({}),rf=e.forwardRef((function(e,t){var r,n,o,i;const a=(0,m.Z)({props:e,name:"MuiInput"}),{disableUnderline:s,components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:h="input",multiline:g=!1,slotProps:y,slots:v={},type:b="text"}=a,w=(0,l.Z)(a,Jd),x=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,f.Z)(n,Xd,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:{disableUnderline:s}}},_=(null!=y?y:d)?(0,kd.Z)(null!=y?y:d,S):S,k=null!=(r=null!=(n=v.root)?n:c.Root)?r:ef,E=null!=(o=null!=(i=v.input)?i:c.Input)?o:tf;return(0,D.jsx)(Kd,(0,u.Z)({slots:{root:k,input:E},slotProps:_,fullWidth:p,inputComponent:h,multiline:g,ref:t,type:b},w,{classes:x}))}));rf.muiName="Input";const nf=rf;function of(e){return(0,X.ZP)("MuiFilledInput",e)}const af=(0,u.Z)({},Wd,(0,L.Z)("MuiFilledInput",["root","underline","input"])),sf=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lf=(0,h.ZP)(Yd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...$d(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,u.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},["&."+af.focused]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},["&."+af.disabled]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:"2px solid "+(null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${af.focused}:after`]:{transform:"scaleX(1) translateX(0)"},["&."+af.error]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:"1px solid "+(e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${af.disabled}, .${af.error}):before`]:{borderBottom:"1px solid "+(e.vars||e).palette.text.primary},[`&.${af.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,u.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),uf=(0,h.ZP)(Gd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hd})(({theme:e,ownerState:t})=>(0,u.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),cf=e.forwardRef((function(e,t){var r,n,o,i;const a=(0,m.Z)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:c,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:g,slots:y={},type:v="text"}=a,b=(0,l.Z)(a,sf),w=(0,u.Z)({},a,{fullWidth:d,inputComponent:p,multiline:h,type:v}),x=(e=>{const{classes:t,disableUnderline:r}=e,n={root:["root",!r&&"underline"],input:["input"]},o=(0,f.Z)(n,of,t);return(0,u.Z)({},t,o)})(a),S={root:{ownerState:w},input:{ownerState:w}},_=(null!=g?g:c)?(0,kd.Z)(S,null!=g?g:c):S,k=null!=(r=null!=(n=y.root)?n:s.Root)?r:lf,E=null!=(o=null!=(i=y.input)?i:s.Input)?o:uf;return(0,D.jsx)(Kd,(0,u.Z)({slots:{root:k,input:E},componentsProps:_,fullWidth:d,inputComponent:p,multiline:h,ref:t,type:v},b,{classes:x}))}));cf.muiName="Input";const df=cf;var ff;const pf=["children","classes","className","label","notched"],hf=(0,h.ZP)("fieldset",{shouldForwardProp:h.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),mf=(0,h.ZP)("legend",{shouldForwardProp:h.FO})(({ownerState:e,theme:t})=>(0,u.Z)({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,u.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function gf(e){return(0,X.ZP)("MuiOutlinedInput",e)}const yf=(0,u.Z)({},Wd,(0,L.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),vf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bf=(0,h.ZP)(Yd,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:$d})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,u.Z)({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,["&:hover ."+yf.notchedOutline]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{["&:hover ."+yf.notchedOutline]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${yf.focused} .${yf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yf.error} .${yf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yf.disabled} .${yf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,u.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),wf=(0,h.ZP)((function(e){const{className:t,label:r,notched:n}=e,o=(0,l.Z)(e,pf),i=null!=r&&""!==r,a=(0,u.Z)({},e,{notched:n,withLabel:i});return(0,D.jsx)(hf,(0,u.Z)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,D.jsx)(mf,{ownerState:a,children:i?(0,D.jsx)("span",{children:r}):ff||(ff=(0,D.jsx)("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),xf=(0,h.ZP)(Gd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hd})(({theme:e,ownerState:t})=>(0,u.Z)({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Sf=e.forwardRef((function(t,r){var n,o,i,a,s;const c=(0,m.Z)({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:p=!1,inputComponent:h="input",label:g,multiline:y=!1,notched:v,slots:b={},type:w="text"}=c,x=(0,l.Z)(c,vf),S=(e=>{const{classes:t}=e,r=(0,f.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gf,t);return(0,u.Z)({},t,r)})(c),_=Dd(),k=jd({props:c,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=(0,u.Z)({},c,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:_,fullWidth:p,hiddenLabel:k.hiddenLabel,multiline:y,size:k.size,type:w}),C=null!=(n=null!=(o=b.root)?o:d.Root)?n:bf,P=null!=(i=null!=(a=b.input)?a:d.Input)?i:xf;return(0,D.jsx)(Kd,(0,u.Z)({slots:{root:C,input:P},renderSuffix:t=>(0,D.jsx)(wf,{ownerState:E,className:S.notchedOutline,label:null!=g&&""!==g&&k.required?s||(s=(0,D.jsxs)(e.Fragment,{children:[g," ","*"]})):g,notched:void 0!==v?v:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:p,inputComponent:h,multiline:y,ref:r,type:w},x,{classes:(0,u.Z)({},S,{notchedOutline:null})}))}));Sf.muiName="Input";const _f=Sf;function kf(e){return(0,X.ZP)("MuiFormLabel",e)}const Ef=(0,L.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Cf=["children","className","color","component","disabled","error","filled","focused","required"],Pf=(0,h.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&."+Ef.focused]:{color:(e.vars||e).palette[t.color].main},["&."+Ef.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+Ef.error]:{color:(e.vars||e).palette.error.main}})),Of=(0,h.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+Ef.error]:{color:(e.vars||e).palette.error.main}})),Tf=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:i="label"}=r,a=(0,l.Z)(r,Cf),s=jd({props:r,muiFormControl:Dd(),states:["color","required","focused","disabled","error","filled"]}),d=(0,u.Z)({},r,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:i,filled:a,required:s}=e,l={root:["root","color"+(0,ne.Z)(r),o&&"disabled",i&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,f.Z)(l,kf,t)})(d);return(0,D.jsxs)(Pf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:[n,s.required&&(0,D.jsxs)(Of,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}));function Rf(e){return(0,X.ZP)("MuiInputLabel",e)}(0,L.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Af=["disableAnimation","margin","shrink","variant","className"],Mf=(0,h.ZP)(Tf,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& ."+Ef.asterisk]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,u.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,u.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),jf=e.forwardRef((function(e,t){const r=(0,m.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:i}=r,a=(0,l.Z)(r,Af),s=Dd();let d=o;void 0===d&&s&&(d=s.filled||s.focused||s.adornedStart);const p=jd({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),h=(0,u.Z)({},r,{disableAnimation:n,formControl:s,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused}),g=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n&&"normal"!==n&&"size"+(0,ne.Z)(n),a],asterisk:[s&&"asterisk"]},c=(0,f.Z)(l,Rf,t);return(0,u.Z)({},t,c)})(h);return(0,D.jsx)(Mf,(0,u.Z)({"data-shrink":d,ownerState:h,ref:t,className:(0,c.Z)(g.root,i)},a,{classes:g}))}));var If=o(48502);function Df(e){return(0,X.ZP)("MuiFormControl",e)}(0,L.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Nf=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Lf=(0,h.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.root,t["margin"+(0,ne.Z)(e.margin)],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>(0,u.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Zf=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:d=!1,error:p=!1,focused:h,fullWidth:g=!1,hiddenLabel:y=!1,margin:v="none",required:b=!1,size:w="medium",variant:x="outlined"}=n,S=(0,l.Z)(n,Nf),_=(0,u.Z)({},n,{color:a,component:s,disabled:d,error:p,fullWidth:g,hiddenLabel:y,margin:v,required:b,size:w,variant:x}),k=(e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&"margin"+(0,ne.Z)(r),n&&"fullWidth"]};return(0,f.Z)(o,Df,t)})(_),[E,C]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{if(!(0,If.Z)(e,["Input","Select"]))return;const r=(0,If.Z)(e,["Select"])?e.props.input:e;r&&r.props.startAdornment&&(t=!0)}),t}),[P,O]=e.useState(()=>{let t=!1;return o&&e.Children.forEach(o,e=>{(0,If.Z)(e,["Input","Select"])&&(Vd(e.props,!0)||Vd(e.props.inputProps,!0))&&(t=!0)}),t}),[T,R]=e.useState(!1);d&&T&&R(!1);const A=void 0===h||d?T:h;const M=e.useMemo(()=>({adornedStart:E,setAdornedStart:C,color:a,disabled:d,error:p,filled:P,focused:A,fullWidth:g,hiddenLabel:y,size:w,onBlur:()=>{R(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{R(!0)},registerEffect:void 0,required:b,variant:x}),[E,a,d,p,P,A,g,y,void 0,b,w,x]);return(0,D.jsx)(Id.Provider,{value:M,children:(0,D.jsx)(Lf,(0,u.Z)({as:s,ownerState:_,className:(0,c.Z)(k.root,i),ref:r},S,{children:o}))})}));function Ff(e){return(0,X.ZP)("MuiFormHelperText",e)}const Bf=(0,L.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Vf;const zf=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Wf=(0,h.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t["size"+(0,ne.Z)(r.size)],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&."+Bf.disabled]:{color:(e.vars||e).palette.text.disabled},["&."+Bf.error]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Uf=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:i="p"}=r,a=(0,l.Z)(r,zf),s=jd({props:r,muiFormControl:Dd(),states:["variant","size","disabled","error","filled","focused","required"]}),d=(0,u.Z)({},r,{component:i,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",n&&"size"+(0,ne.Z)(n),r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,f.Z)(u,Ff,t)})(d);return(0,D.jsx)(Wf,(0,u.Z)({as:i,ownerState:d,className:(0,c.Z)(p.root,o),ref:t},a,{children:" "===n?Vf||(Vf=(0,D.jsx)("span",{className:"notranslate",children:""})):n}))}));o(76607);var $f=o(8038);const Hf=e.createContext({});function Yf(e){return(0,X.ZP)("MuiList",e)}(0,L.Z)("MuiList",["root","padding","dense","subheader"]);const Gf=["children","className","component","dense","disablePadding","subheader"],qf=(0,h.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>(0,u.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Kf=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:d=!1,subheader:p}=n,h=(0,l.Z)(n,Gf),g=e.useMemo(()=>({dense:s}),[s]),y=(0,u.Z)({},n,{component:a,dense:s,disablePadding:d}),v=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,f.Z)(i,Yf,t)})(y);return(0,D.jsx)(Hf.Provider,{value:g,children:(0,D.jsxs)(qf,(0,u.Z)({as:a,className:(0,c.Z)(v.root,i),ref:r,ownerState:y},h,{children:[p,o]}))})}));function Xf(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Qf=Xf,Jf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ep(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function tp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function rp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function np(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&rp(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const op=e.forwardRef((function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu"}=t,h=(0,l.Z)(t,Jf),m=e.useRef(null),y=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Nd.Z)(()=>{o&&m.current.focus()},[o]),e.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,t)=>{const r=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&r){const r=Qf((0,$f.Z)(e))+"px";m.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,m.current.style.width=`calc(100% + ${r})`}return m.current}}),[]);const v=(0,g.Z)(m,r);let b=-1;e.Children.forEach(a,(t,r)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===p&&t.props.selected||-1===b)&&(b=r),b===r&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))):b===r&&(b+=1,b>=a.length&&(b=-1))});const w=e.Children.map(a,(t,r)=>{if(r===b){const r={};return i&&(r.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===p&&(r.tabIndex=0),e.cloneElement(t,r)}return t});return(0,D.jsx)(Kf,(0,u.Z)({role:"menu",ref:v,className:s,onKeyDown:e=>{const t=m.current,r=e.key,n=(0,$f.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),np(t,n,d,c,ep);else if("ArrowUp"===r)e.preventDefault(),np(t,n,d,c,tp);else if("Home"===r)e.preventDefault(),np(t,null,d,c,ep);else if("End"===r)e.preventDefault(),np(t,null,d,c,tp);else if(1===r.length){const o=y.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&rp(n,o);o.previousKeyMatched&&(s||np(t,n,!1,c,ep,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:o?0:-1},h,{children:w}))}));var ip=o(57144),ap=o(5340),sp=o(49064);function lp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function up(e){return parseInt((0,Cd.Z)(e).getComputedStyle(e).paddingRight,10)||0}function cp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&lp(e,o)})}function dp(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function fp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Ni.Z)(e);return t.body===e?(0,Cd.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Xf((0,Ni.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=up(n)+e+"px";const t=(0,Ni.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=up(t)+e+"px"})}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Ni.Z)(n).body;else{const t=n.parentElement,r=(0,Cd.Z)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const pp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&lp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);cp(t,e.mount,e.modalRef,n,!0);const o=dp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=dp(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=fp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=dp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&lp(e.modalRef,t),cp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&lp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function hp(t){const{container:r,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=pp,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:p}=t,h=e.useRef({}),m=e.useRef(null),g=e.useRef(null),y=(0,Ii.Z)(g,p),[v,b]=e.useState(!f),w=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(x=!1);const S=()=>(h.current.modalRef=g.current,h.current.mount=m.current,h.current),_=()=>{i.mount(S(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},k=(0,xs.Z)(()=>{const e=function(e){return"function"==typeof e?e():e}(r)||(0,Ni.Z)(m.current).body;i.add(S(),e),g.current&&_()}),E=e.useCallback(()=>i.isTopModal(S()),[i]),C=(0,xs.Z)(e=>{m.current=e,e&&(f&&E()?_():g.current&&lp(g.current,x))}),P=e.useCallback(()=>{i.remove(S(),x)},[x,i]);e.useEffect(()=>()=>{P()},[P]),e.useEffect(()=>{f?k():w&&a||P()},[f,P,w,a,k]);const O=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},T=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(e={})=>{const r=Ua(t);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,u.Z)({},r,e);return(0,u.Z)({role:"presentation"},n,{onKeyDown:O(n),ref:y})},getBackdropProps:(e={})=>{const t=e;return(0,u.Z)({"aria-hidden":!0},t,{onClick:T(t),open:f})},getTransitionProps:()=>({onEnter:(0,sp.Z)(()=>{b(!1),s&&s()},null==c?void 0:c.props.onEnter),onExited:(0,sp.Z)(()=>{b(!0),l&&l(),a&&P()},null==c?void 0:c.props.onExited)}),rootRef:y,portalRef:C,isTopModal:E,exited:v,hasTransition:w}}const mp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gp(e){const t=[],r=[];return Array.from(e.querySelectorAll(mp)).forEach((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'+t);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function yp(){return!0}function vp(t){const{children:r,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=gp,isEnabled:s=yp,open:l}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),f=e.useRef(null),p=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=(0,Ii.Z)(r.ref,m),y=e.useRef(null);e.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Ni.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[l]),e.useEffect(()=>{if(!l||!m.current)return;const e=(0,Ni.Z)(m.current),t=t=>{y.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var n,i;const e=Boolean((null==(n=y.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=y.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[n,o,i,s,l,a]);const v=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(r,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const t=r.props.onFocus;t&&t(e)}}),(0,D.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const bp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wp={entering:{opacity:1},entered:{opacity:1}},xp=e.forwardRef((function(t,r){const n=bi(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:d,onEnter:f,onEntered:p,onEntering:h,onExit:m,onExited:y,onExiting:v,style:b,timeout:w=o,TransitionComponent:x=Ei}=t,S=(0,l.Z)(t,bp),_=e.useRef(null),k=(0,g.Z)(_,s.ref,r),E=e=>t=>{if(e){const r=_.current;void 0===t?e(r):e(r,t)}},C=E(h),P=E((e,t)=>{Ci(e);const r=Pi({style:b,timeout:w,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),f&&f(e,t)}),O=E(p),T=E(v),R=E(e=>{const t=Pi({style:b,timeout:w,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)}),A=E(y);return(0,D.jsx)(x,(0,u.Z)({appear:a,in:d,nodeRef:_,onEnter:P,onEntered:O,onEntering:C,onExit:R,onExited:A,onExiting:T,addEndListener:e=>{i&&i(_.current,e)},timeout:w},S,{children:(t,r)=>e.cloneElement(s,(0,u.Z)({style:(0,u.Z)({opacity:0,visibility:"exited"!==t||d?void 0:"hidden"},wp[t],b,s.props.style),ref:k},r))}))}));function Sp(e){return(0,X.ZP)("MuiBackdrop",e)}(0,L.Z)("MuiBackdrop",["root","invisible"]);const _p=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],kp=(0,h.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>(0,u.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Ep=e.forwardRef((function(e,t){var r,n,o;const i=(0,m.Z)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:d="div",components:p={},componentsProps:h={},invisible:g=!1,open:y,slotProps:v={},slots:b={},TransitionComponent:w=xp,transitionDuration:x}=i,S=(0,l.Z)(i,_p),_=(0,u.Z)({},i,{component:d,invisible:g}),k=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,f.Z)(n,Sp,t)})(_),E=null!=(r=v.root)?r:h.root;return(0,D.jsx)(w,(0,u.Z)({in:y,timeout:x},S,{children:(0,D.jsx)(kp,(0,u.Z)({"aria-hidden":!0},E,{as:null!=(n=null!=(o=b.root)?o:p.Root)?n:d,className:(0,c.Z)(k.root,s,null==E?void 0:E.className),ownerState:(0,u.Z)({},_,null==E?void 0:E.ownerState),classes:k,ref:t,children:a}))}))}));function Cp(e){return(0,X.ZP)("MuiModal",e)}(0,L.Z)("MuiModal",["root","hidden","backdrop"]);const Pp=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Op=(0,h.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,u.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Tp=(0,h.ZP)(Ep,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Rp=e.forwardRef((function(t,r){var n,o,i,a,s,d;const p=(0,m.Z)({name:"MuiModal",props:t}),{BackdropComponent:h=Tp,BackdropProps:g,className:y,closeAfterTransition:v=!1,children:b,container:w,component:x,components:S={},componentsProps:_={},disableAutoFocus:k=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:C=!1,disablePortal:P=!1,disableRestoreFocus:O=!1,disableScrollLock:T=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:M,open:j,slotProps:I,slots:N}=p,L=(0,l.Z)(p,Pp),Z=(0,u.Z)({},p,{closeAfterTransition:v,disableAutoFocus:k,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:P,disableRestoreFocus:O,disableScrollLock:T,hideBackdrop:R,keepMounted:A}),{getRootProps:F,getBackdropProps:B,getTransitionProps:V,portalRef:z,isTopModal:W,exited:U,hasTransition:$}=hp((0,u.Z)({},Z,{rootRef:r})),H=(0,u.Z)({},Z,{exited:U}),Y=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,f.Z)(o,Cp,n)})(H),G={};if(void 0===b.props.tabIndex&&(G.tabIndex="-1"),$){const{onEnter:e,onExited:t}=V();G.onEnter=e,G.onExited=t}const q=null!=(n=null!=(o=null==N?void 0:N.root)?o:S.Root)?n:Op,K=null!=(i=null!=(a=null==N?void 0:N.backdrop)?a:S.Backdrop)?i:h,X=null!=(s=null==I?void 0:I.root)?s:_.root,Q=null!=(d=null==I?void 0:I.backdrop)?d:_.backdrop,J=Ya({elementType:q,externalSlotProps:X,externalForwardedProps:L,getSlotProps:F,additionalProps:{ref:r,as:x},ownerState:H,className:(0,c.Z)(y,null==X?void 0:X.className,null==Y?void 0:Y.root,!H.open&&H.exited&&(null==Y?void 0:Y.hidden))}),ee=Ya({elementType:K,externalSlotProps:Q,additionalProps:g,getSlotProps:e=>B((0,u.Z)({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,c.Z)(null==Q?void 0:Q.className,null==g?void 0:g.className,null==Y?void 0:Y.backdrop),ownerState:H});return A||j||$&&!U?(0,D.jsx)(Va,{ref:z,container:w,disablePortal:P,children:(0,D.jsxs)(q,(0,u.Z)({},J,{children:[!R&&h?(0,D.jsx)(K,(0,u.Z)({},ee)):null,(0,D.jsx)(vp,{disableEnforceFocus:E,disableAutoFocus:k,disableRestoreFocus:O,isEnabled:W,open:j,children:e.cloneElement(b,G)})]}))}):null})),Ap=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Mp(e){return(0,X.ZP)("MuiPaper",e)}(0,L.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jp=["className","component","elevation","square","variant"],Ip=(0,h.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation"+r.elevation]]}})(({theme:e,ownerState:t})=>{var r;return(0,u.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:"1px solid "+(e.vars||e).palette.divider},"elevation"===t.variant&&(0,u.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,p.Fq)("#fff",Ap(t.elevation))}, ${(0,p.Fq)("#fff",Ap(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),Dp=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,d=(0,l.Z)(r,jp),p=(0,u.Z)({},r,{component:o,elevation:i,square:a,variant:s}),h=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&"elevation"+r]};return(0,f.Z)(i,Mp,o)})(p);return(0,D.jsx)(Ip,(0,u.Z)({as:o,ownerState:p,className:(0,c.Z)(h.root,n),ref:t},d))}));function Np(e){return(0,X.ZP)("MuiPopover",e)}(0,L.Z)("MuiPopover",["root","paper"]);const Lp=["onEntering"],Zp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Fp=["slotProps"];function Bp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Vp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function zp(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?e+"px":e).join(" ")}function Wp(e){return"function"==typeof e?e():e}const Up=(0,h.ZP)(Rp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$p=(0,h.ZP)(Dp,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Hp=e.forwardRef((function(t,r){var n,o,i;const a=(0,m.Z)({props:t,name:"MuiPopover"}),{action:s,anchorEl:d,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:y="anchorEl",children:v,className:b,container:w,elevation:x=8,marginThreshold:S=16,open:_,PaperProps:k={},slots:E,slotProps:C,transformOrigin:P={vertical:"top",horizontal:"left"},TransitionComponent:O=ji,transitionDuration:T="auto",TransitionProps:{onEntering:R}={},disableScrollLock:A=!1}=a,M=(0,l.Z)(a.TransitionProps,Lp),j=(0,l.Z)(a,Zp),I=null!=(n=null==C?void 0:C.paper)?n:k,N=e.useRef(),L=(0,g.Z)(N,I.ref),Z=(0,u.Z)({},a,{anchorOrigin:p,anchorReference:y,elevation:x,marginThreshold:S,externalPaperSlotProps:I,transformOrigin:P,TransitionComponent:O,transitionDuration:T,TransitionProps:M}),F=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Np,t)})(Z),B=e.useCallback(()=>{if("anchorPosition"===y)return h;const e=Wp(d),t=(e&&1===e.nodeType?e:(0,$f.Z)(N.current).body).getBoundingClientRect();return{top:t.top+Bp(t,p.vertical),left:t.left+Vp(t,p.horizontal)}},[d,p.horizontal,p.vertical,h,y]),V=e.useCallback(e=>({vertical:Bp(e,P.vertical),horizontal:Vp(e,P.horizontal)}),[P.horizontal,P.vertical]),z=e.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=V(t);if("none"===y)return{top:null,left:null,transformOrigin:zp(r)};const n=B();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,l=(0,ap.Z)(Wp(d)),u=l.innerHeight-S,c=l.innerWidth-S;if(null!==S&&o<S){const e=o-S;o-=e,r.vertical+=e}else if(null!==S&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==S&&i<S){const e=i-S;i-=e,r.horizontal+=e}else if(s>c){const e=s-c;i-=e,r.horizontal+=e}return{top:Math.round(o)+"px",left:Math.round(i)+"px",transformOrigin:zp(r)}},[d,y,B,V,S]),[W,U]=e.useState(_),$=e.useCallback(()=>{const e=N.current;if(!e)return;const t=z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)},[z]);e.useEffect(()=>(A&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[d,A,$]);e.useEffect(()=>{_&&$()}),e.useImperativeHandle(s,()=>_?{updatePosition:()=>{$()}}:null,[_,$]),e.useEffect(()=>{if(!_)return;const e=(0,ip.Z)(()=>{$()}),t=(0,ap.Z)(d);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[d,_,$]);let H=T;"auto"!==T||O.muiSupportAuto||(H=void 0);const Y=w||(d?(0,$f.Z)(Wp(d)).body:void 0),G=null!=(o=null==E?void 0:E.root)?o:Up,q=null!=(i=null==E?void 0:E.paper)?i:$p,K=Ya({elementType:q,externalSlotProps:(0,u.Z)({},I,{style:W?I.style:(0,u.Z)({},I.style,{opacity:0})}),additionalProps:{elevation:x,ref:L},ownerState:Z,className:(0,c.Z)(F.paper,null==I?void 0:I.className)}),X=Ya({elementType:G,externalSlotProps:(null==C?void 0:C.root)||{},externalForwardedProps:j,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:Y,open:_},ownerState:Z,className:(0,c.Z)(F.root,b)}),{slotProps:Q}=X,J=(0,l.Z)(X,Fp);return(0,D.jsx)(G,(0,u.Z)({},J,!hi(G)&&{slotProps:Q,disableScrollLock:A},{children:(0,D.jsx)(O,(0,u.Z)({appear:!0,in:_,onEntering:(e,t)=>{R&&R(e,t),$()},onExited:()=>{U(!1)},timeout:H},M,{children:(0,D.jsx)(q,(0,u.Z)({},K,{children:v}))}))}))}));function Yp(e){return(0,X.ZP)("MuiMenu",e)}(0,L.Z)("MuiMenu",["root","paper","list"]);const Gp=["onEntering"],qp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Kp={vertical:"top",horizontal:"right"},Xp={vertical:"top",horizontal:"left"},Qp=(0,h.ZP)(Hp,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jp=(0,h.ZP)($p,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eh=(0,h.ZP)(op,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),th=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:d,disableAutoFocusItem:p=!1,MenuListProps:h={},onClose:g,open:y,PaperProps:v={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:x}={},variant:S="selectedMenu",slots:_={},slotProps:k={}}=i,E=(0,l.Z)(i.TransitionProps,Gp),C=(0,l.Z)(i,qp),P=bi(),O="rtl"===P.direction,T=(0,u.Z)({},i,{autoFocus:a,disableAutoFocusItem:p,MenuListProps:h,onEntering:x,PaperProps:v,transitionDuration:w,TransitionProps:E,variant:S}),R=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"],list:["list"]},Yp,t)})(T),A=a&&!p&&y,M=e.useRef(null);let j=-1;e.Children.map(s,(t,r)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===S&&t.props.selected||-1===j)&&(j=r))});const I=null!=(n=_.paper)?n:Jp,N=null!=(o=k.paper)?o:v,L=Ya({elementType:_.root,externalSlotProps:k.root,ownerState:T,className:[R.root,d]}),Z=Ya({elementType:I,externalSlotProps:N,ownerState:T,className:R.paper});return(0,D.jsx)(Qp,(0,u.Z)({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?Kp:Xp,slots:{paper:I,root:_.root},slotProps:{root:L,paper:Z},open:y,ref:r,transitionDuration:w,TransitionProps:(0,u.Z)({onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,P),x&&x(e,t)}},E),ownerState:T},C,{classes:b,children:(0,D.jsx)(eh,(0,u.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===j||p),autoFocusItem:A,variant:S},h,{className:(0,c.Z)(R.list,h.className),children:s}))}))}));function rh(e){return(0,X.ZP)("MuiNativeSelect",e)}const nh=(0,L.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oh=["className","disabled","error","IconComponent","inputRef","variant"],ih=({ownerState:e,theme:t})=>(0,u.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,u.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&."+nh.disabled]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ah=(0,h.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:h.FO,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&."+nh.multiple]:t.multiple}]}})(ih),sh=({ownerState:e,theme:t})=>(0,u.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,["&."+nh.disabled]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),lh=(0,h.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon"+(0,ne.Z)(r.variant)],r.open&&t.iconOpen]}})(sh),uh=e.forwardRef((function(t,r){const{className:n,disabled:o,error:i,IconComponent:a,inputRef:s,variant:d="standard"}=t,p=(0,l.Z)(t,oh),h=(0,u.Z)({},t,{disabled:o,variant:d,error:i}),m=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,ne.Z)(r),i&&"iconOpen",n&&"disabled"]};return(0,f.Z)(s,rh,t)})(h);return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(ah,(0,u.Z)({ownerState:h,className:(0,c.Z)(m.select,n),disabled:o,ref:s||r},p)),t.multiple?null:(0,D.jsx)(lh,{as:a,ownerState:h,className:m.icon})]})}));function ch(e){return(0,X.ZP)("MuiSelect",e)}const dh=(0,L.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fh;const ph=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],hh=(0,h.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["&."+dh.select]:t.select},{["&."+dh.select]:t[r.variant]},{["&."+dh.error]:t.error},{["&."+dh.multiple]:t.multiple}]}})(ih,{["&."+dh.select]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mh=(0,h.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t["icon"+(0,ne.Z)(r.variant)],r.open&&t.iconOpen]}})(sh),gh=(0,h.ZP)("input",{shouldForwardProp:e=>(0,h.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function vh(e){return null==e||"string"==typeof e&&!e.trim()}const bh=e.forwardRef((function(t,r){var n;const{"aria-describedby":o,"aria-label":i,autoFocus:a,autoWidth:s,children:d,className:p,defaultOpen:h,defaultValue:m,disabled:y,displayEmpty:v,error:b=!1,IconComponent:w,inputRef:x,labelId:S,MenuProps:_={},multiple:k,name:E,onBlur:C,onChange:P,onClose:O,onFocus:T,onOpen:R,open:A,readOnly:M,renderValue:j,SelectDisplayProps:I={},tabIndex:N,value:L,variant:Z="standard"}=t,F=(0,l.Z)(t,ph),[B,V]=(0,us.Z)({controlled:L,default:m,name:"Select"}),[z,W]=(0,us.Z)({controlled:A,default:h,name:"Select"}),U=e.useRef(null),$=e.useRef(null),[H,Y]=e.useState(null),{current:G}=e.useRef(null!=A),[q,K]=e.useState(),X=(0,g.Z)(r,x),Q=e.useCallback(e=>{$.current=e,e&&Y(e)},[]),J=null==H?void 0:H.parentNode;e.useImperativeHandle(X,()=>({focus:()=>{$.current.focus()},node:U.current,value:B}),[B]),e.useEffect(()=>{h&&z&&H&&!G&&(K(s?null:J.clientWidth),$.current.focus())},[H,s]),e.useEffect(()=>{a&&$.current.focus()},[a]),e.useEffect(()=>{if(!S)return;const e=(0,$f.Z)($.current).getElementById(S);if(e){const t=()=>{getSelection().isCollapsed&&$.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[S]);const ee=(e,t)=>{e?R&&R(t):O&&O(t),G||(K(s?null:J.clientWidth),W(e))},te=e.Children.toArray(d),re=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(k){r=Array.isArray(B)?B.slice():[];const t=B.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),B!==r&&(V(r),P)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:E}}),P(o,e)}k||ee(!1,t)}},oe=null!==H&&z;let ie,ae;delete F["aria-invalid"];const se=[];let le=!1,ue=!1;(Vd({value:B})||v)&&(j?ie=j(B):le=!0);const ce=te.map(t=>{if(!e.isValidElement(t))return null;let r;if(k){if(!Array.isArray(B))throw new Error((0,Ed.Z)(2));r=B.some(e=>yh(e,t.props.value)),r&&le&&se.push(t.props.children)}else r=yh(B,t.props.value),r&&le&&(ae=t.props.children);return r&&(ue=!0),e.cloneElement(t,{"aria-selected":r?"true":"false",onClick:re(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:r,value:void 0,"data-value":t.props.value})});le&&(ie=k?0===se.length?null:se.reduce((e,t,r)=>(e.push(t),r<se.length-1&&e.push(", "),e),[]):ae);let de,fe=q;!s&&G&&H&&(fe=J.clientWidth),de=void 0!==N?N:y?null:0;const pe=I.id||(E?"mui-component-select-"+E:void 0),he=(0,u.Z)({},t,{variant:Z,value:B,open:oe,error:b}),me=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon"+(0,ne.Z)(r),i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,f.Z)(s,ch,t)})(he),ge=(0,u.Z)({},_.PaperProps,null==(n=_.slotProps)?void 0:n.paper),ye=(0,_d.Z)();return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(hh,(0,u.Z)({ref:Q,tabIndex:de,role:"combobox","aria-controls":ye,"aria-disabled":y?"true":void 0,"aria-expanded":oe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[S,pe].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:y||M?null:e=>{0===e.button&&(e.preventDefault(),$.current.focus(),ee(!0,e))},onBlur:e=>{!oe&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:B,name:E}}),C(e))},onFocus:T},I,{ownerState:he,className:(0,c.Z)(I.className,me.select,p),id:pe,children:vh(ie)?fh||(fh=(0,D.jsx)("span",{className:"notranslate",children:""})):ie})),(0,D.jsx)(gh,(0,u.Z)({"aria-invalid":b,value:Array.isArray(B)?B.join(","):B,name:E,ref:U,"aria-hidden":!0,onChange:e=>{const t=te.find(t=>t.props.value===e.target.value);void 0!==t&&(V(t.props.value),P&&P(e,t))},tabIndex:-1,disabled:y,className:me.nativeInput,autoFocus:a,ownerState:he},F)),(0,D.jsx)(mh,{as:w,className:me.icon,ownerState:he}),(0,D.jsx)(th,(0,u.Z)({id:"menu-"+(E||""),anchorEl:J,open:oe,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},_,{MenuListProps:(0,u.Z)({"aria-labelledby":S,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:ye},_.MenuListProps),slotProps:(0,u.Z)({},_.slotProps,{paper:(0,u.Z)({},ge,{style:(0,u.Z)({minWidth:fe},null!=ge?ge.style:null)})}),children:ce}))]})}));var wh=o(82066);const xh=(0,wh.Z)((0,D.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Sh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_h=["root"],kh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,h.FO)(e)&&"variant"!==e,slot:"Root"},Eh=(0,h.ZP)(nf,kh)(""),Ch=(0,h.ZP)(_f,kh)(""),Ph=(0,h.ZP)(df,kh)(""),Oh=e.forwardRef((function(t,r){const n=(0,m.Z)({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:p=xh,id:h,input:y,inputProps:v,label:b,labelId:w,MenuProps:x,multiple:S=!1,native:_=!1,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:O,variant:T="outlined"}=n,R=(0,l.Z)(n,Sh),A=_?uh:bh,M=jd({props:n,muiFormControl:Dd(),states:["variant","error"]}),j=M.variant||T,I=(0,u.Z)({},n,{variant:j,classes:a}),N=(e=>{const{classes:t}=e;return t})(I),L=(0,l.Z)(N,_h),Z=y||{standard:(0,D.jsx)(Eh,{ownerState:I}),outlined:(0,D.jsx)(Ch,{label:b,ownerState:I}),filled:(0,D.jsx)(Ph,{ownerState:I})}[j],F=(0,g.Z)(r,Z.ref);return(0,D.jsx)(e.Fragment,{children:e.cloneElement(Z,(0,u.Z)({inputComponent:A,inputProps:(0,u.Z)({children:i,error:M.error,IconComponent:p,variant:j,type:void 0,multiple:S},_?{id:h}:{autoWidth:o,defaultOpen:d,displayEmpty:f,labelId:w,MenuProps:x,onClose:k,onOpen:E,open:C,renderValue:P,SelectDisplayProps:(0,u.Z)({id:h},O)},v,{classes:v?(0,kd.Z)(L,v.classes):L},y?y.props.inputProps:{})},S&&_&&"outlined"===j?{notched:!0}:{},{ref:F,className:(0,c.Z)(Z.props.className,s,N.root)},!y&&{variant:j},R))})}));Oh.muiName="Select";const Th=Oh;function Rh(e){return(0,X.ZP)("MuiTextField",e)}(0,L.Z)("MuiTextField",["root"]);const Ah=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Mh={standard:nf,filled:df,outlined:_f},jh=(0,h.ZP)(Zf,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ih=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:d,disabled:p=!1,error:h=!1,FormHelperTextProps:g,fullWidth:y=!1,helperText:v,id:b,InputLabelProps:w,inputProps:x,InputProps:S,inputRef:_,label:k,maxRows:E,minRows:C,multiline:P=!1,name:O,onBlur:T,onChange:R,onFocus:A,placeholder:M,required:j=!1,rows:I,select:N=!1,SelectProps:L,type:Z,value:F,variant:B="outlined"}=r,V=(0,l.Z)(r,Ah),z=(0,u.Z)({},r,{autoFocus:o,color:s,disabled:p,error:h,fullWidth:y,multiline:P,required:j,select:N,variant:B}),W=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Rh,t)})(z);const U={};"outlined"===B&&(w&&void 0!==w.shrink&&(U.notched=w.shrink),U.label=k),N&&(L&&L.native||(U.id=void 0),U["aria-describedby"]=void 0);const $=(0,_d.Z)(b),H=v&&$?$+"-helper-text":void 0,Y=k&&$?$+"-label":void 0,G=Mh[B],q=(0,D.jsx)(G,(0,u.Z)({"aria-describedby":H,autoComplete:n,autoFocus:o,defaultValue:d,fullWidth:y,multiline:P,name:O,rows:I,maxRows:E,minRows:C,type:Z,value:F,id:$,inputRef:_,onBlur:T,onChange:R,onFocus:A,placeholder:M,inputProps:x},U,S));return(0,D.jsxs)(jh,(0,u.Z)({className:(0,c.Z)(W.root,a),disabled:p,error:h,fullWidth:y,ref:t,required:j,color:s,variant:B,ownerState:z},V,{children:[null!=k&&""!==k&&(0,D.jsx)(jf,(0,u.Z)({htmlFor:$,id:Y},w,{children:k})),N?(0,D.jsx)(Th,(0,u.Z)({"aria-describedby":H,id:$,labelId:Y,value:F,input:q},L,{children:i})):q,v&&(0,D.jsx)(Uf,(0,u.Z)({id:H},g,{children:v}))]}))}));var Dh=o(54048);function Nh(e){return(0,X.ZP)("MuiIconButton",e)}const Lh=(0,L.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Zh=["edge","children","className","color","disabled","disableFocusRipple","size"],Fh=(0,h.ZP)(re,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color"+(0,ne.Z)(r.color)],r.edge&&t["edge"+(0,ne.Z)(r.edge)],t["size"+(0,ne.Z)(r.size)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return(0,u.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,u.Z)({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":(0,u.Z)({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{["&."+Lh.disabled]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Bh=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:d=!1,size:p="medium"}=r,h=(0,l.Z)(r,Zh),g=(0,u.Z)({},r,{edge:n,color:a,disabled:s,disableFocusRipple:d,size:p}),y=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e,a={root:["root",r&&"disabled","default"!==n&&"color"+(0,ne.Z)(n),o&&"edge"+(0,ne.Z)(o),"size"+(0,ne.Z)(i)]};return(0,f.Z)(a,Nh,t)})(g);return(0,D.jsx)(Fh,(0,u.Z)({className:(0,c.Z)(y.root,i),centerRipple:!0,focusRipple:!d,disabled:s,ref:t,ownerState:g},h,{children:o}))}));const Vh=(0,L.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const zh=(0,L.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);const Wh=(0,L.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Uh(e){return(0,X.ZP)("MuiMenuItem",e)}const $h=(0,L.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yh=(0,h.ZP)(re,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:"1px solid "+(e.vars||e).palette.divider,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&."+$h.selected]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+$h.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$h.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},["&."+$h.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["&."+$h.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity},["& + ."+Vh.root]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},["& + ."+Vh.inset]:{marginLeft:52},["& ."+Wh.root]:{marginTop:0,marginBottom:0},["& ."+Wh.inset]:{paddingLeft:36},["& ."+zh.root]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,u.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${zh.root} svg`]:{fontSize:"1.25rem"}}))),Gh=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:d=!1,focusVisibleClassName:p,role:h="menuitem",tabIndex:y,className:v}=n,b=(0,l.Z)(n,Hh),w=e.useContext(Hf),x=e.useMemo(()=>({dense:a||w.dense||!1,disableGutters:d}),[w.dense,a,d]),S=e.useRef(null);(0,Nd.Z)(()=>{o&&S.current&&S.current.focus()},[o]);const _=(0,u.Z)({},n,{dense:x.dense,divider:s,disableGutters:d}),k=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e,s={root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},l=(0,f.Z)(s,Uh,a);return(0,u.Z)({},a,l)})(n),E=(0,g.Z)(S,r);let C;return n.disabled||(C=void 0!==y?y:-1),(0,D.jsx)(Hf.Provider,{value:x,children:(0,D.jsx)(Yh,(0,u.Z)({ref:E,role:h,tabIndex:C,component:i,focusVisibleClassName:(0,c.Z)(k.focusVisible,p),className:(0,c.Z)(k.root,v)},b,{ownerState:_,classes:k}))})}));function qh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kh(e,t)}(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 Kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xh=function(e,t){return{value:e.value,label:Qo.getLocalizedValue(t&&e.editlabel||e.label).value,description:e.description||e.editdescription?Qo.getLocalizedValue(t&&e.editdescription||e.description).value:void 0,seeAlso:e.seeAlso,mismatch:e.mismatch,original:e}},Qh=function(e){return Xh(e,!0)},Jh=function(t,r){return(0,e.useMemo)((function(){var e=t.getItem(),n=e.getChoices().map(r?Qh:Xh);e.hasStyle("preserveOrderOfChoices")||n.sort((function(e,t){return e.label<t.label?-1:1}));var o=t.getChoice();return null!=o&&o.mismatch&&n.unshift({value:o.value,label:o.value,mismatch:!0,original:o}),n}),[])},em=function(t,r){var n=r?Qh:Xh,o=qh((0,e.useState)((function(){var e=t.getChoice()||null;return e?n(e):null})),2),i=o[0],a=o[1];return(0,e.useEffect)((function(){i&&i.original.load&&i.original.load((function(){a(n(i.original))}),(function(){a(n(i.original))}))}),[]),[i,a]},tm=0,rm=function(t,r){return(0,e.useMemo)((function(){return wd(t,r)}))};function nm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return om(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return om(e,t)}(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 om(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var im=function(t){var r=nm((0,e.useState)(t.binding.getLanguage()||""),2),n=r[0],o=r[1],i=(0,e.useMemo)((function(){var e=Qo.cloneArrayWithLabels(pi.getPrimaryLanguageList()),t=Qo.cloneArrayWithLabels(pi.getNonPrimaryLanguageList());return 0===e.length?t:e.concat([null],t)}));(0,e.useEffect)((function(){if(!t.binding.isValid()){var e=t.context.view.getDefaultTextLanguage();"string"==typeof e&&""!==e&&(o(e),t.binding.setLanguage(e,!0))}}),[]);(0,e.useEffect)((function(){t.context.clearLanguage=function(){o("")}}),[]);var a=rm(t.binding,t.context);return e.createElement(Zf,{className:"rdformsLangControl",variant:pi.materialVariant},e.createElement(Th,{inputProps:{"aria-labelledby":t.labelledby},value:n,disabled:!!a,onChange:function(e){t.binding.setLanguage(e.target.value),o(e.target.value)}},i.map((function(t){return null===t?e.createElement(Gh,{key:"_none",value:"_none",disabled:!0},"─────"):e.createElement(Gh,{key:t.value,value:t.value},t.label||" ")}))))},am=pi.editorRegistry;am.itemtype("text").register((function(t,r,n){var o=r.getItem(),i=o.getNodetype(),a=o.hasStyle("multiline"),s=o.hasStyle("externalLink"),l="LANGUAGE_LITERAL"===i||"PLAIN_LITERAL"===i,u=o.getPattern(),c=u?new RegExp(u):null,d=function(){var t=nm((0,e.useState)(r.getGist()),2),i=t[0],u=t[1],d=r.getValue();(0,e.useEffect)((function(){n.clear=function(){u(""),n.clearLanguage&&n.clearLanguage()}}),[]);var f=null===i||""===i||!c||c.test(i),p=n.view.getLabelIndex(r),h={value:i,"aria-labelledby":p,onChange:function(e){var t=e.target.value;!c||c.test(t)?r.setGist(t):r.setGist(""),u(t)}},m=n.view.messages,g=rm(r,n);return e.createElement(e.Fragment,null,e.createElement(Ih,{className:s||l?"rdformsTwoThirds":"",multiline:a,placeholder:o.getPlaceholder(),error:!f,disabled:!!g,helperText:f?"":o.getHelp()||"",variant:pi.materialVariant,inputProps:h}),s&&(null!=d||""===d)&&e.createElement(Bh,{"aria-label":m.openLinkExternally,disabled:!f,target:"_blank",href:d,title:d},e.createElement(Dh.Z,null)),l?e.createElement(im,{binding:r,context:n,labelledby:p}):"")};t.appendChild(e.createElement(d,{key:r.getHash()}))}));var sm=function(t){return function(r,n,o){var i=t?new RegExp(t):null,a=n.getItem(),s=function(){var t=nm((0,e.useState)(n.getGist()),2),r=t[0],s=t[1];(0,e.useEffect)((function(){o.clear=function(){return s("")}}),[]);var l=!r||!i||i.test(r),u={value:r,"aria-labelledby":o.view.getLabelIndex(n),onChange:function(e){var t=e.target.value;!i||i.test(t)?n.setGist(t):n.setGist(""),s(t)}};return e.createElement(Ih,{error:!l,placeholder:a.getPlaceholder(),helperText:l?"":a.getHelp()||"",variant:pi.materialVariant,inputProps:u})};r.appendChild(e.createElement(s,{key:n.getHash()}))}};function lm(){return(lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function um(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cm(e,t)}(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 cm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}am.itemtype("text").datatype("xsd:integer").register(sm("^-?\\d+$")),am.itemtype("text").datatype("xsd:decimal").register(sm("^-?(\\d+(\\.\\d+)?)$"));var dm=pi.presenterRegistry,fm=function(e){return function(t,r,n){var o,i=r.getChoice(),a=n.view instanceof ed;if(i){var s=n.view.getLocale();a&&i.editdescription?o=Qo.getLocalizedValue(i.editdescription,s).value:i.description&&(o=Qo.getLocalizedValue(i.description,s).value),e(t,r,i,o,a,s)}}},pm=function(e,t,r){return Qo.getLocalizedValue(t&&e.editlabel||e.label,r)};dm.itemtype("choice").style("image").register(fm((function(t,r,n,o){t.appendChild(e.createElement("img",{key:r.getHash(),className:"rdformsImage",title:o||n.value,src:n.value}))}))),dm.itemtype("choice").style("stars").register(fm((function(t,r,n){isNaN(parseInt(n.value,10))||t.appendChild(e.createElement("span",{key:r.getHash(),className:"rdformsStar"}))}))),dm.itemtype("choice").register(fm((function(t,r,n,o,i,a){var s=r.getItem(),l=o||n.seeAlso||n.value;if(s.hasStaticChoices()&&!s.hasStyle("externalLink")||s.hasStyle("noLink"))t.appendChild(e.createElement((function(){var t=um((0,e.useState)(pm(n,i,a)),2),o=t[0],s=t[1];(0,e.useEffect)((function(){null!=n.load&&n.load((function(){s(pm(n,i,a))}))}),[]);var u=o.lang?{lang:o.lang}:{};return e.createElement("div",lm({key:r.getHash()},u,{title:l}),o.value)}),{key:r.getHash()}));else{var u,c=(u=s.hasStyle("externalLink")?ei.attachExternalLinkBehaviour(t,r)||{}:ei.attachLinkBehaviour(t,r)||{}).component||null;delete u.component,t.appendChild(e.createElement((function(){var t=um((0,e.useState)(pm(n,i,a)),2),r=t[0],o=t[1];return(0,e.useEffect)((function(){null!=n.load&&n.load((function(){o(pm(n,i,a))}))}),[]),r.lang&&(u.lang=r.lang),e.createElement("a",lm({},u,{title:l,href:n.seeAlso||n.value}),e.createElement("span",null,r.value),c)}),{key:r.getHash()}))}})));o(61514);function hm(e){return(0,X.ZP)("PrivateSwitchBase",e)}(0,L.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const mm=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],gm=(0,h.ZP)(re)(({ownerState:e})=>(0,u.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),ym=(0,h.ZP)("input",{shouldForwardProp:h.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vm=e.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:d=!1,edge:p=!1,icon:h,id:m,inputProps:g,inputRef:y,name:v,onBlur:b,onChange:w,onFocus:x,readOnly:S,required:_=!1,tabIndex:k,type:E,value:C}=e,P=(0,l.Z)(e,mm),[O,T]=(0,us.Z)({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=Dd();let A=s;R&&void 0===A&&(A=R.disabled);const M="checkbox"===E||"radio"===E,j=(0,u.Z)({},e,{checked:O,disabled:A,disableFocusRipple:d,edge:p}),I=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&"edge"+(0,ne.Z)(o)],input:["input"]};return(0,f.Z)(i,hm,t)})(j);return(0,D.jsxs)(gm,(0,u.Z)({component:"span",className:(0,c.Z)(I.root,i),centerRipple:!0,focusRipple:!d,disabled:A,tabIndex:null,role:void 0,onFocus:e=>{x&&x(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{b&&b(e),R&&R.onBlur&&R.onBlur(e)},ownerState:j,ref:t},P,{children:[(0,D.jsx)(ym,(0,u.Z)({autoFocus:r,checked:n,defaultChecked:a,className:I.input,disabled:A,id:M?m:void 0,name:v,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;T(t),w&&w(e,t)},readOnly:S,ref:y,required:_,ownerState:j,tabIndex:k,type:E},"checkbox"===E&&void 0===C?{}:{value:C},g)),O?o:h]}))})),bm=(0,wh.Z)((0,D.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),wm=(0,wh.Z)((0,D.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),xm=(0,h.ZP)("span",{shouldForwardProp:h.FO})({position:"relative",display:"flex"}),Sm=(0,h.ZP)(bm)({transform:"scale(1)"}),_m=(0,h.ZP)(wm)(({theme:e,ownerState:t})=>(0,u.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));const km=function(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=(0,u.Z)({},e,{checked:t});return(0,D.jsxs)(xm,{className:r.root,ownerState:o,children:[(0,D.jsx)(Sm,{fontSize:n,className:r.background,ownerState:o}),(0,D.jsx)(_m,{fontSize:n,className:r.dot,ownerState:o})]})};var Em=o(35893);const Cm=e.createContext(void 0);function Pm(e){return(0,X.ZP)("MuiRadio",e)}const Om=(0,L.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Tm=["checked","checkedIcon","color","icon","name","onChange","size","className"],Rm=(0,h.ZP)(vm,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t["size"+(0,ne.Z)(r.size)],t["color"+(0,ne.Z)(r.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{["&."+Om.checked]:{color:(e.vars||e).palette[t.color].main}},{["&."+Om.disabled]:{color:(e.vars||e).palette.action.disabled}}));const Am=(0,D.jsx)(km,{checked:!0}),Mm=(0,D.jsx)(km,{}),jm=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=Am,color:d="primary",icon:p=Mm,name:h,onChange:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,Tm),w=(0,u.Z)({},i,{color:d,size:y}),x=(e=>{const{classes:t,color:r,size:n}=e,o={root:["root","color"+(0,ne.Z)(r),"medium"!==n&&"size"+(0,ne.Z)(n)]};return(0,u.Z)({},t,(0,f.Z)(o,Pm,t))})(w),S=e.useContext(Cm);let _=a;const k=(0,Em.Z)(g,S&&S.onChange);let E=h;var C,P;return S&&(void 0===_&&(C=S.value,_="object"==typeof(P=i.value)&&null!==P?C===P:String(C)===String(P)),void 0===E&&(E=S.name)),(0,D.jsx)(Rm,(0,u.Z)({type:"radio",icon:e.cloneElement(p,{fontSize:null!=(n=Mm.props.fontSize)?n:y}),checkedIcon:e.cloneElement(s,{fontSize:null!=(o=Am.props.fontSize)?o:y}),ownerState:w,classes:x,name:E,checked:_,onChange:k,ref:r,className:(0,c.Z)(x.root,v)},b))}));function Im(e){return(0,X.ZP)("MuiFormGroup",e)}(0,L.Z)("MuiFormGroup",["root","row","error"]);const Dm=["className","row"],Nm=(0,h.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),Lm=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,i=(0,l.Z)(r,Dm),a=jd({props:r,muiFormControl:Dd(),states:["error"]}),s=(0,u.Z)({},r,{row:o,error:a.error}),d=(e=>{const{classes:t,row:r,error:n}=e,o={root:["root",r&&"row",n&&"error"]};return(0,f.Z)(o,Im,t)})(s);return(0,D.jsx)(Nm,(0,u.Z)({className:(0,c.Z)(d.root,n),ownerState:s,ref:t},i))})),Zm=["actions","children","defaultValue","name","onChange","value"],Fm=e.forwardRef((function(t,r){const{actions:n,children:o,defaultValue:i,name:a,onChange:s,value:c}=t,d=(0,l.Z)(t,Zm),f=e.useRef(null),[p,h]=(0,us.Z)({controlled:c,default:i,name:"RadioGroup"});e.useImperativeHandle(n,()=>({focus:()=>{let e=f.current.querySelector("input:not(:disabled):checked");e||(e=f.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);const m=(0,g.Z)(r,f),y=(0,ls.Z)(a),v=e.useMemo(()=>({name:y,onChange(e){h(e.target.value),s&&s(e,e.target.value)},value:p}),[y,s,h,p]);return(0,D.jsx)(Cm.Provider,{value:v,children:(0,D.jsx)(Lm,(0,u.Z)({role:"radiogroup",ref:m},d,{children:o}))})}));const Bm=(0,o(22360).ZP)();var Vm=o(29628),zm=o(38010);const Wm=["sx"];function Um(e){const{sx:t}=e,r=(0,l.Z)(e,Wm),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:zm.Z;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,kd.P)(r)?(0,u.Z)({},n,r):n}:(0,u.Z)({},n,t),(0,u.Z)({},o,{sx:i})}var $m=o(86268),Hm=o(95408),Ym=o(62605);const Gm=["component","direction","spacing","divider","children","className","useFlexGap"],qm=(0,$m.Z)(),Km=Bm("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Xm(e){return(0,Vm.Z)({props:e,name:"MuiStack",defaultTheme:qm})}function Qm(t,r){const n=e.Children.toArray(t).filter(Boolean);return n.reduce((t,o,i)=>(t.push(o),i<n.length-1&&t.push(e.cloneElement(r,{key:"separator-"+i})),t),[])}const Jm=({ownerState:e,theme:t})=>{let r=(0,u.Z)({display:"flex",flexDirection:"column"},(0,Hm.k9)({theme:t},(0,Hm.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const n=(0,Ym.hB)(t),o=Object.keys(t.breakpoints.values).reduce((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t),{}),i=(0,Hm.P$)({values:e.direction,base:o}),a=(0,Hm.P$)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}});const s=(t,r)=>{return e.useFlexGap?{gap:(0,Ym.NA)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin"+(o=r?i[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])]:(0,Ym.NA)(n,t)}};var o};r=(0,kd.Z)(r,(0,Hm.k9)({theme:t},a,s))}return r=(0,Hm.dt)(t.breakpoints,r),r};const eg=function(t={}){const{createStyledComponent:r=Km,useThemeProps:n=Xm,componentName:o="MuiStack"}=t,i=r(Jm);return e.forwardRef((function(e,t){const r=Um(n(e)),{component:a="div",direction:s="column",spacing:d=0,divider:p,children:h,className:m,useFlexGap:g=!1}=r,y=(0,l.Z)(r,Gm),v={direction:s,spacing:d,useFlexGap:g},b=(0,f.Z)({root:["root"]},e=>(0,X.ZP)(o,e),{});return(0,D.jsx)(i,(0,u.Z)({as:a,ownerState:v,ref:t,className:(0,c.Z)(b.root,m)},y,{children:p?Qm(h,p):h}))}))}({createStyledComponent:(0,h.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,m.Z)({props:e,name:"MuiStack"})});function tg(e){return(0,X.ZP)("MuiTypography",e)}(0,L.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const rg=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ng=(0,h.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align"+(0,ne.Z)(r.align)],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),og={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ig={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ag=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiTypography"}),n=(e=>ig[e]||e)(r.color),o=Um((0,u.Z)({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=og}=o,v=(0,l.Z)(o,rg),b=(0,u.Z)({},o,{align:i,color:n,className:a,component:s,gutterBottom:d,noWrap:p,paragraph:h,variant:g,variantMapping:y}),w=s||(h?"p":y[g]||og[g])||"span",x=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align"+(0,ne.Z)(t),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,f.Z)(s,tg,a)})(b);return(0,D.jsx)(ng,(0,u.Z)({as:w,ref:t,ownerState:b,className:(0,c.Z)(x.root,a)},v))}));function sg(e){return(0,X.ZP)("MuiFormControlLabel",e)}const lg=(0,L.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ug=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],cg=(0,h.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& ."+lg.label]:t.label},t.root,t["labelPlacement"+(0,ne.Z)(r.labelPlacement)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&."+lg.disabled]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& ."+lg.label]:{["&."+lg.disabled]:{color:(e.vars||e).palette.text.disabled}}})),dg=(0,h.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({["&."+lg.error]:{color:(e.vars||e).palette.error.main}})),fg=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:d,disabled:p,disableTypography:h,label:g,labelPlacement:y="end",required:v,slotProps:b={}}=i,w=(0,l.Z)(i,ug),x=Dd(),S=null!=(n=null!=p?p:d.props.disabled)?n:null==x?void 0:x.disabled,_=null!=v?v:d.props.required,k={disabled:S,required:_};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===d.props[e]&&void 0!==i[e]&&(k[e]=i[e])});const E=jd({props:i,muiFormControl:x,states:["error"]}),C=(0,u.Z)({},i,{disabled:S,labelPlacement:y,required:_,error:E.error}),P=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled","labelPlacement"+(0,ne.Z)(n),o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,f.Z)(a,sg,t)})(C),O=null!=(o=b.typography)?o:s.typography;let T=g;return null==T||T.type===ag||h||(T=(0,D.jsx)(ag,(0,u.Z)({component:"span"},O,{className:(0,c.Z)(P.label,null==O?void 0:O.className),children:T}))),(0,D.jsxs)(cg,(0,u.Z)({className:(0,c.Z)(P.root,a),ownerState:C,ref:r},w,{children:[e.cloneElement(d,k),_?(0,D.jsxs)(eg,{display:"block",children:[T,(0,D.jsxs)(dg,{ownerState:C,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):T]}))}));function pg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}(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 hg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mg(){return(mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var gg=function(t){return e.createElement(fg,mg({disabled:t.disabled,label:t.choice.label,value:t.choice.value,control:e.createElement(jm,null)},t.choice.mismatch?{className:"mismatch"}:{},{title:t.choice.description||t.choice.seeAlso||t.choice.value}))};function yg(t){var r,n=t.binding,o=n.getItem(),i=(0,e.useMemo)((function(){return"_rdforms_".concat(tm+=1)}),[]),a=Jh(n,!0),s=pg((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),l=s[0],u=s[1],c=pg((0,e.useState)((function(){var e=n.getChoice();return e?e.value:""})),2),d=c[0],f=c[1],p=o.hasStyle("verticalRadioButtons")?{}:{row:!0};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]);(0,e.useEffect)((function(){t.context.clear=function(){f(""),u(!1)}}),[]);var h=rm(n,t.context),m=o.getEditLabelMap()||o.getLabelMap(),g=Qo.getLocalizedValue(m,t.context.view.getLocale()).value;return e.createElement(e.Fragment,null,e.createElement(Zf,{component:"fieldset"},e.createElement(Fm,mg({},p,{key:"radio","aria-label":g,name:i,value:d,onChange:function(e){var t=e.target.value,r=a.find((function(e){return e.value===t}));r?(n.setChoice(r.original),u(!0===r.original.mismatch)):(n.setChoice(null),u(!1)),f(t)}}),a.map((function(t){return e.createElement(gg,{key:t.value,disabled:!!h,choice:t})})))),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}o(86466);const vg=(0,wh.Z)((0,D.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),bg=(0,wh.Z)((0,D.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wg=(0,wh.Z)((0,D.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function xg(e){return(0,X.ZP)("MuiCheckbox",e)}const Sg=(0,L.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_g=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kg=(0,h.ZP)(vm,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size"+(0,ne.Z)(r.size)],"default"!==r.color&&t["color"+(0,ne.Z)(r.color)]]}})(({theme:e,ownerState:t})=>(0,u.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Sg.checked}, &.${Sg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},["&."+Sg.disabled]:{color:(e.vars||e).palette.action.disabled}})),Eg=(0,D.jsx)(bg,{}),Cg=(0,D.jsx)(vg,{}),Pg=(0,D.jsx)(wg,{}),Og=e.forwardRef((function(t,r){var n,o;const i=(0,m.Z)({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Eg,color:s="primary",icon:d=Cg,indeterminate:p=!1,indeterminateIcon:h=Pg,inputProps:g,size:y="medium",className:v}=i,b=(0,l.Z)(i,_g),w=p?h:d,x=p?h:a,S=(0,u.Z)({},i,{color:s,indeterminate:p,size:y}),_=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate","color"+(0,ne.Z)(n),"size"+(0,ne.Z)(o)]},a=(0,f.Z)(i,xg,t);return(0,u.Z)({},t,a)})(S);return(0,D.jsx)(kg,(0,u.Z)({type:"checkbox",inputProps:(0,u.Z)({"data-indeterminate":p},g),icon:e.cloneElement(w,{fontSize:null!=(n=w.props.fontSize)?n:y}),checkedIcon:e.cloneElement(x,{fontSize:null!=(o=x.props.fontSize)?o:y}),ownerState:S,ref:r,className:(0,c.Z)(_.root,v)},b,{classes:_}))}));function Tg(){return(Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Rg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ag(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ag(e,t)}(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 Ag(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Mg=function(t){var r=t.choice,n=t.binding,o=t.onChoiceChange,i=Rg(e.useState(r.value===n.getValue()),2),a=i[0],s=i[1];return e.createElement(fg,Tg({disabled:t.disabled,label:r.label,control:e.createElement(Og,{checked:a,onChange:function(e){n.setChoice(e.target.checked?r.original:null),s(e.target.checked),o()}})},r.mismatch?{className:"mismatch"}:{},{title:r.description||r.seeAlso||r.value}))};function jg(t){var r,n=Rg(e.useState(0),2),o=n[0],i=n[1],a=t.binding,s=a.getItem(),l=Jh(a,!0),u=(0,e.useMemo)((function(){var e=a.getParent(),r={};e.getChildBindingsFor(s).forEach((function(e){return r[e.getValue()]=e}));var n=l.map((function(n){var o=r[n.value];return o?(delete r[n.value],[n,o,wd(o,t.context)]):[n,Wu(e,s),void 0]}));return Object.values(r).forEach((function(e){var t=e.getChoice();t&&n.push([t,e])})),n})),c=Rg((0,e.useState)(!0===(null===(r=a.getChoice())||void 0===r?void 0:r.mismatch)),2),d=c[0],f=c[1],p=s.hasStyle("verticalCheckboxes")?{}:{row:!0},h=function(){var e=void 0!==u.find((function(e){return e[1].getChoice()&&e[1].getChoice().mismatch}));e!==d&&f(e)};(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",d)}),[d]),t.context.clear=function(){u.forEach((function(e){return e[1].setChoice(null)})),f(!1),i(o+1)};var m=rm(a,t.context);return e.createElement(e.Fragment,null,e.createElement(Lm,p,u.map((function(t){return e.createElement(Mg,{key:"".concat(o,"-").concat(t[1].getHash()),choice:t[0],binding:t[1],disabled:!!t[2]||!!m,onChoiceChange:h})}))),d&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))}var Ig=o(19032);const Dg=t=>{const r=e.useRef({});return e.useEffect(()=>{r.current=t}),r.current};function Ng(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Lg(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const Zg=function(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:l})=>{let u=a?s.trim():s;r&&(u=u.toLowerCase()),t&&(u=Ng(u));const c=u?e.filter(e=>{let n=(i||l)(e);return r&&(n=n.toLowerCase()),t&&(n=Ng(n)),"start"===o?0===n.indexOf(u):n.indexOf(u)>-1}):e;return"number"==typeof n?c.slice(0,n):c}}(),Fg=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Bg(t){const{unstable_isActiveElementInListbox:r=Fg,unstable_classNamePrefix:n="Mui",autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!t.freeSolo,clearOnEscape:c=!1,componentName:d="useAutocomplete",defaultValue:f=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:m,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:v=Zg,filterSelectedOptions:b=!1,freeSolo:w=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:_=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:k,handleHomeEndKeys:E=!t.freeSolo,id:C,includeInputInList:P=!1,inputValue:O,isOptionEqualToValue:T=((e,t)=>e===t),multiple:R=!1,onChange:A,onClose:M,onHighlightChange:j,onInputChange:I,onOpen:D,open:N,openOnFocus:L=!1,options:Z,readOnly:F=!1,selectOnFocus:B=!t.freeSolo,value:V}=t,z=(0,_d.Z)(C);let W=_;W=e=>{const t=_(e);return"string"!=typeof t?String(t):t};const U=e.useRef(!1),$=e.useRef(!0),H=e.useRef(null),Y=e.useRef(null),[G,q]=e.useState(null),[K,X]=e.useState(-1),Q=i?0:-1,J=e.useRef(Q),[ee,te]=(0,Ig.Z)({controlled:V,default:f,name:d}),[re,ne]=(0,Ig.Z)({controlled:O,default:"",name:d,state:"inputValue"}),[oe,ie]=e.useState(!1),ae=e.useCallback((e,t)=>{if(!(R?ee.length<t.length:null!==t)&&!l)return;let r;if(R)r="";else if(null==t)r="";else{const e=W(t);r="string"==typeof e?e:""}re!==r&&(ne(r),I&&I(e,r,"reset"))},[W,re,R,I,ne,l,ee]),[se,le]=(0,Ig.Z)({controlled:N,default:!1,name:d,state:"open"}),[ue,ce]=e.useState(!0),de=!R&&null!=ee&&re===W(ee),fe=se&&!F,pe=fe?v(Z.filter(e=>!b||!(R?ee:[ee]).some(t=>null!==t&&T(e,t))),{inputValue:de&&ue?"":re,getOptionLabel:W}):[],he=Dg({filteredOptions:pe,value:ee,inputValue:re});e.useEffect(()=>{const e=ee!==he.value;oe&&!e||w&&!e||ae(null,ee)},[ee,ae,oe,he.value,w]);const me=se&&pe.length>0&&!F;const ge=(0,xs.Z)(e=>{-1===e?H.current.focus():G.querySelector(`[data-tag-index="${e}"]`).focus()});e.useEffect(()=>{R&&K>ee.length-1&&(X(-1),ge(-1))},[ee,R,K,ge]);const ye=(0,xs.Z)(({event:e,index:t,reason:r="auto"})=>{if(J.current=t,-1===t?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${z}-option-${t}`),j&&j(e,-1===t?null:pe[t],r),!Y.current)return;const o=Y.current.querySelector(`[role="option"].${n}-focused`);o&&(o.classList.remove(n+"-focused"),o.classList.remove(n+"-focusVisible"));let i=Y.current;if("listbox"!==Y.current.getAttribute("role")&&(i=Y.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=Y.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(n+"-focused"),"keyboard"===r&&a.classList.add(n+"-focusVisible"),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){const e=a,t=i.clientHeight+i.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?i.scrollTop=r-i.clientHeight:e.offsetTop-e.offsetHeight*(k?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(k?1.3:0))}}),ve=(0,xs.Z)(({event:e,diff:t,direction:r="next",reason:n="auto"})=>{if(!fe)return;const i=function(e,t){if(!Y.current||e<0||e>=pe.length)return-1;let r=e;for(;;){const n=Y.current.querySelector(`[data-option-index="${r}"]`),o=!g&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if(r="next"===t?(r+1)%pe.length:(r-1+pe.length)%pe.length,r===e)return-1}}((()=>{const e=pe.length-1;if("reset"===t)return Q;if("start"===t)return 0;if("end"===t)return e;const r=J.current+t;return r<0?-1===r&&P?-1:y&&-1!==J.current||Math.abs(t)>1?0:e:r>e?r===e+1&&P?-1:y||Math.abs(t)>1?e:0:r})(),r);if(ye({index:i,reason:n,event:e}),o&&"reset"!==t)if(-1===i)H.current.value=re;else{const e=W(pe[i]);H.current.value=e;0===e.toLowerCase().indexOf(re.toLowerCase())&&re.length>0&&H.current.setSelectionRange(re.length,e.length)}}),be=e.useCallback(()=>{if(!fe)return;if((()=>{if(-1!==J.current&&he.filteredOptions&&he.filteredOptions.length!==pe.length&&he.inputValue===re&&(R?ee.length===he.value.length&&he.value.every((e,t)=>W(ee[t])===W(e)):(e=he.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=he.filteredOptions[J.current];if(e){if(pe.some(t=>W(t)===W(e)))return!0}}var e,t;return!1})())return;const e=R?ee[0]:ee;if(0!==pe.length&&null!=e){if(Y.current)if(null==e)J.current>=pe.length-1?ye({index:pe.length-1}):ye({index:J.current});else{const t=pe[J.current];if(R&&t&&-1!==Lg(ee,e=>T(t,e)))return;const r=Lg(pe,t=>T(t,e));-1===r?ve({diff:"reset"}):ye({index:r})}}else ve({diff:"reset"})},[pe.length,!R&&ee,b,ve,ye,fe,re,R]),we=(0,xs.Z)(e=>{(0,Ba.Z)(Y,e),e&&be()});e.useEffect(()=>{be()},[be]);const xe=e=>{se||(le(!0),ce(!0),D&&D(e))},Se=(e,t)=>{se&&(le(!1),M&&M(e,t))},_e=(e,t,r,n)=>{if(R){if(ee.length===t.length&&ee.every((e,r)=>e===t[r]))return}else if(ee===t)return;A&&A(e,t,r,n),te(t)},ke=e.useRef(!1),Ee=(e,t,r="selectOption",n="options")=>{let o=r,i=t;if(R){i=Array.isArray(ee)?ee.slice():[];const e=Lg(i,e=>T(t,e));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),o="removeOption")}ae(e,i),_e(e,i,o,{option:t}),h||e&&(e.ctrlKey||e.metaKey)||Se(e,o),(!0===s||"touch"===s&&ke.current||"mouse"===s&&!ke.current)&&H.current.blur()};const Ce=(e,t)=>{if(!R)return;""===re&&Se(e,"toggleInput");let r=K;-1===K?""===re&&"previous"===t&&(r=ee.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===ee.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return-1;const e=G.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),X(r),ge(r)},Pe=e=>{U.current=!0,ne(""),I&&I(e,"","clear"),_e(e,R?[]:null,"clear")},Oe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":fe&&E&&(t.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&E&&(t.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ve({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ve({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Ce(t,"previous");break;case"ArrowRight":Ce(t,"next");break;case"Enter":if(-1!==J.current&&fe){const e=pe[J.current],r=!!x&&x(e);if(t.preventDefault(),r)return;Ee(t,e,"selectOption"),o&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else w&&""!==re&&!1===de&&(R&&t.preventDefault(),Ee(t,re,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Se(t,"escape")):c&&(""!==re||R&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Pe(t));break;case"Backspace":if(R&&!F&&""===re&&ee.length>0){const e=-1===K?ee.length-1:K,r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if(R&&!F&&""===re&&ee.length>0&&-1!==K){const e=K,r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})}}},Te=e=>{ie(!0),L&&!U.current&&xe(e)},Re=e=>{r(Y)?H.current.focus():(ie(!1),$.current=!0,U.current=!1,a&&-1!==J.current&&fe?Ee(e,pe[J.current],"blur"):a&&w&&""!==re?Ee(e,re,"blur","freeSolo"):l&&ae(e,ee),Se(e,"blur"))},Ae=e=>{const t=e.target.value;re!==t&&(ne(t),ce(!1),I&&I(e,t,"input")),""===t?p||R||_e(e,null,"clear"):xe(e)},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ye({event:e,index:t,reason:"mouse"})},je=e=>{ye({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ke.current=!0},Ie=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ee(e,pe[t],"selectOption"),ke.current=!1},De=e=>t=>{const r=ee.slice();r.splice(e,1),_e(t,r,"removeOption",{option:ee[e]})},Ne=e=>{se?Se(e,"toggleInput"):xe(e)},Le=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==z&&e.preventDefault()},Ze=e=>{e.currentTarget.contains(e.target)&&(H.current.focus(),B&&$.current&&H.current.selectionEnd-H.current.selectionStart==0&&H.current.select(),$.current=!1)},Fe=e=>{m||""!==re&&se||Ne(e)};let Be=w&&re.length>0;Be=Be||(R?ee.length>0:null!==ee);let Ve=pe;if(k){new Map;Ve=pe.reduce((e,t,r)=>{const n=k(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])}return m&&oe&&Re(),{getRootProps:(e={})=>(0,u.Z)({"aria-owns":me?z+"-listbox":null},e,{onKeyDown:Oe(e),onMouseDown:Le,onClick:Ze}),getInputLabelProps:()=>({id:z+"-label",htmlFor:z}),getInputProps:()=>({id:z,value:re,onBlur:Re,onFocus:Te,onChange:Ae,onMouseDown:Fe,"aria-activedescendant":fe?"":null,"aria-autocomplete":o?"both":"list","aria-controls":me?z+"-listbox":void 0,"aria-expanded":me,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Pe}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:e})=>(0,u.Z)({key:e,"data-tag-index":e,tabIndex:-1},!F&&{onDelete:De(e)}),getListboxProps:()=>({role:"listbox",id:z+"-listbox","aria-labelledby":z+"-label",ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;const n=(R?ee:[ee]).some(e=>null!=e&&T(t,e)),o=!!x&&x(t);return{key:null!=(r=null==S?void 0:S(t))?r:W(t),tabIndex:-1,role:"option",id:`${z}-option-${e}`,onMouseMove:Me,onClick:Ie,onTouchStart:je,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:z,inputValue:re,value:ee,dirty:Be,expanded:fe&&G,popupOpen:fe,focused:oe||-1!==K,anchorEl:G,setAnchorEl:q,focusedTag:K,groupedOptions:Ve}}function Vg(e){return(0,X.ZP)("MuiListSubheader",e)}(0,L.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const zg=["className","color","component","disableGutters","disableSticky","inset"],Wg=(0,h.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color"+(0,ne.Z)(r.color)],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,u.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Ug=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:d=!1}=r,p=(0,l.Z)(r,zg),h=(0,u.Z)({},r,{color:o,component:i,disableGutters:a,disableSticky:s,inset:d}),g=(e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:i}=e,a={root:["root","default"!==r&&"color"+(0,ne.Z)(r),!n&&"gutters",o&&"inset",!i&&"sticky"]};return(0,f.Z)(a,Vg,t)})(h);return(0,D.jsx)(Wg,(0,u.Z)({as:i,className:(0,c.Z)(g.root,n),ref:t,ownerState:h},p))}));Ug.muiSkipListHighlight=!0;const $g=Ug,Hg=(0,wh.Z)((0,D.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Yg(e){return(0,X.ZP)("MuiChip",e)}const Gg=(0,L.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),qg=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Kg=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=r;return[{["& ."+Gg.avatar]:t.avatar},{["& ."+Gg.avatar]:t["avatar"+(0,ne.Z)(s)]},{["& ."+Gg.avatar]:t["avatarColor"+(0,ne.Z)(n)]},{["& ."+Gg.icon]:t.icon},{["& ."+Gg.icon]:t["icon"+(0,ne.Z)(s)]},{["& ."+Gg.icon]:t["iconColor"+(0,ne.Z)(o)]},{["& ."+Gg.deleteIcon]:t.deleteIcon},{["& ."+Gg.deleteIcon]:t["deleteIcon"+(0,ne.Z)(s)]},{["& ."+Gg.deleteIcon]:t["deleteIconColor"+(0,ne.Z)(n)]},{["& ."+Gg.deleteIcon]:t[`deleteIcon${(0,ne.Z)(l)}Color${(0,ne.Z)(n)}`]},t.root,t["size"+(0,ne.Z)(s)],t["color"+(0,ne.Z)(n)],i&&t.clickable,i&&"default"!==n&&t[`clickableColor${(0,ne.Z)(n)})`],a&&t.deletable,a&&"default"!==n&&t["deletableColor"+(0,ne.Z)(n)],t[l],t[`${l}${(0,ne.Z)(n)}`]]}})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return(0,u.Z)({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&."+Gg.disabled]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["& ."+Gg.avatar]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},["& ."+Gg.avatarColorPrimary]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},["& ."+Gg.avatarColorSecondary]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},["& ."+Gg.avatarSmall]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},["& ."+Gg.icon]:(0,u.Z)({marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&(0,u.Z)({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},"default"!==t.color&&{color:"inherit"})),["& ."+Gg.deleteIcon]:(0,u.Z)({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,p.Fq)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,p.Fq)(e.palette.text.primary,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{["&."+Gg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{["&."+Gg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>(0,u.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},["&."+Gg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&"default"!==t.color&&{["&:hover, &."+Gg.focusVisible]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>(0,u.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:e.vars?"1px solid "+e.vars.palette.Chip.defaultBorder:"1px solid "+("light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]),[`&.${Gg.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},["&."+Gg.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},["& ."+Gg.avatar]:{marginLeft:4},["& ."+Gg.avatarSmall]:{marginLeft:2},["& ."+Gg.icon]:{marginLeft:4},["& ."+Gg.iconSmall]:{marginLeft:2},["& ."+Gg.deleteIcon]:{marginRight:5},["& ."+Gg.deleteIconSmall]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:"1px solid "+(e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7)),[`&.${Gg.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},["&."+Gg.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,p.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},["& ."+Gg.deleteIcon]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:(0,p.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Xg=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t["label"+(0,ne.Z)(n)]]}})(({ownerState:e})=>(0,u.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===e.variant&&{paddingLeft:11,paddingRight:11},"small"===e.size&&{paddingLeft:8,paddingRight:8},"small"===e.size&&"outlined"===e.variant&&{paddingLeft:7,paddingRight:7}));function Qg(e){return"Backspace"===e.key||"Delete"===e.key}const Jg=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:d,deleteIcon:p,disabled:h=!1,icon:y,label:v,onClick:b,onDelete:w,onKeyDown:x,onKeyUp:S,size:_="medium",variant:k="filled",tabIndex:E,skipFocusWhenDisabled:C=!1}=n,P=(0,l.Z)(n,qg),O=e.useRef(null),T=(0,g.Z)(O,r),R=e=>{e.stopPropagation(),w&&w(e)},A=!(!1===a||!b)||a,M=A||w?re:d||"div",j=(0,u.Z)({},n,{component:M,disabled:h,size:_,color:s,iconColor:e.isValidElement(y)&&y.props.color||s,onDelete:!!w,clickable:A,variant:k}),I=(e=>{const{classes:t,disabled:r,size:n,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,r&&"disabled","size"+(0,ne.Z)(n),"color"+(0,ne.Z)(o),s&&"clickable",s&&"clickableColor"+(0,ne.Z)(o),a&&"deletable",a&&"deletableColor"+(0,ne.Z)(o),`${l}${(0,ne.Z)(o)}`],label:["label","label"+(0,ne.Z)(n)],avatar:["avatar","avatar"+(0,ne.Z)(n),"avatarColor"+(0,ne.Z)(o)],icon:["icon","icon"+(0,ne.Z)(n),"iconColor"+(0,ne.Z)(i)],deleteIcon:["deleteIcon","deleteIcon"+(0,ne.Z)(n),"deleteIconColor"+(0,ne.Z)(o),`deleteIcon${(0,ne.Z)(l)}Color${(0,ne.Z)(o)}`]};return(0,f.Z)(u,Yg,t)})(j),N=M===re?(0,u.Z)({component:d||"div",focusVisibleClassName:I.focusVisible},w&&{disableRipple:!0}):{};let L=null;w&&(L=p&&e.isValidElement(p)?e.cloneElement(p,{className:(0,c.Z)(p.props.className,I.deleteIcon),onClick:R}):(0,D.jsx)(Hg,{className:(0,c.Z)(I.deleteIcon),onClick:R}));let Z=null;o&&e.isValidElement(o)&&(Z=e.cloneElement(o,{className:(0,c.Z)(I.avatar,o.props.className)}));let F=null;return y&&e.isValidElement(y)&&(F=e.cloneElement(y,{className:(0,c.Z)(I.icon,y.props.className)})),(0,D.jsxs)(Kg,(0,u.Z)({as:M,className:(0,c.Z)(I.root,i),disabled:!(!A||!h)||void 0,onClick:b,onKeyDown:e=>{e.currentTarget===e.target&&Qg(e)&&e.preventDefault(),x&&x(e)},onKeyUp:e=>{e.currentTarget===e.target&&(w&&Qg(e)?w(e):"Escape"===e.key&&O.current&&O.current.blur()),S&&S(e)},ref:T,tabIndex:C&&h?-1:E,ownerState:j},N,P,{children:[Z||F,(0,D.jsx)(Xg,{className:(0,c.Z)(I.label),ownerState:j,children:v}),L]}))})),ey=(0,wh.Z)((0,D.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function ty(e){return(0,X.ZP)("MuiAutocomplete",e)}const ry=(0,L.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var ny,oy;const iy=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ay=["ref"],sy=["key"],ly=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=r;return[{["& ."+ry.tag]:t.tag},{["& ."+ry.tag]:t["tagSize"+(0,ne.Z)(s)]},{["& ."+ry.inputRoot]:t.inputRoot},{["& ."+ry.input]:t.input},{["& ."+ry.input]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>(0,u.Z)({[`&.${ry.focused} .${ry.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover ."+ry.clearIndicator]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{["& ."+ry.tag]:(0,u.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& ."+ry.inputRoot]:{flexWrap:"wrap",[`.${ry.hasPopupIcon}&, .${ry.hasClearIcon}&`]:{paddingRight:30},[`.${ry.hasPopupIcon}.${ry.hasClearIcon}&`]:{paddingRight:56},["& ."+ry.input]:{width:0,minWidth:30}},["& ."+Qd.root]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Qd.root}.${Wd.sizeSmall}`]:{["& ."+Qd.input]:{padding:"2px 4px 3px 0"}},["& ."+yf.root]:{padding:9,[`.${ry.hasPopupIcon}&, .${ry.hasClearIcon}&`]:{paddingRight:39},[`.${ry.hasPopupIcon}.${ry.hasClearIcon}&`]:{paddingRight:65},["& ."+ry.input]:{padding:"7.5px 4px 7.5px 5px"},["& ."+ry.endAdornment]:{right:9}},[`& .${yf.root}.${Wd.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& ."+ry.input]:{padding:"2.5px 4px 2.5px 8px"}},["& ."+af.root]:{paddingTop:19,paddingLeft:8,[`.${ry.hasPopupIcon}&, .${ry.hasClearIcon}&`]:{paddingRight:39},[`.${ry.hasPopupIcon}.${ry.hasClearIcon}&`]:{paddingRight:65},["& ."+af.input]:{padding:"7px 4px"},["& ."+ry.endAdornment]:{right:9}},[`& .${af.root}.${Wd.sizeSmall}`]:{paddingBottom:1,["& ."+af.input]:{padding:"2.5px 4px"}},["& ."+Wd.hiddenLabel]:{paddingTop:8},[`& .${af.root}.${Wd.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,["& ."+ry.input]:{paddingTop:16,paddingBottom:17}},[`& .${af.root}.${Wd.hiddenLabel}.${Wd.sizeSmall}`]:{["& ."+ry.input]:{paddingTop:8,paddingBottom:9}},["& ."+ry.input]:(0,u.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),uy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),cy=(0,h.ZP)(Bh,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),dy=(0,h.ZP)(Bh,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,u.Z)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>(0,u.Z)({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),fy=(0,h.ZP)(ss,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{["& ."+ry.option]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),py=(0,h.ZP)(Dp,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,u.Z)({},e.typography.body1,{overflow:"auto"})),hy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),my=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),gy=(0,h.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& ."+ry.option]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},["&."+ry.focused]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},["&."+ry.focusVisible]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),["&."+ry.focused]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},["&."+ry.focusVisible]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,p.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),yy=(0,h.ZP)($g,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),vy=(0,h.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& ."+ry.option]:{paddingLeft:24}}),by=e.forwardRef((function(t,r){var n,o,i,a;const s=(0,m.Z)({props:t,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:p=!1,autoSelect:h=!1,blurOnSelect:y=!1,ChipProps:v,className:b,clearIcon:w=ny||(ny=(0,D.jsx)(ey,{fontSize:"small"})),clearOnBlur:x=!s.freeSolo,clearOnEscape:S=!1,clearText:_="Clear",closeText:k="Close",componentsProps:E={},defaultValue:C=(s.multiple?[]:null),disableClearable:P=!1,disableCloseOnSelect:O=!1,disabled:T=!1,disabledItemsFocusable:R=!1,disableListWrap:A=!1,disablePortal:M=!1,filterSelectedOptions:j=!1,forcePopupIcon:I="auto",freeSolo:N=!1,fullWidth:L=!1,getLimitTagsText:Z=(e=>"+"+e),getOptionLabel:F,groupBy:B,handleHomeEndKeys:V=!s.freeSolo,includeInputInList:z=!1,limitTags:W=-1,ListboxComponent:U="ul",ListboxProps:$,loading:H=!1,loadingText:Y="Loading…",multiple:G=!1,noOptionsText:q="No options",openOnFocus:K=!1,openText:X="Open",PaperComponent:Q=Dp,PopperComponent:J=ss,popupIcon:ee=oy||(oy=(0,D.jsx)(xh,{})),readOnly:te=!1,renderGroup:re,renderInput:oe,renderOption:ie,renderTags:ae,selectOnFocus:se=!s.freeSolo,size:le="medium",slotProps:ue={}}=s,ce=(0,l.Z)(s,iy),{getRootProps:de,getInputProps:fe,getInputLabelProps:pe,getPopupIndicatorProps:he,getClearProps:me,getTagProps:ge,getListboxProps:ye,getOptionProps:ve,value:be,dirty:we,expanded:xe,id:Se,popupOpen:_e,focused:ke,focusedTag:Ee,anchorEl:Ce,setAnchorEl:Pe,inputValue:Oe,groupedOptions:Te}=Bg((0,u.Z)({},s,{componentName:"Autocomplete"})),Re=!P&&!T&&we&&!te,Ae=(!N||!0===I)&&!1!==I,{onMouseDown:Me}=fe(),{ref:je}=null!=$?$:{},Ie=ye(),{ref:De}=Ie,Ne=(0,l.Z)(Ie,ay),Le=(0,g.Z)(De,je),Ze=F||(e=>{var t;return null!=(t=e.label)?t:e}),Fe=(0,u.Z)({},s,{disablePortal:M,expanded:xe,focused:ke,fullWidth:L,getOptionLabel:Ze,hasClearIcon:Re,hasPopupIcon:Ae,inputFocused:-1===Ee,popupOpen:_e,size:le}),Be=(e=>{const{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",n&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize"+(0,ne.Z)(c)],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,f.Z)(d,ty,t)})(Fe);let Ve;if(G&&be.length>0){const e=e=>(0,u.Z)({className:Be.tag,disabled:T},ge(e));Ve=ae?ae(be,e,Fe):be.map((t,r)=>(0,D.jsx)(Jg,(0,u.Z)({label:Ze(t),size:le},e({index:r}),v)))}if(W>-1&&Array.isArray(Ve)){const e=Ve.length-W;!ke&&e>0&&(Ve=Ve.splice(0,W),Ve.push((0,D.jsx)("span",{className:Be.tag,children:Z(e)},Ve.length)))}const ze=re||(e=>(0,D.jsxs)("li",{children:[(0,D.jsx)(yy,{className:Be.groupLabel,ownerState:Fe,component:"div",children:e.group}),(0,D.jsx)(vy,{className:Be.groupUl,ownerState:Fe,children:e.children})]},e.key)),We=ie||((e,t)=>{const{key:r}=e,n=(0,l.Z)(e,sy);return(0,D.jsx)("li",(0,u.Z)({},n,{children:Ze(t)}),r)}),Ue=(e,t)=>{const r=ve({option:e,index:t});return We((0,u.Z)({},r,{className:Be.option}),e,{selected:r["aria-selected"],index:t,inputValue:Oe},Fe)},$e=null!=(n=ue.clearIndicator)?n:E.clearIndicator,He=null!=(o=ue.paper)?o:E.paper,Ye=null!=(i=ue.popper)?i:E.popper,Ge=null!=(a=ue.popupIndicator)?a:E.popupIndicator;return(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(ly,(0,u.Z)({ref:r,className:(0,c.Z)(Be.root,b),ownerState:Fe},de(ce),{children:oe({id:Se,disabled:T,fullWidth:!0,size:"small"===le?"small":void 0,InputLabelProps:pe(),InputProps:(0,u.Z)({ref:Pe,className:Be.inputRoot,startAdornment:Ve,onClick:e=>{e.target===e.currentTarget&&Me(e)}},(Re||Ae)&&{endAdornment:(0,D.jsxs)(uy,{className:Be.endAdornment,ownerState:Fe,children:[Re?(0,D.jsx)(cy,(0,u.Z)({},me(),{"aria-label":_,title:_,ownerState:Fe},$e,{className:(0,c.Z)(Be.clearIndicator,null==$e?void 0:$e.className),children:w})):null,Ae?(0,D.jsx)(dy,(0,u.Z)({},he(),{disabled:T,"aria-label":_e?k:X,title:_e?k:X,ownerState:Fe},Ge,{className:(0,c.Z)(Be.popupIndicator,null==Ge?void 0:Ge.className),children:ee})):null]})}),inputProps:(0,u.Z)({className:Be.input,disabled:T,readOnly:te},fe())})})),Ce?(0,D.jsx)(fy,(0,u.Z)({as:J,disablePortal:M,style:{width:Ce?Ce.clientWidth:null},ownerState:Fe,role:"presentation",anchorEl:Ce,open:_e},Ye,{className:(0,c.Z)(Be.popper,null==Ye?void 0:Ye.className),children:(0,D.jsxs)(py,(0,u.Z)({ownerState:Fe,as:Q},He,{className:(0,c.Z)(Be.paper,null==He?void 0:He.className),children:[H&&0===Te.length?(0,D.jsx)(hy,{className:Be.loading,ownerState:Fe,children:Y}):null,0!==Te.length||N||H?null:(0,D.jsx)(my,{className:Be.noOptions,ownerState:Fe,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:q}),Te.length>0?(0,D.jsx)(gy,(0,u.Z)({as:U,className:Be.listbox,ownerState:Fe},Ne,$,{ref:Le,children:Te.map((e,t)=>B?ze({key:e.key,group:e.group,children:e.options.map((t,r)=>Ue(t,e.index+r))}):Ue(e,t))})):null]}))})):null]})}));function wy(){return(wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function xy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sy(e,t)}(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 Sy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _y=function(t){var r,n=t.binding,o=Jh(n,!0),i=xy(function(t,r){return(0,e.useState)((function(){var e=t.getChoice()||null;return null===e?null:r.find((function(t){return t.original===e}))}))}(n,o),2),a=i[0],s=i[1],l=xy((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),u=l[0],c=l[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",u)}),[u]),(0,e.useEffect)((function(){t.context.clear=function(){s(null),c(!1)}}),[]);var d=t.context.view.getLabelIndex(n),f=rm(n,t.context);return e.createElement(e.Fragment,null,e.createElement(by,{className:"rdformsSearch",disableClearable:!0,value:a,options:o,onChange:function(e,t){n.setChoice(t.original),s(t),c(!0===t.original.mismatch)},disabled:!!f,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label},getOptionDisabled:function(e){return!0===e.mismatch},filterSelectedOptions:!0,renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=d,e.createElement(Ih,wy({placeholder:n.getItem().getPlaceholder()},t,a&&a.mismatch?{error:!0}:{},{variant:pi.materialVariant}))},disablePortal:!0}),u&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var ky=o(42761),Ey=o(33502);function Cy(t){return e.createElement(Ey.Z,t,e.createElement("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),e.createElement("path",{fill:"currentColor",d:"M 24,6 H 21 V 9 H 19 V 6 H 16 V 4 h 3 V 1 h 2 v 3 h 3 z"}))}const Py=function(t){var r=(0,e.useMemo)((function(){return t.context.chooser&&t.context.chooser.supportsInlineCreate&&t.context.chooser.supportsInlineCreate(t.binding)})),n=r?t.context.view.messages.edit_browse_create:t.context.view.messages.edit_browse;return t.context.chooser.show?e.createElement(Bh,{disabled:t.disabled,"aria-label":n,title:n,onClick:t.onClick},r?e.createElement(Cy,null):e.createElement(ky.Z,null)):""};function Oy(){return(Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ty(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ry(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ry(e,t)}(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 Ry(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ay=function(t){var r,n=t.binding,o=Ty(em(n,!0),2),i=o[0],a=o[1],s=Ty((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),l=s[0],u=s[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",l)}),[l]),(0,e.useEffect)((function(){t.context.clear=function(){a(null),u(!1)}}),[]);var c="",d="";i&&(c=i.description?Qo.getLocalizedValue(i.description).value:i.seeAlso||i.value,d=i.label?Qo.getLocalizedValue(i.label).value:i.value);var f=t.context.view.getLabelIndex(t.binding),p=rm(n,t.context);return e.createElement(e.Fragment,null,e.createElement(Ih,Oy({inputProps:{"aria-labelledby":f},className:"rdformsSearch",disabled:!0},p||i&&i.mismatch?{mismatch:!0}:{},{title:c,value:d,placeholder:n.getItem().getPlaceholder(),error:l,variant:pi.materialVariant})),e.createElement(Py,Oy({},t,{disabled:!!p,onClick:function(){pi.openChoiceSelector(t.binding,(function(e){t.binding.setChoice(e),a(e),u(!0===e.mismatch)}),t.field)}})),l&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};o(3255);var My,jy=o(86024);function Iy(){return(Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Dy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ny(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ny(e,t)}(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 Ny(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ly=function(t){var r,n=t.binding,o=Dy((0,e.useState)([]),2),i=o[0],a=o[1],s=Dy(em(n,!0),2),l=s[0],u=s[1],c=Dy((0,e.useState)(""),2),d=c[0],f=c[1],p=Dy((0,e.useState)(!1),2),h=p[0],m=p[1],g=Dy((0,e.useState)(!0===(null===(r=n.getChoice())||void 0===r?void 0:r.mismatch)),2),y=g[0],v=g[1];(0,e.useEffect)((function(){t.field.toggleClass("mismatchReport",y)}),[y]),(0,e.useEffect)((function(){t.context.clear=function(){u(null),v(!1)}}),[]);(0,e.useEffect)((function(){var e=!0;return h&&(My&&clearTimeout(My),My=setTimeout((function(){My=void 0,t.context.chooser.search(n,d.trimStart()).then((function(t){e&&a(t.map(Qh))}))}),200)),function(){e=!1}}),[d,h]);var b=t.context.view.getLabelIndex(n),w=rm(n,t.context),x=l&&l.original.upgradeComponent;return e.createElement(e.Fragment,null,e.createElement(by,{className:"rdformsSearch",disableClearable:!0,fullWidth:!1,value:l,options:i,filterOptions:function(e){return e},open:h,onOpen:function(){return m(!0)},onClose:function(){return m(!1)},onInputChange:function(e,t){return f(t)},onChange:function(e,t){null===t?(n.setChoice(null),u(null),v(!1)):(n.setChoice(t.original),u(t),v(!0===t.original.mismatch))},disabled:!!w,isOptionEqualToValue:function(e,t){return e.value===t.value},getOptionLabel:function(e){return null===e?"":e.label||e.value},getOptionDisabled:function(e){return!0===e.mismatch},renderInput:function(t){return t.inputProps=t.inputProps||{},t.inputProps["aria-labelledby"]=b,e.createElement(Ih,Iy({"aria-labelledby":b},t,l&&l.mismatch?{error:!0}:{},{placeholder:n.getItem().getPlaceholder(),onKeyDown:function(e){var t=e.key,r=e.keyCode;("Enter"===t||13===r)&&!h&&m(!0)},variant:pi.materialVariant}))},disablePortal:!0}),e.createElement(Py,Iy({},t,{onClick:function(){pi.openChoiceSelector(t.binding,(function(e){n.setChoice(e),u(Qh(e)),v(!0===e.mismatch)}),t.field)},disabled:!!w})),l&&l.original.upgrade&&e.createElement(e.Fragment,null,e.createElement(Bh,{"aria-label":t.context.view.messages.edit_upgrade,title:t.context.view.messages.edit_upgrade,disabled:!!w,onClick:function(){l.original.upgrade(t.binding,(function(e){u(Qh(e)),v(!0===e.mismatch)}),t.field)}},e.createElement(jy.Z,null)),x),y&&e.createElement("div",{key:"warning",className:"rdformsWarning"},t.context.view.messages.wrongValueField))};var Zy=pi.editorRegistry;Zy.itemtype("choice").choices().check((function(e){var t=e.getChoices();return!(e.getHierarchyProperty()||e.hasStyle("tree"))&&1===e.getCardinality().max&&!e.hasStyle("dropDown")&&(null!=t&&t.length<5||e.hasStyle("verticalRadioButtons")||e.hasStyle("horizontalRadioButtons"))})).register((function(t,r,n){t.appendChild(e.createElement(yg,{key:r.getHash(),binding:r,context:n,field:t}))}));var Fy=function(t,r,n){t.appendChild(e.createElement(jg,{key:r.getHash(),binding:r,context:n,field:t}))};Zy.itemtype("choice").choices().style("verticalCheckBoxes").register(Fy),Zy.itemtype("choice").choices().style("horizontalCheckBoxes").register(Fy),Zy.itemtype("choice").choices().register((function(t,r,n){t.appendChild(e.createElement(_y,{key:r.getHash(),binding:r,context:n,field:t}))})),Zy.itemtype("choice").choices("none").register((function(t,r,n){n.chooser=pi.chooserRegistry.getComponent(r.getItem()),"function"==typeof n.chooser.search?t.appendChild(e.createElement(Ly,{key:r.getHash(),binding:r,context:n,field:t})):t.appendChild(e.createElement(Ay,{key:r.getHash(),binding:r,context:n,field:t}))}));var By=o(50336),Vy=o(44510),zy=o(96540);function Wy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Uy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uy(e,t)}(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 Uy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}pi.addExpandButton=function(e,t,r,n){console.log("Expand button not yet supported")};var $y=function(e,t){var r=e.getItem(),n=!r.hasStyle("deprecated");if(t.view.isMultiValued(r)&&n)return!0;var o=e.getCardinalityTracker(),i=t.view.showNow(e.getItem(),[]);return n&&(o.isMin()||1===o.getCardinality()&&i&&o.isDepsOk())};pi.addRemoveButton=function(t,r,n){return function(){var o=r.getItem(),i=r.getCardinalityTracker(),a=Wy((0,e.useState)((function(){return $y(r,n)})),2),s=a[0],l=a[1];(0,e.useEffect)((function(){var e=i.addListener((function(){l($y(r,n))}));return function(){return i.removeListener(e)}}),[]);var u=(0,e.useMemo)((function(){return function(){if($y(r,n)||!i.isDepsOk()&&1===i.getCardinality()){n.clear&&n.clear();var e=r.getItem().getNodetype(),a=r.getItem().getType();if("group"===a){if(r.remove(),n.view.showNow(o,[])){var s=n.view.prepareBindings(o,[]);s.length>0&&n.view.addRow(t,s[0])}t.destroy()}else"choice"===a?r.setChoice(null):r.setValue(""),"LANGUAGE_LITERAL"!==e&&"PLAIN_LITERAL"!==e||r.setLanguage("")}else n.view.isMultiValued(o)?(r.getParent().getChildBindingsFor(o).slice(0).forEach((function(e){e.remove()})),t.parent.destroy()):(r.remove(),t.destroy())}})),c=rm(r,n),d=s?n.view.messages.edit_clear:n.view.messages.edit_remove;return e.createElement(Bh,{size:"small","aria-label":d,disabled:!!c,title:d,onClick:u},s?e.createElement(Vy.Z,{fontSize:"small"}):e.createElement(By.Z,{fontSize:"small"}))}},pi.addCreateChildButton=function(t,r,n,o){return function(){var r=n.getItem(),i=n.getCardinalityTracker(),a=Wy((0,e.useState)(i.isMax()||!i.isDepsOk()||r.hasStyle("deprecated")),2),s=a[0],l=a[1];(0,e.useEffect)((function(){o.rememberParent=n.getParent();var e=i.addListener((function(){l(i.isMax()||!i.isDepsOk())}));return function(){return i.removeListener(e)}}),[]);var u=r.getEditLabelMap()||r.getLabelMap(),c=Qo.getLocalizedValue(u,o.view.getLocale()).value;c=null!=c&&""!==c?c.charAt(0).toUpperCase()+c.slice(1):"";var d=o.view.messages.edit_add;return e.createElement(pe,{className:"rdformsAddChild",onClick:function(){if(!i.isMax()){var e=Wu(o.rememberParent,r);o.view.addRow(t,e)}},"aria-label":d,title:d,disabled:s,variant:"text",color:"primary",startIcon:e.createElement(zy.Z,null)},c)}};var Hy=o(43421);function Yy(t,r,n,o,i){const[a,s]=e.useState(()=>i&&n?n(t).matches:o?o(t).matches:r);return(0,Nd.Z)(()=>{let e=!0;if(!n)return;const r=n(t),o=()=>{e&&s(r.matches)};return o(),r.addListener(o),()=>{e=!1,r.removeListener(o)}},[t,n]),a}const Gy=t.useSyncExternalStore;function qy(t,r,n,o,i){const a=e.useCallback(()=>r,[r]),s=e.useMemo(()=>{if(i&&n)return()=>n(t).matches;if(null!==o){const{matches:e}=o(t);return()=>e}return a},[a,t,o,i,n]),[l,u]=e.useMemo(()=>{if(null===n)return[a,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]},[a,n,t]);return Gy(u,l,s)}function Ky(e,t={}){const r=(0,os.Z)(),n="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:o=!1,matchMedia:i=(n?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=(0,Hy.Z)({name:"MuiUseMediaQuery",props:t,theme:r});let l="function"==typeof e?e(r):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==Gy?qy:Yy)(l,o,i,a,s)}const Xy={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:t+" view is open, go to text input view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${null===t?"No time selected":"Selected time is "+r.format(t,"fullTime")}`,hoursClockNumberText:e=>e+" hours",minutesClockNumberText:e=>e+" minutes",secondsClockNumberText:e=>e+" seconds",openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose date, selected date is "+t.format(t.date(e),"fullDate"):"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?"Choose time, selected time is "+t.format(t.date(e),"fullTime"):"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},Qy=Xy;Jy=Xy,(0,u.Z)({},Jy);var Jy;const ev=e.createContext(null);function tv(t){const r=(0,m.Z)({props:t,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:o,dateFormats:i,dateLibInstance:a,locale:s,adapterLocale:l,localeText:c}=r;const d=e.useMemo(()=>new o({locale:null!=l?l:s,formats:i,instance:a}),[o,s,l,i,a]),f=e.useMemo(()=>({minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}),[d]),p=e.useMemo(()=>({utils:d,defaultDates:f,localeText:(0,u.Z)({},Qy,null!=c?c:{})}),[f,d,c]);return(0,D.jsx)(ev.Provider,{value:p,children:n})}const rv=()=>{const t=e.useContext(ev);if(null===t)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return t},nv=()=>rv().utils,ov=()=>rv().defaultDates,iv=()=>rv().localeText,av=()=>{const t=nv();return e.useRef(t.date()).current},sv=({date:e,disableFuture:t,disablePast:r,maxDate:n,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());r&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(n,s)&&(n=s);let l=e,u=e;for(a.isBefore(e,o)&&(l=a.date(o),u=null),a.isAfter(e,n)&&(u&&(u=a.date(n)),l=null);l||u;){if(l&&a.isAfter(l,n)&&(l=null),u&&a.isBefore(u,o)&&(u=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},lv=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},uv=(e,t,r)=>{if(null==t)return r;const n=e.date(t);return e.isValid(n)?n:r},cv=e=>1===e.length&&"year"===e[0],dv=e=>2===e.length&&-1!==e.indexOf("month")&&-1!==e.indexOf("year");function fv(e,t){var r;const n=nv(),o=ov(),i=(0,m.Z)({props:e,name:t}),a=null!=(r=i.views)?r:["year","day"];return(0,u.Z)({openTo:"day",disableFuture:!1,disablePast:!1},((e,t)=>cv(e)?{inputFormat:t.formats.year}:dv(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate})(a,n),i,{views:a,minDate:uv(n,i.minDate,o.minDate),maxDate:uv(n,i.maxDate,o.maxDate)})}const pv={emptyValue:null,getTodayValue:e=>e.date(),parseInput:lv,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function hv(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=hv(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const mv=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=hv(e))&&(n&&(n+=" "),n+=t);return n};const gv=e.createContext();function yv(e){return(0,X.ZP)("MuiGrid",e)}const vv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],bv=(0,L.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-"+e),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-"+e),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-"+e),...vv.map(e=>"grid-xs-"+e),...vv.map(e=>"grid-sm-"+e),...vv.map(e=>"grid-md-"+e),...vv.map(e=>"grid-lg-"+e),...vv.map(e=>"grid-xl-"+e)]),wv=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xv(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Sv({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(e=>{""===r&&0!==t[e]&&(r=e)});const n=Object.keys(e).sort((t,r)=>e[t]-e[r]);return n.slice(0,n.indexOf(r))}const _v=(0,h.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r["spacing-xs-"+String(e)]];const n=[];return t.forEach(t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])}),n}(a,u,t));const d=[];return u.forEach(e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])}),[t.root,n&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t["direction-xs-"+String(o)],"wrap"!==s&&t["wrap-xs-"+String(s)],...d]}})(({ownerState:e})=>(0,u.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap}),(function({theme:e,ownerState:t}){const r=(0,Hm.P$)({values:t.direction,breakpoints:e.breakpoints.values});return(0,Hm.k9)({theme:e},r,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > ."+bv.item]={maxWidth:"none"}),t})}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=(0,Hm.P$)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=Sv({breakpoints:e.breakpoints.values,values:t})),o=(0,Hm.k9)({theme:e},t,(t,n)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:"-"+xv(i),["& > ."+bv.item]:{paddingTop:xv(i)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,["& > ."+bv.item]:{paddingTop:0}}})}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=(0,Hm.P$)({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=Sv({breakpoints:e.breakpoints.values,values:t})),o=(0,Hm.k9)({theme:e},t,(t,n)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${xv(i)})`,marginLeft:"-"+xv(i),["& > ."+bv.item]:{paddingLeft:xv(i)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,["& > ."+bv.item]:{paddingLeft:0}}})}return o}),(function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,o)=>{let i={};if(t[o]&&(r=t[o]),!r)return n;if(!0===r)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=(0,Hm.P$)({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof a?a[o]:a;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${xv(r)})`;c={flexBasis:e,maxWidth:e}}}i=(0,u.Z)({flexBasis:l,flexGrow:0,maxWidth:l},c)}return 0===e.breakpoints.values[o]?Object.assign(n,i):n[e.breakpoints.up(o)]=i,n},{})}));const kv=e=>{const{classes:t,container:r,direction:n,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-"+String(e)];const r=[];return t.forEach(t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}}),r}(i,l));const c=[];l.forEach(t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)});const d={root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&"direction-xs-"+String(n),"wrap"!==a&&"wrap-xs-"+String(a),...c]};return(0,f.Z)(d,yv,t)};const Ev=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiGrid"}),{breakpoints:o}=bi(),i=Um(n),{className:a,columns:s,columnSpacing:d,component:f="div",container:p=!1,direction:h="row",item:g=!1,rowSpacing:y,spacing:v=0,wrap:b="wrap",zeroMinWidth:w=!1}=i,x=(0,l.Z)(i,wv),S=y||v,_=d||v,k=e.useContext(gv),E=p?s||12:k,C={},P=(0,u.Z)({},x);o.keys.forEach(e=>{null!=x[e]&&(C[e]=x[e],delete P[e])});const O=(0,u.Z)({},i,{columns:E,container:p,direction:h,item:g,rowSpacing:S,columnSpacing:_,wrap:b,zeroMinWidth:w,spacing:v},C,{breakpoints:o.keys}),T=kv(O);return(0,D.jsx)(gv.Provider,{value:E,children:(0,D.jsx)(_v,(0,u.Z)({ownerState:O,className:(0,c.Z)(T.root,a),as:f,ref:r},P))})})),Cv=(0,wh.Z)((0,D.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Pv=(0,wh.Z)((0,D.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Ov=(0,wh.Z)((0,D.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Tv=(0,wh.Z)((0,D.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),Rv=(0,wh.Z)((0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,D.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Av=((0,wh.Z)((0,D.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),(0,wh.Z)((0,D.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));(0,wh.Z)((0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,D.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Mv(e){return(0,X.ZP)("MuiPickersToolbar",e)}const jv=(0,L.Z)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Iv=(0,h.ZP)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Dv=(0,h.ZP)(Ev,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>(0,u.Z)({flex:1},!e.isLandscape&&{alignItems:"center"})),Nv=(0,h.ZP)(Bh,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{["&."+jv.penIconButtonLandscape]:t.penIconButtonLandscape},t.penIconButton]})({}),Lv=e=>"clock"===e?(0,D.jsx)(Rv,{color:"inherit"}):(0,D.jsx)(Tv,{color:"inherit"}),Zv=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPickersToolbar"}),{children:n,className:o,getMobileKeyboardInputViewButtonText:i,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:l="column",toggleMobileKeyboardView:u,toolbarTitle:c,viewType:d="calendar"}=r,p=r,h=iv(),g=(e=>{const{classes:t,isLandscape:r}=e,n={root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]};return(0,f.Z)(n,Mv,t)})(p);return(0,D.jsxs)(Iv,{ref:t,className:mv(g.root,o),ownerState:p,children:[(0,D.jsx)(ag,{color:"text.secondary",variant:"overline",children:c}),(0,D.jsxs)(Dv,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?l:"row",alignItems:a?"flex-start":"flex-end",children:[n,(0,D.jsx)(Nv,{onClick:u,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":i?i(s,d):h.inputModeToggleButtonAriaLabel(s,d),children:s?Lv(d):(0,D.jsx)(Av,{color:"inherit"})})]})]})}));function Fv(e){return(0,X.ZP)("MuiDatePickerToolbar",e)}(0,L.Z)("MuiDatePickerToolbar",["root","title"]);const Bv=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Vv=(0,h.ZP)(Zv,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zv=(0,h.ZP)(ag,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>(0,u.Z)({},e.isLandscape&&{margin:"auto 16px auto auto"})),Wv=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,toolbarFormat:c,toolbarPlaceholder:d="––",toolbarTitle:p,views:h}=n,g=(0,l.Z)(n,Bv),y=nv(),v=iv(),b=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],title:["title"]},Fv,t)})(n),w=null!=p?p:v.datePickerDefaultToolbarTitle,x=e.useMemo(()=>o?c?y.formatByString(o,c):cv(h)?y.format(o,"year"):dv(h)?y.format(o,"month"):/en/.test(y.getCurrentLocaleCode())?y.format(o,"normalDateWithWeekday"):y.format(o,"normalDate"):d,[o,c,d,y,h]),S=n;return(0,D.jsx)(Vv,(0,u.Z)({ref:r,toolbarTitle:w,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,isLandscape:i,className:b.root},g,{children:(0,D.jsx)(zv,{variant:"h4",align:i?"left":"center",ownerState:S,className:b.title,children:x})}))})),Uv=e.createContext(null);function $v(e){return(0,X.ZP)("MuiDialogActions",e)}(0,L.Z)("MuiDialogActions",["root","spacing"]);const Hv=["className","disableSpacing"],Yv=(0,h.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,u.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Gv=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,i=(0,l.Z)(r,Hv),a=(0,u.Z)({},r,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:r}=e,n={root:["root",!r&&"spacing"]};return(0,f.Z)(n,$v,t)})(a);return(0,D.jsx)(Yv,(0,u.Z)({className:(0,c.Z)(s.root,n),ownerState:a,ref:t},i))})),qv=["onAccept","onClear","onCancel","onSetToday","actions"],Kv=t=>{const{onAccept:r,onClear:n,onCancel:o,onSetToday:i,actions:a}=t,s=(0,l.Z)(t,qv),c=e.useContext(Uv),d=iv(),f="function"==typeof a?a(c):a;if(null==f||0===f.length)return null;const p=null==f?void 0:f.map(e=>{switch(e){case"clear":return(0,D.jsx)(pe,{onClick:n,children:d.clearButtonLabel},e);case"cancel":return(0,D.jsx)(pe,{onClick:o,children:d.cancelButtonLabel},e);case"accept":return(0,D.jsx)(pe,{onClick:r,children:d.okButtonLabel},e);case"today":return(0,D.jsx)(pe,{onClick:i,children:d.todayButtonLabel},e);default:return null}});return(0,D.jsx)(Gv,(0,u.Z)({},s,{children:p}))};function Xv(e){return(0,X.ZP)("MuiPickersPopper",e)}(0,L.Z)("MuiPickersPopper",["root","paper"]);function Qv(e,t){return Array.isArray(t)?t.every(t=>-1!==e.indexOf(t)):-1!==e.indexOf(t)}const Jv=(e,t)=>r=>{"Enter"!==r.key&&" "!==r.key||(e(r),r.preventDefault(),r.stopPropagation()),t&&t(r)},eb=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?eb(t.shadowRoot):t:null},tb=["onClick","onTouchStart"],rb=(0,h.ZP)(ss,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),nb=(0,h.ZP)(Dp,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>(0,u.Z)({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"}));function ob(t){var r;const n=(0,m.Z)({props:t,name:"MuiPickersPopper"}),{anchorEl:o,children:i,containerRef:a=null,onBlur:s,onClose:c,onClear:d,onAccept:p,onCancel:h,onSetToday:v,open:b,PopperProps:w,role:x,TransitionComponent:S=ji,TrapFocusProps:_,PaperProps:k={},components:E,componentsProps:C}=n;e.useEffect(()=>{function e(e){!b||"Escape"!==e.key&&"Esc"!==e.key||c()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[c,b]);const P=e.useRef(null);e.useEffect(()=>{"tooltip"!==x&&(b?P.current=eb(document):P.current&&P.current instanceof HTMLElement&&setTimeout(()=>{P.current instanceof HTMLElement&&P.current.focus()}))},[b,x]);const[O,T,R]=function(t,r){const n=e.useRef(!1),o=e.useRef(!1),i=e.useRef(null),a=e.useRef(!1);e.useEffect(()=>{if(t)return document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",e,!0),a.current=!1};function e(){a.current=!0}},[t]);const s=(0,y.Z)(e=>{if(!a.current)return;const t=o.current;o.current=!1;const s=(0,$f.Z)(i.current);if(!i.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s))return;if(n.current)return void(n.current=!1);let l;l=e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),l||t||r(e)}),l=()=>{o.current=!0};return e.useEffect(()=>{if(t){const e=(0,$f.Z)(i.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}},[t,s]),e.useEffect(()=>{if(t){const e=(0,$f.Z)(i.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),o.current=!1}}},[t,s]),[i,l,l]}(b,null!=s?s:c),A=e.useRef(null),M=(0,g.Z)(A,a),j=(0,g.Z)(M,O),I=n,N=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],paper:["paper"]},Xv,t)})(I),{onClick:L,onTouchStart:Z}=k,F=(0,l.Z)(k,tb),B=null!=(r=null==E?void 0:E.ActionBar)?r:Kv,V=(null==E?void 0:E.PaperContent)||e.Fragment;return(0,D.jsx)(rb,(0,u.Z)({transition:!0,role:x,open:b,anchorEl:o,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),c())},className:N.root},w,{children:({TransitionProps:e,placement:t})=>(0,D.jsx)(vp,(0,u.Z)({open:b,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===x,isEnabled:()=>!0},_,{children:(0,D.jsx)(S,(0,u.Z)({},e,{children:(0,D.jsx)(nb,(0,u.Z)({tabIndex:-1,elevation:8,ref:j,onClick:e=>{T(e),L&&L(e)},onTouchStart:e=>{R(e),Z&&Z(e)},ownerState:(0,u.Z)({},I,{placement:t}),className:N.paper},F,{children:(0,D.jsxs)(V,(0,u.Z)({},null==C?void 0:C.paperContent,{children:[i,(0,D.jsx)(B,(0,u.Z)({onAccept:p,onClear:d,onCancel:h,onSetToday:v,actions:[]},null==C?void 0:C.actionBar))]}))}))}))}))}))}function ib(t){const{children:r,DateInputProps:n,KeyboardDateInputComponent:o,onClear:i,onDismiss:a,onCancel:s,onAccept:l,onSetToday:c,open:d,PopperProps:f,PaperProps:p,TransitionComponent:h,components:m,componentsProps:y}=t,v=e.useRef(null),b=(0,g.Z)(n.inputRef,v);return(0,D.jsxs)(Uv.Provider,{value:"desktop",children:[(0,D.jsx)(o,(0,u.Z)({},n,{inputRef:b})),(0,D.jsx)(ob,{role:"dialog",open:d,anchorEl:v.current,TransitionComponent:h,PopperProps:f,PaperProps:p,onClose:a,onCancel:s,onClear:i,onAccept:l,onSetToday:c,components:m,componentsProps:y,children:r})]})}function ab({onChange:t,onViewChange:r,openTo:n,view:o,views:i}){var a,s;const[l,u]=(0,us.Z)({name:"Picker",state:"view",controlled:o,default:n&&Qv(i,n)?n:i[0]}),c=null!=(a=i[i.indexOf(l)-1])?a:null,d=null!=(s=i[i.indexOf(l)+1])?s:null,f=e.useCallback(e=>{u(e),r&&r(e)},[u,r]),p=e.useCallback(()=>{d&&f(d)},[d,f]);return{handleChangeAndOpenNext:e.useCallback((e,r)=>{const n="finish"===r,o=n&&Boolean(d)?"partial":r;t(e,o),n&&p()},[d,t,p]),nextView:d,previousView:c,openNext:p,openView:l,setOpenView:f}}const sb={x:110,y:110},lb=sb.x-sb.x,ub=0-sb.y,cb=(e,t,r)=>{const n=t-sb.x,o=r-sb.y,i=Math.atan2(lb,ub)-Math.atan2(n,o);let a=i*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const s=n**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(s)}};function db(e){return(0,X.ZP)("MuiClockPointer",e)}(0,L.Z)("MuiClockPointer",["root","thumb"]);const fb=["className","hasSelected","isInner","type","value"],pb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,u.Z)({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),hb=(0,h.ZP)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>(0,u.Z)({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:"16px solid "+e.palette.primary.main,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function mb(t){const r=(0,m.Z)({props:t,name:"MuiClockPointer"}),{className:n,isInner:o,type:i,value:a}=r,s=(0,l.Z)(r,fb),c=e.useRef(i);e.useEffect(()=>{c.current=i},[i]);const d=(0,u.Z)({},r,{shouldAnimate:c.current!==i}),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],thumb:["thumb"]},db,t)})(d);return(0,D.jsx)(pb,(0,u.Z)({style:(()=>{let e=360/("hours"===i?12:60)*a;return"hours"===i&&a>12&&(e-=360),{height:Math.round(220*(o?.26:.4)),transform:`rotateZ(${e}deg)`}})(),className:mv(n,p.root),ownerState:d},s,{children:(0,D.jsx)(hb,{ownerState:d,className:p.thumb})}))}function gb(e){return(0,X.ZP)("MuiClock",e)}(0,L.Z)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const yb=(0,h.ZP)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),vb=(0,h.ZP)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),bb=(0,h.ZP)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),wb=(0,h.ZP)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>(0,u.Z)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),xb=(0,h.ZP)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Sb=(0,h.ZP)(Bh,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},"am"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),_b=(0,h.ZP)(Bh,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>(0,u.Z)({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function kb(t){const r=(0,m.Z)({props:t,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:i,children:a,date:s,getClockLabelText:l,handleMeridiemChange:u,isTimeDisabled:c,meridiemMode:d,minutesStep:p=1,onChange:h,selectedId:g,type:y,value:v,disabled:b,readOnly:w,className:x}=r,S=r,_=nv(),k=e.useContext(Uv),E=e.useRef(!1),C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},gb,t)})(S),P=c(v,y),O=!n&&"hours"===y&&(v<1||v>12),T=(e,t)=>{b||w||c(e,y)||h(e,t)},R=(e,t)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const i="seconds"===y||"minutes"===y?((e,t,r=1)=>{const n=6*r;let{value:o}=cb(n,e,t);return o=o*r%60,o})(r,o,p):((e,t,r)=>{const{value:n,distance:o}=cb(30,e,t);let i=n||12;return r?i%=12:o<74&&(i+=12,i%=24),i})(r,o,Boolean(n));T(i,t)},A=e.useMemo(()=>"hours"===y||v%5==0,[y,v]),M="minutes"===y?p:1,j=e.useRef(null);(0,Di.Z)(()=>{i&&j.current.focus()},[i]);return(0,D.jsxs)(yb,{className:mv(x,C.root),children:[(0,D.jsxs)(vb,{className:C.clock,children:[(0,D.jsx)(wb,{onTouchMove:e=>{E.current=!0,R(e,"shallow")},onTouchEnd:e=>{E.current&&(R(e,"finish"),E.current=!1)},onMouseUp:e=>{E.current&&(E.current=!1),R(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&R(e.nativeEvent,"shallow")},ownerState:{disabled:b},className:C.squareMask}),!P&&(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(xb,{className:C.pin}),s&&(0,D.jsx)(mb,{type:y,value:v,isInner:O,hasSelected:A})]}),(0,D.jsx)(bb,{"aria-activedescendant":g,"aria-label":l(y,s,_),ref:j,role:"listbox",onKeyDown:e=>{if(!E.current)switch(e.key){case"Home":T(0,"partial"),e.preventDefault();break;case"End":T("minutes"===y?59:23,"partial"),e.preventDefault();break;case"ArrowUp":T(v+M,"partial"),e.preventDefault();break;case"ArrowDown":T(v-M,"partial"),e.preventDefault()}},tabIndex:0,className:C.wrapper,children:a})]}),n&&("desktop"===k||o)&&(0,D.jsxs)(e.Fragment,{children:[(0,D.jsx)(Sb,{onClick:w?void 0:()=>u("am"),disabled:b||null===d,ownerState:S,className:C.amButton,children:(0,D.jsx)(ag,{variant:"caption",children:"AM"})}),(0,D.jsx)(_b,{disabled:b||null===d,onClick:w?void 0:()=>u("pm"),ownerState:S,className:C.pmButton,children:(0,D.jsx)(ag,{variant:"caption",children:"PM"})})]})]})}function Eb(e){return(0,X.ZP)("MuiClockNumber",e)}const Cb=(0,L.Z)("MuiClockNumber",["root","selected","disabled"]),Pb=["className","disabled","index","inner","label","selected"],Ob=(0,h.ZP)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Cb.disabled]:t.disabled},{["&."+Cb.selected]:t.selected}]})(({theme:e,ownerState:t})=>(0,u.Z)({height:36,width:36,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},["&."+Cb.selected]:{color:e.palette.primary.contrastText},["&."+Cb.disabled]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&(0,u.Z)({},e.typography.body2,{color:e.palette.text.secondary})));function Tb(e){const t=(0,m.Z)({props:e,name:"MuiClockNumber"}),{className:r,disabled:n,index:o,inner:i,label:a,selected:s}=t,c=(0,l.Z)(t,Pb),d=t,p=(e=>{const{classes:t,selected:r,disabled:n}=e,o={root:["root",r&&"selected",n&&"disabled"]};return(0,f.Z)(o,Eb,t)})(d),h=o%12/12*Math.PI*2-Math.PI/2,g=91*(i?.65:1),y=Math.round(Math.cos(h)*g),v=Math.round(Math.sin(h)*g);return(0,D.jsx)(Ob,(0,u.Z)({className:mv(r,p.root),"aria-disabled":!!n||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${y}px, ${v+92}px`},ownerState:d},c,{children:a}))}const Rb=({ampm:e,date:t,getClockNumberText:r,isDisabled:n,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?12:23,u=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=e?1:0;t<=l;t+=1){let a=t.toString();0===t&&(a="00");const l=!e&&(0===t||t>12);a=i.formatNumber(a);const c=u(t);s.push((0,D.jsx)(Tb,{id:c?o:void 0,index:t,inner:l,selected:c,disabled:n(t),label:a,"aria-label":r(a)},t))}return s},Ab=({utils:e,value:t,isDisabled:r,getClockNumberText:n,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([e,i],a)=>{const s=e===t;return(0,D.jsx)(Tb,{label:i,id:s?o:void 0,index:a+1,inner:!1,disabled:r(e),selected:s,"aria-label":n(i)},e)})};function Mb(e){return(0,X.ZP)("MuiPickersArrowSwitcher",e)}(0,L.Z)("MuiPickersArrowSwitcher",["root","spacer","button"]);const jb=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Ib=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Db=(0,h.ZP)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Nb=(0,h.ZP)(Bh,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,u.Z)({},e.hidden&&{visibility:"hidden"})),Lb=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPickersArrowSwitcher"}),{children:n,className:o,components:i,componentsProps:a,isLeftDisabled:s,isLeftHidden:c,isRightDisabled:d,isRightHidden:p,leftArrowButtonText:h,onLeftClick:g,onRightClick:y,rightArrowButtonText:v}=r,b=(0,l.Z)(r,jb),w="rtl"===bi().direction,x=(null==a?void 0:a.leftArrowButton)||{},S=(null==i?void 0:i.LeftArrowIcon)||Pv,_=(null==a?void 0:a.rightArrowButton)||{},k=(null==i?void 0:i.RightArrowIcon)||Ov,E=r,C=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],spacer:["spacer"],button:["button"]},Mb,t)})(E);return(0,D.jsxs)(Ib,(0,u.Z)({ref:t,className:mv(C.root,o),ownerState:E},b,{children:[(0,D.jsx)(Nb,(0,u.Z)({as:null==i?void 0:i.LeftArrowButton,size:"small","aria-label":h,title:h,disabled:s,edge:"end",onClick:g},x,{className:mv(C.button,x.className),ownerState:(0,u.Z)({},E,x,{hidden:c}),children:w?(0,D.jsx)(k,{}):(0,D.jsx)(S,{})})),n?(0,D.jsx)(ag,{variant:"subtitle1",component:"span",children:n}):(0,D.jsx)(Db,{className:C.spacer,ownerState:E}),(0,D.jsx)(Nb,(0,u.Z)({as:null==i?void 0:i.RightArrowButton,size:"small","aria-label":v,title:v,edge:"start",disabled:d,onClick:y},_,{className:mv(C.button,_.className),ownerState:(0,u.Z)({},E,_,{hidden:p}),children:w?(0,D.jsx)(S,{}):(0,D.jsx)(k,{})}))]}))})),Zb=(e,t,r)=>{if(r){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},Fb=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),Bb=(e=!1,t)=>(r,n)=>e?t.isAfter(r,n):Fb(r,t)>Fb(n,t);function Vb(t,r,n){const o=nv();return{meridiemMode:((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(t,o),handleMeridiemChange:e.useCallback(e=>{const i=null==t?null:((e,t,r,n)=>{const o=Zb(n.getHours(e),t,r);return n.setHours(e,o)})(t,e,Boolean(r),o);n(i,"partial")},[r,t,n,o])}}function zb(e){return(0,X.ZP)("MuiClockPicker",e)}(0,L.Z)("MuiClockPicker",["root","arrowSwitcher"]);const Wb=(0,h.ZP)("div")({overflowX:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"}),Ub=(0,h.ZP)(Wb,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),$b=(0,h.ZP)(Lb,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Hb=()=>{},Yb=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiClockPicker"}),{ampm:o=!1,ampmInClock:i=!1,autoFocus:a,components:s,componentsProps:l,date:c,disableIgnoringDatePartForTimeValidation:d,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y,leftArrowButtonText:v,maxTime:b,minTime:w,minutesStep:x=1,rightArrowButtonText:S,shouldDisableTime:_,showViewSwitcher:k,onChange:E,view:C,views:P=["hours","minutes"],openTo:O,onViewChange:T,className:R,disabled:A,readOnly:M}=n;Hb({leftArrowButtonText:v,rightArrowButtonText:S,getClockLabelText:p,getHoursClockNumberText:h,getMinutesClockNumberText:g,getSecondsClockNumberText:y});const j=iv(),I=null!=v?v:j.openPreviousView,N=null!=S?S:j.openNextView,L=null!=p?p:j.clockLabelText,Z=null!=h?h:j.hoursClockNumberText,F=null!=g?g:j.minutesClockNumberText,B=null!=y?y:j.secondsClockNumberText,{openView:V,setOpenView:z,nextView:W,previousView:U,handleChangeAndOpenNext:$}=ab({view:C,views:P,openTo:O,onViewChange:T,onChange:E}),H=av(),Y=nv(),G=e.useMemo(()=>c||Y.setSeconds(Y.setMinutes(Y.setHours(H,0),0),0),[c,H,Y]),{meridiemMode:q,handleMeridiemChange:K}=Vb(G,o,$),X=e.useCallback((e,t)=>{const r=Bb(d,Y),n=({start:e,end:t})=>(!w||!r(w,t))&&(!b||!r(e,b)),i=(e,r=1)=>e%r==0&&(!_||!_(e,t));switch(t){case"hours":{const t=Zb(e,q,o),r=Y.setHours(G,t);return!n({start:Y.setSeconds(Y.setMinutes(r,0),0),end:Y.setSeconds(Y.setMinutes(r,59),59)})||!i(t)}case"minutes":{const t=Y.setMinutes(G,e);return!n({start:Y.setSeconds(t,0),end:Y.setSeconds(t,59)})||!i(e,x)}case"seconds":{const t=Y.setSeconds(G,e);return!n({start:t,end:t})||!i(e)}default:throw new Error("not supported")}},[o,G,d,b,q,w,x,_,Y]),Q=(0,ls.Z)(),J=e.useMemo(()=>{switch(V){case"hours":{const e=(e,t)=>{const r=Zb(e,q,o);$(Y.setHours(G,r),t)};return{onChange:e,value:Y.getHours(G),children:Rb({date:c,utils:Y,ampm:o,onChange:e,getClockNumberText:Z,isDisabled:e=>A||X(e,"hours"),selectedId:Q})}}case"minutes":{const e=Y.getMinutes(G),t=(e,t)=>{$(Y.setMinutes(G,e),t)};return{value:e,onChange:t,children:Ab({utils:Y,value:e,onChange:t,getClockNumberText:F,isDisabled:e=>A||X(e,"minutes"),selectedId:Q})}}case"seconds":{const e=Y.getSeconds(G),t=(e,t)=>{$(Y.setSeconds(G,e),t)};return{value:e,onChange:t,children:Ab({utils:Y,value:e,onChange:t,getClockNumberText:B,isDisabled:e=>A||X(e,"seconds"),selectedId:Q})}}default:throw new Error("You must provide the type for ClockView")}},[V,Y,c,o,Z,F,B,q,$,G,X,Q,A]),ee=n,te=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],arrowSwitcher:["arrowSwitcher"]},zb,t)})(ee);return(0,D.jsxs)(Ub,{ref:r,className:mv(te.root,R),ownerState:ee,children:[k&&(0,D.jsx)($b,{className:te.arrowSwitcher,leftArrowButtonText:I,rightArrowButtonText:N,components:s,componentsProps:l,onLeftClick:()=>z(U),onRightClick:()=>z(W),isLeftDisabled:!U,isRightDisabled:!W,ownerState:ee}),(0,D.jsx)(kb,(0,u.Z)({autoFocus:a,date:c,ampmInClock:i,type:V,ampm:o,getClockLabelText:L,minutesStep:x,isTimeDisabled:X,meridiemMode:q,handleMeridiemChange:K,selectedId:Q,disabled:A,readOnly:M},J))]})}));function Gb(e){return(0,X.ZP)("PrivatePickersMonth",e)}const qb=(0,L.Z)("PrivatePickersMonth",["root","selected"]),Kb=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],Xb=(0,h.ZP)(ag,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+qb.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},["&."+qb.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Qb=()=>{},Jb=t=>{const{disabled:r,onSelect:n,selected:o,value:i,tabIndex:a,hasFocus:s,onFocus:c=Qb,onBlur:d=Qb}=t,p=(0,l.Z)(t,Kb),h=(e=>{const{classes:t,selected:r}=e,n={root:["root",r&&"selected"]};return(0,f.Z)(n,Gb,t)})(t),m=()=>{n(i)},g=e.useRef(null);return(0,Nd.Z)(()=>{var e;s&&(null==(e=g.current)||e.focus())},[s]),(0,D.jsx)(Xb,(0,u.Z)({ref:g,component:"button",type:"button",className:h.root,tabIndex:a,onClick:m,onKeyDown:Jv(m),color:o?"primary":void 0,variant:o?"h5":"subtitle1",disabled:r,onFocus:e=>c(e,i),onBlur:e=>d(e,i)},p))};function ew(e){return(0,X.ZP)("MuiMonthPicker",e)}(0,L.Z)("MuiMonthPicker",["root"]);const tw=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"];const rw=(0,h.ZP)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),nw=e.forwardRef((function(t,r){const n=nv(),o=av(),i=function(e,t){const r=nv(),n=ov(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disableFuture:!1,disablePast:!1},o,{minDate:uv(r,o.minDate,n.minDate),maxDate:uv(r,o.maxDate,n.maxDate)})}(t,"MuiMonthPicker"),{className:a,date:s,disabled:c,disableFuture:d,disablePast:p,maxDate:h,minDate:g,onChange:v,shouldDisableMonth:b,readOnly:w,disableHighlightToday:x,autoFocus:S=!1,onMonthFocus:_,hasFocus:k,onFocusedViewChange:E}=i,C=(0,l.Z)(i,tw),P=i,O=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},ew,t)})(P),T=(0,gi.Z)(),R=e.useMemo(()=>null!=s?s:n.startOfMonth(o),[o,n,s]),A=e.useMemo(()=>null!=s?n.getMonth(s):x?null:n.getMonth(o),[o,s,n,x]),[M,j]=e.useState(()=>A||n.getMonth(o)),I=e.useCallback(e=>{const t=n.startOfMonth(p&&n.isAfter(o,g)?o:g),r=n.startOfMonth(d&&n.isBefore(o,h)?o:h);return!!n.isBefore(e,t)||(!!n.isAfter(e,r)||!!b&&b(e))},[d,p,h,g,o,b,n]),N=e=>{if(w)return;const t=n.setMonth(R,e);v(t,"finish")},[L,Z]=(0,us.Z)({name:"MonthPicker",state:"hasFocus",controlled:k,default:S}),F=e.useCallback(e=>{Z(e),E&&E(e)},[Z,E]),B=e.useCallback(e=>{I(n.setMonth(R,e))||(j(e),F(!0),_&&_(e))},[I,n,R,F,_]);e.useEffect(()=>{j(e=>null!==A&&e!==A?A:e)},[A]);const V=(0,y.Z)(e=>{switch(e.key){case"ArrowUp":B((12+M-3)%12),e.preventDefault();break;case"ArrowDown":B((12+M+3)%12),e.preventDefault();break;case"ArrowLeft":B((12+M+("ltr"===T.direction?-1:1))%12),e.preventDefault();break;case"ArrowRight":B((12+M+("ltr"===T.direction?1:-1))%12),e.preventDefault()}}),z=e.useCallback((e,t)=>{B(t)},[B]),W=e.useCallback(()=>{F(!1)},[F]),U=n.getMonth(o);return(0,D.jsx)(rw,(0,u.Z)({ref:r,className:mv(O.root,a),ownerState:P,onKeyDown:V},C,{children:n.getMonthArray(R).map(e=>{const t=n.getMonth(e),r=n.format(e,"monthShort"),o=c||I(e);return(0,D.jsx)(Jb,{value:t,selected:t===A,tabIndex:t!==M||o?-1:0,hasFocus:L&&t===M,onSelect:N,onFocus:z,onBlur:W,disabled:o,"aria-current":U===t?"date":void 0,children:r},r)})}))}));function ow(t,r,n){const{value:o,onError:i}=t,a=rv(),s=e.useRef(null),l=r({adapter:a,value:o,props:t});return e.useEffect(()=>{i&&!n(l,s.current)&&i(l,o),s.current=l},[n,i,s,l,o]),l}const iw=({props:e,value:t,adapter:r})=>{const n=r.utils.date(),o=r.utils.date(t),i=uv(r.utils,e.minDate,r.defaultDates.minDate),a=uv(r.utils,e.maxDate,r.defaultDates.maxDate);if(null===o)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case Boolean(e.shouldDisableDate&&e.shouldDisableDate(o)):return"shouldDisableDate";case Boolean(e.disableFuture&&r.utils.isAfterDay(o,n)):return"disableFuture";case Boolean(e.disablePast&&r.utils.isBeforeDay(o,n)):return"disablePast";case Boolean(i&&r.utils.isBeforeDay(o,i)):return"minDate";case Boolean(a&&r.utils.isAfterDay(o,a)):return"maxDate";default:return null}},aw=({shouldDisableDate:t,minDate:r,maxDate:n,disableFuture:o,disablePast:i})=>{const a=rv();return e.useCallback(e=>null!==iw({adapter:a,value:e,props:{shouldDisableDate:t,minDate:r,maxDate:n,disableFuture:o,disablePast:i}}),[a,t,r,n,o,i])},sw=(e,t)=>e===t,lw=e=>ow(e,iw,sw),uw=({date:t,defaultCalendarMonth:r,disableFuture:n,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:d})=>{var f;const p=av(),h=nv(),m=e.useRef(((e,t,r)=>(n,o)=>{switch(o.type){case"changeMonth":return(0,u.Z)({},n,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return(0,u.Z)({},n,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=n.focusedDay&&null!=o.focusedDay&&r.isSameDay(o.focusedDay,n.focusedDay))return n;const i=null!=o.focusedDay&&!t&&!r.isSameMonth(n.currentMonth,o.focusedDay);return(0,u.Z)({},n,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?r.startOfMonth(o.focusedDay):n.currentMonth,slideDirection:null!=o.focusedDay&&r.isAfterDay(o.focusedDay,n.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(c),i,h)).current,[g,y]=e.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:t||p,currentMonth:h.startOfMonth(null!=(f=null!=t?t:r)?f:p),slideDirection:"left"}),v=e.useCallback(e=>{y((0,u.Z)({type:"changeMonth"},e)),l&&l(e.newMonth)},[l]),b=e.useCallback(e=>{const t=null!=e?e:p;h.isSameMonth(t,g.currentMonth)||v({newMonth:h.startOfMonth(t),direction:h.isAfterDay(t,g.currentMonth)?"left":"right"})},[g.currentMonth,v,p,h]),w=aw({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:n,disablePast:o}),x=e.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),S=e.useCallback((e,t)=>{w(e)||y({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})},[w]);return{calendarState:g,changeMonth:b,changeFocusedDay:S,isDateDisabled:w,onMonthSwitchingAnimationEnd:x,handleChangeMonth:v}},cw=e=>(0,X.ZP)("MuiPickersFadeTransitionGroup",e),dw=((0,L.Z)("MuiPickersFadeTransitionGroup",["root"]),(0,h.ZP)(P,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"}));function fw(e){const t=(0,m.Z)({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:n,reduceAnimations:o,transKey:i}=t,a=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},cw,t)})(t);return o?r:(0,D.jsx)(dw,{className:mv(a.root,n),children:(0,D.jsx)(xp,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:r},i)})}function pw(e){return(0,X.ZP)("MuiPickersDay",e)}const hw=(0,L.Z)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),mw=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],gw=({theme:e,ownerState:t})=>(0,u.Z)({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),["&."+hw.selected]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+hw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},["&."+hw.disabled]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:"0 2px"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${hw.selected})`]:{border:"1px solid "+e.palette.text.secondary}}),yw=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},vw=(0,h.ZP)(re,{name:"MuiPickersDay",slot:"Root",overridesResolver:yw})(gw),bw=(0,h.ZP)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:yw})(({theme:e,ownerState:t})=>(0,u.Z)({},gw({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),ww=()=>{},xw=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:c=!1,disableMargin:d=!1,isAnimating:p,onClick:h,onDaySelect:y,onFocus:v=ww,onBlur:b=ww,onKeyDown:w=ww,onMouseDown:x,outsideCurrentMonth:S,selected:_=!1,showDaysOutsideCurrentMonth:k=!1,children:E,today:C=!1}=n,P=(0,l.Z)(n,mw),O=(0,u.Z)({},n,{autoFocus:o,disabled:s,disableHighlightToday:c,disableMargin:d,selected:_,showDaysOutsideCurrentMonth:k,today:C}),T=(e=>{const{selected:t,disableMargin:r,disableHighlightToday:n,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u={root:["root",t&&"selected",i&&"disabled",!r&&"dayWithMargin",!n&&o&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return(0,f.Z)(u,pw,l)})(O),R=nv(),A=e.useRef(null),M=(0,g.Z)(A,r);(0,Di.Z)(()=>{!o||s||p||S||A.current.focus()},[o,s,p,S]);return S&&!k?(0,D.jsx)(bw,{className:mv(T.root,T.hiddenDaySpacingFiller,i),ownerState:O,role:P.role}):(0,D.jsx)(vw,(0,u.Z)({className:mv(T.root,i),ownerState:O,ref:M,centerRipple:!0,disabled:s,tabIndex:_?0:-1,onKeyDown:e=>w(e,a),onFocus:e=>v(e,a),onBlur:e=>b(e,a),onClick:e=>{s||y(a,"finish"),S&&e.currentTarget.focus(),h&&h(e)},onMouseDown:e=>{x&&x(e),S&&e.preventDefault()}},P,{children:E||R.format(a,"dayOfMonth")}))})),Sw=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,_w=e.memo(xw,Sw);function kw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Ew=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.remove(n):"string"==typeof r.className?r.className=kw(r.className,n):r.setAttribute("class",kw(r.className&&r.className.baseVal||"",n)));var r,n}))},Cw=function(t){function r(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,r){var n=e.resolveArguments(t,r),o=n[0],i=n[1];e.removeClasses(o,"exit"),e.addClass(o,i?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,r)},e.onEntering=function(t,r){var n=e.resolveArguments(t,r),o=n[0],i=n[1]?"appear":"enter";e.addClass(o,i,"active"),e.props.onEntering&&e.props.onEntering(t,r)},e.onEntered=function(t,r){var n=e.resolveArguments(t,r),o=n[0],i=n[1]?"appear":"enter";e.removeClasses(o,i),e.addClass(o,i,"done"),e.props.onEntered&&e.props.onEntered(t,r)},e.onExit=function(t){var r=e.resolveArguments(t)[0];e.removeClasses(r,"appear"),e.removeClasses(r,"enter"),e.addClass(r,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var r=e.resolveArguments(t)[0];e.addClass(r,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var r=e.resolveArguments(t)[0];e.removeClasses(r,"exit"),e.addClass(r,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,r){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,r]},e.getClassNames=function(t){var r=e.props.classNames,n="string"==typeof r,o=n?""+(n&&r?r+"-":"")+t:r[t];return{baseClassName:o,activeClassName:n?o+"-active":r[t+"Active"],doneClassName:n?o+"-done":r[t+"Done"]}},e}w(r,t);var n=r.prototype;return n.addClass=function(e,t,r){var n=this.getClassNames(t)[r+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&o&&(n+=" "+o),"active"===r&&e&&Si(e),n&&(this.appliedClasses[t][r]=n,function(e,t){e&&t&&t.split(" ").forEach((function(t){return n=t,void((r=e).classList?r.classList.add(n):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(r,n)||("string"==typeof r.className?r.className=r.className+" "+n:r.setAttribute("class",(r.className&&r.className.baseVal||"")+" "+n)));var r,n}))}(e,n))},n.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,o=r.active,i=r.done;this.appliedClasses[t]={},n&&Ew(e,n),o&&Ew(e,o),i&&Ew(e,i)},n.render=function(){var t=this.props,r=(t.classNames,(0,l.Z)(t,["classNames"]));return e.createElement(Ei,(0,u.Z)({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(e.Component);Cw.defaultProps={classNames:""},Cw.propTypes={};const Pw=Cw,Ow=e=>(0,X.ZP)("PrivatePickersSlideTransition",e),Tw=(0,L.Z)("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Rw=["children","className","reduceAnimations","slideDirection","transKey"],Aw=(0,h.ZP)(P,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{["."+Tw["slideEnter-left"]]:t["slideEnter-left"]},{["."+Tw["slideEnter-right"]]:t["slideEnter-right"]},{["."+Tw.slideEnterActive]:t.slideEnterActive},{["."+Tw.slideExit]:t.slideExit},{["."+Tw["slideExitActiveLeft-left"]]:t["slideExitActiveLeft-left"]},{["."+Tw["slideExitActiveLeft-right"]]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},["& ."+Tw["slideEnter-left"]]:{willChange:"transform",transform:"translate(100%)",zIndex:1},["& ."+Tw["slideEnter-right"]]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},["& ."+Tw.slideEnterActive]:{transform:"translate(0%)",transition:t},["& ."+Tw.slideExit]:{transform:"translate(0%)"},["& ."+Tw["slideExitActiveLeft-left"]]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},["& ."+Tw["slideExitActiveLeft-right"]]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Mw=e=>(0,X.ZP)("MuiDayPicker",e),jw=((0,L.Z)("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),e=>e.charAt(0).toUpperCase()),Iw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Dw=(0,h.ZP)(ag,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),Nw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),Lw=(0,h.ZP)(t=>{const{children:r,className:n,reduceAnimations:o,slideDirection:i,transKey:a}=t,s=(0,l.Z)(t,Rw),c=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Ow,t)})(t);if(o)return(0,D.jsx)("div",{className:mv(c.root,n),children:r});const d={exit:Tw.slideExit,enterActive:Tw.slideEnterActive,enter:Tw["slideEnter-"+i],exitActive:Tw["slideExitActiveLeft-"+i]};return(0,D.jsx)(Aw,{className:mv(c.root,n),childFactory:t=>e.cloneElement(t,{classNames:d}),role:"presentation",children:(0,D.jsx)(Pw,(0,u.Z)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:d},s,{children:r}),a)})},{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),Zw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Fw=(0,h.ZP)("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function Bw(t){const r=av(),n=nv(),o=(0,m.Z)({props:t,name:"MuiDayPicker"}),i=(e=>{const{classes:t}=e;return(0,f.Z)({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Mw,t)})(o),{onFocusedDayChange:a,className:s,currentMonth:l,selectedDays:c,disabled:d,disableHighlightToday:p,focusedDay:h,isMonthSwitchingAnimating:g,loading:y,onSelectedDaysChange:v,onMonthSwitchingAnimationEnd:b,readOnly:w,reduceAnimations:x,renderDay:S,renderLoading:_=(()=>(0,D.jsx)("span",{children:"..."})),showDaysOutsideCurrentMonth:k,slideDirection:E,TransitionProps:C,disablePast:P,disableFuture:O,minDate:T,maxDate:R,shouldDisableDate:A,dayOfWeekFormatter:M=jw,hasFocus:j,onFocusedViewChange:I,gridLabelId:N}=o,L=aw({shouldDisableDate:A,minDate:T,maxDate:R,disablePast:P,disableFuture:O}),[Z,F]=e.useState(()=>h||r),B=e.useCallback(e=>{I&&I(e)},[I]),V=e.useCallback((e,t="finish")=>{w||v(e,t)},[v,w]),z=e.useCallback(e=>{L(e)||(a(e),F(e),B(!0))},[L,a,B]),W=bi();function U(e,t){switch(e.key){case"ArrowUp":z(n.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":z(n.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{const r=n.addDays(t,"ltr"===W.direction?-1:1),o="ltr"===W.direction?n.getPreviousMonth(t):n.getNextMonth(t),i=sv({utils:n,date:r,minDate:"ltr"===W.direction?n.startOfMonth(o):r,maxDate:"ltr"===W.direction?r:n.endOfMonth(o),isDateDisabled:L});z(i||r),e.preventDefault();break}case"ArrowRight":{const r=n.addDays(t,"ltr"===W.direction?1:-1),o="ltr"===W.direction?n.getNextMonth(t):n.getPreviousMonth(t),i=sv({utils:n,date:r,minDate:"ltr"===W.direction?r:n.startOfMonth(o),maxDate:"ltr"===W.direction?n.endOfMonth(o):r,isDateDisabled:L});z(i||r),e.preventDefault();break}case"Home":z(n.startOfWeek(t)),e.preventDefault();break;case"End":z(n.endOfWeek(t)),e.preventDefault();break;case"PageUp":z(n.getNextMonth(t)),e.preventDefault();break;case"PageDown":z(n.getPreviousMonth(t)),e.preventDefault()}}function $(e,t){z(t)}function H(e,t){j&&n.isSameDay(Z,t)&&B(!1)}const Y=n.getMonth(l),G=c.filter(e=>!!e).map(e=>n.startOfDay(e)),q=Y,K=e.useMemo(()=>e.createRef(),[q]),X=n.startOfWeek(r),Q=e.useMemo(()=>{const e=n.startOfMonth(l),t=n.endOfMonth(l);return L(Z)||n.isAfterDay(Z,t)||n.isBeforeDay(Z,e)?sv({utils:n,date:Z,minDate:e,maxDate:t,disablePast:P,disableFuture:O,isDateDisabled:L}):Z},[l,O,P,Z,L,n]);return(0,D.jsxs)("div",{role:"grid","aria-labelledby":N,children:[(0,D.jsx)(Iw,{role:"row",className:i.header,children:n.getWeekdays().map((e,t)=>{var r;return(0,D.jsx)(Dw,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(X,t),"weekday"),className:i.weekDayLabel,children:null!=(r=null==M?void 0:M(e))?r:e},e+t.toString())})}),y?(0,D.jsx)(Nw,{className:i.loadingContainer,children:_()}):(0,D.jsx)(Lw,(0,u.Z)({transKey:q,onExited:b,reduceAnimations:x,slideDirection:E,className:mv(s,i.slideTransition)},C,{nodeRef:K,children:(0,D.jsx)(Zw,{ref:K,role:"rowgroup",className:i.monthContainer,children:n.getWeekArray(l).map(t=>(0,D.jsx)(Fw,{role:"row",className:i.weekContainer,children:t.map(t=>{const o=null!==Q&&n.isSameDay(t,Q),i=G.some(e=>n.isSameDay(e,t)),a=n.isSameDay(t,r),s={key:null==t?void 0:t.toString(),day:t,isAnimating:g,disabled:d||L(t),autoFocus:j&&o,today:a,outsideCurrentMonth:n.getMonth(t)!==Y,selected:i,disableHighlightToday:p,showDaysOutsideCurrentMonth:k,onKeyDown:U,onFocus:$,onBlur:H,onDaySelect:V,tabIndex:o?0:-1,role:"gridcell","aria-selected":i};return a&&(s["aria-current"]="date"),S?S(t,G,s):(0,e.createElement)(_w,(0,u.Z)({},s,{key:s.key}))})},"week-"+t[0]))})}))]})}const Vw=e=>(0,X.ZP)("MuiPickersCalendarHeader",e),zw=((0,L.Z)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30})),Ww=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>(0,u.Z)({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Uw=(0,h.ZP)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),$w=(0,h.ZP)(Bh,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Hw=(0,h.ZP)(Cv,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>(0,u.Z)({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},"year"===t.openView&&{transform:"rotate(180deg)"})),Yw=()=>{};function Gw(t){const r=(0,m.Z)({props:t,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:o={},currentMonth:i,disabled:a,disableFuture:s,disablePast:l,getViewSwitchingButtonText:c,leftArrowButtonText:d,maxDate:p,minDate:h,onMonthChange:g,onViewChange:y,openView:v,reduceAnimations:b,rightArrowButtonText:w,views:x,labelId:S}=r;Yw({leftArrowButtonText:d,rightArrowButtonText:w,getViewSwitchingButtonText:c});const _=iv(),k=null!=d?d:_.previousMonth,E=null!=w?w:_.nextMonth,C=null!=c?c:_.calendarViewSwitchingButtonAriaLabel,P=nv(),O=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Vw,t)})(r),T=o.switchViewButton||{},R=function(t,{disableFuture:r,maxDate:n}){const o=nv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(r&&o.isBefore(e,n)?e:n);return!o.isAfter(i,t)},[r,n,t,o])}(i,{disableFuture:s,maxDate:p}),A=function(t,{disablePast:r,minDate:n}){const o=nv();return e.useMemo(()=>{const e=o.date(),i=o.startOfMonth(r&&o.isAfter(e,n)?e:n);return!o.isBefore(i,t)},[r,n,t,o])}(i,{disablePast:l,minDate:h});if(1===x.length&&"year"===x[0])return null;const M=r;return(0,D.jsxs)(zw,{ownerState:M,className:O.root,children:[(0,D.jsxs)(Ww,{role:"presentation",onClick:()=>{if(1!==x.length&&y&&!a)if(2===x.length)y(x.find(e=>e!==v)||x[0]);else{const e=0!==x.indexOf(v)?0:1;y(x[e])}},ownerState:M,"aria-live":"polite",className:O.labelContainer,children:[(0,D.jsx)(fw,{reduceAnimations:b,transKey:P.format(i,"monthAndYear"),children:(0,D.jsx)(Uw,{id:S,ownerState:M,className:O.label,children:P.format(i,"monthAndYear")})}),x.length>1&&!a&&(0,D.jsx)($w,(0,u.Z)({size:"small",as:n.SwitchViewButton,"aria-label":C(v),className:O.switchViewButton},T,{children:(0,D.jsx)(Hw,{as:n.SwitchViewIcon,ownerState:M,className:O.switchViewIcon})}))]}),(0,D.jsx)(xp,{in:"day"===v,children:(0,D.jsx)(Lb,{leftArrowButtonText:k,rightArrowButtonText:E,components:n,componentsProps:o,onLeftClick:()=>g(P.getPreviousMonth(i),"right"),onRightClick:()=>g(P.getNextMonth(i),"left"),isLeftDisabled:A,isRightDisabled:R})})]})}function qw(e){return(0,X.ZP)("PrivatePickersYear",e)}const Kw=(0,L.Z)("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Xw=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Qw=(0,h.ZP)("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+Kw.modeDesktop]:t.modeDesktop},{["&."+Kw.modeMobile]:t.modeMobile}]})(({ownerState:e})=>(0,u.Z)({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:"25%"})),Jw=(0,h.ZP)("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{["&."+Kw.disabled]:t.disabled},{["&."+Kw.selected]:t.selected}]})(({theme:e})=>(0,u.Z)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,p.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},["&."+Kw.disabled]:{color:e.palette.text.secondary},["&."+Kw.selected]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),ex=()=>{},tx=e.forwardRef((function(t,r){const{autoFocus:n,className:o,children:i,disabled:a,onClick:s,onKeyDown:c,value:d,tabIndex:p,onFocus:h=ex,onBlur:m=ex}=t,y=(0,l.Z)(t,Xw),v=e.useRef(null),b=(0,g.Z)(v,r),w=e.useContext(Uv),x=(0,u.Z)({},t,{wrapperVariant:w}),S=(e=>{const{wrapperVariant:t,disabled:r,selected:n,classes:o}=e,i={root:["root",t&&"mode"+(0,ne.Z)(t)],yearButton:["yearButton",r&&"disabled",n&&"selected"]};return(0,f.Z)(i,qw,o)})(x);return e.useEffect(()=>{n&&v.current.focus()},[n]),(0,D.jsx)(Qw,{className:mv(S.root,o),ownerState:x,children:(0,D.jsx)(Jw,(0,u.Z)({ref:b,disabled:a,type:"button",tabIndex:a?-1:p,onClick:e=>s(e,d),onKeyDown:e=>c(e,d),onFocus:e=>h(e,d),onBlur:e=>m(e,d),className:S.yearButton,ownerState:x},y,{children:i}))})}));function rx(e){return(0,X.ZP)("MuiYearPicker",e)}(0,L.Z)("MuiYearPicker",["root"]);const nx=(0,h.ZP)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),ox=e.forwardRef((function(t,r){const n=av(),o=bi(),i=nv(),a=function(e,t){const r=nv(),n=ov(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({disablePast:!1,disableFuture:!1},o,{minDate:uv(r,o.minDate,n.minDate),maxDate:uv(r,o.maxDate,n.maxDate)})}(t,"MuiYearPicker"),{autoFocus:s,className:l,date:c,disabled:d,disableFuture:p,disablePast:h,maxDate:y,minDate:v,onChange:b,readOnly:w,shouldDisableYear:x,disableHighlightToday:S,onYearFocus:_,hasFocus:k,onFocusedViewChange:E}=a,C=a,P=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},rx,t)})(C),O=e.useMemo(()=>null!=c?c:i.startOfYear(n),[n,i,c]),T=e.useMemo(()=>null!=c?i.getYear(c):S?null:i.getYear(n),[n,c,i,S]),R=e.useContext(Uv),A=e.useRef(null),[M,j]=e.useState(()=>T||i.getYear(n)),[I,N]=(0,Ig.Z)({name:"YearPicker",state:"hasFocus",controlled:k,default:s}),L=e.useCallback(e=>{N(e),E&&E(e)},[N,E]),Z=e.useCallback(e=>!(!h||!i.isBeforeYear(e,n))||(!(!p||!i.isAfterYear(e,n))||(!(!v||!i.isBeforeYear(e,v))||(!(!y||!i.isAfterYear(e,y))||!(!x||!x(e))))),[p,h,y,v,n,x,i]),F=(e,t,r="finish")=>{if(w)return;const n=i.setYear(O,t);b(n,r)},B=e.useCallback(e=>{Z(i.setYear(O,e))||(j(e),L(!0),null==_||_(e))},[Z,i,O,L,_]);e.useEffect(()=>{j(e=>null!==T&&e!==T?T:e)},[T]);const V="desktop"===R?4:3,z=e.useCallback((e,t)=>{switch(e.key){case"ArrowUp":B(t-V),e.preventDefault();break;case"ArrowDown":B(t+V),e.preventDefault();break;case"ArrowLeft":B(t+("ltr"===o.direction?-1:1)),e.preventDefault();break;case"ArrowRight":B(t+("ltr"===o.direction?1:-1)),e.preventDefault()}},[B,o.direction,V]),W=e.useCallback((e,t)=>{B(t)},[B]),U=e.useCallback((e,t)=>{M===t&&L(!1)},[M,L]),$=i.getYear(n),H=e.useRef(null),Y=(0,g.Z)(r,H);return e.useEffect(()=>{if(s||null===H.current)return;const e=H.current.querySelector('[tabindex="0"]');if(!e)return;const t=e.offsetHeight,r=e.offsetTop,n=H.current.clientHeight,o=H.current.scrollTop,i=r+t;t>n||r<o||(H.current.scrollTop=i-n/2-t/2)},[s]),(0,D.jsx)(nx,{ref:Y,className:mv(P.root,l),ownerState:C,children:i.getYearRange(v,y).map(e=>{const t=i.getYear(e),r=t===T;return(0,D.jsx)(tx,{selected:r,value:t,onClick:F,onKeyDown:z,autoFocus:I&&t===M,ref:r?A:void 0,disabled:d||Z(e),tabIndex:t===M?0:-1,onFocus:W,onBlur:U,"aria-current":$===t?"date":void 0,children:i.format(e,"year")},i.format(e,"year"))})})})),ix="undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),ax=e=>(0,X.ZP)("MuiCalendarPicker",e),sx=((0,L.Z)("MuiCalendarPicker",["root","viewTransitionContainer"]),["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"]);const lx=(0,h.ZP)(Wb,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),ux=(0,h.ZP)(fw,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),cx=e.forwardRef((function(t,r){const n=nv(),o=(0,ls.Z)(),i=function(e,t){const r=nv(),n=ov(),o=(0,m.Z)({props:e,name:t});return(0,u.Z)({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:ix,renderLoading:()=>(0,D.jsx)("span",{children:"..."})},o,{minDate:uv(r,o.minDate,n.minDate),maxDate:uv(r,o.maxDate,n.maxDate)})}(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:s,date:c,disableFuture:d,disablePast:p,defaultCalendarMonth:h,onChange:g,onYearChange:v,onMonthChange:b,reduceAnimations:w,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:_,view:k,views:E,openTo:C,className:P,disabled:O,readOnly:T,minDate:R,maxDate:A,disableHighlightToday:M,focusedView:j,onFocusedViewChange:I}=i,N=(0,l.Z)(i,sx),{openView:L,setOpenView:Z,openNext:F}=ab({view:k,views:E,openTo:C,onChange:g,onViewChange:s}),{calendarState:B,changeFocusedDay:V,changeMonth:z,handleChangeMonth:W,isDateDisabled:U,onMonthSwitchingAnimationEnd:$}=uw({date:c,defaultCalendarMonth:h,reduceAnimations:w,onMonthChange:b,minDate:R,maxDate:A,shouldDisableDate:x,disablePast:p,disableFuture:d}),H=e.useCallback((e,t)=>{const r=n.startOfMonth(e),o=n.endOfMonth(e),i=U(e)?sv({utils:n,date:e,minDate:n.isBefore(R,r)?r:R,maxDate:n.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==b||b(r)):(F(),z(r)),V(i,!0)},[V,d,p,U,A,R,g,b,z,F,n]),Y=e.useCallback((e,t)=>{const r=n.startOfYear(e),o=n.endOfYear(e),i=U(e)?sv({utils:n,date:e,minDate:n.isBefore(R,r)?r:R,maxDate:n.isAfter(A,o)?o:A,disablePast:p,disableFuture:d,isDateDisabled:U}):e;i?(g(i,t),null==v||v(i)):(F(),z(r)),V(i,!0)},[V,d,p,U,A,R,g,v,F,n,z]),G=e.useCallback((e,t)=>g(c&&e?n.mergeDateAndTime(e,c):e,t),[n,c,g]);e.useEffect(()=>{c&&z(c)},[c]);const q=i,K=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ax,t)})(q),X={disablePast:p,disableFuture:d,maxDate:A,minDate:R},Q=O&&c||R,J=O&&c||A,ee={disableHighlightToday:M,readOnly:T,disabled:O},te=o+"-grid-label",[re,ne]=(0,us.Z)({name:"DayPicker",state:"focusedView",controlled:j,default:a?L:null}),oe=null!==re,ie=(0,y.Z)(e=>t=>{I?I(e)(t):ne(t?e:t=>t===e?null:t)}),ae=e.useRef(L);return e.useEffect(()=>{ae.current!==L&&(ae.current=L,ie(L)(!0))},[L,ie]),(0,D.jsxs)(lx,{ref:r,className:mv(K.root,P),ownerState:q,children:[(0,D.jsx)(Gw,(0,u.Z)({},N,{views:E,openView:L,currentMonth:B.currentMonth,onViewChange:Z,onMonthChange:(e,t)=>W({newMonth:e,direction:t}),minDate:Q,maxDate:J,disabled:O,disablePast:p,disableFuture:d,reduceAnimations:w,labelId:te})),(0,D.jsx)(ux,{reduceAnimations:w,className:K.viewTransitionContainer,transKey:L,ownerState:q,children:(0,D.jsxs)("div",{children:["year"===L&&(0,D.jsx)(ox,(0,u.Z)({},N,X,ee,{autoFocus:a,date:c,onChange:Y,shouldDisableYear:_,hasFocus:oe,onFocusedViewChange:ie("year")})),"month"===L&&(0,D.jsx)(nw,(0,u.Z)({},X,ee,{autoFocus:a,hasFocus:oe,className:P,date:c,onChange:H,shouldDisableMonth:S,onFocusedViewChange:ie("month")})),"day"===L&&(0,D.jsx)(Bw,(0,u.Z)({},N,B,X,ee,{autoFocus:a,onMonthSwitchingAnimationEnd:$,onFocusedDayChange:V,reduceAnimations:w,selectedDays:[c],onSelectedDaysChange:G,shouldDisableDate:x,hasFocus:oe,onFocusedViewChange:ie("day"),gridLabelId:te}))]})})]})}));function dx(e){return(0,X.ZP)("MuiInputAdornment",e)}const fx=(0,L.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var px;const hx=["children","className","component","disablePointerEvents","disableTypography","position","variant"],mx=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t["position"+(0,ne.Z)(r.position)],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${fx.positionStart}&:not(.${fx.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),gx=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:d=!1,position:p,variant:h}=n,g=(0,l.Z)(n,hx),y=Dd()||{};let v=h;h&&y.variant,y&&!v&&(v=y.variant);const b=(0,u.Z)({},n,{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:s,position:p,variant:v}),w=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e,s={root:["root",r&&"disablePointerEvents",o&&"position"+(0,ne.Z)(o),a,n&&"hiddenLabel",i&&"size"+(0,ne.Z)(i)]};return(0,f.Z)(s,dx,t)})(b);return(0,D.jsx)(Id.Provider,{value:null,children:(0,D.jsx)(mx,(0,u.Z)({as:a,ownerState:b,className:(0,c.Z)(w.root,i),ref:r},g,{children:"string"!=typeof o||d?(0,D.jsxs)(e.Fragment,{children:["start"===p?px||(px=(0,D.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,D.jsx)(ag,{color:"text.secondary",children:o})}))})})),yx=t=>{const[,r]=(0,e.useReducer)(e=>e+1,0),n=(0,e.useRef)(null),{replace:o,append:i}=t,a=o?o(t.format(t.value)):t.format(t.value),s=(0,e.useRef)(!1);return(0,e.useLayoutEffect)(()=>{if(null==n.current)return;let[e,s,l,u,c]=n.current;n.current=null;const d=u&&c,f=e.slice(s.selectionStart).search(t.accept||/\d/g),p=-1!==f?f:0,h=e=>(e.match(t.accept||/\d/g)||[]).join(""),m=h(e.substr(0,s.selectionStart)),g=e=>{let t=0,r=0;for(let n=0;n!==m.length;++n){let o=e.indexOf(m[n],t)+1,i=h(e).indexOf(m[n],r)+1;i-r>1&&(o=t,i=r),r=Math.max(i,r),t=Math.max(t,o)}return t};if(!0===t.mask&&l&&!c){let t=g(e);const r=h(e.substr(t))[0];t=e.indexOf(r,t),e=`${e.substr(0,t)}${e.substr(t+1)}`}let y=t.format(e);null==i||s.selectionStart!==e.length||c||(l?y=i(y):""===h(y.slice(-1))&&(y=y.slice(0,-1)));const v=o?o(y):y;return a===v?r():t.onChange(v),()=>{let e=g(y);if(null!=t.mask&&(l||u&&!d))for(;y[e]&&""===h(y[e]);)e+=1;s.selectionStart=s.selectionEnd=e+(d?1+p:0)}}),(0,e.useEffect)(()=>{const e=e=>{"Delete"===e.code&&(s.current=!0)},t=e=>{"Delete"===e.code&&(s.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),{value:null!=n.current?n.current[0]:a,onChange:e=>{const o=e.target.value;n.current=[o,e.target,o.length>a.length,s.current,a===t.format(o)],r()}}},vx=(e,t,r)=>{const n=e.date(t);return null===t?"":e.isValid(n)?e.formatByString(n,r):""};function bx(e,t,r,n){if(!e)return!1;const o=n.formatByString(n.date("2019-01-01T09:00:00.000"),t).replace(r,"_"),i=n.formatByString(n.date("2019-11-21T22:30:00.000"),t).replace(r,"_"),a=i===o&&e===i;return!a&&n.lib,a}const wx=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],xx=e.forwardRef((function(t,r){const{className:n,components:o={},disableOpenPicker:i,getOpenDialogAriaText:a,InputAdornmentProps:s,InputProps:c,inputRef:d,openPicker:f,OpenPickerButtonProps:p,renderInput:h}=t,m=(0,l.Z)(t,wx),g=iv(),y=null!=a?a:g.openDatePickerDialogue,v=nv(),b=(({acceptRegex:t=/[\d]/gi,disabled:r,disableMaskedInput:n,ignoreInvalidInputs:o,inputFormat:i,inputProps:a,label:s,mask:l,onChange:c,rawValue:d,readOnly:f,rifmFormatter:p,TextFieldProps:h,validationError:m})=>{const g=nv(),y=g.getFormatHelperText(i),{shouldUseMaskedInput:v,maskToUse:b}=e.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const e=function(e,t,r,n){if(e)return e;const o=n.formatByString(n.date("2019-01-01T09:00:00.000"),t).replace(r,"_");return o===n.formatByString(n.date("2019-11-21T22:30:00.000"),t).replace(r,"_")?o:""}(l,i,t,g);return{shouldUseMaskedInput:bx(e,i,t,g),maskToUse:e}},[t,n,i,l,g]),w=e.useMemo(()=>v&&b?((e,t)=>r=>{let n=0;return r.split("").map((o,i)=>{if(t.lastIndex=0,n>e.length-1)return"";const a=e[n],s=e[n+1],l=t.test(o)?o:"",u="_"===a?l:a+l;n+=u.length;return i===r.length-1&&s&&"_"!==s?u?u+s:"":u}).join("")})(b,t):e=>e,[t,b,v]),x=null===d?null:g.date(d),[S,_]=e.useState(x),[k,E]=e.useState(vx(g,d,i)),C=e.useRef(),P=e.useRef(g.locale),O=e.useRef(i);e.useEffect(()=>{const e=d!==C.current,t=g.locale!==P.current,r=i!==O.current;if(C.current=d,P.current=g.locale,O.current=i,!e&&!t&&!r)return;const n=null===d?null:g.date(d),o=null===d||g.isValid(n);let a=null===S&&null===n;if(null!==S&&null!==n){const e=g.isEqual(S,n);if(e)a=!0;else{const t=Math.abs(g.getDiff(S,n));a=0===t?e:t<1e3}}if(!t&&!r&&(!o||a))return;const s=vx(g,d,i);_(n),E(s)},[g,d,i,S]);const T=e=>{const t=""===e||e===l?"":e;E(t);const r=null===t?null:g.parse(t,i);o&&!g.isValid(r)||(_(r),c(r,t||void 0))},R=yx({value:k,onChange:T,format:p||w}),A=v?R:{value:k,onChange:e=>{T(e.currentTarget.value)}};return(0,u.Z)({label:s,disabled:r,error:m,inputProps:(0,u.Z)({},A,{disabled:r,placeholder:y,readOnly:f,type:v?"tel":"text"},a)},h)})(m),w=(null==s?void 0:s.position)||"end",x=o.OpenPickerIcon||Tv;return h((0,u.Z)({ref:r,inputRef:d,className:n},b,{InputProps:(0,u.Z)({},c,{[w+"Adornment"]:i?void 0:(0,D.jsx)(gx,(0,u.Z)({position:w},s,{children:(0,D.jsx)(Bh,(0,u.Z)({edge:w,disabled:m.disabled||m.readOnly,"aria-label":y(m.rawValue,v)},p,{onClick:f,children:(0,D.jsx)(x,{})}))}))})}))}));function Sx(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function _x(e){return(0,X.ZP)("MuiCalendarOrClockPicker",e)}(0,L.Z)("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const kx=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],Ex=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Cx=(0,h.ZP)("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),Px={fullWidth:!0},Ox=e=>"year"===e||"month"===e||"day"===e,Tx=e=>"hours"===e||"minutes"===e||"seconds"===e;function Rx(t){var r,n;const o=(0,m.Z)({props:t,name:"MuiCalendarOrClockPicker"}),{autoFocus:i,parsedValue:a,DateInputProps:s,isMobileKeyboardViewOpen:c,onDateChange:d,onViewChange:p,openTo:h,orientation:g,showToolbar:y,toggleMobileKeyboardView:v,ToolbarComponent:b=(()=>null),toolbarFormat:w,toolbarPlaceholder:x,toolbarTitle:S,views:_,dateRangeIcon:k,timeIcon:E,hideTabs:C}=o,P=(0,l.Z)(o,kx),O=null==(r=P.components)?void 0:r.Tabs,T=((t,r)=>{const[n,o]=e.useState(Sx);if((0,Di.Z)(()=>{const e=()=>{o(Sx())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),Qv(t,["hours","minutes","seconds"]))return!1;return"landscape"===(r||n)})(_,g),R=e.useContext(Uv),A=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},_x,t)})(o),M=null!=y?y:"desktop"!==R,j=!C&&"undefined"!=typeof window&&window.innerHeight>667,I=e.useCallback((e,t)=>{d(e,R,t)},[d,R]),N=e.useCallback(e=>{c&&v(),p&&p(e)},[c,p,v]);const{openView:L,setOpenView:Z,handleChangeAndOpenNext:F}=ab({view:void 0,views:_,openTo:h,onChange:I,onViewChange:N}),{focusedView:B,setFocusedView:V}=(({autoFocus:t,openView:r})=>{const[n,o]=e.useState(t?r:null);return{focusedView:n,setFocusedView:e.useCallback(e=>t=>{o(t?e:t=>e===t?null:t)},[])}})({autoFocus:i,openView:L});return(0,D.jsxs)(Cx,{ownerState:{isLandscape:T},className:A.root,children:[M&&(0,D.jsx)(b,(0,u.Z)({},P,{views:_,isLandscape:T,parsedValue:a,onChange:I,setOpenView:Z,openView:L,toolbarTitle:S,toolbarFormat:w,toolbarPlaceholder:x,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:v})),j&&!!O&&(0,D.jsx)(O,(0,u.Z)({dateRangeIcon:k,timeIcon:E,view:L,onChange:Z},null==(n=P.componentsProps)?void 0:n.tabs)),(0,D.jsx)(Wb,{children:c?(0,D.jsx)(Ex,{className:A.mobileKeyboardInputView,children:(0,D.jsx)(xx,(0,u.Z)({},s,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:Px}))}):(0,D.jsxs)(e.Fragment,{children:[Ox(L)&&(0,D.jsx)(cx,(0,u.Z)({autoFocus:i,date:a,onViewChange:Z,onChange:F,view:L,views:_.filter(Ox),focusedView:B,onFocusedViewChange:V},P)),Tx(L)&&(0,D.jsx)(Yb,(0,u.Z)({},P,{autoFocus:i,date:a,view:L,views:_.filter(Tx),onChange:F,onViewChange:Z,showViewSwitcher:"desktop"===R}))]})})]})}const Ax=(t,r)=>{const{onAccept:n,onChange:o,value:i,closeOnSelect:a}=t,s=nv(),{isOpen:l,setIsOpen:c}=(({open:t,onOpen:r,onClose:n})=>{const o=e.useRef("boolean"==typeof t).current,[i,a]=e.useState(!1);e.useEffect(()=>{if(o){if("boolean"!=typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(t)}},[o,t]);return{isOpen:i,setIsOpen:e.useCallback(e=>{o||a(e),e&&r&&r(),!e&&n&&n()},[o,r,n])}})(t),d=e.useMemo(()=>r.parseInput(s,i),[r,s,i]),[f,p]=e.useState(d),[h,m]=e.useState(()=>({committed:d,draft:d,resetFallback:d})),g=e.useCallback(e=>{m(t=>{switch(e.action){case"setAll":case"acceptAndClose":return{draft:e.value,committed:e.value,resetFallback:e.value};case"setCommitted":return(0,u.Z)({},t,{draft:e.value,committed:e.value});case"setDraft":return(0,u.Z)({},t,{draft:e.value});default:return t}}),(e.forceOnChangeCall||!e.skipOnChangeCall&&!r.areValuesEqual(s,h.committed,e.value))&&o(e.value),"acceptAndClose"===e.action&&(c(!1),n&&!r.areValuesEqual(s,h.resetFallback,e.value)&&n(e.value))},[n,o,c,h,s,r]);e.useEffect(()=>{s.isValid(d)&&p(d)},[s,d]),e.useEffect(()=>{l&&g({action:"setAll",value:d,skipOnChangeCall:!0})},[l]),r.areValuesEqual(s,h.committed,d)||g({action:"setCommitted",value:d,skipOnChangeCall:!0});const y=e.useMemo(()=>({open:l,onClear:()=>{g({value:r.emptyValue,action:"acceptAndClose",forceOnChangeCall:!r.areValuesEqual(s,i,r.emptyValue)})},onAccept:()=>{g({value:h.draft,action:"acceptAndClose",forceOnChangeCall:!r.areValuesEqual(s,i,d)})},onDismiss:()=>{g({value:h.committed,action:"acceptAndClose"})},onCancel:()=>{g({value:h.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{g({value:r.getTodayValue(s),action:"acceptAndClose"})}}),[g,l,s,h,r,i,d]),[v,b]=e.useState(!1),w=e.useMemo(()=>({parsedValue:h.draft,isMobileKeyboardViewOpen:v,toggleMobileKeyboardView:()=>b(!v),onDateChange:(e,t,r="partial")=>{switch(r){case"shallow":return g({action:"setDraft",value:e,skipOnChangeCall:!0});case"partial":return g({action:"setDraft",value:e});case"finish":return g((null!=a?a:"desktop"===t)?{value:e,action:"acceptAndClose"}:{value:e,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[g,v,h.draft,a]),x=e.useCallback((e,t)=>{const n=r.valueReducer?r.valueReducer(s,f,e):e;o(n,t)},[o,r,f,s]),S={pickerProps:w,inputProps:e.useMemo(()=>({onChange:x,open:l,rawValue:i,openPicker:()=>c(!0)}),[x,l,i,c]),wrapperProps:y};return e.useDebugValue(S,()=>({MuiPickerState:{dateState:h,other:S}})),S},Mx=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],jx=e.forwardRef((function(e,t){const r=fv(e,"MuiDesktopDatePicker"),n=null!==lw(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Ax(r,pv),{PopperProps:s,PaperProps:c,ToolbarComponent:d=Wv,TransitionComponent:f,components:p,componentsProps:h}=r,m=(0,l.Z)(r,Mx),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:n});return(0,D.jsx)(ib,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:xx,PopperProps:s,PaperProps:c,TransitionComponent:f,components:p,componentsProps:h,children:(0,D.jsx)(Rx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))}));function Ix(e){return(0,X.ZP)("MuiDialogContent",e)}(0,L.Z)("MuiDialogContent",["root","dividers"]);const Dx=(0,L.Z)("MuiDialogTitle",["root"]),Nx=["className","dividers"],Lx=(0,h.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>(0,u.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:"1px solid "+(e.vars||e).palette.divider,borderBottom:"1px solid "+(e.vars||e).palette.divider}:{[`.${Dx.root} + &`]:{paddingTop:0}})),Zx=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,i=(0,l.Z)(r,Nx),a=(0,u.Z)({},r,{dividers:o}),s=(e=>{const{classes:t,dividers:r}=e,n={root:["root",r&&"dividers"]};return(0,f.Z)(n,Ix,t)})(a);return(0,D.jsx)(Lx,(0,u.Z)({className:(0,c.Z)(s.root,n),ownerState:a,ref:t},i))}));function Fx(e){return(0,X.ZP)("MuiDialog",e)}const Bx=(0,L.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Vx=e.createContext({}),zx=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Wx=(0,h.ZP)(Ep,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ux=(0,h.ZP)(Rp,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),$x=(0,h.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t["scroll"+(0,ne.Z)(r.scroll)]]}})(({ownerState:e})=>(0,u.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Hx=(0,h.ZP)(Dp,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t["scrollPaper"+(0,ne.Z)(r.scroll)],t["paperWidth"+(0,ne.Z)(String(r.maxWidth))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,u.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,["&."+Bx.paperScrollBody]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,["&."+Bx.paperScrollBody]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&."+Bx.paperScrollBody]:{margin:0,maxWidth:"100%"}})),Yx=e.forwardRef((function(t,r){const n=(0,m.Z)({props:t,name:"MuiDialog"}),o=bi(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:d,BackdropProps:p,children:h,className:g,disableEscapeKeyDown:y=!1,fullScreen:v=!1,fullWidth:b=!1,maxWidth:w="sm",onBackdropClick:x,onClose:S,open:_,PaperComponent:k=Dp,PaperProps:E={},scroll:C="paper",TransitionComponent:P=xp,transitionDuration:O=i,TransitionProps:T}=n,R=(0,l.Z)(n,zx),A=(0,u.Z)({},n,{disableEscapeKeyDown:y,fullScreen:v,fullWidth:b,maxWidth:w,scroll:C}),M=(e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container","scroll"+(0,ne.Z)(r)],paper:["paper","paperScroll"+(0,ne.Z)(r),"paperWidth"+(0,ne.Z)(String(n)),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,f.Z)(a,Fx,t)})(A),j=e.useRef(),I=(0,_d.Z)(s),N=e.useMemo(()=>({titleId:I}),[I]);return(0,D.jsx)(Ux,(0,u.Z)({className:(0,c.Z)(M.root,g),closeAfterTransition:!0,components:{Backdrop:Wx},componentsProps:{backdrop:(0,u.Z)({transitionDuration:O,as:d},p)},disableEscapeKeyDown:y,onClose:S,open:_,ref:r,onClick:e=>{j.current&&(j.current=null,x&&x(e),S&&S(e,"backdropClick"))},ownerState:A},R,{children:(0,D.jsx)(P,(0,u.Z)({appear:!0,in:_,timeout:O,role:"presentation"},T,{children:(0,D.jsx)($x,{className:(0,c.Z)(M.container),onMouseDown:e=>{j.current=e.target===e.currentTarget},ownerState:A,children:(0,D.jsx)(Hx,(0,u.Z)({as:k,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":I},E,{className:(0,c.Z)(M.paper,E.className),ownerState:A,children:(0,D.jsx)(Vx.Provider,{value:N,children:h})}))})}))}))})),Gx=(0,h.ZP)(Yx)({["& ."+Bx.container]:{outline:0},["& ."+Bx.paper]:{outline:0,minWidth:320}}),qx=(0,h.ZP)(Zx)({"&:first-of-type":{padding:0}}),Kx=e=>{var t;const{children:r,DialogProps:n={},onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:l,open:c,components:d,componentsProps:f}=e,p=null!=(t=null==d?void 0:d.ActionBar)?t:Kv;return(0,D.jsxs)(Gx,(0,u.Z)({open:c,onClose:a},n,{children:[(0,D.jsx)(qx,{children:r}),(0,D.jsx)(p,(0,u.Z)({onAccept:o,onClear:i,onCancel:s,onSetToday:l,actions:["cancel","accept"]},null==f?void 0:f.actionBar))]}))},Xx=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Qx(e){const{children:t,DateInputProps:r,DialogProps:n,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,PureDateInputComponent:f,components:p,componentsProps:h}=e,m=(0,l.Z)(e,Xx);return(0,D.jsxs)(Uv.Provider,{value:"mobile",children:[(0,D.jsx)(f,(0,u.Z)({components:p},m,r)),(0,D.jsx)(Kx,{DialogProps:n,onAccept:o,onClear:i,onDismiss:a,onCancel:s,onSetToday:c,open:d,components:p,componentsProps:h,children:t})]})}const Jx=e.forwardRef((function(t,r){const{disabled:n,getOpenDialogAriaText:o,inputFormat:i,InputProps:a,inputRef:s,label:l,openPicker:c,rawValue:d,renderInput:f,TextFieldProps:p={},validationError:h,className:m}=t,g=iv(),v=null!=o?o:g.openDatePickerDialogue,b=nv(),w=e.useMemo(()=>(0,u.Z)({},a,{readOnly:!0}),[a]),x=vx(b,d,i),S=(0,y.Z)(e=>{e.stopPropagation(),c()});return f((0,u.Z)({label:l,disabled:n,ref:r,inputRef:s,error:h,InputProps:w,className:m},!t.readOnly&&!t.disabled&&{onClick:S},{inputProps:(0,u.Z)({disabled:n,readOnly:!0,"aria-readonly":!0,"aria-label":v(d,b),value:x},!t.readOnly&&{onClick:S},{onKeyDown:Jv(c)})},p))})),eS=["ToolbarComponent","value","onChange","components","componentsProps"],tS=e.forwardRef((function(e,t){const r=fv(e,"MuiMobileDatePicker"),n=null!==lw(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Ax(r,pv),{ToolbarComponent:s=Wv,components:c,componentsProps:d}=r,f=(0,l.Z)(r,eS),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:n});return(0,D.jsx)(Qx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Jx,components:c,componentsProps:d,children:(0,D.jsx)(Rx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),rS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],nS=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:n="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=r,s=(0,l.Z)(r,rS);return Ky(n,{defaultMatches:!0})?(0,D.jsx)(jx,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,D.jsx)(tS,(0,u.Z)({ref:t,DialogProps:o},s))}));function oS(e,t){var r;const n=(0,m.Z)({props:e,name:t}),o=nv(),i=null!=(r=n.ampm)?r:o.is12HourCycleInCurrentLocale(),a=iv().openTimePickerDialogue;return(0,u.Z)({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?o.formats.fullTime12h:o.formats.fullTime24h},n,{components:(0,u.Z)({OpenPickerIcon:Rv},n.components)})}const iS={emptyValue:null,parseInput:lv,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>t&&e.isValid(r)?e.mergeDateAndTime(t,r):r};function aS(e){return(0,X.ZP)("PrivatePickersToolbarText",e)}const sS=(0,L.Z)("PrivatePickersToolbarText",["root","selected"]),lS=["className","selected","value"],uS=(0,h.ZP)(ag,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{["&."+sS.selected]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,["&."+sS.selected]:{color:e.palette.text.primary}})),cS=e.forwardRef((function(e,t){const{className:r,value:n}=e,o=(0,l.Z)(e,lS),i=(e=>{const{classes:t,selected:r}=e,n={root:["root",r&&"selected"]};return(0,f.Z)(n,aS,t)})(e);return(0,D.jsx)(uS,(0,u.Z)({ref:t,className:mv(r,i.root),component:"span"},o,{children:n}))})),dS=["align","className","selected","typographyClassName","value","variant"],fS=(0,h.ZP)(pe,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),pS=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiPickersToolbarButton"}),{align:n,className:o,selected:i,typographyClassName:a,value:s,variant:c}=r,d=(0,l.Z)(r,dS),p=(e=>{const{classes:t}=e;return(0,f.Z)({root:["root"]},Mv,t)})(r);return(0,D.jsx)(fS,(0,u.Z)({variant:"text",ref:t,className:mv(o,p.root)},d,{children:(0,D.jsx)(cS,{align:n,className:a,variant:c,value:s,selected:i})}))}));function hS(e){return(0,X.ZP)("MuiTimePickerToolbar",e)}const mS=(0,L.Z)("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),gS=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],yS=(0,h.ZP)(Zv,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({["& ."+jv.penIconButtonLandscape]:{marginTop:"auto"}}),vS=(0,h.ZP)(cS,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),bS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{["&."+mS.hourMinuteLabelLandscape]:t.hourMinuteLabelLandscape,["&."+mS.hourMinuteLabelReverse]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>(0,u.Z)({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"})),wS=(0,h.ZP)("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{["."+mS.ampmLabel]:t.ampmLabel},{["&."+mS.ampmLandscape]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>(0,u.Z)({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{["& ."+mS.ampmLabel]:{fontSize:17}}));function xS(e){const t=(0,m.Z)({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:n,parsedValue:o,isLandscape:i,isMobileKeyboardViewOpen:a,onChange:s,openView:c,setOpenView:d,toggleMobileKeyboardView:p,toolbarTitle:h,views:g,disabled:y,readOnly:v}=t,b=(0,l.Z)(t,gS),w=nv(),x=iv(),S=null!=h?h:x.timePickerDefaultToolbarTitle,_=bi(),k=Boolean(r&&!n),{meridiemMode:E,handleMeridiemChange:C}=Vb(o,r,s),P=t,O=(e=>{const{theme:t,isLandscape:r,classes:n}=e,o={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return(0,f.Z)(o,hS,n)})((0,u.Z)({},P,{theme:_})),T=(0,D.jsx)(vS,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:O.separator});return(0,D.jsxs)(yS,(0,u.Z)({viewType:"clock",landscapeDirection:"row",toolbarTitle:S,isLandscape:i,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p,ownerState:P,className:O.root},b,{children:[(0,D.jsxs)(bS,{className:O.hourMinuteLabel,ownerState:P,children:[Qv(g,"hours")&&(0,D.jsx)(pS,{tabIndex:-1,variant:"h3",onClick:()=>d("hours"),selected:"hours"===c,value:o?(R=o,r?w.format(R,"hours12h"):w.format(R,"hours24h")):"--"}),Qv(g,["hours","minutes"])&&T,Qv(g,"minutes")&&(0,D.jsx)(pS,{tabIndex:-1,variant:"h3",onClick:()=>d("minutes"),selected:"minutes"===c,value:o?w.format(o,"minutes"):"--"}),Qv(g,["minutes","seconds"])&&T,Qv(g,"seconds")&&(0,D.jsx)(pS,{variant:"h3",onClick:()=>d("seconds"),selected:"seconds"===c,value:o?w.format(o,"seconds"):"--"})]}),k&&(0,D.jsxs)(wS,{className:O.ampmSelection,ownerState:P,children:[(0,D.jsx)(pS,{disableRipple:!0,variant:"subtitle2",selected:"am"===E,typographyClassName:O.ampmLabel,value:w.getMeridiemText("am"),onClick:v?void 0:()=>C("am"),disabled:y}),(0,D.jsx)(pS,{disableRipple:!0,variant:"subtitle2",selected:"pm"===E,typographyClassName:O.ampmLabel,value:w.getMeridiemText("pm"),onClick:v?void 0:()=>C("pm"),disabled:y})]})]}));var R}const SS=({adapter:e,value:t,props:r})=>{const{minTime:n,maxTime:o,minutesStep:i,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:s}=r,l=e.utils.date(t),u=Bb(s,e.utils);if(null===t)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case Boolean(n&&u(n,l)):return"minTime";case Boolean(o&&u(l,o)):return"maxTime";case Boolean(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case Boolean(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case Boolean(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case Boolean(i&&e.utils.getMinutes(l)%i!=0):return"minutesStep";default:return null}},_S=(e,t)=>e===t,kS=e=>ow(e,SS,_S),ES=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],CS=e.forwardRef((function(e,t){const r=oS(e,"MuiDesktopTimePicker"),n=null!==kS(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Ax(r,iS),{PaperProps:s,PopperProps:c,ToolbarComponent:d=xS,TransitionComponent:f,components:p,componentsProps:h}=r,m=(0,l.Z)(r,ES),g=(0,u.Z)({},i,m,{components:p,componentsProps:h,ref:t,validationError:n});return(0,D.jsx)(ib,(0,u.Z)({},a,{DateInputProps:g,KeyboardDateInputComponent:xx,PopperProps:c,PaperProps:s,TransitionComponent:f,components:p,componentsProps:h,children:(0,D.jsx)(Rx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:d,DateInputProps:g,components:p,componentsProps:h},m))}))})),PS=["ToolbarComponent","value","onChange","components","componentsProps"],OS=e.forwardRef((function(e,t){const r=oS(e,"MuiMobileTimePicker"),n=null!==kS(r),{pickerProps:o,inputProps:i,wrapperProps:a}=Ax(r,iS),{ToolbarComponent:s=xS,components:c,componentsProps:d}=r,f=(0,l.Z)(r,PS),p=(0,u.Z)({},i,f,{components:c,componentsProps:d,ref:t,validationError:n});return(0,D.jsx)(Qx,(0,u.Z)({},f,a,{DateInputProps:p,PureDateInputComponent:Jx,components:c,componentsProps:d,children:(0,D.jsx)(Rx,(0,u.Z)({},o,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:p,components:c,componentsProps:d},f))}))})),TS=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],RS=e.forwardRef((function(e,t){const r=(0,m.Z)({props:e,name:"MuiTimePicker"}),{desktopModeMediaQuery:n="@media (pointer: fine)",DialogProps:o,PopperProps:i,TransitionComponent:a}=r,s=(0,l.Z)(r,TS);return Ky(n,{defaultMatches:!0})?(0,D.jsx)(CS,(0,u.Z)({ref:t,PopperProps:i,TransitionComponent:a},s)):(0,D.jsx)(OS,(0,u.Z)({ref:t,DialogProps:o},s))})),AS={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};class MS{constructor({locale:e,formats:t,instance:r}={}){this.lib="moment",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.getFormatHelperText=e=>{var t,r;return null!==(r=null===(t=e.match(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g))||void 0===t?void 0:t.map(e=>{const t=e[0];return"L"===t||";"===t?this.moment.localeData(this.getCurrentLocaleCode()).longDateFormat(e):e}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase())&&void 0!==r?r:e},this.getCurrentLocaleCode=()=>this.locale||this.moment.locale(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.date=e=>{if(null===e)return null;const t=this.moment(e);return this.locale&&t.locale(this.locale),t},this.toJsDate=e=>e.toDate(),this.isValid=e=>this.moment(e).isValid(),this.isNull=e=>null===e,this.getDiff=(e,t,r)=>this.moment(t).isValid()?e.diff(t,r):0,this.isAfter=(e,t)=>e.isAfter(t),this.isBefore=(e,t)=>e.isBefore(t),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isBeforeMonth=(e,t)=>e.isBefore(t,"month"),this.isAfterMonth=(e,t)=>e.isAfter(t,"month"),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfDay=e=>e.clone().endOf("day"),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const r=e.clone();return this.locale&&r.locale(this.locale),r.format(t)},this.formatNumber=e=>e,this.getHours=e=>e.get("hours"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.setHours=(e,t)=>e.clone().hours(t),this.getMinutes=e=>e.get("minutes"),this.setMinutes=(e,t)=>e.clone().minutes(t),this.getSeconds=e=>e.get("seconds"),this.setSeconds=(e,t)=>e.clone().seconds(t),this.getMonth=e=>e.get("month"),this.getDaysInMonth=e=>e.daysInMonth(),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.setMonth=(e,t)=>e.clone().month(t),this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?this.moment.localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.startOfYear=e=>e.clone().startOf("year"),this.endOfYear=e=>e.clone().endOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.endOfMonth=e=>e.clone().endOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.endOfWeek=e=>e.clone().endOf("week"),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[e.clone().startOf("year")];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.getYear=e=>e.get("year"),this.setYear=(e,t)=>e.clone().set("year",t),this.getDate=e=>e.get("date"),this.setDate=(e,t)=>e.clone().set("date",t),this.mergeDateAndTime=(e,t)=>e.hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>this.moment.weekdaysShort(!0),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.getWeekArray=e=>{const t=e.clone().startOf("month").startOf("week"),r=e.clone().endOf("month").endOf("week");let n=0,o=t;const i=[];for(;o.isBefore(r);){const e=Math.floor(n/7);i[e]=i[e]||[],i[e].push(o),o=o.clone().add(1,"day"),n+=1}return i},this.getYearRange=(e,t)=>{const r=this.moment(e).startOf("year"),n=this.moment(t).endOf("year"),o=[];let i=r;for(;i.isBefore(n);)o.push(i),i=i.clone().add(1,"year");return o},this.isWithinRange=(e,[t,r])=>e.isBetween(t,r,null,"[]"),this.moment=r||qo(),this.locale=e,this.formats=Object.assign({},AS,t)}}function jS(){return(jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function IS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return DS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DS(e,t)}(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 DS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var NS=function(t,r,n){try{var o=bd(r,n.view.getLocale());t.appendChild(e.createElement("div",{key:r.getHash()},o))}catch(e){console.warn("Could not present date, expected ISO8601 format in the form 2001-01-01 \n (potentially with time given after a 'T' character as well) but found '".concat(r.getValue(),"' instead."))}},LS=pi.presenterRegistry;LS.itemtype("text").datatype("xsd:dateTime").register(NS),LS.itemtype("text").datatype("xsd:date").register(NS),LS.itemtype("text").datatype("xsd:time").register(NS),LS.itemtype("text").datatype("xsd:gYear").register(NS),LS.itemtype("text").datatype("xsd:gYearMonth").register(NS),LS.itemtype("text").datatype("xsd:gMonthDay").register(NS),LS.itemtype("text").datatype("dcterms:W3CDTF").register(NS);var ZS={format:{Year:"YYYY",DateTime:"YYYY-MM-DD",Date:"YYYY-MM-DD",YearMonth:"YYYY-MM",MonthDay:"MM-DD",Time:"YYYY-MM-DD"},mask:{Year:"____",DateTime:"____-__-__",Date:"____-__-__",YearMonth:"____-__",MonthDay:"__-__",Time:"____-__-__"},views:{Year:["year"],DateTime:["day"],Date:["day"],YearMonth:["year","month"],MonthDay:["month","day"],Time:["day"]},labelKey:{Year:"date_year",DateTime:"date_date",Date:"date_date",YearMonth:"date_year_and_month",MonthDay:"date_month_and_day",Time:"date_date"},ariaLabelKey:{Year:"date_openYearPicker",DateTime:"date_openDatePicker",Date:"date_openDatePicker",YearMonth:"date_openDatePicker",MonthDay:"date_openDatePicker",Time:"date_openDatePicker"}},FS=function(t,r,n){var o=n.view.messages,i=function(){var i=r.getGist(),a=(0,e.useMemo)((function(){return vd(r.getItem())}),[]),s=IS((0,e.useState)(""===i?null:hd(i)),2),l=s[0],u=s[1],c=IS((0,e.useState)(function(e,t){var r=md(e.getDatatype());return t[r]||(t[r]="error"),r||gd(e.getItem())}(r,a)),2),d=c[0],f=c[1],p=1===Object.keys(a).length,h=IS((0,e.useState)(r.getMatchingCode()===Rs.WRONG_DATATYPE),2),m=h[0],g=h[1];(0,e.useEffect)((function(){t.toggleClass("mismatchReport",m)}),[m]),(0,e.useEffect)((function(){n.clear=function(){u(null),f(gd(r.getItem())),g(!1)}}),[]);var y=function(e){null==e?(r.setValue(""),u(null)):e.isValid()&&(r.setValue(yd(e.toDate(),d)),u(e.toDate()))},v={"aria-labelledby":n.view.getLabelIndex(r),variant:pi.materialVariant},b=rm(r,n),w=a.Date||a.DateTime||a.Year||a.YearMonth||a.MonthDay,x=!b&&("DateTime"===d||"Date"===d||"Year"===d||"YearMonth"===d||"MonthDay"===d);return e.createElement(e.Fragment,null,e.createElement(tv,{dateAdapter:MS},e.createElement("span",{className:"rdformsDatePicker"},w&&e.createElement(nS,jS({renderInput:function(t){return e.createElement(Ih,jS({},t,v))},leftArrowButtonProps:{"aria-label":o.date_previousMonth},rightArrowButtonProps:{"aria-label":o.date_nextMonth},KeyboardButtonProps:{"aria-label":o[ZS.ariaLabelKey[d]]},label:o[ZS.labelKey[d]]},x?{}:{disabled:!0},{value:x?l:null,minDate:qo()(new Date("0000-01-01")),inputFormat:ZS.format[d],views:ZS.views[d],onChange:y,autoOk:!0,mask:ZS.mask[d]})),(a.DateTime||a.Time)&&e.createElement(RS,jS({renderInput:function(t){return e.createElement(Ih,jS({},t,v))},label:o.date_time},b||"DateTime"!==d&&"Time"!==d?{disabled:!0}:{},{KeyboardButtonProps:{"aria-label":o.date_openTimePicker},value:"DateTime"===d||"Time"===d?l:null,onChange:y,ampm:!1,autoOk:!0})),!p&&e.createElement(Zf,{variant:pi.materialVariant},e.createElement(Th,{value:d,inputProps:v,error:"error"===a[d],onChange:function(e){r.setDatatype(function(e){switch(e){case"DateTime":return"http://www.w3.org/2001/XMLSchema#dateTime";case"Date":return"http://www.w3.org/2001/XMLSchema#date";case"Time":return"http://www.w3.org/2001/XMLSchema#time";case"Year":return"http://www.w3.org/2001/XMLSchema#gYear";case"YearMonth":return"http://www.w3.org/2001/XMLSchema#gYearMonth";case"MonthDay":return"http://www.w3.org/2001/XMLSchema#gMonthDay";default:return""}}(e.target.value)),r.setValue(yd(l,e.target.value)),f(e.target.value),g("error"===a[e.target.value])},disabled:!!b},a.Year&&e.createElement(Gh,{disabled:"error"===a.Year,className:"rdformsDatatypeOption",value:"Year"},o.date_year),a.Date&&e.createElement(Gh,{disabled:"error"===a.Date,className:"rdformsDatatypeOption",value:"Date"},o.date_date),a.DateTime&&e.createElement(Gh,{disabled:"error"===a.DateTime,className:"rdformsDatatypeOption",value:"DateTime"},o.date_date_and_time),a.YearMonth&&e.createElement(Gh,{disabled:"error"===a.YearMonth,className:"rdformsDatatypeOption",value:"YearMonth"},o.date_year_and_month),a.MonthDay&&e.createElement(Gh,{disabled:"error"===a.MonthDay,className:"rdformsDatatypeOption",value:"MonthDay"},o.date_month_and_day),a.Time&&e.createElement(Gh,{disabled:"error"===a.Time,className:"rdformsDatatypeOption",value:"Time"},o.date_time))))),m&&e.createElement("div",{key:"warning",className:"rdformsWarning"},n.view.messages.wrongDatatypeField))};t.appendChild(e.createElement(i,{key:r.getHash()}))},BS=pi.editorRegistry;BS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(FS),BS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(FS),BS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(FS),BS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gMonthDay").register(FS),BS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYearMonth").register(FS),BS.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#time").register(FS),BS.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(FS);o(99474);function VS(e){return(VS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function WS(e,t,r){var n;return n=function(e,t){if("object"!=VS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=VS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==VS(n)?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function US(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $S(e,t)}(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 $S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var HS=["years","months","days","hours","minutes"];pi.editorRegistry.itemtype("text").datatype("xsd:duration").register((function(t,r,n){var o=n.view.messages,i=function(){var t=US((0,e.useState)((function(){var e=r.getValue();return""===e?{}:pd(e)})),2),i=t[0],a=t[1];(0,e.useEffect)((function(){n.clear=function(){a({})}}),[]);var s=(0,e.useMemo)((function(){return HS.reduce((function(e,t){return e[t]=function(e){var n=e.target.value||"";a((function(e){var o=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zS(Object(r),!0).forEach((function(t){WS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return""!==n?o[t]=Math.abs(parseInt(n,10)):delete o[t],setTimeout((function(){r.setValue(function(e){if(e.years||e.months||e.days||e.hours||e.minutes){var t="P".concat(e.years?"".concat(e.years,"Y"):"").concat(e.months?"".concat(e.months,"M"):"").concat(e.days?"".concat(e.days,"D"):"");return(e.hours||e.minutes)&&(t="".concat(t,"T").concat(e.hours?"".concat(e.hours,"H"):"").concat(e.minutes?"".concat(e.minutes,"M"):"")),t}return null}(o))}),1),o}))},e}),{})})),l=n.view.getLabelIndex(r),u=rm(r,n);return e.createElement(e.Fragment,null,HS.map((function(t){return e.createElement(Ih,{key:t,className:"rdformsDurationInput",value:"".concat(i[t]||""),disabled:!!u,label:o["duration_".concat(t)],type:"number",onChange:s[t],inputProps:{min:0,"aria-label":o["duration_".concat(t)],"aria-describedby":l},variant:pi.materialVariant})})))};t.appendChild(e.createElement(i,{key:r.getHash()}))}));var YS=pi.presenterRegistry,GS=pi.editorRegistry,qS=function(e){return function t(r,n,o){var i=n.getValue();o.inEditor&&(null!=i&&""!==i||n.setGist(Qo.generateUUID(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}};YS.itemtype("text").style("autoUUID").register(qS(YS)),GS.itemtype("text").style("autoUUID").register(qS(GS));var KS=function(e){return function t(r,n,o){var i=n.getValue(),a=n.getItem();o.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&n.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&n.setValue((new Date).toISOString(),!0)),e.getComponentBefore(n.getItem(),t)(r,n,o)}},XS=KS(YS);YS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(XS),YS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(XS);var QS=KS(GS);GS.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(QS),GS.itemtype("text").datatype("xsd:date").style("autoInitDate").register(QS),GS.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(QS),GS.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(QS);var JS=function(e){return function t(r,n,o){if(o.inEditor){var i=n.getValue(),a=n.getItem().getDeps();if((null==i||""===i)&&a){var s=Yu.findBindingRelativeToParentBinding(n.getParent(),a),l=function(e){var t=Yu.matchPathBelowBinding(s,a),r=n.getGist(),o=t?t.getValue():"";r!=o&&n.setGist(o,e)};l(!0),s.addListener((function(e){e!=n&&l()}))}}e.getComponentBefore(n.getItem(),t)(r,n,o)}};function e_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return t_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t_(e,t)}(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 t_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}YS.itemtype("text").style("autoValue").register(JS(YS)),GS.itemtype("text").style("autoValue").register(JS(GS));var r_=function(t){var r=t.element,n=(0,e.useRef)();return(0,e.useEffect)((function(){n.current.appendChild(r)}),[r]),e.createElement("div",{ref:n})},n_=function(e,t,r){var n=!1;return t.split(" ").forEach((function(t){r?e.has(t)||(e.add(t),n=!0):e.has(t)&&(e.delete(t),n=!0)})),n},o_=function(e,t){return t.has(e.substr(1))},i_=function(e,t){return t.find((function(t){return t.component&&void 0!==t.domQuery(e)}))},a_=function(e,t,r){return r?e[t]=r:delete e[t],e},s_=0,l_=function(t,r,n){var o,i=new Set,a=[],s={},l={id:"struct_".concat(s_+=1),parent:r,toggleClass:function(e,t){return n_(i,e,t)},domQuery:function(e){return o_(e,i)?l:i_(e,a)},appendChild:function(e){a.push(e)},appendAfter:function(e,t){a.splice(a.indexOf(t)+1,0,e)},text:function(e){o=e},attr:function(e,t){return a_(s,e,t)},destroy:function(){return!(l.parent instanceof Node)&&l.parent.removeChild(l)},clear:function(){a=[]},component:function(){var r=e_((0,e.useState)(i),2),u=r[0],c=r[1],d=e_((0,e.useState)(a),2),f=d[0],p=d[1],h=e_((0,e.useState)(o),2),m=h[0],g=h[1],y=e_((0,e.useState)(s),2),v=(y[0],y[1]);return l.domQuery=function(e){return o_(e,u)?l:i_(e,f)},l.toggleClass=function(e,t){c((function(r){var n=new Set(r);return n_(n,e,t)?n:r}))},l.appendChild=function(e){p((function(t){return t.concat([e])}))},l.appendAfter=function(e,t){p((function(r){var n=r.slice(0);return n.splice(t&&n.indexOf(t)+1||0,0,e),n}))},l.text=function(e){return g(e)},l.removeChild=function(e){p((function(t){var r=t.slice(0);return r.splice(r.indexOf(e),1),r}))},l.clear=function(){p([])},l.attr=function(e,t){v((function(r){return a_(Object.assign({},r),e,t)}))},e.createElement(t,{id:n,className:Array.from(u).join(" ")},f.map((function(t,r){return function(t,r){return t instanceof Node?e.createElement(r_,{key:r,element:t}):t.component?e.createElement(t.component,{key:t.id}):t}(t,r)})),m)}};return l};pi.domQuery=function(e,t){return t.domQuery(e)},pi.domCreate=function(e,t,r){var n=l_(e,t,r);return t.appendChild(n),n},pi.domCreateAfter=function(e,t,r){if(t.parent){var n=l_(e,t.parent,r);return t.parent.appendAfter(n,t),n}},pi.domSetAttr=function(e,t,r){return e.attr(t,r)},pi.domText=function(e,t){return e.text(t)},pi.domClassToggle=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.toggleClass(t,r)},pi.createDomNode=function(e){var t;return null!=e&&e.component?e:(t=e instanceof Node?e:"string"==typeof e?document.getElementById(e):l_("div"),l_("div",t))},pi.destroyDomNode=function(e){e.component&&e.destroy()},pi.prePresenterViewRenderer=function(){},pi.materialVariant="filled",pi.preEditorRenderer=function(t,r,n){if("group"!==r.getItem().getType()&&!0!==n.noCardinalityButtons){n.controlDiv=l_("div",t),pi.domClassToggle(n.controlDiv,"rdformsFieldControl");var o=pi.addRemoveButton(t,r,n);n.controlDiv.appendChild(e.createElement(o,{key:"".concat(r.getHash(),"_removeButton")}))}},pi.postEditorRenderer=function(e,t,r){r.controlDiv&&e.appendChild(r.controlDiv)};var u_={error:n.Z,warning:r.Z,deprecated:a.Z},c_=0;pi.renderValidationMessage=function(t,r,n){var o=u_[r];c_+=1,t.appendChild(e.createElement("div",{className:"rdformsValidationMessageWrapper",key:"rdforms_valcount_".concat(c_)},e.createElement(o,null),e.createElement("span",{className:"rdformsValidationMessage"},n)))},pi.multiValueSupport=!0,pi.addTruncateControl=function(t,r){var n=function(){var n=e_((0,e.useState)(!0),2),o=n[0],i=n[1],a=r.view.messages;return e.createElement(e.Fragment,null,o?e.createElement(pe,{className:"rdformsShowMore",size:"small",onClick:function(){pi.domClassToggle(t,"rdformsTruncated",!1),i(!1)}},a.showMore):e.createElement(pe,{className:"rdformsShowLess",size:"small",onClick:function(){pi.domClassToggle(t,"rdformsTruncated",!0),i(!0)}},a.showLess))};t.appendChild(e.createElement(n,null))};var d_=o(93379),f_=o.n(d_),p_=o(7795),h_=o.n(p_),m_=o(90569),g_=o.n(m_),y_=o(3565),v_=o.n(y_),b_=o(19216),w_=o.n(b_),x_=o(44589),S_=o.n(x_),__=o(57135),k_={};k_.styleTagTransform=S_(),k_.setAttributes=v_(),k_.insert=g_().bind(null,"head"),k_.domAPI=h_(),k_.insertStyleElement=w_();f_()(__.Z,k_);__.Z&&__.Z.locals&&__.Z.locals;var E_="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==o.g&&o.g||{},C_="URLSearchParams"in E_,P_="Symbol"in E_&&"iterator"in Symbol,O_="FileReader"in E_&&"Blob"in E_&&function(){try{return new Blob,!0}catch(e){return!1}}(),T_="FormData"in E_,R_="ArrayBuffer"in E_;if(R_)var A_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],M_=ArrayBuffer.isView||function(e){return e&&A_.indexOf(Object.prototype.toString.call(e))>-1};function j_(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function I_(e){return"string"!=typeof e&&(e=String(e)),e}function D_(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return P_&&(t[Symbol.iterator]=function(){return t}),t}function N_(e){this.map={},e instanceof N_?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function L_(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function Z_(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function F_(e){var t=new FileReader,r=Z_(t);return t.readAsArrayBuffer(e),r}function B_(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function V_(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:O_&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:T_&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:C_&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():R_&&O_&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=B_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):R_&&(ArrayBuffer.prototype.isPrototypeOf(e)||M_(e))?this._bodyArrayBuffer=B_(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):C_&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},O_&&(this.blob=function(){var e=L_(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=L_(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(O_)return this.blob().then(F_);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=L_(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=Z_(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8";return t.readAsText(e,o),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},T_&&(this.formData=function(){return this.text().then(U_)}),this.json=function(){return this.text().then(JSON.parse)},this}N_.prototype.append=function(e,t){e=j_(e),t=I_(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},N_.prototype.delete=function(e){delete this.map[j_(e)]},N_.prototype.get=function(e){return e=j_(e),this.has(e)?this.map[e]:null},N_.prototype.has=function(e){return this.map.hasOwnProperty(j_(e))},N_.prototype.set=function(e,t){this.map[j_(e)]=I_(t)},N_.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},N_.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),D_(e)},N_.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),D_(e)},N_.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),D_(e)},P_&&(N_.prototype[Symbol.iterator]=N_.prototype.entries);var z_=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function W_(e,t){if(!(this instanceof W_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof W_){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new N_(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new N_(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),z_.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in E_)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function U_(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function $_(e,t){if(!(this instanceof $_))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new N_(t.headers),this.url=t.url||"",this._initBody(e)}W_.prototype.clone=function(){return new W_(this,{body:this._bodyInit})},V_.call(W_.prototype),V_.call($_.prototype),$_.prototype.clone=function(){return new $_(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N_(this.headers),url:this.url})},$_.error=function(){var e=new $_(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var H_=[301,302,303,307,308];$_.redirect=function(e,t){if(-1===H_.indexOf(t))throw new RangeError("Invalid status code");return new $_(null,{status:t,headers:{location:e}})};var Y_=E_.DOMException;try{new Y_}catch(e){(Y_=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),Y_.prototype.constructor=Y_}function G_(e,t){return new Promise((function(r,n){var o=new W_(e,t);if(o.signal&&o.signal.aborted)return n(new Y_("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new N_,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){r(new $_(a,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new Y_("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&E_.location.href?E_.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(O_?i.responseType="blob":R_&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof N_||E_.Headers&&t.headers instanceof E_.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(j_(e)),i.setRequestHeader(e,I_(t.headers[e]))})),o.headers.forEach((function(e,t){-1===s.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}G_.polyfill=!0,E_.fetch||(E_.fetch=G_,E_.Headers=N_,E_.Request=W_,E_.Response=$_);const q_=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const K_=function(e){return this.__data__.has(e)};function X_(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new qr;++t<r;)this.add(e[t])}X_.prototype.add=X_.prototype.push=q_,X_.prototype.has=K_;const Q_=X_;const J_=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};const ek=function(e,t){return e.has(t)};const tk=function(e,t,r,n,o,i){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new Q_:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var g=a?n(m,h,d,t,e,i):n(h,m,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!J_(t,(function(e,t){if(!ek(p,t)&&(h===e||o(h,e,r,n,i)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,r,n,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const rk=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};const nk=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r};var ok=nr?nr.prototype:void 0,ik=ok?ok.valueOf:void 0;const ak=function(e,t,r,n,o,i,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Co(e),new Co(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Vt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=rk;case"[object Set]":var l=1&n;if(s||(s=nk),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var c=tk(s(e),s(t),n,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ik)return ik.call(e)==ik.call(t)}return!1};var sk=Object.prototype.hasOwnProperty;const lk=function(e,t,r,n,o,i){var a=1&r,s=co(e),l=s.length;if(l!=co(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:sk.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],g=t[c];if(n)var y=a?n(g,m,c,t,e,i):n(m,g,c,e,t,i);if(!(void 0===y?m===g||o(m,g,r,n,i):y)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p};var uk=Object.prototype.hasOwnProperty;const ck=function(e,t,r,n,o,i){var a=pn(e),s=pn(t),l=a?"[object Array]":_o(e),u=s?"[object Array]":_o(t),c="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(u="[object Arguments]"==u?"[object Object]":u),f=l==u;if(f&&vn(e)){if(!vn(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new Qr),a||Rn(e)?tk(e,t,r,n,o,i):ak(e,t,l,r,n,o,i);if(!(1&r)){var p=c&&uk.call(e,"__wrapped__"),h=d&&uk.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return i||(i=new Qr),o(m,g,r,n,i)}}return!!f&&(i||(i=new Qr),lk(e,t,r,n,o,i))};const dk=function e(t,r,n,o,i){return t===r||(null==t||null==r||!sn(t)&&!sn(r)?t!=t&&r!=r:ck(t,r,n,o,e,i))};const fk=function(e,t){return dk(e,t)};function pk(e){return(pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mk(n.key),n)}}function mk(e){var t=function(e,t){if("object"!=pk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pk(t)?t:String(t)}var gk=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._registry={}}var t,r,n;return t=e,(r=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var r=this._findChoices(e);if(null==r);else{if(null==t)return r;t(r)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var r=0;r<t.length;r++){var n=t[r];if(fk(n.constraints,e.getConstraints())&&e.getParentProperty()===n.parentProperty&&e.getHierarchyProperty()===n.hierarchyProperty&&e.isParentPropertyInverted()===(n.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(n.isHierarchyPropertyInverted||!1))return n.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var r=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(r+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var n=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(n+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&hk(t.prototype,r),n&&hk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function yk(e){return(yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bk(n.key),n)}}function bk(e){var t=function(e,t){if("object"!=yk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==yk(t)?t:String(t)}var wk=0,xk=function(){function e(t){var r=t.itemStore,n=t.source,o=t.path,i=t.readOnly,a=void 0!==i&&i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._itemStore=r,this._source=n,this._path=o,this._readOnly=a,this._items=[],wk+=1,this._id="_bundle_".concat(wk),this._root=null,this._modified=!1}var t,r,n;return t=e,(r=[{key:"getInternalId",value:function(){return this._id}},{key:"getSource",value:function(){return this._source}},{key:"setRoot",value:function(e){return this._source.root=e,e}},{key:"getRoot",value:function(){if(this._source.root)return this._itemStore.getItem(this._source.root)}},{key:"getItemStore",value:function(){return this._itemStore}},{key:"getPath",value:function(){return this._path}},{key:"getItems",value:function(){return this._items}},{key:"addItem",value:function(e){this._items.push(e)}},{key:"removeItem",value:function(e){this._items.splice(this._items.indexOf(e),1)}},{key:"isModified",value:function(){return this._modified}},{key:"setModified",value:function(e){this._modified=e}},{key:"isReadOnly",value:function(){return this._readOnly||null==this._path}}])&&vk(t.prototype,r),n&&vk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Sk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_k(n.key),n)}}function _k(e){var t=function(e,t){if("object"!=kk(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=kk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kk(t)?t:String(t)}function kk(e){return(kk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ek=function e(t,r){if(!t||!r)return void 0===r?t:r;if(Array.isArray(t)&&Array.isArray(r))return[].concat(origSource[key],extSource[key]);if("object"===kk(t)&&"object"===kk(r)){var n={};return Object.keys(t).concat(Object.keys(r)).forEach((function(o){n[o]=e(t[o],r[o])})),n}return r},Ck=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.automaticSortAllowed=!0,this.handleErrorAs="throw",this._bundles=[],this._registry={},this._registryByProperty={},this._ontologyStore=t||new gk}var t,r,n;return t=e,(r=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var r=e.getSource(!0),n=r.content||r.items||[];if(t)return this._createItems(n,e._forceChildrenClones,e.getBundle());var o=this.getItem(r.extends);if(o){var i=e.getChildren(!0);return e.getEnhanced("items")||0===i.length?o.getChildren().concat(i):i}return e.getChildren(!0)}},{key:"getItem",value:function(e){if(null!=e)return this._registry[e]}},{key:"getItems",value:function(){var e=this;return Object.keys(this._registry).map((function(t){return e._registry[t]}))}},{key:"renameItem",value:function(e,t){if(this._registry[t])this._handleError("Cannot rename to ".concat(t," since an item with that id already exists."));else if(""!==t&&null!==t){var r=this._registry[e];r&&(delete this._registry[e],this._registry[t]=r,r.setId(t));for(var n=function r(n){var o=n.content;if(o)for(var i=0;i<o.length;i++){var a=o[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&r(a)}},o=this.getItems(),i=0;i<o.length;i++){var a=o[i];a instanceof al&&n(a._source)}}else this._handleError("Cannot give an item an empty string or null as id.")}},{key:"getItemIds",value:function(){return Object.keys(this._registry)}},{key:"getItemByProperty",value:function(e){return this._registryByProperty[e]}},{key:"detectTemplate",value:function(e,t,r){return Bu(e,t,this,r)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new xk(e);this._bundles.push(t),e.source&&e.source.namespaces&&Se(e.source.namespaces);var r=e.source.templates||e.source.auxilliary;return r instanceof Array&&this._createItems(r,!1,t),"object"===kk(e.source.cachedChoices)&&this._ontologyStore.importRegistry(e.source.cachedChoices),t}},{key:"getBundles",value:function(){return this._bundles}},{key:"createTemplate",value:function(e){return this.registerBundle({source:e}).getRoot()}},{key:"createTemplateFromChildren",value:function(e){var t=this,r=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new al({source:{},children:r,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var r=Object.assign({},e,t);return t.enhanced&&(!0===t.enhanced?Object.keys(e).concat(Object.keys(t)):Object.keys(t.enhanced)).forEach((function(n){r[n]=Ek(e[n],t[n])})),r._extendedSource=t,r.extends=null,delete r.children,r}},{key:"createItem",value:function(e,t,r,n){var o,i=e.id||e["@id"],a=e.type||e["@type"];if(e.extends){var s=this._registry[e.extends];if(null==s&&this._handleError("Cannot find item to extend with id: ".concat(e.extends)),s){var l=this.createExtendedSource(s.getSource(),e);return this.createItem(l,!1,!1,n)}}if(null!=a){switch(a){case"text":o=new kl({source:e,itemStore:this,bundle:n});break;case"choice":o=new Il({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:n});break;case"group":o=new al({source:e,children:null,itemStore:this,bundle:n});break;case"propertygroup":o=new gl({source:e,children:null,itemStore:this,bundle:n})}return!0!==r&&(null!=e.property&&(this._registryByProperty[e.property]=o,this.priorities&&null!=this.priorities[e.property]&&(o.priority=this.priorities[e.property])),null!=i&&null==this._registry[i]&&(this._registry[i]=o,null!=n&&n.addItem(o))),o}if(null!=i){if(null!=this._registry[i]){if(!0===t||Object.keys(e).find((function(e){return"id"!==e&&"@id"!==e}))){var u=Object.assign(Object.assign({},this._registry[i]._source),e);return this.createItem(u,!1,!0)}return this._registry[i]}this._handleError("Cannot find referenced subitem using identifier: ".concat(i))}else this._handleError("Cannot create subitem, `type` for creating new or `id` for referencing external are required.")}},{key:"removeItem",value:function(e,t){var r=e.getBundle();null!=r&&r.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var n=e.getProperty();null!=n&&this._registryByProperty[n]===e&&delete this._registryByProperty[n]}},{key:"_createItems",value:function(e,t,r){var n=this;return e.map((function(o,i){var a="string"==typeof o?e[i]={id:o}:o;return n.createItem(a,t,!1,r)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Sk(t.prototype,r),n&&Sk(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();o(73964),o(58373),o(66793),o(7629),o(77509);function Pk(e){return(Pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ok(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ok=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new T(n||[]);return o(a,"_invoke",{value:E(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",p="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};u(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==r&&n.call(x,a)&&(b=x);var S=v.prototype=g.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==Pk(c)&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=C(s,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?h:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Pk(t)+" is not iterable")}return y.prototype=v,o(S,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},_(k.prototype),u(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function Tk(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Rk(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Tk(i,n,o,a,s,"next",e)}function s(e){Tk(i,n,o,a,s,"throw",e)}a(void 0)}))}}var Ak=function(e,t,r){var n="Fetching template bundle ".concat(r," failed.");if(e===t-1)throw Error("".concat(n," Cannot recover from this, please fix."));console.log("".concat(n," Will try to fetch from a fallback option."))},Mk=function(){var e=Rk(Ok().mark((function e(t){var r,n,o,i,a;return Ok().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.length,i=0;case 2:if(!(i<r)){e.next=34;break}return e.prev=3,e.next=6,fetch(t[i]);case 6:n=e.sent,e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(3),Error("A network error ocurred while trying to fetch bundle ".concat(t[i]));case 12:if(!n||!n.ok){e.next=30;break}if(e.prev=13,!(a=n.headers.has("content-type")&&n.headers.get("content-type"))||!a.includes("application/json")){e.next=22;break}return e.next=18,n.json();case 18:return o=e.sent,e.abrupt("break",34);case 22:throw new Error("Failed fetching template ".concat(t[i],". Expected a JSON file and got ").concat(a));case 23:e.next=28;break;case 25:e.prev=25,e.t1=e.catch(13),Ak(i,r,t[i]);case 28:e.next=31;break;case 30:Ak(i,r,t[i]);case 31:i++,e.next=2;break;case 34:return e.abrupt("return",o);case 35:case"end":return e.stop()}}),e,null,[[3,9],[13,25]])})));return function(t){return e.apply(this,arguments)}}(),jk=function(e){return e.map((function(e){return e instanceof Array?Mk(e):Promise.resolve(e)}))},Ik=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle({source:t})}))};const Dk=function(){var e=Rk(Ok().mark((function e(t){var r,n,o,i,a,s=arguments;return Ok().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:[],n=s.length>2&&void 0!==s[2]?s[2]:function(){},0===r.length&&n&&n([]),o=jk(r),e.next=6,Promise.all(o);case 6:return i=e.sent,a=Ik(t,i),n(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),i})());
|