@entryscape/rdforms 10.13.1 → 10.13.3

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.
@@ -73,4 +73,4 @@ var o=n(48764),r=o.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,
73
73
  * @author Louis-Dominique Dubeau
74
74
  * @license MIT
75
75
  * @copyright Louis-Dominique Dubeau
76
- */function n(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=n,t.isNCNameChar=function(e){return n(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=="},12654:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},7752:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},26289:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23f44336%27 viewBox=%27-2 -2 7 7%27%3e%3cpath stroke=%27%23f44336%27 d=%27M0 0l3 3m0-3L0 3%27/%3e%3ccircle r=%27.5%27/%3e%3ccircle cx=%273%27 r=%27.5%27/%3e%3ccircle cy=%273%27 r=%27.5%27/%3e%3ccircle cx=%273%27 cy=%273%27 r=%27.5%27/%3e%3c/svg%3E"},46644:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z%27/%3e%3c/svg%3e"},92764:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z%27/%3e%3c/svg%3e"},42469:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},826:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 4%27%3e%3cpath stroke=%27%23fff%27 d=%27M0 2h4%27/%3e%3c/svg%3e"},69282:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 5%27%3e%3cpath fill=%27%23343a40%27 d=%27M2 0L0 2h4zm0 5L0 3h4z%27/%3e%3c/svg%3e"},5200:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%234caf50%27 d=%27M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},85900:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23fff%27 d=%27M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z%27/%3e%3c/svg%3e"},44517:(e,t,n)=>{"use strict";var o=n(17405),r=n(22773),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a function")}},67651:(e,t,n)=>{"use strict";var o=n(74333),r=n(22773),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a constructor")}},59747:(e,t,n)=>{"use strict";var o=n(26633),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},30689:(e,t,n)=>{"use strict";var o=n(96418),r=n(25094),i=n(20341).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},70280:(e,t,n)=>{"use strict";var o=n(76598).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},21141:(e,t,n)=>{"use strict";var o=n(94125),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw new r("Incorrect invocation")}},2955:(e,t,n)=>{"use strict";var o=n(87181),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not an object")}},74585:(e,t,n)=>{"use strict";var o=n(32479);e.exports=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},86348:(e,t,n)=>{"use strict";var o=n(80364).forEach,r=n(61116)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},59140:(e,t,n)=>{"use strict";var o=n(86658),r=n(19710),i=n(12154),a=function(e){return function(t,n,a){var s=o(t),l=i(s);if(0===l)return!e&&-1;var c,d=r(a,l);if(e&&n!=n){for(;l>d;)if((c=s[d++])!=c)return!0}else for(;l>d;d++)if((e||d in s)&&s[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},80364:(e,t,n)=>{"use strict";var o=n(69299),r=n(3271),i=n(60586),a=n(69271),s=n(12154),l=n(63918),c=r([].push),d=function(e){var t=1===e,n=2===e,r=3===e,d=4===e,u=6===e,f=7===e,b=5===e||u;return function(p,m,h,g){for(var v,y,w=a(p),x=i(w),k=s(x),_=o(m,h),S=0,E=g||l,C=t?E(p,k):n||f?E(p,0):void 0;k>S;S++)if((b||S in x)&&(y=_(v=x[S],S,w),e))if(t)C[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(C,v)}else switch(e){case 4:return!1;case 7:c(C,v)}return u?-1:r||d?d:C}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},74502:(e,t,n)=>{"use strict";var o=n(32479),r=n(96418),i=n(59459),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},61116:(e,t,n)=>{"use strict";var o=n(32479);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},98e3:(e,t,n)=>{"use strict";var o=n(24952),r=n(9739),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!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(r(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,n)=>{"use strict";var o=n(3271);e.exports=o([].slice)},26402:(e,t,n)=>{"use strict";var o=n(50386),r=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){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 c=r(n/2),d=i(o(e,0,c),t),u=i(o(e,c),t),f=d.length,b=u.length,p=0,m=0;p<f||m<b;)e[p+m]=p<f&&m<b?t(d[p],u[m])<=0?d[p++]:u[m++]:p<f?d[p++]:u[m++];return e};e.exports=i},83225:(e,t,n)=>{"use strict";var o=n(9739),r=n(74333),i=n(87181),a=n(96418)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},63918:(e,t,n)=>{"use strict";var o=n(83225);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},48377:(e,t,n)=>{"use strict";var o=n(96418)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},27579:(e,t,n)=>{"use strict";var o=n(3271),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},24230:(e,t,n)=>{"use strict";var o=n(42066),r=n(17405),i=n(27579),a=n(96418)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"===(o=i(t))&&r(t.callee)?"Arguments":o}},36776:(e,t,n)=>{"use strict";var o=n(25094),r=n(49839),i=n(85640),a=n(69299),s=n(21141),l=n(41838),c=n(4302),d=n(18434),u=n(71620),f=n(70928),b=n(24952),p=n(58157).fastKey,m=n(69933),h=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,d){var u=e((function(e,r){s(e,f),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),b||(e.size=0),l(r)||c(r,e[d],{that:e,AS_ENTRIES:n})})),f=u.prototype,m=g(t),v=function(e,t,n){var o,r,i=m(e),a=y(e,t);return a?a.value=n:(i.last=a={index:r=p(t,!0),key:t,value:n,previous:o=i.last,next:void 0,removed:!1},i.first||(i.first=a),o&&(o.next=a),b?i.size++:e.size++,"F"!==r&&(i.index[r]=a)),e},y=function(e,t){var n,o=m(e),r=p(t);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key===t)return n};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=o(null),b?e.size=0:this.size=0},delete:function(e){var t=m(this),n=y(this,e);if(n){var o=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),t.first===n&&(t.first=o),t.last===n&&(t.last=r),b?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=m(this),o=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,n?{get:function(e){var t=y(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)}}),b&&r(f,"size",{configurable:!0,get:function(){return m(this).size}}),u},setStrong:function(e,t,n){var o=t+" Iterator",r=g(t),i=g(o);d(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?u("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,u(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},57902:(e,t,n)=>{"use strict";var o=n(32162),r=n(32451),i=n(3271),a=n(25135),s=n(67089),l=n(58157),c=n(4302),d=n(21141),u=n(17405),f=n(41838),b=n(87181),p=n(32479),m=n(48377),h=n(38565),g=n(23885);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=v?"set":"add",x=r[e],k=x&&x.prototype,_=x,S={},E=function(e){var t=i(k[e]);s(k,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!b(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!u(x)||!(y||k.forEach&&!p((function(){(new x).entries().next()})))))_=n.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var C=new _,T=C[w](y?{}:-0,1)!==C,O=p((function(){C.has(1)})),A=m((function(e){new x(e)})),I=!y&&p((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));A||((_=t((function(e,t){d(e,k);var n=g(new x,e,_);return f(t)||c(t,n[w],{that:n,AS_ENTRIES:v}),n}))).prototype=k,k.constructor=_),(O||I)&&(E("delete"),E("has"),v&&E("get")),(I||T)&&E(w),y&&k.clear&&delete k.clear}return S[e]=_,o({global:!0,constructor:!0,forced:_!==x},S),h(_,e),y||n.setStrong(_,e,v),_}},29726:(e,t,n)=>{"use strict";var o=n(74633),r=n(74730),i=n(67537),a=n(20341);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];o(e,u)||n&&o(n,u)||l(e,u,c(t,u))}}},33752:(e,t,n)=>{"use strict";var o=n(96418)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},39159:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((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,n)=>{"use strict";var o=n(24952),r=n(20341),i=n(31433);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var o=n(24952),r=n(20341),i=n(31433);e.exports=function(e,t,n){o?r.f(e,t,i(0,n)):e[t]=n}},8448:(e,t,n)=>{"use strict";var o=n(2955),r=n(90319),i=TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}},49839:(e,t,n)=>{"use strict";var o=n(51893),r=n(20341);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},67089:(e,t,n)=>{"use strict";var o=n(17405),r=n(20341),i=n(51893),a=n(48213);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},85640:(e,t,n)=>{"use strict";var o=n(67089);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},48213:(e,t,n)=>{"use strict";var o=n(32451),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},47008:(e,t,n)=>{"use strict";var o=n(22773),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+o(t)+" of "+o(e))}},24952:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},82116:(e,t,n)=>{"use strict";var o=n(32451),r=n(87181),i=o.document,a=r(i)&&r(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,n)=>{"use strict";var o=n(82116)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},6256:(e,t,n)=>{"use strict";var o=n(70707).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},97384:(e,t,n)=>{"use strict";var o=n(73529),r=n(55089);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},73529:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},6956:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/MSIE|Trident/.test(o)},60700:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/ipad|iphone|ipod/i.test(o)&&"undefined"!=typeof Pebble},3865:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},55089:(e,t,n)=>{"use strict";var o=n(32451),r=n(27579);e.exports="process"===r(o.process)},20874:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/web0s(?!.*chrome)/i.test(o)},70707:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},59459:(e,t,n)=>{"use strict";var o,r,i=n(32451),a=n(70707),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(o=d.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},18216:(e,t,n)=>{"use strict";var o=n(70707).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},51410:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},32162:(e,t,n)=>{"use strict";var o=n(32451),r=n(67537).f,i=n(25298),a=n(67089),s=n(48213),l=n(29726),c=n(25135);e.exports=function(e,t){var n,d,u,f,b,p=e.target,m=e.global,h=e.stat;if(n=m?o:h?o[p]||s(p,{}):o[p]&&o[p].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(b=r(n,d))&&b.value:n[d],!c(m?d:p+(h?".":"#")+d,e.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(e.sham||u&&u.sham)&&i(f,"sham",!0),a(n,d,f,e)}}},32479:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},44896:(e,t,n)=>{"use strict";n(9081);var o=n(5234),r=n(67089),i=n(40387),a=n(32479),s=n(96418),l=n(25298),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var f=s(e),b=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=b&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!b||!p||n){var m=/./[f],h=t(f,""[e],(function(e,t,n,r,a){var s=t.exec;return s===i||s===d.exec?b&&!a?{done:!0,value:o(m,t,n,r)}:{done:!0,value:o(e,n,t,r)}:{done:!1}}));r(String.prototype,e,h[0]),r(d,f,h[1])}u&&l(d[f],"sham",!0)}},3369:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},83483:(e,t,n)=>{"use strict";var o=n(59117),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},69299:(e,t,n)=>{"use strict";var o=n(21678),r=n(44517),i=n(59117),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},59117:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},5428:(e,t,n)=>{"use strict";var o=n(3271),r=n(44517),i=n(87181),a=n(74633),s=n(50386),l=n(59117),c=Function,d=o([].concat),u=o([].join),f={},b=function(e,t,n){if(!a(f,t)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";f[t]=c("C,a","return new C("+u(o,",")+")")}return f[t](e,n)};e.exports=l?c.bind:function(e){var t=r(this),n=t.prototype,o=s(arguments,1),a=function(){var n=d(o,s(arguments));return this instanceof a?b(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},5234:(e,t,n)=>{"use strict";var o=n(59117),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},74251:(e,t,n)=>{"use strict";var o=n(24952),r=n(74633),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},48891:(e,t,n)=>{"use strict";var o=n(3271),r=n(44517);e.exports=function(e,t,n){try{return o(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},21678:(e,t,n)=>{"use strict";var o=n(27579),r=n(3271);e.exports=function(e){if("Function"===o(e))return r(e)}},3271:(e,t,n)=>{"use strict";var o=n(59117),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},24289:(e,t,n)=>{"use strict";var o=n(32451),r=n(17405),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},44128:(e,t,n)=>{"use strict";var o=n(24230),r=n(37961),i=n(41838),a=n(78230),s=n(96418)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},599:(e,t,n)=>{"use strict";var o=n(5234),r=n(44517),i=n(2955),a=n(22773),s=n(44128),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},44291:(e,t,n)=>{"use strict";var o=n(3271),r=n(9739),i=n(17405),a=n(27579),s=n(73247),l=o([].push);e.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],o=0;o<t;o++){var c=e[o];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var d=n.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var o=0;o<d;o++)if(n[o]===e)return t}}}},37961:(e,t,n)=>{"use strict";var o=n(44517),r=n(41838);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},93315:(e,t,n)=>{"use strict";var o=n(3271),r=n(69271),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,u,f){var b=n+e.length,p=o.length,m=d;return void 0!==u&&(u=r(u),m=c),s(f,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,b);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>p){var f=i(d/10);return 0===f?r:f<=p?void 0===o[f-1]?a(s,1):o[f-1]+a(s,1):r}c=o[d-1]}return void 0===c?"":c}))}},32451:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},74633:(e,t,n)=>{"use strict";var o=n(3271),r=n(69271),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(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,n)=>{"use strict";var o=n(24289);e.exports=o("document","documentElement")},8338:(e,t,n)=>{"use strict";var o=n(24952),r=n(32479),i=n(82116);e.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},60586:(e,t,n)=>{"use strict";var o=n(3271),r=n(32479),i=n(27579),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},23885:(e,t,n)=>{"use strict";var o=n(17405),r=n(87181),i=n(70210);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},6273:(e,t,n)=>{"use strict";var o=n(3271),r=n(17405),i=n(19321),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},58157:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(99295),a=n(87181),s=n(74633),l=n(20341).f,c=n(6076),d=n(93982),u=n(39483),f=n(66871),b=n(3369),p=!1,m=f("meta"),h=0,g=function(e){l(e,m,{value:{objectID:"O"+h++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var o=e(n),r=0,i=o.length;r<i;r++)if(o[r]===m){t(o,r,1);break}return o},o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!u(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!u(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return b&&p&&u(e)&&!s(e,m)&&g(e),e}};i[m]=!0},69933:(e,t,n)=>{"use strict";var o,r,i,a=n(75237),s=n(32451),l=n(87181),c=n(25298),d=n(74633),u=n(19321),f=n(69683),b=n(99295),p=s.TypeError,m=s.WeakMap;if(a||u.state){var h=u.state||(u.state=new m);h.get=h.get,h.has=h.has,h.set=h.set,o=function(e,t){if(h.has(e))throw new p("Object already initialized");return t.facade=e,h.set(e,t),t},r=function(e){return h.get(e)||{}},i=function(e){return h.has(e)}}else{var g=f("state");b[g]=!0,o=function(e,t){if(d(e,g))throw new p("Object already initialized");return t.facade=e,c(e,g,t),t},r=function(e){return d(e,g)?e[g]:{}},i=function(e){return d(e,g)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},45812:(e,t,n)=>{"use strict";var o=n(96418),r=n(78230),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},9739:(e,t,n)=>{"use strict";var o=n(27579);e.exports=Array.isArray||function(e){return"Array"===o(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,n)=>{"use strict";var o=n(3271),r=n(32479),i=n(17405),a=n(24230),s=n(24289),l=n(6273),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=o(u.exec),b=!u.test(c),p=function(e){if(!i(e))return!1;try{return d(c,[],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 b||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},25135:(e,t,n)=>{"use strict";var o=n(32479),r=n(17405),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===d||n!==c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},41838:e=>{"use strict";e.exports=function(e){return null==e}},87181:(e,t,n)=>{"use strict";var o=n(17405);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},26633:(e,t,n)=>{"use strict";var o=n(87181);e.exports=function(e){return o(e)||null===e}},87138:e=>{"use strict";e.exports=!1},53340:(e,t,n)=>{"use strict";var o=n(87181),r=n(27579),i=n(96418)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===r(e))}},76796:(e,t,n)=>{"use strict";var o=n(24289),r=n(17405),i=n(94125),a=n(68429),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},4302:(e,t,n)=>{"use strict";var o=n(69299),r=n(5234),i=n(2955),a=n(22773),s=n(45812),l=n(12154),c=n(94125),d=n(599),u=n(44128),f=n(71635),b=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var h,g,v,y,w,x,k,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),O=o(t,_),A=function(e){return h&&f(h,"normal",e),new p(!0,e)},I=function(e){return S?(i(e),T?O(e[0],e[1],A):O(e[0],e[1])):T?O(e,A):O(e)};if(E)h=e.iterator;else if(C)h=e;else{if(!(g=u(e)))throw new b(a(e)+" is not iterable");if(s(g)){for(v=0,y=l(e);y>v;v++)if((w=I(e[v]))&&c(m,w))return w;return new p(!1)}h=d(e,g)}for(x=E?e.next:h.next;!(k=r(x,h)).done;){try{w=I(k.value)}catch(e){f(h,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},71635:(e,t,n)=>{"use strict";var o=n(5234),r=n(2955),i=n(37961);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},13653:(e,t,n)=>{"use strict";var o=n(78607).IteratorPrototype,r=n(25094),i=n(31433),a=n(38565),s=n(78230),l=function(){return this};e.exports=function(e,t,n,c){var d=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,d,!1,!0),s[d]=l,e}},18434:(e,t,n)=>{"use strict";var o=n(32162),r=n(5234),i=n(87138),a=n(74251),s=n(17405),l=n(13653),c=n(96666),d=n(70210),u=n(38565),f=n(25298),b=n(67089),p=n(96418),m=n(78230),h=n(78607),g=a.PROPER,v=a.CONFIGURABLE,y=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k=function(){return this};e.exports=function(e,t,n,a,p,h,_){l(n,t,a);var S,E,C,T=function(e){if(e===p&&D)return D;if(!w&&e&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",A=!1,I=e.prototype,j=I[x]||I["@@iterator"]||p&&I[p],D=!w&&j||T(p),N="Array"===t&&I.entries||j;if(N&&(S=c(N.call(new e)))!==Object.prototype&&S.next&&(i||c(S)===y||(d?d(S,y):s(S[x])||b(S,x,k)),u(S,O,!0,!0),i&&(m[O]=k)),g&&"values"===p&&j&&"values"!==j.name&&(!i&&v?f(I,"name","values"):(A=!0,D=function(){return r(j,this)})),p)if(E={values:T("values"),keys:h?D:T("keys"),entries:T("entries")},_)for(C in E)(w||A||!(C in I))&&b(I,C,E[C]);else o({target:t,proto:!0,forced:w||A},E);return i&&!_||I[x]===D||b(I,x,D,{name:p}),m[t]=D,E}},78607:(e,t,n)=>{"use strict";var o,r,i,a=n(32479),s=n(17405),l=n(87181),c=n(25094),d=n(96666),u=n(67089),f=n(96418),b=n(87138),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=d(d(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[p].call(e)!==e}))?o={}:b&&(o=c(o)),s(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},78230:e=>{"use strict";e.exports={}},12154:(e,t,n)=>{"use strict";var o=n(9641);e.exports=function(e){return o(e.length)}},51893:(e,t,n)=>{"use strict";var o=n(3271),r=n(32479),i=n(17405),a=n(74633),s=n(24952),l=n(74251).CONFIGURABLE,c=n(6273),d=n(69933),u=d.enforce,f=d.get,b=String,p=Object.defineProperty,m=o("".slice),h=o("".replace),g=o([].join),v=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(b(t),0,7)&&(t="["+h(b(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return a(o,"source")||(o.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},21797:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},8783:(e,t,n)=>{"use strict";var o,r,i,a,s,l=n(32451),c=n(3318),d=n(69299),u=n(98743).set,f=n(16986),b=n(3865),p=n(60700),m=n(20874),h=n(55089),g=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var k=new f,_=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&o(),e}e&&e.enter()};b||h||m||!g||!v?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),o=function(){s(_)}):h?o=function(){y.nextTick(_)}:(u=d(u,l),o=function(){u(_)}):(r=!0,i=v.createTextNode(""),new g(_).observe(i,{characterData:!0}),o=function(){i.data=r=!r}),x=function(e){k.head||o(),k.add(e)}}e.exports=x},21128:(e,t,n)=>{"use strict";var o=n(44517),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},31730:(e,t,n)=>{"use strict";var o=n(53340),r=TypeError;e.exports=function(e){if(o(e))throw new r("The method doesn't accept regular expressions");return e}},25094:(e,t,n)=>{"use strict";var o,r=n(2955),i=n(79203),a=n(51410),s=n(99295),l=n(29227),c=n(82116),d=n(69683),u=d("IE_PROTO"),f=function(){},b=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&o?p(o):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F):p(o);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[u]=e):n=m(),void 0===t?n:i.f(n,t)}},79203:(e,t,n)=>{"use strict";var o=n(24952),r=n(22916),i=n(20341),a=n(2955),s=n(86658),l=n(32005);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),r=l(t),c=r.length,d=0;c>d;)i.f(e,n=r[d++],o[n]);return e}},20341:(e,t,n)=>{"use strict";var o=n(24952),r=n(8338),i=n(22916),a=n(2955),s=n(50514),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},67537:(e,t,n)=>{"use strict";var o=n(24952),r=n(5234),i=n(67109),a=n(31433),s=n(86658),l=n(50514),c=n(74633),d=n(8338),u=Object.getOwnPropertyDescriptor;t.f=o?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return a(!r(i.f,e,t),e[t])}},93982:(e,t,n)=>{"use strict";var o=n(27579),r=n(86658),i=n(6076).f,a=n(50386),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===o(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(r(e))}},6076:(e,t,n)=>{"use strict";var o=n(67530),r=n(51410).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},93188:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},96666:(e,t,n)=>{"use strict";var o=n(74633),r=n(17405),i=n(69271),a=n(69683),s=n(39159),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(o(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},39483:(e,t,n)=>{"use strict";var o=n(32479),r=n(87181),i=n(27579),a=n(74585),s=Object.isExtensible,l=o((function(){s(1)}));e.exports=l||a?function(e){return!!r(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},94125:(e,t,n)=>{"use strict";var o=n(3271);e.exports=o({}.isPrototypeOf)},67530:(e,t,n)=>{"use strict";var o=n(3271),r=n(74633),i=n(86658),a=n(59140).indexOf,s=n(99295),l=o([].push);e.exports=function(e,t){var n,o=i(e),c=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&l(d,n);for(;t.length>c;)r(o,n=t[c++])&&(~a(d,n)||l(d,n));return d}},32005:(e,t,n)=>{"use strict";var o=n(67530),r=n(51410);e.exports=Object.keys||function(e){return o(e,r)}},67109:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},70210:(e,t,n)=>{"use strict";var o=n(48891),r=n(87181),i=n(24915),a=n(59747);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return i(n),a(o),r(n)?(t?e(n,o):n.__proto__=o,n):n}}():void 0)},71447:(e,t,n)=>{"use strict";var o=n(24952),r=n(32479),i=n(3271),a=n(96666),s=n(32005),l=n(86658),c=i(n(67109).f),d=i([].push),u=o&&r((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var n,r=l(t),i=s(r),f=u&&null===a(r),b=i.length,p=0,m=[];b>p;)n=i[p++],o&&!(f?n in r:c(r,n))||d(m,e?[n,r[n]]:r[n]);return m}};e.exports={entries:f(!0),values:f(!1)}},69267:(e,t,n)=>{"use strict";var o=n(42066),r=n(24230);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},90319:(e,t,n)=>{"use strict";var o=n(5234),r=n(17405),i=n(87181),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!i(s=o(n,e)))return s;if(r(n=e.valueOf)&&!i(s=o(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!i(s=o(n,e)))return s;throw new a("Can't convert object to primitive value")}},74730:(e,t,n)=>{"use strict";var o=n(24289),r=n(3271),i=n(6076),a=n(93188),s=n(2955),l=r([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},70992:(e,t,n)=>{"use strict";var o=n(32451);e.exports=o},62686:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},39508:(e,t,n)=>{"use strict";var o=n(32451),r=n(9967),i=n(17405),a=n(25135),s=n(6273),l=n(96418),c=n(97384),d=n(73529),u=n(87138),f=n(59459),b=r&&r.prototype,p=l("species"),m=!1,h=i(o.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===f)return!0;if(u&&(!b.catch||!b.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=o,!(m=n.then((function(){}))instanceof o))return!0}return!t&&(c||d)&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},9967:(e,t,n)=>{"use strict";var o=n(32451);e.exports=o.Promise},16181:(e,t,n)=>{"use strict";var o=n(2955),r=n(87181),i=n(21128);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},62221:(e,t,n)=>{"use strict";var o=n(9967),r=n(48377),i=n(39508).CONSTRUCTOR;e.exports=i||!r((function(e){o.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},n=this.tail;n?n.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,n)=>{"use strict";var o=n(5234),r=n(2955),i=n(17405),a=n(27579),s=n(40387),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=o(n,e,t);return null!==c&&r(c),c}if("RegExp"===a(e))return o(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},40387:(e,t,n)=>{"use strict";var o,r,i=n(5234),a=n(3271),s=n(73247),l=n(32754),c=n(62616),d=n(4999),u=n(25094),f=n(69933).get,b=n(19980),p=n(49932),m=d("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),k=(r=/b*/g,i(h,o=/a/,"a"),i(h,r,"a"),0!==o.lastIndex||0!==r.lastIndex),_=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||_||b||p)&&(g=function(e){var t,n,o,r,a,c,d,b=this,p=f(b),E=s(e),C=p.raw;if(C)return C.lastIndex=b.lastIndex,t=i(g,C,E),b.lastIndex=C.lastIndex,t;var T=p.groups,O=_&&b.sticky,A=i(l,b),I=b.source,j=0,D=E;if(O&&(A=w(A,"y",""),-1===y(A,"g")&&(A+="g"),D=x(E,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==v(E,b.lastIndex-1))&&(I="(?: "+I+")",D=" "+D,j++),n=new RegExp("^(?:"+I+")",A)),S&&(n=new RegExp("^"+I+"$(?!\\s)",A)),k&&(o=b.lastIndex),r=i(h,O?n:b,D),O?r?(r.input=x(r.input,j),r[0]=x(r[0],j),r.index=b.lastIndex,b.lastIndex+=r[0].length):b.lastIndex=0:k&&r&&(b.lastIndex=b.global?r.index+r[0].length:o),S&&r&&r.length>1&&i(m,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&T)for(r.groups=c=u(null),a=0;a<T.length;a++)c[(d=T[a])[0]]=r[d[1]];return r}),e.exports=g},32754:(e,t,n)=>{"use strict";var o=n(2955);e.exports=function(){var e=o(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,n)=>{"use strict";var o=n(5234),r=n(74633),i=n(94125),a=n(32754),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!i(s,e)?t:o(a,e)}},62616:(e,t,n)=>{"use strict";var o=n(32479),r=n(32451).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},19980:(e,t,n)=>{"use strict";var o=n(32479),r=n(32451).RegExp;e.exports=o((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},49932:(e,t,n)=>{"use strict";var o=n(32479),r=n(32451).RegExp;e.exports=o((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},24915:(e,t,n)=>{"use strict";var o=n(41838),r=TypeError;e.exports=function(e){if(o(e))throw new r("Can't call method on "+e);return e}},3318:(e,t,n)=>{"use strict";var o=n(32451),r=n(24952),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return o[e];var t=i(o,e);return t&&t.value}},70928:(e,t,n)=>{"use strict";var o=n(24289),r=n(49839),i=n(96418),a=n(24952),s=i("species");e.exports=function(e){var t=o(e);a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},38565:(e,t,n)=>{"use strict";var o=n(20341).f,r=n(74633),i=n(96418)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,i)&&o(e,i,{configurable:!0,value:t})}},69683:(e,t,n)=>{"use strict";var o=n(4999),r=n(66871),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},19321:(e,t,n)=>{"use strict";var o=n(87138),r=n(32451),i=n(48213),a=e.exports=r["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.0",mode:o?"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,n)=>{"use strict";var o=n(19321);e.exports=function(e,t){return o[e]||(o[e]=t||{})}},58343:(e,t,n)=>{"use strict";var o=n(2955),r=n(67651),i=n(41838),a=n(96418)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||i(n=o(s)[a])?t:r(n)}},76598:(e,t,n)=>{"use strict";var o=n(3271),r=n(65815),i=n(73247),a=n(24915),s=o("".charAt),l=o("".charCodeAt),c=o("".slice),d=function(e){return function(t,n){var o,d,u=i(a(t)),f=r(n),b=u.length;return f<0||f>=b?e?"":void 0:(o=l(u,f))<55296||o>56319||f+1===b||(d=l(u,f+1))<56320||d>57343?e?s(u,f):o:e?c(u,f,f+2):d-56320+(o-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},82834:(e,t,n)=>{"use strict";var o=n(3271),r=n(24915),i=n(73247),a=n(28628),s=o("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},41414:(e,t,n)=>{"use strict";var o=n(59459),r=n(32479),i=n(32451).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},77416:(e,t,n)=>{"use strict";var o=n(5234),r=n(24289),i=n(96418),a=n(67089);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return o(n,this)}),{arity:1})}},81836:(e,t,n)=>{"use strict";var o=n(41414);e.exports=o&&!!Symbol.for&&!!Symbol.keyFor},98743:(e,t,n)=>{"use strict";var o,r,i,a,s=n(32451),l=n(83483),c=n(69299),d=n(17405),u=n(74633),f=n(32479),b=n(29227),p=n(50386),m=n(82116),h=n(42289),g=n(3865),v=n(55089),y=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,_=s.Function,S=s.MessageChannel,E=s.String,C=0,T={};f((function(){o=s.location}));var O=function(e){if(u(T,e)){var t=T[e];delete T[e],t()}},A=function(e){return function(){O(e)}},I=function(e){O(e.data)},j=function(e){s.postMessage(E(e),o.protocol+"//"+o.host)};y&&w||(y=function(e){h(arguments.length,1);var t=d(e)?e:_(e),n=p(arguments,1);return T[++C]=function(){l(t,void 0,n)},r(C),C},w=function(e){delete T[e]},v?r=function(e){x.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:S&&!g?(a=(i=new S).port2,i.port1.onmessage=I,r=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!f(j)?(r=j,s.addEventListener("message",I,!1)):r="onreadystatechange"in m("script")?function(e){b.appendChild(m("script")).onreadystatechange=function(){b.removeChild(this),O(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:y,clear:w}},37130:(e,t,n)=>{"use strict";var o=n(3271);e.exports=o(1..valueOf)},19710:(e,t,n)=>{"use strict";var o=n(65815),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},86658:(e,t,n)=>{"use strict";var o=n(60586),r=n(24915);e.exports=function(e){return o(r(e))}},65815:(e,t,n)=>{"use strict";var o=n(21797);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},9641:(e,t,n)=>{"use strict";var o=n(65815),r=Math.min;e.exports=function(e){var t=o(e);return t>0?r(t,9007199254740991):0}},69271:(e,t,n)=>{"use strict";var o=n(24915),r=Object;e.exports=function(e){return r(o(e))}},96492:(e,t,n)=>{"use strict";var o=n(5234),r=n(87181),i=n(76796),a=n(37961),s=n(90319),l=n(96418),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,l=a(e,d);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!r(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},50514:(e,t,n)=>{"use strict";var o=n(96492),r=n(76796);e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},42066:(e,t,n)=>{"use strict";var o={};o[n(96418)("toStringTag")]="z",e.exports="[object z]"===String(o)},73247:(e,t,n)=>{"use strict";var o=n(24230),r=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},22773:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},66871:(e,t,n)=>{"use strict";var o=n(3271),r=0,i=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}},68429:(e,t,n)=>{"use strict";var o=n(41414);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},22916:(e,t,n)=>{"use strict";var o=n(24952),r=n(32479);e.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},42289:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},75237:(e,t,n)=>{"use strict";var o=n(32451),r=n(17405),i=o.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},82318:(e,t,n)=>{"use strict";var o=n(70992),r=n(74633),i=n(66717),a=n(20341).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},66717:(e,t,n)=>{"use strict";var o=n(96418);t.f=o},96418:(e,t,n)=>{"use strict";var o=n(32451),r=n(4999),i=n(74633),a=n(66871),s=n(41414),l=n(68429),c=o.Symbol,d=r("wks"),u=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=s&&i(c,e)?c[e]:u("Symbol."+e)),d[e]}},28628:e=>{"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},48888:(e,t,n)=>{"use strict";var o=n(32162),r=n(32479),i=n(9739),a=n(87181),s=n(69271),l=n(12154),c=n(93409),d=n(25508),u=n(63918),f=n(74502),b=n(96418),p=n(59459),m=b("isConcatSpreadable"),h=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!h||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=u(a,0),b=0;for(t=-1,o=arguments.length;t<o;t++)if(g(i=-1===t?a:arguments[t]))for(r=l(i),c(b+r),n=0;n<r;n++,b++)n in i&&d(f,b,i[n]);else c(b+1),d(f,b++,i);return f.length=b,f}})},2458:(e,t,n)=>{"use strict";var o=n(32162),r=n(80364).filter;o({target:"Array",proto:!0,forced:!n(74502)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},3925:(e,t,n)=>{"use strict";var o=n(32162),r=n(80364).find,i=n(30689),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},17554:(e,t,n)=>{"use strict";var o=n(32162),r=n(59140).includes,i=n(32479),a=n(30689);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54458:(e,t,n)=>{"use strict";var o=n(86658),r=n(30689),i=n(78230),a=n(69933),s=n(20341).f,l=n(18434),c=n(71620),d=n(87138),u=n(24952),f=a.set,b=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=b(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!d&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},65273:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(60586),a=n(86658),s=n(61116),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},72870:(e,t,n)=>{"use strict";var o=n(32162),r=n(80364).map;o({target:"Array",proto:!0,forced:!n(74502)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},45872:(e,t,n)=>{"use strict";var o=n(32162),r=n(9739),i=n(74333),a=n(87181),s=n(19710),l=n(12154),c=n(86658),d=n(25508),u=n(96418),f=n(74502),b=n(50386),p=f("slice"),m=u("species"),h=Array,g=Math.max;o({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,o,u,f=c(this),p=l(f),v=s(e,p),y=s(void 0===t?p:t,p);if(r(f)&&(n=f.constructor,(i(n)&&(n===h||r(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===h||void 0===n))return b(f,v,y);for(o=new(void 0===n?h:n)(g(y-v,0)),u=0;v<y;v++,u++)v in f&&d(o,u,f[v]);return o.length=u,o}})},91756:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(44517),a=n(69271),s=n(12154),l=n(47008),c=n(73247),d=n(32479),u=n(26402),f=n(61116),b=n(6256),p=n(6956),m=n(59459),h=n(18216),g=[],v=r(g.sort),y=r(g.push),w=d((function(){g.sort(void 0)})),x=d((function(){g.sort(null)})),k=f("sort"),_=!d((function(){if(m)return m<70;if(!(b&&b>3)){if(p)return!0;if(h)return h<603;var e,t,n,o,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:t+o,v:n})}for(g.sort((function(e,t){return t.v-e.v})),o=0;o<g.length;o++)t=g[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:w||!x||!k||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var n,o,r=[],d=s(t);for(o=0;o<d;o++)o in t&&y(r,t[o]);for(u(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(r),o=0;o<n;)t[o]=r[o++];for(;o<d;)l(t,o++);return t}})},15796:(e,t,n)=>{"use strict";var o=n(32162),r=n(69271),i=n(19710),a=n(65815),s=n(12154),l=n(98e3),c=n(93409),d=n(63918),u=n(25508),f=n(47008),b=n(74502)("splice"),p=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!b},{splice:function(e,t){var n,o,b,h,g,v,y=r(this),w=s(y),x=i(e,w),k=arguments.length;for(0===k?n=o=0:1===k?(n=0,o=w-x):(n=k-2,o=m(p(a(t),0),w-x)),c(w+n-o),b=d(y,o),h=0;h<o;h++)(g=x+h)in y&&u(b,h,y[g]);if(b.length=o,n<o){for(h=x;h<w-o;h++)v=h+n,(g=h+o)in y?y[v]=y[g]:f(y,v);for(h=w;h>w-o+n;h--)f(y,h-1)}else if(n>o)for(h=w-o;h>x;h--)v=h+n-1,(g=h+o-1)in y?y[v]=y[g]:f(y,v);for(h=0;h<n;h++)y[h+x]=arguments[h+2];return l(y,w-o+n),b}})},4099:(e,t,n)=>{"use strict";var o=n(74633),r=n(67089),i=n(8448),a=n(96418)("toPrimitive"),s=Date.prototype;o(s,a)||r(s,a,i)},40454:(e,t,n)=>{"use strict";var o=n(24952),r=n(74251).EXISTS,i=n(3271),a=n(49839),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);o&&!r&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},63322:(e,t,n)=>{"use strict";var o=n(32162),r=n(32451);o({global:!0,forced:r.globalThis!==r},{globalThis:r})},17767:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(83483),a=n(5234),s=n(3271),l=n(32479),c=n(17405),d=n(76796),u=n(50386),f=n(44291),b=n(41414),p=String,m=r("JSON","stringify"),h=s(/./.exec),g=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,S=!b||l((function(){var e=r("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 n=u(arguments),o=f(t);if(c(o)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(o)&&(t=a(o,this,p(e),t)),!d(t))return t},i(m,null,n)},T=function(e,t,n){var o=g(n,t-1),r=g(n,t+1);return h(k,e)&&!h(_,r)||h(_,e)&&!h(k,o)?"\\u"+w(v(e,0),16):e};m&&o({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(e,t,n){var o=u(arguments),r=i(S?C:m,null,o);return E&&"string"==typeof r?y(r,x,T):r}})},17299:(e,t,n)=>{"use strict";var o=n(32451);n(38565)(o.JSON,"JSON",!0)},69590:(e,t,n)=>{"use strict";n(57902)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(36776))},7517:(e,t,n)=>{"use strict";n(69590)},12766:(e,t,n)=>{"use strict";n(38565)(Math,"Math",!0)},75397:(e,t,n)=>{"use strict";var o=n(32162),r=n(87138),i=n(24952),a=n(32451),s=n(70992),l=n(3271),c=n(25135),d=n(74633),u=n(23885),f=n(94125),b=n(76796),p=n(96492),m=n(32479),h=n(6076).f,g=n(67537).f,v=n(20341).f,y=n(37130),w=n(82834).trim,x=a.Number,k=s.Number,_=x.prototype,S=a.TypeError,E=l("".slice),C=l("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,n,o,r,i,a,s,l,c=p(e,"number");if(b(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=C(c,0))||45===t){if(88===(n=C(c,2))||120===n)return NaN}else if(48===t){switch(C(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=E(c,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},A=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){return f(_,e)&&m((function(){y(e)}))},j=function(e){var t=arguments.length<1?0:x(T(e));return I(this)?u(Object(t),this,j):t};j.prototype=_,A&&!r&&(_.constructor=j),o({global:!0,constructor:!0,wrap:!0,forced:A},{Number:j});var D=function(e,t){for(var n,o=i?h(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(","),r=0;o.length>r;r++)d(t,n=o[r])&&!d(e,n)&&v(e,n,g(t,n))};r&&k&&D(s.Number,k),(A||r)&&D(s.Number,x)},93900:(e,t,n)=>{"use strict";var o=n(32162),r=n(41414),i=n(32479),a=n(93188),s=n(69271);o({target:"Object",stat:!0,forced:!r||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},20539:(e,t,n)=>{"use strict";var o=n(32162),r=n(32479),i=n(69271),a=n(96666),s=n(39159);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},10373:(e,t,n)=>{"use strict";var o=n(32162),r=n(69271),i=n(32005);o({target:"Object",stat:!0,forced:n(32479)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},45195:(e,t,n)=>{"use strict";var o=n(42066),r=n(67089),i=n(69267);o||r(Object.prototype,"toString",i,{unsafe:!0})},13090:(e,t,n)=>{"use strict";var o=n(32162),r=n(71447).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},65716:(e,t,n)=>{"use strict";var o=n(32162),r=n(5234),i=n(44517),a=n(21128),s=n(62686),l=n(4302);o({target:"Promise",stat:!0,forced:n(62221)},{all:function(e){var t=this,n=a.f(t),o=n.resolve,c=n.reject,d=s((function(){var n=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,r(n,t,e).then((function(e){l||(l=!0,a[i]=e,--d||o(a))}),c)})),--d||o(a)}));return d.error&&c(d.value),n.promise}})},79901:(e,t,n)=>{"use strict";var o=n(32162),r=n(87138),i=n(39508).CONSTRUCTOR,a=n(9967),s=n(24289),l=n(17405),c=n(67089),d=a&&a.prototype;if(o({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},54083:(e,t,n)=>{"use strict";var o,r,i,a=n(32162),s=n(87138),l=n(55089),c=n(32451),d=n(5234),u=n(67089),f=n(70210),b=n(38565),p=n(70928),m=n(44517),h=n(17405),g=n(87181),v=n(21141),y=n(58343),w=n(98743).set,x=n(8783),k=n(14735),_=n(62686),S=n(16986),E=n(69933),C=n(9967),T=n(39508),O=n(21128),A=T.CONSTRUCTOR,I=T.REJECTION_EVENT,j=T.SUBCLASSING,D=E.getterFor("Promise"),N=E.set,M=C&&C.prototype,L=C,P=M,R=c.TypeError,z=c.document,F=c.process,B=O.f,$=B,V=!!(z&&z.createEvent&&c.dispatchEvent),U=function(e){var t;return!(!g(e)||!h(t=e.then))&&t},H=function(e,t){var n,o,r,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),r=!0)),n===e.promise?c(new R("Promise-chain cycle")):(o=U(n))?d(o,n,l,c):l(n)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},Y=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,o=e.reactions;n=o.get();)H(n,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,n){var o,r;V?((o=z.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},!I&&(r=c["on"+e])?r(o):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},G=function(e){d(w,c,(function(){var t,n=e.facade,o=e.value;if(q(e)&&(t=_((function(){l?F.emit("unhandledRejection",o,n):W("unhandledrejection",n,o)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){d(w,c,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(o){e(t,o,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},K=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new R("Promise can't be resolved itself");var o=U(t);o?x((function(){var n={done:!1};try{d(o,t,X(K,n,e),X(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){Z({done:!1},t,e)}}};if(A&&(P=(L=function(e){v(this,P),m(e),d(o,this);var t=D(this);try{e(X(K,t),X(Z,t))}catch(e){Z(t,e)}}).prototype,(o=function(e){N(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=u(P,"then",(function(e,t){var n=D(this),o=B(y(this,L));return n.parent=!0,o.ok=!h(e)||e,o.fail=h(t)&&t,o.domain=l?F.domain:void 0,0===n.state?n.reactions.add(o):x((function(){H(o,n)})),o.promise})),r=function(){var e=new o,t=D(e);this.promise=e,this.resolve=X(K,t),this.reject=X(Z,t)},O.f=B=function(e){return e===L||void 0===e?new r(e):$(e)},!s&&h(C)&&M!==Object.prototype)){i=M.then,j||u(M,"then",(function(e,t){var n=this;return new L((function(e,t){d(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete M.constructor}catch(e){}f&&f(M,P)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:L}),b(L,"Promise",!1,!0),p("Promise")},30695:(e,t,n)=>{"use strict";n(54083),n(65716),n(79901),n(72075),n(49489),n(25548)},72075:(e,t,n)=>{"use strict";var o=n(32162),r=n(5234),i=n(44517),a=n(21128),s=n(62686),l=n(4302);o({target:"Promise",stat:!0,forced:n(62221)},{race:function(e){var t=this,n=a.f(t),o=n.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){r(a,t,e).then(n.resolve,o)}))}));return c.error&&o(c.value),n.promise}})},49489:(e,t,n)=>{"use strict";var o=n(32162),r=n(21128);o({target:"Promise",stat:!0,forced:n(39508).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},25548:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(87138),a=n(9967),s=n(39508).CONSTRUCTOR,l=n(16181),c=r("Promise"),d=i&&!s;o({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},80528:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(83483),a=n(5428),s=n(67651),l=n(2955),c=n(87181),d=n(25094),u=n(32479),f=r("Reflect","construct"),b=Object.prototype,p=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!u((function(){f((function(){}))})),g=m||h;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!m)return f(e,t,n);if(e===n){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 o=[null];return i(p,o,t),new(i(a,e,o))}var r=n.prototype,u=d(c(r)?r:b),g=i(e,u,t);return c(g)?g:u}})},9081:(e,t,n)=>{"use strict";var o=n(32162),r=n(40387);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},7741:(e,t,n)=>{"use strict";var o=n(74251).PROPER,r=n(67089),i=n(2955),a=n(73247),s=n(32479),l=n(98017),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=o&&"toString"!==d.name;(u||f)&&r(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},9807:(e,t,n)=>{"use strict";n(57902)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(36776))},42781:(e,t,n)=>{"use strict";n(9807)},39385:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(31730),a=n(24915),s=n(73247),l=n(33752),c=r("".indexOf);o({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},94825:(e,t,n)=>{"use strict";var o=n(76598).charAt,r=n(73247),i=n(69933),a=n(18434),s=n(71620),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=o(n,r),t.index+=e.length,s(e,!1))}))},24601:(e,t,n)=>{"use strict";var o=n(83483),r=n(5234),i=n(3271),a=n(44896),s=n(32479),l=n(2955),c=n(17405),d=n(41838),u=n(65815),f=n(9641),b=n(73247),p=n(24915),m=n(70280),h=n(37961),g=n(93315),v=n(74355),y=n(96418)("replace"),w=Math.max,x=Math.min,k=i([].concat),_=i([].push),S=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var o=p(this),i=d(e)?void 0:h(e,y);return i?r(i,e,o,n):r(t,b(o),e,n)},function(e,r){var a=l(this),s=b(e);if("string"==typeof r&&-1===S(r,i)&&-1===S(r,"$<")){var d=n(t,a,s,r);if(d.done)return d.value}var p=c(r);p||(r=b(r));var h,y=a.global;y&&(h=a.unicode,a.lastIndex=0);for(var C,T=[];null!==(C=v(a,s))&&(_(T,C),y);){""===b(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),h))}for(var O,A="",I=0,j=0;j<T.length;j++){for(var D,N=b((C=T[j])[0]),M=w(x(u(C.index),s.length),0),L=[],P=1;P<C.length;P++)_(L,void 0===(O=C[P])?O:String(O));var R=C.groups;if(p){var z=k([N],L,M,s);void 0!==R&&_(z,R),D=b(o(r,void 0,z))}else D=g(N,s,M,L,R,r);M>=I&&(A+=E(s,I,M)+D,I=M+N.length)}return A+E(s,I)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||T)},73220:(e,t,n)=>{"use strict";var o,r=n(32162),i=n(21678),a=n(67537).f,s=n(9641),l=n(73247),c=n(31730),d=n(24915),u=n(33752),f=n(87138),b=i("".slice),p=Math.min,m=u("startsWith");r({target:"String",proto:!0,forced:!!(f||m||(o=a(String.prototype,"startsWith"),!o||o.writable))&&!m},{startsWith:function(e){var t=l(d(this));c(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),o=l(e);return b(t,n,n+o.length)===o}})},85110:(e,t,n)=>{"use strict";n(82318)("asyncIterator")},10359:(e,t,n)=>{"use strict";var o=n(32162),r=n(32451),i=n(5234),a=n(3271),s=n(87138),l=n(24952),c=n(41414),d=n(32479),u=n(74633),f=n(94125),b=n(2955),p=n(86658),m=n(50514),h=n(73247),g=n(31433),v=n(25094),y=n(32005),w=n(6076),x=n(93982),k=n(93188),_=n(67537),S=n(20341),E=n(79203),C=n(67109),T=n(67089),O=n(49839),A=n(4999),I=n(69683),j=n(99295),D=n(66871),N=n(96418),M=n(66717),L=n(82318),P=n(77416),R=n(38565),z=n(69933),F=n(80364).forEach,B=I("hidden"),$=z.set,V=z.getterFor("Symbol"),U=Object.prototype,H=r.Symbol,Y=H&&H.prototype,W=r.RangeError,G=r.TypeError,q=r.QObject,Q=_.f,X=S.f,Z=x.f,K=C.f,J=a([].push),ee=A("symbols"),te=A("op-symbols"),ne=A("wks"),oe=!q||!q.prototype||!q.prototype.findChild,re=function(e,t,n){var o=Q(U,t);o&&delete U[t],X(e,t,n),o&&e!==U&&X(U,t,o)},ie=l&&d((function(){return 7!==v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?re:X,ae=function(e,t){var n=ee[e]=v(Y);return $(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),b(e);var o=m(t);return b(n),u(ee,o)?(n.enumerable?(u(e,B)&&e[B][o]&&(e[B][o]=!1),n=v(n,{enumerable:g(0,!1)})):(u(e,B)||X(e,B,g(1,v(null))),e[B][o]=!0),ie(e,o,n)):X(e,o,n)},le=function(e,t){b(e);var n=p(t),o=y(n).concat(fe(n));return F(o,(function(t){l&&!i(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=i(K,this,t);return!(this===U&&u(ee,t)&&!u(te,t))&&(!(n||!u(this,t)||!u(ee,t)||u(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),o=m(t);if(n!==U||!u(ee,o)||u(te,o)){var r=Q(n,o);return!r||!u(ee,o)||u(n,B)&&n[B][o]||(r.enumerable=!0),r}},ue=function(e){var t=Z(p(e)),n=[];return F(t,(function(e){u(ee,e)||u(j,e)||J(n,e)})),n},fe=function(e){var t=e===U,n=Z(t?te:p(e)),o=[];return F(n,(function(e){!u(ee,e)||t&&!u(U,e)||J(o,ee[e])})),o};c||(T(Y=(H=function(){if(f(Y,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=D(e),n=function(e){var o=void 0===this?r:this;o===U&&i(n,te,e),u(o,B)&&u(o[B],t)&&(o[B][t]=!1);var a=g(1,e);try{ie(o,t,a)}catch(e){if(!(e instanceof W))throw e;re(o,t,a)}};return l&&oe&&ie(U,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),T(H,"withoutSetter",(function(e){return ae(D(e),e)})),C.f=ce,S.f=se,E.f=le,_.f=de,w.f=x.f=ue,k.f=fe,M.f=function(e){return ae(N(e),e)},l&&(O(Y,"description",{configurable:!0,get:function(){return V(this).description}}),s||T(U,"propertyIsEnumerable",ce,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(y(ne),(function(e){L(e)})),o({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),P(),R(H,"Symbol"),j[B]=!0},14223:(e,t,n)=>{"use strict";var o=n(32162),r=n(24952),i=n(32451),a=n(3271),s=n(74633),l=n(17405),c=n(94125),d=n(73247),u=n(49839),f=n(29726),b=i.Symbol,p=b&&b.prototype;if(r&&l(b)&&(!("description"in p)||void 0!==b().description)){var m={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(p,this)?new b(e):void 0===e?b():b(e);return""===e&&(m[t]=!0),t};f(h,b),h.prototype=p,p.constructor=h;var g="Symbol(description detection)"===String(b("description detection")),v=a(p.valueOf),y=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);u(p,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),n=g?k(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),o({global:!0,constructor:!0,forced:!0},{Symbol:h})}},51071:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(74633),a=n(73247),s=n(4999),l=n(81836),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,d[n]=t,n}})},58965:(e,t,n)=>{"use strict";n(82318)("iterator")},49361:(e,t,n)=>{"use strict";n(10359),n(51071),n(57627),n(17767),n(93900)},57627:(e,t,n)=>{"use strict";var o=n(32162),r=n(74633),i=n(76796),a=n(22773),s=n(4999),l=n(81836),c=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(r(c,e))return c[e]}})},64120:(e,t,n)=>{"use strict";var o=n(82318),r=n(77416);o("toPrimitive"),r()},67483:(e,t,n)=>{"use strict";var o=n(24289),r=n(82318),i=n(38565);r("toStringTag"),i(o("Symbol"),"Symbol")},74289:(e,t,n)=>{"use strict";n(63322)},83500:(e,t,n)=>{"use strict";var o=n(32451),r=n(16411),i=n(75427),a=n(86348),s=n(25298),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in r)r[c]&&l(o[c]&&o[c].prototype);l(i)},56270:(e,t,n)=>{"use strict";var o=n(32451),r=n(16411),i=n(75427),a=n(54458),s=n(25298),l=n(38565),c=n(96418)("iterator"),d=a.values,u=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(t){e[c]=d}if(l(e,t,!0),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in r)u(o[f]&&o[f].prototype,f);u(i,"DOMTokenList")},10509:(e,t,n)=>{"use strict";var o=n(69985),r=n(23691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a function")}},52655:(e,t,n)=>{"use strict";var o=n(19429),r=n(23691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a constructor")}},23550:(e,t,n)=>{"use strict";var o=n(60598),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},87370:(e,t,n)=>{"use strict";var o=n(44201),r=n(25391),i=n(72560).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},71514:(e,t,n)=>{"use strict";var o=n(10730).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},767:(e,t,n)=>{"use strict";var o=n(23622),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw new r("Incorrect invocation")}},85027:(e,t,n)=>{"use strict";var o=n(48999),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not an object")}},57612:(e,t,n)=>{"use strict";var o=n(2960).forEach,r=n(16834)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},21055:(e,t,n)=>{"use strict";var o=n(54071),r=n(22615),i=n(90690),a=n(71228),s=n(93292),l=n(19429),c=n(6310),d=n(76522),u=n(5185),f=n(91664),b=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,h=void 0!==m;h&&(m=o(m,p>2?arguments[2]:void 0));var g,v,y,w,x,k,_=f(t),S=0;if(!_||this===b&&s(_))for(g=c(t),v=n?new this(g):b(g);g>S;S++)k=h?m(t[S],S):t[S],d(v,S,k);else for(x=(w=u(t,_)).next,v=n?new this:[];!(y=r(x,w)).done;S++)k=h?a(w,m,[y.value,S],!0):y.value,d(v,S,k);return v.length=S,v}},84328:(e,t,n)=>{"use strict";var o=n(65290),r=n(27578),i=n(6310),a=function(e){return function(t,n,a){var s,l=o(t),c=i(l),d=r(a,c);if(e&&n!=n){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,n)=>{"use strict";var o=n(54071),r=n(68844),i=n(94413),a=n(90690),s=n(6310),l=n(27120),c=r([].push),d=function(e){var t=1===e,n=2===e,r=3===e,d=4===e,u=6===e,f=7===e,b=5===e||u;return function(p,m,h,g){for(var v,y,w=a(p),x=i(w),k=s(x),_=o(m,h),S=0,E=g||l,C=t?E(p,k):n||f?E(p,0):void 0;k>S;S++)if((b||S in x)&&(y=_(v=x[S],S,w),e))if(t)C[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(C,v)}else switch(e){case 4:return!1;case 7:c(C,v)}return u?-1:r||d?d:C}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},29042:(e,t,n)=>{"use strict";var o=n(3689),r=n(44201),i=n(3615),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},16834:(e,t,n)=>{"use strict";var o=n(3689);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},5649:(e,t,n)=>{"use strict";var o=n(67697),r=n(92297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!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(r(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,n)=>{"use strict";var o=n(68844);e.exports=o([].slice)},50382:(e,t,n)=>{"use strict";var o=n(96004),r=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){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 c=r(n/2),d=i(o(e,0,c),t),u=i(o(e,c),t),f=d.length,b=u.length,p=0,m=0;p<f||m<b;)e[p+m]=p<f&&m<b?t(d[p],u[m])<=0?d[p++]:u[m++]:p<f?d[p++]:u[m++];return e};e.exports=i},25271:(e,t,n)=>{"use strict";var o=n(92297),r=n(19429),i=n(48999),a=n(44201)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},27120:(e,t,n)=>{"use strict";var o=n(25271);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},71228:(e,t,n)=>{"use strict";var o=n(85027),r=n(72125);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},86431:(e,t,n)=>{"use strict";var o=n(44201)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},6648:(e,t,n)=>{"use strict";var o=n(68844),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},50926:(e,t,n)=>{"use strict";var o=n(23043),r=n(69985),i=n(6648),a=n(44201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"===(o=i(t))&&r(t.callee)?"Arguments":o}},8758:(e,t,n)=>{"use strict";var o=n(36812),r=n(19152),i=n(82474),a=n(72560);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];o(e,u)||n&&o(n,u)||l(e,u,c(t,u))}}},27413:(e,t,n)=>{"use strict";var o=n(44201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},81748:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((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,n)=>{"use strict";var o=n(67697),r=n(72560),i=n(75684);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var o=n(18360),r=n(72560),i=n(75684);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},81797:(e,t,n)=>{"use strict";var o=n(85027),r=n(35899),i=TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}},62148:(e,t,n)=>{"use strict";var o=n(98702),r=n(72560);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},11880:(e,t,n)=>{"use strict";var o=n(69985),r=n(72560),i=n(98702),a=n(95014);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},95014:(e,t,n)=>{"use strict";var o=n(19037),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},98494:(e,t,n)=>{"use strict";var o=n(23691),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+o(t)+" of "+o(e))}},67697:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},36420:(e,t,n)=>{"use strict";var o=n(19037),r=n(48999),i=o.document,a=r(i)&&r(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,n)=>{"use strict";var o=n(36420)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},97365:(e,t,n)=>{"use strict";var o=n(30071).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},72532:(e,t,n)=>{"use strict";var o=n(88563),r=n(50806);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},88563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},37298:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/MSIE|Trident/.test(o)},63221:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/ipad|iphone|ipod/i.test(o)&&"undefined"!=typeof Pebble},4764:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},50806:(e,t,n)=>{"use strict";var o=n(19037),r=n(6648);e.exports="process"===r(o.process)},27486:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/web0s(?!.*chrome)/i.test(o)},30071:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,n)=>{"use strict";var o,r,i=n(19037),a=n(30071),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(o=d.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},27922:(e,t,n)=>{"use strict";var o=n(30071).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},72739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,n)=>{"use strict";var o=n(19037),r=n(82474).f,i=n(75773),a=n(11880),s=n(95014),l=n(8758),c=n(35266);e.exports=function(e,t){var n,d,u,f,b,p=e.target,m=e.global,h=e.stat;if(n=m?o:h?o[p]||s(p,{}):o[p]&&o[p].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(b=r(n,d))&&b.value:n[d],!c(m?d:p+(h?".":"#")+d,e.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(e.sham||u&&u.sham)&&i(f,"sham",!0),a(n,d,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},65773:(e,t,n)=>{"use strict";n(64043);var o=n(22615),r=n(11880),i=n(56308),a=n(3689),s=n(44201),l=n(75773),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var f=s(e),b=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=b&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!b||!p||n){var m=/./[f],h=t(f,""[e],(function(e,t,n,r,a){var s=t.exec;return s===i||s===d.exec?b&&!a?{done:!0,value:o(m,t,n,r)}:{done:!0,value:o(e,n,t,r)}:{done:!1}}));r(String.prototype,e,h[0]),r(d,f,h[1])}u&&l(d[f],"sham",!0)}},61735:(e,t,n)=>{"use strict";var o=n(97215),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},54071:(e,t,n)=>{"use strict";var o=n(46576),r=n(10509),i=n(97215),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},97215:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},86761:(e,t,n)=>{"use strict";var o=n(68844),r=n(10509),i=n(48999),a=n(36812),s=n(96004),l=n(97215),c=Function,d=o([].concat),u=o([].join),f={},b=function(e,t,n){if(!a(f,t)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";f[t]=c("C,a","return new C("+u(o,",")+")")}return f[t](e,n)};e.exports=l?c.bind:function(e){var t=r(this),n=t.prototype,o=s(arguments,1),a=function(){var n=d(o,s(arguments));return this instanceof a?b(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},22615:(e,t,n)=>{"use strict";var o=n(97215),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},41236:(e,t,n)=>{"use strict";var o=n(67697),r=n(36812),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},52743:(e,t,n)=>{"use strict";var o=n(68844),r=n(10509);e.exports=function(e,t,n){try{return o(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},46576:(e,t,n)=>{"use strict";var o=n(6648),r=n(68844);e.exports=function(e){if("Function"===o(e))return r(e)}},68844:(e,t,n)=>{"use strict";var o=n(97215),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},76058:(e,t,n)=>{"use strict";var o=n(19037),r=n(69985),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},91664:(e,t,n)=>{"use strict";var o=n(50926),r=n(54849),i=n(981),a=n(9478),s=n(44201)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},5185:(e,t,n)=>{"use strict";var o=n(22615),r=n(10509),i=n(85027),a=n(23691),s=n(91664),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},92643:(e,t,n)=>{"use strict";var o=n(68844),r=n(92297),i=n(69985),a=n(6648),s=n(34327),l=o([].push);e.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],o=0;o<t;o++){var c=e[o];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var d=n.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var o=0;o<d;o++)if(n[o]===e)return t}}}},54849:(e,t,n)=>{"use strict";var o=n(10509),r=n(981);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},27017:(e,t,n)=>{"use strict";var o=n(68844),r=n(90690),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,u,f){var b=n+e.length,p=o.length,m=d;return void 0!==u&&(u=r(u),m=c),s(f,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,b);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>p){var f=i(d/10);return 0===f?r:f<=p?void 0===o[f-1]?a(s,1):o[f-1]+a(s,1):r}c=o[d-1]}return void 0===c?"":c}))}},19037:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(e,t,n)=>{"use strict";var o=n(68844),r=n(90690),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(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,n)=>{"use strict";var o=n(76058);e.exports=o("document","documentElement")},68506:(e,t,n)=>{"use strict";var o=n(67697),r=n(3689),i=n(36420);e.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},94413:(e,t,n)=>{"use strict";var o=n(68844),r=n(3689),i=n(6648),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},33457:(e,t,n)=>{"use strict";var o=n(69985),r=n(48999),i=n(49385);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},6738:(e,t,n)=>{"use strict";var o=n(68844),r=n(69985),i=n(84091),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},618:(e,t,n)=>{"use strict";var o,r,i,a=n(59834),s=n(19037),l=n(48999),c=n(75773),d=n(36812),u=n(84091),f=n(2713),b=n(57248),p=s.TypeError,m=s.WeakMap;if(a||u.state){var h=u.state||(u.state=new m);h.get=h.get,h.has=h.has,h.set=h.set,o=function(e,t){if(h.has(e))throw new p("Object already initialized");return t.facade=e,h.set(e,t),t},r=function(e){return h.get(e)||{}},i=function(e){return h.has(e)}}else{var g=f("state");b[g]=!0,o=function(e,t){if(d(e,g))throw new p("Object already initialized");return t.facade=e,c(e,g,t),t},r=function(e){return d(e,g)?e[g]:{}},i=function(e){return d(e,g)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},93292:(e,t,n)=>{"use strict";var o=n(44201),r=n(9478),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},92297:(e,t,n)=>{"use strict";var o=n(6648);e.exports=Array.isArray||function(e){return"Array"===o(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,n)=>{"use strict";var o=n(68844),r=n(3689),i=n(69985),a=n(50926),s=n(76058),l=n(6738),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=o(u.exec),b=!u.test(c),p=function(e){if(!i(e))return!1;try{return d(c,[],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 b||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},76251:(e,t,n)=>{"use strict";var o=n(36812);e.exports=function(e){return void 0!==e&&(o(e,"value")||o(e,"writable"))}},35266:(e,t,n)=>{"use strict";var o=n(3689),r=n(69985),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===d||n!==c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},981:e=>{"use strict";e.exports=function(e){return null==e}},48999:(e,t,n)=>{"use strict";var o=n(69985);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},60598:(e,t,n)=>{"use strict";var o=n(48999);e.exports=function(e){return o(e)||null===e}},53931:e=>{"use strict";e.exports=!1},91245:(e,t,n)=>{"use strict";var o=n(48999),r=n(6648),i=n(44201)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===r(e))}},30734:(e,t,n)=>{"use strict";var o=n(76058),r=n(69985),i=n(23622),a=n(39525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},18734:(e,t,n)=>{"use strict";var o=n(54071),r=n(22615),i=n(85027),a=n(23691),s=n(93292),l=n(6310),c=n(23622),d=n(5185),u=n(91664),f=n(72125),b=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var h,g,v,y,w,x,k,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),O=o(t,_),A=function(e){return h&&f(h,"normal",e),new p(!0,e)},I=function(e){return S?(i(e),T?O(e[0],e[1],A):O(e[0],e[1])):T?O(e,A):O(e)};if(E)h=e.iterator;else if(C)h=e;else{if(!(g=u(e)))throw new b(a(e)+" is not iterable");if(s(g)){for(v=0,y=l(e);y>v;v++)if((w=I(e[v]))&&c(m,w))return w;return new p(!1)}h=d(e,g)}for(x=E?e.next:h.next;!(k=r(x,h)).done;){try{w=I(k.value)}catch(e){f(h,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},72125:(e,t,n)=>{"use strict";var o=n(22615),r=n(85027),i=n(54849);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},30974:(e,t,n)=>{"use strict";var o=n(12013).IteratorPrototype,r=n(25391),i=n(75684),a=n(55997),s=n(9478),l=function(){return this};e.exports=function(e,t,n,c){var d=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,d,!1,!0),s[d]=l,e}},91934:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(53931),a=n(41236),s=n(69985),l=n(30974),c=n(61868),d=n(49385),u=n(55997),f=n(75773),b=n(11880),p=n(44201),m=n(9478),h=n(12013),g=a.PROPER,v=a.CONFIGURABLE,y=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k=function(){return this};e.exports=function(e,t,n,a,p,h,_){l(n,t,a);var S,E,C,T=function(e){if(e===p&&D)return D;if(!w&&e&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",A=!1,I=e.prototype,j=I[x]||I["@@iterator"]||p&&I[p],D=!w&&j||T(p),N="Array"===t&&I.entries||j;if(N&&(S=c(N.call(new e)))!==Object.prototype&&S.next&&(i||c(S)===y||(d?d(S,y):s(S[x])||b(S,x,k)),u(S,O,!0,!0),i&&(m[O]=k)),g&&"values"===p&&j&&"values"!==j.name&&(!i&&v?f(I,"name","values"):(A=!0,D=function(){return r(j,this)})),p)if(E={values:T("values"),keys:h?D:T("keys"),entries:T("entries")},_)for(C in E)(w||A||!(C in I))&&b(I,C,E[C]);else o({target:t,proto:!0,forced:w||A},E);return i&&!_||I[x]===D||b(I,x,D,{name:p}),m[t]=D,E}},12013:(e,t,n)=>{"use strict";var o,r,i,a=n(3689),s=n(69985),l=n(48999),c=n(25391),d=n(61868),u=n(11880),f=n(44201),b=n(53931),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=d(d(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[p].call(e)!==e}))?o={}:b&&(o=c(o)),s(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,n)=>{"use strict";var o=n(43126);e.exports=function(e){return o(e.length)}},98702:(e,t,n)=>{"use strict";var o=n(68844),r=n(3689),i=n(69985),a=n(36812),s=n(67697),l=n(41236).CONFIGURABLE,c=n(6738),d=n(618),u=d.enforce,f=d.get,b=String,p=Object.defineProperty,m=o("".slice),h=o("".replace),g=o([].join),v=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(b(t),0,7)&&(t="["+h(b(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return a(o,"source")||(o.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},58828:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},80231:(e,t,n)=>{"use strict";var o,r,i,a,s,l=n(19037),c=n(70517),d=n(54071),u=n(99886).set,f=n(34410),b=n(4764),p=n(63221),m=n(27486),h=n(50806),g=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var k=new f,_=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&o(),e}e&&e.enter()};b||h||m||!g||!v?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),o=function(){s(_)}):h?o=function(){y.nextTick(_)}:(u=d(u,l),o=function(){u(_)}):(r=!0,i=v.createTextNode(""),new g(_).observe(i,{characterData:!0}),o=function(){i.data=r=!r}),x=function(e){k.head||o(),k.add(e)}}e.exports=x},48742:(e,t,n)=>{"use strict";var o=n(10509),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},42124:(e,t,n)=>{"use strict";var o=n(91245),r=TypeError;e.exports=function(e){if(o(e))throw new r("The method doesn't accept regular expressions");return e}},67897:(e,t,n)=>{"use strict";var o=n(19037),r=n(3689),i=n(68844),a=n(34327),s=n(61435).trim,l=n(86350),c=o.parseInt,d=o.Symbol,u=d&&d.iterator,f=/^[+-]?0x/i,b=i(f.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||u&&!r((function(){c(Object(u))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(b(f,n)?16:10))}:c},45394:(e,t,n)=>{"use strict";var o=n(67697),r=n(68844),i=n(22615),a=n(3689),s=n(20300),l=n(7518),c=n(49556),d=n(90690),u=n(94413),f=Object.assign,b=Object.defineProperty,p=r([].concat);e.exports=!f||a((function(){if(o&&1!==f({b:1},f(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var n=d(e),r=arguments.length,a=1,f=l.f,b=c.f;r>a;)for(var m,h=u(arguments[a++]),g=f?p(s(h),f(h)):s(h),v=g.length,y=0;v>y;)m=g[y++],o&&!i(b,h,m)||(n[m]=h[m]);return n}:f},25391:(e,t,n)=>{"use strict";var o,r=n(85027),i=n(98920),a=n(72739),s=n(57248),l=n(2688),c=n(36420),d=n(2713),u=d("IE_PROTO"),f=function(){},b=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&o?p(o):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F):p(o);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[u]=e):n=m(),void 0===t?n:i.f(n,t)}},98920:(e,t,n)=>{"use strict";var o=n(67697),r=n(15648),i=n(72560),a=n(85027),s=n(65290),l=n(20300);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),r=l(t),c=r.length,d=0;c>d;)i.f(e,n=r[d++],o[n]);return e}},72560:(e,t,n)=>{"use strict";var o=n(67697),r=n(68506),i=n(15648),a=n(85027),s=n(18360),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},82474:(e,t,n)=>{"use strict";var o=n(67697),r=n(22615),i=n(49556),a=n(75684),s=n(65290),l=n(18360),c=n(36812),d=n(68506),u=Object.getOwnPropertyDescriptor;t.f=o?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return a(!r(i.f,e,t),e[t])}},26062:(e,t,n)=>{"use strict";var o=n(6648),r=n(65290),i=n(72741).f,a=n(96004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===o(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(r(e))}},72741:(e,t,n)=>{"use strict";var o=n(54948),r=n(72739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},61868:(e,t,n)=>{"use strict";var o=n(36812),r=n(69985),i=n(90690),a=n(2713),s=n(81748),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(o(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},23622:(e,t,n)=>{"use strict";var o=n(68844);e.exports=o({}.isPrototypeOf)},54948:(e,t,n)=>{"use strict";var o=n(68844),r=n(36812),i=n(65290),a=n(84328).indexOf,s=n(57248),l=o([].push);e.exports=function(e,t){var n,o=i(e),c=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&l(d,n);for(;t.length>c;)r(o,n=t[c++])&&(~a(d,n)||l(d,n));return d}},20300:(e,t,n)=>{"use strict";var o=n(54948),r=n(72739);e.exports=Object.keys||function(e){return o(e,r)}},49556:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},49385:(e,t,n)=>{"use strict";var o=n(52743),r=n(85027),i=n(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e(n,o):n.__proto__=o,n}}():void 0)},65073:(e,t,n)=>{"use strict";var o=n(23043),r=n(50926);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},35899:(e,t,n)=>{"use strict";var o=n(22615),r=n(69985),i=n(48999),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!i(s=o(n,e)))return s;if(r(n=e.valueOf)&&!i(s=o(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!i(s=o(n,e)))return s;throw new a("Can't convert object to primitive value")}},19152:(e,t,n)=>{"use strict";var o=n(76058),r=n(68844),i=n(72741),a=n(7518),s=n(85027),l=r([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},50496:(e,t,n)=>{"use strict";var o=n(19037);e.exports=o},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},87073:(e,t,n)=>{"use strict";var o=n(19037),r=n(17919),i=n(69985),a=n(35266),s=n(6738),l=n(44201),c=n(72532),d=n(88563),u=n(53931),f=n(3615),b=r&&r.prototype,p=l("species"),m=!1,h=i(o.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===f)return!0;if(u&&(!b.catch||!b.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=o,!(m=n.then((function(){}))instanceof o))return!0}return!t&&(c||d)&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},17919:(e,t,n)=>{"use strict";var o=n(19037);e.exports=o.Promise},72945:(e,t,n)=>{"use strict";var o=n(85027),r=n(48999),i=n(48742);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},562:(e,t,n)=>{"use strict";var o=n(17919),r=n(86431),i=n(87073).CONSTRUCTOR;e.exports=i||!r((function(e){o.all(e).then(void 0,(function(){}))}))},38055:(e,t,n)=>{"use strict";var o=n(72560).f;e.exports=function(e,t,n){n in e||o(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=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},n=this.tail;n?n.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,n)=>{"use strict";var o=n(22615),r=n(85027),i=n(69985),a=n(6648),s=n(56308),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=o(n,e,t);return null!==c&&r(c),c}if("RegExp"===a(e))return o(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},56308:(e,t,n)=>{"use strict";var o,r,i=n(22615),a=n(68844),s=n(34327),l=n(69633),c=n(87901),d=n(83430),u=n(25391),f=n(618).get,b=n(62100),p=n(26738),m=d("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),k=(r=/b*/g,i(h,o=/a/,"a"),i(h,r,"a"),0!==o.lastIndex||0!==r.lastIndex),_=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||_||b||p)&&(g=function(e){var t,n,o,r,a,c,d,b=this,p=f(b),E=s(e),C=p.raw;if(C)return C.lastIndex=b.lastIndex,t=i(g,C,E),b.lastIndex=C.lastIndex,t;var T=p.groups,O=_&&b.sticky,A=i(l,b),I=b.source,j=0,D=E;if(O&&(A=w(A,"y",""),-1===y(A,"g")&&(A+="g"),D=x(E,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==v(E,b.lastIndex-1))&&(I="(?: "+I+")",D=" "+D,j++),n=new RegExp("^(?:"+I+")",A)),S&&(n=new RegExp("^"+I+"$(?!\\s)",A)),k&&(o=b.lastIndex),r=i(h,O?n:b,D),O?r?(r.input=x(r.input,j),r[0]=x(r[0],j),r.index=b.lastIndex,b.lastIndex+=r[0].length):b.lastIndex=0:k&&r&&(b.lastIndex=b.global?r.index+r[0].length:o),S&&r&&r.length>1&&i(m,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&T)for(r.groups=c=u(null),a=0;a<T.length;a++)c[(d=T[a])[0]]=r[d[1]];return r}),e.exports=g},69633:(e,t,n)=>{"use strict";var o=n(85027);e.exports=function(){var e=o(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,n)=>{"use strict";var o=n(22615),r=n(36812),i=n(23622),a=n(69633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!i(s,e)?t:o(a,e)}},87901:(e,t,n)=>{"use strict";var o=n(3689),r=n(19037).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},62100:(e,t,n)=>{"use strict";var o=n(3689),r=n(19037).RegExp;e.exports=o((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},26738:(e,t,n)=>{"use strict";var o=n(3689),r=n(19037).RegExp;e.exports=o((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},74684:(e,t,n)=>{"use strict";var o=n(981),r=TypeError;e.exports=function(e){if(o(e))throw new r("Can't call method on "+e);return e}},70517:(e,t,n)=>{"use strict";var o=n(19037),r=n(67697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return o[e];var t=i(o,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,n)=>{"use strict";var o=n(76058),r=n(62148),i=n(44201),a=n(67697),s=i("species");e.exports=function(e){var t=o(e);a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},55997:(e,t,n)=>{"use strict";var o=n(72560).f,r=n(36812),i=n(44201)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,i)&&o(e,i,{configurable:!0,value:t})}},2713:(e,t,n)=>{"use strict";var o=n(83430),r=n(14630),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},84091:(e,t,n)=>{"use strict";var o=n(19037),r=n(95014),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},83430:(e,t,n)=>{"use strict";var o=n(53931),r=n(84091);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:o?"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,n)=>{"use strict";var o=n(85027),r=n(52655),i=n(981),a=n(44201)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||i(n=o(s)[a])?t:r(n)}},10730:(e,t,n)=>{"use strict";var o=n(68844),r=n(68700),i=n(34327),a=n(74684),s=o("".charAt),l=o("".charCodeAt),c=o("".slice),d=function(e){return function(t,n){var o,d,u=i(a(t)),f=r(n),b=u.length;return f<0||f>=b?e?"":void 0:(o=l(u,f))<55296||o>56319||f+1===b||(d=l(u,f+1))<56320||d>57343?e?s(u,f):o:e?c(u,f,f+2):d-56320+(o-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},75984:(e,t,n)=>{"use strict";var o=n(41236).PROPER,r=n(3689),i=n(86350);e.exports=function(e){return r((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||o&&i[e].name!==e}))}},61435:(e,t,n)=>{"use strict";var o=n(68844),r=n(74684),i=n(34327),a=n(86350),s=o("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},50146:(e,t,n)=>{"use strict";var o=n(3615),r=n(3689),i=n(19037).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},13032:(e,t,n)=>{"use strict";var o=n(22615),r=n(76058),i=n(44201),a=n(11880);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return o(n,this)}),{arity:1})}},46549:(e,t,n)=>{"use strict";var o=n(50146);e.exports=o&&!!Symbol.for&&!!Symbol.keyFor},99886:(e,t,n)=>{"use strict";var o,r,i,a,s=n(19037),l=n(61735),c=n(54071),d=n(69985),u=n(36812),f=n(3689),b=n(2688),p=n(96004),m=n(36420),h=n(21500),g=n(4764),v=n(50806),y=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,_=s.Function,S=s.MessageChannel,E=s.String,C=0,T={};f((function(){o=s.location}));var O=function(e){if(u(T,e)){var t=T[e];delete T[e],t()}},A=function(e){return function(){O(e)}},I=function(e){O(e.data)},j=function(e){s.postMessage(E(e),o.protocol+"//"+o.host)};y&&w||(y=function(e){h(arguments.length,1);var t=d(e)?e:_(e),n=p(arguments,1);return T[++C]=function(){l(t,void 0,n)},r(C),C},w=function(e){delete T[e]},v?r=function(e){x.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:S&&!g?(a=(i=new S).port2,i.port1.onmessage=I,r=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!f(j)?(r=j,s.addEventListener("message",I,!1)):r="onreadystatechange"in m("script")?function(e){b.appendChild(m("script")).onreadystatechange=function(){b.removeChild(this),O(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:y,clear:w}},23648:(e,t,n)=>{"use strict";var o=n(68844);e.exports=o(1..valueOf)},27578:(e,t,n)=>{"use strict";var o=n(68700),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},65290:(e,t,n)=>{"use strict";var o=n(94413),r=n(74684);e.exports=function(e){return o(r(e))}},68700:(e,t,n)=>{"use strict";var o=n(58828);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},43126:(e,t,n)=>{"use strict";var o=n(68700),r=Math.min;e.exports=function(e){var t=o(e);return t>0?r(t,9007199254740991):0}},90690:(e,t,n)=>{"use strict";var o=n(74684),r=Object;e.exports=function(e){return r(o(e))}},88732:(e,t,n)=>{"use strict";var o=n(22615),r=n(48999),i=n(30734),a=n(54849),s=n(35899),l=n(44201),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,l=a(e,d);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!r(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},18360:(e,t,n)=>{"use strict";var o=n(88732),r=n(30734);e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},23043:(e,t,n)=>{"use strict";var o={};o[n(44201)("toStringTag")]="z",e.exports="[object z]"===String(o)},34327:(e,t,n)=>{"use strict";var o=n(50926),r=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},23691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},14630:(e,t,n)=>{"use strict";var o=n(68844),r=0,i=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}},39525:(e,t,n)=>{"use strict";var o=n(50146);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(e,t,n)=>{"use strict";var o=n(67697),r=n(3689);e.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},21500:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},59834:(e,t,n)=>{"use strict";var o=n(19037),r=n(69985),i=o.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},35405:(e,t,n)=>{"use strict";var o=n(50496),r=n(36812),i=n(96145),a=n(72560).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},96145:(e,t,n)=>{"use strict";var o=n(44201);t.f=o},44201:(e,t,n)=>{"use strict";var o=n(19037),r=n(83430),i=n(36812),a=n(14630),s=n(50146),l=n(39525),c=o.Symbol,d=r("wks"),u=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=s&&i(c,e)?c[e]:u("Symbol."+e)),d[e]}},86350:e=>{"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},34338:(e,t,n)=>{"use strict";var o=n(79989),r=n(3689),i=n(92297),a=n(48999),s=n(90690),l=n(6310),c=n(55565),d=n(76522),u=n(27120),f=n(29042),b=n(44201),p=n(3615),m=b("isConcatSpreadable"),h=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!h||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=u(a,0),b=0;for(t=-1,o=arguments.length;t<o;t++)if(g(i=-1===t?a:arguments[t]))for(r=l(i),c(b+r),n=0;n<r;n++,b++)n in i&&d(f,b,i[n]);else c(b+1),d(f,b++,i);return f.length=b,f}})},38077:(e,t,n)=>{"use strict";var o=n(79989),r=n(2960).filter;o({target:"Array",proto:!0,forced:!n(29042)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},25728:(e,t,n)=>{"use strict";var o=n(79989),r=n(2960).find,i=n(87370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},77049:(e,t,n)=>{"use strict";var o=n(79989),r=n(21055);o({target:"Array",stat:!0,forced:!n(86431)((function(e){Array.from(e)}))},{from:r})},76801:(e,t,n)=>{"use strict";var o=n(79989),r=n(84328).includes,i=n(3689),a=n(87370);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,n)=>{"use strict";var o=n(65290),r=n(87370),i=n(9478),a=n(618),s=n(72560).f,l=n(91934),c=n(27807),d=n(53931),u=n(67697),f=a.set,b=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=b(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!d&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},6203:(e,t,n)=>{"use strict";var o=n(79989),r=n(68844),i=n(94413),a=n(65290),s=n(16834),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},50886:(e,t,n)=>{"use strict";var o=n(79989),r=n(2960).map;o({target:"Array",proto:!0,forced:!n(29042)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},89730:(e,t,n)=>{"use strict";var o=n(79989),r=n(92297),i=n(19429),a=n(48999),s=n(27578),l=n(6310),c=n(65290),d=n(76522),u=n(44201),f=n(29042),b=n(96004),p=f("slice"),m=u("species"),h=Array,g=Math.max;o({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,o,u,f=c(this),p=l(f),v=s(e,p),y=s(void 0===t?p:t,p);if(r(f)&&(n=f.constructor,(i(n)&&(n===h||r(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===h||void 0===n))return b(f,v,y);for(o=new(void 0===n?h:n)(g(y-v,0)),u=0;v<y;v++,u++)v in f&&d(o,u,f[v]);return o.length=u,o}})},65137:(e,t,n)=>{"use strict";var o=n(79989),r=n(68844),i=n(10509),a=n(90690),s=n(6310),l=n(98494),c=n(34327),d=n(3689),u=n(50382),f=n(16834),b=n(97365),p=n(37298),m=n(3615),h=n(27922),g=[],v=r(g.sort),y=r(g.push),w=d((function(){g.sort(void 0)})),x=d((function(){g.sort(null)})),k=f("sort"),_=!d((function(){if(m)return m<70;if(!(b&&b>3)){if(p)return!0;if(h)return h<603;var e,t,n,o,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:t+o,v:n})}for(g.sort((function(e,t){return t.v-e.v})),o=0;o<g.length;o++)t=g[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:w||!x||!k||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var n,o,r=[],d=s(t);for(o=0;o<d;o++)o in t&&y(r,t[o]);for(u(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(r),o=0;o<n;)t[o]=r[o++];for(;o<d;)l(t,o++);return t}})},62506:(e,t,n)=>{"use strict";var o=n(79989),r=n(90690),i=n(27578),a=n(68700),s=n(6310),l=n(5649),c=n(55565),d=n(27120),u=n(76522),f=n(98494),b=n(29042)("splice"),p=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!b},{splice:function(e,t){var n,o,b,h,g,v,y=r(this),w=s(y),x=i(e,w),k=arguments.length;for(0===k?n=o=0:1===k?(n=0,o=w-x):(n=k-2,o=m(p(a(t),0),w-x)),c(w+n-o),b=d(y,o),h=0;h<o;h++)(g=x+h)in y&&u(b,h,y[g]);if(b.length=o,n<o){for(h=x;h<w-o;h++)v=h+n,(g=h+o)in y?y[v]=y[g]:f(y,v);for(h=w;h>w-o+n;h--)f(y,h-1)}else if(n>o)for(h=w-o;h>x;h--)v=h+n-1,(g=h+o-1)in y?y[v]=y[g]:f(y,v);for(h=0;h<n;h++)y[h+x]=arguments[h+2];return l(y,w-o+n),b}})},59903:(e,t,n)=>{"use strict";var o=n(36812),r=n(11880),i=n(81797),a=n(44201)("toPrimitive"),s=Date.prototype;o(s,a)||r(s,a,i)},34284:(e,t,n)=>{"use strict";var o=n(67697),r=n(41236).EXISTS,i=n(68844),a=n(62148),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);o&&!r&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},48324:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(61735),a=n(22615),s=n(68844),l=n(3689),c=n(69985),d=n(30734),u=n(96004),f=n(92643),b=n(50146),p=String,m=r("JSON","stringify"),h=s(/./.exec),g=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,S=!b||l((function(){var e=r("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 n=u(arguments),o=f(t);if(c(o)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(o)&&(t=a(o,this,p(e),t)),!d(t))return t},i(m,null,n)},T=function(e,t,n){var o=g(n,t-1),r=g(n,t+1);return h(k,e)&&!h(_,r)||h(_,e)&&!h(k,o)?"\\u"+w(v(e,0),16):e};m&&o({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(e,t,n){var o=u(arguments),r=i(S?C:m,null,o);return E&&"string"==typeof r?y(r,x,T):r}})},7629:(e,t,n)=>{"use strict";var o=n(19037);n(55997)(o.JSON,"JSON",!0)},77509:(e,t,n)=>{"use strict";n(55997)(Math,"Math",!0)},79288:(e,t,n)=>{"use strict";var o=n(79989),r=n(53931),i=n(67697),a=n(19037),s=n(50496),l=n(68844),c=n(35266),d=n(36812),u=n(33457),f=n(23622),b=n(30734),p=n(88732),m=n(3689),h=n(72741).f,g=n(82474).f,v=n(72560).f,y=n(23648),w=n(61435).trim,x=a.Number,k=s.Number,_=x.prototype,S=a.TypeError,E=l("".slice),C=l("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,n,o,r,i,a,s,l,c=p(e,"number");if(b(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=C(c,0))||45===t){if(88===(n=C(c,2))||120===n)return NaN}else if(48===t){switch(C(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=E(c,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},A=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){return f(_,e)&&m((function(){y(e)}))},j=function(e){var t=arguments.length<1?0:x(T(e));return I(this)?u(Object(t),this,j):t};j.prototype=_,A&&!r&&(_.constructor=j),o({global:!0,constructor:!0,wrap:!0,forced:A},{Number:j});var D=function(e,t){for(var n,o=i?h(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(","),r=0;o.length>r;r++)d(t,n=o[r])&&!d(e,n)&&v(e,n,g(t,n))};r&&k&&D(s.Number,k),(A||r)&&D(s.Number,x)},21552:(e,t,n)=>{"use strict";var o=n(79989),r=n(67897);o({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},60429:(e,t,n)=>{"use strict";var o=n(79989),r=n(45394);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},81919:(e,t,n)=>{"use strict";var o=n(79989),r=n(3689),i=n(65290),a=n(82474).f,s=n(67697);o({target:"Object",stat:!0,forced:!s||r((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},79434:(e,t,n)=>{"use strict";var o=n(79989),r=n(50146),i=n(3689),a=n(7518),s=n(90690);o({target:"Object",stat:!0,forced:!r||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},88052:(e,t,n)=>{"use strict";var o=n(79989),r=n(3689),i=n(90690),a=n(61868),s=n(81748);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},69358:(e,t,n)=>{"use strict";var o=n(79989),r=n(90690),i=n(20300);o({target:"Object",stat:!0,forced:n(3689)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},60228:(e,t,n)=>{"use strict";var o=n(23043),r=n(11880),i=n(65073);o||r(Object.prototype,"toString",i,{unsafe:!0})},81692:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(10509),a=n(48742),s=n(9302),l=n(18734);o({target:"Promise",stat:!0,forced:n(562)},{all:function(e){var t=this,n=a.f(t),o=n.resolve,c=n.reject,d=s((function(){var n=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,r(n,t,e).then((function(e){l||(l=!0,a[i]=e,--d||o(a))}),c)})),--d||o(a)}));return d.error&&c(d.value),n.promise}})},75089:(e,t,n)=>{"use strict";var o=n(79989),r=n(53931),i=n(87073).CONSTRUCTOR,a=n(17919),s=n(76058),l=n(69985),c=n(11880),d=a&&a.prototype;if(o({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},56697:(e,t,n)=>{"use strict";var o,r,i,a=n(79989),s=n(53931),l=n(50806),c=n(19037),d=n(22615),u=n(11880),f=n(49385),b=n(55997),p=n(14241),m=n(10509),h=n(69985),g=n(48999),v=n(767),y=n(76373),w=n(99886).set,x=n(80231),k=n(20920),_=n(9302),S=n(34410),E=n(618),C=n(17919),T=n(87073),O=n(48742),A=T.CONSTRUCTOR,I=T.REJECTION_EVENT,j=T.SUBCLASSING,D=E.getterFor("Promise"),N=E.set,M=C&&C.prototype,L=C,P=M,R=c.TypeError,z=c.document,F=c.process,B=O.f,$=B,V=!!(z&&z.createEvent&&c.dispatchEvent),U=function(e){var t;return!(!g(e)||!h(t=e.then))&&t},H=function(e,t){var n,o,r,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),r=!0)),n===e.promise?c(new R("Promise-chain cycle")):(o=U(n))?d(o,n,l,c):l(n)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},Y=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,o=e.reactions;n=o.get();)H(n,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,n){var o,r;V?((o=z.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},!I&&(r=c["on"+e])?r(o):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},G=function(e){d(w,c,(function(){var t,n=e.facade,o=e.value;if(q(e)&&(t=_((function(){l?F.emit("unhandledRejection",o,n):W("unhandledrejection",n,o)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){d(w,c,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(o){e(t,o,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},K=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new R("Promise can't be resolved itself");var o=U(t);o?x((function(){var n={done:!1};try{d(o,t,X(K,n,e),X(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){Z({done:!1},t,e)}}};if(A&&(P=(L=function(e){v(this,P),m(e),d(o,this);var t=D(this);try{e(X(K,t),X(Z,t))}catch(e){Z(t,e)}}).prototype,(o=function(e){N(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=u(P,"then",(function(e,t){var n=D(this),o=B(y(this,L));return n.parent=!0,o.ok=!h(e)||e,o.fail=h(t)&&t,o.domain=l?F.domain:void 0,0===n.state?n.reactions.add(o):x((function(){H(o,n)})),o.promise})),r=function(){var e=new o,t=D(e);this.promise=e,this.resolve=X(K,t),this.reject=X(Z,t)},O.f=B=function(e){return e===L||void 0===e?new r(e):$(e)},!s&&h(C)&&M!==Object.prototype)){i=M.then,j||u(M,"then",(function(e,t){var n=this;return new L((function(e,t){d(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete M.constructor}catch(e){}f&&f(M,P)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:L}),b(L,"Promise",!1,!0),p("Promise")},73964:(e,t,n)=>{"use strict";n(56697),n(81692),n(75089),n(58829),n(42092),n(57905)},58829:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(10509),a=n(48742),s=n(9302),l=n(18734);o({target:"Promise",stat:!0,forced:n(562)},{race:function(e){var t=this,n=a.f(t),o=n.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){r(a,t,e).then(n.resolve,o)}))}));return c.error&&o(c.value),n.promise}})},42092:(e,t,n)=>{"use strict";var o=n(79989),r=n(48742);o({target:"Promise",stat:!0,forced:n(87073).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},57905:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(53931),a=n(17919),s=n(87073).CONSTRUCTOR,l=n(72945),c=r("Promise"),d=i&&!s;o({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},30050:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(61735),a=n(86761),s=n(52655),l=n(85027),c=n(48999),d=n(25391),u=n(3689),f=r("Reflect","construct"),b=Object.prototype,p=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!u((function(){f((function(){}))})),g=m||h;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!m)return f(e,t,n);if(e===n){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 o=[null];return i(p,o,t),new(i(a,e,o))}var r=n.prototype,u=d(c(r)?r:b),g=i(e,u,t);return c(g)?g:u}})},32349:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(48999),a=n(85027),s=n(76251),l=n(82474),c=n(61868);o({target:"Reflect",stat:!0},{get:function e(t,n){var o,d,u=arguments.length<3?t:arguments[2];return a(t)===u?t[n]:(o=l.f(t,n))?s(o)?o.value:void 0===o.get?void 0:r(o.get,u):i(d=c(t))?e(d,n,u):void 0}})},52003:(e,t,n)=>{"use strict";var o=n(67697),r=n(19037),i=n(68844),a=n(35266),s=n(33457),l=n(75773),c=n(25391),d=n(72741).f,u=n(23622),f=n(91245),b=n(34327),p=n(63477),m=n(87901),h=n(38055),g=n(11880),v=n(3689),y=n(36812),w=n(618).enforce,x=n(14241),k=n(44201),_=n(62100),S=n(26738),E=k("match"),C=r.RegExp,T=C.prototype,O=r.SyntaxError,A=i(T.exec),I=i("".charAt),j=i("".replace),D=i("".indexOf),N=i("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,P=/a/g,R=new C(L)!==L,z=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,B=o&&(!R||z||_||S||v((function(){return P[E]=!1,C(L)!==L||C(P)===P||"/a/i"!==String(C(L,"i"))})));if(a("RegExp",B)){for(var $=function(e,t){var n,o,r,i,a,d,m=u(T,this),h=f(e),g=void 0===t,v=[],x=e;if(!m&&h&&g&&e.constructor===$)return e;if((h||u(T,e))&&(e=e.source,g&&(t=p(x))),e=void 0===e?"":b(e),t=void 0===t?"":b(t),x=e,_&&"dotAll"in L&&(o=!!t&&D(t,"s")>-1)&&(t=j(t,/s/g,"")),n=t,z&&"sticky"in L&&(r=!!t&&D(t,"y")>-1)&&F&&(t=j(t,/y/g,"")),S&&(e=(i=function(e){for(var t,n=e.length,o=0,r="",i=[],a=c(null),s=!1,l=!1,d=0,u="";o<=n;o++){if("\\"===(t=I(e,o)))t+=I(e,++o);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:A(M,N(e,o+1))&&(o+=2,l=!0),r+=t,d++;continue;case">"===t&&l:if(""===u||y(a,u))throw new O("Invalid capture group name");a[u]=!0,i[i.length]=[u,d],l=!1,u="";continue}l?u+=t:r+=t}return[r,i]}(e))[0],v=i[1]),a=s(C(e,t),m?this:T,$),(o||r||v.length)&&(d=w(a),o&&(d.dotAll=!0,d.raw=$(function(e){for(var t,n=e.length,o=0,r="",i=!1;o<=n;o++)"\\"!==(t=I(e,o))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),r+=t):r+="[\\s\\S]":r+=t+I(e,++o);return r}(e),n)),r&&(d.sticky=!0),v.length&&(d.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},V=d(C),U=0;V.length>U;)h($,C,V[U++]);T.constructor=$,$.prototype=T,g(r,"RegExp",$,{constructor:!0})}x("RegExp")},64043:(e,t,n)=>{"use strict";var o=n(79989),r=n(56308);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},12826:(e,t,n)=>{"use strict";var o=n(41236).PROPER,r=n(11880),i=n(85027),a=n(34327),s=n(3689),l=n(63477),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=o&&"toString"!==d.name;(u||f)&&r(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},43843:(e,t,n)=>{"use strict";var o=n(79989),r=n(68844),i=n(42124),a=n(74684),s=n(34327),l=n(27413),c=r("".indexOf);o({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},21694:(e,t,n)=>{"use strict";var o=n(10730).charAt,r=n(34327),i=n(618),a=n(91934),s=n(27807),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=o(n,r),t.index+=e.length,s(e,!1))}))},22462:(e,t,n)=>{"use strict";var o=n(22615),r=n(65773),i=n(85027),a=n(981),s=n(43126),l=n(34327),c=n(74684),d=n(54849),u=n(71514),f=n(66100);r("match",(function(e,t,n){return[function(t){var n=c(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](l(n))},function(e){var o=i(this),r=l(e),a=n(t,o,r);if(a.done)return a.value;if(!o.global)return f(o,r);var c=o.unicode;o.lastIndex=0;for(var d,b=[],p=0;null!==(d=f(o,r));){var m=l(d[0]);b[p]=m,""===m&&(o.lastIndex=u(r,s(o.lastIndex),c)),p++}return 0===p?null:b}]}))},57267:(e,t,n)=>{"use strict";var o=n(61735),r=n(22615),i=n(68844),a=n(65773),s=n(3689),l=n(85027),c=n(69985),d=n(981),u=n(68700),f=n(43126),b=n(34327),p=n(74684),m=n(71514),h=n(54849),g=n(27017),v=n(66100),y=n(44201)("replace"),w=Math.max,x=Math.min,k=i([].concat),_=i([].push),S=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var o=p(this),i=d(e)?void 0:h(e,y);return i?r(i,e,o,n):r(t,b(o),e,n)},function(e,r){var a=l(this),s=b(e);if("string"==typeof r&&-1===S(r,i)&&-1===S(r,"$<")){var d=n(t,a,s,r);if(d.done)return d.value}var p=c(r);p||(r=b(r));var h,y=a.global;y&&(h=a.unicode,a.lastIndex=0);for(var C,T=[];null!==(C=v(a,s))&&(_(T,C),y);){""===b(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),h))}for(var O,A="",I=0,j=0;j<T.length;j++){for(var D,N=b((C=T[j])[0]),M=w(x(u(C.index),s.length),0),L=[],P=1;P<C.length;P++)_(L,void 0===(O=C[P])?O:String(O));var R=C.groups;if(p){var z=k([N],L,M,s);void 0!==R&&_(z,R),D=b(o(r,void 0,z))}else D=g(N,s,M,L,R,r);M>=I&&(A+=E(s,I,M)+D,I=M+N.length)}return A+E(s,I)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||T)},61514:(e,t,n)=>{"use strict";var o=n(22615),r=n(65773),i=n(85027),a=n(981),s=n(74684),l=n(70953),c=n(34327),d=n(54849),u=n(66100);r("search",(function(e,t,n){return[function(t){var n=s(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](c(n))},function(e){var o=i(this),r=c(e),a=n(t,o,r);if(a.done)return a.value;var s=o.lastIndex;l(s,0)||(o.lastIndex=0);var d=u(o,r);return l(o.lastIndex,s)||(o.lastIndex=s),null===d?-1:d.index}]}))},28436:(e,t,n)=>{"use strict";var o=n(79989),r=n(61435).trim;o({target:"String",proto:!0,forced:n(75984)("trim")},{trim:function(){return r(this)}})},58373:(e,t,n)=>{"use strict";n(35405)("asyncIterator")},37855:(e,t,n)=>{"use strict";var o=n(79989),r=n(19037),i=n(22615),a=n(68844),s=n(53931),l=n(67697),c=n(50146),d=n(3689),u=n(36812),f=n(23622),b=n(85027),p=n(65290),m=n(18360),h=n(34327),g=n(75684),v=n(25391),y=n(20300),w=n(72741),x=n(26062),k=n(7518),_=n(82474),S=n(72560),E=n(98920),C=n(49556),T=n(11880),O=n(62148),A=n(83430),I=n(2713),j=n(57248),D=n(14630),N=n(44201),M=n(96145),L=n(35405),P=n(13032),R=n(55997),z=n(618),F=n(2960).forEach,B=I("hidden"),$=z.set,V=z.getterFor("Symbol"),U=Object.prototype,H=r.Symbol,Y=H&&H.prototype,W=r.RangeError,G=r.TypeError,q=r.QObject,Q=_.f,X=S.f,Z=x.f,K=C.f,J=a([].push),ee=A("symbols"),te=A("op-symbols"),ne=A("wks"),oe=!q||!q.prototype||!q.prototype.findChild,re=function(e,t,n){var o=Q(U,t);o&&delete U[t],X(e,t,n),o&&e!==U&&X(U,t,o)},ie=l&&d((function(){return 7!==v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?re:X,ae=function(e,t){var n=ee[e]=v(Y);return $(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),b(e);var o=m(t);return b(n),u(ee,o)?(n.enumerable?(u(e,B)&&e[B][o]&&(e[B][o]=!1),n=v(n,{enumerable:g(0,!1)})):(u(e,B)||X(e,B,g(1,v(null))),e[B][o]=!0),ie(e,o,n)):X(e,o,n)},le=function(e,t){b(e);var n=p(t),o=y(n).concat(fe(n));return F(o,(function(t){l&&!i(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=i(K,this,t);return!(this===U&&u(ee,t)&&!u(te,t))&&(!(n||!u(this,t)||!u(ee,t)||u(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),o=m(t);if(n!==U||!u(ee,o)||u(te,o)){var r=Q(n,o);return!r||!u(ee,o)||u(n,B)&&n[B][o]||(r.enumerable=!0),r}},ue=function(e){var t=Z(p(e)),n=[];return F(t,(function(e){u(ee,e)||u(j,e)||J(n,e)})),n},fe=function(e){var t=e===U,n=Z(t?te:p(e)),o=[];return F(n,(function(e){!u(ee,e)||t&&!u(U,e)||J(o,ee[e])})),o};c||(T(Y=(H=function(){if(f(Y,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=D(e),n=function(e){var o=void 0===this?r:this;o===U&&i(n,te,e),u(o,B)&&u(o[B],t)&&(o[B][t]=!1);var a=g(1,e);try{ie(o,t,a)}catch(e){if(!(e instanceof W))throw e;re(o,t,a)}};return l&&oe&&ie(U,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),T(H,"withoutSetter",(function(e){return ae(D(e),e)})),C.f=ce,S.f=se,E.f=le,_.f=de,w.f=x.f=ue,k.f=fe,M.f=function(e){return ae(N(e),e)},l&&(O(Y,"description",{configurable:!0,get:function(){return V(this).description}}),s||T(U,"propertyIsEnumerable",ce,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(y(ne),(function(e){L(e)})),o({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),P(),R(H,"Symbol"),j[B]=!0},86544:(e,t,n)=>{"use strict";var o=n(79989),r=n(67697),i=n(19037),a=n(68844),s=n(36812),l=n(69985),c=n(23622),d=n(34327),u=n(62148),f=n(8758),b=i.Symbol,p=b&&b.prototype;if(r&&l(b)&&(!("description"in p)||void 0!==b().description)){var m={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(p,this)?new b(e):void 0===e?b():b(e);return""===e&&(m[t]=!0),t};f(h,b),h.prototype=p,p.constructor=h;var g="Symbol(description detection)"===String(b("description detection")),v=a(p.valueOf),y=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);u(p,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),n=g?k(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),o({global:!0,constructor:!0,forced:!0},{Symbol:h})}},43975:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(36812),a=n(34327),s=n(83430),l=n(46549),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,d[n]=t,n}})},84254:(e,t,n)=>{"use strict";n(35405)("iterator")},59749:(e,t,n)=>{"use strict";n(37855),n(43975),n(81445),n(48324),n(79434)},81445:(e,t,n)=>{"use strict";var o=n(79989),r=n(36812),i=n(30734),a=n(23691),s=n(83430),l=n(46549),c=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(r(c,e))return c[e]}})},69373:(e,t,n)=>{"use strict";var o=n(35405),r=n(13032);o("toPrimitive"),r()},66793:(e,t,n)=>{"use strict";var o=n(76058),r=n(35405),i=n(55997);r("toStringTag"),i(o("Symbol"),"Symbol")},47522:(e,t,n)=>{"use strict";var o=n(19037),r=n(66338),i=n(33265),a=n(57612),s=n(75773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in r)r[c]&&l(o[c]&&o[c].prototype);l(i)},76265:(e,t,n)=>{"use strict";var o=n(19037),r=n(66338),i=n(33265),a=n(752),s=n(75773),l=n(55997),c=n(44201)("iterator"),d=a.values,u=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(t){e[c]=d}if(l(e,t,!0),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in r)u(o[f]&&o[f].prototype,f);u(i,"DOMTokenList")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};return(()=>{"use strict";n.r(o),n.d(o,{Editor:()=>Ms,ItemStore:()=>Jc,LevelEditor:()=>xc,Presenter:()=>_s,ValidationPresenter:()=>gc,bundleLoader:()=>ld,engine:()=>Za,renderingContext:()=>Cr,system:()=>br,utils:()=>ur,validate:()=>ls});var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,l="ArrayBuffer"in e;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(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 f(e){return"string"!=typeof e&&(e=String(e)),e}function b(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?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 m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&i&&((n=e)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=v(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):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=m(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=m(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(i)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),r=o?o[1]:"utf-8";return t.readAsText(e,r),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=f(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),b(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),b(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),b(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(t,n){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,r,i=(n=n||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new p(n.headers)),this.method=(o=n.method||this.method||"GET",r=o.toUpperCase(),w.indexOf(r)>-1?r:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in e)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}})),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 p(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(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 S=[301,302,303,307,308];_.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})};var E=e.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function C(t,n){return new Promise((function(o,r){var a=new x(t,n);if(a.signal&&a.signal.aborted)return r(new E("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}if(s.onload=function(){var e,t,n={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,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 n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();try{t.append(o,r)}catch(e){console.warn("Response "+e.message)}}})),t)};0===a.url.indexOf("file://")&&(s.status<200||s.status>599)?n.status=200:n.status=s.status,n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout((function(){o(new _(r,n))}),0)},s.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},s.onabort=function(){setTimeout((function(){r(new E("Aborted","AbortError"))}),0)},s.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i?s.responseType="blob":l&&(s.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof p||e.Headers&&n.headers instanceof e.Headers)){var d=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){d.push(u(e)),s.setRequestHeader(e,f(n.headers[e]))})),a.headers.forEach((function(e,t){-1===d.indexOf(t)&&s.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}C.polyfill=!0,e.fetch||(e.fetch=C,e.Headers=p,e.Request=x,e.Response=_);n(62506),n(38077),n(60228),n(59749),n(86544),n(84254),n(752),n(21694),n(76265),n(76801),n(43843),n(25728),n(69358),n(47522),n(50886),n(69373),n(59903),n(79288),n(74289),n(48888),n(3925),n(45195),n(10373),n(83500),n(49361),n(14223),n(58965),n(54458),n(94825),n(56270);function T(e){return(T="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 O=globalThis.__rdfjson_namespaces,A=0,I=function(e,t,n){return O[e]||(O[e]=t),{abbrev:e,ns:t,localname:n,full:t+n,pretty:"".concat(e,":").concat(n)}},j=function(e){var t=Object.keys(O).find((function(t){return 0===e.indexOf(O[t])}));if(t)return I(t,O[t],e.substring(O[t].length));var n=e.lastIndexOf("/"),o=e.lastIndexOf("#");return o>n&&(n=o),I("ns".concat(A+=1),e.substring(0,n+1),e.substring(n+1))};const D=function(e){var t=Object.keys(O).find((function(t){return 0===e.indexOf(O[t])}));return t?I(t,O[t],e.substring(O[t].length)).pretty:e},N=function(e){return j(e).pretty},M=function(e){var t=e.split(":");return 2===t.length&&O.hasOwnProperty(t[0])?O[t[0]]+t[1]:e},L=function(e,t){"string"==typeof e?O[e]=t:"object"===T(e)&&Object.keys(e).forEach((function(t){O[t]=e[t]}))};n(85110),n(67483),n(17299),n(12766),n(20539),n(40454),n(45872),n(30695),n(72870),n(2458),n(13090),n(64120),n(4099),n(75397),n(7741),n(15796),n(42781);function P(e){return(P="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 R=function(e){return void 0!==e&&(null===e||"object"===P(e)||Array.isArray(e)||"function"==typeof e)},z=function(e){return"string"==typeof e||e instanceof String},F=function(e,t,n){0===e[t][n].length&&(delete e[t][n],0===Object.keys(e[t]).length&&delete e[t])},B=function(e){if(!R(e[0]))throw new Error("Graph is not a object.");if(!z(e[1]))throw new Error("Subject is not a string.");if(!z(e[2]))throw new Error("Predicate is not a string.");if(!R(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.")},$=function(e,t){return e===t||null==e&&e===t||(z(e)?z(t)?e===t:e===t.value:z(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},V=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},U=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const H={isObject:R,isString:z,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&$(e.o,t.o)},add:function(e,t,n,o,r){if(B([e,t,n,o]),void 0===e[t])return e[t]={},e[t][n]=[o],o;if(void 0===e[t][n])return e[t][n]=[o],o;var i,a=e[t][n];if(!r)for(i=a.length-1;i>=0;i--)if($(o,a[i]))return a[i];return a.push(o),o},remove:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r])){var a=i[r];return i.splice(r,1),F(e,t,n),a}}},contains:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r]))return i[r]}},cleanup:F,checkForWrongArgs:B,objectEquals:$,findDirectOrRDFValue:function(e,t,n){var o=e.find(t,n);if(o.length>0)return"bnode"!==o[0].getType()?o[0].getValue():e.findFirstValue(o[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],n={};return Object.keys(e).forEach((function(o){var r=e[o];n[o]={},Object.keys(r).forEach((function(e){var i=r[e];if(1===i.length)n[o][e]=[V(i[0])];else if(t){var a=[],s=new Set;n[o][e]=a,r[e].forEach((function(e){var t=V(e),n=U(t);s.has(n)||(s.add(n),a.push(t))}))}else{var l=[];n[o][e]=l,r[e].forEach((function(e){l.push(V(e))}))}}))})),n}};function Y(e){return(Y="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 W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,G(o.key),o)}}function G(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:String(t)}var q=function(){function e(t,n,o,r,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=n,this._p=o,this._o=r,this._o._statement=this,this._asserted=i}var t,n,o;return t=e,(n=[{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=M(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=M(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())}}])&&W(t.prototype,n),o&&W(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Q=(n(91756),n(65273),n(2568));const X=function(e,t){var n=[],o=new Set((t||[]).map((function(e){return M(e)}))),r=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var n=e.getDatatype();return n&&"http://www.w3.org/2001/XMLSchema#string"!==n&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==n&&(t+="^^".concat(n)),t},s=function(e,t){var n=i[e]||{rels:[]};i[e]=n,n.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!o.has(i)){var l="bnode"===e.getType(),c=e.isSubjectBlank();if(c||l)return r.push(e),c&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),c?i:t+i));n.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Q(e.rels.join(""))})),r.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)),n.push(t.join(""))})),n.sort(),Q(n.join(""))};class Z{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}Z.prototype.termType="BlankNode";const K=Z;class J{equals(e){return!!e&&e.termType===this.termType}}J.prototype.termType="DefaultGraph",J.prototype.value="";const ee=J;const te=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 n=e.fromTerm(t.subject),o=e.fromTerm(t.predicate),r=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(n,o,r,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class ne{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}ne.prototype.termType="Literal";const oe=ne;class re{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}re.prototype.termType="NamedNode";const ie=re;class ae{constructor(e,t,n,o){this.subject=e,this.predicate=t,this.object=n,this.graph=o}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)}}ae.prototype.termType="Quad",ae.prototype.value="";const se=ae;class le{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}le.prototype.termType="Variable";const ce=le,de=new ie("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),ue=new ie("http://www.w3.org/2001/XMLSchema#string");class fe{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new ee}}namedNode(e){return new ie(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new K(e)}literal(e,t){return"string"==typeof t?new oe(e,t,de):new oe(e,"",t||ue)}variable(e){return new ce(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new se(e,t,n,o)}fromTerm(e){return te(this,e)}fromQuad(e){return te(this,e)}}fe.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const be=new fe;var pe=function(e){return 0===e.indexOf("_:")?e.substring(2):e},me=function(e){return e.find().map((function(e){var t=e.getSubject(),n=e.getPredicate(),o=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return be.literal(e.value,e.lang);if(e.datatype){var t=be.namedNode(e.datatype);return be.literal(e.value,t)}return be.literal(e.value);case"uri":return be.namedNode(e.value);case"bnode":return be.blankNode(pe(e.value))}}(e.getObject()),r=e.getNamedGraph()?be.namedNode(e.getNamedGraph()):void 0;return be.quad(e.isSubjectBlank()?be.blankNode(pe(t)):be.namedNode(t),be.namedNode(n),o,r)}))},he=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ge=function(e,t){var n=t||new Graph,o=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:he(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){n.add("BlankNode"===e.subject.termType?he(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?he(e.predicate.value):e.predicate.value,o(e))}))};function ve(e){return(ve="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 ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xe(o.key),o)}}function xe(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:String(t)}var ke=function(e){return 0===e.length?e:[e[0]]},_e=function e(t,n,o){return{object:function(r){for(var i=0;i<n.length;i++){var a=void 0;if(o)a=n[i].getSubject();else{var s=n[i].getType();if("uri"===s||"bnode"===s)continue;a=n[i].getValue()}var l=t.find(a,r);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(r){var i,a=[];if(!0===o)for(i=0;i<n.length;i++)a=a.concat(t.find(n[i].getSubject(),r));else for(i=0;i<n.length;i++){var s=n[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(n[i].getValue(),r)))}return e(t,a)},constr:function(r,i){var a=i;H.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<n.length;l++){var c=o?n[l].getSubject():n[l].getValue();t.find(c,r,a).length>0&&s.push(n[l])}return e(t,s,o)},each:function(r,i){if(!0===o)for(var a=0;a<n.length;a++){var s="_:"===n[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||r(e(t,n[a],o))}else for(var l=0;l<n.length;l++)r(e(t,n[l],o))},statements:function(){return n},nodes:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:n[r].getSubject()})}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getObject());return t},values:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(n[r].getSubject())}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getValue());return t},firstValue:function(e){if(!0===o)for(var t=0;t<n.length;t++){var r="_:"===n[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===r)return n[t].getSubject()}else for(var i=0;i<n.length;i++)if(null==e||e===n[i].getType())return n[i].getValue()}}},Se=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;ye(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==n&&this.validate(),this._changed=!1}var t,n,o;return t=e,(n=[{key:"addQuads",value:function(e){return ge(e,this),this}},{key:"toQuads",value:function(){return me(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var n=e._graph[t];return Object.keys(n).find((function(e){return n[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 n,o={},r=e.find(),i=0;i<r.length;i++){var a=r[i],s=a.getSubject(),l=a.getPredicate(),c=a.getCleanObject();t&&(c.ng=t),0===s.indexOf("_:")&&(n=o[s]||this._newBNode(),o[s]=n,s=n),0===l.indexOf("_:")&&(n=o[l]||this._newBNode(),o[l]=n,l=n),"bnode"===c.type&&(n=o[c.value]||this._newBNode(),o[c.value]=n,c.value=n),this.add(s,l,c)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;if(e instanceof q){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),c=H.add(this._graph,s,i,l,r);return!0!==o&&this.setChanged(),this._get(s,i,c,!0)}return this.create(e,t,n,!0,o,r)}},{key:"addL",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.lang=o),this.create(e,t,r,!0)}},{key:"addD",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.datatype=M(o)),this.create(e,t,r,!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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=n;if(a=null==a?this._newBNode():M(a),s=null==s?this._newBNode():M(s),null==l?l={type:"bnode",value:this._newBNode()}:H.isString(l)?l={type:"uri",value:M(l)}:"object"!==ve(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=M(l.value)),l.datatype&&(l.datatype=M(l.datatype))),!1!==o){var c=H.add(this._graph,a,s,l,i);return!0!==r&&this.setChanged(),this._getOrCreate(a,s,c,!0)}return new q(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,n){for(var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.find(e,t,n),i=0;i<r.length;i++)this.remove(r[i],o)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getSubject(),o=e.getPredicate(),r=e.getObject();this._trackBNodes(n,o,r),null!=H.remove(this._graph,n,o,r)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,n){var o=e,r=t,i=n;if("string"==typeof o&&(o=M(o)),"string"==typeof r&&(r=M(r)),"object"===ve(i)&&null!==i&&"uri"===i.type?i.value=M(i.value):"string"==typeof i&&(i={type:"uri",value:M(i)}),null==i)return null==r?null==o?this._find():this._findS(o):null==o?this._findP(r):this._findSP(o,r);if(null==r)return null==o?this._findO(i):this._findSO(o,i);if(null==o)return this._findPO(r,i);var a=this._get(o,r,H.contains(this._graph,o,r,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var n=this.find(e,t);if(n.length>0)return n[0].getValue()}},{key:"projection",value:function(e,t,n){var o=this,r={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?o.findPath(e,a):o.find(e,a);if(s.length>0)switch("*"===i[0]?r[i.substr(1)]=s.map((function(e){return e.getValue()})):r[i]=s[0].getValue(),n||"none"){case"statement":r["*".concat(i)]=s;break;case"objects":r["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":r["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),r}},{key:"subjects",value:function(e,t){return _e(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return _e(this,ke(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return _e(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return _e(this,ke(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,n){var o,r=this;if(Array.isArray(e)&&0!==e.length){var i=o=this._newBNode(),a=e.length-1;e.forEach((function(e,o){r[t](i,"rdf:first",e,n),o!==a?i=r.add(i,"rdf:rest").getValue():r.add(i,"rdf:rest","rdf:nil")}))}else o=M("rdf:nil");return o}},{key:"removeList",value:function(e){var t=!1,n="object"===ve(e)?e.value:e;try{var o=M("rdf:nil");for(t=n===o;n!==o&&null!=n;){var r=this.findFirstValue(n,"rdf:rest");this.findAndRemove(n),t=null!=(n=r)}}catch(e){return console.warn("Invalid list for object: ".concat(n)),!1}return t}},{key:"getList",value:function(e){var t="object"===ve(e)?e.value:M(e),n=[];try{for(var o=M("rdf:nil");t!==o&&null!=t;)n.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 n}},{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 n=this,o=!1;return this.find(e,t).forEach((function(e){n.removeList(e.getValue())&&(n.remove(e),o=!0)})),o}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,H.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");n[t]=n[e],delete n[e]}return this.forEach((function(n,o,r){"uri"===r.type&&r.value===e&&(r.value=t),n===t&&r._statement&&(r._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,n){var o=this._graph;if(o.hasOwnProperty(e)){if(o.hasOwnProperty(t)){if(!n)throw new Error("Cannot replace subject with target URI since it already exists.");var r=o[t],i=o[e];Object.keys(i).forEach((function(e){if(r.hasOwnProperty(e)){var t=r[e],n=i[e].filter((function(e){return!t.find((function(t){return H.objectEquals(t,e)}))}));r[e]=t.concat(n)}else r[e]=i[e]})),delete o[e]}else o[t]=o[e],delete o[e];this.forEach((function(n,o,r){"bnode"===r.type&&r.value===e&&(r.value=t,r.type="uri"),n===t&&r._statement&&(r._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(n){var o=t[n];Object.keys(o).forEach((function(t){o[t].forEach((function(o){e(n,t,o)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:"equals",value:function(e,t){return X(this,t)===X(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,n,o){if(null!=n)return this._getOrCreate(e,t,n,o)}},{key:"_getOrCreate",value:function(e,t,n,o){return null==n._statement&&(n._statement=new q(this,e,t,n,o)),n._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 n=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(o){return n._get(e,t,o,!0)}))}},{key:"_findS",value:function(e){var t=this,n=this._graph[e],o=Object.keys(n||{}).map((function(n){return t._findSP(e,n)}));return Array.prototype.concat.apply([],o)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(n,o,r){t.push(e._get(n,o,r,!0))})),t}},{key:"_findP",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){e===r&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findO",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){H.objectEquals(e,i)&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findSO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===r&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_findPO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===i&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(n){var o=e[n];H.isObject(o)?Object.keys(o).forEach((function(e){var r=o[e];Array.isArray(r)?r.forEach((function(o,r){H.isObject(o)?null!=o.type?H.isString(o.value)?t.nr+=1:(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Element ".concat(r+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:n,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:n,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,n;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(n="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[n])return this._bnodes[n]=!0,n;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(n){0===n.indexOf("_:")&&(e._bnodes[n]=!0);var o=t[n];Object.keys(o).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),o[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,n){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===n.type&&(this._bnodes[n.value]=!0)}}])&&we(t.prototype,n),o&&we(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(9081),n(24601);n(73220),n(17554),n(39385),n(80528),n(7517),n(25787);function Ee(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 Ce(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Te(o.key),o)}}function Te(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ee(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:String(t)}function Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t,n){return Me(t),function(e,t){if(t&&("object"===Ee(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,De()?Reflect.construct(t,n||[],Me(e).constructor):t.apply(e,n))}function Ie(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,n)}function n(){return je(e,arguments,Me(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ne(n,e)}(e)}function je(e,t,n){if(De())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Ne(r,n.prototype),r}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function Ne(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Me(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function Le(e){return(Le="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 Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fe(o.key),o)}}function ze(e,t,n){return t&&Re(e.prototype,t),n&&Re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Le(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:String(t)}var Be={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#"},$e={rdftype:"".concat(Be.rdf,"type"),rdfssco:"".concat(Be.rdfs,"subClassOf"),rdfsdomain:"".concat(Be.rdfs,"domain"),rdfsrange:"".concat(Be.rdfs,"range"),rdfsspo:"".concat(Be.rdfs,"subPropertyOf"),rdfsClass:"".concat(Be.rdfs,"Class"),owlClass:"".concat(Be.owl,"Class"),owlObjectProperty:"".concat(Be.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Be.owl,"DatatypeProperty"),rdfProperty:"".concat(Be.rdf,"Property")},Ve=function(e,t,n){for(var o={},r=!1,i=e.find(t,n),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(o[s.getLanguage()||""]=s.getValue()||"",r=!0)}if(r)return null==o.en&&null!=o[""]&&(o.en=o[""],delete o[""]),o},Ue=function(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o];n[r]||(t.push(r),n[r]=!0)}return t},He=function(){function e(t,n){Pe(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=n}return ze(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=Ve(this._graph,this._uri,"".concat(Be.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=Ve(this._graph,this._uri,"".concat(Be.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=Ue(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=Ue(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 n=0;n<this._parents.length;n++)this._allDomainOf=this._allDomainOf.concat(this._parents[n].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Ye=function(e,t,n,o){for(var r=0;r<n.length;r++){var i=n[r],a=i.getSubject(),s=e[a];if(s||(s=new He(a,i.getGraph()),e[a]=s,t.push(s)),o){var l=i.getValue(),c=e[l];c||(c=new He(l,i.getGraph()),e[l]=c,t.push(c)),s.addParent(c)}}},We=function(){function e(){Pe(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return ze(e,[{key:"addGraph",value:function(e){Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.rdfsClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.owlClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdfssco,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.rdfProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdfsspo,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlDatatypeProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlObjectProperty)),function(e,t,n){for(var o,r,i,a=e.find(null,$e.rdfsdomain,null),s=0;s<a.length;s++)o=t[(i=a[s]).getSubject()],r=n[i.getValue()],null!=o&&null!=r&&o.setDomain(r);a=e.find(null,$e.rdfsrange,null);for(var l=0;l<a.length;l++)o=t[(i=a[l]).getSubject()],r=i.getValue(),null!=o&&null!=r&&o.setRange(r)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],n=!1;t||(t=new He(e,new Se),this._cidx[e]=t,this._carr.push(t),n=!0);for(var o=0;o<this._carr.length;o++){var r=this._carr[o];(n&&r!==t||-1===r.getParents().indexOf(t)&&r!==t)&&r.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=[],n=[e].concat(e.getChildren()),o=0;o<n.length;o++)for(var r=n[o],i=r.getGraph.find(null,$e.rdftype,r.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();We.prototype.ns=Be,We.prototype.terms=$e,We.global=new We;function Ge(e){return(Ge="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 qe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qe(o.key),o)}}function Qe(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ge(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:String(t)}var Xe=function(e,t){if(null==t)return!0;var n=e.getConstraints(),o=!0;return null!=n&&(Object.keys(n).find((function(e){var r,i,a,s,l=t[e];return""!==l&&"*"!==l&&(r=l,i=n[e],a=Array.isArray(r)?r:null!=r?[r]:[],s=Array.isArray(i)?i:null!=i?[i]:[],a.length!==s.length||!a.every((function(e){return s.includes(e)})))&&(o=!1,!0)})),o)},Ze=function(e){this.filterObj={},this.registry=e};Ze.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Ze.prototype[e]=function(t){var n={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),this.filterObj[e]=n;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=M(t);break;default:this.filterObj[e]=t||!0}return this}}));var Ke=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,n,o;return t=e,(n=[{key:"calculatePriority",value:function(e,t){var n=0;if(t.itemtype&&(n+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(n+=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&&(n+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){n+=this.priorities.DATATYPE;var o=e.getDatatype(),r=!0;if(o&&(r=Array.isArray(o)?!o.includes(t.datatype):o!==t.datatype),r)return-1}return t.rdftype&&(n+=this.priorities.RDFTYPE,!function(e,t){var n=e.getConstraints();return null!=n&&n[rdfType]===t}(e,t.rdftype))||t.constraint&&(n+=this.priorities.CONSTRAINT,!Xe(e,t.constraint))||t.predicate&&(n+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(n+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(n+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:n:-1}},{key:"getPriority",value:function(e,t){for(var n=0;n<this.components.length;n++)if(this.components[n].component===t){var o=this.calculatePriority(e,this.components[n].filter);if(o>=0)return o}return 0}},{key:"getComponentBefore",value:function(e,t){var n=this.getPriority(e,t);return this.getComponent(e,n)}},{key:"getComponent",value:function(e,t){for(var n,o,r,i=-1,a=0;a<this.components.length;a++)r=this.components[a],(o=this.calculatePriority(e,r.filter))>i&&(void 0===t||o<t)&&(n=r,i=o);if(n)return n.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Ze(this).itemtype(e)}},{key:"choices",value:function(e){return new Ze(this).choices(e)}},{key:"nodetype",value:function(e){return new Ze(this).nodetype(e)}},{key:"datatype",value:function(e){return new Ze(this).datatype(e)}},{key:"rdftype",value:function(e){return new Ze(this).rdftype(e)}},{key:"constraint",value:function(e){return new Ze(this).constraint(e)}},{key:"predicate",value:function(e){return new Ze(this).predicate(e)}},{key:"style",value:function(e){return new Ze(this).style(e)}},{key:"item",value:function(e){return new Ze(this).item(e)}},{key:"check",value:function(e){return new Ze(this).check(e)}}])&&qe(t.prototype,n),o&&qe(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(89730),n(12826);const Je=function(){this.__data__=[],this.size=0};const et=function(e,t){return e===t||e!=e&&t!=t};const tt=function(e,t){for(var n=e.length;n--;)if(et(e[n][0],t))return n;return-1};var nt=Array.prototype.splice;const ot=function(e){var t=this.__data__,n=tt(t,e);return!(n<0)&&(n==t.length-1?t.pop():nt.call(t,n,1),--this.size,!0)};const rt=function(e){var t=this.__data__,n=tt(t,e);return n<0?void 0:t[n][1]};const it=function(e){return tt(this.__data__,e)>-1};const at=function(e,t){var n=this.__data__,o=tt(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}st.prototype.clear=Je,st.prototype.delete=ot,st.prototype.get=rt,st.prototype.has=it,st.prototype.set=at;const lt=st;const ct=function(){this.__data__=new lt,this.size=0};const dt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const ut=function(e){return this.__data__.get(e)};const ft=function(e){return this.__data__.has(e)};const bt="object"==typeof global&&global&&global.Object===Object&&global;var pt="object"==typeof self&&self&&self.Object===Object&&self;const mt=bt||pt||Function("return this")();const ht=mt.Symbol;var gt=Object.prototype,vt=gt.hasOwnProperty,yt=gt.toString,wt=ht?ht.toStringTag:void 0;const xt=function(e){var t=vt.call(e,wt),n=e[wt];try{e[wt]=void 0;var o=!0}catch(e){}var r=yt.call(e);return o&&(t?e[wt]=n:delete e[wt]),r};var kt=Object.prototype.toString;const _t=function(e){return kt.call(e)};var St=ht?ht.toStringTag:void 0;const Et=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":St&&St in Object(e)?xt(e):_t(e)};const Ct=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Tt=function(e){if(!Ct(e))return!1;var t=Et(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Ot=mt["__core-js_shared__"];var At,It=(At=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";const jt=function(e){return!!It&&It in e};var Dt=Function.prototype.toString;const Nt=function(e){if(null!=e){try{return Dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Mt=/^\[object .+?Constructor\]$/,Lt=Function.prototype,Pt=Object.prototype,Rt=Lt.toString,zt=Pt.hasOwnProperty,Ft=RegExp("^"+Rt.call(zt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Bt=function(e){return!(!Ct(e)||jt(e))&&(Tt(e)?Ft:Mt).test(Nt(e))};const $t=function(e,t){return null==e?void 0:e[t]};const Vt=function(e,t){var n=$t(e,t);return Bt(n)?n:void 0};const Ut=Vt(mt,"Map");const Ht=Vt(Object,"create");const Yt=function(){this.__data__=Ht?Ht(null):{},this.size=0};const Wt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Gt=Object.prototype.hasOwnProperty;const qt=function(e){var t=this.__data__;if(Ht){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Gt.call(t,e)?t[e]:void 0};var Qt=Object.prototype.hasOwnProperty;const Xt=function(e){var t=this.__data__;return Ht?void 0!==t[e]:Qt.call(t,e)};const Zt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ht&&void 0===t?"__lodash_hash_undefined__":t,this};function Kt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Kt.prototype.clear=Yt,Kt.prototype.delete=Wt,Kt.prototype.get=qt,Kt.prototype.has=Xt,Kt.prototype.set=Zt;const Jt=Kt;const en=function(){this.size=0,this.__data__={hash:new Jt,map:new(Ut||lt),string:new Jt}};const tn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const nn=function(e,t){var n=e.__data__;return tn(t)?n["string"==typeof t?"string":"hash"]:n.map};const on=function(e){var t=nn(this,e).delete(e);return this.size-=t?1:0,t};const rn=function(e){return nn(this,e).get(e)};const an=function(e){return nn(this,e).has(e)};const sn=function(e,t){var n=nn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ln.prototype.clear=en,ln.prototype.delete=on,ln.prototype.get=rn,ln.prototype.has=an,ln.prototype.set=sn;const cn=ln;const dn=function(e,t){var n=this.__data__;if(n instanceof lt){var o=n.__data__;if(!Ut||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new cn(o)}return n.set(e,t),this.size=n.size,this};function un(e){var t=this.__data__=new lt(e);this.size=t.size}un.prototype.clear=ct,un.prototype.delete=dt,un.prototype.get=ut,un.prototype.has=ft,un.prototype.set=dn;const fn=un;const bn=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const pn=function(){try{var e=Vt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const mn=function(e,t,n){"__proto__"==t&&pn?pn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var hn=Object.prototype.hasOwnProperty;const gn=function(e,t,n){var o=e[t];hn.call(e,t)&&et(o,n)&&(void 0!==n||t in e)||mn(e,t,n)};const vn=function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?mn(n,s,l):gn(n,s,l)}return n};const yn=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const wn=function(e){return null!=e&&"object"==typeof e};const xn=function(e){return wn(e)&&"[object Arguments]"==Et(e)};var kn=Object.prototype,_n=kn.hasOwnProperty,Sn=kn.propertyIsEnumerable;const En=xn(function(){return arguments}())?xn:function(e){return wn(e)&&_n.call(e,"callee")&&!Sn.call(e,"callee")};const Cn=Array.isArray;const Tn=function(){return!1};var On="object"==typeof exports&&exports&&!exports.nodeType&&exports,An=On&&"object"==typeof module&&module&&!module.nodeType&&module,In=An&&An.exports===On?mt.Buffer:void 0;const jn=(In?In.isBuffer:void 0)||Tn;var Dn=/^(?:0|[1-9]\d*)$/;const Nn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Dn.test(e))&&e>-1&&e%1==0&&e<t};const Mn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ln={};Ln["[object Float32Array]"]=Ln["[object Float64Array]"]=Ln["[object Int8Array]"]=Ln["[object Int16Array]"]=Ln["[object Int32Array]"]=Ln["[object Uint8Array]"]=Ln["[object Uint8ClampedArray]"]=Ln["[object Uint16Array]"]=Ln["[object Uint32Array]"]=!0,Ln["[object Arguments]"]=Ln["[object Array]"]=Ln["[object ArrayBuffer]"]=Ln["[object Boolean]"]=Ln["[object DataView]"]=Ln["[object Date]"]=Ln["[object Error]"]=Ln["[object Function]"]=Ln["[object Map]"]=Ln["[object Number]"]=Ln["[object Object]"]=Ln["[object RegExp]"]=Ln["[object Set]"]=Ln["[object String]"]=Ln["[object WeakMap]"]=!1;const Pn=function(e){return wn(e)&&Mn(e.length)&&!!Ln[Et(e)]};const Rn=function(e){return function(t){return e(t)}};var zn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fn=zn&&"object"==typeof module&&module&&!module.nodeType&&module,Bn=Fn&&Fn.exports===zn&&bt.process;const $n=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||Bn&&Bn.binding&&Bn.binding("util")}catch(e){}}();var Vn=$n&&$n.isTypedArray;const Un=Vn?Rn(Vn):Pn;var Hn=Object.prototype.hasOwnProperty;const Yn=function(e,t){var n=Cn(e),o=!n&&En(e),r=!n&&!o&&jn(e),i=!n&&!o&&!r&&Un(e),a=n||o||r||i,s=a?yn(e.length,String):[],l=s.length;for(var c in e)!t&&!Hn.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Nn(c,l))||s.push(c);return s};var Wn=Object.prototype;const Gn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wn)};const qn=function(e,t){return function(n){return e(t(n))}};const Qn=qn(Object.keys,Object);var Xn=Object.prototype.hasOwnProperty;const Zn=function(e){if(!Gn(e))return Qn(e);var t=[];for(var n in Object(e))Xn.call(e,n)&&"constructor"!=n&&t.push(n);return t};const Kn=function(e){return null!=e&&Mn(e.length)&&!Tt(e)};const Jn=function(e){return Kn(e)?Yn(e):Zn(e)};const eo=function(e,t){return e&&vn(t,Jn(t),e)};const to=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var no=Object.prototype.hasOwnProperty;const oo=function(e){if(!Ct(e))return to(e);var t=Gn(e),n=[];for(var o in e)("constructor"!=o||!t&&no.call(e,o))&&n.push(o);return n};const ro=function(e){return Kn(e)?Yn(e,!0):oo(e)};const io=function(e,t){return e&&vn(t,ro(t),e)};var ao="object"==typeof exports&&exports&&!exports.nodeType&&exports,so=ao&&"object"==typeof module&&module&&!module.nodeType&&module,lo=so&&so.exports===ao?mt.Buffer:void 0,co=lo?lo.allocUnsafe:void 0;const uo=function(e,t){if(t)return e.slice();var n=e.length,o=co?co(n):new e.constructor(n);return e.copy(o),o};const fo=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const bo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};const po=function(){return[]};var mo=Object.prototype.propertyIsEnumerable,ho=Object.getOwnPropertySymbols;const go=ho?function(e){return null==e?[]:(e=Object(e),bo(ho(e),(function(t){return mo.call(e,t)})))}:po;const vo=function(e,t){return vn(e,go(e),t)};const yo=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const wo=qn(Object.getPrototypeOf,Object);const xo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yo(t,go(e)),e=wo(e);return t}:po;const ko=function(e,t){return vn(e,xo(e),t)};const _o=function(e,t,n){var o=t(e);return Cn(e)?o:yo(o,n(e))};const So=function(e){return _o(e,Jn,go)};const Eo=function(e){return _o(e,ro,xo)};const Co=Vt(mt,"DataView");const To=Vt(mt,"Promise");const Oo=Vt(mt,"Set");const Ao=Vt(mt,"WeakMap");var Io=Nt(Co),jo=Nt(Ut),Do=Nt(To),No=Nt(Oo),Mo=Nt(Ao),Lo=Et;(Co&&"[object DataView]"!=Lo(new Co(new ArrayBuffer(1)))||Ut&&"[object Map]"!=Lo(new Ut)||To&&"[object Promise]"!=Lo(To.resolve())||Oo&&"[object Set]"!=Lo(new Oo)||Ao&&"[object WeakMap]"!=Lo(new Ao))&&(Lo=function(e){var t=Et(e),n="[object Object]"==t?e.constructor:void 0,o=n?Nt(n):"";if(o)switch(o){case Io:return"[object DataView]";case jo:return"[object Map]";case Do:return"[object Promise]";case No:return"[object Set]";case Mo:return"[object WeakMap]"}return t});const Po=Lo;var Ro=Object.prototype.hasOwnProperty;const zo=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ro.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Fo=mt.Uint8Array;const Bo=function(e){var t=new e.constructor(e.byteLength);return new Fo(t).set(new Fo(e)),t};const $o=function(e,t){var n=t?Bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var Vo=/\w*$/;const Uo=function(e){var t=new e.constructor(e.source,Vo.exec(e));return t.lastIndex=e.lastIndex,t};var Ho=ht?ht.prototype:void 0,Yo=Ho?Ho.valueOf:void 0;const Wo=function(e){return Yo?Object(Yo.call(e)):{}};const Go=function(e,t){var n=t?Bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const qo=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Bo(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return $o(e,n);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 Go(e,n);case"[object Map]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Uo(e);case"[object Set]":return new o;case"[object Symbol]":return Wo(e)}};var Qo=Object.create;const Xo=function(){function e(){}return function(t){if(!Ct(t))return{};if(Qo)return Qo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Zo=function(e){return"function"!=typeof e.constructor||Gn(e)?{}:Xo(wo(e))};const Ko=function(e){return wn(e)&&"[object Map]"==Po(e)};var Jo=$n&&$n.isMap;const er=Jo?Rn(Jo):Ko;const tr=function(e){return wn(e)&&"[object Set]"==Po(e)};var nr=$n&&$n.isSet;const or=nr?Rn(nr):tr;var rr={};rr["[object Arguments]"]=rr["[object Array]"]=rr["[object ArrayBuffer]"]=rr["[object DataView]"]=rr["[object Boolean]"]=rr["[object Date]"]=rr["[object Float32Array]"]=rr["[object Float64Array]"]=rr["[object Int8Array]"]=rr["[object Int16Array]"]=rr["[object Int32Array]"]=rr["[object Map]"]=rr["[object Number]"]=rr["[object Object]"]=rr["[object RegExp]"]=rr["[object Set]"]=rr["[object String]"]=rr["[object Symbol]"]=rr["[object Uint8Array]"]=rr["[object Uint8ClampedArray]"]=rr["[object Uint16Array]"]=rr["[object Uint32Array]"]=!0,rr["[object Error]"]=rr["[object Function]"]=rr["[object WeakMap]"]=!1;const ir=function e(t,n,o,r,i,a){var s,l=1&n,c=2&n,d=4&n;if(o&&(s=i?o(t,r,i,a):o(t)),void 0!==s)return s;if(!Ct(t))return t;var u=Cn(t);if(u){if(s=zo(t),!l)return fo(t,s)}else{var f=Po(t),b="[object Function]"==f||"[object GeneratorFunction]"==f;if(jn(t))return uo(t,l);if("[object Object]"==f||"[object Arguments]"==f||b&&!i){if(s=c||b?{}:Zo(t),!l)return c?ko(t,io(s,t)):vo(t,eo(s,t))}else{if(!rr[f])return i?t:{};s=qo(t,f,l)}}a||(a=new fn);var p=a.get(t);if(p)return p;a.set(t,s),or(t)?t.forEach((function(r){s.add(e(r,n,o,r,t,a))})):er(t)&&t.forEach((function(r,i){s.set(i,e(r,n,o,i,t,a))}));var m=u?void 0:(d?c?Eo:So:c?ro:Jn)(t);return bn(m||t,(function(r,i){m&&(r=t[i=r]),gn(s,i,e(r,n,o,i,t,a))})),s};const ar=function(e){return ir(e,5)};n(6203),n(65137),n(64043),n(57267),n(52003),n(22462);var sr=n(30381),lr=n.n(sr),cr=function(e,t){var n=t||lr().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(n))return{value:e[n],precision:"exact",lang:n};if(n.indexOf("_")>-1&&e.hasOwnProperty(n.substr(0,2)))return{value:e[n.substr(0,2)],precision:"coarsen",lang:n.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 o=Object.keys(e);return o.length>0?{value:e[o[0]],precision:"any",lang:o[0]}:{precision:"none"}},dr=function(e,t,n){var o=e.find(t,n);if(o.length>0){for(var r={},i=0;i<o.length;i++)r[o[i].getLanguage()||""]=o[i].getValue();return r}};const ur={getLocalizedValue:cr,getLocalizedMap:function(e,t,n){var o,r=t,i=n;e.getItem?(o=e.getGraph(),r=e.getValue(),i=e.getItem().getURIValueLabelProperties()):o=e,null!=i&&0!==i.length||(i=br.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],c=0;c<s.length;c++){var d=dr(o,r,s[c]);d&&l.push(cr(d).value)}if(l.length>0)return{"":l.join(" ")}}else{var u=dr(o,r,s);if(u)return u}}},cloneArrayWithLabels:function(e,t){for(var n=[],o=0;o<e.length;o++){var r=e[o],i=cr(r.label),a={value:r.value,label:i.value||r.value||""};!0===r.top&&(a.top=!0),null!=r.children&&(a.children=ar(r.children)),!1===r.selectable?a.selectable=!1:a.selectable=!0,n.push(a)}return!0!==t&&n.sort((function(e,t){return e.label>t.label?1:-1})),n},extractGist:function(e,t){var n=t;if(n){-1===n.indexOf("$1")&&(n+="$1");var o="".concat(n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),r=new RegExp(o).exec(e);if(null!=r)return r[1]}return e},findFirstValue:function(e,t,n,o){var r=e.findFirstValueBinding(e.match(t,n,o),!1);if(r)return r.getChoice?cr(r.getChoice().label).value:r.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 n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}};var fr=function(e,t,n,o){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var r=ur.getLocalizedMap(o,t,e.getURIValueLabelProperties());if(!r){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");r=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:r}}return{value:t,label:t}};const br={hasDnDSupport:function(e){return!1},addDnD:function(e,t,n){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,n,o){return fr(e,t,0,o)},getFallbackChoice:fr,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 n=t.getChildrenRootUri(),o=n.lastIndexOf("#"),r=-1===o?"".concat(n,"#"):n.substring(0,o+1),i=t.getGraph()._graph;;){var a=r+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},pr=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 mr(e){return(mr="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 hr,gr,vr,yr,wr,xr="body",kr=[{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"}}],_r={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 Ke,editorRegistry:new Ke,chooserRegistry:new Ke,renderPresenter:function(e,t,n){var o=_r.presenterRegistry.getComponent(t.getItem());o&&(_r.prePresenterRenderer(e,t,n),o(e,t,n),_r.postPresenterRenderer(e,t,n))},renderEditor:function(e,t,n){var o=_r.editorRegistry.getComponent(t.getItem());o&&(_r.preEditorRenderer(e,t,n),o(e,t,n),_r.postEditorRenderer(e,t,n))},renderValidationMessage:function(e,t,n){},renderSelect:function(){},getChoice:function(e,t){var n=_r.chooserRegistry.getComponent(e);if(null==n)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return n.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=_r.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,n){var o=_r.chooserRegistry.getComponent(e.getItem());if(null!=o&&o&&o.getChoice)o.show(e,t,n);else{var r=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(r))}},getExtLinkClass:function(){return""},setMessages:function(e){hr=e},getMessages:function(){return hr||pr},getLanguageList:function(){return gr||kr},getPrimaryLanguageList:function(){if(!yr){for(var e,t=_r.getLanguageList(),n=vr||[],o=[],r=0;r<t.length;r++){var i=t[r].value,a=n.indexOf(i);""===i&&(e=t[r]),-1!==a&&(o[a]=t[r])}yr=[];for(var s=0;s<o.length;s++)"object"===mr(o[s])&&yr.push(o[s]);yr.length>0&&e&&yr.splice(0,0,e)}return yr},getNonPrimaryLanguageList:function(){if(!wr){var e=_r.getPrimaryLanguageList().length>0,t=_r.getLanguageList(),n=vr||[];wr=[];for(var o=0;o<t.length;o++){var r=t[o].value;-1===n.indexOf(r)&&(e&&""===r||wr.push(t[o]))}}return wr},setPrimaryLanguageCodes:function(e){wr=null,yr=null,vr=e},setLanguageList:function(e){gr=e},filterTranslations:function(e,t,n){for(var o={},r=0;r<e.length;r++){var i=e[r].getLanguage();""===i||null==i?o.noLanguage=!0:i===t?o.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?o.close=!0:0===i.indexOf(n)&&(o.defaultLanguage=!0)}return o.best?e.filter((function(e){return e.getLanguage()===t})):o.close?e.filter((function(e){var n=e.getLanguage();return n&&(-1!==n.indexOf(t)||-1!==t.indexOf(n))})):o.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(n)})):e},setPopoverContainer:function(e){xr=e},getPopoverContainer:function(){return xr},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(){}};br.getChoice=_r.getChoice;var Sr=function(e,t,n){new(0,n.view.constructor)({parentView:n.view,renderingParams:n.view.renderingParams,messages:n.view.messages,binding:t,topLevel:!1,compact:n.view.compact,showLanguage:n.view.showLanguage,showDescription:n.view.showDescription,defaultLanguage:n.view.defaultLanguage,filterTranslations:n.view.filterTranslations,popupOnLabel:n.view.popupOnLabel,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e)};_r.presenterRegistry.itemtype("group").register(Sr),_r.presenterRegistry.itemtype("propertygroup").register(Sr);var Er=function(e,t,n){var o=new(0,n.view.constructor)({parentView:n.view,renderingParams:n.view.renderingParams,messages:n.view.messages,languages:n.view.languages,binding:t,topLevel:!1,compact:n.view.compact,popupOnLabel:n.view.popupOnLabel,showDescription:n.view.showDescription,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e);n.view._subEditors.push(o)};_r.editorRegistry.itemtype("group").register(Er),_r.editorRegistry.itemtype("propertygroup").register(Er);const Cr=_r;var Tr=n(19755),Or=n.n(Tr);n(34338),n(88052),n(32349),n(81919),n(30050),n(77049),n(34284);function Ar(e){return(Ar="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 Ir(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,jr(o.key),o)}}function jr(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ar(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ar(t)?t:String(t)}var Dr=0,Nr=function(){function e(t){var n=t.item,o=t.statement,r=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=n,this._statement=o,this._graph=r,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Dr),this._matchingCode=i||"correct",Dr+=1}var t,n,o;return t=e,(n=[{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 ur.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var n=e,o=this.getItem().getValueTemplate();o&&n.length>0&&(-1===o.indexOf("$1")&&(o+="$1"),n=o.replace("$1",n)),this.setValue(n,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 n=this._item.getPattern();return n?null!=(t=ur.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(n,"$")).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}}])&&Ir(t.prototype,n),o&&Ir(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Mr={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 Lr(e){return(Lr="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 Pr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Rr(o.key),o)}}function Rr(e){var t=function(e,t){if("object"!=Lr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Lr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lr(t)?t:String(t)}var zr=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,n,o;return t=e,(n=[{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=Mr.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=Mr.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=Mr.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=Mr.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()}}])&&Pr(t.prototype,n),o&&Pr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fr(e){return(Fr="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 Br(e){return function(e){if(Array.isArray(e))return $r(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 $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(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 $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Vr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ur(o.key),o)}}function Ur(e){var t=function(e,t){if("object"!=Fr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fr(t)?t:String(t)}function Hr(e,t,n){return t=Gr(t),function(e,t){if(t&&("object"===Fr(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,n||[],Gr(e).constructor):t.apply(e,n))}function Yr(){return(Yr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Wr(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Wr(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gr(e)););return e}function Gr(e){return(Gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qr(e,t){return(qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Qr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Hr(this,t,[e]);var o=e.constraints,r=void 0===o?[]:o,i=e.childrenRootUri,a=void 0===i?null:i;return n._constraints=r,n._childBindings=n._item.getChildren().map((function(){return[]})),n._rootUri=a,n._validPredicate=!0,n._validObject=!0,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate()),n._validObject=n._isValidObjectValue(n._statement.getValue(),n._statement.getType())),n._cachedChildBindings=null,n}var n,o,r;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&&qr(e,t)}(t,e),n=t,(o=[{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 n=e[0].getItem(),o=this._item.getChildren(),r=function(){if(n===o[i]){var r=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new zr(n);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(r),r.increment()}),t),1}},i=o.length;i>=0&&!r();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e.getItem()===t[n]){this._childBindings[n].splice(this._childBindings[n].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(),n=t.length;n>=0;n--)if(e===t[n])return this._childBindings[n]}},{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,Br(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),Yr(Gr(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(n){return n.forEach((function(n){return n.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,n){return("URI"!==this.getItem().getNodetype()||"uri"===n)&&Yr(Gr(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&Vr(n.prototype,o),r&&Vr(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function Xr(e){return(Xr="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 Zr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Kr(o.key),o)}}function Kr(e){var t=function(e,t){if("object"!=Xr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Xr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xr(t)?t:String(t)}var Jr=0,ei=function(e,t,n){null==n||""===n||Array.isArray(n)&&0===n.length?delete e[t]:e[t]=n},ti=function(){function e(t){var n=t.source,o=void 0===n?{}:n,r=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=o,this._bundle=r,Jr+=1,this._internalId=Jr,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=ur.getLocalizedValue}var t,n,o;return t=e,(n=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){ei(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){ei(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),n=this._itemStore.getItem(e);this._source=null==n?t:this._itemStore.createExtendedSource(n.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,n){var o=this.getSource(n);return t?ur.getLocalizedValue(o[e]):ur.getLocalizedValue(o[e]).value}},{key:"_setText",value:function(e,t,n){var o=this.getSource(!0);o[e]=this._setLangHash(o[e],t,n),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){ei(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,n){var o=this.getSource(n).text||{};return t?ur.getLocalizedValue(o[e]):ur.getLocalizedValue(o[e]).value}},{key:"setText",value:function(e,t,n){var o=this.getSource(!0),r=o.text=o.text||{};r[e]=this._setLangHash(r[e],t,n),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var n=this.getSource(!0),o=n.text=n.text||{};ei(o,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 n=this.getSource(!0);"boolean"==typeof e?!0===e?n.enhanced=!0:delete n.enhanced:(n.enhanced="boolean"==typeof n.enhanced?{}:n.enhanced||{},t?n.enhanced[e]=!0:(delete n.enhanced[e],0===Object.keys(n).length&&delete n.enhanced)),this.setExtends(this.getExtends())}},{key:"getProperty",value:function(e){var t=null,n=this.getSource(e);return n&&null!=(t=n.property)&&""!==t&&(t=M(t)),t}},{key:"setProperty",value:function(e){ei(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 M(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){ei(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var n={};return Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),n}return t}},{key:"setConstraints",value:function(e){ei(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?M(e):e})):t}},{key:"setDeps",value:function(e){ei(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 M(e)})):M(t):t}},{key:"setDatatype",value:function(e){ei(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){ei(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){ei(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){ei(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){ei(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){ei(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){ei(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){ei(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){ei(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var n=this.getSource(t);return!!this.hasStyle(e,t)||null!=n.cls&&n.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){ei(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var n=this.getSource(t);return!(!n||!("styles"in n))&&n.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 n=this._itemStore.getItem(this.getExtends());return null==n?this._source:n.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,n){var o=e||{};if("string"==typeof t)"string"==typeof n?o[n]=t:o[""]=t;else if("object"===Xr(t)&&null!==t)return t;return o}}])&&Zr(t.prototype,n),o&&Zr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ni(e){return(ni="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 oi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ri(o.key),o)}}function ri(e){var t=function(e,t){if("object"!=ni(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ni(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ni(t)?t:String(t)}function ii(e,t,n){return t=li(t),function(e,t){if(t&&("object"===ni(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,n||[],li(e).constructor):t.apply(e,n))}function ai(){return(ai="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=si(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function si(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=li(e)););return e}function li(e){return(li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ci(e,t){return(ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var di=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ii(this,t,[e]))._children=e.children,null!=n._source.content&&(n._source.items=n._source.content,delete n._source.content),n._forceChildrenClones=!1,n._parent=null,n}var n,o,r;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&&ci(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){var t,n=e&&this.isExtention(),o=n?this._ochildren:this._children;return null==o&&(o=this._itemStore.getChildren(this,n),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=o).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(n?"o":"","children")]=o),o}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){ai(li(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return ai(li(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&oi(n.prototype,o),r&&oi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ti);function ui(e){return(ui="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 fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,pi(o.key),o)}}function pi(e){var t=function(e,t){if("object"!=ui(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ui(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ui(t)?t:String(t)}function mi(e,t,n){return t=vi(t),function(e,t){if(t&&("object"===ui(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,n||[],vi(e).constructor):t.apply(e,n))}function hi(){return(hi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=gi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function gi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=vi(e)););return e}function vi(e){return(vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yi(e,t){return(yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wi=function(e){function t(){return fi(this,t),mi(this,t,arguments)}var n,o,r;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&&yi(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var n=function(){return{min:1,max:1,pref:1}},o=hi(vi(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=o.map((function(e){var t=Object.create(e);return t.getCardinality=n,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&bi(n.prototype,o),r&&bi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(di);function xi(e){return(xi="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 ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Si(o.key),o)}}function Si(e){var t=function(e,t){if("object"!=xi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=xi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xi(t)?t:String(t)}function Ei(e,t,n){return t=Ci(t),function(e,t){if(t&&("object"===xi(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,n||[],Ci(e).constructor):t.apply(e,n))}function Ci(e){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ti(e,t){return(Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Oi=function(e){function t(){return ki(this,t),Ei(this,t,arguments)}var n,o,r;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&&Ti(e,t)}(t,e),n=t,(o=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&_i(n.prototype,o),r&&_i(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ti);function Ai(e){return(Ai="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 Ii(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ji(o.key),o)}}function ji(e){var t=function(e,t){if("object"!=Ai(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ai(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ai(t)?t:String(t)}function Di(e,t,n){return t=Li(t),function(e,t){if(t&&("object"===Ai(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,n||[],Li(e).constructor):t.apply(e,n))}function Ni(){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Mi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Mi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Li(e)););return e}function Li(e){return(Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pi(e,t){return(Pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ri=function(e){null!=e&&e.forEach((function(e){e.value=M(e.value)}))},zi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Di(this,t,[e]))._ontologyStore=e.ontologyStore,n}var n,o,r;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&&Pi(e,t)}(t,e),n=t,(o=[{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 n=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(n&&Ri(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(n&&Ri(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){Ni(Li(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(n){t._dynamicChoices=n,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?M(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?M(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?M(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()}}])&&Ii(n.prototype,o),r&&Ii(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ti);n(28436);function Fi(e){return(Fi="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 Bi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$i(o.key),o)}}function $i(e){var t=function(e,t){if("object"!=Fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fi(t)?t:String(t)}function Vi(e,t,n){return t=Yi(t),function(e,t){if(t&&("object"===Fi(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,n||[],Yi(e).constructor):t.apply(e,n))}function Ui(){return(Ui="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Hi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Hi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Yi(e)););return e}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wi(e,t){return(Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Gi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Vi(this,t,[e]))._validObject=!0,n._validPredicate=!0,n._excludeFromTreeValidityCheck=!1,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate(),!0),n._validObject=n._isValidObjectValue(n._statement.getValue())),n}var n,o,r;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&&Wi(e,t)}(t,e),n=t,(o=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var n="string"==typeof e?e.trim():e,o=this._validObject;this._isValidObjectValue(n)?(this._statement.setValue(n,t),this._validObject=!0,!0===o||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==n&&null!==n||this._statement.setValue("",t),this._validObject=!1,!1!==o&&!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(M(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Ui(Yi(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}}])&&Bi(n.prototype,o),r&&Bi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function qi(e){return(qi="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 Qi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xi(o.key),o)}}function Xi(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=qi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qi(t)?t:String(t)}function Zi(e,t,n){return t=ea(t),function(e,t){if(t&&("object"===qi(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,n||[],ea(e).constructor):t.apply(e,n))}function Ki(){return(Ki="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ji(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ji(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ea(e)););return e}function ea(e){return(ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ta(e,t){return(ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var na="http://www.w3.org/2000/01/rdf-schema#label",oa="http://www.w3.org/2000/01/rdf-schema#seeAlso",ra=function(e){function t(e){var n,o=e.choice,r=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),(n=Zi(this,t,[{choice:o,item:r,statement:i,matchingCode:a}]))._choice=o,n._validPredicate=null!=r.getProperty(),n}var n,o,r;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&&ta(e,t)}(t,e),n=t,r=[{key:"seeAlso",get:function(){return oa}}],(o=[{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(Mr.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==Mr.WRONG_VALUE||this.setMatchingCode(Mr.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,n,o){var r=this.getValue();Ki(ea(t.prototype),"setValue",this).call(this,e,n,o);var i=this._statement.getGraph();if(i.findAndRemove(r,na,void 0,o),i.findAndRemove(r,oa,void 0,o),null!=e&&null!=n&&(n.seeAlso&&n.inlineSeeAlso&&i.create(e,oa,n.seeAlso,!0,o),!0===n.inlineLabel)){var a=n.label||{};Object.keys(a).forEach((function(t){return i.create(e,na,{value:a[t],lang:t,type:"literal"},!0,o)}))}}}])&&Qi(n.prototype,o),r&&Qi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gi);function ia(e){return(ia="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 aa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,sa(o.key),o)}}function sa(e){var t=function(e,t){if("object"!=ia(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ia(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ia(t)?t:String(t)}function la(e,t,n){return t=ca(t),function(e,t){if(t&&("object"===ia(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,n||[],ca(e).constructor):t.apply(e,n))}function ca(e){return(ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function da(e,t){return(da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ua=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=la(this,t,[e]))._objectBinding=e.objectBinding,n}var n,o,r;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&&da(e,t)}(t,e),n=t,(o=[{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(){}}])&&aa(n.prototype,o),r&&aa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ra);function fa(e){return(fa="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 ba(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,pa(o.key),o)}}function pa(e){var t=function(e,t){if("object"!=fa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=fa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fa(t)?t:String(t)}function ma(e,t,n){return t=ha(t),function(e,t){if(t&&("object"===fa(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,n||[],ha(e).constructor):t.apply(e,n))}function ha(e){return(ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ga(e,t){return(ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var va=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=ma(this,t,[e]);var o=e.statement,r=e.constraints;n._statement=void 0,n._validPredicate=!0,n._constraints=[];var i,a=n._item.getChildren(),s=a[1];i=s instanceof di?new Qr({item:s,statement:o,constraints:r}):s instanceof zi?new ra({item:s,statement:o}):new Gi({item:s,statement:o});var l=new ua({item:a[0],objectBinding:i});return n.addChildBinding(l),n.addChildBinding(i),n}var n,o,r;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&&ga(e,t)}(t,e),n=t,(o=[{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()}}])&&ba(n.prototype,o),r&&ba(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Qr);function ya(e){return(ya="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 wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ka(o.key),o)}}function ka(e){var t=function(e,t){if("object"!=ya(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ya(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ya(t)?t:String(t)}function _a(e,t,n){return t=Ca(t),function(e,t){if(t&&("object"===ya(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,n||[],Ca(e).constructor):t.apply(e,n))}function Sa(){return(Sa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ea(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ea(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ca(e)););return e}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ta(e,t){return(Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Oa,Aa,Ia,ja,Da,Na=function(e){function t(){return wa(this,t),_a(this,t,arguments)}var n,o,r;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&&Ta(e,t)}(t,e),n=t,(o=[{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),Sa(Ca(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&xa(n.prototype,o),r&&xa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gi);function Ma(e){return(Ma="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 La,Pa,Ra,za,Fa,Ba,$a=!1,Va=function(e,t,n){var o=new Qr({item:n,childrenRootUri:t,graph:e});return Oa(o),Aa(o),o},Ua=function(e,t,n){var o=new Qr({item:n,childrenRootUri:t,graph:e});return Oa(o),$a=!0,Oa(o),$a=!1,Aa(o),o},Ha=function(e,t,n,o){var r=e.findProperties(t),i=[],a={};if(null!=o){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof di&&t.getChildren().forEach(e)}(e),i.push(e))};o.forEach((function(e){var t=n.getItem(e);null!=t?t instanceof di&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=n.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 r.forEach((function(e){if(!a[e]){var t=n.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),n.createTemplateFromChildren(i)},Ya=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},Wa=function(e,t){var n,o,r=t.getChildren()[1],i=e.getGraph();r instanceof di?(n=i.create(e.getChildrenRootUri(),"",null,!1),o=Da(i,n.getSubject(),r)):n=r instanceof zi?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new va({item:t,statement:n,constraints:o});return e.addChildBinding(a),r instanceof di&&r.getChildren().forEach((function(e){Ga(a.getObjectBinding(),e)})),a},Ga=function(e,t,n){return t instanceof Oi?function(e,t){if(!t.getProperty()){var n=new Na({item:t,statement:null,matchingCode:Mr.OK});return e.addChildBinding(n),n}var o=e.getGraph(),r=t.getNodetype(),i={value:"",type:"literal"};"URI"===r?i.type="uri":"DATATYPE_LITERAL"===r&&(i.datatype=Ya(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=o.create(e.getChildrenRootUri(),t.getProperty(),i,!1),c=new Gi({item:t,statement:l});return e.addChildBinding(c),c}(e,t):t instanceof wi?Wa(e,t):t instanceof di?function(e,t,n){var o,r;if(void 0!==t.getProperty()){var i=e.getGraph();o=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),r=Da(i,o.getValue(),t)}var a=new Qr({item:t,statement:o,constraints:r});e.addChildBinding(a);var s=t._source["@id"];if(s){if(n[s])return a;n[s]=!0}return a}(e,t,n||{}):t instanceof zi?function(e,t){var n=e.getGraph(),o=t.getNodetype(),r={type:"literal",value:""};"DATATYPE_LITERAL"===o?r.datatype=Ya(t):"RESOURCE"!==o&&"URI"!==o||(r.type="uri");var i=n.create(e.getChildrenRootUri(),t.getProperty(),r,!1),a=new ra({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(Fa(t,s,n),!0),a}(e,t):void 0};Oa=function(e){$a&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&Oa(e)})),e.getItem().getChildren().forEach((function(t){$a?void 0!==t.getProperty()&&La(e,t):La(e,t)}))};La=function(e,t){t instanceof zi?function(e,t){if(null!=t.getProperty()){var n=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Ia(e)){var o=Pa(t,e),r=Ra(t,e),i=za(t,e);if(o&&r&&i||$a){var a=Fa(t,e.getValue(),e.getGraph());if(void 0!==a){ja(e);var s=o?Mr.OK:Mr.WRONG_NODETYPE;r?i?a.mismatch&&(s=Mr.WRONG_VALUE):s=Mr.WRONG_PATTERN:s=Mr.WRONG_DATATYPE,n.push(new ra({item:t,statement:e,choice:a,matchingCode:s}))}}}})),n.length>0&&e.addChildBindings(n)}}(e,t):t instanceof wi?function(e,t){var n,o,r,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),c=[];l.find(e.getChildrenRootUri()).forEach((function(e){Ia(e)&&Pa(s,e)&&za(s,e)&&void 0!==(r=Fa(a,e.getPredicate(),e.getGraph()))&&(o=null,s instanceof di?void 0!==(n=Ba(l,e.getValue(),s))&&(ja(e),o=new va({item:t,statement:e,constraints:n}),Oa(o.getObjectBinding())):s instanceof zi?void 0!==(i=Fa(s,e.getValue(),e.getGraph()))&&(ja(e),(o=new va({item:t,statement:e})).getObjectBinding().setChoice(i)):(ja(e),o=new va({item:t,statement:e})),null!==o&&(o.getPredicateBinding().setChoice(r),c.push(o)))})),c.length>0&&e.addChildBindings(c)}(e,t):t instanceof di?function(e,t){var n,o,r,i,a=e.getGraph();void 0!==t.getProperty()?(n=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(o=[],n.forEach((function(e){if(Ia(e)){var n=za(t,e),s=Pa(t,e);if((n&&s||$a)&&(void 0!==(r=Ba(a,e.getValue(),t))||$a)){var l=s?Mr.OK:Mr.WRONG_NODETYPE;n?void 0===r&&(l=Mr.MISSING_CONSTRAINTS):l=Mr.WRONG_PATTERN,ja(e),i=new Qr({item:t,statement:e,constraints:r,matchingCode:l}),o.push(i),l===Mr.OK&&Oa(i)}}})),e.addChildBindings(o)):(i=new Qr({item:t}),e.addChildBindings([i]),Oa(i))}(e,t):t instanceof Oi&&function(e,t){var n=[];null==t.getProperty()?n.push(new Na({item:t,statement:null,matchingCode:Mr.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Ia(e)&&za(t,e)){var o=Pa(t,e),r=Ra(t,e);if(o&&(r||t.hasStyle("relaxedDatatypeMatch"))||$a){ja(e);var i=o?Mr.OK:Mr.WRONG_NODETYPE;r||(i=Mr.WRONG_DATATYPE),n.push(new Gi({item:t,statement:e,matchingCode:i}))}}})),n.length>0&&e.addChildBindings(n)}(e,t)},Pa=function(e,t){var n=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===n;case"RESOURCE":return"uri"===n||"bnode"===n;case"URI":return"uri"===n;case"BLANK":return"bnode"===n}return!1},Ra=function(e,t){var n="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==n||(Array.isArray(n)?-1!==n.indexOf(t.getDatatype()):t.getDatatype()===n)},za=function(e,t){var n=e.getPattern(),o=ur.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==n)try{return new RegExp("^".concat(n,"$")).test(o)}catch(e){return!0}return!0},Ba=function(e,t,n){var o,r=n.getConstraints(),i=[],a=function(n,r){if(1!==(o=e.find(t,n,{type:"uri",value:r})).length)return!1;i.push(o[0])};if("object"===Ma(r)&&null!==r){for(var s,l=Object.keys(r),c=function(){var e=l[d],t=r[e];if(t instanceof Array){var n=!0;if(t.forEach((function(t){!1!==a(e,t)&&(n=!1)})),n)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},d=0;d<l.length;d++)if(s=c())return s.v;return i}return[]},Da=function(e,t,n){var o=[],r=n.getConstraints();return"object"===Ma(r)&&null!==r&&Object.keys(r).forEach((function(n){var i=r[n];Array.isArray(i)?o.push(e.create(t,n,{type:"uri",value:i[0]},!1)):o.push(e.create(t,n,{type:"uri",value:i},!1))})),o},Fa=function(e,t,n){var o,r;if(e.hasChoices()){for(r=e.getChoices(),o=0;o<r.length;o++)if(r[o].value===t)return r[o];if(!e.hasStyle("strictmatch")||$a)return{value:t,label:{"":t},mismatch:!0}}else{var i=ur.getLocalizedMap(n,t,e.getLabelProperties());null==i&&$a&&(i={"":t,mismatch:!0});var a=n.findFirstValue(t,ra.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=br.getChoice)return br.getChoice(e,t,a,n)}},ja=function(e){e._dibbs=!0},Ia=function(e){return!0!==e._dibbs},Aa=function(e){var t,n,o,r=e.getItemGroupedChildBindings()||[];for(t=0;t<r.length;t++)for(o=r[t],n=0;n<o.length;n++){var i=o[n];i._statement&&delete i._statement._dibbs,(i instanceof Qr||i instanceof va)&&Aa(i)}};var qa=function e(t,n){for(var o="/"===n[0]?n.slice(1):n,r=t.getItemGroupedChildBindings(),i=o[0],a=0;a<r.length;a++)for(var s=r[a],l=void 0,c=0;c<s.length;c++){var d=s[c],u=d.getItem();if(u instanceof zi&&void 0===u.getProperty()&&i===u.getId()&&2===o.length&&o[1]===d.getValue())return d;if(d.isValid()){if("propertygroup"===u.getType())u=(d=d.getObjectBinding()).getItem();else if(void 0===u.getProperty()&&(l=e(d,o)))return l;if("*"===i||i===d.getPredicate()||i===u.getId())if("group"===u.getType()){if(l=e(d,o.slice(1)))return l}else if(1===o.length||"*"===o[1]||o[1]===d.getValue())return d}}},Qa=function(e,t){var n=t[0],o=e;if("/"===n){for(;o.getParent();)o=o.getParent();return o}if(".."===n){for(var r=0;r<t.length;r++){if(".."!==t[r]||!o.getParent())return o;o=o.getParent()}return o}return e},Xa=function(e,t){var n=e.getId(),o={},r={};e.getChoices().forEach((function(e){o[e.value]=0,r[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===n||"/"===t[0]&&t[1]===n)){var r="/"===t[0]?t[2]:t[1],i=o[r];void 0!==i&&(o[r]=i+1)}}));var i,a=0;return Object.keys(o).forEach((function(e){(!i||o[e]>a)&&(i=e,a=o[e])})),r[i]};const Za={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,n,o){var r=n.getCardinality();return o&&"group"===n.getType()||(null!=r?r.min>0?t.mandatory+=1:r.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===n.getType()&&n.getChildren().forEach((function(n){return e(t,n)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,n){if(t instanceof Gi)return t;for(var o=t.getItemGroupedChildBindings(),r=lr().locale(),i=0;i<o.length;i++){var a=o[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof Oi))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},c=0;c<a.length;c++){var d=a[c].getLanguage();null==d?l.emptyLanguageValue=a[c]:d===r?l.perfectLocaleLanguageValue=a[c]:d.substring(0,1)===r.substring(0,1)?l.localeLanguageValue=a[c]:-1!==d.indexOf("en")?l.defaultLanguageValue=a[c]:l.anyLanguageValue=a[c]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(n){var u=Ga(t,s,{});return u instanceof Gi?(u.setLanguage(r),u):e(u,!0)}}},create:Ga,constructTemplate:Ha,findPopularChoice:Xa,match:Va,fuzzyMatch:Ua,matchPathBelowBinding:qa,findBindingRelativeToParentBinding:Qa,CODES:Mr};var Ka=function(e,t){var n=t;return null==n?n={errors:[],warnings:[],deprecated:[]}:(n.errors=n.errors||[],n.warnings=n.warnings||[],n.deprecated=n.deprecated||[]),ns(e,n,!0)},Ja=function(e){for(var t=0,n=0;n<e.length;n++)e[n].isValid()&&(t+=1);return t},es=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},ts=function(e,t){if(t.hasStyle("deprecated"))return!0;var n=t.getDeps();if(n){var o=Qa(e,n);if(!qa(o,n))return!0}return!1},ns=function e(t,n,o){if(t.getMatchingCode()===Mr.OK){var r=t.getItem();if(!0===o||t.isValid()||null==r.getProperty()||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var i=r.getChildren();if(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild")||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Ja(s);l>1&&(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild"))?a=Mr.AT_MOST_ONE_CHILD:1!==l&&r.hasStyle("exactlyOneChild")?a=Mr.EXACTLY_ONE_CHILD:0===l&&r.hasStyle("atLeastOneChild")&&(a=Mr.AT_LEAST_ONE_CHILD),a&&(es([t],a),i.length>0&&n.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,o){var r=i[o];if(!ts(t,r)&&null!=r.getProperty()){var a=Ja(e),s=r.getCardinality();null!=s.min&&s.min>a?(n.errors.push({parentBinding:t,item:r,code:Mr.TOO_FEW_VALUES_MIN}),es(e,Mr.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&n.warnings.push({parentBinding:t,item:r,code:Mr.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(n.errors.push({parentBinding:t,item:r,code:Mr.TOO_MANY_VALUES}),es(e,Mr.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(o){var r=o.getItem();o.getMatchingCode()!==Mr.OK&&n.errors.push({parentBinding:o,item:r,code:o.getMatchingCode()}),r.hasStyle("deprecated")&&n.deprecated.push(o),ts(t,r)||"group"===r.getType()&&e(o,n)}))}return n}},os=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},rs=function(e,t,n){for(var o=e;;){var r=o.getChildrenRootUri?o.getChildrenRootUri():o.getParent().getChildrenRootUri();if(r===t)return!0;if(n[r])return!1;o=o.getParent()}},is=function(e,t){var n=e,o=[];for(null!=t.getProperty()&&n.getItem()!==t&&o.push(N(t.getProperty()));null!=n.getItem().getProperty()&&o.push(N(n.getItem().getProperty())),null!=n.getParent();)n=n.getParent();return o.reverse(),o.join(" > ")},as=function(e){var t=e.errors,n=e.warnings,o=e.deprecated;e.errors=t.map((function(e){return{path:is(e.parentBinding,e.item),code:e.code}})),e.warnings=n.map((function(e){return{path:is(e.parentBinding,e.item),code:e.code}})),e.deprecated=o.map((function(e){return function(e){return"".concat(is(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},ss=function(e,t,n,o){var r=Ua(t,e,n),i=Ka(r);return function(e,t,n){var o=e.errors,r=e.warnings,i=e.deprecated;e.errors=o.filter((function(e){return rs(e.parentBinding,t,n)})),e.warnings=r.filter((function(e){return rs(e.parentBinding,t,n)})),e.deprecated=i.filter((function(e){return rs(e,t,n)}))}(i,e,o||{}),as(i),i};const ls={graphReport:function(e,t){var n,o,r=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 n=os(e,t);i[t]=n,n.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(r){n=t[r],i[r].forEach((function(t){(o=ss(t,e,n,a)).uri=t,o.type=r,o.template=n.getId(),s.resources.push(o),s.errors+=o.errors.length,s.warnings+=o.warnings.length,s.deprecated+=o.deprecated.length}))}));var l=[];return r.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Ka};function cs(e){return(cs="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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,us(o.key),o)}}function us(e){var t=function(e,t){if("object"!=cs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=cs(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cs(t)?t:String(t)}var fs=0;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 ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ms(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,hs(o.key),o)}}function hs(e){var t=function(e,t){if("object"!=bs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=bs(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bs(t)?t:String(t)}function gs(e,t,n){return t=ws(t),function(e,t){if(t&&("object"===bs(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,n||[],ws(e).constructor):t.apply(e,n))}function vs(){return(vs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ys(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function ys(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 xs(e,t){return(xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ks=function(e,t,n){if(0===n.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var o=t.getChildren();return 0===o.length||!!n[0].getItemGroupedChildBindings().find((function(t,n){return ks(e,o[n],t)}))}return!0},_s=function(e){function t(){return ps(this,t),gs(this,t,arguments)}var n,o,r;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&&xs(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",vs(ws(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return ks(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),n="group"===t.getType();return!(!t.getProperty()&&n&&0===t.getChildren().length)&&n&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?Cr.filterTranslations(t,this.getLocale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,n){n.hasStyle("noLabelInPresent")?Cr.domClassToggle(e,"rdformsInvisibleGroup",!0):Cr.renderPresenterLabel(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return Cr.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return Cr.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){Cr.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}}])&&ms(n.prototype,o),r&&ms(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=fs,fs+=1,this.renderingParams=t.renderingParams||{},this.locale=t.locale,this.defaultTextLanguage=t.defaultTextLanguage,this.messages=t.messages,this.parentView=t.parentView,this.srcNodeRef=n,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.popupOnLabel=!1!==t.popupOnLabel,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"===cs(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=Cr.createDomNode(n,this),Cr.domClassToggle(this.domNode,"rdforms",!0),Cr.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,n,o;return t=e,(n=[{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(n){return t.namedGraphs[n]===e})):void 0}},{key:"destroy",value:function(){Cr.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=Ua(this.graph,this.resource,this.template),Ka(this.binding)):this.binding=Va(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(Cr.domText(this.domNode,""),null!=this.binding&&(this.messages||(this.messages=Cr.getMessages()),null!=this.binding)){var e,t,n,o,r,i=this.binding.getItem().getChildren(),a=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?Cr.domClassToggle(this.domNode,"compact",!1):Cr.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),e=0;e<a.length;e++)if(o=a[e],r=i[e],(!this.restrictToItem||this.restrictToItem===r)&&this.showNow(r,o)){if(o=this.prepareBindings(r,o),this.showAsTable(r))this.context={view:this},n=this.createRowNode(n,o[0],r),o.length>0&&(t=this.addTable(n,o[0],r),this.fillTable(t,o));else if(o.length>0)if(this.isMultiValued(r))this.context={view:this},n=this.addRow(n,o[0],!0);else{for(var s=this.truncateAt(r,o),l=0;l<o.length;l++)this.context={view:this},n=this.addRow(n,o[l],0===l||o[l]instanceof Qr,l,s);if(-1!==s){var c=Cr.domQuery(".rdformsFields",n);c&&Cr.addTruncateControl(c,this.context)}}else this.context={view:this},n=this.createRowNode(n,null,r);o.length>0&&o[0].getCardinalityTracker().checkCardinality()}}}},{key:"addRow",value:function(e,t,n,o,r){var i,a,s=n,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof Qr),!0===s){a=this.createRowNode(e,t,l);var c=Cr.domCreate("div",a);Cr.domClassToggle(c,"rdformsFields",!0),-1!==r&&Cr.domClassToggle(c,"rdformsTruncated",!0),l.hasStyle("inline")&&Cr.domClassToggle(c,"rdformsInline",!0),i=Cr.domCreate("div",c),this.createEndOfRowNode(a,t,l)}else{var d=Cr.domQuery(".rdformsFields",e);if(null!=d)i=Cr.domCreate("div",d),Cr.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==r&&o>=r&&Cr.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var u=Cr.domCreate("div",e);Cr.domClassToggle(u,"rdformsFields",!0),l.hasStyle("inline")&&Cr.domClassToggle(u,"rdformsInline",!0),i=Cr.domCreate("div",u),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?Cr.domClassToggle(i,"rdformsGroup",!0):Cr.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&Cr.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,n){var o;o=null==e?Cr.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):Cr.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),n.getClasses().forEach((function(e){Cr.domClassToggle(o,e,!0)})),Cr.domClassToggle(o,"rdformsRow",!0),Cr.domClassToggle(o,"rdformsTopLevel",this.topLevel),Cr.domClassToggle(o,"rdformsInvisibleGroup",n.hasStyle("invisibleGroup")),Cr.domClassToggle(o,"rdformsHeading",n.hasStyle("heading")),Cr.domClassToggle(o,"notCompact","group"===n.getType()||n.hasStyle("nonCompact")),Cr.domClassToggle(o,"rdformsCompactItem",n.hasStyle("compact")),this.addLabel(o,t,n),t&&this.filterBinding(t)&&Cr.domClassToggle(o,"hiddenProperty",!0);var r=void 0!==this._subEditors;return(n.hasStyle("card")||n.hasStyle("cardInEdit")&&r||n.hasStyle("cardInPresent")&&!r)&&Cr.domClassToggle(o,"rdformsCard",!0),o}},{key:"createEndOfRowNode",value:function(e,t,n){}},{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,n=this._getFilterPredicates();return!!n&&function e(n,o){var r=n.getId();if(r&&Object.keys(o).includes(r))return!0;var i=n.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=D(i);return a?!0===o[i]||!0===o[l]||!0===o["*".concat(i)]||!0===o["".concat(l)]:!0===o["*".concat(i)]||!0===o["*".concat(l)]}if("group"===n.getType()){var c=n.getChildren()||[],d=!1;return c.forEach((function(t){e(t,o)||(d=!0)})),!d}return!1}(e,n)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,n=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=n._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():lr().locale())}},{key:"getDefaultTextLanguage",value:function(){return this.defaultTextLanguage||(this.parentView?this.parentView.getDefaultTextLanguage():this.getLocale())}}])&&ds(t.prototype,n),o&&ds(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Ss(e){return(Ss="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ts(o.key),o)}}function Ts(e){var t=function(e,t){if("object"!=Ss(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ss(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ss(t)?t:String(t)}function Os(e,t,n){return t=js(t),function(e,t){if(t&&("object"===Ss(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,n||[],js(e).constructor):t.apply(e,n))}function As(){return(As="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Is(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Is(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=js(e)););return e}function js(e){return(js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ds(e,t){return(Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ns=function(e,t,n,o){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===n.length)return!1;var r=t.getProperty();if(n.length>0){if(r)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(n[0].getItemGroupedChildBindings().find((function(t,n){return Ns(e,i[n],t,o)})))return!0;if(!r)return!1}var a=t.getCardinality();switch(o){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},Ms=function(e){function t(){return Es(this,t),Os(this,t,arguments)}var n,o,r;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&&Ds(e,t)}(t,e),n=t,(o=[{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,As(js(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,n=e||Ka(this.binding);Object.keys(this._binding2node).forEach((function(e){Cr.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var o=function(){var e=n.errors[r];if(e.parentBinding===t.binding)if(e.code===Mr.TOO_FEW_VALUES_MIN){var o=e.item,i=o.getCardinality().min;t.binding.getChildBindingsFor(o).find((function(e){return i-=1,e.isValid()||Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===Mr.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==Mr.OK&&Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},r=0;r<n.errors.length;r++)o();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(n)}},{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=Va(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],As(js(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Ns(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality();if(n=r.pref>0?r.pref:r.min>0?r.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 o;if(n>o.length)for(o=o.concat([]);n>o.length;)o.push(Ga(this.binding,e));return o}},{key:"addLabel",value:function(e,t,n){Cr.renderEditorLabel(e,t,n,this.context)}},{key:"createEndOfRowNode",value:function(e,t,n){Cr.renderEditorLabelScopeEnd(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):Cr.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){Cr.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.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")?Cr.renderPresenter(e,t,this.context):Cr.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,n,o){if(null!=n||!o.hasStyle("nonEditable")){var r=As(js(t.prototype),"createRowNode",this).call(this,e,n,o);if("choice"===o.getType()&&void 0===o.getProperty()){var i=Xa(o,n.getParent());i&&n.setChoice(i)}var a=o.getDeps();if(a){var s=function(e){e?(Cr.domClassToggle(r,"missingDepsWithValue",!1),Cr.domClassToggle(r,"missingDeps",!1)):n.isValid()?Cr.domClassToggle(r,"missingDepsWithValue",!0):Cr.domClassToggle(r,"missingDeps",!0),n.getCardinalityTracker().setDepsOk(e)},l=Qa(n.getParent(),a);qa(l,a)||s(!1),l.addListener((function e(){n.getParent()?s(qa(l,a)):l.removeListener(e)}))}return this.filterBinding(n)&&Cr.domClassToggle(r,"hiddenProperty",!0),o.hasStyle("deprecated")&&Cr.domClassToggle(r,"rdformsDeprecated",!0),r}}},{key:"isMultiValued",value:function(e){return Cr.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&Cs(n.prototype,o),r&&Cs(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(_s);Cr.renderPresenterLabel=function(e,t,n,o,r){var i=o.view instanceof Ms&&n.getEditLabelMap()||n.getLabelMap(),a=ur.getLocalizedValue(i,o.view.getLocale()).value;a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s=n.hasStyle("heading")?Or()('<h2 class="rdformsLabel" tabindex="0">').text(a).appendTo(e):Or()('<div class="rdformsLabel" tabindex="0">').text(a).appendTo(e);t&&s.attr("id",o.view.createLabelIndex(t)),r&&s.addClass("rdformsLabelRow"),o&&(o.labelNode=s[0]);var l=o.view;if(n.hasStyle("showDescriptionInPresent")||l.showDescription){var c=n.hasStyle("compact")||l.compact&&!n.hasStyle("nonCompact")&&(l.topLevel&&"group"!==n.getType()||l.parentView&&l.parentView.topLevel&&l.binding.getItem().hasStyle("heading")),d=ur.getLocalizedValue(n.getDescriptionMap(),o.view.getLocale()).value;!c&&d&&Or()('<div class="rdformsDescription">').text(d).appendTo(e)}Cr.attachItemInfo(n,s[0],o)},Cr.attachItemInfo=function(e,t,n){if(null!=e&&null!=e.getDescriptionMap()){var o=ur.getLocalizedValue(e.getDescriptionMap(),n.view.getLocale()).value;t.setAttribute("title",o)}};const Ls=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});const Ps=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};const Rs=function(e){return"symbol"==typeof e||wn(e)&&"[object Symbol]"==Et(e)};var zs=ht?ht.prototype:void 0,Fs=zs?zs.toString:void 0;const Bs=function e(t){if("string"==typeof t)return t;if(Cn(t))return Ps(t,e)+"";if(Rs(t))return Fs?Fs.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const $s=function(e){return null==e?"":Bs(e)};var Vs=/[&<>"']/g,Us=RegExp(Vs.source);const Hs=function(e){return(e=$s(e))&&Us.test(e)?e.replace(Vs,Ls):e};var Ys=function(e){var t,n=function(e){return e&&e.length>1?parseInt(e[0],10):0},o=n(e.match(/([0-9])*Y/)),r=n(e.match(/([0-9])*D/)),i=n(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=n(e.match(/([0-9])*M/));else{var s=e.split("T");t=n(s[0].match(/([0-9])*M/)),a=n(s[1].match(/([0-9])*M/))}return{years:o,months:t,days:r,hours:i,minutes:a}},Ws=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}},Gs=function(e,t){var n=e.getValue();if(null!=n&&""!==n){var o=e.getItem(),r=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),n=new Date("".concat(t).concat(e));return n.setMinutes(n.getMinutes()+n.getTimezoneOffset()),n}return new Date(e)}catch(e){return null}}(n);if(r){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"}(n),a=Ws(e.getDatatype()),s=function(e){var t=e.getDatatype();return Array.isArray(t)?Ws(t[0]):Ws(t)}(o),l=function(e){var t={},n=e.getDatatype();return(Array.isArray(n)?n:[n]).forEach((function(e){var n=Ws(e);n&&(t[n]=!0)})),t}(o);return function(e,t,n){switch(e){case"DateTime":return lr()(t).locale(n).format("lll");case"Date":return lr()(t).locale(n).format("LL");case"Time":return lr()(t).locale(n).format("LT");case"Year":return lr()(t).locale(n).format("YYYY");case"YearMonth":return lr()(t).locale(n).format("MMMM YYYY");case"MonthDay":return lr()(t).locale(n).format("D MMMM");default:return""}}(l[a]?a:l[i]?i:s,r,t)}}},qs=function(e,t){var n,o=null===(n=e.getStatement()||e.getParent().getStatement())||void 0===n?void 0:n.getNamedGraph();if(o){for(var r=t.view;r.getParentView();)r=r.getParentView();return r.getNamedGraphId(o)}},Qs=n(19755),Xs=Cr.presenterRegistry;Xs.itemtype("text").nodetype("URI").register((function(e,t){var n=ur.getLocalizedMap(t),o=Qs('<a class="rdformsUrl">').attr("title",t.getValue()).attr("href",t.getValue()).appendTo(e);t.getItem().hasStyle("showValue")?o.text(t.getValue()):n?o.text(ur.getLocalizedValue(n).value):o.text(t.getGist()),t.getItem().hasStyle("externalLink")?br.attachExternalLinkBehaviour(o[0],t):br.attachLinkBehaviour(o[0],t)})),Xs.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(e,t,n){var o,r=t.getValue(),i=t.getItem().getChildren().find((function(e){return e.hasStyle("label")})),a=i?Cr.filterTranslations(t.getChildBindingsFor(i),n.view.getLocale(),n.view.defaultLanguage):[],s=t.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),l=s?Cr.filterTranslations(t.getChildBindingsFor(s),n.view.getLocale(),n.view.defaultLanguage):[],c=l.length>0?l[0].getValue():r,d=Qs('<a class="rdformsUrl">').attr("title",c).attr("href",r).appendTo(e);if(a.length>0)o=a[0].getValue();else{var u=ur.getLocalizedMap(t);o=t.getItem().hasStyle("showValue")?r:u?ur.getLocalizedValue(u).value||r:t.getGist()}d.text(o),t.getItem().hasStyle("externalLink")?br.attachExternalLinkBehaviour(d[0],t):br.attachLinkBehaviour(d[0],t)})),Xs.itemtype("text").nodetype("URI").style("image").register((function(e,t){Qs('<img class="rdformsImage">').attr("src",t.getGist()).appendTo(e)})),Xs.itemtype("text").register((function(e,t,n){var o=t.getLanguage();n.view.showLanguage&&o&&Qs('<div class="rdformsLanguage">').text(o).appendTo(e);var r=Hs(t.getItem().hasStyle("showValue")?t.getValue():t.getGist()).replace(/(\r\n|\r|\n)/g,"\n"),i=t.getParent();if(t.getItem().hasStyle("label")&&!0!==n.view.topLevel&&null!=i&&i.getItem().getChildren()[0]===t.getItem()&&null!=i.getStatement()&&"uri"===i.getStatement().getType()){var a=Qs('<a class="rdformsUrl">').attr("href",i.getStatement().getValue()).html(r).appendTo(e);o&&a.attr("lang",o),br.attachLinkBehaviour(a[0],i)}else{var s=Qs("<div>").html(r).appendTo(e);o&&s.attr("lang",o)}t.getItem().hasStyle("multiline")?Qs(e).toggleClass("rdformsMultiline",!0):Qs(e).toggleClass("rdformsSingleline",!0)})),Xs.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=Ys(t.getValue()),r=n.view.messages,i=Qs("<div>").appendTo(e)[0];["years","months","days","hours","minutes"].forEach((function(e){o.hasOwnProperty(e)&&0!==o[e]&&Qs('<span class="durationLabel">'.concat(r["duration_".concat(e)],':</span><span class="durationValue">').concat(o[e],"</span>")).appendTo(i)}))}));var Zs=function(e,t,n){try{var o=Gs(t,n.view.getLocale());Qs("<div>").html(o).appendTo(e)}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(t.getValue(),"' instead."))}};Xs.itemtype("text").datatype("xsd:dateTime").register(Zs),Xs.itemtype("text").datatype("xsd:date").register(Zs),Xs.itemtype("text").datatype("xsd:time").register(Zs),Xs.itemtype("text").datatype("xsd:gYear").register(Zs),Xs.itemtype("text").datatype("xsd:gYearMonth").register(Zs),Xs.itemtype("text").datatype("xsd:gMonthDay").register(Zs),Xs.itemtype("text").datatype("dcterms:W3CDTF").register(Zs);var Ks=n(19755),Js=Cr.presenterRegistry,el=function(e){return function(t,n,o){var r,i=n.getChoice();i&&(i.description&&(r=ur.getLocalizedValue(i.description,o.view.getLocale()).value),e(t,n,i,r,o.view.getLocale()))}};Js.itemtype("choice").style("image").register(el((function(e,t,n,o){Ks('<img class="rdformsImage">').attr("src",n.value).attr("title",o||n.value).appendTo(e)}))),Js.itemtype("choice").style("stars").register(el((function(e,t,n){isNaN(parseInt(n.value,10))||Ks('<span class="rdformsStar">').appendTo(e)}))),Js.itemtype("choice").register(el((function(e,t,n,o,r){var i,a=t.getItem(),s=ur.getLocalizedValue(n.label,r);a.hasStaticChoices()&&!a.hasStyle("externalLink")||a.hasStyle("noLink")?i=Ks("<div>").attr("title",o||n.seeAlso||n.value).text(ur.getLocalizedValue(n.label,r).value).appendTo(e):(i=Ks('<a class="rdformsUrl">').attr("href",n.seeAlso||n.value).attr("title",o||n.seeAlso||n.value).text(s.value).appendTo(e),a.hasStyle("externalLink")?br.attachExternalLinkBehaviour(i[0],t):br.attachLinkBehaviour(i[0],t)),null!=n.load&&n.load((function(){var e=ur.getLocalizedValue(n.label,r);i.text(e.value),e.lang?i.attr("lang",e.lang):i.attr("lang",void 0)})),s.lang&&i.attr("lang",s.lang)}))),Cr.addPresenterTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Or()("<table>").addClass("rdformsGroup").appendTo(e);Or()("<thead>").appendTo(i);for(var a=Or()("<tr>").appendTo(i),s=0;s<r.length;s++){var l=Or()("<th>").appendTo(a),c=ur.getLocalizedValue(r[s].getLabel(),n.view.getLocale()).value;Cr.attachItemInfo(o,Or()("<span>").text(c).appendTo(l),n)}return i[0]},Cr.fillPresenterTable=function(e,t,n){if(0!==t.length){var o,r,i,a,s=n.view.topLevel;for(n.view.topLevel=!1,o=0;o<t.length;o++)for(i=t[o].getItemGroupedChildBindings(),a=Or()("<tr>").appendTo(e),r=0;r<i.length;r++)i[r].length>0?Cr.renderPresenter(Or()("<td>").appendTo(a),i[r][0],{view:n.view,noCardinalityButtons:!0}):Or()("<td>").appendTo(a);n.view.topLevel=s}};var tl=function(e,t){var n=document.createElement(e);return t&&(n.id=t),n};Cr.domQuery=function(e,t){return t.querySelector(e)},Cr.domCreate=function(e,t,n){return t.appendChild(tl(e,n))},Cr.domCreateAfter=function(e,t,n){return t.parentNode.insertBefore(tl(e,n),t.nextSibling)},Cr.domSetAttr=function(e,t,n){""===n||null===n?e.removeAttribute(t):e.setAttribute(t,n)},Cr.domText=function(e,t){e.innerText=t},Cr.domClassToggle=function(e,t,n){t.split(" ").forEach((function(t){n?e.classList.add(t):e.classList.remove(t)}))},Cr.prePresenterViewRenderer=Cr.preEditorViewRenderer,Cr.addTruncateControl=function(e,t){var n=t.view.messages,o=Cr.domCreate("button",e);Cr.domClassToggle(o,"rdformsShowMore",!0),o.innerText=n.showMore,o.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!1)};var r=Cr.domCreate("button",e);Cr.domClassToggle(r,"rdformsShowLess",!0),r.innerText=n.showLess,r.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!0)}};var nl=Cr.presenterRegistry,ol=Cr.editorRegistry,rl=function(e){return function t(n,o,r){var i=o.getValue();r.inEditor&&(null!=i&&""!==i||o.setGist(ur.generateUUID(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}};nl.itemtype("text").style("autoUUID").register(rl(nl)),ol.itemtype("text").style("autoUUID").register(rl(ol));var il=function(e){return function t(n,o,r){var i=o.getValue(),a=o.getItem();r.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&o.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&o.setValue((new Date).toISOString(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}},al=il(nl);nl.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("xsd:date").style("autoInitDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(al);var sl=il(ol);ol.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(sl),ol.itemtype("text").datatype("xsd:date").style("autoInitDate").register(sl),ol.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(sl),ol.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(sl);var ll=function(e){return function t(n,o,r){if(r.inEditor){var i=o.getValue(),a=o.getItem().getDeps();if((null==i||""===i)&&a){var s=Za.findBindingRelativeToParentBinding(o.getParent(),a),l=function(e){var t=Za.matchPathBelowBinding(s,a),n=o.getGist(),r=t?t.getValue():"";n!=r&&o.setGist(r,e)};l(!0),s.addListener((function(e){e!=o&&l()}))}}e.getComponentBefore(o.getItem(),t)(n,o,r)}};nl.itemtype("text").style("autoValue").register(ll(nl)),ol.itemtype("text").style("autoValue").register(ll(ol)),Cr.renderEditorLabel=function(e,t,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))return Cr.renderPresenterLabel(e,t,n,o,!0);var r=n.getEditLabelMap()||n.getLabelMap(),i=ur.getLocalizedValue(r,o.view.getLocale()).value;i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a=Or()('<div class="rdformsLabelRow">').appendTo(e);t&&a.attr("id",o.view.createLabelIndex(t)),o.labelNode=a[0];var s=Or()('<span class="rdformsLabel" tabindex="0">').text(i).appendTo(a),l=n.getCardinality(),c=o.view.messages;n.getProperty()&&(l.min>0?Or()('<span class="rdformsMark rdformsMandatoryMark">').text(c.mandatoryMark).appendTo(a):l.pref>0?Or()('<span class="rdformsMark rdformsRecommendedMark">').text(c.recommendedMark).appendTo(a):Or()('<span class="rdformsMark rdformsOptionalMark">').text(c.optionalMark).appendTo(a)),null==t?Cr.addExpandButton(e,a[0],n,o):o.view.showAsTable(n)||null!==l.max&&l.max===l.min||("group"===n.getType()?n.getProperty()&&Cr.addGroupButtons(e,a[0],t,o):Cr.addCreateChildButton(e,a[0],t,o));var d=o.view;if(n.hasStyle("showDescriptionInEdit")||d.showDescription){var u=n.hasStyle("compact")||d.compact&&!n.hasStyle("nonCompact")&&(d.topLevel&&"group"!==n.getType()||d.parentView&&d.parentView.topLevel&&d.binding.getItem().hasStyle("heading")),f=o.view instanceof Ms&&n.getEditDescriptionMap()||n.getDescriptionMap(),b=ur.getLocalizedValue(f,o.view.getLocale()).value;!u&&b&&Or()('<div class="rdformsDescription">').text(b).appendTo(e)}Cr.attachItemInfo(n,s[0],o)},Cr.attachItemInfo=function(e,t,n){if(!1!==n.view.popupOnLabel)if(Cr.domSetAttr(t,"role","button"),null==e||null==e.getProperty()&&null==e.getDescriptionMap()&&null==e.getEditDescriptionMap())Or()(t).addClass("noPointer");else{var o=n.view instanceof Ms&&e.getEditDescriptionMap()||e.getDescriptionMap()||{},r=ur.getLocalizedValue(o,n.view.getLocale()).value||"",i="";e.getProperty()&&(i='<div class="property"><a target="_blank" href="'.concat(e.getProperty(),'">').concat(e.getProperty(),"</a></div>"));var a=n.view instanceof Ms&&e.getEditLabelMap()||e.getLabelMap(),s=ur.getLocalizedValue(a,n.view.getLocale()).value,l={html:!0,container:t,placement:"auto",trigger:"focus",title:s=null!=s&&""!==s?s.charAt(0).toUpperCase()+s.slice(1):"",content:'<div class="description">'.concat(r.replace(/(\r\n|\r|\n)/g,"<br/>"),"</div>").concat(i)};Or()(t).popover(l).attr("data-toggle","popover")}else Cr.domClassToggle(t,"rdformsNoPopup",!0)};n(21552);var cl=n(19755),dl=0;var ul=n(19755),fl=Cr.editorRegistry;fl.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=n.view.messages,r=Ys(t.getValue()),i=cl("<div>").addClass("rdformsDuration rdformsFieldInput").appendTo(e),a=qs(t,n)?"disabled":"",s=function(){i.empty(),["years","months","days","hours","minutes"].forEach((function(e){var n=cl("<div>").appendTo(i),s=cl("<div>").addClass("input-group").appendTo(n),l="duration_".concat(dl);dl+=1,cl("<span>").addClass("input-group-addon").attr("id",l).text(o["duration_".concat(e)]).appendTo(s);var c=cl("<input ".concat(a,">")).addClass("form-control").attr("type","number").attr("aria-describedby",l).appendTo(s);r[e]&&c.val(r[e]),c.change((function(){r[e]=cl(this).val(),t.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}(r))}))}))};s(),n.clear=function(){r={},s()}}));var bl=function(e,t,n,o,r){var i=null,a=function(){i=null;var a=e.val().trim(),s=!0;""===a||!n||n.test(a)?(t.setGist(a),o&&a&&(o.prop("href",t.getValue()),s=!1),r&&r.toggleClass("rdformsHelpActive",!1)):r&&r.toggleClass("rdformsHelpActive",!0),o&&o.toggleClass("rdformsExtLinkDisabled",s),e.toggleClass("rdformsEmpty",""===a)};e.on("keyup paste",(function(){null!=i&&clearTimeout(i),i=setTimeout(a,200)}))},pl=function(e,t){var n=new RegExp(e);fl.itemtype("text").datatype(t).register((function(t,o,r){var i=ul('<input type="text" class="form-control rdformsFieldInput"\n placeholder="'.concat(o.getItem().getPlaceholder()||"",'">'));i.val(o.getGist()).attr("pattern",e).appendTo(t);var a,s=o.getItem().getHelp();if(s&&(a=ul('<span class="rdformsHelp">'.concat(s,"</span>"))).appendTo(t),o.getItem().hasStyle("externalLink")){var l=ul('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));l.appendTo(r.controlDiv),ul(t).addClass("rdformsExtLinkControl"),bl(i,o,n,l,a),i.keyup()}else bl(i,o,n,void 0,a);o.getItem().isEnabled()||i.prop("disabled",!0)}))};pl("^-?\\d+$","xsd:integer"),pl("^(\\d+(\\.\\d+)?)$","xsd:decimal"),fl.itemtype("text").register((function(e,t,n){var o,r=t.getItem(),i=qs(t,n)?"disabled":"";if(r.hasStyle("multiline")){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:70,n=e.split("\n").length;return n+=Number.parseInt(e.length/t,10)}(t.getGist());(o=ul("<textarea ".concat(i,' class="form-control rdformsFieldInput autoExpand" placeholder="').concat(r.getPlaceholder()||"",'" rows="').concat(a,'">'))).on("input focus",(function(){if(void 0===this.baseScrollHeight){var e=o.height();this.baseScrollHeight=o.innerHeight()-e,this.baseLineHeight=e/a}this.rows=1;var t=1+Math.ceil((this.scrollHeight-this.baseScrollHeight)/this.baseLineHeight);this.rows=t}))}else o=r.hasStyle("email")?ul("<input ".concat(i,' type="email" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">')):ul("<input ".concat(i,' type="text" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">'));o.val(t.getGist()).appendTo(e);var s,l=r.getHelp();l&&(s=ul('<span class="rdformsHelp">'.concat(l,"</span>"))).appendTo(e);var c=r.getPattern(),d=null;if(null!=c&&(o.attr("pattern",c),d=new RegExp(c)),r.hasStyle("externalLink")){var u=ul('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));u.appendTo(n.controlDiv),ul(e).addClass("rdformsExtLinkControl"),bl(o,t,d,u,s),o.keyup()}else bl(o,t,d,void 0,s);var f=r.getNodetype();if("LANGUAGE_LITERAL"===f||"PLAIN_LITERAL"===f){ul(e).addClass("rdformsLangcontrolledfield"),ul(n.controlDiv).addClass("rdformsLangFieldControl");var b=ul("<select ".concat(i,' class="form-control rdformsLanguage">')).appendTo(n.controlDiv),p=Cr.getPrimaryLanguageList(),m=Cr.getNonPrimaryLanguageList();if(m=ur.cloneArrayWithLabels(m),0===p.length||((p=ur.cloneArrayWithLabels(p,!0)).forEach((function(e){ul("<option>").html(e.label).val(e.value).appendTo(b)})),ul("<option>").html("─────").attr("disabled","disabled").appendTo(b)),m.forEach((function(e){ul("<option>").html(e.label).val(e.value).appendTo(b)})),t.isValid())b.val(t.getLanguage());else{var h=n.view.getDefaultTextLanguage();"string"==typeof h&&""!==h&&(b.val(h),t.setLanguage(h))}b.val(t.getLanguage()).change((function(){t.setLanguage(b.val())})),n.clear=function(){b.val(""),o.val("")}}else n.clear=function(){o.val("")}}));var ml=n(19755);function hl(e){return(hl="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 gl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,vl(o.key),o)}}function vl(e){var t=function(e,t){if("object"!=hl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=hl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hl(t)?t:String(t)}var yl=0,wl=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.item=this.binding.getItem(),this.choices=this.item.getChoices().map((function(e){return{label:e.editlabel||e.label,description:e.editDescription||e.description,value:e.value,text:o.item._getLocalizedValue(e.editlabel||e.label,t.context.view.getLocale()).value,choice:e}})),this.item.hasStyle("preserveOrderOfChoices")||this.choices.sort((function(e,t){return e.text<t.text?-1:1})),this.choice=this.binding.getChoice(),this.context=t.context,this.context.clear=this.clear.bind(this),this.domNode=n,this.buildRendering()}var t,n,o;return t=e,(n=[{key:"clear",value:function(){ml(this.domNode).find("input").prop("checked",!1)}},{key:"buildRendering",value:function(){var e=this;null!=this.choice&&this.choice.mismatch&&this.choices.push(this.choice);for(var t=this.binding.getValue(),n=function(){var n,r=e.choices[o],i=ml('<div class="radio form-check">').appendTo(e.domNode);n=e.item.hasStyle("verticalRadioButtons")?ml("<label>").appendTo(i):ml('<label class="form-check-label">').appendTo(i),(r.description||r.editdescription)&&n.attr("title",e.item._getLocalizedValue(r.editdescription||r.description,e.context.view.getLocale()).value||r.seeAlso||r.value);var a=qs(e.binding,e.context)?"disabled":"",s=ml("<input ".concat(a,' type="radio">')).val(r.value).attr("checked",r.value===t).attr("name","rdformsRadio_".concat(yl)).appendTo(n);n.append(e.item._getLocalizedValue(r.editlabel||r.label,e.context.view.getLocale()).value),r.mismatch?(n.addClass("mismatch disabled"),s.attr("disabled",!0)):n.click((function(){e.binding.setValue(s.val())}))},o=0;o<this.choices.length;o++)n();yl+=1}}])&&gl(t.prototype,n),o&&gl(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),xl=n(19755),kl=Cr.editorRegistry;kl.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(e,t,n){new wl({binding:t,context:n},e)})),kl.itemtype("choice").choices().register((function(e,t,n){var o=t.getItem(),r=o.getChoices().map((function(e){return{id:e.value,text:o._getLocalizedValue(e.editlabel||e.label,n.view.getLocale()).value,choice:e}}));o.hasStyle("preserveOrderOfChoices")||r.sort((function(e,t){return e.text<t.text?-1:1})),n.choices=r,Cr.renderSelect(e,t,n);var i=n.setValue,a=t.getChoice();a&&(null!=a.load?a.load((function(){i(a)})):i(a))})),kl.itemtype("choice").choices("none").register((function(e,t,n){n.chooser=Cr.chooserRegistry.getComponent(t.getItem()),n.choices=void 0;var o=qs(t,n)?"disabled":"",r=function(){Cr.renderSelect(e,t,n);var r=n.setValue,i=xl("<button ".concat(o,' class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm browseChoices" type="button">')).attr("title",n.view.messages.edit_browse).appendTo(e);if(n.chooser&&n.chooser.supportsInlineCreate&&n.chooser.supportsInlineCreate(t)){var a=xl('<span class="fa-stack">').appendTo(i);xl('<span class="fas fa-search fa-stack-1x" aria-hidden="true">').appendTo(a),xl('<span class="fas fa-plus fa-stack-1x" aria-hidden="true">').appendTo(a)}else xl('<span class="fas fa-search" aria-hidden="true">').appendTo(i);var s=function(e){e?(t.setChoice(e),null!=e.load?e.load((function(){r(e)})):r(e)):t.setChoice(null)};n.chooser&&"function"==typeof n.chooser.show?i.click((function(){Cr.openChoiceSelector(t,s)})):i.addClass("disabled"),br.hasDnDSupport(t)&&br.addDnD(t,cNode,s)},i=t.getChoice();if(i)if(null!=i.load){var a=xl('<div class="form-group rdforms-upgrade">').appendTo(e);xl('<input type="text" disabled class="form-control rdformsFieldInput">').val(i.value).appendTo(a),i.load((function(){if(i.upgrade){var e=xl("<button ".concat(o,' class="btn btn-default bmd-btn-fab bmd-btn-fab-sm')+' browseChoices" type="button">').attr("title",n.view.messages.edit_upgrade).click((function(){i.upgrade(t,(function(o){a.remove(),e.remove(),r(),n.setValue(o),t.setChoice(o)}))})).insertAfter(a);xl('<span class="fas fa-magic" aria-hidden="true">').appendTo(e)}else a.remove(),r(),n.setValue(i)}))}else r(),n.setValue(i);else r()}));var _l=n(19755);Cr.addRemoveButton=function(e,t,n){var o=qs(t,n)?"disabled":"",r=_l("<button ".concat(o,' class="fas fa-times action rdformsActionButton">')).attr("title",n.view.messages.edit_remove).appendTo(n.controlDiv),i=t.getCardinalityTracker(),a=i.addListener((function(){}));r.click((function(){if(!i.isMin()||!i.isDepsOk()||1===i.getCardinality())if(1===i.getCardinality()){"choice"===t.getItem().getType()?t.setChoice(null):t.setValue("");var o=t.getItem().getNodetype();"LANGUAGE_LITERAL"!==o&&"PLAIN_LITERAL"!==o||t.setLanguage(""),n.clear?n.clear():_l(e).find("input").val("")}else i.removeListener(a),r.unbind("click"),t.remove(),_l(e).remove()}))},Cr.addExpandButton=function(e,t,n,o){var r=_l('<button class="fas fa-plus action rdformsActionButton">').attr("title",o.view.messages.edit_expand).appendTo(t).click((function(){var i=Ga(o.view.binding,n);if(o.view.showAsTable(n)){var a=o.view.addTable(e,i,n);o.view.fillTable(a,[i])}else o.view.addRow(e,i,!1),Cr.addGroupButtons(e,t,i,o);r.unbind("click").remove()}))},Cr.addGroupButtons=function(e,t,n,o){var r,i=n.getParent(),a=n.getItem(),s=n.getCardinalityTracker(),l=a.getCardinality();1!==l.max&&(r=_l('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t)).click((function(){if(!s.isMax()){var t=Ga(i,a);o.view.addRow(e,t)}}));var c=qs(n,o)?"disabled":"",d=_l("<button ".concat(c,' class="action fas fa-times rdformsActionButton">')).attr("title",o.view.messages.edit_remove).appendTo(t);1===l.max&&d.addClass("indentRemove");var u=s.addListener((function(){r&&r.toggleClass("disabled",s.isMax()),d.toggleClass("disabled",s.isMin()&&s.isDepsOk())}));d.click((function(){if(!s.isMin()||!s.isDepsOk())if(o.clear&&o.clear(),1===s.getCardinality()){if(s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),o.view.showNow(a,[])){var t=o.view.prepareBindings(a,[]);t.length>0&&o.view.addRow(e,t[0])}_l(e).remove()}else s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),_l(e).remove()}))},Cr.addCreateChildButton=function(e,t,n,o){var r=n.getParent(),i=n.getItem(),a=n.getCardinalityTracker(),s=_l('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t).click((function(){if(!a.isMax()){var t=Ga(r,i);o.view.addRow(e,t)}}));a.addListener((function(){s.toggleClass("disabled",a.isMax())}))};var Sl=function e(t,n,o){var r=n.getItem().getChildren(),i=n.getItemGroupedChildBindings(),a=Or()("<tr>").appendTo(t);if(i.forEach((function(e,t){0!==e.length||r[t].hasStyle("nonEditable")||Ga(n,r[t])})),i.forEach((function(e){e.length>0&&Cr.renderEditor(Or()("<td>").appendTo(a)[0],e[0],{view:o.view,noCardinalityButtons:!0})})),!n.getItem().hasStyle("firstcolumnfixedtable")){var s=Or()("<td>").addClass("rdformsTableControl").appendTo(a),l=Or()("<span>").addClass("action editDelete").attr("title",o.view.messages.edit_remove).appendTo(s),c=n.getCardinalityTracker(),d=c.addListener((function(){l.toggleClass("disabled",c.isMin())}));l.click((function(){if(!c.isMin()){if(1===c.getCardinality()){var r=n.getParent(),i=n.getItem(),s=Ga(r,i);e(t,s,o)}c.removeListener(d),removeConnect.remove(),n.remove(),a.remove()}}))}};Cr.addEditorTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Or()("<table>").appendTo(e);Or()(i).addClass("rdformsGroup");for(var a=Or()("<thead>").appendTo(i),s=Or()("<tbody>").appendTo(i),l=Or()("<tr>").appendTo(a),c=0;c<r.length;c++){var d=Or()("<th>").appendTo(l);Or()(d).addClass("rdformsColumnHeader".concat(c));var u=r[c],f=n.view instanceof Ms&&u.getEditLabelMap()||u.getLabelMap(),b=ur.getLocalizedValue(f,n.view.getLocale()).value;Cr.attachItemInfo(o,Or()("<span>").text(b).appendTo(d)[0],n)}if(!t.getItem().hasStyle("firstcolumnfixedtable")){var p=Or()("<th>").addClass("rdformsTableControl").appendTo(l),m=t.getParent(),h=t.getCardinalityTracker(),g=Or()("<span>").addClass("action editAdd").attr("title",n.view.messages.edit_add).appendTo(p).click((function(){if(!h.isMax()){var e=Ga(m,o);Sl(s[0],e,n)}}));h.addListener((function(){g.toggleClass("disabled",h.isMax())}))}return s},Cr.fillEditorTable=function(e,t,n){var o=t;if(0!==o.length){var r=o[0].getItem();if(r.hasStyle("nonEditable"))return Cr.renderEditor(e,o,n);r.hasStyle("firstcolumnfixedtable")&&(o=function(e){var t=[],n=e[0].getItem(),o=n.getChildren()[0],r=o.getChoices();(r=ur.cloneArrayWithLabels(r)).sort((function(e,t){return e.label>t.label?1:e.label<t.label?-1:0}));var i={};(e||[]).forEach((function(e){var t=e.getItemGroupedChildBindings();if(t.length>0&&t[0].length>0){var n=t[0][0];i[n.getValue()]=e}}));var a=e[0].getParent();return(r||[]).forEach((function(e){if(null!=i[e.value])t.push(i[e.value]);else{var r=Ga(a,n),s=Ga(r,o);s.setExcludeFromTreeValidityCheck(!0),s.setAncestorValid(!1),s.setChoice(e),t.push(r)}})),t}(o)),o.forEach((function(t){Sl(e,t,n)}))}},Cr.preEditorRenderer=function(e,t,n){n.$controlDiv=Or()('<div class="rdformsFieldControl">'),n.controlDiv=n.$controlDiv[0],"group"!==t.getItem().getType()&&!0!==n.noCardinalityButtons&&Cr.addRemoveButton(e,t,n)},Cr.preEditorViewRenderer=function(e,t,n){var o,r=t.getItem();if(!n.hideAddress&&(r.hasStyle("showURI")?o=Or()('<div class="rdformsField rdformsGroupURI">').text(t.getValue()):r.hasStyle("showLink")&&(o=Or()('<a class="rdformsField rdformsGroupURI rdformsUrl">').text(t.getValue()).attr("href",t.getValue()),br.attachExternalLinkBehaviour(o[0],t)),o)){var i=Or()('<div class="rdformsRow">').appendTo(e);n.topLevel&&i.addClass("rdformsTopLevel"),Or()('<div class="rdformsLabel">').text(n.view.messages.address_label).appendTo(i),o.appendTo(Or()('<div class="rdformsFields">').appendTo(i))}},Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e)};var El={error:"exclamation-triangle",warning:"exclamation-circle",deprecated:"question-circle"};Cr.renderValidationMessage=function(e,t,n){var o=El[t],r=Cr.domCreate("div",e);Cr.domClassToggle(r,"rdformsValidationMessageWrapper",!0);var i=Cr.domCreate("i",r);Cr.domClassToggle(i,"fas fa-".concat(o),!0);var a=Cr.domCreate("span",r);Cr.domClassToggle(a,"rdformsValidationMessage",!0),Cr.domText(a,n)};n(95640),n(47070),n(45700);var Cl=n(19755);function Tl(e){return(Tl="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 Ol(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Al(o.key),o)}}function Al(e){var t=function(e,t){if("object"!=Tl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Tl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tl(t)?t:String(t)}var Il=function(){function e(t,n){var o,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.context=t.context,this.item=this.binding.getItem(),this.allowedOptions=(o=this.item,r={},i=o.getDatatype(),(Array.isArray(i)?i:[i]).forEach((function(e){var t=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";default:return}}(e);t&&(r[t]=!0)})),r),this._date=null,this._valid=!1,this._excludeTime=!0,this.domNode=n,this.buildUI(),this.initDatePicker(),this.initialize()}var t,n,o;return t=e,(n=[{key:"includeDateOption",value:function(){return this.allowedOptions.Date}},{key:"includeDateTimeOption",value:function(){return this.allowedOptions.Datetime}},{key:"includeYearOption",value:function(){return this.allowedOptions.Year}},{key:"buildUI",value:function(){}},{key:"initDatePicker",value:function(){}},{key:"initialize",value:function(){var e=this;this.$timeInput=Cl(this.timeInput).attr("pattern","^([0-1][0-9]|2[0-3]):[0-5][0-9]$").change((function(){var t=e.$timeInput.val();if("function"==typeof e.$timeInput[0].checkValidity){if(!e.$timeInput[0].checkValidity())return}else if(new RegExp("^([0-1][0-9]|2[0-3]):[0-5][0-9]$").test(t))return;e._date.setHours(parseInt(t.substr(0,2),10),parseInt(t.substr(3,2),10)),e.binding.setValue(e._date.toISOString())})),this.$yearInput=Cl(this.yearInput).attr("pattern","^-?[0-9][0-9][0-9][0-9]$").change((function(){var t=e.$yearInput.val();e._date.setYear(parseInt(t,10)),e.binding.setValue(t)})),this.$dateControl=Cl(this.dateControl).change((function(){var t=e.$dateControl.val();e["_show".concat(t)]()})),this._binding2Gui()}},{key:"setDateInPicker",value:function(){}},{key:"setDateInBinding",value:function(e){this._valid=!0,this._date.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var t=lr()(e).toISOString();this._excludeTime?this.binding.setValue(t.substring(0,t.indexOf("T"))):(this.binding.setValue(t),this.$timeInput.prop("disabled",!1))}},{key:"clear",value:function(){this._valid=!1,Cl(this.domNode).find("input").val("")}},{key:"_binding2Gui",value:function(){this._firstTime=!0;var e=this.binding.getValue();this._valid=null!=e&&""!==e,this._valid&&(this._date=new Date(e),this._valid=null!=this._date),this._date=this._date||new Date("2000"),this._valid?/^\d{4}$/.test(e)?(this.$dateControl.val("Year"),this._showYear()):/T/.test(e)&&-1===e.indexOf("T00:00:00")?(this.$dateControl.val("DateTime"),this._showDateTime()):(this.$dateControl.val("Date"),this._showDate()):this._showDate(),this._firstTime=!1}},{key:"_showDate",value:function(){if(this._excludeTime=!0,this.$yearInput.parent().hide(),this.$timeInput.parent().hide(),this.$datepicker.parent().show(),this._valid){this.setDateInPicker(this._date);var e=this._date.toISOString();this._firstTime||(this.binding.setValue(e.substring(0,e.indexOf("T"))),this.binding.setDatatype("xsd:date"))}else this.setDateInPicker(null)}},{key:"_showDateTime",value:function(){if(this._excludeTime=!1,this.$yearInput.parent().hide(),this.$timeInput.parent().show(),this.$datepicker.parent().show(),this._valid){if(0!==this._date.getHours()||0!==this._date.getMinutes()){var e=this._date.getHours();e=e<=9?"0".concat(e):e;var t=this._date.getMinutes();t=t<=9?"0".concat(t):t,this.$timeInput.val("".concat(e,":").concat(t))}else this.$timeInput.val("");this.setDateInPicker(this._date),this._firstTime||(this.binding.setValue(this._date.toISOString()),this.binding.setDatatype("xsd:dateTime"))}else this.setDateInPicker(null),this.$timeInput.val("")}},{key:"_showYear",value:function(){this.$yearInput.parent().show(),this.$timeInput.parent().hide(),this.$datepicker.parent().hide(),this._valid?(this.$yearInput.val(this._date.getFullYear()),this._firstTime||(this.binding.setValue("".concat(this._date.getFullYear())),this.binding.setDatatype("xsd:gYear"))):this.$yearInput.val("")}},{key:"_setValueAttr",value:function(e){this.binding.setValue(e)}}])&&Ol(t.prototype,n),o&&Ol(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jl(e){return(jl="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ml(o.key),o)}}function Ml(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=jl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jl(t)?t:String(t)}function Ll(e,t,n){return t=Pl(t),function(e,t){if(t&&("object"===jl(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,n||[],Pl(e).constructor):t.apply(e,n))}function Pl(e){return(Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rl(e,t){return(Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Il.register=function(e){var t=function(t,n,o){var r=new e({messages:o.view.messages,binding:n,context:o},Cl("<div>").appendTo(t)[0]);o.clear=function(){r.clear()}},n=Cr.editorRegistry;n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(t),n.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(t)};var zl=function(e){function t(){return Dl(this,t),Ll(this,t,arguments)}var n,o,r;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&&Rl(e,t)}(t,e),n=t,(o=[{key:"buildUI",value:function(){var e=qs(this.binding,this.context)?"disabled":"";this.tpdate=null,this.dpdate=null;var t=this.context.view.messages,n=this.includeYearOption()?'<option value="Year">'.concat(t.date_year,"</option>"):"",o=this.includeDateOption()?'<option value="Date" selected="true">'.concat(t.date_date,"</option>"):"",r=this.includeDateTimeOption()?'<option value="DateTime">'.concat(t.date_date_and_time,"</option>"):"";this.domNode.innerHTML='<div class="rdformsDateValue rdformsFieldInput" xmlns="http://www.w3.org/1999/html">\n <div class="rdformsDatepicker form-group input" style="padding-right: 15px;">\n <input '.concat(e,' class="form-control dateInput date" type="text" placeholder="YYYY-MM-DD" />\n <span >\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm dateButton"><span class="fa fa-calendar"></span>\n <div class="ripple-container"></div></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control timeInput" placeholder="HH:MM"/>\n <span>\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm timeButton"><span class="fa fa-clock"></span></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control yearInput" placeholder="YYYY"/>\n </div>\n\n <select ').concat(e,' class="form-control dateControl">\n ').concat(n,"\n ").concat(o,"\n ").concat(r,"\n </select>\n</div>"),this.cal=Or()(this.domNode).find(".date")[0],this.dateButton=Or()(this.domNode).find(".dateButton")[0],this.timeInput=Or()(this.domNode).find(".timeInput")[0],this.timeButton=Or()(this.domNode).find(".timeButton")[0],this.yearInput=Or()(this.domNode).find(".yearInput")[0],this.dateControl=Or()(this.domNode).find(".dateControl")[0]}},{key:"initDatePicker",value:function(){var e=this;this.$datepicker=Or()(this.cal).bootstrapMaterialDatePicker({time:!1,date:!0,triggerEvent:"none",switchOnClick:!0,lang:this.context.view.getLocale()}),this.$timepicker=Or()(this.timeInput).bootstrapMaterialDatePicker({format:"HH:mm",time:!0,date:!1,triggerEvent:"none",switchOnClick:!0,lang:this.context.view.getLocale()}),Or()(this.dateButton).click((function(){e.$datepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$datepicker.on("change",(function(t,n){var o=n||lr()(t.target.value,void 0,e.context.view.getLocale());if(e.tpdate){var r=lr()(e.tpdate,void 0,e.context.view.getLocale());o.minute(r.minute()),o.hour(r.hour())}e.dpdate=o.toDate(),e.setDateInBinding(e.dpdate)})),this.item.isEnabled()||this.$datepicker.prop("disabled",!0),Or()(this.timeButton).click((function(){e.$timepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$timepicker.on("change",(function(t,n){var o=n||lr()(t.target.value,void 0,e.context.view.getLocale());if(null!=e.dpdate){var r=lr()(e.dpdate,void 0,e.context.view.getLocale());r.minute(o.minute()),r.hour(o.hour()),e.tpdate=r.toDate(),e.setDateInBinding(e.tpdate)}else e.tpdate=o.toDate()})),this.item.isEnabled()||this.$timepicker.prop("disabled",!0)}},{key:"setDateInPicker",value:function(e){this.$datepicker.bootstrapMaterialDatePicker("setDate",e),this.$timepicker.bootstrapMaterialDatePicker("setTime",e),this.dpdate=e,this.tpdate=e}}])&&Nl(n.prototype,o),r&&Nl(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Il);Il.register(zl);n(61514),n(78750);var Fl=n(19755);Cr.renderSelect=function(e,t,n){var o,r=Fl('<div class="form-group selectizeException">').appendTo(e),i=Fl('<div class="form-control">').appendTo(r),a=Fl('<input type="text">').appendTo(i),s=[];t.getValue()&&s.push(t.getValue());var l={items:s,valueField:"id",labelField:"text",sortField:"text",searchField:"text",allowEmptyOption:!1,preload:"focus",maxItems:1,mode:"single",onChange:function(e){var n=o.options[e];t.setChoice(n?n.choice:null),this.clearCache()}},c=!0;n.choices&&n.choices.length>0?(c=!1,l.options=n.choices):n.chooser&&"function"==typeof n.chooser.search&&(c=!1,l.load=function(e,o){n.chooser.search(t,e).then((function(e){o(e.map((function(e){return{id:e.value,text:ur.getLocalizedValue(e.editlabel||e.label,n.view.getLocale()).value||"",choice:e}})))}))}),o=a.selectize(l)[0].selectize,(c||qs(t,n))&&o.disable(),n.clear=function(){o.clear()},n.setValue=function(e){a.toggleClass("mismatch",!0===e.mismatch);var t=ur.getLocalizedValue(e.editlabel||e.label,n.view.getLocale()).value||"";o.options[e.value]||o.addOption({id:e.value,text:t,choice:e}),o.addItem(e.value,!0)}};var Bl=n(93379),$l=n.n(Bl),Vl=n(7795),Ul=n.n(Vl),Hl=n(90569),Yl=n.n(Hl),Wl=n(3565),Gl=n.n(Wl),ql=n(19216),Ql=n.n(ql),Xl=n(44589),Zl=n.n(Xl),Kl=n(72394),Jl={};Jl.styleTagTransform=Zl(),Jl.setAttributes=Gl(),Jl.insert=Yl().bind(null,"head"),Jl.domAPI=Ul(),Jl.insertStyleElement=Ql();$l()(Kl.Z,Jl);Kl.Z&&Kl.Z.locals&&Kl.Z.locals;var ec=n(59285),tc={};tc.styleTagTransform=Zl(),tc.setAttributes=Gl(),tc.insert=Yl().bind(null,"head"),tc.domAPI=Ul(),tc.insertStyleElement=Ql();$l()(ec.Z,tc);ec.Z&&ec.Z.locals&&ec.Z.locals;var nc=n(45987),oc={};oc.styleTagTransform=Zl(),oc.setAttributes=Gl(),oc.insert=Yl().bind(null,"head"),oc.domAPI=Ul(),oc.insertStyleElement=Ql();$l()(nc.Z,oc);nc.Z&&nc.Z.locals&&nc.Z.locals;var rc=n(19755);Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e),rc("body").bootstrapMaterialDesign()};var ic=n(27642),ac={};ac.styleTagTransform=Zl(),ac.setAttributes=Gl(),ac.insert=Yl().bind(null,"head"),ac.domAPI=Ul(),ac.insertStyleElement=Ql();$l()(ic.Z,ac);ic.Z&&ic.Z.locals&&ic.Z.locals;function sc(e){return(sc="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 lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,dc(o.key),o)}}function dc(e){var t=function(e,t){if("object"!=sc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=sc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sc(t)?t:String(t)}function uc(e,t,n){return t=pc(t),function(e,t){if(t&&("object"===sc(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,n||[],pc(e).constructor):t.apply(e,n))}function fc(){return(fc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=bc(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function bc(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 mc(e,t){return(mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var hc=function(e,t,n){return 1===n?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",n)},gc=function(e){function t(){return lc(this,t),uc(this,t,arguments)}var n,o,r;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&&mc(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,fc(pc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Ka(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 n=this.binding.getMatchingCode();if(n===Mr.MISSING_CONSTRAINTS||n===Mr.WRONG_NODETYPE)return!1;var o=e.getCardinality();switch(this.includeLevel){case"mandatory":return o&&o.min>=1;case"recommended":default:return o&&(o.min>=1||o.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality(),i=null!=r.min?r.min:0,a=null!=r.pref?r.pref:0;n=r.pref>0?r.pref:r.min>0?r.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===Mr.TOO_FEW_VALUES_MIN||s===Mr.TOO_FEW_VALUES_PREF,c=s===Mr.MISSING_CONSTRAINTS||s===Mr.WRONG_NODETYPE;if(n>o.length&&l&&!c)for(o=o.concat([]);n>o.length;){var d=Ga(this.binding,e);o.length<i?d.setMatchingCode(Mr.TOO_FEW_VALUES_MIN):o.length<a&&d.setMatchingCode(Mr.TOO_FEW_VALUES_PREF),o.push(d)}return o}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var n,o,r=t.getItem(),i=r.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===r.getType()?null===(n=t.getCardinalityTracker())||void 0===n?void 0:n.getCode():void 0,c=l&&l!==Mr.OK&&l!==Mr.UNKNOWN?l:t.getMatchingCode(),d=c===Mr.TOO_FEW_VALUES_PREF;if(c!==Mr.TOO_FEW_VALUES_PREF&&c!==Mr.OK)return Cr.domClassToggle(e,"error",!0),c===Mr.TOO_FEW_VALUES_MIN?o=hc(this.messages,"validation_min_required",a):c===Mr.TOO_MANY_VALUES?o=hc(this.messages,"validation_max",i.max||1):c===Mr.AT_MOST_ONE_CHILD?o=this.messages.validation_at_most_one_child:c===Mr.AT_LEAST_ONE_CHILD?o=this.messages.validation_at_least_one_child:c===Mr.EXACTLY_ONE_CHILD?o=this.messages.validation_exactly_one_child:c===Mr.WRONG_NODETYPE?o=this.messages.validation_nodetype:c===Mr.WRONG_VALUE?o=this.messages.validation_value:c===Mr.WRONG_DATATYPE?o=this.messages.validation_datatype:c===Mr.MISSING_CONSTRAINTS?o=this.messages.validation_constraints:c===Mr.WRONG_PATTERN?o=this.messages.validation_pattern:c===Mr.MISSING_LANGUAGE&&(o=this.messages.validation_language),Cr.renderValidationMessage(e,"error",o),!0;if(d){Cr.domClassToggle(e,"warning",!0);var u=hc(this.messages,"validation_min_recommended",s);return Cr.renderValidationMessage(e,"warning",u),!0}return!!r.hasStyle("deprecated")&&(Cr.domClassToggle(e,"deprecated",!0),Cr.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,n){fc(pc(t.prototype),"addComponent",this).call(this,e,n),this.addValidationMarker(e,n)}}])&&cc(n.prototype,o),r&&cc(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(_s);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 yc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,wc(o.key),o)}}function wc(e){var t=function(e,t){if("object"!=vc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=vc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vc(t)?t:String(t)}var xc=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n instanceof Node?this.domNode=n:this.domNode="string"==typeof n?document.getElementById(n):document.createElement("div"),this.template=t.template,this.resource=t.resource,this.graph=t.graph,this.compact=void 0===t.compact||t.compact,this.includeLevel=t.includeLevel||"mandatory",this.includeLevelControllsVisible=void 0===t.includeLevelControllsVisible||t.includeLevelControllsVisible,this.externalEditor=void 0!==t.externalEditor&&t.externalEditor,this.messages=t.messages,this.render()}var t,n,o;return t=e,(n=[{key:"render",value:function(){this.domNode.innerHTML='<div class="cardinality" style="display: none;">\n <div class="btn-group" role="group">\n <button type="button" class="btn btn-secondary btn-lg active mandatory">Mandatory</button>\n <button type="button" class="btn btn-secondary btn-lg active recommended">Recommended</button>\n <button type="button" class="btn btn-secondary btn-lg optional">Optional</button>\n </div>\n <div class="rdformsLevelNode"></div>',this._cardinalityNode=Or()(this.domNode).find(".cardinality")[0],this._mandatoryButton=Or()(this.domNode).find(".mandatory").click(this._mandatoryClick.bind(this))[0],this._recommendedButton=Or()(this.domNode).find(".recommended").click(this._recommendedClick.bind(this))[0],this._optionalButton=Or()(this.domNode).find(".optional").click(this._optionalClick.bind(this))[0],this._rdformsNode=Or()(this.domNode).find(".rdformsLevelNode")[0],this.includeLevelControllsVisible&&(this._cardinalityNode.style.display=""),this.setIncludeLevel(this.includeLevel),this.externalEditor||(this._editor=new Ms({includeLevel:this.includeLevel,compact:this.compact},this._rdformsNode),this.show())}},{key:"show",value:function(e,t,n){this.resource=e||this.resource,this.graph=t||this.graph,this.template=n||this.template,this._editor&&this._editor.show({resource:this.resource,graph:this.graph,template:this.template,includeLevel:this.includeLevel}),this.localize()}},{key:"setIncludeLevel",value:function(e){if(null==this._editor||this._editor.getIncludeLevel()!==e)switch(this.includeLevel=e,e){case"mandatory":this._mandatoryClick();break;case"recommended":this._recommendedClick();break;case"optional":this._optionalClick()}}},{key:"disableLevel",value:function(e){switch(e){case"mandatory":this._mandatoryLabel.setAttribute("disabled",!0);break;case"recommended":this._recommendedLabel.setAttribute("disabled",!0);break;case"optional":this._optionalLabel.setAttribute("disabled",!0)}}},{key:"localize",value:function(){var e=Cr.getMessages();Cr.domText(this._mandatoryButton,e.mandatoryLabel),Cr.domText(this._recommendedButton,e.recommendedLabel),Cr.domText(this._optionalButton,e.optionalLabel)}},{key:"setExternalEditor",value:function(e){e.getIncludeLevel()!==this.includeLevel&&e.setIncludeLevel(this.includeLevel),this._editor=e,this.show()}},{key:"_mandatoryClick",value:function(e){this._mandatoryButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!1),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("mandatory")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_recommendedClick",value:function(e){this._recommendedButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("recommended")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_optionalClick",value:function(e){this._optionalButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!0),this._updateEditor("optional")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_updateEditor",value:function(e){this._editor&&this._editor.setIncludeLevel(e)}}])&&yc(t.prototype,n),o&&yc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(60429);const kc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const _c=function(e){return this.__data__.has(e)};function Sc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new cn;++t<n;)this.add(e[t])}Sc.prototype.add=Sc.prototype.push=kc,Sc.prototype.has=_c;const Ec=Sc;const Cc=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const Tc=function(e,t){return e.has(t)};const Oc=function(e,t,n,o,r,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,b=2&n?new Ec:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var p=e[u],m=t[u];if(o)var h=a?o(m,p,u,t,e,i):o(p,m,u,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(b){if(!Cc(t,(function(e,t){if(!Tc(b,t)&&(p===e||r(p,e,n,o,i)))return b.push(t)}))){f=!1;break}}else if(p!==m&&!r(p,m,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const Ac=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Ic=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var jc=ht?ht.prototype:void 0,Dc=jc?jc.valueOf:void 0;const Nc=function(e,t,n,o,r,i,a){switch(n){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 Fo(e),new Fo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return et(+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=Ac;case"[object Set]":var l=1&o;if(s||(s=Ic),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;o|=2,a.set(e,t);var d=Oc(s(e),s(t),o,r,i,a);return a.delete(e),d;case"[object Symbol]":if(Dc)return Dc.call(e)==Dc.call(t)}return!1};var Mc=Object.prototype.hasOwnProperty;const Lc=function(e,t,n,o,r,i){var a=1&n,s=So(e),l=s.length;if(l!=So(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:Mc.call(t,d)))return!1}var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var b=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<l;){var m=e[d=s[c]],h=t[d];if(o)var g=a?o(h,m,d,t,e,i):o(m,h,d,e,t,i);if(!(void 0===g?m===h||r(m,h,n,o,i):g)){b=!1;break}p||(p="constructor"==d)}if(b&&!p){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(b=!1)}return i.delete(e),i.delete(t),b};var Pc=Object.prototype.hasOwnProperty;const Rc=function(e,t,n,o,r,i){var a=Cn(e),s=Cn(t),l=a?"[object Array]":Po(e),c=s?"[object Array]":Po(t),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),f=l==c;if(f&&jn(e)){if(!jn(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new fn),a||Un(e)?Oc(e,t,n,o,r,i):Nc(e,t,l,n,o,r,i);if(!(1&n)){var b=d&&Pc.call(e,"__wrapped__"),p=u&&Pc.call(t,"__wrapped__");if(b||p){var m=b?e.value():e,h=p?t.value():t;return i||(i=new fn),r(m,h,n,o,i)}}return!!f&&(i||(i=new fn),Lc(e,t,n,o,r,i))};const zc=function e(t,n,o,r,i){return t===n||(null==t||null==n||!wn(t)&&!wn(n)?t!=t&&n!=n:Rc(t,n,o,r,e,i))};const Fc=function(e,t){return zc(e,t)};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 $c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Vc(o.key),o)}}function Vc(e){var t=function(e,t){if("object"!=Bc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Bc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bc(t)?t:String(t)}var Uc=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,n,o;return t=e,(n=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var n=this._findChoices(e);if(null==n);else{if(null==t)return n;t(n)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var n=0;n<t.length;n++){var o=t[n];if(Fc(o.constraints,e.getConstraints())&&e.getParentProperty()===o.parentProperty&&e.getHierarchyProperty()===o.hierarchyProperty&&e.isParentPropertyInverted()===(o.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(o.isHierarchyPropertyInverted||!1))return o.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var n=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(n+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var o=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(o+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&$c(t.prototype,n),o&&$c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hc(e){return(Hc="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 Yc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Wc(o.key),o)}}function Wc(e){var t=function(e,t){if("object"!=Hc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Hc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hc(t)?t:String(t)}var Gc=0,qc=function(){function e(t){var n=t.itemStore,o=t.source,r=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=n,this._source=o,this._path=r,this._readOnly=a,this._items=[],Gc+=1,this._id="_bundle_".concat(Gc),this._root=null,this._modified=!1}var t,n,o;return t=e,(n=[{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}}])&&Yc(t.prototype,n),o&&Yc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xc(o.key),o)}}function Xc(e){var t=function(e,t){if("object"!=Zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Zc(o))return o;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 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)}var Kc=function e(t,n){if(!t||!n)return void 0===n?t:n;if(Array.isArray(t)&&Array.isArray(n))return[].concat(origSource[key],extSource[key]);if("object"===Zc(t)&&"object"===Zc(n)){var o={};return Object.keys(t).concat(Object.keys(n)).forEach((function(r){o[r]=e(t[r],n[r])})),o}return n},Jc=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 Uc}var t,n,o;return t=e,(n=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var n=e.getSource(!0),o=n.content||n.items||[];if(t)return this._createItems(o,e._forceChildrenClones,e.getBundle());var r=this.getItem(n.extends);if(r){var i=e.getChildren(!0);return e.getEnhanced("items")||0===i.length?r.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 n=this._registry[e];n&&(delete this._registry[e],this._registry[t]=n,n.setId(t));for(var o=function n(o){var r=o.content;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&n(a)}},r=this.getItems(),i=0;i<r.length;i++){var a=r[i];a instanceof di&&o(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,n){return Ha(e,t,this,n)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new qc(e);this._bundles.push(t),e.source&&e.source.namespaces&&L(e.source.namespaces);var n=e.source.templates||e.source.auxilliary;return n instanceof Array&&this._createItems(n,!1,t),"object"===Zc(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,n=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new di({source:{},children:n,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var n=Object.assign({},e,t);return t.enhanced&&(!0===t.enhanced?Object.keys(e).concat(Object.keys(t)):Object.keys(t.enhanced)).forEach((function(o){n[o]=Kc(e[o],t[o])})),n._extendedSource=t,n.extends=null,delete n.children,n}},{key:"createItem",value:function(e,t,n,o){var r,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,o)}}if(null!=a){switch(a){case"text":r=new Oi({source:e,itemStore:this,bundle:o});break;case"choice":r=new zi({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:o});break;case"group":r=new di({source:e,children:null,itemStore:this,bundle:o});break;case"propertygroup":r=new wi({source:e,children:null,itemStore:this,bundle:o})}var c,d;if(!0!==n&&(null!=e.property&&(this._registryByProperty[e.property]=r,this.priorities&&null!=this.priorities[e.property]&&(r.priority=this.priorities[e.property])),null!=i))this._registry[i]&&console.log("RDForms conflict with item id ".concat(i,', overwriting item from bundle "').concat((null===(c=this._registry[i].getBundle())||void 0===c?void 0:c.getPath())||"",'" with item from bundle "').concat((null===(d=r.getBundle())||void 0===d?void 0:d.getPath())||"",'".')),this._registry[i]=r,null!=o&&o.addItem(r);return r}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 n=e.getBundle();null!=n&&n.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var o=e.getProperty();null!=o&&this._registryByProperty[o]===e&&delete this._registryByProperty[o]}},{key:"_createItems",value:function(e,t,n){var o=this;return e.map((function(r,i){var a="string"==typeof r?e[i]={id:r}:r;return o.createItem(a,t,!1,n)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Qc(t.prototype,n),o&&Qc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(73964),n(58373),n(66793),n(7629),n(77509);function ed(e){return(ed="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 td(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */td=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new A(o||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",b="executing",p="completed",m={};function h(){}function g(){}function v(){}var y={};c(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==n&&o.call(x,a)&&(y=x);var k=v.prototype=h.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,a,s){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==ed(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function E(t,n,o){var r=f;return function(i,a){if(r===b)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=C(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=b;var c=u(t,n,o);if("normal"===c.type){if(r=o.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=p,o.method="throw",o.arg=c.arg)}}}function C(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(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 A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(ed(t)+" is not iterable")}return g.prototype=v,r(k,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new S(d(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=I,A.prototype={constructor:A,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 n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function nd(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function od(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){nd(i,o,r,a,s,"next",e)}function s(e){nd(i,o,r,a,s,"throw",e)}a(void 0)}))}}var rd=function(e,t,n){var o="Fetching template bundle ".concat(n," failed.");if(e===t-1)throw Error("".concat(o," Cannot recover from this, please fix."));console.log("".concat(o," Will try to fetch from a fallback option."))},id=function(){var e=od(td().mark((function e(t){var n,o,r,i,a,s;return td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.length,a=0;case 2:if(!(a<n)){e.next=35;break}return i=t[a],e.prev=4,e.next=7,fetch(i);case 7:o=e.sent,e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(4),Error("A network error ocurred while trying to fetch bundle ".concat(i));case 13:if(!o||!o.ok){e.next=31;break}if(e.prev=14,!(s=o.headers.has("content-type")&&o.headers.get("content-type"))||!s.includes("application/json")){e.next=23;break}return e.next=19,o.json();case 19:return r=e.sent,e.abrupt("break",35);case 23:throw new Error("Failed fetching template ".concat(i,". Expected a JSON file and got ").concat(s));case 24:e.next=29;break;case 26:e.prev=26,e.t1=e.catch(14),rd(a,n,i);case 29:e.next=32;break;case 31:rd(a,n,i);case 32:a++,e.next=2;break;case 35:return e.abrupt("return",{path:i,source:r});case 36:case"end":return e.stop()}}),e,null,[[4,10],[14,26]])})));return function(t){return e.apply(this,arguments)}}(),ad=function(e){return e.map((function(e){return e instanceof Array?id(e):Promise.resolve(e)}))},sd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle(t)}))};const ld=function(){var e=od(td().mark((function e(t){var n,o,r,i,a,s=arguments;return td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:[],o=s.length>2&&void 0!==s[2]?s[2]:function(){},0===n.length&&o&&o([]),r=ad(n),e.next=6,Promise.all(r);case 6:return i=e.sent,a=sd(t,i),o(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),o})());
76
+ */function n(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=n,t.isNCNameChar=function(e){return n(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=="},12654:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},7752:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg viewBox=%270 0 30 30%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.5%29%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e"},26289:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23f44336%27 viewBox=%27-2 -2 7 7%27%3e%3cpath stroke=%27%23f44336%27 d=%27M0 0l3 3m0-3L0 3%27/%3e%3ccircle r=%27.5%27/%3e%3ccircle cx=%273%27 r=%27.5%27/%3e%3ccircle cy=%273%27 r=%27.5%27/%3e%3ccircle cx=%273%27 cy=%273%27 r=%27.5%27/%3e%3c/svg%3E"},46644:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z%27/%3e%3c/svg%3e"},92764:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27%23fff%27 viewBox=%270 0 8 8%27%3e%3cpath d=%27M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z%27/%3e%3c/svg%3e"},42469:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e"},826:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 4%27%3e%3cpath stroke=%27%23fff%27 d=%27M0 2h4%27/%3e%3c/svg%3e"},69282:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4 5%27%3e%3cpath fill=%27%23343a40%27 d=%27M2 0L0 2h4zm0 5L0 3h4z%27/%3e%3c/svg%3e"},5200:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%234caf50%27 d=%27M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e"},85900:e=>{"use strict";e.exports="data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23fff%27 d=%27M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z%27/%3e%3c/svg%3e"},44517:(e,t,n)=>{"use strict";var o=n(17405),r=n(22773),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a function")}},67651:(e,t,n)=>{"use strict";var o=n(74333),r=n(22773),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a constructor")}},59747:(e,t,n)=>{"use strict";var o=n(26633),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},30689:(e,t,n)=>{"use strict";var o=n(96418),r=n(25094),i=n(20341).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},70280:(e,t,n)=>{"use strict";var o=n(76598).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},21141:(e,t,n)=>{"use strict";var o=n(94125),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw new r("Incorrect invocation")}},2955:(e,t,n)=>{"use strict";var o=n(87181),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not an object")}},74585:(e,t,n)=>{"use strict";var o=n(32479);e.exports=o((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},86348:(e,t,n)=>{"use strict";var o=n(80364).forEach,r=n(61116)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},59140:(e,t,n)=>{"use strict";var o=n(86658),r=n(19710),i=n(12154),a=function(e){return function(t,n,a){var s=o(t),l=i(s);if(0===l)return!e&&-1;var c,d=r(a,l);if(e&&n!=n){for(;l>d;)if((c=s[d++])!=c)return!0}else for(;l>d;d++)if((e||d in s)&&s[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},80364:(e,t,n)=>{"use strict";var o=n(69299),r=n(3271),i=n(60586),a=n(69271),s=n(12154),l=n(63918),c=r([].push),d=function(e){var t=1===e,n=2===e,r=3===e,d=4===e,u=6===e,f=7===e,b=5===e||u;return function(p,m,h,g){for(var v,y,w=a(p),x=i(w),k=s(x),_=o(m,h),S=0,E=g||l,C=t?E(p,k):n||f?E(p,0):void 0;k>S;S++)if((b||S in x)&&(y=_(v=x[S],S,w),e))if(t)C[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(C,v)}else switch(e){case 4:return!1;case 7:c(C,v)}return u?-1:r||d?d:C}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},74502:(e,t,n)=>{"use strict";var o=n(32479),r=n(96418),i=n(59459),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},61116:(e,t,n)=>{"use strict";var o=n(32479);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},98e3:(e,t,n)=>{"use strict";var o=n(24952),r=n(9739),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!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(r(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,n)=>{"use strict";var o=n(3271);e.exports=o([].slice)},26402:(e,t,n)=>{"use strict";var o=n(50386),r=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){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 c=r(n/2),d=i(o(e,0,c),t),u=i(o(e,c),t),f=d.length,b=u.length,p=0,m=0;p<f||m<b;)e[p+m]=p<f&&m<b?t(d[p],u[m])<=0?d[p++]:u[m++]:p<f?d[p++]:u[m++];return e};e.exports=i},83225:(e,t,n)=>{"use strict";var o=n(9739),r=n(74333),i=n(87181),a=n(96418)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},63918:(e,t,n)=>{"use strict";var o=n(83225);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},48377:(e,t,n)=>{"use strict";var o=n(96418)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},27579:(e,t,n)=>{"use strict";var o=n(3271),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},24230:(e,t,n)=>{"use strict";var o=n(42066),r=n(17405),i=n(27579),a=n(96418)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"===(o=i(t))&&r(t.callee)?"Arguments":o}},36776:(e,t,n)=>{"use strict";var o=n(25094),r=n(49839),i=n(85640),a=n(69299),s=n(21141),l=n(41838),c=n(4302),d=n(18434),u=n(71620),f=n(70928),b=n(24952),p=n(58157).fastKey,m=n(69933),h=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,d){var u=e((function(e,r){s(e,f),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),b||(e.size=0),l(r)||c(r,e[d],{that:e,AS_ENTRIES:n})})),f=u.prototype,m=g(t),v=function(e,t,n){var o,r,i=m(e),a=y(e,t);return a?a.value=n:(i.last=a={index:r=p(t,!0),key:t,value:n,previous:o=i.last,next:void 0,removed:!1},i.first||(i.first=a),o&&(o.next=a),b?i.size++:e.size++,"F"!==r&&(i.index[r]=a)),e},y=function(e,t){var n,o=m(e),r=p(t);if("F"!==r)return o.index[r];for(n=o.first;n;n=n.next)if(n.key===t)return n};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=o(null),b?e.size=0:this.size=0},delete:function(e){var t=m(this),n=y(this,e);if(n){var o=n.next,r=n.previous;delete t.index[n.index],n.removed=!0,r&&(r.next=o),o&&(o.previous=r),t.first===n&&(t.first=o),t.last===n&&(t.last=r),b?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=m(this),o=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(o(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(f,n?{get:function(e){var t=y(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)}}),b&&r(f,"size",{configurable:!0,get:function(){return m(this).size}}),u},setStrong:function(e,t,n){var o=t+" Iterator",r=g(t),i=g(o);d(e,t,(function(e,t){h(this,{type:o,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?u("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,u(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},57902:(e,t,n)=>{"use strict";var o=n(32162),r=n(32451),i=n(3271),a=n(25135),s=n(67089),l=n(58157),c=n(4302),d=n(21141),u=n(17405),f=n(41838),b=n(87181),p=n(32479),m=n(48377),h=n(38565),g=n(23885);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),w=v?"set":"add",x=r[e],k=x&&x.prototype,_=x,S={},E=function(e){var t=i(k[e]);s(k,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!b(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!b(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!u(x)||!(y||k.forEach&&!p((function(){(new x).entries().next()})))))_=n.getConstructor(t,e,v,w),l.enable();else if(a(e,!0)){var C=new _,T=C[w](y?{}:-0,1)!==C,O=p((function(){C.has(1)})),A=m((function(e){new x(e)})),I=!y&&p((function(){for(var e=new x,t=5;t--;)e[w](t,t);return!e.has(-0)}));A||((_=t((function(e,t){d(e,k);var n=g(new x,e,_);return f(t)||c(t,n[w],{that:n,AS_ENTRIES:v}),n}))).prototype=k,k.constructor=_),(O||I)&&(E("delete"),E("has"),v&&E("get")),(I||T)&&E(w),y&&k.clear&&delete k.clear}return S[e]=_,o({global:!0,constructor:!0,forced:_!==x},S),h(_,e),y||n.setStrong(_,e,v),_}},29726:(e,t,n)=>{"use strict";var o=n(74633),r=n(74730),i=n(67537),a=n(20341);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];o(e,u)||n&&o(n,u)||l(e,u,c(t,u))}}},33752:(e,t,n)=>{"use strict";var o=n(96418)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},39159:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((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,n)=>{"use strict";var o=n(24952),r=n(20341),i=n(31433);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var o=n(24952),r=n(20341),i=n(31433);e.exports=function(e,t,n){o?r.f(e,t,i(0,n)):e[t]=n}},8448:(e,t,n)=>{"use strict";var o=n(2955),r=n(90319),i=TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}},49839:(e,t,n)=>{"use strict";var o=n(51893),r=n(20341);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},67089:(e,t,n)=>{"use strict";var o=n(17405),r=n(20341),i=n(51893),a=n(48213);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},85640:(e,t,n)=>{"use strict";var o=n(67089);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},48213:(e,t,n)=>{"use strict";var o=n(32451),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},47008:(e,t,n)=>{"use strict";var o=n(22773),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+o(t)+" of "+o(e))}},24952:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},82116:(e,t,n)=>{"use strict";var o=n(32451),r=n(87181),i=o.document,a=r(i)&&r(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,n)=>{"use strict";var o=n(82116)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},6256:(e,t,n)=>{"use strict";var o=n(70707).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},97384:(e,t,n)=>{"use strict";var o=n(73529),r=n(55089);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},73529:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},6956:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/MSIE|Trident/.test(o)},60700:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/ipad|iphone|ipod/i.test(o)&&"undefined"!=typeof Pebble},3865:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},55089:(e,t,n)=>{"use strict";var o=n(32451),r=n(27579);e.exports="process"===r(o.process)},20874:(e,t,n)=>{"use strict";var o=n(70707);e.exports=/web0s(?!.*chrome)/i.test(o)},70707:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},59459:(e,t,n)=>{"use strict";var o,r,i=n(32451),a=n(70707),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(o=d.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},18216:(e,t,n)=>{"use strict";var o=n(70707).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},51410:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},32162:(e,t,n)=>{"use strict";var o=n(32451),r=n(67537).f,i=n(25298),a=n(67089),s=n(48213),l=n(29726),c=n(25135);e.exports=function(e,t){var n,d,u,f,b,p=e.target,m=e.global,h=e.stat;if(n=m?o:h?o[p]||s(p,{}):o[p]&&o[p].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(b=r(n,d))&&b.value:n[d],!c(m?d:p+(h?".":"#")+d,e.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(e.sham||u&&u.sham)&&i(f,"sham",!0),a(n,d,f,e)}}},32479:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},44896:(e,t,n)=>{"use strict";n(9081);var o=n(5234),r=n(67089),i=n(40387),a=n(32479),s=n(96418),l=n(25298),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var f=s(e),b=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=b&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!b||!p||n){var m=/./[f],h=t(f,""[e],(function(e,t,n,r,a){var s=t.exec;return s===i||s===d.exec?b&&!a?{done:!0,value:o(m,t,n,r)}:{done:!0,value:o(e,n,t,r)}:{done:!1}}));r(String.prototype,e,h[0]),r(d,f,h[1])}u&&l(d[f],"sham",!0)}},3369:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((function(){return Object.isExtensible(Object.preventExtensions({}))}))},83483:(e,t,n)=>{"use strict";var o=n(59117),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},69299:(e,t,n)=>{"use strict";var o=n(21678),r=n(44517),i=n(59117),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},59117:(e,t,n)=>{"use strict";var o=n(32479);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},5428:(e,t,n)=>{"use strict";var o=n(3271),r=n(44517),i=n(87181),a=n(74633),s=n(50386),l=n(59117),c=Function,d=o([].concat),u=o([].join),f={},b=function(e,t,n){if(!a(f,t)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";f[t]=c("C,a","return new C("+u(o,",")+")")}return f[t](e,n)};e.exports=l?c.bind:function(e){var t=r(this),n=t.prototype,o=s(arguments,1),a=function(){var n=d(o,s(arguments));return this instanceof a?b(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},5234:(e,t,n)=>{"use strict";var o=n(59117),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},74251:(e,t,n)=>{"use strict";var o=n(24952),r=n(74633),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},48891:(e,t,n)=>{"use strict";var o=n(3271),r=n(44517);e.exports=function(e,t,n){try{return o(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},21678:(e,t,n)=>{"use strict";var o=n(27579),r=n(3271);e.exports=function(e){if("Function"===o(e))return r(e)}},3271:(e,t,n)=>{"use strict";var o=n(59117),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},24289:(e,t,n)=>{"use strict";var o=n(32451),r=n(17405),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},44128:(e,t,n)=>{"use strict";var o=n(24230),r=n(37961),i=n(41838),a=n(78230),s=n(96418)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},599:(e,t,n)=>{"use strict";var o=n(5234),r=n(44517),i=n(2955),a=n(22773),s=n(44128),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},44291:(e,t,n)=>{"use strict";var o=n(3271),r=n(9739),i=n(17405),a=n(27579),s=n(73247),l=o([].push);e.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],o=0;o<t;o++){var c=e[o];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var d=n.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var o=0;o<d;o++)if(n[o]===e)return t}}}},37961:(e,t,n)=>{"use strict";var o=n(44517),r=n(41838);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},93315:(e,t,n)=>{"use strict";var o=n(3271),r=n(69271),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,u,f){var b=n+e.length,p=o.length,m=d;return void 0!==u&&(u=r(u),m=c),s(f,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,b);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>p){var f=i(d/10);return 0===f?r:f<=p?void 0===o[f-1]?a(s,1):o[f-1]+a(s,1):r}c=o[d-1]}return void 0===c?"":c}))}},32451:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},74633:(e,t,n)=>{"use strict";var o=n(3271),r=n(69271),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(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,n)=>{"use strict";var o=n(24289);e.exports=o("document","documentElement")},8338:(e,t,n)=>{"use strict";var o=n(24952),r=n(32479),i=n(82116);e.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},60586:(e,t,n)=>{"use strict";var o=n(3271),r=n(32479),i=n(27579),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},23885:(e,t,n)=>{"use strict";var o=n(17405),r=n(87181),i=n(70210);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},6273:(e,t,n)=>{"use strict";var o=n(3271),r=n(17405),i=n(19321),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},58157:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(99295),a=n(87181),s=n(74633),l=n(20341).f,c=n(6076),d=n(93982),u=n(39483),f=n(66871),b=n(3369),p=!1,m=f("meta"),h=0,g=function(e){l(e,m,{value:{objectID:"O"+h++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var o=e(n),r=0,i=o.length;r<i;r++)if(o[r]===m){t(o,r,1);break}return o},o({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!u(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!u(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return b&&p&&u(e)&&!s(e,m)&&g(e),e}};i[m]=!0},69933:(e,t,n)=>{"use strict";var o,r,i,a=n(75237),s=n(32451),l=n(87181),c=n(25298),d=n(74633),u=n(19321),f=n(69683),b=n(99295),p=s.TypeError,m=s.WeakMap;if(a||u.state){var h=u.state||(u.state=new m);h.get=h.get,h.has=h.has,h.set=h.set,o=function(e,t){if(h.has(e))throw new p("Object already initialized");return t.facade=e,h.set(e,t),t},r=function(e){return h.get(e)||{}},i=function(e){return h.has(e)}}else{var g=f("state");b[g]=!0,o=function(e,t){if(d(e,g))throw new p("Object already initialized");return t.facade=e,c(e,g,t),t},r=function(e){return d(e,g)?e[g]:{}},i=function(e){return d(e,g)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},45812:(e,t,n)=>{"use strict";var o=n(96418),r=n(78230),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},9739:(e,t,n)=>{"use strict";var o=n(27579);e.exports=Array.isArray||function(e){return"Array"===o(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,n)=>{"use strict";var o=n(3271),r=n(32479),i=n(17405),a=n(24230),s=n(24289),l=n(6273),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=o(u.exec),b=!u.test(c),p=function(e){if(!i(e))return!1;try{return d(c,[],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 b||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},25135:(e,t,n)=>{"use strict";var o=n(32479),r=n(17405),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===d||n!==c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},41838:e=>{"use strict";e.exports=function(e){return null==e}},87181:(e,t,n)=>{"use strict";var o=n(17405);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},26633:(e,t,n)=>{"use strict";var o=n(87181);e.exports=function(e){return o(e)||null===e}},87138:e=>{"use strict";e.exports=!1},53340:(e,t,n)=>{"use strict";var o=n(87181),r=n(27579),i=n(96418)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===r(e))}},76796:(e,t,n)=>{"use strict";var o=n(24289),r=n(17405),i=n(94125),a=n(68429),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},4302:(e,t,n)=>{"use strict";var o=n(69299),r=n(5234),i=n(2955),a=n(22773),s=n(45812),l=n(12154),c=n(94125),d=n(599),u=n(44128),f=n(71635),b=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var h,g,v,y,w,x,k,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),O=o(t,_),A=function(e){return h&&f(h,"normal",e),new p(!0,e)},I=function(e){return S?(i(e),T?O(e[0],e[1],A):O(e[0],e[1])):T?O(e,A):O(e)};if(E)h=e.iterator;else if(C)h=e;else{if(!(g=u(e)))throw new b(a(e)+" is not iterable");if(s(g)){for(v=0,y=l(e);y>v;v++)if((w=I(e[v]))&&c(m,w))return w;return new p(!1)}h=d(e,g)}for(x=E?e.next:h.next;!(k=r(x,h)).done;){try{w=I(k.value)}catch(e){f(h,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},71635:(e,t,n)=>{"use strict";var o=n(5234),r=n(2955),i=n(37961);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},13653:(e,t,n)=>{"use strict";var o=n(78607).IteratorPrototype,r=n(25094),i=n(31433),a=n(38565),s=n(78230),l=function(){return this};e.exports=function(e,t,n,c){var d=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,d,!1,!0),s[d]=l,e}},18434:(e,t,n)=>{"use strict";var o=n(32162),r=n(5234),i=n(87138),a=n(74251),s=n(17405),l=n(13653),c=n(96666),d=n(70210),u=n(38565),f=n(25298),b=n(67089),p=n(96418),m=n(78230),h=n(78607),g=a.PROPER,v=a.CONFIGURABLE,y=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k=function(){return this};e.exports=function(e,t,n,a,p,h,_){l(n,t,a);var S,E,C,T=function(e){if(e===p&&D)return D;if(!w&&e&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",A=!1,I=e.prototype,j=I[x]||I["@@iterator"]||p&&I[p],D=!w&&j||T(p),N="Array"===t&&I.entries||j;if(N&&(S=c(N.call(new e)))!==Object.prototype&&S.next&&(i||c(S)===y||(d?d(S,y):s(S[x])||b(S,x,k)),u(S,O,!0,!0),i&&(m[O]=k)),g&&"values"===p&&j&&"values"!==j.name&&(!i&&v?f(I,"name","values"):(A=!0,D=function(){return r(j,this)})),p)if(E={values:T("values"),keys:h?D:T("keys"),entries:T("entries")},_)for(C in E)(w||A||!(C in I))&&b(I,C,E[C]);else o({target:t,proto:!0,forced:w||A},E);return i&&!_||I[x]===D||b(I,x,D,{name:p}),m[t]=D,E}},78607:(e,t,n)=>{"use strict";var o,r,i,a=n(32479),s=n(17405),l=n(87181),c=n(25094),d=n(96666),u=n(67089),f=n(96418),b=n(87138),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=d(d(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[p].call(e)!==e}))?o={}:b&&(o=c(o)),s(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},78230:e=>{"use strict";e.exports={}},12154:(e,t,n)=>{"use strict";var o=n(9641);e.exports=function(e){return o(e.length)}},51893:(e,t,n)=>{"use strict";var o=n(3271),r=n(32479),i=n(17405),a=n(74633),s=n(24952),l=n(74251).CONFIGURABLE,c=n(6273),d=n(69933),u=d.enforce,f=d.get,b=String,p=Object.defineProperty,m=o("".slice),h=o("".replace),g=o([].join),v=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(b(t),0,7)&&(t="["+h(b(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return a(o,"source")||(o.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},21797:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},8783:(e,t,n)=>{"use strict";var o,r,i,a,s,l=n(32451),c=n(3318),d=n(69299),u=n(98743).set,f=n(16986),b=n(3865),p=n(60700),m=n(20874),h=n(55089),g=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var k=new f,_=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&o(),e}e&&e.enter()};b||h||m||!g||!v?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),o=function(){s(_)}):h?o=function(){y.nextTick(_)}:(u=d(u,l),o=function(){u(_)}):(r=!0,i=v.createTextNode(""),new g(_).observe(i,{characterData:!0}),o=function(){i.data=r=!r}),x=function(e){k.head||o(),k.add(e)}}e.exports=x},21128:(e,t,n)=>{"use strict";var o=n(44517),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},31730:(e,t,n)=>{"use strict";var o=n(53340),r=TypeError;e.exports=function(e){if(o(e))throw new r("The method doesn't accept regular expressions");return e}},25094:(e,t,n)=>{"use strict";var o,r=n(2955),i=n(79203),a=n(51410),s=n(99295),l=n(29227),c=n(82116),d=n(69683),u=d("IE_PROTO"),f=function(){},b=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&o?p(o):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F):p(o);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[u]=e):n=m(),void 0===t?n:i.f(n,t)}},79203:(e,t,n)=>{"use strict";var o=n(24952),r=n(22916),i=n(20341),a=n(2955),s=n(86658),l=n(32005);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),r=l(t),c=r.length,d=0;c>d;)i.f(e,n=r[d++],o[n]);return e}},20341:(e,t,n)=>{"use strict";var o=n(24952),r=n(8338),i=n(22916),a=n(2955),s=n(50514),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},67537:(e,t,n)=>{"use strict";var o=n(24952),r=n(5234),i=n(67109),a=n(31433),s=n(86658),l=n(50514),c=n(74633),d=n(8338),u=Object.getOwnPropertyDescriptor;t.f=o?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return a(!r(i.f,e,t),e[t])}},93982:(e,t,n)=>{"use strict";var o=n(27579),r=n(86658),i=n(6076).f,a=n(50386),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===o(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(r(e))}},6076:(e,t,n)=>{"use strict";var o=n(67530),r=n(51410).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},93188:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},96666:(e,t,n)=>{"use strict";var o=n(74633),r=n(17405),i=n(69271),a=n(69683),s=n(39159),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(o(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},39483:(e,t,n)=>{"use strict";var o=n(32479),r=n(87181),i=n(27579),a=n(74585),s=Object.isExtensible,l=o((function(){s(1)}));e.exports=l||a?function(e){return!!r(e)&&((!a||"ArrayBuffer"!==i(e))&&(!s||s(e)))}:s},94125:(e,t,n)=>{"use strict";var o=n(3271);e.exports=o({}.isPrototypeOf)},67530:(e,t,n)=>{"use strict";var o=n(3271),r=n(74633),i=n(86658),a=n(59140).indexOf,s=n(99295),l=o([].push);e.exports=function(e,t){var n,o=i(e),c=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&l(d,n);for(;t.length>c;)r(o,n=t[c++])&&(~a(d,n)||l(d,n));return d}},32005:(e,t,n)=>{"use strict";var o=n(67530),r=n(51410);e.exports=Object.keys||function(e){return o(e,r)}},67109:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},70210:(e,t,n)=>{"use strict";var o=n(48891),r=n(87181),i=n(24915),a=n(59747);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return i(n),a(o),r(n)?(t?e(n,o):n.__proto__=o,n):n}}():void 0)},71447:(e,t,n)=>{"use strict";var o=n(24952),r=n(32479),i=n(3271),a=n(96666),s=n(32005),l=n(86658),c=i(n(67109).f),d=i([].push),u=o&&r((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),f=function(e){return function(t){for(var n,r=l(t),i=s(r),f=u&&null===a(r),b=i.length,p=0,m=[];b>p;)n=i[p++],o&&!(f?n in r:c(r,n))||d(m,e?[n,r[n]]:r[n]);return m}};e.exports={entries:f(!0),values:f(!1)}},69267:(e,t,n)=>{"use strict";var o=n(42066),r=n(24230);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},90319:(e,t,n)=>{"use strict";var o=n(5234),r=n(17405),i=n(87181),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!i(s=o(n,e)))return s;if(r(n=e.valueOf)&&!i(s=o(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!i(s=o(n,e)))return s;throw new a("Can't convert object to primitive value")}},74730:(e,t,n)=>{"use strict";var o=n(24289),r=n(3271),i=n(6076),a=n(93188),s=n(2955),l=r([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},70992:(e,t,n)=>{"use strict";var o=n(32451);e.exports=o},62686:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},39508:(e,t,n)=>{"use strict";var o=n(32451),r=n(9967),i=n(17405),a=n(25135),s=n(6273),l=n(96418),c=n(97384),d=n(73529),u=n(87138),f=n(59459),b=r&&r.prototype,p=l("species"),m=!1,h=i(o.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===f)return!0;if(u&&(!b.catch||!b.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=o,!(m=n.then((function(){}))instanceof o))return!0}return!t&&(c||d)&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},9967:(e,t,n)=>{"use strict";var o=n(32451);e.exports=o.Promise},16181:(e,t,n)=>{"use strict";var o=n(2955),r=n(87181),i=n(21128);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},62221:(e,t,n)=>{"use strict";var o=n(9967),r=n(48377),i=n(39508).CONSTRUCTOR;e.exports=i||!r((function(e){o.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},n=this.tail;n?n.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,n)=>{"use strict";var o=n(5234),r=n(2955),i=n(17405),a=n(27579),s=n(40387),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=o(n,e,t);return null!==c&&r(c),c}if("RegExp"===a(e))return o(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},40387:(e,t,n)=>{"use strict";var o,r,i=n(5234),a=n(3271),s=n(73247),l=n(32754),c=n(62616),d=n(4999),u=n(25094),f=n(69933).get,b=n(19980),p=n(49932),m=d("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),k=(r=/b*/g,i(h,o=/a/,"a"),i(h,r,"a"),0!==o.lastIndex||0!==r.lastIndex),_=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||_||b||p)&&(g=function(e){var t,n,o,r,a,c,d,b=this,p=f(b),E=s(e),C=p.raw;if(C)return C.lastIndex=b.lastIndex,t=i(g,C,E),b.lastIndex=C.lastIndex,t;var T=p.groups,O=_&&b.sticky,A=i(l,b),I=b.source,j=0,D=E;if(O&&(A=w(A,"y",""),-1===y(A,"g")&&(A+="g"),D=x(E,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==v(E,b.lastIndex-1))&&(I="(?: "+I+")",D=" "+D,j++),n=new RegExp("^(?:"+I+")",A)),S&&(n=new RegExp("^"+I+"$(?!\\s)",A)),k&&(o=b.lastIndex),r=i(h,O?n:b,D),O?r?(r.input=x(r.input,j),r[0]=x(r[0],j),r.index=b.lastIndex,b.lastIndex+=r[0].length):b.lastIndex=0:k&&r&&(b.lastIndex=b.global?r.index+r[0].length:o),S&&r&&r.length>1&&i(m,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&T)for(r.groups=c=u(null),a=0;a<T.length;a++)c[(d=T[a])[0]]=r[d[1]];return r}),e.exports=g},32754:(e,t,n)=>{"use strict";var o=n(2955);e.exports=function(){var e=o(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,n)=>{"use strict";var o=n(5234),r=n(74633),i=n(94125),a=n(32754),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!i(s,e)?t:o(a,e)}},62616:(e,t,n)=>{"use strict";var o=n(32479),r=n(32451).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},19980:(e,t,n)=>{"use strict";var o=n(32479),r=n(32451).RegExp;e.exports=o((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},49932:(e,t,n)=>{"use strict";var o=n(32479),r=n(32451).RegExp;e.exports=o((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},24915:(e,t,n)=>{"use strict";var o=n(41838),r=TypeError;e.exports=function(e){if(o(e))throw new r("Can't call method on "+e);return e}},3318:(e,t,n)=>{"use strict";var o=n(32451),r=n(24952),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return o[e];var t=i(o,e);return t&&t.value}},70928:(e,t,n)=>{"use strict";var o=n(24289),r=n(49839),i=n(96418),a=n(24952),s=i("species");e.exports=function(e){var t=o(e);a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},38565:(e,t,n)=>{"use strict";var o=n(20341).f,r=n(74633),i=n(96418)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,i)&&o(e,i,{configurable:!0,value:t})}},69683:(e,t,n)=>{"use strict";var o=n(4999),r=n(66871),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},19321:(e,t,n)=>{"use strict";var o=n(87138),r=n(32451),i=n(48213),a=e.exports=r["__core-js_shared__"]||i("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.0",mode:o?"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,n)=>{"use strict";var o=n(19321);e.exports=function(e,t){return o[e]||(o[e]=t||{})}},58343:(e,t,n)=>{"use strict";var o=n(2955),r=n(67651),i=n(41838),a=n(96418)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||i(n=o(s)[a])?t:r(n)}},76598:(e,t,n)=>{"use strict";var o=n(3271),r=n(65815),i=n(73247),a=n(24915),s=o("".charAt),l=o("".charCodeAt),c=o("".slice),d=function(e){return function(t,n){var o,d,u=i(a(t)),f=r(n),b=u.length;return f<0||f>=b?e?"":void 0:(o=l(u,f))<55296||o>56319||f+1===b||(d=l(u,f+1))<56320||d>57343?e?s(u,f):o:e?c(u,f,f+2):d-56320+(o-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},82834:(e,t,n)=>{"use strict";var o=n(3271),r=n(24915),i=n(73247),a=n(28628),s=o("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},41414:(e,t,n)=>{"use strict";var o=n(59459),r=n(32479),i=n(32451).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},77416:(e,t,n)=>{"use strict";var o=n(5234),r=n(24289),i=n(96418),a=n(67089);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return o(n,this)}),{arity:1})}},81836:(e,t,n)=>{"use strict";var o=n(41414);e.exports=o&&!!Symbol.for&&!!Symbol.keyFor},98743:(e,t,n)=>{"use strict";var o,r,i,a,s=n(32451),l=n(83483),c=n(69299),d=n(17405),u=n(74633),f=n(32479),b=n(29227),p=n(50386),m=n(82116),h=n(42289),g=n(3865),v=n(55089),y=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,_=s.Function,S=s.MessageChannel,E=s.String,C=0,T={};f((function(){o=s.location}));var O=function(e){if(u(T,e)){var t=T[e];delete T[e],t()}},A=function(e){return function(){O(e)}},I=function(e){O(e.data)},j=function(e){s.postMessage(E(e),o.protocol+"//"+o.host)};y&&w||(y=function(e){h(arguments.length,1);var t=d(e)?e:_(e),n=p(arguments,1);return T[++C]=function(){l(t,void 0,n)},r(C),C},w=function(e){delete T[e]},v?r=function(e){x.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:S&&!g?(a=(i=new S).port2,i.port1.onmessage=I,r=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!f(j)?(r=j,s.addEventListener("message",I,!1)):r="onreadystatechange"in m("script")?function(e){b.appendChild(m("script")).onreadystatechange=function(){b.removeChild(this),O(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:y,clear:w}},37130:(e,t,n)=>{"use strict";var o=n(3271);e.exports=o(1..valueOf)},19710:(e,t,n)=>{"use strict";var o=n(65815),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},86658:(e,t,n)=>{"use strict";var o=n(60586),r=n(24915);e.exports=function(e){return o(r(e))}},65815:(e,t,n)=>{"use strict";var o=n(21797);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},9641:(e,t,n)=>{"use strict";var o=n(65815),r=Math.min;e.exports=function(e){var t=o(e);return t>0?r(t,9007199254740991):0}},69271:(e,t,n)=>{"use strict";var o=n(24915),r=Object;e.exports=function(e){return r(o(e))}},96492:(e,t,n)=>{"use strict";var o=n(5234),r=n(87181),i=n(76796),a=n(37961),s=n(90319),l=n(96418),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,l=a(e,d);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!r(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},50514:(e,t,n)=>{"use strict";var o=n(96492),r=n(76796);e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},42066:(e,t,n)=>{"use strict";var o={};o[n(96418)("toStringTag")]="z",e.exports="[object z]"===String(o)},73247:(e,t,n)=>{"use strict";var o=n(24230),r=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},22773:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},66871:(e,t,n)=>{"use strict";var o=n(3271),r=0,i=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}},68429:(e,t,n)=>{"use strict";var o=n(41414);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},22916:(e,t,n)=>{"use strict";var o=n(24952),r=n(32479);e.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},42289:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},75237:(e,t,n)=>{"use strict";var o=n(32451),r=n(17405),i=o.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},82318:(e,t,n)=>{"use strict";var o=n(70992),r=n(74633),i=n(66717),a=n(20341).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},66717:(e,t,n)=>{"use strict";var o=n(96418);t.f=o},96418:(e,t,n)=>{"use strict";var o=n(32451),r=n(4999),i=n(74633),a=n(66871),s=n(41414),l=n(68429),c=o.Symbol,d=r("wks"),u=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=s&&i(c,e)?c[e]:u("Symbol."+e)),d[e]}},28628:e=>{"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},48888:(e,t,n)=>{"use strict";var o=n(32162),r=n(32479),i=n(9739),a=n(87181),s=n(69271),l=n(12154),c=n(93409),d=n(25508),u=n(63918),f=n(74502),b=n(96418),p=n(59459),m=b("isConcatSpreadable"),h=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!h||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=u(a,0),b=0;for(t=-1,o=arguments.length;t<o;t++)if(g(i=-1===t?a:arguments[t]))for(r=l(i),c(b+r),n=0;n<r;n++,b++)n in i&&d(f,b,i[n]);else c(b+1),d(f,b++,i);return f.length=b,f}})},2458:(e,t,n)=>{"use strict";var o=n(32162),r=n(80364).filter;o({target:"Array",proto:!0,forced:!n(74502)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},3925:(e,t,n)=>{"use strict";var o=n(32162),r=n(80364).find,i=n(30689),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},17554:(e,t,n)=>{"use strict";var o=n(32162),r=n(59140).includes,i=n(32479),a=n(30689);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54458:(e,t,n)=>{"use strict";var o=n(86658),r=n(30689),i=n(78230),a=n(69933),s=n(20341).f,l=n(18434),c=n(71620),d=n(87138),u=n(24952),f=a.set,b=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=b(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!d&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},65273:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(60586),a=n(86658),s=n(61116),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},72870:(e,t,n)=>{"use strict";var o=n(32162),r=n(80364).map;o({target:"Array",proto:!0,forced:!n(74502)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},45872:(e,t,n)=>{"use strict";var o=n(32162),r=n(9739),i=n(74333),a=n(87181),s=n(19710),l=n(12154),c=n(86658),d=n(25508),u=n(96418),f=n(74502),b=n(50386),p=f("slice"),m=u("species"),h=Array,g=Math.max;o({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,o,u,f=c(this),p=l(f),v=s(e,p),y=s(void 0===t?p:t,p);if(r(f)&&(n=f.constructor,(i(n)&&(n===h||r(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===h||void 0===n))return b(f,v,y);for(o=new(void 0===n?h:n)(g(y-v,0)),u=0;v<y;v++,u++)v in f&&d(o,u,f[v]);return o.length=u,o}})},91756:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(44517),a=n(69271),s=n(12154),l=n(47008),c=n(73247),d=n(32479),u=n(26402),f=n(61116),b=n(6256),p=n(6956),m=n(59459),h=n(18216),g=[],v=r(g.sort),y=r(g.push),w=d((function(){g.sort(void 0)})),x=d((function(){g.sort(null)})),k=f("sort"),_=!d((function(){if(m)return m<70;if(!(b&&b>3)){if(p)return!0;if(h)return h<603;var e,t,n,o,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:t+o,v:n})}for(g.sort((function(e,t){return t.v-e.v})),o=0;o<g.length;o++)t=g[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:w||!x||!k||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var n,o,r=[],d=s(t);for(o=0;o<d;o++)o in t&&y(r,t[o]);for(u(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(r),o=0;o<n;)t[o]=r[o++];for(;o<d;)l(t,o++);return t}})},15796:(e,t,n)=>{"use strict";var o=n(32162),r=n(69271),i=n(19710),a=n(65815),s=n(12154),l=n(98e3),c=n(93409),d=n(63918),u=n(25508),f=n(47008),b=n(74502)("splice"),p=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!b},{splice:function(e,t){var n,o,b,h,g,v,y=r(this),w=s(y),x=i(e,w),k=arguments.length;for(0===k?n=o=0:1===k?(n=0,o=w-x):(n=k-2,o=m(p(a(t),0),w-x)),c(w+n-o),b=d(y,o),h=0;h<o;h++)(g=x+h)in y&&u(b,h,y[g]);if(b.length=o,n<o){for(h=x;h<w-o;h++)v=h+n,(g=h+o)in y?y[v]=y[g]:f(y,v);for(h=w;h>w-o+n;h--)f(y,h-1)}else if(n>o)for(h=w-o;h>x;h--)v=h+n-1,(g=h+o-1)in y?y[v]=y[g]:f(y,v);for(h=0;h<n;h++)y[h+x]=arguments[h+2];return l(y,w-o+n),b}})},4099:(e,t,n)=>{"use strict";var o=n(74633),r=n(67089),i=n(8448),a=n(96418)("toPrimitive"),s=Date.prototype;o(s,a)||r(s,a,i)},40454:(e,t,n)=>{"use strict";var o=n(24952),r=n(74251).EXISTS,i=n(3271),a=n(49839),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);o&&!r&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},63322:(e,t,n)=>{"use strict";var o=n(32162),r=n(32451);o({global:!0,forced:r.globalThis!==r},{globalThis:r})},17767:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(83483),a=n(5234),s=n(3271),l=n(32479),c=n(17405),d=n(76796),u=n(50386),f=n(44291),b=n(41414),p=String,m=r("JSON","stringify"),h=s(/./.exec),g=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,S=!b||l((function(){var e=r("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 n=u(arguments),o=f(t);if(c(o)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(o)&&(t=a(o,this,p(e),t)),!d(t))return t},i(m,null,n)},T=function(e,t,n){var o=g(n,t-1),r=g(n,t+1);return h(k,e)&&!h(_,r)||h(_,e)&&!h(k,o)?"\\u"+w(v(e,0),16):e};m&&o({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(e,t,n){var o=u(arguments),r=i(S?C:m,null,o);return E&&"string"==typeof r?y(r,x,T):r}})},17299:(e,t,n)=>{"use strict";var o=n(32451);n(38565)(o.JSON,"JSON",!0)},69590:(e,t,n)=>{"use strict";n(57902)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(36776))},7517:(e,t,n)=>{"use strict";n(69590)},12766:(e,t,n)=>{"use strict";n(38565)(Math,"Math",!0)},75397:(e,t,n)=>{"use strict";var o=n(32162),r=n(87138),i=n(24952),a=n(32451),s=n(70992),l=n(3271),c=n(25135),d=n(74633),u=n(23885),f=n(94125),b=n(76796),p=n(96492),m=n(32479),h=n(6076).f,g=n(67537).f,v=n(20341).f,y=n(37130),w=n(82834).trim,x=a.Number,k=s.Number,_=x.prototype,S=a.TypeError,E=l("".slice),C=l("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,n,o,r,i,a,s,l,c=p(e,"number");if(b(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=C(c,0))||45===t){if(88===(n=C(c,2))||120===n)return NaN}else if(48===t){switch(C(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=E(c,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},A=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){return f(_,e)&&m((function(){y(e)}))},j=function(e){var t=arguments.length<1?0:x(T(e));return I(this)?u(Object(t),this,j):t};j.prototype=_,A&&!r&&(_.constructor=j),o({global:!0,constructor:!0,wrap:!0,forced:A},{Number:j});var D=function(e,t){for(var n,o=i?h(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(","),r=0;o.length>r;r++)d(t,n=o[r])&&!d(e,n)&&v(e,n,g(t,n))};r&&k&&D(s.Number,k),(A||r)&&D(s.Number,x)},93900:(e,t,n)=>{"use strict";var o=n(32162),r=n(41414),i=n(32479),a=n(93188),s=n(69271);o({target:"Object",stat:!0,forced:!r||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},20539:(e,t,n)=>{"use strict";var o=n(32162),r=n(32479),i=n(69271),a=n(96666),s=n(39159);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},10373:(e,t,n)=>{"use strict";var o=n(32162),r=n(69271),i=n(32005);o({target:"Object",stat:!0,forced:n(32479)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},45195:(e,t,n)=>{"use strict";var o=n(42066),r=n(67089),i=n(69267);o||r(Object.prototype,"toString",i,{unsafe:!0})},13090:(e,t,n)=>{"use strict";var o=n(32162),r=n(71447).values;o({target:"Object",stat:!0},{values:function(e){return r(e)}})},65716:(e,t,n)=>{"use strict";var o=n(32162),r=n(5234),i=n(44517),a=n(21128),s=n(62686),l=n(4302);o({target:"Promise",stat:!0,forced:n(62221)},{all:function(e){var t=this,n=a.f(t),o=n.resolve,c=n.reject,d=s((function(){var n=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,r(n,t,e).then((function(e){l||(l=!0,a[i]=e,--d||o(a))}),c)})),--d||o(a)}));return d.error&&c(d.value),n.promise}})},79901:(e,t,n)=>{"use strict";var o=n(32162),r=n(87138),i=n(39508).CONSTRUCTOR,a=n(9967),s=n(24289),l=n(17405),c=n(67089),d=a&&a.prototype;if(o({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},54083:(e,t,n)=>{"use strict";var o,r,i,a=n(32162),s=n(87138),l=n(55089),c=n(32451),d=n(5234),u=n(67089),f=n(70210),b=n(38565),p=n(70928),m=n(44517),h=n(17405),g=n(87181),v=n(21141),y=n(58343),w=n(98743).set,x=n(8783),k=n(14735),_=n(62686),S=n(16986),E=n(69933),C=n(9967),T=n(39508),O=n(21128),A=T.CONSTRUCTOR,I=T.REJECTION_EVENT,j=T.SUBCLASSING,D=E.getterFor("Promise"),N=E.set,M=C&&C.prototype,L=C,P=M,R=c.TypeError,z=c.document,F=c.process,B=O.f,$=B,V=!!(z&&z.createEvent&&c.dispatchEvent),U=function(e){var t;return!(!g(e)||!h(t=e.then))&&t},H=function(e,t){var n,o,r,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),r=!0)),n===e.promise?c(new R("Promise-chain cycle")):(o=U(n))?d(o,n,l,c):l(n)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},Y=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,o=e.reactions;n=o.get();)H(n,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,n){var o,r;V?((o=z.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},!I&&(r=c["on"+e])?r(o):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},G=function(e){d(w,c,(function(){var t,n=e.facade,o=e.value;if(q(e)&&(t=_((function(){l?F.emit("unhandledRejection",o,n):W("unhandledrejection",n,o)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){d(w,c,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(o){e(t,o,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},K=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new R("Promise can't be resolved itself");var o=U(t);o?x((function(){var n={done:!1};try{d(o,t,X(K,n,e),X(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){Z({done:!1},t,e)}}};if(A&&(P=(L=function(e){v(this,P),m(e),d(o,this);var t=D(this);try{e(X(K,t),X(Z,t))}catch(e){Z(t,e)}}).prototype,(o=function(e){N(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=u(P,"then",(function(e,t){var n=D(this),o=B(y(this,L));return n.parent=!0,o.ok=!h(e)||e,o.fail=h(t)&&t,o.domain=l?F.domain:void 0,0===n.state?n.reactions.add(o):x((function(){H(o,n)})),o.promise})),r=function(){var e=new o,t=D(e);this.promise=e,this.resolve=X(K,t),this.reject=X(Z,t)},O.f=B=function(e){return e===L||void 0===e?new r(e):$(e)},!s&&h(C)&&M!==Object.prototype)){i=M.then,j||u(M,"then",(function(e,t){var n=this;return new L((function(e,t){d(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete M.constructor}catch(e){}f&&f(M,P)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:L}),b(L,"Promise",!1,!0),p("Promise")},30695:(e,t,n)=>{"use strict";n(54083),n(65716),n(79901),n(72075),n(49489),n(25548)},72075:(e,t,n)=>{"use strict";var o=n(32162),r=n(5234),i=n(44517),a=n(21128),s=n(62686),l=n(4302);o({target:"Promise",stat:!0,forced:n(62221)},{race:function(e){var t=this,n=a.f(t),o=n.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){r(a,t,e).then(n.resolve,o)}))}));return c.error&&o(c.value),n.promise}})},49489:(e,t,n)=>{"use strict";var o=n(32162),r=n(21128);o({target:"Promise",stat:!0,forced:n(39508).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},25548:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(87138),a=n(9967),s=n(39508).CONSTRUCTOR,l=n(16181),c=r("Promise"),d=i&&!s;o({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},80528:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(83483),a=n(5428),s=n(67651),l=n(2955),c=n(87181),d=n(25094),u=n(32479),f=r("Reflect","construct"),b=Object.prototype,p=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!u((function(){f((function(){}))})),g=m||h;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!m)return f(e,t,n);if(e===n){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 o=[null];return i(p,o,t),new(i(a,e,o))}var r=n.prototype,u=d(c(r)?r:b),g=i(e,u,t);return c(g)?g:u}})},9081:(e,t,n)=>{"use strict";var o=n(32162),r=n(40387);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},7741:(e,t,n)=>{"use strict";var o=n(74251).PROPER,r=n(67089),i=n(2955),a=n(73247),s=n(32479),l=n(98017),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=o&&"toString"!==d.name;(u||f)&&r(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},9807:(e,t,n)=>{"use strict";n(57902)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(36776))},42781:(e,t,n)=>{"use strict";n(9807)},39385:(e,t,n)=>{"use strict";var o=n(32162),r=n(3271),i=n(31730),a=n(24915),s=n(73247),l=n(33752),c=r("".indexOf);o({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},94825:(e,t,n)=>{"use strict";var o=n(76598).charAt,r=n(73247),i=n(69933),a=n(18434),s=n(71620),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=o(n,r),t.index+=e.length,s(e,!1))}))},24601:(e,t,n)=>{"use strict";var o=n(83483),r=n(5234),i=n(3271),a=n(44896),s=n(32479),l=n(2955),c=n(17405),d=n(41838),u=n(65815),f=n(9641),b=n(73247),p=n(24915),m=n(70280),h=n(37961),g=n(93315),v=n(74355),y=n(96418)("replace"),w=Math.max,x=Math.min,k=i([].concat),_=i([].push),S=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var o=p(this),i=d(e)?void 0:h(e,y);return i?r(i,e,o,n):r(t,b(o),e,n)},function(e,r){var a=l(this),s=b(e);if("string"==typeof r&&-1===S(r,i)&&-1===S(r,"$<")){var d=n(t,a,s,r);if(d.done)return d.value}var p=c(r);p||(r=b(r));var h,y=a.global;y&&(h=a.unicode,a.lastIndex=0);for(var C,T=[];null!==(C=v(a,s))&&(_(T,C),y);){""===b(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),h))}for(var O,A="",I=0,j=0;j<T.length;j++){for(var D,N=b((C=T[j])[0]),M=w(x(u(C.index),s.length),0),L=[],P=1;P<C.length;P++)_(L,void 0===(O=C[P])?O:String(O));var R=C.groups;if(p){var z=k([N],L,M,s);void 0!==R&&_(z,R),D=b(o(r,void 0,z))}else D=g(N,s,M,L,R,r);M>=I&&(A+=E(s,I,M)+D,I=M+N.length)}return A+E(s,I)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||T)},73220:(e,t,n)=>{"use strict";var o,r=n(32162),i=n(21678),a=n(67537).f,s=n(9641),l=n(73247),c=n(31730),d=n(24915),u=n(33752),f=n(87138),b=i("".slice),p=Math.min,m=u("startsWith");r({target:"String",proto:!0,forced:!!(f||m||(o=a(String.prototype,"startsWith"),!o||o.writable))&&!m},{startsWith:function(e){var t=l(d(this));c(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),o=l(e);return b(t,n,n+o.length)===o}})},85110:(e,t,n)=>{"use strict";n(82318)("asyncIterator")},10359:(e,t,n)=>{"use strict";var o=n(32162),r=n(32451),i=n(5234),a=n(3271),s=n(87138),l=n(24952),c=n(41414),d=n(32479),u=n(74633),f=n(94125),b=n(2955),p=n(86658),m=n(50514),h=n(73247),g=n(31433),v=n(25094),y=n(32005),w=n(6076),x=n(93982),k=n(93188),_=n(67537),S=n(20341),E=n(79203),C=n(67109),T=n(67089),O=n(49839),A=n(4999),I=n(69683),j=n(99295),D=n(66871),N=n(96418),M=n(66717),L=n(82318),P=n(77416),R=n(38565),z=n(69933),F=n(80364).forEach,B=I("hidden"),$=z.set,V=z.getterFor("Symbol"),U=Object.prototype,H=r.Symbol,Y=H&&H.prototype,W=r.RangeError,G=r.TypeError,q=r.QObject,Q=_.f,X=S.f,Z=x.f,K=C.f,J=a([].push),ee=A("symbols"),te=A("op-symbols"),ne=A("wks"),oe=!q||!q.prototype||!q.prototype.findChild,re=function(e,t,n){var o=Q(U,t);o&&delete U[t],X(e,t,n),o&&e!==U&&X(U,t,o)},ie=l&&d((function(){return 7!==v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?re:X,ae=function(e,t){var n=ee[e]=v(Y);return $(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),b(e);var o=m(t);return b(n),u(ee,o)?(n.enumerable?(u(e,B)&&e[B][o]&&(e[B][o]=!1),n=v(n,{enumerable:g(0,!1)})):(u(e,B)||X(e,B,g(1,v(null))),e[B][o]=!0),ie(e,o,n)):X(e,o,n)},le=function(e,t){b(e);var n=p(t),o=y(n).concat(fe(n));return F(o,(function(t){l&&!i(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=i(K,this,t);return!(this===U&&u(ee,t)&&!u(te,t))&&(!(n||!u(this,t)||!u(ee,t)||u(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),o=m(t);if(n!==U||!u(ee,o)||u(te,o)){var r=Q(n,o);return!r||!u(ee,o)||u(n,B)&&n[B][o]||(r.enumerable=!0),r}},ue=function(e){var t=Z(p(e)),n=[];return F(t,(function(e){u(ee,e)||u(j,e)||J(n,e)})),n},fe=function(e){var t=e===U,n=Z(t?te:p(e)),o=[];return F(n,(function(e){!u(ee,e)||t&&!u(U,e)||J(o,ee[e])})),o};c||(T(Y=(H=function(){if(f(Y,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=D(e),n=function(e){var o=void 0===this?r:this;o===U&&i(n,te,e),u(o,B)&&u(o[B],t)&&(o[B][t]=!1);var a=g(1,e);try{ie(o,t,a)}catch(e){if(!(e instanceof W))throw e;re(o,t,a)}};return l&&oe&&ie(U,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),T(H,"withoutSetter",(function(e){return ae(D(e),e)})),C.f=ce,S.f=se,E.f=le,_.f=de,w.f=x.f=ue,k.f=fe,M.f=function(e){return ae(N(e),e)},l&&(O(Y,"description",{configurable:!0,get:function(){return V(this).description}}),s||T(U,"propertyIsEnumerable",ce,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(y(ne),(function(e){L(e)})),o({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),P(),R(H,"Symbol"),j[B]=!0},14223:(e,t,n)=>{"use strict";var o=n(32162),r=n(24952),i=n(32451),a=n(3271),s=n(74633),l=n(17405),c=n(94125),d=n(73247),u=n(49839),f=n(29726),b=i.Symbol,p=b&&b.prototype;if(r&&l(b)&&(!("description"in p)||void 0!==b().description)){var m={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(p,this)?new b(e):void 0===e?b():b(e);return""===e&&(m[t]=!0),t};f(h,b),h.prototype=p,p.constructor=h;var g="Symbol(description detection)"===String(b("description detection")),v=a(p.valueOf),y=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);u(p,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),n=g?k(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),o({global:!0,constructor:!0,forced:!0},{Symbol:h})}},51071:(e,t,n)=>{"use strict";var o=n(32162),r=n(24289),i=n(74633),a=n(73247),s=n(4999),l=n(81836),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,d[n]=t,n}})},58965:(e,t,n)=>{"use strict";n(82318)("iterator")},49361:(e,t,n)=>{"use strict";n(10359),n(51071),n(57627),n(17767),n(93900)},57627:(e,t,n)=>{"use strict";var o=n(32162),r=n(74633),i=n(76796),a=n(22773),s=n(4999),l=n(81836),c=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(r(c,e))return c[e]}})},64120:(e,t,n)=>{"use strict";var o=n(82318),r=n(77416);o("toPrimitive"),r()},67483:(e,t,n)=>{"use strict";var o=n(24289),r=n(82318),i=n(38565);r("toStringTag"),i(o("Symbol"),"Symbol")},74289:(e,t,n)=>{"use strict";n(63322)},83500:(e,t,n)=>{"use strict";var o=n(32451),r=n(16411),i=n(75427),a=n(86348),s=n(25298),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in r)r[c]&&l(o[c]&&o[c].prototype);l(i)},56270:(e,t,n)=>{"use strict";var o=n(32451),r=n(16411),i=n(75427),a=n(54458),s=n(25298),l=n(38565),c=n(96418)("iterator"),d=a.values,u=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(t){e[c]=d}if(l(e,t,!0),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in r)u(o[f]&&o[f].prototype,f);u(i,"DOMTokenList")},10509:(e,t,n)=>{"use strict";var o=n(69985),r=n(23691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a function")}},52655:(e,t,n)=>{"use strict";var o=n(19429),r=n(23691),i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not a constructor")}},23550:(e,t,n)=>{"use strict";var o=n(60598),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i("Can't set "+r(e)+" as a prototype")}},87370:(e,t,n)=>{"use strict";var o=n(44201),r=n(25391),i=n(72560).f,a=o("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},71514:(e,t,n)=>{"use strict";var o=n(10730).charAt;e.exports=function(e,t,n){return t+(n?o(e,t).length:1)}},767:(e,t,n)=>{"use strict";var o=n(23622),r=TypeError;e.exports=function(e,t){if(o(t,e))return e;throw new r("Incorrect invocation")}},85027:(e,t,n)=>{"use strict";var o=n(48999),r=String,i=TypeError;e.exports=function(e){if(o(e))return e;throw new i(r(e)+" is not an object")}},57612:(e,t,n)=>{"use strict";var o=n(2960).forEach,r=n(16834)("forEach");e.exports=r?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},21055:(e,t,n)=>{"use strict";var o=n(54071),r=n(22615),i=n(90690),a=n(71228),s=n(93292),l=n(19429),c=n(6310),d=n(76522),u=n(5185),f=n(91664),b=Array;e.exports=function(e){var t=i(e),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,h=void 0!==m;h&&(m=o(m,p>2?arguments[2]:void 0));var g,v,y,w,x,k,_=f(t),S=0;if(!_||this===b&&s(_))for(g=c(t),v=n?new this(g):b(g);g>S;S++)k=h?m(t[S],S):t[S],d(v,S,k);else for(x=(w=u(t,_)).next,v=n?new this:[];!(y=r(x,w)).done;S++)k=h?a(w,m,[y.value,S],!0):y.value,d(v,S,k);return v.length=S,v}},84328:(e,t,n)=>{"use strict";var o=n(65290),r=n(27578),i=n(6310),a=function(e){return function(t,n,a){var s,l=o(t),c=i(l),d=r(a,c);if(e&&n!=n){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2960:(e,t,n)=>{"use strict";var o=n(54071),r=n(68844),i=n(94413),a=n(90690),s=n(6310),l=n(27120),c=r([].push),d=function(e){var t=1===e,n=2===e,r=3===e,d=4===e,u=6===e,f=7===e,b=5===e||u;return function(p,m,h,g){for(var v,y,w=a(p),x=i(w),k=s(x),_=o(m,h),S=0,E=g||l,C=t?E(p,k):n||f?E(p,0):void 0;k>S;S++)if((b||S in x)&&(y=_(v=x[S],S,w),e))if(t)C[S]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:c(C,v)}else switch(e){case 4:return!1;case 7:c(C,v)}return u?-1:r||d?d:C}};e.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},29042:(e,t,n)=>{"use strict";var o=n(3689),r=n(44201),i=n(3615),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},16834:(e,t,n)=>{"use strict";var o=n(3689);e.exports=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){return 1},1)}))}},5649:(e,t,n)=>{"use strict";var o=n(67697),r=n(92297),i=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!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(r(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,n)=>{"use strict";var o=n(68844);e.exports=o([].slice)},50382:(e,t,n)=>{"use strict";var o=n(96004),r=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var a,s,l=1;l<n;){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 c=r(n/2),d=i(o(e,0,c),t),u=i(o(e,c),t),f=d.length,b=u.length,p=0,m=0;p<f||m<b;)e[p+m]=p<f&&m<b?t(d[p],u[m])<=0?d[p++]:u[m++]:p<f?d[p++]:u[m++];return e};e.exports=i},25271:(e,t,n)=>{"use strict";var o=n(92297),r=n(19429),i=n(48999),a=n(44201)("species"),s=Array;e.exports=function(e){var t;return o(e)&&(t=e.constructor,(r(t)&&(t===s||o(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},27120:(e,t,n)=>{"use strict";var o=n(25271);e.exports=function(e,t){return new(o(e))(0===t?0:t)}},71228:(e,t,n)=>{"use strict";var o=n(85027),r=n(72125);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){r(e,"throw",t)}}},86431:(e,t,n)=>{"use strict";var o=n(44201)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!r)return!1}catch(e){return!1}var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},6648:(e,t,n)=>{"use strict";var o=n(68844),r=o({}.toString),i=o("".slice);e.exports=function(e){return i(r(e),8,-1)}},50926:(e,t,n)=>{"use strict";var o=n(23043),r=n(69985),i=n(6648),a=n(44201)("toStringTag"),s=Object,l="Arguments"===i(function(){return arguments}());e.exports=o?i:function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"===(o=i(t))&&r(t.callee)?"Arguments":o}},8758:(e,t,n)=>{"use strict";var o=n(36812),r=n(19152),i=n(82474),a=n(72560);e.exports=function(e,t,n){for(var s=r(t),l=a.f,c=i.f,d=0;d<s.length;d++){var u=s[d];o(e,u)||n&&o(n,u)||l(e,u,c(t,u))}}},27413:(e,t,n)=>{"use strict";var o=n(44201)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,"/./"[e](t)}catch(e){}}return!1}},81748:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((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,n)=>{"use strict";var o=n(67697),r=n(72560),i=n(75684);e.exports=o?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var o=n(18360),r=n(72560),i=n(75684);e.exports=function(e,t,n){var a=o(t);a in e?r.f(e,a,i(0,n)):e[a]=n}},81797:(e,t,n)=>{"use strict";var o=n(85027),r=n(35899),i=TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return r(this,e)}},62148:(e,t,n)=>{"use strict";var o=n(98702),r=n(72560);e.exports=function(e,t,n){return n.get&&o(n.get,t,{getter:!0}),n.set&&o(n.set,t,{setter:!0}),r.f(e,t,n)}},11880:(e,t,n)=>{"use strict";var o=n(69985),r=n(72560),i=n(98702),a=n(95014);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(o(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},95014:(e,t,n)=>{"use strict";var o=n(19037),r=Object.defineProperty;e.exports=function(e,t){try{r(o,e,{value:t,configurable:!0,writable:!0})}catch(n){o[e]=t}return t}},98494:(e,t,n)=>{"use strict";var o=n(23691),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw new r("Cannot delete property "+o(t)+" of "+o(e))}},67697:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},36420:(e,t,n)=>{"use strict";var o=n(19037),r=n(48999),i=o.document,a=r(i)&&r(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,n)=>{"use strict";var o=n(36420)("span").classList,r=o&&o.constructor&&o.constructor.prototype;e.exports=r===Object.prototype?void 0:r},97365:(e,t,n)=>{"use strict";var o=n(30071).match(/firefox\/(\d+)/i);e.exports=!!o&&+o[1]},72532:(e,t,n)=>{"use strict";var o=n(88563),r=n(50806);e.exports=!o&&!r&&"object"==typeof window&&"object"==typeof document},88563:e=>{"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},37298:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/MSIE|Trident/.test(o)},63221:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/ipad|iphone|ipod/i.test(o)&&"undefined"!=typeof Pebble},4764:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},50806:(e,t,n)=>{"use strict";var o=n(19037),r=n(6648);e.exports="process"===r(o.process)},27486:(e,t,n)=>{"use strict";var o=n(30071);e.exports=/web0s(?!.*chrome)/i.test(o)},30071:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:(e,t,n)=>{"use strict";var o,r,i=n(19037),a=n(30071),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(r=(o=d.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},27922:(e,t,n)=>{"use strict";var o=n(30071).match(/AppleWebKit\/(\d+)\./);e.exports=!!o&&+o[1]},72739:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},79989:(e,t,n)=>{"use strict";var o=n(19037),r=n(82474).f,i=n(75773),a=n(11880),s=n(95014),l=n(8758),c=n(35266);e.exports=function(e,t){var n,d,u,f,b,p=e.target,m=e.global,h=e.stat;if(n=m?o:h?o[p]||s(p,{}):o[p]&&o[p].prototype)for(d in t){if(f=t[d],u=e.dontCallGetSet?(b=r(n,d))&&b.value:n[d],!c(m?d:p+(h?".":"#")+d,e.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(e.sham||u&&u.sham)&&i(f,"sham",!0),a(n,d,f,e)}}},3689:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},65773:(e,t,n)=>{"use strict";n(64043);var o=n(22615),r=n(11880),i=n(56308),a=n(3689),s=n(44201),l=n(75773),c=s("species"),d=RegExp.prototype;e.exports=function(e,t,n,u){var f=s(e),b=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),p=b&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!b||!p||n){var m=/./[f],h=t(f,""[e],(function(e,t,n,r,a){var s=t.exec;return s===i||s===d.exec?b&&!a?{done:!0,value:o(m,t,n,r)}:{done:!0,value:o(e,n,t,r)}:{done:!1}}));r(String.prototype,e,h[0]),r(d,f,h[1])}u&&l(d[f],"sham",!0)}},61735:(e,t,n)=>{"use strict";var o=n(97215),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},54071:(e,t,n)=>{"use strict";var o=n(46576),r=n(10509),i=n(97215),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},97215:(e,t,n)=>{"use strict";var o=n(3689);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},86761:(e,t,n)=>{"use strict";var o=n(68844),r=n(10509),i=n(48999),a=n(36812),s=n(96004),l=n(97215),c=Function,d=o([].concat),u=o([].join),f={},b=function(e,t,n){if(!a(f,t)){for(var o=[],r=0;r<t;r++)o[r]="a["+r+"]";f[t]=c("C,a","return new C("+u(o,",")+")")}return f[t](e,n)};e.exports=l?c.bind:function(e){var t=r(this),n=t.prototype,o=s(arguments,1),a=function(){var n=d(o,s(arguments));return this instanceof a?b(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},22615:(e,t,n)=>{"use strict";var o=n(97215),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},41236:(e,t,n)=>{"use strict";var o=n(67697),r=n(36812),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},52743:(e,t,n)=>{"use strict";var o=n(68844),r=n(10509);e.exports=function(e,t,n){try{return o(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},46576:(e,t,n)=>{"use strict";var o=n(6648),r=n(68844);e.exports=function(e){if("Function"===o(e))return r(e)}},68844:(e,t,n)=>{"use strict";var o=n(97215),r=Function.prototype,i=r.call,a=o&&r.bind.bind(i,i);e.exports=o?a:function(e){return function(){return i.apply(e,arguments)}}},76058:(e,t,n)=>{"use strict";var o=n(19037),r=n(69985),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},91664:(e,t,n)=>{"use strict";var o=n(50926),r=n(54849),i=n(981),a=n(9478),s=n(44201)("iterator");e.exports=function(e){if(!i(e))return r(e,s)||r(e,"@@iterator")||a[o(e)]}},5185:(e,t,n)=>{"use strict";var o=n(22615),r=n(10509),i=n(85027),a=n(23691),s=n(91664),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(r(n))return i(o(n,e));throw new l(a(e)+" is not iterable")}},92643:(e,t,n)=>{"use strict";var o=n(68844),r=n(92297),i=n(69985),a=n(6648),s=n(34327),l=o([].push);e.exports=function(e){if(i(e))return e;if(r(e)){for(var t=e.length,n=[],o=0;o<t;o++){var c=e[o];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var d=n.length,u=!0;return function(e,t){if(u)return u=!1,t;if(r(this))return t;for(var o=0;o<d;o++)if(n[o]===e)return t}}}},54849:(e,t,n)=>{"use strict";var o=n(10509),r=n(981);e.exports=function(e,t){var n=e[t];return r(n)?void 0:o(n)}},27017:(e,t,n)=>{"use strict";var o=n(68844),r=n(90690),i=Math.floor,a=o("".charAt),s=o("".replace),l=o("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,d=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,o,u,f){var b=n+e.length,p=o.length,m=d;return void 0!==u&&(u=r(u),m=c),s(f,m,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,b);case"<":c=u[l(s,1,-1)];break;default:var d=+s;if(0===d)return r;if(d>p){var f=i(d/10);return 0===f?r:f<=p?void 0===o[f-1]?a(s,1):o[f-1]+a(s,1):r}c=o[d-1]}return void 0===c?"":c}))}},19037:function(e,t,n){"use strict";var o=function(e){return e&&e.Math===Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},36812:(e,t,n)=>{"use strict";var o=n(68844),r=n(90690),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(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,n)=>{"use strict";var o=n(76058);e.exports=o("document","documentElement")},68506:(e,t,n)=>{"use strict";var o=n(67697),r=n(3689),i=n(36420);e.exports=!o&&!r((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},94413:(e,t,n)=>{"use strict";var o=n(68844),r=n(3689),i=n(6648),a=Object,s=o("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?s(e,""):a(e)}:a},33457:(e,t,n)=>{"use strict";var o=n(69985),r=n(48999),i=n(49385);e.exports=function(e,t,n){var a,s;return i&&o(a=t.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},6738:(e,t,n)=>{"use strict";var o=n(68844),r=n(69985),i=n(84091),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},618:(e,t,n)=>{"use strict";var o,r,i,a=n(59834),s=n(19037),l=n(48999),c=n(75773),d=n(36812),u=n(84091),f=n(2713),b=n(57248),p=s.TypeError,m=s.WeakMap;if(a||u.state){var h=u.state||(u.state=new m);h.get=h.get,h.has=h.has,h.set=h.set,o=function(e,t){if(h.has(e))throw new p("Object already initialized");return t.facade=e,h.set(e,t),t},r=function(e){return h.get(e)||{}},i=function(e){return h.has(e)}}else{var g=f("state");b[g]=!0,o=function(e,t){if(d(e,g))throw new p("Object already initialized");return t.facade=e,c(e,g,t),t},r=function(e){return d(e,g)?e[g]:{}},i=function(e){return d(e,g)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return n}}}},93292:(e,t,n)=>{"use strict";var o=n(44201),r=n(9478),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},92297:(e,t,n)=>{"use strict";var o=n(6648);e.exports=Array.isArray||function(e){return"Array"===o(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,n)=>{"use strict";var o=n(68844),r=n(3689),i=n(69985),a=n(50926),s=n(76058),l=n(6738),c=function(){},d=s("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=o(u.exec),b=!u.test(c),p=function(e){if(!i(e))return!1;try{return d(c,[],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 b||!!f(u,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!d||r((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?m:p},76251:(e,t,n)=>{"use strict";var o=n(36812);e.exports=function(e){return void 0!==e&&(o(e,"value")||o(e,"writable"))}},35266:(e,t,n)=>{"use strict";var o=n(3689),r=n(69985),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===d||n!==c&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},981:e=>{"use strict";e.exports=function(e){return null==e}},48999:(e,t,n)=>{"use strict";var o=n(69985);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},60598:(e,t,n)=>{"use strict";var o=n(48999);e.exports=function(e){return o(e)||null===e}},53931:e=>{"use strict";e.exports=!1},91245:(e,t,n)=>{"use strict";var o=n(48999),r=n(6648),i=n(44201)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===r(e))}},30734:(e,t,n)=>{"use strict";var o=n(76058),r=n(69985),i=n(23622),a=n(39525),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&i(t.prototype,s(e))}},18734:(e,t,n)=>{"use strict";var o=n(54071),r=n(22615),i=n(85027),a=n(23691),s=n(93292),l=n(6310),c=n(23622),d=n(5185),u=n(91664),f=n(72125),b=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;e.exports=function(e,t,n){var h,g,v,y,w,x,k,_=n&&n.that,S=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),O=o(t,_),A=function(e){return h&&f(h,"normal",e),new p(!0,e)},I=function(e){return S?(i(e),T?O(e[0],e[1],A):O(e[0],e[1])):T?O(e,A):O(e)};if(E)h=e.iterator;else if(C)h=e;else{if(!(g=u(e)))throw new b(a(e)+" is not iterable");if(s(g)){for(v=0,y=l(e);y>v;v++)if((w=I(e[v]))&&c(m,w))return w;return new p(!1)}h=d(e,g)}for(x=E?e.next:h.next;!(k=r(x,h)).done;){try{w=I(k.value)}catch(e){f(h,"throw",e)}if("object"==typeof w&&w&&c(m,w))return w}return new p(!1)}},72125:(e,t,n)=>{"use strict";var o=n(22615),r=n(85027),i=n(54849);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return r(a),n}},30974:(e,t,n)=>{"use strict";var o=n(12013).IteratorPrototype,r=n(25391),i=n(75684),a=n(55997),s=n(9478),l=function(){return this};e.exports=function(e,t,n,c){var d=t+" Iterator";return e.prototype=r(o,{next:i(+!c,n)}),a(e,d,!1,!0),s[d]=l,e}},91934:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(53931),a=n(41236),s=n(69985),l=n(30974),c=n(61868),d=n(49385),u=n(55997),f=n(75773),b=n(11880),p=n(44201),m=n(9478),h=n(12013),g=a.PROPER,v=a.CONFIGURABLE,y=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,x=p("iterator"),k=function(){return this};e.exports=function(e,t,n,a,p,h,_){l(n,t,a);var S,E,C,T=function(e){if(e===p&&D)return D;if(!w&&e&&e in I)return I[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",A=!1,I=e.prototype,j=I[x]||I["@@iterator"]||p&&I[p],D=!w&&j||T(p),N="Array"===t&&I.entries||j;if(N&&(S=c(N.call(new e)))!==Object.prototype&&S.next&&(i||c(S)===y||(d?d(S,y):s(S[x])||b(S,x,k)),u(S,O,!0,!0),i&&(m[O]=k)),g&&"values"===p&&j&&"values"!==j.name&&(!i&&v?f(I,"name","values"):(A=!0,D=function(){return r(j,this)})),p)if(E={values:T("values"),keys:h?D:T("keys"),entries:T("entries")},_)for(C in E)(w||A||!(C in I))&&b(I,C,E[C]);else o({target:t,proto:!0,forced:w||A},E);return i&&!_||I[x]===D||b(I,x,D,{name:p}),m[t]=D,E}},12013:(e,t,n)=>{"use strict";var o,r,i,a=n(3689),s=n(69985),l=n(48999),c=n(25391),d=n(61868),u=n(11880),f=n(44201),b=n(53931),p=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(r=d(d(i)))!==Object.prototype&&(o=r):m=!0),!l(o)||a((function(){var e={};return o[p].call(e)!==e}))?o={}:b&&(o=c(o)),s(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:m}},9478:e=>{"use strict";e.exports={}},6310:(e,t,n)=>{"use strict";var o=n(43126);e.exports=function(e){return o(e.length)}},98702:(e,t,n)=>{"use strict";var o=n(68844),r=n(3689),i=n(69985),a=n(36812),s=n(67697),l=n(41236).CONFIGURABLE,c=n(6738),d=n(618),u=d.enforce,f=d.get,b=String,p=Object.defineProperty,m=o("".slice),h=o("".replace),g=o([].join),v=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===m(b(t),0,7)&&(t="["+h(b(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var o=u(e);return a(o,"source")||(o.source=g(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&f(this).source||c(this)}),"toString")},58828:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var o=+e;return(o>0?n:t)(o)}},80231:(e,t,n)=>{"use strict";var o,r,i,a,s,l=n(19037),c=n(70517),d=n(54071),u=n(99886).set,f=n(34410),b=n(4764),p=n(63221),m=n(27486),h=n(50806),g=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var k=new f,_=function(){var e,t;for(h&&(e=y.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&o(),e}e&&e.enter()};b||h||m||!g||!v?!p&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,s=d(a.then,a),o=function(){s(_)}):h?o=function(){y.nextTick(_)}:(u=d(u,l),o=function(){u(_)}):(r=!0,i=v.createTextNode(""),new g(_).observe(i,{characterData:!0}),o=function(){i.data=r=!r}),x=function(e){k.head||o(),k.add(e)}}e.exports=x},48742:(e,t,n)=>{"use strict";var o=n(10509),r=TypeError,i=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw new r("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new i(e)}},42124:(e,t,n)=>{"use strict";var o=n(91245),r=TypeError;e.exports=function(e){if(o(e))throw new r("The method doesn't accept regular expressions");return e}},67897:(e,t,n)=>{"use strict";var o=n(19037),r=n(3689),i=n(68844),a=n(34327),s=n(61435).trim,l=n(86350),c=o.parseInt,d=o.Symbol,u=d&&d.iterator,f=/^[+-]?0x/i,b=i(f.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||u&&!r((function(){c(Object(u))}));e.exports=p?function(e,t){var n=s(a(e));return c(n,t>>>0||(b(f,n)?16:10))}:c},45394:(e,t,n)=>{"use strict";var o=n(67697),r=n(68844),i=n(22615),a=n(3689),s=n(20300),l=n(7518),c=n(49556),d=n(90690),u=n(94413),f=Object.assign,b=Object.defineProperty,p=r([].concat);e.exports=!f||a((function(){if(o&&1!==f({b:1},f(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||"abcdefghijklmnopqrst"!==s(f({},t)).join("")}))?function(e,t){for(var n=d(e),r=arguments.length,a=1,f=l.f,b=c.f;r>a;)for(var m,h=u(arguments[a++]),g=f?p(s(h),f(h)):s(h),v=g.length,y=0;v>y;)m=g[y++],o&&!i(b,h,m)||(n[m]=h[m]);return n}:f},25391:(e,t,n)=>{"use strict";var o,r=n(85027),i=n(98920),a=n(72739),s=n(57248),l=n(2688),c=n(36420),d=n(2713),u=d("IE_PROTO"),f=function(){},b=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}var e,t;m="undefined"!=typeof document?document.domain&&o?p(o):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(b("document.F=Object")),e.close(),e.F):p(o);for(var n=a.length;n--;)delete m.prototype[a[n]];return m()};s[u]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=r(e),n=new f,f.prototype=null,n[u]=e):n=m(),void 0===t?n:i.f(n,t)}},98920:(e,t,n)=>{"use strict";var o=n(67697),r=n(15648),i=n(72560),a=n(85027),s=n(65290),l=n(20300);t.f=o&&!r?Object.defineProperties:function(e,t){a(e);for(var n,o=s(t),r=l(t),c=r.length,d=0;c>d;)i.f(e,n=r[d++],o[n]);return e}},72560:(e,t,n)=>{"use strict";var o=n(67697),r=n(68506),i=n(15648),a=n(85027),s=n(18360),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=o?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var o=d(e,t);o&&o.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:o.configurable,enumerable:"enumerable"in n?n.enumerable:o.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},82474:(e,t,n)=>{"use strict";var o=n(67697),r=n(22615),i=n(49556),a=n(75684),s=n(65290),l=n(18360),c=n(36812),d=n(68506),u=Object.getOwnPropertyDescriptor;t.f=o?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return a(!r(i.f,e,t),e[t])}},26062:(e,t,n)=>{"use strict";var o=n(6648),r=n(65290),i=n(72741).f,a=n(96004),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===o(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(r(e))}},72741:(e,t,n)=>{"use strict";var o=n(54948),r=n(72739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},7518:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},61868:(e,t,n)=>{"use strict";var o=n(36812),r=n(69985),i=n(90690),a=n(2713),s=n(81748),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(o(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?d:null}},23622:(e,t,n)=>{"use strict";var o=n(68844);e.exports=o({}.isPrototypeOf)},54948:(e,t,n)=>{"use strict";var o=n(68844),r=n(36812),i=n(65290),a=n(84328).indexOf,s=n(57248),l=o([].push);e.exports=function(e,t){var n,o=i(e),c=0,d=[];for(n in o)!r(s,n)&&r(o,n)&&l(d,n);for(;t.length>c;)r(o,n=t[c++])&&(~a(d,n)||l(d,n));return d}},20300:(e,t,n)=>{"use strict";var o=n(54948),r=n(72739);e.exports=Object.keys||function(e){return o(e,r)}},49556:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);t.f=r?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},49385:(e,t,n)=>{"use strict";var o=n(52743),r=n(85027),i=n(23550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=o(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e(n,o):n.__proto__=o,n}}():void 0)},65073:(e,t,n)=>{"use strict";var o=n(23043),r=n(50926);e.exports=o?{}.toString:function(){return"[object "+r(this)+"]"}},35899:(e,t,n)=>{"use strict";var o=n(22615),r=n(69985),i=n(48999),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&r(n=e.toString)&&!i(s=o(n,e)))return s;if(r(n=e.valueOf)&&!i(s=o(n,e)))return s;if("string"!==t&&r(n=e.toString)&&!i(s=o(n,e)))return s;throw new a("Can't convert object to primitive value")}},19152:(e,t,n)=>{"use strict";var o=n(76058),r=n(68844),i=n(72741),a=n(7518),s=n(85027),l=r([].concat);e.exports=o("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},50496:(e,t,n)=>{"use strict";var o=n(19037);e.exports=o},9302:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},87073:(e,t,n)=>{"use strict";var o=n(19037),r=n(17919),i=n(69985),a=n(35266),s=n(6738),l=n(44201),c=n(72532),d=n(88563),u=n(53931),f=n(3615),b=r&&r.prototype,p=l("species"),m=!1,h=i(o.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(r),t=e!==String(r);if(!t&&66===f)return!0;if(u&&(!b.catch||!b.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),o=function(e){e((function(){}),(function(){}))};if((n.constructor={})[p]=o,!(m=n.then((function(){}))instanceof o))return!0}return!t&&(c||d)&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},17919:(e,t,n)=>{"use strict";var o=n(19037);e.exports=o.Promise},72945:(e,t,n)=>{"use strict";var o=n(85027),r=n(48999),i=n(48742);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},562:(e,t,n)=>{"use strict";var o=n(17919),r=n(86431),i=n(87073).CONSTRUCTOR;e.exports=i||!r((function(e){o.all(e).then(void 0,(function(){}))}))},38055:(e,t,n)=>{"use strict";var o=n(72560).f;e.exports=function(e,t,n){n in e||o(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=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},n=this.tail;n?n.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,n)=>{"use strict";var o=n(22615),r=n(85027),i=n(69985),a=n(6648),s=n(56308),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=o(n,e,t);return null!==c&&r(c),c}if("RegExp"===a(e))return o(s,e,t);throw new l("RegExp#exec called on incompatible receiver")}},56308:(e,t,n)=>{"use strict";var o,r,i=n(22615),a=n(68844),s=n(34327),l=n(69633),c=n(87901),d=n(83430),u=n(25391),f=n(618).get,b=n(62100),p=n(26738),m=d("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,v=a("".charAt),y=a("".indexOf),w=a("".replace),x=a("".slice),k=(r=/b*/g,i(h,o=/a/,"a"),i(h,r,"a"),0!==o.lastIndex||0!==r.lastIndex),_=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(k||S||_||b||p)&&(g=function(e){var t,n,o,r,a,c,d,b=this,p=f(b),E=s(e),C=p.raw;if(C)return C.lastIndex=b.lastIndex,t=i(g,C,E),b.lastIndex=C.lastIndex,t;var T=p.groups,O=_&&b.sticky,A=i(l,b),I=b.source,j=0,D=E;if(O&&(A=w(A,"y",""),-1===y(A,"g")&&(A+="g"),D=x(E,b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&"\n"!==v(E,b.lastIndex-1))&&(I="(?: "+I+")",D=" "+D,j++),n=new RegExp("^(?:"+I+")",A)),S&&(n=new RegExp("^"+I+"$(?!\\s)",A)),k&&(o=b.lastIndex),r=i(h,O?n:b,D),O?r?(r.input=x(r.input,j),r[0]=x(r[0],j),r.index=b.lastIndex,b.lastIndex+=r[0].length):b.lastIndex=0:k&&r&&(b.lastIndex=b.global?r.index+r[0].length:o),S&&r&&r.length>1&&i(m,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&T)for(r.groups=c=u(null),a=0;a<T.length;a++)c[(d=T[a])[0]]=r[d[1]];return r}),e.exports=g},69633:(e,t,n)=>{"use strict";var o=n(85027);e.exports=function(){var e=o(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,n)=>{"use strict";var o=n(22615),r=n(36812),i=n(23622),a=n(69633),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||r(e,"flags")||!i(s,e)?t:o(a,e)}},87901:(e,t,n)=>{"use strict";var o=n(3689),r=n(19037).RegExp,i=o((function(){var e=r("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=i||o((function(){return!r("a","y").sticky})),s=i||o((function(){var e=r("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},62100:(e,t,n)=>{"use strict";var o=n(3689),r=n(19037).RegExp;e.exports=o((function(){var e=r(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},26738:(e,t,n)=>{"use strict";var o=n(3689),r=n(19037).RegExp;e.exports=o((function(){var e=r("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},74684:(e,t,n)=>{"use strict";var o=n(981),r=TypeError;e.exports=function(e){if(o(e))throw new r("Can't call method on "+e);return e}},70517:(e,t,n)=>{"use strict";var o=n(19037),r=n(67697),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!r)return o[e];var t=i(o,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,n)=>{"use strict";var o=n(76058),r=n(62148),i=n(44201),a=n(67697),s=i("species");e.exports=function(e){var t=o(e);a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},55997:(e,t,n)=>{"use strict";var o=n(72560).f,r=n(36812),i=n(44201)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,i)&&o(e,i,{configurable:!0,value:t})}},2713:(e,t,n)=>{"use strict";var o=n(83430),r=n(14630),i=o("keys");e.exports=function(e){return i[e]||(i[e]=r(e))}},84091:(e,t,n)=>{"use strict";var o=n(19037),r=n(95014),i=o["__core-js_shared__"]||r("__core-js_shared__",{});e.exports=i},83430:(e,t,n)=>{"use strict";var o=n(53931),r=n(84091);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:o?"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,n)=>{"use strict";var o=n(85027),r=n(52655),i=n(981),a=n(44201)("species");e.exports=function(e,t){var n,s=o(e).constructor;return void 0===s||i(n=o(s)[a])?t:r(n)}},10730:(e,t,n)=>{"use strict";var o=n(68844),r=n(68700),i=n(34327),a=n(74684),s=o("".charAt),l=o("".charCodeAt),c=o("".slice),d=function(e){return function(t,n){var o,d,u=i(a(t)),f=r(n),b=u.length;return f<0||f>=b?e?"":void 0:(o=l(u,f))<55296||o>56319||f+1===b||(d=l(u,f+1))<56320||d>57343?e?s(u,f):o:e?c(u,f,f+2):d-56320+(o-55296<<10)+65536}};e.exports={codeAt:d(!1),charAt:d(!0)}},75984:(e,t,n)=>{"use strict";var o=n(41236).PROPER,r=n(3689),i=n(86350);e.exports=function(e){return r((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||o&&i[e].name!==e}))}},61435:(e,t,n)=>{"use strict";var o=n(68844),r=n(74684),i=n(34327),a=n(86350),s=o("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),d=function(e){return function(t){var n=i(r(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},50146:(e,t,n)=>{"use strict";var o=n(3615),r=n(3689),i=n(19037).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},13032:(e,t,n)=>{"use strict";var o=n(22615),r=n(76058),i=n(44201),a=n(11880);e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return o(n,this)}),{arity:1})}},46549:(e,t,n)=>{"use strict";var o=n(50146);e.exports=o&&!!Symbol.for&&!!Symbol.keyFor},99886:(e,t,n)=>{"use strict";var o,r,i,a,s=n(19037),l=n(61735),c=n(54071),d=n(69985),u=n(36812),f=n(3689),b=n(2688),p=n(96004),m=n(36420),h=n(21500),g=n(4764),v=n(50806),y=s.setImmediate,w=s.clearImmediate,x=s.process,k=s.Dispatch,_=s.Function,S=s.MessageChannel,E=s.String,C=0,T={};f((function(){o=s.location}));var O=function(e){if(u(T,e)){var t=T[e];delete T[e],t()}},A=function(e){return function(){O(e)}},I=function(e){O(e.data)},j=function(e){s.postMessage(E(e),o.protocol+"//"+o.host)};y&&w||(y=function(e){h(arguments.length,1);var t=d(e)?e:_(e),n=p(arguments,1);return T[++C]=function(){l(t,void 0,n)},r(C),C},w=function(e){delete T[e]},v?r=function(e){x.nextTick(A(e))}:k&&k.now?r=function(e){k.now(A(e))}:S&&!g?(a=(i=new S).port2,i.port1.onmessage=I,r=c(a.postMessage,a)):s.addEventListener&&d(s.postMessage)&&!s.importScripts&&o&&"file:"!==o.protocol&&!f(j)?(r=j,s.addEventListener("message",I,!1)):r="onreadystatechange"in m("script")?function(e){b.appendChild(m("script")).onreadystatechange=function(){b.removeChild(this),O(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:y,clear:w}},23648:(e,t,n)=>{"use strict";var o=n(68844);e.exports=o(1..valueOf)},27578:(e,t,n)=>{"use strict";var o=n(68700),r=Math.max,i=Math.min;e.exports=function(e,t){var n=o(e);return n<0?r(n+t,0):i(n,t)}},65290:(e,t,n)=>{"use strict";var o=n(94413),r=n(74684);e.exports=function(e){return o(r(e))}},68700:(e,t,n)=>{"use strict";var o=n(58828);e.exports=function(e){var t=+e;return t!=t||0===t?0:o(t)}},43126:(e,t,n)=>{"use strict";var o=n(68700),r=Math.min;e.exports=function(e){var t=o(e);return t>0?r(t,9007199254740991):0}},90690:(e,t,n)=>{"use strict";var o=n(74684),r=Object;e.exports=function(e){return r(o(e))}},88732:(e,t,n)=>{"use strict";var o=n(22615),r=n(48999),i=n(30734),a=n(54849),s=n(35899),l=n(44201),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,l=a(e,d);if(l){if(void 0===t&&(t="default"),n=o(l,e,t),!r(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},18360:(e,t,n)=>{"use strict";var o=n(88732),r=n(30734);e.exports=function(e){var t=o(e,"string");return r(t)?t:t+""}},23043:(e,t,n)=>{"use strict";var o={};o[n(44201)("toStringTag")]="z",e.exports="[object z]"===String(o)},34327:(e,t,n)=>{"use strict";var o=n(50926),r=String;e.exports=function(e){if("Symbol"===o(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}},23691:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},14630:(e,t,n)=>{"use strict";var o=n(68844),r=0,i=Math.random(),a=o(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+i,36)}},39525:(e,t,n)=>{"use strict";var o=n(50146);e.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},15648:(e,t,n)=>{"use strict";var o=n(67697),r=n(3689);e.exports=o&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},21500:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},59834:(e,t,n)=>{"use strict";var o=n(19037),r=n(69985),i=o.WeakMap;e.exports=r(i)&&/native code/.test(String(i))},35405:(e,t,n)=>{"use strict";var o=n(50496),r=n(36812),i=n(96145),a=n(72560).f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});r(t,e)||a(t,e,{value:i.f(e)})}},96145:(e,t,n)=>{"use strict";var o=n(44201);t.f=o},44201:(e,t,n)=>{"use strict";var o=n(19037),r=n(83430),i=n(36812),a=n(14630),s=n(50146),l=n(39525),c=o.Symbol,d=r("wks"),u=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(d,e)||(d[e]=s&&i(c,e)?c[e]:u("Symbol."+e)),d[e]}},86350:e=>{"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},34338:(e,t,n)=>{"use strict";var o=n(79989),r=n(3689),i=n(92297),a=n(48999),s=n(90690),l=n(6310),c=n(55565),d=n(76522),u=n(27120),f=n(29042),b=n(44201),p=n(3615),m=b("isConcatSpreadable"),h=p>=51||!r((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};o({target:"Array",proto:!0,arity:1,forced:!h||!f("concat")},{concat:function(e){var t,n,o,r,i,a=s(this),f=u(a,0),b=0;for(t=-1,o=arguments.length;t<o;t++)if(g(i=-1===t?a:arguments[t]))for(r=l(i),c(b+r),n=0;n<r;n++,b++)n in i&&d(f,b,i[n]);else c(b+1),d(f,b++,i);return f.length=b,f}})},38077:(e,t,n)=>{"use strict";var o=n(79989),r=n(2960).filter;o({target:"Array",proto:!0,forced:!n(29042)("filter")},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},25728:(e,t,n)=>{"use strict";var o=n(79989),r=n(2960).find,i=n(87370),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),o({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},77049:(e,t,n)=>{"use strict";var o=n(79989),r=n(21055);o({target:"Array",stat:!0,forced:!n(86431)((function(e){Array.from(e)}))},{from:r})},76801:(e,t,n)=>{"use strict";var o=n(79989),r=n(84328).includes,i=n(3689),a=n(87370);o({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},752:(e,t,n)=>{"use strict";var o=n(65290),r=n(87370),i=n(9478),a=n(618),s=n(72560).f,l=n(91934),c=n(27807),d=n(53931),u=n(67697),f=a.set,b=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){f(this,{type:"Array Iterator",target:o(e),index:0,kind:t})}),(function(){var e=b(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var p=i.Arguments=i.Array;if(r("keys"),r("values"),r("entries"),!d&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},6203:(e,t,n)=>{"use strict";var o=n(79989),r=n(68844),i=n(94413),a=n(65290),s=n(16834),l=r([].join);o({target:"Array",proto:!0,forced:i!==Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},50886:(e,t,n)=>{"use strict";var o=n(79989),r=n(2960).map;o({target:"Array",proto:!0,forced:!n(29042)("map")},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},89730:(e,t,n)=>{"use strict";var o=n(79989),r=n(92297),i=n(19429),a=n(48999),s=n(27578),l=n(6310),c=n(65290),d=n(76522),u=n(44201),f=n(29042),b=n(96004),p=f("slice"),m=u("species"),h=Array,g=Math.max;o({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,o,u,f=c(this),p=l(f),v=s(e,p),y=s(void 0===t?p:t,p);if(r(f)&&(n=f.constructor,(i(n)&&(n===h||r(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===h||void 0===n))return b(f,v,y);for(o=new(void 0===n?h:n)(g(y-v,0)),u=0;v<y;v++,u++)v in f&&d(o,u,f[v]);return o.length=u,o}})},65137:(e,t,n)=>{"use strict";var o=n(79989),r=n(68844),i=n(10509),a=n(90690),s=n(6310),l=n(98494),c=n(34327),d=n(3689),u=n(50382),f=n(16834),b=n(97365),p=n(37298),m=n(3615),h=n(27922),g=[],v=r(g.sort),y=r(g.push),w=d((function(){g.sort(void 0)})),x=d((function(){g.sort(null)})),k=f("sort"),_=!d((function(){if(m)return m<70;if(!(b&&b>3)){if(p)return!0;if(h)return h<603;var e,t,n,o,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)g.push({k:t+o,v:n})}for(g.sort((function(e,t){return t.v-e.v})),o=0;o<g.length;o++)t=g[o].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));o({target:"Array",proto:!0,forced:w||!x||!k||!_},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(_)return void 0===e?v(t):v(t,e);var n,o,r=[],d=s(t);for(o=0;o<d;o++)o in t&&y(r,t[o]);for(u(r,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(r),o=0;o<n;)t[o]=r[o++];for(;o<d;)l(t,o++);return t}})},62506:(e,t,n)=>{"use strict";var o=n(79989),r=n(90690),i=n(27578),a=n(68700),s=n(6310),l=n(5649),c=n(55565),d=n(27120),u=n(76522),f=n(98494),b=n(29042)("splice"),p=Math.max,m=Math.min;o({target:"Array",proto:!0,forced:!b},{splice:function(e,t){var n,o,b,h,g,v,y=r(this),w=s(y),x=i(e,w),k=arguments.length;for(0===k?n=o=0:1===k?(n=0,o=w-x):(n=k-2,o=m(p(a(t),0),w-x)),c(w+n-o),b=d(y,o),h=0;h<o;h++)(g=x+h)in y&&u(b,h,y[g]);if(b.length=o,n<o){for(h=x;h<w-o;h++)v=h+n,(g=h+o)in y?y[v]=y[g]:f(y,v);for(h=w;h>w-o+n;h--)f(y,h-1)}else if(n>o)for(h=w-o;h>x;h--)v=h+n-1,(g=h+o-1)in y?y[v]=y[g]:f(y,v);for(h=0;h<n;h++)y[h+x]=arguments[h+2];return l(y,w-o+n),b}})},59903:(e,t,n)=>{"use strict";var o=n(36812),r=n(11880),i=n(81797),a=n(44201)("toPrimitive"),s=Date.prototype;o(s,a)||r(s,a,i)},34284:(e,t,n)=>{"use strict";var o=n(67697),r=n(41236).EXISTS,i=n(68844),a=n(62148),s=Function.prototype,l=i(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d=i(c.exec);o&&!r&&a(s,"name",{configurable:!0,get:function(){try{return d(c,l(this))[1]}catch(e){return""}}})},48324:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(61735),a=n(22615),s=n(68844),l=n(3689),c=n(69985),d=n(30734),u=n(96004),f=n(92643),b=n(50146),p=String,m=r("JSON","stringify"),h=s(/./.exec),g=s("".charAt),v=s("".charCodeAt),y=s("".replace),w=s(1..toString),x=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,S=!b||l((function(){var e=r("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 n=u(arguments),o=f(t);if(c(o)||void 0!==e&&!d(e))return n[1]=function(e,t){if(c(o)&&(t=a(o,this,p(e),t)),!d(t))return t},i(m,null,n)},T=function(e,t,n){var o=g(n,t-1),r=g(n,t+1);return h(k,e)&&!h(_,r)||h(_,e)&&!h(k,o)?"\\u"+w(v(e,0),16):e};m&&o({target:"JSON",stat:!0,arity:3,forced:S||E},{stringify:function(e,t,n){var o=u(arguments),r=i(S?C:m,null,o);return E&&"string"==typeof r?y(r,x,T):r}})},7629:(e,t,n)=>{"use strict";var o=n(19037);n(55997)(o.JSON,"JSON",!0)},77509:(e,t,n)=>{"use strict";n(55997)(Math,"Math",!0)},79288:(e,t,n)=>{"use strict";var o=n(79989),r=n(53931),i=n(67697),a=n(19037),s=n(50496),l=n(68844),c=n(35266),d=n(36812),u=n(33457),f=n(23622),b=n(30734),p=n(88732),m=n(3689),h=n(72741).f,g=n(82474).f,v=n(72560).f,y=n(23648),w=n(61435).trim,x=a.Number,k=s.Number,_=x.prototype,S=a.TypeError,E=l("".slice),C=l("".charCodeAt),T=function(e){var t=p(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,n,o,r,i,a,s,l,c=p(e,"number");if(b(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=w(c),43===(t=C(c,0))||45===t){if(88===(n=C(c,2))||120===n)return NaN}else if(48===t){switch(C(c,1)){case 66:case 98:o=2,r=49;break;case 79:case 111:o=8,r=55;break;default:return+c}for(a=(i=E(c,2)).length,s=0;s<a;s++)if((l=C(i,s))<48||l>r)return NaN;return parseInt(i,o)}return+c},A=c("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),I=function(e){return f(_,e)&&m((function(){y(e)}))},j=function(e){var t=arguments.length<1?0:x(T(e));return I(this)?u(Object(t),this,j):t};j.prototype=_,A&&!r&&(_.constructor=j),o({global:!0,constructor:!0,wrap:!0,forced:A},{Number:j});var D=function(e,t){for(var n,o=i?h(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(","),r=0;o.length>r;r++)d(t,n=o[r])&&!d(e,n)&&v(e,n,g(t,n))};r&&k&&D(s.Number,k),(A||r)&&D(s.Number,x)},21552:(e,t,n)=>{"use strict";var o=n(79989),r=n(67897);o({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},60429:(e,t,n)=>{"use strict";var o=n(79989),r=n(45394);o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},81919:(e,t,n)=>{"use strict";var o=n(79989),r=n(3689),i=n(65290),a=n(82474).f,s=n(67697);o({target:"Object",stat:!0,forced:!s||r((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},79434:(e,t,n)=>{"use strict";var o=n(79989),r=n(50146),i=n(3689),a=n(7518),s=n(90690);o({target:"Object",stat:!0,forced:!r||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},88052:(e,t,n)=>{"use strict";var o=n(79989),r=n(3689),i=n(90690),a=n(61868),s=n(81748);o({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},69358:(e,t,n)=>{"use strict";var o=n(79989),r=n(90690),i=n(20300);o({target:"Object",stat:!0,forced:n(3689)((function(){i(1)}))},{keys:function(e){return i(r(e))}})},60228:(e,t,n)=>{"use strict";var o=n(23043),r=n(11880),i=n(65073);o||r(Object.prototype,"toString",i,{unsafe:!0})},81692:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(10509),a=n(48742),s=n(9302),l=n(18734);o({target:"Promise",stat:!0,forced:n(562)},{all:function(e){var t=this,n=a.f(t),o=n.resolve,c=n.reject,d=s((function(){var n=i(t.resolve),a=[],s=0,d=1;l(e,(function(e){var i=s++,l=!1;d++,r(n,t,e).then((function(e){l||(l=!0,a[i]=e,--d||o(a))}),c)})),--d||o(a)}));return d.error&&c(d.value),n.promise}})},75089:(e,t,n)=>{"use strict";var o=n(79989),r=n(53931),i=n(87073).CONSTRUCTOR,a=n(17919),s=n(76058),l=n(69985),c=n(11880),d=a&&a.prototype;if(o({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(a)){var u=s("Promise").prototype.catch;d.catch!==u&&c(d,"catch",u,{unsafe:!0})}},56697:(e,t,n)=>{"use strict";var o,r,i,a=n(79989),s=n(53931),l=n(50806),c=n(19037),d=n(22615),u=n(11880),f=n(49385),b=n(55997),p=n(14241),m=n(10509),h=n(69985),g=n(48999),v=n(767),y=n(76373),w=n(99886).set,x=n(80231),k=n(20920),_=n(9302),S=n(34410),E=n(618),C=n(17919),T=n(87073),O=n(48742),A=T.CONSTRUCTOR,I=T.REJECTION_EVENT,j=T.SUBCLASSING,D=E.getterFor("Promise"),N=E.set,M=C&&C.prototype,L=C,P=M,R=c.TypeError,z=c.document,F=c.process,B=O.f,$=B,V=!!(z&&z.createEvent&&c.dispatchEvent),U=function(e){var t;return!(!g(e)||!h(t=e.then))&&t},H=function(e,t){var n,o,r,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),r=!0)),n===e.promise?c(new R("Promise-chain cycle")):(o=U(n))?d(o,n,l,c):l(n)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},Y=function(e,t){e.notified||(e.notified=!0,x((function(){for(var n,o=e.reactions;n=o.get();)H(n,e);e.notified=!1,t&&!e.rejection&&G(e)})))},W=function(e,t,n){var o,r;V?((o=z.createEvent("Event")).promise=t,o.reason=n,o.initEvent(e,!1,!0),c.dispatchEvent(o)):o={promise:t,reason:n},!I&&(r=c["on"+e])?r(o):"unhandledrejection"===e&&k("Unhandled promise rejection",n)},G=function(e){d(w,c,(function(){var t,n=e.facade,o=e.value;if(q(e)&&(t=_((function(){l?F.emit("unhandledRejection",o,n):W("unhandledrejection",n,o)})),e.rejection=l||q(e)?2:1,t.error))throw t.value}))},q=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){d(w,c,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):W("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(o){e(t,o,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},K=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new R("Promise can't be resolved itself");var o=U(t);o?x((function(){var n={done:!1};try{d(o,t,X(K,n,e),X(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){Z({done:!1},t,e)}}};if(A&&(P=(L=function(e){v(this,P),m(e),d(o,this);var t=D(this);try{e(X(K,t),X(Z,t))}catch(e){Z(t,e)}}).prototype,(o=function(e){N(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=u(P,"then",(function(e,t){var n=D(this),o=B(y(this,L));return n.parent=!0,o.ok=!h(e)||e,o.fail=h(t)&&t,o.domain=l?F.domain:void 0,0===n.state?n.reactions.add(o):x((function(){H(o,n)})),o.promise})),r=function(){var e=new o,t=D(e);this.promise=e,this.resolve=X(K,t),this.reject=X(Z,t)},O.f=B=function(e){return e===L||void 0===e?new r(e):$(e)},!s&&h(C)&&M!==Object.prototype)){i=M.then,j||u(M,"then",(function(e,t){var n=this;return new L((function(e,t){d(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete M.constructor}catch(e){}f&&f(M,P)}a({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:L}),b(L,"Promise",!1,!0),p("Promise")},73964:(e,t,n)=>{"use strict";n(56697),n(81692),n(75089),n(58829),n(42092),n(57905)},58829:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(10509),a=n(48742),s=n(9302),l=n(18734);o({target:"Promise",stat:!0,forced:n(562)},{race:function(e){var t=this,n=a.f(t),o=n.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){r(a,t,e).then(n.resolve,o)}))}));return c.error&&o(c.value),n.promise}})},42092:(e,t,n)=>{"use strict";var o=n(79989),r=n(48742);o({target:"Promise",stat:!0,forced:n(87073).CONSTRUCTOR},{reject:function(e){var t=r.f(this);return(0,t.reject)(e),t.promise}})},57905:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(53931),a=n(17919),s=n(87073).CONSTRUCTOR,l=n(72945),c=r("Promise"),d=i&&!s;o({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(d&&this===c?a:this,e)}})},30050:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(61735),a=n(86761),s=n(52655),l=n(85027),c=n(48999),d=n(25391),u=n(3689),f=r("Reflect","construct"),b=Object.prototype,p=[].push,m=u((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),h=!u((function(){f((function(){}))})),g=m||h;o({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(h&&!m)return f(e,t,n);if(e===n){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 o=[null];return i(p,o,t),new(i(a,e,o))}var r=n.prototype,u=d(c(r)?r:b),g=i(e,u,t);return c(g)?g:u}})},32349:(e,t,n)=>{"use strict";var o=n(79989),r=n(22615),i=n(48999),a=n(85027),s=n(76251),l=n(82474),c=n(61868);o({target:"Reflect",stat:!0},{get:function e(t,n){var o,d,u=arguments.length<3?t:arguments[2];return a(t)===u?t[n]:(o=l.f(t,n))?s(o)?o.value:void 0===o.get?void 0:r(o.get,u):i(d=c(t))?e(d,n,u):void 0}})},52003:(e,t,n)=>{"use strict";var o=n(67697),r=n(19037),i=n(68844),a=n(35266),s=n(33457),l=n(75773),c=n(25391),d=n(72741).f,u=n(23622),f=n(91245),b=n(34327),p=n(63477),m=n(87901),h=n(38055),g=n(11880),v=n(3689),y=n(36812),w=n(618).enforce,x=n(14241),k=n(44201),_=n(62100),S=n(26738),E=k("match"),C=r.RegExp,T=C.prototype,O=r.SyntaxError,A=i(T.exec),I=i("".charAt),j=i("".replace),D=i("".indexOf),N=i("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,P=/a/g,R=new C(L)!==L,z=m.MISSED_STICKY,F=m.UNSUPPORTED_Y,B=o&&(!R||z||_||S||v((function(){return P[E]=!1,C(L)!==L||C(P)===P||"/a/i"!==String(C(L,"i"))})));if(a("RegExp",B)){for(var $=function(e,t){var n,o,r,i,a,d,m=u(T,this),h=f(e),g=void 0===t,v=[],x=e;if(!m&&h&&g&&e.constructor===$)return e;if((h||u(T,e))&&(e=e.source,g&&(t=p(x))),e=void 0===e?"":b(e),t=void 0===t?"":b(t),x=e,_&&"dotAll"in L&&(o=!!t&&D(t,"s")>-1)&&(t=j(t,/s/g,"")),n=t,z&&"sticky"in L&&(r=!!t&&D(t,"y")>-1)&&F&&(t=j(t,/y/g,"")),S&&(e=(i=function(e){for(var t,n=e.length,o=0,r="",i=[],a=c(null),s=!1,l=!1,d=0,u="";o<=n;o++){if("\\"===(t=I(e,o)))t+=I(e,++o);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:A(M,N(e,o+1))&&(o+=2,l=!0),r+=t,d++;continue;case">"===t&&l:if(""===u||y(a,u))throw new O("Invalid capture group name");a[u]=!0,i[i.length]=[u,d],l=!1,u="";continue}l?u+=t:r+=t}return[r,i]}(e))[0],v=i[1]),a=s(C(e,t),m?this:T,$),(o||r||v.length)&&(d=w(a),o&&(d.dotAll=!0,d.raw=$(function(e){for(var t,n=e.length,o=0,r="",i=!1;o<=n;o++)"\\"!==(t=I(e,o))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),r+=t):r+="[\\s\\S]":r+=t+I(e,++o);return r}(e),n)),r&&(d.sticky=!0),v.length&&(d.groups=v)),e!==x)try{l(a,"source",""===x?"(?:)":x)}catch(e){}return a},V=d(C),U=0;V.length>U;)h($,C,V[U++]);T.constructor=$,$.prototype=T,g(r,"RegExp",$,{constructor:!0})}x("RegExp")},64043:(e,t,n)=>{"use strict";var o=n(79989),r=n(56308);o({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},12826:(e,t,n)=>{"use strict";var o=n(41236).PROPER,r=n(11880),i=n(85027),a=n(34327),s=n(3689),l=n(63477),c=RegExp.prototype,d=c.toString,u=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=o&&"toString"!==d.name;(u||f)&&r(c,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},43843:(e,t,n)=>{"use strict";var o=n(79989),r=n(68844),i=n(42124),a=n(74684),s=n(34327),l=n(27413),c=r("".indexOf);o({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},21694:(e,t,n)=>{"use strict";var o=n(10730).charAt,r=n(34327),i=n(618),a=n(91934),s=n(27807),l=i.set,c=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:r(e),index:0})}),(function(){var e,t=c(this),n=t.string,r=t.index;return r>=n.length?s(void 0,!0):(e=o(n,r),t.index+=e.length,s(e,!1))}))},22462:(e,t,n)=>{"use strict";var o=n(22615),r=n(65773),i=n(85027),a=n(981),s=n(43126),l=n(34327),c=n(74684),d=n(54849),u=n(71514),f=n(66100);r("match",(function(e,t,n){return[function(t){var n=c(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](l(n))},function(e){var o=i(this),r=l(e),a=n(t,o,r);if(a.done)return a.value;if(!o.global)return f(o,r);var c=o.unicode;o.lastIndex=0;for(var d,b=[],p=0;null!==(d=f(o,r));){var m=l(d[0]);b[p]=m,""===m&&(o.lastIndex=u(r,s(o.lastIndex),c)),p++}return 0===p?null:b}]}))},57267:(e,t,n)=>{"use strict";var o=n(61735),r=n(22615),i=n(68844),a=n(65773),s=n(3689),l=n(85027),c=n(69985),d=n(981),u=n(68700),f=n(43126),b=n(34327),p=n(74684),m=n(71514),h=n(54849),g=n(27017),v=n(66100),y=n(44201)("replace"),w=Math.max,x=Math.min,k=i([].concat),_=i([].push),S=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");a("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var o=p(this),i=d(e)?void 0:h(e,y);return i?r(i,e,o,n):r(t,b(o),e,n)},function(e,r){var a=l(this),s=b(e);if("string"==typeof r&&-1===S(r,i)&&-1===S(r,"$<")){var d=n(t,a,s,r);if(d.done)return d.value}var p=c(r);p||(r=b(r));var h,y=a.global;y&&(h=a.unicode,a.lastIndex=0);for(var C,T=[];null!==(C=v(a,s))&&(_(T,C),y);){""===b(C[0])&&(a.lastIndex=m(s,f(a.lastIndex),h))}for(var O,A="",I=0,j=0;j<T.length;j++){for(var D,N=b((C=T[j])[0]),M=w(x(u(C.index),s.length),0),L=[],P=1;P<C.length;P++)_(L,void 0===(O=C[P])?O:String(O));var R=C.groups;if(p){var z=k([N],L,M,s);void 0!==R&&_(z,R),D=b(o(r,void 0,z))}else D=g(N,s,M,L,R,r);M>=I&&(A+=E(s,I,M)+D,I=M+N.length)}return A+E(s,I)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||T)},61514:(e,t,n)=>{"use strict";var o=n(22615),r=n(65773),i=n(85027),a=n(981),s=n(74684),l=n(70953),c=n(34327),d=n(54849),u=n(66100);r("search",(function(e,t,n){return[function(t){var n=s(this),r=a(t)?void 0:d(t,e);return r?o(r,t,n):new RegExp(t)[e](c(n))},function(e){var o=i(this),r=c(e),a=n(t,o,r);if(a.done)return a.value;var s=o.lastIndex;l(s,0)||(o.lastIndex=0);var d=u(o,r);return l(o.lastIndex,s)||(o.lastIndex=s),null===d?-1:d.index}]}))},28436:(e,t,n)=>{"use strict";var o=n(79989),r=n(61435).trim;o({target:"String",proto:!0,forced:n(75984)("trim")},{trim:function(){return r(this)}})},58373:(e,t,n)=>{"use strict";n(35405)("asyncIterator")},37855:(e,t,n)=>{"use strict";var o=n(79989),r=n(19037),i=n(22615),a=n(68844),s=n(53931),l=n(67697),c=n(50146),d=n(3689),u=n(36812),f=n(23622),b=n(85027),p=n(65290),m=n(18360),h=n(34327),g=n(75684),v=n(25391),y=n(20300),w=n(72741),x=n(26062),k=n(7518),_=n(82474),S=n(72560),E=n(98920),C=n(49556),T=n(11880),O=n(62148),A=n(83430),I=n(2713),j=n(57248),D=n(14630),N=n(44201),M=n(96145),L=n(35405),P=n(13032),R=n(55997),z=n(618),F=n(2960).forEach,B=I("hidden"),$=z.set,V=z.getterFor("Symbol"),U=Object.prototype,H=r.Symbol,Y=H&&H.prototype,W=r.RangeError,G=r.TypeError,q=r.QObject,Q=_.f,X=S.f,Z=x.f,K=C.f,J=a([].push),ee=A("symbols"),te=A("op-symbols"),ne=A("wks"),oe=!q||!q.prototype||!q.prototype.findChild,re=function(e,t,n){var o=Q(U,t);o&&delete U[t],X(e,t,n),o&&e!==U&&X(U,t,o)},ie=l&&d((function(){return 7!==v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?re:X,ae=function(e,t){var n=ee[e]=v(Y);return $(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),b(e);var o=m(t);return b(n),u(ee,o)?(n.enumerable?(u(e,B)&&e[B][o]&&(e[B][o]=!1),n=v(n,{enumerable:g(0,!1)})):(u(e,B)||X(e,B,g(1,v(null))),e[B][o]=!0),ie(e,o,n)):X(e,o,n)},le=function(e,t){b(e);var n=p(t),o=y(n).concat(fe(n));return F(o,(function(t){l&&!i(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=m(e),n=i(K,this,t);return!(this===U&&u(ee,t)&&!u(te,t))&&(!(n||!u(this,t)||!u(ee,t)||u(this,B)&&this[B][t])||n)},de=function(e,t){var n=p(e),o=m(t);if(n!==U||!u(ee,o)||u(te,o)){var r=Q(n,o);return!r||!u(ee,o)||u(n,B)&&n[B][o]||(r.enumerable=!0),r}},ue=function(e){var t=Z(p(e)),n=[];return F(t,(function(e){u(ee,e)||u(j,e)||J(n,e)})),n},fe=function(e){var t=e===U,n=Z(t?te:p(e)),o=[];return F(n,(function(e){!u(ee,e)||t&&!u(U,e)||J(o,ee[e])})),o};c||(T(Y=(H=function(){if(f(Y,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,t=D(e),n=function(e){var o=void 0===this?r:this;o===U&&i(n,te,e),u(o,B)&&u(o[B],t)&&(o[B][t]=!1);var a=g(1,e);try{ie(o,t,a)}catch(e){if(!(e instanceof W))throw e;re(o,t,a)}};return l&&oe&&ie(U,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),T(H,"withoutSetter",(function(e){return ae(D(e),e)})),C.f=ce,S.f=se,E.f=le,_.f=de,w.f=x.f=ue,k.f=fe,M.f=function(e){return ae(N(e),e)},l&&(O(Y,"description",{configurable:!0,get:function(){return V(this).description}}),s||T(U,"propertyIsEnumerable",ce,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:H}),F(y(ne),(function(e){L(e)})),o({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?v(e):le(v(e),t)},defineProperty:se,defineProperties:le,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue}),P(),R(H,"Symbol"),j[B]=!0},86544:(e,t,n)=>{"use strict";var o=n(79989),r=n(67697),i=n(19037),a=n(68844),s=n(36812),l=n(69985),c=n(23622),d=n(34327),u=n(62148),f=n(8758),b=i.Symbol,p=b&&b.prototype;if(r&&l(b)&&(!("description"in p)||void 0!==b().description)){var m={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:d(arguments[0]),t=c(p,this)?new b(e):void 0===e?b():b(e);return""===e&&(m[t]=!0),t};f(h,b),h.prototype=p,p.constructor=h;var g="Symbol(description detection)"===String(b("description detection")),v=a(p.valueOf),y=a(p.toString),w=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),k=a("".slice);u(p,"description",{configurable:!0,get:function(){var e=v(this);if(s(m,e))return"";var t=y(e),n=g?k(t,7,-1):x(t,w,"$1");return""===n?void 0:n}}),o({global:!0,constructor:!0,forced:!0},{Symbol:h})}},43975:(e,t,n)=>{"use strict";var o=n(79989),r=n(76058),i=n(36812),a=n(34327),s=n(83430),l=n(46549),c=s("string-to-symbol-registry"),d=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,d[n]=t,n}})},84254:(e,t,n)=>{"use strict";n(35405)("iterator")},59749:(e,t,n)=>{"use strict";n(37855),n(43975),n(81445),n(48324),n(79434)},81445:(e,t,n)=>{"use strict";var o=n(79989),r=n(36812),i=n(30734),a=n(23691),s=n(83430),l=n(46549),c=s("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw new TypeError(a(e)+" is not a symbol");if(r(c,e))return c[e]}})},69373:(e,t,n)=>{"use strict";var o=n(35405),r=n(13032);o("toPrimitive"),r()},66793:(e,t,n)=>{"use strict";var o=n(76058),r=n(35405),i=n(55997);r("toStringTag"),i(o("Symbol"),"Symbol")},47522:(e,t,n)=>{"use strict";var o=n(19037),r=n(66338),i=n(33265),a=n(57612),s=n(75773),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in r)r[c]&&l(o[c]&&o[c].prototype);l(i)},76265:(e,t,n)=>{"use strict";var o=n(19037),r=n(66338),i=n(33265),a=n(752),s=n(75773),l=n(55997),c=n(44201)("iterator"),d=a.values,u=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(t){e[c]=d}if(l(e,t,!0),r[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in r)u(o[f]&&o[f].prototype,f);u(i,"DOMTokenList")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n.nc=void 0;var o={};return(()=>{"use strict";n.r(o),n.d(o,{Editor:()=>Ms,ItemStore:()=>Jc,LevelEditor:()=>xc,Presenter:()=>_s,ValidationPresenter:()=>gc,bundleLoader:()=>ld,engine:()=>Za,renderingContext:()=>Cr,system:()=>br,utils:()=>ur,validate:()=>ls});var e="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,l="ArrayBuffer"in e;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function u(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 f(e){return"string"!=typeof e&&(e=String(e)),e}function b(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?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 m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&i&&((n=e)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=v(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):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=m(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=m(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(i)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=h(t),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),r=o?o[1]:"utf-8";return t.readAsText(e,r),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=u(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[u(e)]},p.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},p.prototype.set=function(e,t){this.map[u(e)]=f(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),b(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),b(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),b(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(t,n){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var o,r,i=(n=n||{}).body;if(t instanceof x){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new p(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new p(n.headers)),this.method=(o=n.method||this.method||"GET",r=o.toUpperCase(),w.indexOf(r)>-1?r:o),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in e)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}})),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 p(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(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 S=[301,302,303,307,308];_.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})};var E=e.DOMException;try{new E}catch(e){(E=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),E.prototype.constructor=E}function C(t,n){return new Promise((function(o,r){var a=new x(t,n);if(a.signal&&a.signal.aborted)return r(new E("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}if(s.onload=function(){var e,t,n={statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,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 n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();try{t.append(o,r)}catch(e){console.warn("Response "+e.message)}}})),t)};0===a.url.indexOf("file://")&&(s.status<200||s.status>599)?n.status=200:n.status=s.status,n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;setTimeout((function(){o(new _(r,n))}),0)},s.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},s.onabort=function(){setTimeout((function(){r(new E("Aborted","AbortError"))}),0)},s.open(a.method,function(t){try{return""===t&&e.location.href?e.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i?s.responseType="blob":l&&(s.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof p||e.Headers&&n.headers instanceof e.Headers)){var d=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){d.push(u(e)),s.setRequestHeader(e,f(n.headers[e]))})),a.headers.forEach((function(e,t){-1===d.indexOf(t)&&s.setRequestHeader(t,e)}))}else a.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}C.polyfill=!0,e.fetch||(e.fetch=C,e.Headers=p,e.Request=x,e.Response=_);n(62506),n(38077),n(60228),n(59749),n(86544),n(84254),n(752),n(21694),n(76265),n(76801),n(43843),n(25728),n(69358),n(47522),n(50886),n(69373),n(59903),n(79288),n(74289),n(48888),n(3925),n(45195),n(10373),n(83500),n(49361),n(14223),n(58965),n(54458),n(94825),n(56270);function T(e){return(T="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 O=globalThis.__rdfjson_namespaces,A=0,I=function(e,t,n){return O[e]||(O[e]=t),{abbrev:e,ns:t,localname:n,full:t+n,pretty:"".concat(e,":").concat(n)}},j=function(e){var t=Object.keys(O).find((function(t){return 0===e.indexOf(O[t])}));if(t)return I(t,O[t],e.substring(O[t].length));var n=e.lastIndexOf("/"),o=e.lastIndexOf("#");return o>n&&(n=o),I("ns".concat(A+=1),e.substring(0,n+1),e.substring(n+1))};const D=function(e){var t=Object.keys(O).find((function(t){return 0===e.indexOf(O[t])}));return t?I(t,O[t],e.substring(O[t].length)).pretty:e},N=function(e){return j(e).pretty},M=function(e){var t=e.split(":");return 2===t.length&&O.hasOwnProperty(t[0])?O[t[0]]+t[1]:e},L=function(e,t){"string"==typeof e?O[e]=t:"object"===T(e)&&Object.keys(e).forEach((function(t){O[t]=e[t]}))};n(85110),n(67483),n(17299),n(12766),n(20539),n(40454),n(45872),n(30695),n(72870),n(2458),n(13090),n(64120),n(4099),n(75397),n(7741),n(15796),n(42781);function P(e){return(P="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 R=function(e){return void 0!==e&&(null===e||"object"===P(e)||Array.isArray(e)||"function"==typeof e)},z=function(e){return"string"==typeof e||e instanceof String},F=function(e,t,n){0===e[t][n].length&&(delete e[t][n],0===Object.keys(e[t]).length&&delete e[t])},B=function(e){if(!R(e[0]))throw new Error("Graph is not a object.");if(!z(e[1]))throw new Error("Subject is not a string.");if(!z(e[2]))throw new Error("Predicate is not a string.");if(!R(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.")},$=function(e,t){return e===t||null==e&&e===t||(z(e)?z(t)?e===t:e===t.value:z(t)?e.value===t:e.type===t.type&&e.value===t.value&&e.lang===t.lang&&e.datatype===t.datatype)},V=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},U=function(e){return"".concat(e.value).concat(e.type).concat(e.lang||"").concat(e.datatype||"").concat(e.ng||"")};const H={isObject:R,isString:z,isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},statementEquals:function(e,t){return e.s===t.s&&e.p===t.p&&$(e.o,t.o)},add:function(e,t,n,o,r){if(B([e,t,n,o]),void 0===e[t])return e[t]={},e[t][n]=[o],o;if(void 0===e[t][n])return e[t][n]=[o],o;var i,a=e[t][n];if(!r)for(i=a.length-1;i>=0;i--)if($(o,a[i]))return a[i];return a.push(o),o},remove:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r])){var a=i[r];return i.splice(r,1),F(e,t,n),a}}},contains:function(e,t,n,o){if(B([e,t,n,o]),void 0!==e[t]&&void 0!==e[t][n]){var r,i=e[t][n];for(r=i.length-1;r>=0;r--)if($(o,i[r]))return i[r]}},cleanup:F,checkForWrongArgs:B,objectEquals:$,findDirectOrRDFValue:function(e,t,n){var o=e.find(t,n);if(o.length>0)return"bnode"!==o[0].getType()?o[0].getValue():e.findFirstValue(o[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],n={};return Object.keys(e).forEach((function(o){var r=e[o];n[o]={},Object.keys(r).forEach((function(e){var i=r[e];if(1===i.length)n[o][e]=[V(i[0])];else if(t){var a=[],s=new Set;n[o][e]=a,r[e].forEach((function(e){var t=V(e),n=U(t);s.has(n)||(s.add(n),a.push(t))}))}else{var l=[];n[o][e]=l,r[e].forEach((function(e){l.push(V(e))}))}}))})),n}};function Y(e){return(Y="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 W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,G(o.key),o)}}function G(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:String(t)}var q=function(){function e(t,n,o,r,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=n,this._p=o,this._o=r,this._o._statement=this,this._asserted=i}var t,n,o;return t=e,(n=[{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=M(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=M(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())}}])&&W(t.prototype,n),o&&W(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Q=(n(91756),n(65273),n(2568));const X=function(e,t){var n=[],o=new Set((t||[]).map((function(e){return M(e)}))),r=[],i={},a=function(e){var t=e.getValue();e.getLanguage()&&(t+="@".concat(e.getLanguage()));var n=e.getDatatype();return n&&"http://www.w3.org/2001/XMLSchema#string"!==n&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==n&&(t+="^^".concat(n)),t},s=function(e,t){var n=i[e]||{rels:[]};i[e]=n,n.rels.push(t)};return e.find().forEach((function(e){var t=e.getSubject(),i=e.getPredicate();if(!o.has(i)){var l="bnode"===e.getType(),c=e.isSubjectBlank();if(c||l)return r.push(e),c&&s(e.getSubject(),l?i:i+a(e)),void("bnode"===e.getType()&&s(e.getValue(),c?i:t+i));n.push(t+i+a(e))}})),Object.values(i).forEach((function(e){e.rels.sort(),e.hash=Q(e.rels.join(""))})),r.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)),n.push(t.join(""))})),n.sort(),Q(n.join(""))};class Z{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}Z.prototype.termType="BlankNode";const K=Z;class J{equals(e){return!!e&&e.termType===this.termType}}J.prototype.termType="DefaultGraph",J.prototype.value="";const ee=J;const te=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 n=e.fromTerm(t.subject),o=e.fromTerm(t.predicate),r=e.fromTerm(t.object),i=e.fromTerm(t.graph);return e.quad(n,o,r,i)}if("Variable"===t.termType)return e.variable(t.value);throw new Error("unknown termType "+t.termType)};class ne{constructor(e,t,n){this.value=e,this.language=t,this.datatype=n}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)}}ne.prototype.termType="Literal";const oe=ne;class re{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}re.prototype.termType="NamedNode";const ie=re;class ae{constructor(e,t,n,o){this.subject=e,this.predicate=t,this.object=n,this.graph=o}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)}}ae.prototype.termType="Quad",ae.prototype.value="";const se=ae;class le{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}}le.prototype.termType="Variable";const ce=le,de=new ie("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),ue=new ie("http://www.w3.org/2001/XMLSchema#string");class fe{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new ee}}namedNode(e){return new ie(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new K(e)}literal(e,t){return"string"==typeof t?new oe(e,t,de):new oe(e,"",t||ue)}variable(e){return new ce(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new se(e,t,n,o)}fromTerm(e){return te(this,e)}fromQuad(e){return te(this,e)}}fe.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const be=new fe;var pe=function(e){return 0===e.indexOf("_:")?e.substring(2):e},me=function(e){return e.find().map((function(e){var t=e.getSubject(),n=e.getPredicate(),o=function(e){if(e.value)switch(e.type){case"literal":if(e.lang)return be.literal(e.value,e.lang);if(e.datatype){var t=be.namedNode(e.datatype);return be.literal(e.value,t)}return be.literal(e.value);case"uri":return be.namedNode(e.value);case"bnode":return be.blankNode(pe(e.value))}}(e.getObject()),r=e.getNamedGraph()?be.namedNode(e.getNamedGraph()):void 0;return be.quad(e.isSubjectBlank()?be.blankNode(pe(t)):be.namedNode(t),be.namedNode(n),o,r)}))},he=function(e){return 0===e.indexOf("_:")?e:"_:".concat(e)},ge=function(e,t){var n=t||new Graph,o=function(e){var t=function(e){switch(e.termType){case"NamedNode":return{value:e.value,type:"uri"};case"BlankNode":return{value:he(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){n.add("BlankNode"===e.subject.termType?he(e.subject.value):e.subject.value,"BlankNode"===e.predicate.termType?he(e.predicate.value):e.predicate.value,o(e))}))};function ve(e){return(ve="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 ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xe(o.key),o)}}function xe(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:String(t)}var ke=function(e){return 0===e.length?e:[e[0]]},_e=function e(t,n,o){return{object:function(r){for(var i=0;i<n.length;i++){var a=void 0;if(o)a=n[i].getSubject();else{var s=n[i].getType();if("uri"===s||"bnode"===s)continue;a=n[i].getValue()}var l=t.find(a,r);l.length>0&&e(t,[l[0]])}return e(t,[])},objects:function(r){var i,a=[];if(!0===o)for(i=0;i<n.length;i++)a=a.concat(t.find(n[i].getSubject(),r));else for(i=0;i<n.length;i++){var s=n[i].getType();"uri"!==s&&"bnode"!==s||(a=a.concat(t.find(n[i].getValue(),r)))}return e(t,a)},constr:function(r,i){var a=i;H.isString(a)&&(a={type:"uri",value:a});for(var s=[],l=0;l<n.length;l++){var c=o?n[l].getSubject():n[l].getValue();t.find(c,r,a).length>0&&s.push(n[l])}return e(t,s,o)},each:function(r,i){if(!0===o)for(var a=0;a<n.length;a++){var s="_:"===n[a].getSubject().substring(0,2)?"bnode":"uri";null!=i&&i!==s||r(e(t,n[a],o))}else for(var l=0;l<n.length;l++)r(e(t,n[l],o))},statements:function(){return n},nodes:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push({type:i,value:n[r].getSubject()})}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getObject());return t},values:function(e){var t=[];if(!0===o)for(var r=0;r<n.length;r++){var i="_:"===n[r].getSubject().substring(0,2)?"bnode":"uri";null!=e&&e!==i||t.push(n[r].getSubject())}else for(var a=0;a<n.length;a++)null!=e&&e!==n[a].getType()||t.push(n[a].getValue());return t},firstValue:function(e){if(!0===o)for(var t=0;t<n.length;t++){var r="_:"===n[t].getSubject().substring(0,2)?"bnode":"uri";if(null==e||e===r)return n[t].getSubject()}else for(var i=0;i<n.length;i++)if(null==e||e===n[i].getType())return n[i].getValue()}}},Se=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;ye(this,e),this._graph=t||{},this._bnodes={},this._bnodesIndexed=!1,!1!==n&&this.validate(),this._changed=!1}var t,n,o;return t=e,(n=[{key:"addQuads",value:function(e){return ge(e,this),this}},{key:"toQuads",value:function(){return me(this)}},{key:"isEmpty",value:function(){var e=this;return!Object.keys(this._graph).find((function(t){var n=e._graph[t];return Object.keys(n).find((function(e){return n[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 n,o={},r=e.find(),i=0;i<r.length;i++){var a=r[i],s=a.getSubject(),l=a.getPredicate(),c=a.getCleanObject();t&&(c.ng=t),0===s.indexOf("_:")&&(n=o[s]||this._newBNode(),o[s]=n,s=n),0===l.indexOf("_:")&&(n=o[l]||this._newBNode(),o[l]=n,l=n),"bnode"===c.type&&(n=o[c.value]||this._newBNode(),o[c.value]=n,c.value=n),this.add(s,l,c)}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4?arguments[4]:void 0;if(e instanceof q){var i=e.getPredicate(),a=e.getObject(),s=e.getSubject();this._trackBNodes(s,i,a);var l=this._graphObject(a),c=H.add(this._graph,s,i,l,r);return!0!==o&&this.setChanged(),this._get(s,i,c,!0)}return this.create(e,t,n,!0,o,r)}},{key:"addL",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.lang=o),this.create(e,t,r,!0)}},{key:"addD",value:function(e,t,n,o){var r={type:"literal",value:n};return"string"==typeof o&&(r.datatype=M(o)),this.create(e,t,r,!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,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=e,s=t,l=n;if(a=null==a?this._newBNode():M(a),s=null==s?this._newBNode():M(s),null==l?l={type:"bnode",value:this._newBNode()}:H.isString(l)?l={type:"uri",value:M(l)}:"object"!==ve(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=M(l.value)),l.datatype&&(l.datatype=M(l.datatype))),!1!==o){var c=H.add(this._graph,a,s,l,i);return!0!==r&&this.setChanged(),this._getOrCreate(a,s,c,!0)}return new q(this,a,s,l,!1)}},{key:"findAndRemove",value:function(e,t,n){for(var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.find(e,t,n),i=0;i<r.length;i++)this.remove(r[i],o)}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getSubject(),o=e.getPredicate(),r=e.getObject();this._trackBNodes(n,o,r),null!=H.remove(this._graph,n,o,r)&&!0!==t&&this.setChanged()}},{key:"find",value:function(e,t,n){var o=e,r=t,i=n;if("string"==typeof o&&(o=M(o)),"string"==typeof r&&(r=M(r)),"object"===ve(i)&&null!==i&&"uri"===i.type?i.value=M(i.value):"string"==typeof i&&(i={type:"uri",value:M(i)}),null==i)return null==r?null==o?this._find():this._findS(o):null==o?this._findP(r):this._findSP(o,r);if(null==r)return null==o?this._findO(i):this._findSO(o,i);if(null==o)return this._findPO(r,i);var a=this._get(o,r,H.contains(this._graph,o,r,i),!0);return null==a?[]:[a]}},{key:"findFirstValue",value:function(e,t){var n=this.find(e,t);if(n.length>0)return n[0].getValue()}},{key:"projection",value:function(e,t,n){var o=this,r={};return Object.keys(t).forEach((function(i){var a=t[i],s=Array.isArray(a)?o.findPath(e,a):o.find(e,a);if(s.length>0)switch("*"===i[0]?r[i.substr(1)]=s.map((function(e){return e.getValue()})):r[i]=s[0].getValue(),n||"none"){case"statement":r["*".concat(i)]=s;break;case"objects":r["*".concat(i)]=s.map((function(e){return e.getCleanObject()}));break;case"values":r["*".concat(i)]=s.map((function(e){return e.getValue()}))}})),r}},{key:"subjects",value:function(e,t){return _e(this,this.find(null,e,t),!0)}},{key:"subject",value:function(e,t){return _e(this,ke(this.find(null,e,t)),!0)}},{key:"objects",value:function(e,t){return _e(this,this.find(e,t,null))}},{key:"object",value:function(e,t){return _e(this,ke(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,n){var o,r=this;if(Array.isArray(e)&&0!==e.length){var i=o=this._newBNode(),a=e.length-1;e.forEach((function(e,o){r[t](i,"rdf:first",e,n),o!==a?i=r.add(i,"rdf:rest").getValue():r.add(i,"rdf:rest","rdf:nil")}))}else o=M("rdf:nil");return o}},{key:"removeList",value:function(e){var t=!1,n="object"===ve(e)?e.value:e;try{var o=M("rdf:nil");for(t=n===o;n!==o&&null!=n;){var r=this.findFirstValue(n,"rdf:rest");this.findAndRemove(n),t=null!=(n=r)}}catch(e){return console.warn("Invalid list for object: ".concat(n)),!1}return t}},{key:"getList",value:function(e){var t="object"===ve(e)?e.value:M(e),n=[];try{for(var o=M("rdf:nil");t!==o&&null!=t;)n.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 n}},{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 n=this,o=!1;return this.find(e,t).forEach((function(e){n.removeList(e.getValue())&&(n.remove(e),o=!0)})),o}},{key:"exportRDFJSON",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._graph,H.clone(this._graph,e)}},{key:"replaceSubject",value:function(e,t){return this.replaceURI(e,t)}},{key:"replaceURI",value:function(e,t){var n=this._graph;if(n.hasOwnProperty(e)){if(n.hasOwnProperty(t))throw new Error("Cannot replace subject with target URI since it already exists.");n[t]=n[e],delete n[e]}return this.forEach((function(n,o,r){"uri"===r.type&&r.value===e&&(r.value=t),n===t&&r._statement&&(r._statement._s=t)})),this}},{key:"replaceBlankWithURI",value:function(e,t,n){var o=this._graph;if(o.hasOwnProperty(e)){if(o.hasOwnProperty(t)){if(!n)throw new Error("Cannot replace subject with target URI since it already exists.");var r=o[t],i=o[e];Object.keys(i).forEach((function(e){if(r.hasOwnProperty(e)){var t=r[e],n=i[e].filter((function(e){return!t.find((function(t){return H.objectEquals(t,e)}))}));r[e]=t.concat(n)}else r[e]=i[e]})),delete o[e]}else o[t]=o[e],delete o[e];this.forEach((function(n,o,r){"bnode"===r.type&&r.value===e&&(r.value=t,r.type="uri"),n===t&&r._statement&&(r._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(n){var o=t[n];Object.keys(o).forEach((function(t){o[t].forEach((function(o){e(n,t,o)}))}))}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(n){t.push(e(n))})),t}},{key:"equals",value:function(e,t){return X(this,t)===X(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,n,o){if(null!=n)return this._getOrCreate(e,t,n,o)}},{key:"_getOrCreate",value:function(e,t,n,o){return null==n._statement&&(n._statement=new q(this,e,t,n,o)),n._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 n=this;return null==this._graph[e]||null==this._graph[e][t]?[]:this._graph[e][t].map((function(o){return n._get(e,t,o,!0)}))}},{key:"_findS",value:function(e){var t=this,n=this._graph[e],o=Object.keys(n||{}).map((function(n){return t._findSP(e,n)}));return Array.prototype.concat.apply([],o)}},{key:"_find",value:function(){var e=this,t=[];return this.forEach((function(n,o,r){t.push(e._get(n,o,r,!0))})),t}},{key:"_findP",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){e===r&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findO",value:function(e){var t=this,n=[];return this.forEach((function(o,r,i){H.objectEquals(e,i)&&n.push(t._get(o,r,i,!0))})),n}},{key:"_findSO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===r&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_findPO",value:function(e,t){var n=this,o=[];return this.forEach((function(r,i,a){e===i&&H.objectEquals(t,a)&&o.push(n._get(r,i,a,!0))})),o}},{key:"_validate",value:function(){var e=this._graph,t={valid:!0,errors:[],nr:0};return Object.keys(e).forEach((function(n){var o=e[n];H.isObject(o)?Object.keys(o).forEach((function(e){var r=o[e];Array.isArray(r)?r.forEach((function(o,r){H.isObject(o)?null!=o.type?H.isString(o.value)?t.nr+=1:(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array must have the 'value' attribute pointing to a string.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Object ".concat(r+1," in object array lacks the attribute type, must be either 'literal', 'resource' or 'bnode'.")}),t.valid=!1):(t.errors.push({s:n,p:e,oindex:r+1,message:"Element ".concat(r+1," in object array is not an object.")}),t.valid=!1)})):(t.errors.push({s:n,p:e,message:"Predicate must point to an array of objects."}),t.valid=!1)})):(t.errors.push({s:n,message:"Subject must point to an object."}),t.valid=!1)})),t}},{key:"_newBNode",value:function(){var e,t,n;for(this._indexBNodes(),e=1;e<20;e++)for(t=1;t<=e;t++)if(n="_:".concat(Math.floor(Math.random()*(Math.pow(10,e)+1))),!0!==this._bnodes[n])return this._bnodes[n]=!0,n;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(n){0===n.indexOf("_:")&&(e._bnodes[n]=!0);var o=t[n];Object.keys(o).forEach((function(t){0===t.indexOf("_:")&&(e._bnodes[t]=!0),o[t].forEach((function(t){"bnode"===t.type&&(e._bnodes[t.value]=!0)}))}))})),this._bnodesIndexed=!0}}},{key:"_trackBNodes",value:function(e,t,n){0===e.indexOf("_:")&&(this._bnodes[e]=!0),0===t.indexOf("_:")&&(this._bnodes[t]=!0),"bnode"===n.type&&(this._bnodes[n.value]=!0)}}])&&we(t.prototype,n),o&&we(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(9081),n(24601);n(73220),n(17554),n(39385),n(80528),n(7517),n(25787);function Ee(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 Ce(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Te(o.key),o)}}function Te(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ee(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:String(t)}function Oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t,n){return Me(t),function(e,t){if(t&&("object"===Ee(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,De()?Reflect.construct(t,n||[],Me(e).constructor):t.apply(e,n))}function Ie(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,n)}function n(){return je(e,arguments,Me(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ne(n,e)}(e)}function je(e,t,n){if(De())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&Ne(r,n.prototype),r}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}function Ne(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Me(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Error;function Le(e){return(Le="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 Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Fe(o.key),o)}}function ze(e,t,n){return t&&Re(e.prototype,t),n&&Re(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fe(e){var t=function(e,t){if("object"!=Le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Le(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Le(t)?t:String(t)}var Be={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#"},$e={rdftype:"".concat(Be.rdf,"type"),rdfssco:"".concat(Be.rdfs,"subClassOf"),rdfsdomain:"".concat(Be.rdfs,"domain"),rdfsrange:"".concat(Be.rdfs,"range"),rdfsspo:"".concat(Be.rdfs,"subPropertyOf"),rdfsClass:"".concat(Be.rdfs,"Class"),owlClass:"".concat(Be.owl,"Class"),owlObjectProperty:"".concat(Be.owl,"ObjectProperty"),owlDatatypeProperty:"".concat(Be.owl,"DatatypeProperty"),rdfProperty:"".concat(Be.rdf,"Property")},Ve=function(e,t,n){for(var o={},r=!1,i=e.find(t,n),a=0;a<i.length;a++){var s=i[a];"literal"===s.getType()&&(o[s.getLanguage()||""]=s.getValue()||"",r=!0)}if(r)return null==o.en&&null!=o[""]&&(o.en=o[""],delete o[""]),o},Ue=function(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o];n[r]||(t.push(r),n[r]=!0)}return t},He=function(){function e(t,n){Pe(this,e),this._uri=t,this._parents=[],this._children=[],this._graph=n}return ze(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=Ve(this._graph,this._uri,"".concat(Be.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=Ve(this._graph,this._uri,"".concat(Be.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=Ue(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=Ue(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 n=0;n<this._parents.length;n++)this._allDomainOf=this._allDomainOf.concat(this._parents[n].getAllDomainOf())}return delete this._domainOfLock,this._allDomainOf}}]),e}(),Ye=function(e,t,n,o){for(var r=0;r<n.length;r++){var i=n[r],a=i.getSubject(),s=e[a];if(s||(s=new He(a,i.getGraph()),e[a]=s,t.push(s)),o){var l=i.getValue(),c=e[l];c||(c=new He(l,i.getGraph()),e[l]=c,t.push(c)),s.addParent(c)}}},We=function(){function e(){Pe(this,e),this._cidx={},this._carr=[],this._pidx={},this._parr=[]}return ze(e,[{key:"addGraph",value:function(e){Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.rdfsClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdftype,$e.owlClass)),Ye(this._cidx,this._carr,e.find(null,$e.rdfssco,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.rdfProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdfsspo,null),!0),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlDatatypeProperty)),Ye(this._pidx,this._parr,e.find(null,$e.rdftype,$e.owlObjectProperty)),function(e,t,n){for(var o,r,i,a=e.find(null,$e.rdfsdomain,null),s=0;s<a.length;s++)o=t[(i=a[s]).getSubject()],r=n[i.getValue()],null!=o&&null!=r&&o.setDomain(r);a=e.find(null,$e.rdfsrange,null);for(var l=0;l<a.length;l++)o=t[(i=a[l]).getSubject()],r=i.getValue(),null!=o&&null!=r&&o.setRange(r)}(e,this._pidx,this._cidx)}},{key:"addThing",value:function(){var e="http://www.w3.org/2002/07/owl#Thing",t=this._cidx[e],n=!1;t||(t=new He(e,new Se),this._cidx[e]=t,this._carr.push(t),n=!0);for(var o=0;o<this._carr.length;o++){var r=this._carr[o];(n&&r!==t||-1===r.getParents().indexOf(t)&&r!==t)&&r.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=[],n=[e].concat(e.getChildren()),o=0;o<n.length;o++)for(var r=n[o],i=r.getGraph.find(null,$e.rdftype,r.getURI()),a=0;a<i.length;a++)t.push(i[a].getSubject());return t}}]),e}();We.prototype.ns=Be,We.prototype.terms=$e,We.global=new We;function Ge(e){return(Ge="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 qe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qe(o.key),o)}}function Qe(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ge(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:String(t)}var Xe=function(e,t){if(null==t)return!0;var n=e.getConstraints(),o=!0;return null!=n&&(Object.keys(n).find((function(e){var r,i,a,s,l=t[e];return""!==l&&"*"!==l&&(r=l,i=n[e],a=Array.isArray(r)?r:null!=r?[r]:[],s=Array.isArray(i)?i:null!=i?[i]:[],a.length!==s.length||!a.every((function(e){return s.includes(e)})))&&(o=!1,!0)})),o)},Ze=function(e){this.filterObj={},this.registry=e};Ze.prototype.register=function(e){this.registry.register(this.filterObj,e)},["itemtype","choices","nodetype","datatype","rdftype","constraint","predicate","style","item","check"].forEach((function(e){Ze.prototype[e]=function(t){var n={};switch(e){case"constraint":Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),this.filterObj[e]=n;break;case"predicate":case"rdftype":case"datatype":this.filterObj[e]=M(t);break;default:this.filterObj[e]=t||!0}return this}}));var Ke=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,n,o;return t=e,(n=[{key:"calculatePriority",value:function(e,t){var n=0;if(t.itemtype&&(n+=this.priorities.ITEMTYPE,e.getType()!==t.itemtype))return-1;if(t.choices)switch(n+=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&&(n+=this.priorities.NODETYPE,e.getNodetype()!==t.nodetype))return-1;if(t.datatype){n+=this.priorities.DATATYPE;var o=e.getDatatype(),r=!0;if(o&&(r=Array.isArray(o)?!o.includes(t.datatype):o!==t.datatype),r)return-1}return t.rdftype&&(n+=this.priorities.RDFTYPE,!function(e,t){var n=e.getConstraints();return null!=n&&n[rdfType]===t}(e,t.rdftype))||t.constraint&&(n+=this.priorities.CONSTRAINT,!Xe(e,t.constraint))||t.predicate&&(n+=this.priorities.PREDICATE,e.getProperty()!==t.predicate)||t.style&&(n+=this.priorities.STYLE,!e.hasStyle(t.style))?-1:!t.item||(n+=this.priorities.ITEM,e===t.item||t.item.getId&&e.getId()===t.item.getId())?t.check&&!t.check(e)?-1:n:-1}},{key:"getPriority",value:function(e,t){for(var n=0;n<this.components.length;n++)if(this.components[n].component===t){var o=this.calculatePriority(e,this.components[n].filter);if(o>=0)return o}return 0}},{key:"getComponentBefore",value:function(e,t){var n=this.getPriority(e,t);return this.getComponent(e,n)}},{key:"getComponent",value:function(e,t){for(var n,o,r,i=-1,a=0;a<this.components.length;a++)r=this.components[a],(o=this.calculatePriority(e,r.filter))>i&&(void 0===t||o<t)&&(n=r,i=o);if(n)return n.component}},{key:"register",value:function(e,t){this.components.push({component:t,filter:e})}},{key:"itemtype",value:function(e){return new Ze(this).itemtype(e)}},{key:"choices",value:function(e){return new Ze(this).choices(e)}},{key:"nodetype",value:function(e){return new Ze(this).nodetype(e)}},{key:"datatype",value:function(e){return new Ze(this).datatype(e)}},{key:"rdftype",value:function(e){return new Ze(this).rdftype(e)}},{key:"constraint",value:function(e){return new Ze(this).constraint(e)}},{key:"predicate",value:function(e){return new Ze(this).predicate(e)}},{key:"style",value:function(e){return new Ze(this).style(e)}},{key:"item",value:function(e){return new Ze(this).item(e)}},{key:"check",value:function(e){return new Ze(this).check(e)}}])&&qe(t.prototype,n),o&&qe(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(89730),n(12826);const Je=function(){this.__data__=[],this.size=0};const et=function(e,t){return e===t||e!=e&&t!=t};const tt=function(e,t){for(var n=e.length;n--;)if(et(e[n][0],t))return n;return-1};var nt=Array.prototype.splice;const ot=function(e){var t=this.__data__,n=tt(t,e);return!(n<0)&&(n==t.length-1?t.pop():nt.call(t,n,1),--this.size,!0)};const rt=function(e){var t=this.__data__,n=tt(t,e);return n<0?void 0:t[n][1]};const it=function(e){return tt(this.__data__,e)>-1};const at=function(e,t){var n=this.__data__,o=tt(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}st.prototype.clear=Je,st.prototype.delete=ot,st.prototype.get=rt,st.prototype.has=it,st.prototype.set=at;const lt=st;const ct=function(){this.__data__=new lt,this.size=0};const dt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const ut=function(e){return this.__data__.get(e)};const ft=function(e){return this.__data__.has(e)};const bt="object"==typeof global&&global&&global.Object===Object&&global;var pt="object"==typeof self&&self&&self.Object===Object&&self;const mt=bt||pt||Function("return this")();const ht=mt.Symbol;var gt=Object.prototype,vt=gt.hasOwnProperty,yt=gt.toString,wt=ht?ht.toStringTag:void 0;const xt=function(e){var t=vt.call(e,wt),n=e[wt];try{e[wt]=void 0;var o=!0}catch(e){}var r=yt.call(e);return o&&(t?e[wt]=n:delete e[wt]),r};var kt=Object.prototype.toString;const _t=function(e){return kt.call(e)};var St=ht?ht.toStringTag:void 0;const Et=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":St&&St in Object(e)?xt(e):_t(e)};const Ct=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Tt=function(e){if(!Ct(e))return!1;var t=Et(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Ot=mt["__core-js_shared__"];var At,It=(At=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";const jt=function(e){return!!It&&It in e};var Dt=Function.prototype.toString;const Nt=function(e){if(null!=e){try{return Dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Mt=/^\[object .+?Constructor\]$/,Lt=Function.prototype,Pt=Object.prototype,Rt=Lt.toString,zt=Pt.hasOwnProperty,Ft=RegExp("^"+Rt.call(zt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Bt=function(e){return!(!Ct(e)||jt(e))&&(Tt(e)?Ft:Mt).test(Nt(e))};const $t=function(e,t){return null==e?void 0:e[t]};const Vt=function(e,t){var n=$t(e,t);return Bt(n)?n:void 0};const Ut=Vt(mt,"Map");const Ht=Vt(Object,"create");const Yt=function(){this.__data__=Ht?Ht(null):{},this.size=0};const Wt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Gt=Object.prototype.hasOwnProperty;const qt=function(e){var t=this.__data__;if(Ht){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Gt.call(t,e)?t[e]:void 0};var Qt=Object.prototype.hasOwnProperty;const Xt=function(e){var t=this.__data__;return Ht?void 0!==t[e]:Qt.call(t,e)};const Zt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ht&&void 0===t?"__lodash_hash_undefined__":t,this};function Kt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Kt.prototype.clear=Yt,Kt.prototype.delete=Wt,Kt.prototype.get=qt,Kt.prototype.has=Xt,Kt.prototype.set=Zt;const Jt=Kt;const en=function(){this.size=0,this.__data__={hash:new Jt,map:new(Ut||lt),string:new Jt}};const tn=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const nn=function(e,t){var n=e.__data__;return tn(t)?n["string"==typeof t?"string":"hash"]:n.map};const on=function(e){var t=nn(this,e).delete(e);return this.size-=t?1:0,t};const rn=function(e){return nn(this,e).get(e)};const an=function(e){return nn(this,e).has(e)};const sn=function(e,t){var n=nn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ln.prototype.clear=en,ln.prototype.delete=on,ln.prototype.get=rn,ln.prototype.has=an,ln.prototype.set=sn;const cn=ln;const dn=function(e,t){var n=this.__data__;if(n instanceof lt){var o=n.__data__;if(!Ut||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new cn(o)}return n.set(e,t),this.size=n.size,this};function un(e){var t=this.__data__=new lt(e);this.size=t.size}un.prototype.clear=ct,un.prototype.delete=dt,un.prototype.get=ut,un.prototype.has=ft,un.prototype.set=dn;const fn=un;const bn=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const pn=function(){try{var e=Vt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const mn=function(e,t,n){"__proto__"==t&&pn?pn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var hn=Object.prototype.hasOwnProperty;const gn=function(e,t,n){var o=e[t];hn.call(e,t)&&et(o,n)&&(void 0!==n||t in e)||mn(e,t,n)};const vn=function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=o?o(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?mn(n,s,l):gn(n,s,l)}return n};const yn=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const wn=function(e){return null!=e&&"object"==typeof e};const xn=function(e){return wn(e)&&"[object Arguments]"==Et(e)};var kn=Object.prototype,_n=kn.hasOwnProperty,Sn=kn.propertyIsEnumerable;const En=xn(function(){return arguments}())?xn:function(e){return wn(e)&&_n.call(e,"callee")&&!Sn.call(e,"callee")};const Cn=Array.isArray;const Tn=function(){return!1};var On="object"==typeof exports&&exports&&!exports.nodeType&&exports,An=On&&"object"==typeof module&&module&&!module.nodeType&&module,In=An&&An.exports===On?mt.Buffer:void 0;const jn=(In?In.isBuffer:void 0)||Tn;var Dn=/^(?:0|[1-9]\d*)$/;const Nn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Dn.test(e))&&e>-1&&e%1==0&&e<t};const Mn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ln={};Ln["[object Float32Array]"]=Ln["[object Float64Array]"]=Ln["[object Int8Array]"]=Ln["[object Int16Array]"]=Ln["[object Int32Array]"]=Ln["[object Uint8Array]"]=Ln["[object Uint8ClampedArray]"]=Ln["[object Uint16Array]"]=Ln["[object Uint32Array]"]=!0,Ln["[object Arguments]"]=Ln["[object Array]"]=Ln["[object ArrayBuffer]"]=Ln["[object Boolean]"]=Ln["[object DataView]"]=Ln["[object Date]"]=Ln["[object Error]"]=Ln["[object Function]"]=Ln["[object Map]"]=Ln["[object Number]"]=Ln["[object Object]"]=Ln["[object RegExp]"]=Ln["[object Set]"]=Ln["[object String]"]=Ln["[object WeakMap]"]=!1;const Pn=function(e){return wn(e)&&Mn(e.length)&&!!Ln[Et(e)]};const Rn=function(e){return function(t){return e(t)}};var zn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fn=zn&&"object"==typeof module&&module&&!module.nodeType&&module,Bn=Fn&&Fn.exports===zn&&bt.process;const $n=function(){try{var e=Fn&&Fn.require&&Fn.require("util").types;return e||Bn&&Bn.binding&&Bn.binding("util")}catch(e){}}();var Vn=$n&&$n.isTypedArray;const Un=Vn?Rn(Vn):Pn;var Hn=Object.prototype.hasOwnProperty;const Yn=function(e,t){var n=Cn(e),o=!n&&En(e),r=!n&&!o&&jn(e),i=!n&&!o&&!r&&Un(e),a=n||o||r||i,s=a?yn(e.length,String):[],l=s.length;for(var c in e)!t&&!Hn.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Nn(c,l))||s.push(c);return s};var Wn=Object.prototype;const Gn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wn)};const qn=function(e,t){return function(n){return e(t(n))}};const Qn=qn(Object.keys,Object);var Xn=Object.prototype.hasOwnProperty;const Zn=function(e){if(!Gn(e))return Qn(e);var t=[];for(var n in Object(e))Xn.call(e,n)&&"constructor"!=n&&t.push(n);return t};const Kn=function(e){return null!=e&&Mn(e.length)&&!Tt(e)};const Jn=function(e){return Kn(e)?Yn(e):Zn(e)};const eo=function(e,t){return e&&vn(t,Jn(t),e)};const to=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var no=Object.prototype.hasOwnProperty;const oo=function(e){if(!Ct(e))return to(e);var t=Gn(e),n=[];for(var o in e)("constructor"!=o||!t&&no.call(e,o))&&n.push(o);return n};const ro=function(e){return Kn(e)?Yn(e,!0):oo(e)};const io=function(e,t){return e&&vn(t,ro(t),e)};var ao="object"==typeof exports&&exports&&!exports.nodeType&&exports,so=ao&&"object"==typeof module&&module&&!module.nodeType&&module,lo=so&&so.exports===ao?mt.Buffer:void 0,co=lo?lo.allocUnsafe:void 0;const uo=function(e,t){if(t)return e.slice();var n=e.length,o=co?co(n):new e.constructor(n);return e.copy(o),o};const fo=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const bo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i};const po=function(){return[]};var mo=Object.prototype.propertyIsEnumerable,ho=Object.getOwnPropertySymbols;const go=ho?function(e){return null==e?[]:(e=Object(e),bo(ho(e),(function(t){return mo.call(e,t)})))}:po;const vo=function(e,t){return vn(e,go(e),t)};const yo=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const wo=qn(Object.getPrototypeOf,Object);const xo=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)yo(t,go(e)),e=wo(e);return t}:po;const ko=function(e,t){return vn(e,xo(e),t)};const _o=function(e,t,n){var o=t(e);return Cn(e)?o:yo(o,n(e))};const So=function(e){return _o(e,Jn,go)};const Eo=function(e){return _o(e,ro,xo)};const Co=Vt(mt,"DataView");const To=Vt(mt,"Promise");const Oo=Vt(mt,"Set");const Ao=Vt(mt,"WeakMap");var Io=Nt(Co),jo=Nt(Ut),Do=Nt(To),No=Nt(Oo),Mo=Nt(Ao),Lo=Et;(Co&&"[object DataView]"!=Lo(new Co(new ArrayBuffer(1)))||Ut&&"[object Map]"!=Lo(new Ut)||To&&"[object Promise]"!=Lo(To.resolve())||Oo&&"[object Set]"!=Lo(new Oo)||Ao&&"[object WeakMap]"!=Lo(new Ao))&&(Lo=function(e){var t=Et(e),n="[object Object]"==t?e.constructor:void 0,o=n?Nt(n):"";if(o)switch(o){case Io:return"[object DataView]";case jo:return"[object Map]";case Do:return"[object Promise]";case No:return"[object Set]";case Mo:return"[object WeakMap]"}return t});const Po=Lo;var Ro=Object.prototype.hasOwnProperty;const zo=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ro.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Fo=mt.Uint8Array;const Bo=function(e){var t=new e.constructor(e.byteLength);return new Fo(t).set(new Fo(e)),t};const $o=function(e,t){var n=t?Bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var Vo=/\w*$/;const Uo=function(e){var t=new e.constructor(e.source,Vo.exec(e));return t.lastIndex=e.lastIndex,t};var Ho=ht?ht.prototype:void 0,Yo=Ho?Ho.valueOf:void 0;const Wo=function(e){return Yo?Object(Yo.call(e)):{}};const Go=function(e,t){var n=t?Bo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const qo=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Bo(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return $o(e,n);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 Go(e,n);case"[object Map]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Uo(e);case"[object Set]":return new o;case"[object Symbol]":return Wo(e)}};var Qo=Object.create;const Xo=function(){function e(){}return function(t){if(!Ct(t))return{};if(Qo)return Qo(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Zo=function(e){return"function"!=typeof e.constructor||Gn(e)?{}:Xo(wo(e))};const Ko=function(e){return wn(e)&&"[object Map]"==Po(e)};var Jo=$n&&$n.isMap;const er=Jo?Rn(Jo):Ko;const tr=function(e){return wn(e)&&"[object Set]"==Po(e)};var nr=$n&&$n.isSet;const or=nr?Rn(nr):tr;var rr={};rr["[object Arguments]"]=rr["[object Array]"]=rr["[object ArrayBuffer]"]=rr["[object DataView]"]=rr["[object Boolean]"]=rr["[object Date]"]=rr["[object Float32Array]"]=rr["[object Float64Array]"]=rr["[object Int8Array]"]=rr["[object Int16Array]"]=rr["[object Int32Array]"]=rr["[object Map]"]=rr["[object Number]"]=rr["[object Object]"]=rr["[object RegExp]"]=rr["[object Set]"]=rr["[object String]"]=rr["[object Symbol]"]=rr["[object Uint8Array]"]=rr["[object Uint8ClampedArray]"]=rr["[object Uint16Array]"]=rr["[object Uint32Array]"]=!0,rr["[object Error]"]=rr["[object Function]"]=rr["[object WeakMap]"]=!1;const ir=function e(t,n,o,r,i,a){var s,l=1&n,c=2&n,d=4&n;if(o&&(s=i?o(t,r,i,a):o(t)),void 0!==s)return s;if(!Ct(t))return t;var u=Cn(t);if(u){if(s=zo(t),!l)return fo(t,s)}else{var f=Po(t),b="[object Function]"==f||"[object GeneratorFunction]"==f;if(jn(t))return uo(t,l);if("[object Object]"==f||"[object Arguments]"==f||b&&!i){if(s=c||b?{}:Zo(t),!l)return c?ko(t,io(s,t)):vo(t,eo(s,t))}else{if(!rr[f])return i?t:{};s=qo(t,f,l)}}a||(a=new fn);var p=a.get(t);if(p)return p;a.set(t,s),or(t)?t.forEach((function(r){s.add(e(r,n,o,r,t,a))})):er(t)&&t.forEach((function(r,i){s.set(i,e(r,n,o,i,t,a))}));var m=u?void 0:(d?c?Eo:So:c?ro:Jn)(t);return bn(m||t,(function(r,i){m&&(r=t[i=r]),gn(s,i,e(r,n,o,i,t,a))})),s};const ar=function(e){return ir(e,5)};n(6203),n(65137),n(64043),n(57267),n(52003),n(22462);var sr=n(30381),lr=n.n(sr),cr=function(e,t){var n=t||lr().locale();if(null==e)return{precision:"none"};if("string"==typeof e)return{value:e,precision:"nolang",lang:""};if(e.hasOwnProperty(n))return{value:e[n],precision:"exact",lang:n};if(n.indexOf("_")>-1&&e.hasOwnProperty(n.substr(0,2)))return{value:e[n.substr(0,2)],precision:"coarsen",lang:n.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 o=Object.keys(e);return o.length>0?{value:e[o[0]],precision:"any",lang:o[0]}:{precision:"none"}},dr=function(e,t,n){var o=e.find(t,n);if(o.length>0){for(var r={},i=0;i<o.length;i++)r[o[i].getLanguage()||""]=o[i].getValue();return r}};const ur={getLocalizedValue:cr,getLocalizedMap:function(e,t,n){var o,r=t,i=n;e.getItem?(o=e.getGraph(),r=e.getValue(),i=e.getItem().getURIValueLabelProperties()):o=e,null!=i&&0!==i.length||(i=br.labelProperties);for(var a=0;a<i.length;a++){var s=i[a];if(Array.isArray(s)){for(var l=[],c=0;c<s.length;c++){var d=dr(o,r,s[c]);d&&l.push(cr(d).value)}if(l.length>0)return{"":l.join(" ")}}else{var u=dr(o,r,s);if(u)return u}}},cloneArrayWithLabels:function(e,t){for(var n=[],o=0;o<e.length;o++){var r=e[o],i=cr(r.label),a={value:r.value,label:i.value||r.value||""};!0===r.top&&(a.top=!0),null!=r.children&&(a.children=ar(r.children)),!1===r.selectable?a.selectable=!1:a.selectable=!0,n.push(a)}return!0!==t&&n.sort((function(e,t){return e.label>t.label?1:-1})),n},extractGist:function(e,t){var n=t;if(n){-1===n.indexOf("$1")&&(n+="$1");var o="".concat(n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace("\\$1","(.*)"),r=new RegExp(o).exec(e);if(null!=r)return r[1]}return e},findFirstValue:function(e,t,n,o){var r=e.findFirstValueBinding(e.match(t,n,o),!1);if(r)return r.getChoice?cr(r.getChoice().label).value:r.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 n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}};var fr=function(e,t,n,o){if("URI"===e.getNodetype()||"RESOURCE"===e.getNodetype()){var r=ur.getLocalizedMap(o,t,e.getURIValueLabelProperties());if(!r){var i=t.lastIndexOf("#"),a=t.lastIndexOf("/");r=i>0||a>0?{"":decodeURIComponent(t.substring(1+(i>a?i:a)))}:{"":t}}return{value:t,label:r}}return{value:t,label:t}};const br={hasDnDSupport:function(e){return!1},addDnD:function(e,t,n){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,n,o){return fr(e,t,0,o)},getFallbackChoice:fr,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 n=t.getChildrenRootUri(),o=n.lastIndexOf("#"),r=-1===o?"".concat(n,"#"):n.substring(0,o+1),i=t.getGraph()._graph;;){var a=r+"0000".concat((Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);if(null==i[a])return a}}},pr=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 mr(e){return(mr="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 hr,gr,vr,yr,wr,xr="body",kr=[{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"}}],_r={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 Ke,editorRegistry:new Ke,chooserRegistry:new Ke,renderPresenter:function(e,t,n){var o=_r.presenterRegistry.getComponent(t.getItem());o&&(_r.prePresenterRenderer(e,t,n),o(e,t,n),_r.postPresenterRenderer(e,t,n))},renderEditor:function(e,t,n){var o=_r.editorRegistry.getComponent(t.getItem());o&&(_r.preEditorRenderer(e,t,n),o(e,t,n),_r.postEditorRenderer(e,t,n))},renderValidationMessage:function(e,t,n){},renderSelect:function(){},getChoice:function(e,t){var n=_r.chooserRegistry.getComponent(e);if(null==n)throw new Error("Error, no chooser available to retrieve a choice for item: ".concat(e.getId()));return n.getChoice(e,t)},hasOpenChoiceSelector:function(e){return null!=_r.chooserRegistry.getComponent(e.getItem())},openChoiceSelector:function(e,t,n){var o=_r.chooserRegistry.getComponent(e.getItem());if(null!=o&&o&&o.getChoice)o.show(e,t,n);else{var r=e.getItem();alert("Error, no chooser available to open a choice selector for: ".concat(r))}},getExtLinkClass:function(){return""},setMessages:function(e){hr=e},getMessages:function(){return hr||pr},getLanguageList:function(){return gr||kr},getPrimaryLanguageList:function(){if(!yr){for(var e,t=_r.getLanguageList(),n=vr||[],o=[],r=0;r<t.length;r++){var i=t[r].value,a=n.indexOf(i);""===i&&(e=t[r]),-1!==a&&(o[a]=t[r])}yr=[];for(var s=0;s<o.length;s++)"object"===mr(o[s])&&yr.push(o[s]);yr.length>0&&e&&yr.splice(0,0,e)}return yr},getNonPrimaryLanguageList:function(){if(!wr){var e=_r.getPrimaryLanguageList().length>0,t=_r.getLanguageList(),n=vr||[];wr=[];for(var o=0;o<t.length;o++){var r=t[o].value;-1===n.indexOf(r)&&(e&&""===r||wr.push(t[o]))}}return wr},setPrimaryLanguageCodes:function(e){wr=null,yr=null,vr=e},setLanguageList:function(e){gr=e},filterTranslations:function(e,t,n){for(var o={},r=0;r<e.length;r++){var i=e[r].getLanguage();""===i||null==i?o.noLanguage=!0:i===t?o.best=!0:-1!==i.indexOf(t)||-1!==t.indexOf(i)?o.close=!0:0===i.indexOf(n)&&(o.defaultLanguage=!0)}return o.best?e.filter((function(e){return e.getLanguage()===t})):o.close?e.filter((function(e){var n=e.getLanguage();return n&&(-1!==n.indexOf(t)||-1!==t.indexOf(n))})):o.defaultLanguage?e.filter((function(e){var t=e.getLanguage();return t&&0===t.indexOf(n)})):e},setPopoverContainer:function(e){xr=e},getPopoverContainer:function(){return xr},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(){}};br.getChoice=_r.getChoice;var Sr=function(e,t,n){new(0,n.view.constructor)({parentView:n.view,renderingParams:n.view.renderingParams,messages:n.view.messages,binding:t,topLevel:!1,compact:n.view.compact,showLanguage:n.view.showLanguage,showDescription:n.view.showDescription,defaultLanguage:n.view.defaultLanguage,filterTranslations:n.view.filterTranslations,popupOnLabel:n.view.popupOnLabel,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e)};_r.presenterRegistry.itemtype("group").register(Sr),_r.presenterRegistry.itemtype("propertygroup").register(Sr);var Er=function(e,t,n){var o=new(0,n.view.constructor)({parentView:n.view,renderingParams:n.view.renderingParams,messages:n.view.messages,languages:n.view.languages,binding:t,topLevel:!1,compact:n.view.compact,popupOnLabel:n.view.popupOnLabel,showDescription:n.view.showDescription,truncate:n.view.truncate,truncateLimit:n.view.truncateLimit,includeLevel:n.view.includeLevel},e);n.view._subEditors.push(o)};_r.editorRegistry.itemtype("group").register(Er),_r.editorRegistry.itemtype("propertygroup").register(Er);const Cr=_r;var Tr=n(19755),Or=n.n(Tr);n(34338),n(88052),n(32349),n(81919),n(30050),n(77049),n(34284);function Ar(e){return(Ar="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 Ir(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,jr(o.key),o)}}function jr(e){var t=function(e,t){if("object"!=Ar(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ar(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ar(t)?t:String(t)}var Dr=0,Nr=function(){function e(t){var n=t.item,o=t.statement,r=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=n,this._statement=o,this._graph=r,this._ancestorValid=!0,this._cardinalityTracker=null,this._hash="b_".concat(Dr),this._matchingCode=i||"correct",Dr+=1}var t,n,o;return t=e,(n=[{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 ur.extractGist(this.getValue(),this.getItem().getValueTemplate())}},{key:"setGist",value:function(e,t){var n=e,o=this.getItem().getValueTemplate();o&&n.length>0&&(-1===o.indexOf("$1")&&(o+="$1"),n=o.replace("$1",n)),this.setValue(n,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 n=this._item.getPattern();return n?null!=(t=ur.extractGist(t,this.getItem().getValueTemplate()))&&""!==t&&new RegExp("^".concat(n,"$")).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}}])&&Ir(t.prototype,n),o&&Ir(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();const Mr={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 Lr(e){return(Lr="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 Pr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Rr(o.key),o)}}function Rr(e){var t=function(e,t){if("object"!=Lr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Lr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lr(t)?t:String(t)}var zr=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,n,o;return t=e,(n=[{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=Mr.UNKNOWN,this._depsOk=e,this.cardinalityChanged())}},{key:"increment",value:function(){this._counter+=1,this._code=Mr.UNKNOWN,this._checkCounter()}},{key:"decrement",value:function(){this._counter-=1,this._code=Mr.UNKNOWN,this._checkCounter()}},{key:"getCounter",value:function(){return this._counter}},{key:"checkCardinality",value:function(){this._checkCounter()}},{key:"touch",value:function(){this._code=Mr.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()}}])&&Pr(t.prototype,n),o&&Pr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Fr(e){return(Fr="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 Br(e){return function(e){if(Array.isArray(e))return $r(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 $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $r(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 $r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Vr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ur(o.key),o)}}function Ur(e){var t=function(e,t){if("object"!=Fr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fr(t)?t:String(t)}function Hr(e,t,n){return t=Gr(t),function(e,t){if(t&&("object"===Fr(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,n||[],Gr(e).constructor):t.apply(e,n))}function Yr(){return(Yr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Wr(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Wr(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gr(e)););return e}function Gr(e){return(Gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qr(e,t){return(qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Qr=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=Hr(this,t,[e]);var o=e.constraints,r=void 0===o?[]:o,i=e.childrenRootUri,a=void 0===i?null:i;return n._constraints=r,n._childBindings=n._item.getChildren().map((function(){return[]})),n._rootUri=a,n._validPredicate=!0,n._validObject=!0,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate()),n._validObject=n._isValidObjectValue(n._statement.getValue(),n._statement.getType())),n._cachedChildBindings=null,n}var n,o,r;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&&qr(e,t)}(t,e),n=t,(o=[{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 n=e[0].getItem(),o=this._item.getChildren(),r=function(){if(n===o[i]){var r=t._childBindings[i].length>0?t._childBindings[i][0].getCardinalityTracker():new zr(n);return t._childBindings[i]=t._childBindings[i].concat(e),e.forEach((function(e){e.setParent(t),e.setCardinalityTracker(r),r.increment()}),t),1}},i=o.length;i>=0&&!r();i--);}},{key:"removeChildBinding",value:function(e){this._cachedChildBindings=null;for(var t=this._item.getChildren(),n=t.length;n>=0;n--)if(e.getItem()===t[n]){this._childBindings[n].splice(this._childBindings[n].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(),n=t.length;n>=0;n--)if(e===t[n])return this._childBindings[n]}},{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,Br(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),Yr(Gr(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(n){return n.forEach((function(n){return n.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,n){return("URI"!==this.getItem().getNodetype()||"uri"===n)&&Yr(Gr(t.prototype),"_isValidObjectValue",this).call(this,e)}}])&&Vr(n.prototype,o),r&&Vr(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function Xr(e){return(Xr="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 Zr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Kr(o.key),o)}}function Kr(e){var t=function(e,t){if("object"!=Xr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Xr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xr(t)?t:String(t)}var Jr=0,ei=function(e,t,n){null==n||""===n||Array.isArray(n)&&0===n.length?delete e[t]:e[t]=n},ti=function(){function e(t){var n=t.source,o=void 0===n?{}:n,r=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=o,this._bundle=r,Jr+=1,this._internalId=Jr,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=ur.getLocalizedValue}var t,n,o;return t=e,(n=[{key:"getId",value:function(){var e=this.getSource(!0);return e.id||e["@id"]}},{key:"setId",value:function(e){ei(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){ei(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),n=this._itemStore.getItem(e);this._source=null==n?t:this._itemStore.createExtendedSource(n.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,n){var o=this.getSource(n);return t?ur.getLocalizedValue(o[e]):ur.getLocalizedValue(o[e]).value}},{key:"_setText",value:function(e,t,n){var o=this.getSource(!0);o[e]=this._setLangHash(o[e],t,n),this.refreshExtends()}},{key:"_setTextMap",value:function(e,t){ei(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,n){var o=this.getSource(n).text||{};return t?ur.getLocalizedValue(o[e]):ur.getLocalizedValue(o[e]).value}},{key:"setText",value:function(e,t,n){var o=this.getSource(!0),r=o.text=o.text||{};r[e]=this._setLangHash(r[e],t,n),this.refreshExtends()}},{key:"setTextMap",value:function(e,t){var n=this.getSource(!0),o=n.text=n.text||{};ei(o,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 n=this.getSource(!0);"boolean"==typeof e?!0===e?n.enhanced=!0:delete n.enhanced:(n.enhanced="boolean"==typeof n.enhanced?{}:n.enhanced||{},t?n.enhanced[e]=!0:(delete n.enhanced[e],0===Object.keys(n).length&&delete n.enhanced)),this.setExtends(this.getExtends())}},{key:"getProperty",value:function(e){var t=null,n=this.getSource(e);return n&&null!=(t=n.property)&&""!==t&&(t=M(t)),t}},{key:"setProperty",value:function(e){ei(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 M(e)})):t}},{key:"setURIValueLabelProperties",value:function(e){ei(this.getSource(!0),"uriValueLabelProperties",e),this.refreshExtends()}},{key:"getConstraints",value:function(e){var t=this.getSource(e).constraints;if(null!=t){var n={};return Object.keys(t).forEach((function(e){var o=t[e];Array.isArray(o)?n[M(e)]=o.map((function(e){return M(e)})):n[M(e)]=M(o)})),n}return t}},{key:"setConstraints",value:function(e){ei(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?M(e):e})):t}},{key:"setDeps",value:function(e){ei(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 M(e)})):M(t):t}},{key:"setDatatype",value:function(e){ei(this.getSource(!0),"datatype",e),this.refreshExtends()}},{key:"getPattern",value:function(e){return this.getSource(e).pattern}},{key:"setPattern",value:function(e){ei(this.getSource(!0),"pattern",e),this.refreshExtends()}},{key:"getLanguage",value:function(e){return this.getSource(e).language}},{key:"setLanguage",value:function(e){ei(this.getSource(!0),"language",e),this.refreshExtends()}},{key:"getMember",value:function(e){return this.getSource(e).member}},{key:"setMember",value:function(e){ei(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){ei(this.getSource(!0),"nodetype",e),this.refreshExtends()}},{key:"getValue",value:function(e){return this.getSource(e).value}},{key:"setValue",value:function(e){ei(this.getSource(!0),"value",e),this.refreshExtends()}},{key:"getValueTemplate",value:function(e){return this.getSource(e).valueTemplate}},{key:"setValueTemplate",value:function(e){ei(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){ei(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){ei(this.getSource(!0),"cls",e),this.refreshExtends()}},{key:"hasClass",value:function(e,t){var n=this.getSource(t);return!!this.hasStyle(e,t)||null!=n.cls&&n.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){ei(this.getSource(!0),"styles",e),this.refreshExtends()}},{key:"hasStyle",value:function(e,t){var n=this.getSource(t);return!(!n||!("styles"in n))&&n.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 n=this._itemStore.getItem(this.getExtends());return null==n?this._source:n.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,n){var o=e||{};if("string"==typeof t)"string"==typeof n?o[n]=t:o[""]=t;else if("object"===Xr(t)&&null!==t)return t;return o}}])&&Zr(t.prototype,n),o&&Zr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ni(e){return(ni="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 oi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ri(o.key),o)}}function ri(e){var t=function(e,t){if("object"!=ni(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ni(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ni(t)?t:String(t)}function ii(e,t,n){return t=li(t),function(e,t){if(t&&("object"===ni(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,n||[],li(e).constructor):t.apply(e,n))}function ai(){return(ai="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=si(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function si(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=li(e)););return e}function li(e){return(li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ci(e,t){return(ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var di=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ii(this,t,[e]))._children=e.children,null!=n._source.content&&(n._source.items=n._source.content,delete n._source.content),n._forceChildrenClones=!1,n._parent=null,n}var n,o,r;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&&ci(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){var t,n=e&&this.isExtention(),o=n?this._ochildren:this._children;return null==o&&(o=this._itemStore.getChildren(this,n),!0===this.getSource().automatic&&this._itemStore.automaticSortAllowed&&((t=o).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(n?"o":"","children")]=o),o}},{key:"originalChildrenChanged",value:function(){this.isExtention()&&delete this._children}},{key:"setExtends",value:function(e){ai(li(t.prototype),"setExtends",this).call(this,e),delete this._children,delete this._ochildren}},{key:"getNodetype",value:function(){return ai(li(t.prototype),"getNodetype",this).call(this)||"RESOURCE"}}])&&oi(n.prototype,o),r&&oi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ti);function ui(e){return(ui="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 fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,pi(o.key),o)}}function pi(e){var t=function(e,t){if("object"!=ui(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ui(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ui(t)?t:String(t)}function mi(e,t,n){return t=vi(t),function(e,t){if(t&&("object"===ui(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,n||[],vi(e).constructor):t.apply(e,n))}function hi(){return(hi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=gi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function gi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=vi(e)););return e}function vi(e){return(vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yi(e,t){return(yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wi=function(e){function t(){return fi(this,t),mi(this,t,arguments)}var n,o,r;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&&yi(e,t)}(t,e),n=t,(o=[{key:"getChildren",value:function(e){if(null==this._delegatedChildren){var n=function(){return{min:1,max:1,pref:1}},o=hi(vi(t.prototype),"getChildren",this).call(this,e)||[];this._delegatedChildren=o.map((function(e){var t=Object.create(e);return t.getCardinality=n,t}))}return this._delegatedChildren}},{key:"getPropertyItem",value:function(){return this.getChildren()[0]}},{key:"getObjectItem",value:function(){return this.getChildren()[1]}}])&&bi(n.prototype,o),r&&bi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(di);function xi(e){return(xi="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 ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Si(o.key),o)}}function Si(e){var t=function(e,t){if("object"!=xi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=xi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xi(t)?t:String(t)}function Ei(e,t,n){return t=Ci(t),function(e,t){if(t&&("object"===xi(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,n||[],Ci(e).constructor):t.apply(e,n))}function Ci(e){return(Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ti(e,t){return(Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Oi=function(e){function t(){return ki(this,t),Ei(this,t,arguments)}var n,o,r;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&&Ti(e,t)}(t,e),n=t,(o=[{key:"getLabelProperties",value:function(e){return this.getSource(e).labelProperties}}])&&_i(n.prototype,o),r&&_i(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ti);function Ai(e){return(Ai="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 Ii(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ji(o.key),o)}}function ji(e){var t=function(e,t){if("object"!=Ai(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ai(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ai(t)?t:String(t)}function Di(e,t,n){return t=Li(t),function(e,t){if(t&&("object"===Ai(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,n||[],Li(e).constructor):t.apply(e,n))}function Ni(){return(Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Mi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Mi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Li(e)););return e}function Li(e){return(Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pi(e,t){return(Pi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ri=function(e){null!=e&&e.forEach((function(e){e.value=M(e.value)}))},zi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Di(this,t,[e]))._ontologyStore=e.ontologyStore,n}var n,o,r;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&&Pi(e,t)}(t,e),n=t,(o=[{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 n=-1===this.getNodetype().indexOf("LITERAL");e&&this.isExtention()?this._origStaticIsSorted||(n&&Ri(t.choices),this._origStaticIsSorted=!0):this._staticIsSorted||(n&&Ri(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){Ni(Li(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(n){t._dynamicChoices=n,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?M(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?M(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?M(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()}}])&&Ii(n.prototype,o),r&&Ii(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ti);n(28436);function Fi(e){return(Fi="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 Bi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$i(o.key),o)}}function $i(e){var t=function(e,t){if("object"!=Fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Fi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fi(t)?t:String(t)}function Vi(e,t,n){return t=Yi(t),function(e,t){if(t&&("object"===Fi(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,n||[],Yi(e).constructor):t.apply(e,n))}function Ui(){return(Ui="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Hi(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Hi(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Yi(e)););return e}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wi(e,t){return(Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Gi=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Vi(this,t,[e]))._validObject=!0,n._validPredicate=!0,n._excludeFromTreeValidityCheck=!1,n._statement&&(n._validPredicate=n._isValidPredicateValue(n._statement.getPredicate(),!0),n._validObject=n._isValidObjectValue(n._statement.getValue())),n}var n,o,r;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&&Wi(e,t)}(t,e),n=t,(o=[{key:"getValue",value:function(){return this._statement.getValue()}},{key:"setValue",value:function(e,t){var n="string"==typeof e?e.trim():e,o=this._validObject;this._isValidObjectValue(n)?(this._statement.setValue(n,t),this._validObject=!0,!0===o||!0!==this._validPredicate||this._excludeFromTreeValidityCheck||this._parent.oneChildValidityChanged(!0)):(""!==n&&null!==n||this._statement.setValue("",t),this._validObject=!1,!1!==o&&!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(M(e)),this.updateAssertions()}},{key:"setExcludeFromTreeValidityCheck",value:function(e){this._excludeFromTreeValidityCheck=e}},{key:"remove",value:function(){this.setValue(null),this._parent.removeChildBinding(this),Ui(Yi(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}}])&&Bi(n.prototype,o),r&&Bi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Nr);function qi(e){return(qi="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 Qi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xi(o.key),o)}}function Xi(e){var t=function(e,t){if("object"!=qi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=qi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qi(t)?t:String(t)}function Zi(e,t,n){return t=ea(t),function(e,t){if(t&&("object"===qi(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,n||[],ea(e).constructor):t.apply(e,n))}function Ki(){return(Ki="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ji(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ji(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ea(e)););return e}function ea(e){return(ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ta(e,t){return(ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var na="http://www.w3.org/2000/01/rdf-schema#label",oa="http://www.w3.org/2000/01/rdf-schema#seeAlso",ra=function(e){function t(e){var n,o=e.choice,r=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),(n=Zi(this,t,[{choice:o,item:r,statement:i,matchingCode:a}]))._choice=o,n._validPredicate=null!=r.getProperty(),n}var n,o,r;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&&ta(e,t)}(t,e),n=t,r=[{key:"seeAlso",get:function(){return oa}}],(o=[{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(Mr.WRONG_VALUE):e&&e.mismatch||this.getMatchingCode()!==Mr.WRONG_VALUE||this.setMatchingCode(Mr.OK)}},{key:"getChoice",value:function(){return this._choice}},{key:"setValue",value:function(e,n,o){var r=this.getValue();Ki(ea(t.prototype),"setValue",this).call(this,e,n,o);var i=this._statement.getGraph();if(i.findAndRemove(r,na,void 0,o),i.findAndRemove(r,oa,void 0,o),null!=e&&null!=n&&(n.seeAlso&&n.inlineSeeAlso&&i.create(e,oa,n.seeAlso,!0,o),!0===n.inlineLabel)){var a=n.label||{};Object.keys(a).forEach((function(t){return i.create(e,na,{value:a[t],lang:t,type:"literal"},!0,o)}))}}}])&&Qi(n.prototype,o),r&&Qi(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gi);function ia(e){return(ia="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 aa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,sa(o.key),o)}}function sa(e){var t=function(e,t){if("object"!=ia(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ia(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ia(t)?t:String(t)}function la(e,t,n){return t=ca(t),function(e,t){if(t&&("object"===ia(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,n||[],ca(e).constructor):t.apply(e,n))}function ca(e){return(ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function da(e,t){return(da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ua=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=la(this,t,[e]))._objectBinding=e.objectBinding,n}var n,o,r;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&&da(e,t)}(t,e),n=t,(o=[{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(){}}])&&aa(n.prototype,o),r&&aa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(ra);function fa(e){return(fa="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 ba(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,pa(o.key),o)}}function pa(e){var t=function(e,t){if("object"!=fa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=fa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fa(t)?t:String(t)}function ma(e,t,n){return t=ha(t),function(e,t){if(t&&("object"===fa(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,n||[],ha(e).constructor):t.apply(e,n))}function ha(e){return(ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ga(e,t){return(ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var va=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=ma(this,t,[e]);var o=e.statement,r=e.constraints;n._statement=void 0,n._validPredicate=!0,n._constraints=[];var i,a=n._item.getChildren(),s=a[1];i=s instanceof di?new Qr({item:s,statement:o,constraints:r}):s instanceof zi?new ra({item:s,statement:o}):new Gi({item:s,statement:o});var l=new ua({item:a[0],objectBinding:i});return n.addChildBinding(l),n.addChildBinding(i),n}var n,o,r;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&&ga(e,t)}(t,e),n=t,(o=[{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()}}])&&ba(n.prototype,o),r&&ba(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Qr);function ya(e){return(ya="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 wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ka(o.key),o)}}function ka(e){var t=function(e,t){if("object"!=ya(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ya(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ya(t)?t:String(t)}function _a(e,t,n){return t=Ca(t),function(e,t){if(t&&("object"===ya(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,n||[],Ca(e).constructor):t.apply(e,n))}function Sa(){return(Sa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ea(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Ea(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ca(e)););return e}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ta(e,t){return(Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Oa,Aa,Ia,ja,Da,Na=function(e){function t(){return wa(this,t),_a(this,t,arguments)}var n,o,r;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&&Ta(e,t)}(t,e),n=t,(o=[{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),Sa(Ca(t.prototype),"remove",this).call(this,arguments)}},{key:"updateAssertions",value:function(){}},{key:"isValid",value:function(){return!0}}])&&xa(n.prototype,o),r&&xa(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Gi);function Ma(e){return(Ma="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 La,Pa,Ra,za,Fa,Ba,$a=!1,Va=function(e,t,n){var o=new Qr({item:n,childrenRootUri:t,graph:e});return Oa(o),Aa(o),o},Ua=function(e,t,n){var o=new Qr({item:n,childrenRootUri:t,graph:e});return Oa(o),$a=!0,Oa(o),$a=!1,Aa(o),o},Ha=function(e,t,n,o){var r=e.findProperties(t),i=[],a={};if(null!=o){var s=function(e){null!=e&&(!function e(t){null!=t.getProperty()?a[t.getProperty()]=!0:t instanceof di&&t.getChildren().forEach(e)}(e),i.push(e))};o.forEach((function(e){var t=n.getItem(e);null!=t?t instanceof di&&null==t.getProperty()?t.getChildren().forEach(s):s(t):(t=n.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 r.forEach((function(e){if(!a[e]){var t=n.getItemByProperty(e);null!=t&&i.push(t)}}),void 0),n.createTemplateFromChildren(i)},Ya=function(e){return Array.isArray(e.getDatatype())?e.getDatatype()[0]:e.getDatatype()},Wa=function(e,t){var n,o,r=t.getChildren()[1],i=e.getGraph();r instanceof di?(n=i.create(e.getChildrenRootUri(),"",null,!1),o=Da(i,n.getSubject(),r)):n=r instanceof zi?i.create(e.getChildrenRootUri(),"",{type:"uri",value:""},!1):i.create(e.getChildrenRootUri(),"",{type:"literal",value:""},!1);var a=new va({item:t,statement:n,constraints:o});return e.addChildBinding(a),r instanceof di&&r.getChildren().forEach((function(e){Ga(a.getObjectBinding(),e)})),a},Ga=function(e,t,n){return t instanceof Oi?function(e,t){if(!t.getProperty()){var n=new Na({item:t,statement:null,matchingCode:Mr.OK});return e.addChildBinding(n),n}var o=e.getGraph(),r=t.getNodetype(),i={value:"",type:"literal"};"URI"===r?i.type="uri":"DATATYPE_LITERAL"===r&&(i.datatype=Ya(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=o.create(e.getChildrenRootUri(),t.getProperty(),i,!1),c=new Gi({item:t,statement:l});return e.addChildBinding(c),c}(e,t):t instanceof wi?Wa(e,t):t instanceof di?function(e,t,n){var o,r;if(void 0!==t.getProperty()){var i=e.getGraph();o=(t.getNodetype(),i.create(e.getChildrenRootUri(),t.getProperty(),null,!1)),r=Da(i,o.getValue(),t)}var a=new Qr({item:t,statement:o,constraints:r});e.addChildBinding(a);var s=t._source["@id"];if(s){if(n[s])return a;n[s]=!0}return a}(e,t,n||{}):t instanceof zi?function(e,t){var n=e.getGraph(),o=t.getNodetype(),r={type:"literal",value:""};"DATATYPE_LITERAL"===o?r.datatype=Ya(t):"RESOURCE"!==o&&"URI"!==o||(r.type="uri");var i=n.create(e.getChildrenRootUri(),t.getProperty(),r,!1),a=new ra({item:t,statement:i});e.addChildBinding(a);var s=t.getValue(),l=a.getCardinalityTracker();return null!=s&&1===l.getCounter()&&a.setChoice(Fa(t,s,n),!0),a}(e,t):void 0};Oa=function(e){$a&&e.getChildBindings().forEach((function(e){"group"===e.getItem().getType()&&Oa(e)})),e.getItem().getChildren().forEach((function(t){$a?void 0!==t.getProperty()&&La(e,t):La(e,t)}))};La=function(e,t){t instanceof zi?function(e,t){if(null!=t.getProperty()){var n=[];e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Ia(e)){var o=Pa(t,e),r=Ra(t,e),i=za(t,e);if(o&&r&&i||$a){var a=Fa(t,e.getValue(),e.getGraph());if(void 0!==a){ja(e);var s=o?Mr.OK:Mr.WRONG_NODETYPE;r?i?a.mismatch&&(s=Mr.WRONG_VALUE):s=Mr.WRONG_PATTERN:s=Mr.WRONG_DATATYPE,n.push(new ra({item:t,statement:e,choice:a,matchingCode:s}))}}}})),n.length>0&&e.addChildBindings(n)}}(e,t):t instanceof wi?function(e,t){var n,o,r,i,a=t.getPropertyItem(),s=t.getObjectItem(),l=e.getGraph(),c=[];l.find(e.getChildrenRootUri()).forEach((function(e){Ia(e)&&Pa(s,e)&&za(s,e)&&void 0!==(r=Fa(a,e.getPredicate(),e.getGraph()))&&(o=null,s instanceof di?void 0!==(n=Ba(l,e.getValue(),s))&&(ja(e),o=new va({item:t,statement:e,constraints:n}),Oa(o.getObjectBinding())):s instanceof zi?void 0!==(i=Fa(s,e.getValue(),e.getGraph()))&&(ja(e),(o=new va({item:t,statement:e})).getObjectBinding().setChoice(i)):(ja(e),o=new va({item:t,statement:e})),null!==o&&(o.getPredicateBinding().setChoice(r),c.push(o)))})),c.length>0&&e.addChildBindings(c)}(e,t):t instanceof di?function(e,t){var n,o,r,i,a=e.getGraph();void 0!==t.getProperty()?(n=a.find(e.getChildrenRootUri(),t.getProperty())).length>0&&(o=[],n.forEach((function(e){if(Ia(e)){var n=za(t,e),s=Pa(t,e);if((n&&s||$a)&&(void 0!==(r=Ba(a,e.getValue(),t))||$a)){var l=s?Mr.OK:Mr.WRONG_NODETYPE;n?void 0===r&&(l=Mr.MISSING_CONSTRAINTS):l=Mr.WRONG_PATTERN,ja(e),i=new Qr({item:t,statement:e,constraints:r,matchingCode:l}),o.push(i),l===Mr.OK&&Oa(i)}}})),e.addChildBindings(o)):(i=new Qr({item:t}),e.addChildBindings([i]),Oa(i))}(e,t):t instanceof Oi&&function(e,t){var n=[];null==t.getProperty()?n.push(new Na({item:t,statement:null,matchingCode:Mr.OK})):e.getGraph().find(e.getChildrenRootUri(),t.getProperty()).forEach((function(e){if(Ia(e)&&za(t,e)){var o=Pa(t,e),r=Ra(t,e);if(o&&(r||t.hasStyle("relaxedDatatypeMatch"))||$a){ja(e);var i=o?Mr.OK:Mr.WRONG_NODETYPE;r||(i=Mr.WRONG_DATATYPE),n.push(new Gi({item:t,statement:e,matchingCode:i}))}}})),n.length>0&&e.addChildBindings(n)}(e,t)},Pa=function(e,t){var n=t.getType();switch(e.getNodetype()){case"LITERAL":case"ONLY_LITERAL":case"PLAIN_LITERAL":case"LANGUAGE_LITERAL":case"DATATYPE_LITERAL":return"literal"===n;case"RESOURCE":return"uri"===n||"bnode"===n;case"URI":return"uri"===n;case"BLANK":return"bnode"===n}return!1},Ra=function(e,t){var n="DATATYPE_LITERAL"===e.getNodetype()&&e.getDatatype()||null;return null==n||(Array.isArray(n)?-1!==n.indexOf(t.getDatatype()):t.getDatatype()===n)},za=function(e,t){var n=e.getPattern(),o=ur.extractGist(t.getValue(),e.getValueTemplate());if(void 0!==n)try{return new RegExp("^".concat(n,"$")).test(o)}catch(e){return!0}return!0},Ba=function(e,t,n){var o,r=n.getConstraints(),i=[],a=function(n,r){if(1!==(o=e.find(t,n,{type:"uri",value:r})).length)return!1;i.push(o[0])};if("object"===Ma(r)&&null!==r){for(var s,l=Object.keys(r),c=function(){var e=l[d],t=r[e];if(t instanceof Array){var n=!0;if(t.forEach((function(t){!1!==a(e,t)&&(n=!1)})),n)return{v:void 0}}else if(!1===a(e,t))return{v:void 0}},d=0;d<l.length;d++)if(s=c())return s.v;return i}return[]},Da=function(e,t,n){var o=[],r=n.getConstraints();return"object"===Ma(r)&&null!==r&&Object.keys(r).forEach((function(n){var i=r[n];Array.isArray(i)?o.push(e.create(t,n,{type:"uri",value:i[0]},!1)):o.push(e.create(t,n,{type:"uri",value:i},!1))})),o},Fa=function(e,t,n){var o,r;if(e.hasChoices()){for(r=e.getChoices(),o=0;o<r.length;o++)if(r[o].value===t)return r[o];if(!e.hasStyle("strictmatch")||$a)return{value:t,label:{"":t},mismatch:!0}}else{var i=ur.getLocalizedMap(n,t,e.getLabelProperties());null==i&&$a&&(i={"":t,mismatch:!0});var a=n.findFirstValue(t,ra.seeAlso);if(null!=i){var s={label:i,value:t};return a&&(s.seeAlso=a),s}if(null!=br.getChoice)return br.getChoice(e,t,a,n)}},ja=function(e){e._dibbs=!0},Ia=function(e){return!0!==e._dibbs},Aa=function(e){var t,n,o,r=e.getItemGroupedChildBindings()||[];for(t=0;t<r.length;t++)for(o=r[t],n=0;n<o.length;n++){var i=o[n];i._statement&&delete i._statement._dibbs,(i instanceof Qr||i instanceof va)&&Aa(i)}};var qa=function e(t,n){for(var o="/"===n[0]?n.slice(1):n,r=t.getItemGroupedChildBindings(),i=o[0],a=0;a<r.length;a++)for(var s=r[a],l=void 0,c=0;c<s.length;c++){var d=s[c],u=d.getItem();if(u instanceof zi&&void 0===u.getProperty()&&i===u.getId()&&2===o.length&&o[1]===d.getValue())return d;if(d.isValid()){if("propertygroup"===u.getType())u=(d=d.getObjectBinding()).getItem();else if(void 0===u.getProperty()&&(l=e(d,o)))return l;if("*"===i||i===d.getPredicate()||i===u.getId())if("group"===u.getType()){if(l=e(d,o.slice(1)))return l}else if(1===o.length||"*"===o[1]||o[1]===d.getValue())return d}}},Qa=function(e,t){var n=t[0],o=e;if("/"===n){for(;o.getParent();)o=o.getParent();return o}if(".."===n){for(var r=0;r<t.length;r++){if(".."!==t[r]||!o.getParent())return o;o=o.getParent()}return o}return e},Xa=function(e,t){var n=e.getId(),o={},r={};e.getChoices().forEach((function(e){o[e.value]=0,r[e.value]=e}));t.getChildBindings().forEach((function(e){var t=e.getItem().getDeps();if(t&&(t[0]===n||"/"===t[0]&&t[1]===n)){var r="/"===t[0]?t[2]:t[1],i=o[r];void 0!==i&&(o[r]=i+1)}}));var i,a=0;return Object.keys(o).forEach((function(e){(!i||o[e]>a)&&(i=e,a=o[e])})),r[i]};const Za={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,n,o){var r=n.getCardinality();return o&&"group"===n.getType()||(null!=r?r.min>0?t.mandatory+=1:r.pref>0?t.recommended+=1:t.optional+=1:t.optional+=1),"group"===n.getType()&&n.getChildren().forEach((function(n){return e(t,n)})),t}({mandatory:0,recommended:0,optional:0},e,!0);return t.itemCount=t.mandatory+t.recommended+t.optional,t},findFirstValueBinding:function e(t,n){if(t instanceof Gi)return t;for(var o=t.getItemGroupedChildBindings(),r=lr().locale(),i=0;i<o.length;i++){var a=o[i],s=t.getItem().getChildren()[i];if(0!==a.length){if(!(s instanceof Oi))return e(a[0]);if("LANGUAGE_LITERAL"===s.getNodetype()){for(var l={firstValue:a[0]},c=0;c<a.length;c++){var d=a[c].getLanguage();null==d?l.emptyLanguageValue=a[c]:d===r?l.perfectLocaleLanguageValue=a[c]:d.substring(0,1)===r.substring(0,1)?l.localeLanguageValue=a[c]:-1!==d.indexOf("en")?l.defaultLanguageValue=a[c]:l.anyLanguageValue=a[c]}return l.perfectLocaleLanguageValue||l.localeLanguageValue||l.defaultLanguageValue||l.anyLanguageValue||l.firstValue}return a[0]}if(n){var u=Ga(t,s,{});return u instanceof Gi?(u.setLanguage(r),u):e(u,!0)}}},create:Ga,constructTemplate:Ha,findPopularChoice:Xa,match:Va,fuzzyMatch:Ua,matchPathBelowBinding:qa,findBindingRelativeToParentBinding:Qa,CODES:Mr};var Ka=function(e,t){var n=t;return null==n?n={errors:[],warnings:[],deprecated:[]}:(n.errors=n.errors||[],n.warnings=n.warnings||[],n.deprecated=n.deprecated||[]),ns(e,n,!0)},Ja=function(e){for(var t=0,n=0;n<e.length;n++)e[n].isValid()&&(t+=1);return t},es=function(e,t){e.length>0&&e[0].getCardinalityTracker().setCode(t)},ts=function(e,t){if(t.hasStyle("deprecated"))return!0;var n=t.getDeps();if(n){var o=Qa(e,n);if(!qa(o,n))return!0}return!1},ns=function e(t,n,o){if(t.getMatchingCode()===Mr.OK){var r=t.getItem();if(!0===o||t.isValid()||null==r.getProperty()||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var i=r.getChildren();if(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild")||r.hasStyle("atLeastOneChild")||r.hasStyle("exactlyOneChild")){var a,s=t.getChildBindings(),l=Ja(s);l>1&&(r.hasStyle("disjoint")||r.hasStyle("atMostOneChild"))?a=Mr.AT_MOST_ONE_CHILD:1!==l&&r.hasStyle("exactlyOneChild")?a=Mr.EXACTLY_ONE_CHILD:0===l&&r.hasStyle("atLeastOneChild")&&(a=Mr.AT_LEAST_ONE_CHILD),a&&(es([t],a),i.length>0&&n.errors.push({parentBinding:t,item:i[0],code:a}))}else t.getItemGroupedChildBindings().forEach((function(e,o){var r=i[o];if(!ts(t,r)&&null!=r.getProperty()){var a=Ja(e),s=r.getCardinality();null!=s.min&&s.min>a?(n.errors.push({parentBinding:t,item:r,code:Mr.TOO_FEW_VALUES_MIN}),es(e,Mr.TOO_FEW_VALUES_MIN)):null!=s.pref&&s.pref>a&&n.warnings.push({parentBinding:t,item:r,code:Mr.TOO_FEW_VALUES_PREF}),null!=s.max&&s.max<a&&(n.errors.push({parentBinding:t,item:r,code:Mr.TOO_MANY_VALUES}),es(e,Mr.TOO_MANY_VALUES))}}),void 0);t.getChildBindings().forEach((function(o){var r=o.getItem();o.getMatchingCode()!==Mr.OK&&n.errors.push({parentBinding:o,item:r,code:o.getMatchingCode()}),r.hasStyle("deprecated")&&n.deprecated.push(o),ts(t,r)||"group"===r.getType()&&e(o,n)}))}return n}},os=function(e,t){return e.find(null,"rdf:type",t).map((function(e){return e.getSubject()}))},rs=function(e,t,n){for(var o=e;;){var r=o.getChildrenRootUri?o.getChildrenRootUri():o.getParent().getChildrenRootUri();if(r===t)return!0;if(n[r])return!1;o=o.getParent()}},is=function(e,t){var n=e,o=[];for(null!=t.getProperty()&&n.getItem()!==t&&o.push(N(t.getProperty()));null!=n.getItem().getProperty()&&o.push(N(n.getItem().getProperty())),null!=n.getParent();)n=n.getParent();return o.reverse(),o.join(" > ")},as=function(e){var t=e.errors,n=e.warnings,o=e.deprecated;e.errors=t.map((function(e){return{path:is(e.parentBinding,e.item),code:e.code}})),e.warnings=n.map((function(e){return{path:is(e.parentBinding,e.item),code:e.code}})),e.deprecated=o.map((function(e){return function(e){return"".concat(is(e.getParent(),e.getItem())," > ").concat(e.getValue())}(e)}))},ss=function(e,t,n,o){var r=Ua(t,e,n),i=Ka(r);return function(e,t,n){var o=e.errors,r=e.warnings,i=e.deprecated;e.errors=o.filter((function(e){return rs(e.parentBinding,t,n)})),e.warnings=r.filter((function(e){return rs(e.parentBinding,t,n)})),e.deprecated=i.filter((function(e){return rs(e,t,n)}))}(i,e,o||{}),as(i),i};const ls={graphReport:function(e,t){var n,o,r=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 n=os(e,t);i[t]=n,n.forEach((function(e){a[e]=!0}))})),Object.keys(i).forEach((function(r){n=t[r],i[r].forEach((function(t){(o=ss(t,e,n,a)).uri=t,o.type=r,o.template=n.getId(),s.resources.push(o),s.errors+=o.errors.length,s.warnings+=o.warnings.length,s.deprecated+=o.deprecated.length}))}));var l=[];return r.forEach((function(e){0===i[e].length&&l.push(e)})),l.length>0&&(s.mandatoryError=l,s.errors+=l.length),s},bindingReport:Ka};function cs(e){return(cs="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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,us(o.key),o)}}function us(e){var t=function(e,t){if("object"!=cs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=cs(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cs(t)?t:String(t)}var fs=0;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 ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ms(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,hs(o.key),o)}}function hs(e){var t=function(e,t){if("object"!=bs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=bs(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bs(t)?t:String(t)}function gs(e,t,n){return t=ws(t),function(e,t){if(t&&("object"===bs(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,n||[],ws(e).constructor):t.apply(e,n))}function vs(){return(vs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ys(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function ys(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 xs(e,t){return(xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ks=function(e,t,n){if(0===n.length||t.hasStyle("invisible"))return!1;if(t.getProperty())return!e.filterItem(t);if("group"===t.getType()){var o=t.getChildren();return 0===o.length||!!n[0].getItemGroupedChildBindings().find((function(t,n){return ks(e,o[n],t)}))}return!0},_s=function(e){function t(){return ps(this,t),gs(this,t,arguments)}var n,o,r;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&&xs(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){this.showLanguage=!1!==e.showLanguage,this.filterTranslations=!1!==e.filterTranslations,this.defaultLanguage=e.defaultLanguage,this.styleCls=e.styleCls||"rdformsPresenter",vs(ws(t.prototype),"_handleParams",this).call(this,e)}},{key:"showNow",value:function(e,t){return ks(this,e,t)}},{key:"skipBinding",value:function(e){var t=e.getItem(),n="group"===t.getType();return!(!t.getProperty()&&n&&0===t.getChildren().length)&&n&&0===e.getChildBindings().length}},{key:"prepareBindings",value:function(e,t){return e.hasStyle("filterTranslations")||this.filterTranslations&&"LANGUAGE_LITERAL"===e.getNodetype()&&!e.hasStyle("viewAllTranslations")?Cr.filterTranslations(t,this.getLocale(),this.defaultLanguage):t}},{key:"addLabel",value:function(e,t,n){n.hasStyle("noLabelInPresent")?Cr.domClassToggle(e,"rdformsInvisibleGroup",!0):Cr.renderPresenterLabel(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return Cr.addPresenterTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){return Cr.fillPresenterTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.prePresenterViewRenderer(this.domNode,this.binding,{view:this,topLevel:this.topLevel})}},{key:"addComponent",value:function(e,t){Cr.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}}])&&ms(n.prototype,o),r&&ms(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewId=fs,fs+=1,this.renderingParams=t.renderingParams||{},this.locale=t.locale,this.defaultTextLanguage=t.defaultTextLanguage,this.messages=t.messages,this.parentView=t.parentView,this.srcNodeRef=n,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.popupOnLabel=!1!==t.popupOnLabel,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"===cs(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=Cr.createDomNode(n,this),Cr.domClassToggle(this.domNode,"rdforms",!0),Cr.domClassToggle(this.domNode,this.styleCls,!0),this.render()}var t,n,o;return t=e,(n=[{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(n){return t.namedGraphs[n]===e})):void 0}},{key:"destroy",value:function(){Cr.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=Ua(this.graph,this.resource,this.template),Ka(this.binding)):this.binding=Va(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(Cr.domText(this.domNode,""),null!=this.binding&&(this.messages||(this.messages=Cr.getMessages()),null!=this.binding)){var e,t,n,o,r,i=this.binding.getItem().getChildren(),a=this.binding.getItemGroupedChildBindings();for(this._binding2node={},!this.compact&&!this.binding.getItem().hasStyle("compact")||this.binding.getItem().hasStyle("nonCompact")?Cr.domClassToggle(this.domNode,"compact",!1):Cr.domClassToggle(this.domNode,"compact",!0),this.preRenderView(),e=0;e<a.length;e++)if(o=a[e],r=i[e],(!this.restrictToItem||this.restrictToItem===r)&&this.showNow(r,o)){if(o=this.prepareBindings(r,o),this.showAsTable(r))this.context={view:this},n=this.createRowNode(n,o[0],r),o.length>0&&(t=this.addTable(n,o[0],r),this.fillTable(t,o));else if(o.length>0)if(this.isMultiValued(r))this.context={view:this},n=this.addRow(n,o[0],!0);else{for(var s=this.truncateAt(r,o),l=0;l<o.length;l++)this.context={view:this},n=this.addRow(n,o[l],0===l||o[l]instanceof Qr,l,s);if(-1!==s){var c=Cr.domQuery(".rdformsFields",n);c&&Cr.addTruncateControl(c,this.context)}}else this.context={view:this},n=this.createRowNode(n,null,r);o.length>0&&o[0].getCardinalityTracker().checkCardinality()}}}},{key:"addRow",value:function(e,t,n,o,r){var i,a,s=n,l=t.getItem();if(!this.skipBinding(t)){if(null==s&&(s=t instanceof Qr),!0===s){a=this.createRowNode(e,t,l);var c=Cr.domCreate("div",a);Cr.domClassToggle(c,"rdformsFields",!0),-1!==r&&Cr.domClassToggle(c,"rdformsTruncated",!0),l.hasStyle("inline")&&Cr.domClassToggle(c,"rdformsInline",!0),i=Cr.domCreate("div",c),this.createEndOfRowNode(a,t,l)}else{var d=Cr.domQuery(".rdformsFields",e);if(null!=d)i=Cr.domCreate("div",d),Cr.domClassToggle(i,"rdformsRepeatedValue",!0),-1!==r&&o>=r&&Cr.domClassToggle(i,"rdformsMaybeTruncated",!0);else{var u=Cr.domCreate("div",e);Cr.domClassToggle(u,"rdformsFields",!0),l.hasStyle("inline")&&Cr.domClassToggle(u,"rdformsInline",!0),i=Cr.domCreate("div",u),this.createEndOfRowNode(a,t,l)}}if(this.markOrigin){var f=this.getNamedGraphId(t);f?(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_".concat(f),!0)):(Cr.domClassToggle(i,"rdformsOrigin",!0),Cr.domClassToggle(i,"rdformsOrigin_default",!0))}return"group"===l.getType()?Cr.domClassToggle(i,"rdformsGroup",!0):Cr.domClassToggle(i,"rdformsField",!0),this._binding2node[t.getHash()]=i,this.addComponent(i,t),l.hasStyle("invisible")&&Cr.domClassToggle(a||e,"rdformsInvisible",!0),a||e}}},{key:"createRowNode",value:function(e,t,n){var o;o=null==e?Cr.domCreate("div",this.domNode,t?this.getRowIndex(t):void 0):Cr.domCreateAfter("div",e,t?this.getRowIndex(t):void 0),n.getClasses().forEach((function(e){Cr.domClassToggle(o,e,!0)})),Cr.domClassToggle(o,"rdformsRow",!0),Cr.domClassToggle(o,"rdformsTopLevel",this.topLevel),Cr.domClassToggle(o,"rdformsInvisibleGroup",n.hasStyle("invisibleGroup")),Cr.domClassToggle(o,"rdformsHeading",n.hasStyle("heading")),Cr.domClassToggle(o,"notCompact","group"===n.getType()||n.hasStyle("nonCompact")),Cr.domClassToggle(o,"rdformsCompactItem",n.hasStyle("compact")),this.addLabel(o,t,n),t&&this.filterBinding(t)&&Cr.domClassToggle(o,"hiddenProperty",!0);var r=void 0!==this._subEditors;return(n.hasStyle("card")||n.hasStyle("cardInEdit")&&r||n.hasStyle("cardInPresent")&&!r)&&Cr.domClassToggle(o,"rdformsCard",!0),o}},{key:"createEndOfRowNode",value:function(e,t,n){}},{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,n=this._getFilterPredicates();return!!n&&function e(n,o){var r=n.getId();if(r&&Object.keys(o).includes(r))return!0;var i=n.getProperty();if(i){for(var a=!0,s=t;s.parentView;)s.getBinding().getItem().getProperty()&&(a=!1),s=s.parentView;var l=D(i);return a?!0===o[i]||!0===o[l]||!0===o["*".concat(i)]||!0===o["".concat(l)]:!0===o["*".concat(i)]||!0===o["*".concat(l)]}if("group"===n.getType()){var c=n.getChildren()||[],d=!1;return c.forEach((function(t){e(t,o)||(d=!0)})),!d}return!1}(e,n)}},{key:"filterProperty",value:function(e){return!0===(this._getFilterPredicates()||{})[e]}},{key:"getLabelIndex",value:function(e){var t,n=this;return e.getParent().getChildBindingsFor(e.getItem()).reverse().find((function(e){return void 0!==(t=n._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():lr().locale())}},{key:"getDefaultTextLanguage",value:function(){return this.defaultTextLanguage||(this.parentView?this.parentView.getDefaultTextLanguage():this.getLocale())}}])&&ds(t.prototype,n),o&&ds(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}());function Ss(e){return(Ss="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cs(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ts(o.key),o)}}function Ts(e){var t=function(e,t){if("object"!=Ss(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ss(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ss(t)?t:String(t)}function Os(e,t,n){return t=js(t),function(e,t){if(t&&("object"===Ss(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,n||[],js(e).constructor):t.apply(e,n))}function As(){return(As="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Is(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Is(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=js(e)););return e}function js(e){return(js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ds(e,t){return(Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ns=function(e,t,n,o){if(t.hasStyle("presenterOnly"))return!1;if(t.hasStyle("deprecated")&&0===n.length)return!1;var r=t.getProperty();if(n.length>0){if(r)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(n[0].getItemGroupedChildBindings().find((function(t,n){return Ns(e,i[n],t,o)})))return!0;if(!r)return!1}var a=t.getCardinality();switch(o){case"mandatory":return a&&a.min>=1;case"recommended":return a&&(a.min>=1||a.pref>=1);default:return!0}},Ms=function(e){function t(){return Es(this,t),Os(this,t,arguments)}var n,o,r;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&&Ds(e,t)}(t,e),n=t,(o=[{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,As(js(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,n=e||Ka(this.binding);Object.keys(this._binding2node).forEach((function(e){Cr.domClassToggle(t._binding2node[e],"errorReport",!1)}));for(var o=function(){var e=n.errors[r];if(e.parentBinding===t.binding)if(e.code===Mr.TOO_FEW_VALUES_MIN){var o=e.item,i=o.getCardinality().min;t.binding.getChildBindingsFor(o).find((function(e){return i-=1,e.isValid()||Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0),0===i}))}else e.code===Mr.AT_MOST_ONE_CHILD&&t.binding.getChildBindings().forEach((function(e){e.getMatchingCode()!==Mr.OK&&Cr.domClassToggle(t._binding2node[e.getHash()],"errorReport",!0)}))},r=0;r<n.errors.length;r++)o();for(var i=0;i<this._subEditors.length;i++)this._subEditors[i].report(n)}},{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=Va(this.graph,this.resource,this.template),this._subEditors=[],this.render()))}},{key:"show",value:function(e){this._subEditors=[],As(js(t.prototype),"show",this).call(this,e)}},{key:"showNow",value:function(e,t){return Ns(this,e,t,this.includeLevel)}},{key:"skipBinding",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality();if(n=r.pref>0?r.pref:r.min>0?r.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 o;if(n>o.length)for(o=o.concat([]);n>o.length;)o.push(Ga(this.binding,e));return o}},{key:"addLabel",value:function(e,t,n){Cr.renderEditorLabel(e,t,n,this.context)}},{key:"createEndOfRowNode",value:function(e,t,n){Cr.renderEditorLabelScopeEnd(e,t,n,this.context)}},{key:"addTable",value:function(e,t){return t.getItem().hasStyle("nonEditable")?this.addComponent(e,t):Cr.addEditorTable(e,t,{view:this})}},{key:"fillTable",value:function(e,t){Cr.fillEditorTable(e,t,{view:this})}},{key:"preRenderView",value:function(){Cr.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")?Cr.renderPresenter(e,t,this.context):Cr.renderEditor(e,t,this.context)}},{key:"createRowNode",value:function(e,n,o){if(null!=n||!o.hasStyle("nonEditable")){var r=As(js(t.prototype),"createRowNode",this).call(this,e,n,o);if("choice"===o.getType()&&void 0===o.getProperty()){var i=Xa(o,n.getParent());i&&n.setChoice(i)}var a=o.getDeps();if(a){var s=function(e){e?(Cr.domClassToggle(r,"missingDepsWithValue",!1),Cr.domClassToggle(r,"missingDeps",!1)):n.isValid()?Cr.domClassToggle(r,"missingDepsWithValue",!0):Cr.domClassToggle(r,"missingDeps",!0),n.getCardinalityTracker().setDepsOk(e)},l=Qa(n.getParent(),a);qa(l,a)||s(!1),l.addListener((function e(){n.getParent()?s(qa(l,a)):l.removeListener(e)}))}return this.filterBinding(n)&&Cr.domClassToggle(r,"hiddenProperty",!0),o.hasStyle("deprecated")&&Cr.domClassToggle(r,"rdformsDeprecated",!0),r}}},{key:"isMultiValued",value:function(e){return Cr.multiValueSupport&&(e.hasStyle("horizontalCheckBoxes")||e.hasStyle("verticalCheckBoxes"))}},{key:"truncateAt",value:function(e,t){return-1}}])&&Cs(n.prototype,o),r&&Cs(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(_s);Cr.renderPresenterLabel=function(e,t,n,o,r){var i=o.view instanceof Ms&&n.getEditLabelMap()||n.getLabelMap(),a=ur.getLocalizedValue(i,o.view.getLocale()).value;a=null!=a&&""!==a?a.charAt(0).toUpperCase()+a.slice(1):"";var s=n.hasStyle("heading")?Or()('<h2 class="rdformsLabel" tabindex="0">').text(a).appendTo(e):Or()('<div class="rdformsLabel" tabindex="0">').text(a).appendTo(e);t&&s.attr("id",o.view.createLabelIndex(t)),r&&s.addClass("rdformsLabelRow"),o&&(o.labelNode=s[0]);var l=o.view;if(n.hasStyle("showDescriptionInPresent")||l.showDescription){var c=n.hasStyle("compact")||l.compact&&!n.hasStyle("nonCompact")&&(l.topLevel&&"group"!==n.getType()||l.parentView&&l.parentView.topLevel&&l.binding.getItem().hasStyle("heading")),d=ur.getLocalizedValue(n.getDescriptionMap(),o.view.getLocale()).value;!c&&d&&Or()('<div class="rdformsDescription">').text(d).appendTo(e)}Cr.attachItemInfo(n,s[0],o)},Cr.attachItemInfo=function(e,t,n){if(null!=e&&null!=e.getDescriptionMap()){var o=ur.getLocalizedValue(e.getDescriptionMap(),n.view.getLocale()).value;t.setAttribute("title",o)}};const Ls=function(e){return function(t){return null==e?void 0:e[t]}}({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});const Ps=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};const Rs=function(e){return"symbol"==typeof e||wn(e)&&"[object Symbol]"==Et(e)};var zs=ht?ht.prototype:void 0,Fs=zs?zs.toString:void 0;const Bs=function e(t){if("string"==typeof t)return t;if(Cn(t))return Ps(t,e)+"";if(Rs(t))return Fs?Fs.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const $s=function(e){return null==e?"":Bs(e)};var Vs=/[&<>"']/g,Us=RegExp(Vs.source);const Hs=function(e){return(e=$s(e))&&Us.test(e)?e.replace(Vs,Ls):e};var Ys=function(e){var t,n=function(e){return e&&e.length>1?parseInt(e[0],10):0},o=n(e.match(/([0-9])*Y/)),r=n(e.match(/([0-9])*D/)),i=n(e.match(/([0-9])*H/)),a=0;if(-1===e.indexOf("T"))t=n(e.match(/([0-9])*M/));else{var s=e.split("T");t=n(s[0].match(/([0-9])*M/)),a=n(s[1].match(/([0-9])*M/))}return{years:o,months:t,days:r,hours:i,minutes:a}},Ws=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}},Gs=function(e,t){var n=e.getValue();if(null!=n&&""!==n){var o=e.getItem(),r=function(e){try{if(e.includes(":")&&!e.includes("T")){var t=(new Date).toISOString().substr(0,11),n=new Date("".concat(t).concat(e));return n.setMinutes(n.getMinutes()+n.getTimezoneOffset()),n}return new Date(e)}catch(e){return null}}(n);if(r){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"}(n),a=Ws(e.getDatatype()),s=function(e){var t=e.getDatatype();return Array.isArray(t)?Ws(t[0]):Ws(t)}(o),l=function(e){var t={},n=e.getDatatype();return(Array.isArray(n)?n:[n]).forEach((function(e){var n=Ws(e);n&&(t[n]=!0)})),t}(o);return function(e,t,n){switch(e){case"DateTime":return lr()(t).locale(n).format("lll");case"Date":return lr()(t).locale(n).format("LL");case"Time":return lr()(t).locale(n).format("LT");case"Year":return lr()(t).locale(n).format("YYYY");case"YearMonth":return lr()(t).locale(n).format("MMMM YYYY");case"MonthDay":return lr()(t).locale(n).format("D MMMM");default:return""}}(l[a]?a:l[i]?i:s,r,t)}}},qs=function(e,t){var n,o=null===(n=e.getStatement()||e.getParent().getStatement())||void 0===n?void 0:n.getNamedGraph();if(o){for(var r=t.view;r.getParentView();)r=r.getParentView();return r.getNamedGraphId(o)}},Qs=n(19755),Xs=Cr.presenterRegistry;Xs.itemtype("text").nodetype("URI").register((function(e,t){var n=ur.getLocalizedMap(t),o=Qs('<a class="rdformsUrl">').attr("title",t.getValue()).attr("href",t.getValue()).appendTo(e);t.getItem().hasStyle("showValue")?o.text(t.getValue()):n?o.text(ur.getLocalizedValue(n).value):o.text(t.getGist()),t.getItem().hasStyle("externalLink")?br.attachExternalLinkBehaviour(o[0],t):br.attachLinkBehaviour(o[0],t)})),Xs.itemtype("group").nodetype("URI").style("linkWithLabel").register((function(e,t,n){var o,r=t.getValue(),i=t.getItem().getChildren().find((function(e){return e.hasStyle("label")})),a=i?Cr.filterTranslations(t.getChildBindingsFor(i),n.view.getLocale(),n.view.defaultLanguage):[],s=t.getItem().getChildren().find((function(e){return e.hasStyle("tooltip")})),l=s?Cr.filterTranslations(t.getChildBindingsFor(s),n.view.getLocale(),n.view.defaultLanguage):[],c=l.length>0?l[0].getValue():r,d=Qs('<a class="rdformsUrl">').attr("title",c).attr("href",r).appendTo(e);if(a.length>0)o=a[0].getValue();else{var u=ur.getLocalizedMap(t);o=t.getItem().hasStyle("showValue")?r:u?ur.getLocalizedValue(u).value||r:t.getGist()}d.text(o),t.getItem().hasStyle("externalLink")?br.attachExternalLinkBehaviour(d[0],t):br.attachLinkBehaviour(d[0],t)})),Xs.itemtype("text").nodetype("URI").style("image").register((function(e,t){Qs('<img class="rdformsImage">').attr("src",t.getGist()).appendTo(e)})),Xs.itemtype("text").register((function(e,t,n){var o=t.getLanguage();n.view.showLanguage&&o&&Qs('<div class="rdformsLanguage">').text(o).appendTo(e);var r=Hs(t.getItem().hasStyle("showValue")?t.getValue():t.getGist()).replace(/(\r\n|\r|\n)/g,"\n"),i=t.getParent();if(t.getItem().hasStyle("label")&&!0!==n.view.topLevel&&null!=i&&i.getItem().getChildren()[0]===t.getItem()&&null!=i.getStatement()&&"uri"===i.getStatement().getType()){var a=Qs('<a class="rdformsUrl">').attr("href",i.getStatement().getValue()).html(r).appendTo(e);o&&a.attr("lang",o),br.attachLinkBehaviour(a[0],i)}else{var s=Qs("<div>").html(r).appendTo(e);o&&s.attr("lang",o)}t.getItem().hasStyle("multiline")?Qs(e).toggleClass("rdformsMultiline",!0):Qs(e).toggleClass("rdformsSingleline",!0)})),Xs.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=Ys(t.getValue()),r=n.view.messages,i=Qs("<div>").appendTo(e)[0];["years","months","days","hours","minutes"].forEach((function(e){o.hasOwnProperty(e)&&0!==o[e]&&Qs('<span class="durationLabel">'.concat(r["duration_".concat(e)],':</span><span class="durationValue">').concat(o[e],"</span>")).appendTo(i)}))}));var Zs=function(e,t,n){try{var o=Gs(t,n.view.getLocale());Qs("<div>").html(o).appendTo(e)}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(t.getValue(),"' instead."))}};Xs.itemtype("text").datatype("xsd:dateTime").register(Zs),Xs.itemtype("text").datatype("xsd:date").register(Zs),Xs.itemtype("text").datatype("xsd:time").register(Zs),Xs.itemtype("text").datatype("xsd:gYear").register(Zs),Xs.itemtype("text").datatype("xsd:gYearMonth").register(Zs),Xs.itemtype("text").datatype("xsd:gMonthDay").register(Zs),Xs.itemtype("text").datatype("dcterms:W3CDTF").register(Zs);var Ks=n(19755),Js=Cr.presenterRegistry,el=function(e){return function(t,n,o){var r,i=n.getChoice();i&&(i.description&&(r=ur.getLocalizedValue(i.description,o.view.getLocale()).value),e(t,n,i,r,o.view.getLocale()))}};Js.itemtype("choice").style("image").register(el((function(e,t,n,o){Ks('<img class="rdformsImage">').attr("src",n.value).attr("title",o||n.value).appendTo(e)}))),Js.itemtype("choice").style("stars").register(el((function(e,t,n){isNaN(parseInt(n.value,10))||Ks('<span class="rdformsStar">').appendTo(e)}))),Js.itemtype("choice").register(el((function(e,t,n,o,r){var i,a=t.getItem(),s=ur.getLocalizedValue(n.label,r);a.hasStaticChoices()&&!a.hasStyle("externalLink")||a.hasStyle("noLink")?i=Ks("<div>").attr("title",o||n.seeAlso||n.value).text(ur.getLocalizedValue(n.label,r).value).appendTo(e):(i=Ks('<a class="rdformsUrl">').attr("href",n.seeAlso||n.value).attr("title",o||n.seeAlso||n.value).text(s.value).appendTo(e),a.hasStyle("externalLink")?br.attachExternalLinkBehaviour(i[0],t):br.attachLinkBehaviour(i[0],t)),null!=n.load&&n.load((function(){var e=ur.getLocalizedValue(n.label,r);i.text(e.value),e.lang?i.attr("lang",e.lang):i.attr("lang",void 0)})),s.lang&&i.attr("lang",s.lang)}))),Cr.addPresenterTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Or()("<table>").addClass("rdformsGroup").appendTo(e);Or()("<thead>").appendTo(i);for(var a=Or()("<tr>").appendTo(i),s=0;s<r.length;s++){var l=Or()("<th>").appendTo(a),c=ur.getLocalizedValue(r[s].getLabel(),n.view.getLocale()).value;Cr.attachItemInfo(o,Or()("<span>").text(c).appendTo(l),n)}return i[0]},Cr.fillPresenterTable=function(e,t,n){if(0!==t.length){var o,r,i,a,s=n.view.topLevel;for(n.view.topLevel=!1,o=0;o<t.length;o++)for(i=t[o].getItemGroupedChildBindings(),a=Or()("<tr>").appendTo(e),r=0;r<i.length;r++)i[r].length>0?Cr.renderPresenter(Or()("<td>").appendTo(a),i[r][0],{view:n.view,noCardinalityButtons:!0}):Or()("<td>").appendTo(a);n.view.topLevel=s}};var tl=function(e,t){var n=document.createElement(e);return t&&(n.id=t),n};Cr.domQuery=function(e,t){return t.querySelector(e)},Cr.domCreate=function(e,t,n){return t.appendChild(tl(e,n))},Cr.domCreateAfter=function(e,t,n){return t.parentNode.insertBefore(tl(e,n),t.nextSibling)},Cr.domSetAttr=function(e,t,n){""===n||null===n?e.removeAttribute(t):e.setAttribute(t,n)},Cr.domText=function(e,t){e.innerText=t},Cr.domClassToggle=function(e,t,n){t.split(" ").forEach((function(t){n?e.classList.add(t):e.classList.remove(t)}))},Cr.prePresenterViewRenderer=Cr.preEditorViewRenderer,Cr.addTruncateControl=function(e,t){var n=t.view.messages,o=Cr.domCreate("button",e);Cr.domClassToggle(o,"rdformsShowMore",!0),o.innerText=n.showMore,o.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!1)};var r=Cr.domCreate("button",e);Cr.domClassToggle(r,"rdformsShowLess",!0),r.innerText=n.showLess,r.onclick=function(){Cr.domClassToggle(e,"rdformsTruncated",!0)}};var nl=Cr.presenterRegistry,ol=Cr.editorRegistry,rl=function(e){return function t(n,o,r){var i=o.getValue();r.inEditor&&(null!=i&&""!==i||o.setGist(ur.generateUUID(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}};nl.itemtype("text").style("autoUUID").register(rl(nl)),ol.itemtype("text").style("autoUUID").register(rl(ol));var il=function(e){return function t(n,o,r){var i=o.getValue(),a=o.getItem();r.inEditor&&(null==i||""===i?(a.hasStyle("autoInitDate")||a.hasStyle("autoUpdateDate"))&&o.setValue((new Date).toISOString(),!0):a.hasStyle("autoUpdateDate")&&o.setValue((new Date).toISOString(),!0)),e.getComponentBefore(o.getItem(),t)(n,o,r)}},al=il(nl);nl.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("xsd:date").style("autoInitDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(al),nl.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(al);var sl=il(ol);ol.itemtype("text").datatype("xsd:date").style("autoUpdateDate").register(sl),ol.itemtype("text").datatype("xsd:date").style("autoInitDate").register(sl),ol.itemtype("text").datatype("dcterms:W3CDTF").style("autoUpdateDate").register(sl),ol.itemtype("text").datatype("dcterms:W3CDTF").style("autoInitDate").register(sl);var ll=function(e){return function t(n,o,r){if(r.inEditor){var i=o.getValue(),a=o.getItem().getDeps();if((null==i||""===i)&&a){var s=Za.findBindingRelativeToParentBinding(o.getParent(),a),l=function(e){var t=Za.matchPathBelowBinding(s,a),n=o.getGist(),r=t?t.getValue():"";n!=r&&o.setGist(r,e)};l(!0),s.addListener((function(e){e!=o&&l()}))}}e.getComponentBefore(o.getItem(),t)(n,o,r)}};nl.itemtype("text").style("autoValue").register(ll(nl)),ol.itemtype("text").style("autoValue").register(ll(ol)),Cr.renderEditorLabel=function(e,t,n,o){if(n.hasStyle("nonEditable")||n.hasStyle("heading"))return Cr.renderPresenterLabel(e,t,n,o,!0);var r=n.getEditLabelMap()||n.getLabelMap(),i=ur.getLocalizedValue(r,o.view.getLocale()).value;i=null!=i&&""!==i?i.charAt(0).toUpperCase()+i.slice(1):"";var a=Or()('<div class="rdformsLabelRow">').appendTo(e);t&&a.attr("id",o.view.createLabelIndex(t)),o.labelNode=a[0];var s=Or()('<span class="rdformsLabel" tabindex="0">').text(i).appendTo(a),l=n.getCardinality(),c=o.view.messages;n.getProperty()&&(l.min>0?Or()('<span class="rdformsMark rdformsMandatoryMark">').text(c.mandatoryMark).appendTo(a):l.pref>0?Or()('<span class="rdformsMark rdformsRecommendedMark">').text(c.recommendedMark).appendTo(a):Or()('<span class="rdformsMark rdformsOptionalMark">').text(c.optionalMark).appendTo(a)),null==t?Cr.addExpandButton(e,a[0],n,o):o.view.showAsTable(n)||null!==l.max&&l.max===l.min||("group"===n.getType()?n.getProperty()&&Cr.addGroupButtons(e,a[0],t,o):Cr.addCreateChildButton(e,a[0],t,o));var d=o.view;if(n.hasStyle("showDescriptionInEdit")||d.showDescription){var u=n.hasStyle("compact")||d.compact&&!n.hasStyle("nonCompact")&&(d.topLevel&&"group"!==n.getType()||d.parentView&&d.parentView.topLevel&&d.binding.getItem().hasStyle("heading")),f=o.view instanceof Ms&&n.getEditDescriptionMap()||n.getDescriptionMap(),b=ur.getLocalizedValue(f,o.view.getLocale()).value;!u&&b&&Or()('<div class="rdformsDescription">').text(b).appendTo(e)}Cr.attachItemInfo(n,s[0],o)},Cr.attachItemInfo=function(e,t,n){if(!1!==n.view.popupOnLabel)if(Cr.domSetAttr(t,"role","button"),null==e||null==e.getProperty()&&null==e.getDescriptionMap()&&null==e.getEditDescriptionMap())Or()(t).addClass("noPointer");else{var o=n.view instanceof Ms&&e.getEditDescriptionMap()||e.getDescriptionMap()||{},r=ur.getLocalizedValue(o,n.view.getLocale()).value||"",i="";e.getProperty()&&(i='<div class="property"><a target="_blank" href="'.concat(e.getProperty(),'">').concat(e.getProperty(),"</a></div>"));var a=n.view instanceof Ms&&e.getEditLabelMap()||e.getLabelMap(),s=ur.getLocalizedValue(a,n.view.getLocale()).value,l={html:!0,container:t,placement:"auto",trigger:"focus",title:s=null!=s&&""!==s?s.charAt(0).toUpperCase()+s.slice(1):"",content:'<div class="description">'.concat(r.replace(/(\r\n|\r|\n)/g,"<br/>"),"</div>").concat(i)};Or()(t).popover(l).attr("data-toggle","popover")}else Cr.domClassToggle(t,"rdformsNoPopup",!0)};n(21552);var cl=n(19755),dl=0;var ul=n(19755),fl=Cr.editorRegistry;fl.itemtype("text").datatype("xsd:duration").register((function(e,t,n){var o=n.view.messages,r=Ys(t.getValue()),i=cl("<div>").addClass("rdformsDuration rdformsFieldInput").appendTo(e),a=qs(t,n)?"disabled":"",s=function(){i.empty(),["years","months","days","hours","minutes"].forEach((function(e){var n=cl("<div>").appendTo(i),s=cl("<div>").addClass("input-group").appendTo(n),l="duration_".concat(dl);dl+=1,cl("<span>").addClass("input-group-addon").attr("id",l).text(o["duration_".concat(e)]).appendTo(s);var c=cl("<input ".concat(a,">")).addClass("form-control").attr("type","number").attr("aria-describedby",l).appendTo(s);r[e]&&c.val(r[e]),c.change((function(){r[e]=cl(this).val(),t.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}(r))}))}))};s(),n.clear=function(){r={},s()}}));var bl=function(e,t,n,o,r){var i=null,a=function(){i=null;var a=e.val().trim(),s=!0;""===a||!n||n.test(a)?(t.setGist(a),o&&a&&(o.prop("href",t.getValue()),s=!1),r&&r.toggleClass("rdformsHelpActive",!1)):r&&r.toggleClass("rdformsHelpActive",!0),o&&o.toggleClass("rdformsExtLinkDisabled",s),e.toggleClass("rdformsEmpty",""===a)};e.on("keyup paste",(function(){null!=i&&clearTimeout(i),i=setTimeout(a,200)}))},pl=function(e,t){var n=new RegExp(e);fl.itemtype("text").datatype(t).register((function(t,o,r){var i=ul('<input type="text" class="form-control rdformsFieldInput"\n placeholder="'.concat(o.getItem().getPlaceholder()||"",'">'));i.val(o.getGist()).attr("pattern",e).appendTo(t);var a,s=o.getItem().getHelp();if(s&&(a=ul('<span class="rdformsHelp">'.concat(s,"</span>"))).appendTo(t),o.getItem().hasStyle("externalLink")){var l=ul('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));l.appendTo(r.controlDiv),ul(t).addClass("rdformsExtLinkControl"),bl(i,o,n,l,a),i.keyup()}else bl(i,o,n,void 0,a);o.getItem().isEnabled()||i.prop("disabled",!0)}))};pl("^-?\\d+$","xsd:integer"),pl("^(\\d+(\\.\\d+)?)$","xsd:decimal"),fl.itemtype("text").register((function(e,t,n){var o,r=t.getItem(),i=qs(t,n)?"disabled":"";if(r.hasStyle("multiline")){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:70,n=e.split("\n").length;return n+=Number.parseInt(e.length/t,10)}(t.getGist());(o=ul("<textarea ".concat(i,' class="form-control rdformsFieldInput autoExpand" placeholder="').concat(r.getPlaceholder()||"",'" rows="').concat(a,'">'))).on("input focus",(function(){if(void 0===this.baseScrollHeight){var e=o.height();this.baseScrollHeight=o.innerHeight()-e,this.baseLineHeight=e/a}this.rows=1;var t=1+Math.ceil((this.scrollHeight-this.baseScrollHeight)/this.baseLineHeight);this.rows=t}))}else o=r.hasStyle("email")?ul("<input ".concat(i,' type="email" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">')):ul("<input ".concat(i,' type="text" class="form-control rdformsFieldInput" placeholder="').concat(r.getPlaceholder()||"",'">'));o.val(t.getGist()).appendTo(e);var s,l=r.getHelp();l&&(s=ul('<span class="rdformsHelp">'.concat(l,"</span>"))).appendTo(e);var c=r.getPattern(),d=null;if(null!=c&&(o.attr("pattern",c),d=new RegExp(c)),r.hasStyle("externalLink")){var u=ul('<a class="fas fa-external-link-alt rdformsExtLink '.concat(Cr.getExtLinkClass(),'" target="_blank">'));u.appendTo(n.controlDiv),ul(e).addClass("rdformsExtLinkControl"),bl(o,t,d,u,s),o.keyup()}else bl(o,t,d,void 0,s);var f=r.getNodetype();if("LANGUAGE_LITERAL"===f||"PLAIN_LITERAL"===f){ul(e).addClass("rdformsLangcontrolledfield"),ul(n.controlDiv).addClass("rdformsLangFieldControl");var b=ul("<select ".concat(i,' class="form-control rdformsLanguage">')).appendTo(n.controlDiv),p=Cr.getPrimaryLanguageList(),m=Cr.getNonPrimaryLanguageList();if(m=ur.cloneArrayWithLabels(m),0===p.length||((p=ur.cloneArrayWithLabels(p,!0)).forEach((function(e){ul("<option>").html(e.label).val(e.value).appendTo(b)})),ul("<option>").html("─────").attr("disabled","disabled").appendTo(b)),m.forEach((function(e){ul("<option>").html(e.label).val(e.value).appendTo(b)})),t.isValid())b.val(t.getLanguage());else{var h=n.view.getDefaultTextLanguage();"string"==typeof h&&""!==h&&(b.val(h),t.setLanguage(h))}b.val(t.getLanguage()).change((function(){t.setLanguage(b.val())})),n.clear=function(){b.val(""),o.val("")}}else n.clear=function(){o.val("")}}));var ml=n(19755);function hl(e){return(hl="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 gl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,vl(o.key),o)}}function vl(e){var t=function(e,t){if("object"!=hl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=hl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hl(t)?t:String(t)}var yl=0,wl=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.item=this.binding.getItem(),this.choices=this.item.getChoices().map((function(e){return{label:e.editlabel||e.label,description:e.editDescription||e.description,value:e.value,text:o.item._getLocalizedValue(e.editlabel||e.label,t.context.view.getLocale()).value,choice:e}})),this.item.hasStyle("preserveOrderOfChoices")||this.choices.sort((function(e,t){return e.text<t.text?-1:1})),this.choice=this.binding.getChoice(),this.context=t.context,this.context.clear=this.clear.bind(this),this.domNode=n,this.buildRendering()}var t,n,o;return t=e,(n=[{key:"clear",value:function(){ml(this.domNode).find("input").prop("checked",!1)}},{key:"buildRendering",value:function(){var e=this;null!=this.choice&&this.choice.mismatch&&this.choices.push(this.choice);for(var t=this.binding.getValue(),n=function(){var n,r=e.choices[o],i=ml('<div class="radio form-check">').appendTo(e.domNode);n=e.item.hasStyle("verticalRadioButtons")?ml("<label>").appendTo(i):ml('<label class="form-check-label">').appendTo(i),(r.description||r.editdescription)&&n.attr("title",e.item._getLocalizedValue(r.editdescription||r.description,e.context.view.getLocale()).value||r.seeAlso||r.value);var a=qs(e.binding,e.context)?"disabled":"",s=ml("<input ".concat(a,' type="radio">')).val(r.value).attr("checked",r.value===t).attr("name","rdformsRadio_".concat(yl)).appendTo(n);n.append(e.item._getLocalizedValue(r.editlabel||r.label,e.context.view.getLocale()).value),r.mismatch?(n.addClass("mismatch disabled"),s.attr("disabled",!0)):n.click((function(){e.binding.setValue(s.val())}))},o=0;o<this.choices.length;o++)n();yl+=1}}])&&gl(t.prototype,n),o&&gl(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),xl=n(19755),kl=Cr.editorRegistry;kl.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(e,t,n){new wl({binding:t,context:n},e)})),kl.itemtype("choice").choices().register((function(e,t,n){var o=t.getItem(),r=o.getChoices().map((function(e){return{id:e.value,text:o._getLocalizedValue(e.editlabel||e.label,n.view.getLocale()).value,choice:e}}));o.hasStyle("preserveOrderOfChoices")||r.sort((function(e,t){return e.text<t.text?-1:1})),n.choices=r,Cr.renderSelect(e,t,n);var i=n.setValue,a=t.getChoice();a&&(null!=a.load?a.load((function(){i(a)})):i(a))})),kl.itemtype("choice").choices("none").register((function(e,t,n){n.chooser=Cr.chooserRegistry.getComponent(t.getItem()),n.choices=void 0;var o=qs(t,n)?"disabled":"",r=function(){Cr.renderSelect(e,t,n);var r=n.setValue,i=xl("<button ".concat(o,' class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm browseChoices" type="button">')).attr("title",n.view.messages.edit_browse).appendTo(e);if(n.chooser&&n.chooser.supportsInlineCreate&&n.chooser.supportsInlineCreate(t)){var a=xl('<span class="fa-stack">').appendTo(i);xl('<span class="fas fa-search fa-stack-1x" aria-hidden="true">').appendTo(a),xl('<span class="fas fa-plus fa-stack-1x" aria-hidden="true">').appendTo(a)}else xl('<span class="fas fa-search" aria-hidden="true">').appendTo(i);var s=function(e){e?(t.setChoice(e),null!=e.load?e.load((function(){r(e)})):r(e)):t.setChoice(null)};n.chooser&&"function"==typeof n.chooser.show?i.click((function(){Cr.openChoiceSelector(t,s)})):i.addClass("disabled"),br.hasDnDSupport(t)&&br.addDnD(t,cNode,s)},i=t.getChoice();if(i)if(null!=i.load){var a=xl('<div class="form-group rdforms-upgrade">').appendTo(e);xl('<input type="text" disabled class="form-control rdformsFieldInput">').val(i.value).appendTo(a),i.load((function(){if(i.upgrade){var e=xl("<button ".concat(o,' class="btn btn-default bmd-btn-fab bmd-btn-fab-sm')+' browseChoices" type="button">').attr("title",n.view.messages.edit_upgrade).click((function(){i.upgrade(t,(function(o){a.remove(),e.remove(),r(),n.setValue(o),t.setChoice(o)}))})).insertAfter(a);xl('<span class="fas fa-magic" aria-hidden="true">').appendTo(e)}else a.remove(),r(),n.setValue(i)}))}else r(),n.setValue(i);else r()}));var _l=n(19755);Cr.addRemoveButton=function(e,t,n){var o=qs(t,n)?"disabled":"",r=_l("<button ".concat(o,' class="fas fa-times action rdformsActionButton">')).attr("title",n.view.messages.edit_remove).appendTo(n.controlDiv),i=t.getCardinalityTracker(),a=i.addListener((function(){}));r.click((function(){if(!i.isMin()||!i.isDepsOk()||1===i.getCardinality())if(1===i.getCardinality()){"choice"===t.getItem().getType()?t.setChoice(null):t.setValue("");var o=t.getItem().getNodetype();"LANGUAGE_LITERAL"!==o&&"PLAIN_LITERAL"!==o||t.setLanguage(""),n.clear?n.clear():_l(e).find("input").val("")}else i.removeListener(a),r.unbind("click"),t.remove(),_l(e).remove()}))},Cr.addExpandButton=function(e,t,n,o){var r=_l('<button class="fas fa-plus action rdformsActionButton">').attr("title",o.view.messages.edit_expand).appendTo(t).click((function(){var i=Ga(o.view.binding,n);if(o.view.showAsTable(n)){var a=o.view.addTable(e,i,n);o.view.fillTable(a,[i])}else o.view.addRow(e,i,!1),Cr.addGroupButtons(e,t,i,o);r.unbind("click").remove()}))},Cr.addGroupButtons=function(e,t,n,o){var r,i=n.getParent(),a=n.getItem(),s=n.getCardinalityTracker(),l=a.getCardinality();1!==l.max&&(r=_l('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t)).click((function(){if(!s.isMax()){var t=Ga(i,a);o.view.addRow(e,t)}}));var c=qs(n,o)?"disabled":"",d=_l("<button ".concat(c,' class="action fas fa-times rdformsActionButton">')).attr("title",o.view.messages.edit_remove).appendTo(t);1===l.max&&d.addClass("indentRemove");var u=s.addListener((function(){r&&r.toggleClass("disabled",s.isMax()),d.toggleClass("disabled",s.isMin()&&s.isDepsOk())}));d.click((function(){if(!s.isMin()||!s.isDepsOk())if(o.clear&&o.clear(),1===s.getCardinality()){if(s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),o.view.showNow(a,[])){var t=o.view.prepareBindings(a,[]);t.length>0&&o.view.addRow(e,t[0])}_l(e).remove()}else s.removeListener(u),r&&r.unbind("click"),d.unbind("click"),n.remove(),_l(e).remove()}))},Cr.addCreateChildButton=function(e,t,n,o){var r=n.getParent(),i=n.getItem(),a=n.getCardinalityTracker(),s=_l('<button class="action fas fa-plus rdformsActionButton">').attr("title",o.view.messages.edit_add).appendTo(t).click((function(){if(!a.isMax()){var t=Ga(r,i);o.view.addRow(e,t)}}));a.addListener((function(){s.toggleClass("disabled",a.isMax())}))};var Sl=function e(t,n,o){var r=n.getItem().getChildren(),i=n.getItemGroupedChildBindings(),a=Or()("<tr>").appendTo(t);if(i.forEach((function(e,t){0!==e.length||r[t].hasStyle("nonEditable")||Ga(n,r[t])})),i.forEach((function(e){e.length>0&&Cr.renderEditor(Or()("<td>").appendTo(a)[0],e[0],{view:o.view,noCardinalityButtons:!0})})),!n.getItem().hasStyle("firstcolumnfixedtable")){var s=Or()("<td>").addClass("rdformsTableControl").appendTo(a),l=Or()("<span>").addClass("action editDelete").attr("title",o.view.messages.edit_remove).appendTo(s),c=n.getCardinalityTracker(),d=c.addListener((function(){l.toggleClass("disabled",c.isMin())}));l.click((function(){if(!c.isMin()){if(1===c.getCardinality()){var r=n.getParent(),i=n.getItem(),s=Ga(r,i);e(t,s,o)}c.removeListener(d),removeConnect.remove(),n.remove(),a.remove()}}))}};Cr.addEditorTable=function(e,t,n){var o=t.getItem(),r=o.getChildren(),i=Or()("<table>").appendTo(e);Or()(i).addClass("rdformsGroup");for(var a=Or()("<thead>").appendTo(i),s=Or()("<tbody>").appendTo(i),l=Or()("<tr>").appendTo(a),c=0;c<r.length;c++){var d=Or()("<th>").appendTo(l);Or()(d).addClass("rdformsColumnHeader".concat(c));var u=r[c],f=n.view instanceof Ms&&u.getEditLabelMap()||u.getLabelMap(),b=ur.getLocalizedValue(f,n.view.getLocale()).value;Cr.attachItemInfo(o,Or()("<span>").text(b).appendTo(d)[0],n)}if(!t.getItem().hasStyle("firstcolumnfixedtable")){var p=Or()("<th>").addClass("rdformsTableControl").appendTo(l),m=t.getParent(),h=t.getCardinalityTracker(),g=Or()("<span>").addClass("action editAdd").attr("title",n.view.messages.edit_add).appendTo(p).click((function(){if(!h.isMax()){var e=Ga(m,o);Sl(s[0],e,n)}}));h.addListener((function(){g.toggleClass("disabled",h.isMax())}))}return s},Cr.fillEditorTable=function(e,t,n){var o=t;if(0!==o.length){var r=o[0].getItem();if(r.hasStyle("nonEditable"))return Cr.renderEditor(e,o,n);r.hasStyle("firstcolumnfixedtable")&&(o=function(e){var t=[],n=e[0].getItem(),o=n.getChildren()[0],r=o.getChoices();(r=ur.cloneArrayWithLabels(r)).sort((function(e,t){return e.label>t.label?1:e.label<t.label?-1:0}));var i={};(e||[]).forEach((function(e){var t=e.getItemGroupedChildBindings();if(t.length>0&&t[0].length>0){var n=t[0][0];i[n.getValue()]=e}}));var a=e[0].getParent();return(r||[]).forEach((function(e){if(null!=i[e.value])t.push(i[e.value]);else{var r=Ga(a,n),s=Ga(r,o);s.setExcludeFromTreeValidityCheck(!0),s.setAncestorValid(!1),s.setChoice(e),t.push(r)}})),t}(o)),o.forEach((function(t){Sl(e,t,n)}))}},Cr.preEditorRenderer=function(e,t,n){n.$controlDiv=Or()('<div class="rdformsFieldControl">'),n.controlDiv=n.$controlDiv[0],"group"!==t.getItem().getType()&&!0!==n.noCardinalityButtons&&Cr.addRemoveButton(e,t,n)},Cr.preEditorViewRenderer=function(e,t,n){var o,r=t.getItem();if(!n.hideAddress&&(r.hasStyle("showURI")?o=Or()('<div class="rdformsField rdformsGroupURI">').text(t.getValue()):r.hasStyle("showLink")&&(o=Or()('<a class="rdformsField rdformsGroupURI rdformsUrl">').text(t.getValue()).attr("href",t.getValue()),br.attachExternalLinkBehaviour(o[0],t)),o)){var i=Or()('<div class="rdformsRow">').appendTo(e);n.topLevel&&i.addClass("rdformsTopLevel"),Or()('<div class="rdformsLabel">').text(n.view.messages.address_label).appendTo(i),o.appendTo(Or()('<div class="rdformsFields">').appendTo(i))}},Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e)};var El={error:"exclamation-triangle",warning:"exclamation-circle",deprecated:"question-circle"};Cr.renderValidationMessage=function(e,t,n){var o=El[t],r=Cr.domCreate("div",e);Cr.domClassToggle(r,"rdformsValidationMessageWrapper",!0);var i=Cr.domCreate("i",r);Cr.domClassToggle(i,"fas fa-".concat(o),!0);var a=Cr.domCreate("span",r);Cr.domClassToggle(a,"rdformsValidationMessage",!0),Cr.domText(a,n)};n(95640),n(47070),n(45700);var Cl=n(19755);function Tl(e){return(Tl="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 Ol(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Al(o.key),o)}}function Al(e){var t=function(e,t){if("object"!=Tl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Tl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tl(t)?t:String(t)}var Il=function(){function e(t,n){var o,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.binding=t.binding,this.context=t.context,this.item=this.binding.getItem(),this.allowedOptions=(o=this.item,r={},i=o.getDatatype(),(Array.isArray(i)?i:[i]).forEach((function(e){var t=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";default:return}}(e);t&&(r[t]=!0)})),r),this._date=null,this._valid=!1,this._excludeTime=!0,this.domNode=n,this.buildUI(),this.initDatePicker(),this.initialize()}var t,n,o;return t=e,(n=[{key:"includeDateOption",value:function(){return this.allowedOptions.Date}},{key:"includeDateTimeOption",value:function(){return this.allowedOptions.Datetime}},{key:"includeYearOption",value:function(){return this.allowedOptions.Year}},{key:"buildUI",value:function(){}},{key:"initDatePicker",value:function(){}},{key:"initialize",value:function(){var e=this;this.$timeInput=Cl(this.timeInput).attr("pattern","^([0-1][0-9]|2[0-3]):[0-5][0-9]$").change((function(){var t=e.$timeInput.val();if("function"==typeof e.$timeInput[0].checkValidity){if(!e.$timeInput[0].checkValidity())return}else if(new RegExp("^([0-1][0-9]|2[0-3]):[0-5][0-9]$").test(t))return;e._date.setHours(parseInt(t.substr(0,2),10),parseInt(t.substr(3,2),10)),e.binding.setValue(e._date.toISOString())})),this.$yearInput=Cl(this.yearInput).attr("pattern","^-?[0-9][0-9][0-9][0-9]$").change((function(){var t=e.$yearInput.val();e._date.setYear(parseInt(t,10)),e.binding.setValue(t)})),this.$dateControl=Cl(this.dateControl).change((function(){var t=e.$dateControl.val();e["_show".concat(t)]()})),this._binding2Gui()}},{key:"setDateInPicker",value:function(){}},{key:"setDateInBinding",value:function(e){this._valid=!0,this._date.setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var t=lr()(e).toISOString();this._excludeTime?this.binding.setValue(t.substring(0,t.indexOf("T"))):(this.binding.setValue(t),this.$timeInput.prop("disabled",!1))}},{key:"clear",value:function(){this._valid=!1,Cl(this.domNode).find("input").val("")}},{key:"_binding2Gui",value:function(){this._firstTime=!0;var e=this.binding.getValue();this._valid=null!=e&&""!==e,this._valid&&(this._date=new Date(e),this._valid=null!=this._date),this._date=this._date||new Date("2000"),this._valid?/^\d{4}$/.test(e)?(this.$dateControl.val("Year"),this._showYear()):/T/.test(e)&&-1===e.indexOf("T00:00:00")?(this.$dateControl.val("DateTime"),this._showDateTime()):(this.$dateControl.val("Date"),this._showDate()):this._showDate(),this._firstTime=!1}},{key:"_showDate",value:function(){if(this._excludeTime=!0,this.$yearInput.parent().hide(),this.$timeInput.parent().hide(),this.$datepicker.parent().show(),this._valid){this.setDateInPicker(this._date);var e=this._date.toISOString();this._firstTime||(this.binding.setValue(e.substring(0,e.indexOf("T"))),this.binding.setDatatype("xsd:date"))}else this.setDateInPicker(null)}},{key:"_showDateTime",value:function(){if(this._excludeTime=!1,this.$yearInput.parent().hide(),this.$timeInput.parent().show(),this.$datepicker.parent().show(),this._valid){if(0!==this._date.getHours()||0!==this._date.getMinutes()){var e=this._date.getHours();e=e<=9?"0".concat(e):e;var t=this._date.getMinutes();t=t<=9?"0".concat(t):t,this.$timeInput.val("".concat(e,":").concat(t))}else this.$timeInput.val("");this.setDateInPicker(this._date),this._firstTime||(this.binding.setValue(this._date.toISOString()),this.binding.setDatatype("xsd:dateTime"))}else this.setDateInPicker(null),this.$timeInput.val("")}},{key:"_showYear",value:function(){this.$yearInput.parent().show(),this.$timeInput.parent().hide(),this.$datepicker.parent().hide(),this._valid?(this.$yearInput.val(this._date.getFullYear()),this._firstTime||(this.binding.setValue("".concat(this._date.getFullYear())),this.binding.setDatatype("xsd:gYear"))):this.$yearInput.val("")}},{key:"_setValueAttr",value:function(e){this.binding.setValue(e)}}])&&Ol(t.prototype,n),o&&Ol(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function jl(e){return(jl="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ml(o.key),o)}}function Ml(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=jl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jl(t)?t:String(t)}function Ll(e,t,n){return t=Pl(t),function(e,t){if(t&&("object"===jl(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,n||[],Pl(e).constructor):t.apply(e,n))}function Pl(e){return(Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rl(e,t){return(Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Il.register=function(e){var t=function(t,n,o){var r=new e({messages:o.view.messages,binding:n,context:o},Cl("<div>").appendTo(t)[0]);o.clear=function(){r.clear()}},n=Cr.editorRegistry;n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#date").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#dateTime").register(t),n.itemtype("text").datatype("http://www.w3.org/2001/XMLSchema#gYear").register(t),n.itemtype("text").datatype("http://purl.org/dc/terms/W3CDTF").register(t)};var zl=function(e){function t(){return Dl(this,t),Ll(this,t,arguments)}var n,o,r;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&&Rl(e,t)}(t,e),n=t,(o=[{key:"buildUI",value:function(){var e=qs(this.binding,this.context)?"disabled":"";this.tpdate=null,this.dpdate=null;var t=this.context.view.messages,n=this.includeYearOption()?'<option value="Year">'.concat(t.date_year,"</option>"):"",o=this.includeDateOption()?'<option value="Date" selected="true">'.concat(t.date_date,"</option>"):"",r=this.includeDateTimeOption()?'<option value="DateTime">'.concat(t.date_date_and_time,"</option>"):"";this.domNode.innerHTML='<div class="rdformsDateValue rdformsFieldInput" xmlns="http://www.w3.org/1999/html">\n <div class="rdformsDatepicker form-group input" style="padding-right: 15px;">\n <input '.concat(e,' class="form-control dateInput date" type="text" placeholder="YYYY-MM-DD" />\n <span >\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm dateButton"><span class="fa fa-calendar"></span>\n <div class="ripple-container"></div></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control timeInput" placeholder="HH:MM"/>\n <span>\n <button ').concat(e,' type="button" class="btn btn-primary bmd-btn-fab bmd-btn-fab-sm timeButton"><span class="fa fa-clock"></span></button>\n </span>\n </div>\n <div class="form-group input" style="display:none;">\n <input ').concat(e,' type="text" class="form-control yearInput" placeholder="YYYY"/>\n </div>\n\n <select ').concat(e,' class="form-control dateControl">\n ').concat(n,"\n ").concat(o,"\n ").concat(r,"\n </select>\n</div>"),this.cal=Or()(this.domNode).find(".date")[0],this.dateButton=Or()(this.domNode).find(".dateButton")[0],this.timeInput=Or()(this.domNode).find(".timeInput")[0],this.timeButton=Or()(this.domNode).find(".timeButton")[0],this.yearInput=Or()(this.domNode).find(".yearInput")[0],this.dateControl=Or()(this.domNode).find(".dateControl")[0]}},{key:"initDatePicker",value:function(){var e=this;this.$datepicker=Or()(this.cal).bootstrapMaterialDatePicker({time:!1,date:!0,triggerEvent:"none",switchOnClick:!0,lang:this.context.view.getLocale()}),this.$timepicker=Or()(this.timeInput).bootstrapMaterialDatePicker({format:"HH:mm",time:!0,date:!1,triggerEvent:"none",switchOnClick:!0,lang:this.context.view.getLocale()}),Or()(this.dateButton).click((function(){e.$datepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$datepicker.on("change",(function(t,n){var o=n||lr()(t.target.value,void 0,e.context.view.getLocale());if(e.tpdate){var r=lr()(e.tpdate,void 0,e.context.view.getLocale());o.minute(r.minute()),o.hour(r.hour())}e.dpdate=o.toDate(),e.setDateInBinding(e.dpdate)})),this.item.isEnabled()||this.$datepicker.prop("disabled",!0),Or()(this.timeButton).click((function(){e.$timepicker.bootstrapMaterialDatePicker("_fireCalendar")})),this.$timepicker.on("change",(function(t,n){var o=n||lr()(t.target.value,void 0,e.context.view.getLocale());if(null!=e.dpdate){var r=lr()(e.dpdate,void 0,e.context.view.getLocale());r.minute(o.minute()),r.hour(o.hour()),e.tpdate=r.toDate(),e.setDateInBinding(e.tpdate)}else e.tpdate=o.toDate()})),this.item.isEnabled()||this.$timepicker.prop("disabled",!0)}},{key:"setDateInPicker",value:function(e){this.$datepicker.bootstrapMaterialDatePicker("setDate",e),this.$timepicker.bootstrapMaterialDatePicker("setTime",e),this.dpdate=e,this.tpdate=e}}])&&Nl(n.prototype,o),r&&Nl(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(Il);Il.register(zl);n(61514),n(78750);var Fl=n(19755);Cr.renderSelect=function(e,t,n){var o,r=Fl('<div class="form-group selectizeException">').appendTo(e),i=Fl('<div class="form-control">').appendTo(r),a=Fl('<input type="text">').appendTo(i),s=[];t.getValue()&&s.push(t.getValue());var l={items:s,valueField:"id",labelField:"text",sortField:"text",searchField:"text",allowEmptyOption:!1,preload:"focus",maxItems:1,mode:"single",onChange:function(e){var n=o.options[e];t.setChoice(n?n.choice:null),this.clearCache()}},c=!0;n.choices&&n.choices.length>0?(c=!1,l.options=n.choices):n.chooser&&"function"==typeof n.chooser.search&&(c=!1,l.load=function(e,o){n.chooser.search(t,e).then((function(e){o(e.map((function(e){return{id:e.value,text:ur.getLocalizedValue(e.editlabel||e.label,n.view.getLocale()).value||"",choice:e}})))}))}),o=a.selectize(l)[0].selectize,(c||qs(t,n))&&o.disable(),n.clear=function(){o.clear()},n.setValue=function(e){a.toggleClass("mismatch",!0===e.mismatch);var t=ur.getLocalizedValue(e.editlabel||e.label,n.view.getLocale()).value||"";o.options[e.value]||o.addOption({id:e.value,text:t,choice:e}),o.addItem(e.value,!0)}};var Bl=n(93379),$l=n.n(Bl),Vl=n(7795),Ul=n.n(Vl),Hl=n(90569),Yl=n.n(Hl),Wl=n(3565),Gl=n.n(Wl),ql=n(19216),Ql=n.n(ql),Xl=n(44589),Zl=n.n(Xl),Kl=n(72394),Jl={};Jl.styleTagTransform=Zl(),Jl.setAttributes=Gl(),Jl.insert=Yl().bind(null,"head"),Jl.domAPI=Ul(),Jl.insertStyleElement=Ql();$l()(Kl.Z,Jl);Kl.Z&&Kl.Z.locals&&Kl.Z.locals;var ec=n(59285),tc={};tc.styleTagTransform=Zl(),tc.setAttributes=Gl(),tc.insert=Yl().bind(null,"head"),tc.domAPI=Ul(),tc.insertStyleElement=Ql();$l()(ec.Z,tc);ec.Z&&ec.Z.locals&&ec.Z.locals;var nc=n(45987),oc={};oc.styleTagTransform=Zl(),oc.setAttributes=Gl(),oc.insert=Yl().bind(null,"head"),oc.domAPI=Ul(),oc.insertStyleElement=Ql();$l()(nc.Z,oc);nc.Z&&nc.Z.locals&&nc.Z.locals;var rc=n(19755);Cr.postEditorRenderer=function(e,t,n){n.$controlDiv.appendTo(e),rc("body").bootstrapMaterialDesign()};var ic=n(27642),ac={};ac.styleTagTransform=Zl(),ac.setAttributes=Gl(),ac.insert=Yl().bind(null,"head"),ac.domAPI=Ul(),ac.insertStyleElement=Ql();$l()(ic.Z,ac);ic.Z&&ic.Z.locals&&ic.Z.locals;function sc(e){return(sc="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 lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,dc(o.key),o)}}function dc(e){var t=function(e,t){if("object"!=sc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=sc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sc(t)?t:String(t)}function uc(e,t,n){return t=pc(t),function(e,t){if(t&&("object"===sc(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,n||[],pc(e).constructor):t.apply(e,n))}function fc(){return(fc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=bc(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function bc(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 mc(e,t){return(mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var hc=function(e,t,n){return 1===n?e["".concat(t,"_one")]:e["".concat(t,"_more")].replace("$1",n)},gc=function(e){function t(){return lc(this,t),uc(this,t,arguments)}var n,o,r;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&&mc(e,t)}(t,e),n=t,(o=[{key:"_handleParams",value:function(e){e.showLanguage=!1!==e.showLanguage,e.filterTranslations=!1,e.styleCls=e.styleCls||"rdformsPresenter rdformsValidator",this.fuzzy=!1!==e.fuzzy,fc(pc(t.prototype),"_handleParams",this).call(this,e),this.binding&&Ka(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 n=this.binding.getMatchingCode();if(n===Mr.MISSING_CONSTRAINTS||n===Mr.WRONG_NODETYPE)return!1;var o=e.getCardinality();switch(this.includeLevel){case"mandatory":return o&&o.min>=1;case"recommended":default:return o&&(o.min>=1||o.pref>=1)}}},{key:"showAsTable",value:function(){return!1}},{key:"prepareBindings",value:function(e,t){var n,o=t,r=e.getCardinality(),i=null!=r.min?r.min:0,a=null!=r.pref?r.pref:0;n=r.pref>0?r.pref:r.min>0?r.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===Mr.TOO_FEW_VALUES_MIN||s===Mr.TOO_FEW_VALUES_PREF,c=s===Mr.MISSING_CONSTRAINTS||s===Mr.WRONG_NODETYPE;if(n>o.length&&l&&!c)for(o=o.concat([]);n>o.length;){var d=Ga(this.binding,e);o.length<i?d.setMatchingCode(Mr.TOO_FEW_VALUES_MIN):o.length<a&&d.setMatchingCode(Mr.TOO_FEW_VALUES_PREF),o.push(d)}return o}},{key:"skipBinding",value:function(){return!1}},{key:"addValidationMarker",value:function(e,t){var n,o,r=t.getItem(),i=r.getCardinality(),a=null!=i.min?i.min:0,s=null!=i.pref?i.pref:0,l="group"===r.getType()?null===(n=t.getCardinalityTracker())||void 0===n?void 0:n.getCode():void 0,c=l&&l!==Mr.OK&&l!==Mr.UNKNOWN?l:t.getMatchingCode(),d=c===Mr.TOO_FEW_VALUES_PREF;if(c!==Mr.TOO_FEW_VALUES_PREF&&c!==Mr.OK)return Cr.domClassToggle(e,"error",!0),c===Mr.TOO_FEW_VALUES_MIN?o=hc(this.messages,"validation_min_required",a):c===Mr.TOO_MANY_VALUES?o=hc(this.messages,"validation_max",i.max||1):c===Mr.AT_MOST_ONE_CHILD?o=this.messages.validation_at_most_one_child:c===Mr.AT_LEAST_ONE_CHILD?o=this.messages.validation_at_least_one_child:c===Mr.EXACTLY_ONE_CHILD?o=this.messages.validation_exactly_one_child:c===Mr.WRONG_NODETYPE?o=this.messages.validation_nodetype:c===Mr.WRONG_VALUE?o=this.messages.validation_value:c===Mr.WRONG_DATATYPE?o=this.messages.validation_datatype:c===Mr.MISSING_CONSTRAINTS?o=this.messages.validation_constraints:c===Mr.WRONG_PATTERN?o=this.messages.validation_pattern:c===Mr.MISSING_LANGUAGE&&(o=this.messages.validation_language),Cr.renderValidationMessage(e,"error",o),!0;if(d){Cr.domClassToggle(e,"warning",!0);var u=hc(this.messages,"validation_min_recommended",s);return Cr.renderValidationMessage(e,"warning",u),!0}return!!r.hasStyle("deprecated")&&(Cr.domClassToggle(e,"deprecated",!0),Cr.renderValidationMessage(e,"deprecated",this.messages.validation_deprecated),!0)}},{key:"addComponent",value:function(e,n){fc(pc(t.prototype),"addComponent",this).call(this,e,n),this.addValidationMarker(e,n)}}])&&cc(n.prototype,o),r&&cc(n,r),Object.defineProperty(n,"prototype",{writable:!1}),t}(_s);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 yc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,wc(o.key),o)}}function wc(e){var t=function(e,t){if("object"!=vc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=vc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vc(t)?t:String(t)}var xc=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n instanceof Node?this.domNode=n:this.domNode="string"==typeof n?document.getElementById(n):document.createElement("div"),this.template=t.template,this.resource=t.resource,this.graph=t.graph,this.compact=void 0===t.compact||t.compact,this.includeLevel=t.includeLevel||"mandatory",this.includeLevelControllsVisible=void 0===t.includeLevelControllsVisible||t.includeLevelControllsVisible,this.externalEditor=void 0!==t.externalEditor&&t.externalEditor,this.messages=t.messages,this.render()}var t,n,o;return t=e,(n=[{key:"render",value:function(){this.domNode.innerHTML='<div class="cardinality" style="display: none;">\n <div class="btn-group" role="group">\n <button type="button" class="btn btn-secondary btn-lg active mandatory">Mandatory</button>\n <button type="button" class="btn btn-secondary btn-lg active recommended">Recommended</button>\n <button type="button" class="btn btn-secondary btn-lg optional">Optional</button>\n </div>\n <div class="rdformsLevelNode"></div>',this._cardinalityNode=Or()(this.domNode).find(".cardinality")[0],this._mandatoryButton=Or()(this.domNode).find(".mandatory").click(this._mandatoryClick.bind(this))[0],this._recommendedButton=Or()(this.domNode).find(".recommended").click(this._recommendedClick.bind(this))[0],this._optionalButton=Or()(this.domNode).find(".optional").click(this._optionalClick.bind(this))[0],this._rdformsNode=Or()(this.domNode).find(".rdformsLevelNode")[0],this.includeLevelControllsVisible&&(this._cardinalityNode.style.display=""),this.setIncludeLevel(this.includeLevel),this.externalEditor||(this._editor=new Ms({includeLevel:this.includeLevel,compact:this.compact},this._rdformsNode),this.show())}},{key:"show",value:function(e,t,n){this.resource=e||this.resource,this.graph=t||this.graph,this.template=n||this.template,this._editor&&this._editor.show({resource:this.resource,graph:this.graph,template:this.template,includeLevel:this.includeLevel}),this.localize()}},{key:"setIncludeLevel",value:function(e){if(null==this._editor||this._editor.getIncludeLevel()!==e)switch(this.includeLevel=e,e){case"mandatory":this._mandatoryClick();break;case"recommended":this._recommendedClick();break;case"optional":this._optionalClick()}}},{key:"disableLevel",value:function(e){switch(e){case"mandatory":this._mandatoryLabel.setAttribute("disabled",!0);break;case"recommended":this._recommendedLabel.setAttribute("disabled",!0);break;case"optional":this._optionalLabel.setAttribute("disabled",!0)}}},{key:"localize",value:function(){var e=Cr.getMessages();Cr.domText(this._mandatoryButton,e.mandatoryLabel),Cr.domText(this._recommendedButton,e.recommendedLabel),Cr.domText(this._optionalButton,e.optionalLabel)}},{key:"setExternalEditor",value:function(e){e.getIncludeLevel()!==this.includeLevel&&e.setIncludeLevel(this.includeLevel),this._editor=e,this.show()}},{key:"_mandatoryClick",value:function(e){this._mandatoryButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!1),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("mandatory")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_recommendedClick",value:function(e){this._recommendedButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!1),this._updateEditor("recommended")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_optionalClick",value:function(e){this._optionalButton.getAttribute("disabled")||(Cr.domClassToggle(this._mandatoryButton,"active",!0),Cr.domClassToggle(this._recommendedButton,"active",!0),Cr.domClassToggle(this._optionalButton,"active",!0),this._updateEditor("optional")),e&&(e.preventDefault(),e.stopPropagation())}},{key:"_updateEditor",value:function(e){this._editor&&this._editor.setIncludeLevel(e)}}])&&yc(t.prototype,n),o&&yc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(60429);const kc=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const _c=function(e){return this.__data__.has(e)};function Sc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new cn;++t<n;)this.add(e[t])}Sc.prototype.add=Sc.prototype.push=kc,Sc.prototype.has=_c;const Ec=Sc;const Cc=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const Tc=function(e,t){return e.has(t)};const Oc=function(e,t,n,o,r,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,b=2&n?new Ec:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var p=e[u],m=t[u];if(o)var h=a?o(m,p,u,t,e,i):o(p,m,u,e,t,i);if(void 0!==h){if(h)continue;f=!1;break}if(b){if(!Cc(t,(function(e,t){if(!Tc(b,t)&&(p===e||r(p,e,n,o,i)))return b.push(t)}))){f=!1;break}}else if(p!==m&&!r(p,m,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f};const Ac=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const Ic=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var jc=ht?ht.prototype:void 0,Dc=jc?jc.valueOf:void 0;const Nc=function(e,t,n,o,r,i,a){switch(n){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 Fo(e),new Fo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return et(+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=Ac;case"[object Set]":var l=1&o;if(s||(s=Ic),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;o|=2,a.set(e,t);var d=Oc(s(e),s(t),o,r,i,a);return a.delete(e),d;case"[object Symbol]":if(Dc)return Dc.call(e)==Dc.call(t)}return!1};var Mc=Object.prototype.hasOwnProperty;const Lc=function(e,t,n,o,r,i){var a=1&n,s=So(e),l=s.length;if(l!=So(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:Mc.call(t,d)))return!1}var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var b=!0;i.set(e,t),i.set(t,e);for(var p=a;++c<l;){var m=e[d=s[c]],h=t[d];if(o)var g=a?o(h,m,d,t,e,i):o(m,h,d,e,t,i);if(!(void 0===g?m===h||r(m,h,n,o,i):g)){b=!1;break}p||(p="constructor"==d)}if(b&&!p){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(b=!1)}return i.delete(e),i.delete(t),b};var Pc=Object.prototype.hasOwnProperty;const Rc=function(e,t,n,o,r,i){var a=Cn(e),s=Cn(t),l=a?"[object Array]":Po(e),c=s?"[object Array]":Po(t),d="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),u="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),f=l==c;if(f&&jn(e)){if(!jn(t))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new fn),a||Un(e)?Oc(e,t,n,o,r,i):Nc(e,t,l,n,o,r,i);if(!(1&n)){var b=d&&Pc.call(e,"__wrapped__"),p=u&&Pc.call(t,"__wrapped__");if(b||p){var m=b?e.value():e,h=p?t.value():t;return i||(i=new fn),r(m,h,n,o,i)}}return!!f&&(i||(i=new fn),Lc(e,t,n,o,r,i))};const zc=function e(t,n,o,r,i){return t===n||(null==t||null==n||!wn(t)&&!wn(n)?t!=t&&n!=n:Rc(t,n,o,r,e,i))};const Fc=function(e,t){return zc(e,t)};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 $c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Vc(o.key),o)}}function Vc(e){var t=function(e,t){if("object"!=Bc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Bc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bc(t)?t:String(t)}var Uc=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,n,o;return t=e,(n=[{key:"importRegistry",value:function(e){Object.assign(this._registry,e)}},{key:"getChoices",value:function(e,t){var n=this._findChoices(e);if(null==n);else{if(null==t)return n;t(n)}}},{key:"_findChoices",value:function(e){var t=this._registry[e.getOntologyUrl()];if(null!=t)for(var n=0;n<t.length;n++){var o=t[n];if(Fc(o.constraints,e.getConstraints())&&e.getParentProperty()===o.parentProperty&&e.getHierarchyProperty()===o.hierarchyProperty&&e.isParentPropertyInverted()===(o.isParentPropertyInverted||!1)&&e.isHierarchyPropertyInverted()===(o.isHierarchyPropertyInverted||!1))return o.choices}}},{key:"_constructLoadUrl",value:function(e){var t=[];if(t.push("constr=".concat(encodeURIComponent(JSON.stringify(e.getConstraints())))),null!=e.getParentProperty()){var n=!0===e.isParentPropertyInverted()?"ipp=":"pp=";t.push(n+encodeURIComponent(e.getParentProperty()))}if(null!=e.getHierarchyProperty()){var o=!0===e.isHierarchyPropertyInverted()?"ihp=":"hp=";t.push(o+encodeURIComponent(e.getHierarchyProperty()))}return"".concat(e.getOntologyUrl(),"?").concat(t.join("&"))}}])&&$c(t.prototype,n),o&&$c(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hc(e){return(Hc="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 Yc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Wc(o.key),o)}}function Wc(e){var t=function(e,t){if("object"!=Hc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Hc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hc(t)?t:String(t)}var Gc=0,qc=function(){function e(t){var n=t.itemStore,o=t.source,r=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=n,this._source=o,this._path=r,this._readOnly=a,this._items=[],Gc+=1,this._id="_bundle_".concat(Gc),this._root=null,this._modified=!1}var t,n,o;return t=e,(n=[{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}}])&&Yc(t.prototype,n),o&&Yc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Xc(o.key),o)}}function Xc(e){var t=function(e,t){if("object"!=Zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Zc(o))return o;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 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)}var Kc=function e(t,n){if(!t||!n)return void 0===n?t:n;if(Array.isArray(t)&&Array.isArray(n))return[].concat(origSource[key],extSource[key]);if("object"===Zc(t)&&"object"===Zc(n)){var o={};return Object.keys(t).concat(Object.keys(n)).forEach((function(r){o[r]=e(t[r],n[r])})),o}return n},Jc=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 Uc}var t,n,o;return t=e,(n=[{key:"getTemplate",value:function(e){return this.getItem(e)}},{key:"getChildren",value:function(e,t){if(null==e)return[];var n=e.getSource(!0),o=n.content||n.items||[];if(t)return this._createItems(o,e._forceChildrenClones,e.getBundle());var r=this.getItem(n.extends);if(r){var i=e.getChildren(!0);return e.getEnhanced("items")||0===i.length?r.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 n=this._registry[e];n&&(delete this._registry[e],this._registry[t]=n,n.setId(t));for(var o=function n(o){var r=o.content;if(r)for(var i=0;i<r.length;i++){var a=r[i];a.id!==e&&a["@id"]!==e||(a.id=t,delete a["@id"]),a.content&&n(a)}},r=this.getItems(),i=0;i<r.length;i++){var a=r[i];a instanceof di&&o(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,n){return Ha(e,t,this,n)}},{key:"registerBundle",value:function(e){e.itemStore=this;var t=new qc(e);this._bundles.push(t),e.source&&e.source.namespaces&&L(e.source.namespaces);var n=e.source.templates||e.source.auxilliary;return n instanceof Array&&this._createItems(n,!1,t),"object"===Zc(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,n=(e||[]).map((function(e){return"string"==typeof e?t.getItem(e):e}));return new di({source:{},children:n,itemStore:this})}},{key:"setPriorities",value:function(e){this.priorities=e}},{key:"createExtendedSource",value:function(e,t){var n=Object.assign({},e,t);return t.enhanced&&(!0===t.enhanced?Object.keys(e).concat(Object.keys(t)):Object.keys(t.enhanced)).forEach((function(o){n[o]=Kc(e[o],t[o])})),n._extendedSource=t,n.extends=null,delete n.children,n}},{key:"createItem",value:function(e,t,n,o){var r,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,o)}}if(null!=a){switch(a){case"text":r=new Oi({source:e,itemStore:this,bundle:o});break;case"choice":r=new zi({source:e,itemStore:this,ontologyStore:this._ontologyStore,bundle:o});break;case"group":r=new di({source:e,children:null,itemStore:this,bundle:o});break;case"propertygroup":r=new wi({source:e,children:null,itemStore:this,bundle:o})}var c,d;if(!0!==n&&(null!=e.property&&(this._registryByProperty[e.property]=r,this.priorities&&null!=this.priorities[e.property]&&(r.priority=this.priorities[e.property])),null!=i))this._registry[i]&&console.log("RDForms conflict with item id ".concat(i,', overwriting item from bundle "').concat((null===(c=this._registry[i].getBundle())||void 0===c?void 0:c.getPath())||"",'" with item from bundle "').concat((null===(d=r.getBundle())||void 0===d?void 0:d.getPath())||"",'".')),this._registry[i]=r,null!=o&&o.addItem(r);return r}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 n=e.getBundle();null!=n&&n.removeItem(e),null!=e.getId()&&delete this._registry[e.getId()];var o=e.getProperty();null!=o&&this._registryByProperty[o]===e&&delete this._registryByProperty[o]}},{key:"_createItems",value:function(e,t,n){var o=this;return e.map((function(r,i){var a="string"==typeof r?e[i]={id:r}:r;return o.createItem(a,t,!1,n)})).filter((function(e){return e}))}},{key:"_handleError",value:function(e){if("throw"===this.handleErrorAs)throw new Error(e);console[this.handleErrorAs](e)}}])&&Qc(t.prototype,n),o&&Qc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();n(73964),n(58373),n(66793),n(7629),n(77509);function ed(e){return(ed="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 td(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */td=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new A(o||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",b="executing",p="completed",m={};function h(){}function g(){}function v(){}var y={};c(y,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==n&&o.call(x,a)&&(y=x);var k=v.prototype=h.prototype=Object.create(y);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,a,s){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==ed(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,r){n(e,o,t,r)}))}return i=i?i.then(r,r):r()}})}function E(t,n,o){var r=f;return function(i,a){if(r===b)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=C(s,o);if(l){if(l===m)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===f)throw r=p,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=b;var c=u(t,n,o);if("normal"===c.type){if(r=o.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=p,o.method="throw",o.arg=c.arg)}}}function C(t,n){var o=n.method,r=t.iterator[o];if(r===e)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),m;var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(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 A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(ed(t)+" is not iterable")}return g.prototype=v,r(k,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},_(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,o,r,i){void 0===i&&(i=Promise);var a=new S(d(e,n,o,r),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},t.values=I,A.prototype={constructor:A,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 n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=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 n=this;function r(o,r){return s.type="throw",s.arg=t,n.next=o,r&&(n.method="next",n.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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 n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,o){return this.delegate={iterator:I(t),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}function nd(e,t,n,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,r)}function od(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){nd(i,o,r,a,s,"next",e)}function s(e){nd(i,o,r,a,s,"throw",e)}a(void 0)}))}}var rd=function(e,t,n){var o="Fetching template bundle ".concat(n," failed.");if(e===t-1)throw Error("".concat(o," Cannot recover from this, please fix."));console.log("".concat(o," Will try to fetch from a fallback option."))},id=function(){var e=od(td().mark((function e(t){var n,o,r,i,a,s;return td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.length,a=0;case 2:if(!(a<n)){e.next=35;break}return i=t[a],e.prev=4,e.next=7,fetch(i);case 7:o=e.sent,e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(4),Error("A network error ocurred while trying to fetch bundle ".concat(i));case 13:if(!o||!o.ok){e.next=31;break}if(e.prev=14,!(s=o.headers.has("content-type")&&o.headers.get("content-type"))||!s.includes("application/json")){e.next=23;break}return e.next=19,o.json();case 19:return r=e.sent,e.abrupt("break",35);case 23:throw new Error("Failed fetching template ".concat(i,". Expected a JSON file and got ").concat(s));case 24:e.next=29;break;case 26:e.prev=26,e.t1=e.catch(14),rd(a,n,i);case 29:e.next=32;break;case 31:rd(a,n,i);case 32:a++,e.next=2;break;case 35:return e.abrupt("return",{path:i,source:r});case 36:case"end":return e.stop()}}),e,null,[[4,10],[14,26]])})));return function(t){return e.apply(this,arguments)}}(),ad=function(e){return e.map((function(e){return e instanceof Array?id(e):Promise.resolve({source:e})}))},sd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.map((function(t){return e.registerBundle(t)}))};const ld=function(){var e=od(td().mark((function e(t){var n,o,r,i,a,s=arguments;return td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:[],o=s.length>2&&void 0!==s[2]?s[2]:function(){},0===n.length&&o&&o([]),r=ad(n),e.next=6,Promise.all(r);case 6:return i=e.sent,a=sd(t,i),o(a),e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})(),o})());