diff --git a/static/web/404.html b/static/web/404.html index a5eae0249..d383eeba7 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index a5eae0249..d383eeba7 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/Wnc9js7gFg6tPx2MIsfR6/_buildManifest.js b/static/web/_next/static/82lNuSLP1rJ4Q9DQoyBSm/_buildManifest.js similarity index 77% rename from static/web/_next/static/Wnc9js7gFg6tPx2MIsfR6/_buildManifest.js rename to static/web/_next/static/82lNuSLP1rJ4Q9DQoyBSm/_buildManifest.js index 6dc972501..5d35adde3 100644 --- a/static/web/_next/static/Wnc9js7gFg6tPx2MIsfR6/_buildManifest.js +++ b/static/web/_next/static/82lNuSLP1rJ4Q9DQoyBSm/_buildManifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST=function(a,s,c,e,i,t,n,d,f,h,o,b,m,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[b,m,l,s,a,c,t,n,f,u,k,_,w,v,"static/chunks/8782-f3854e33766b9b1f.js",h,r,y,"static/css/50ef1663cf2c1b27.css","static/chunks/pages/index-de8237c8f59c5465.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[s,a,c,e,i,t,n,d,o,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-4b93901c94acbbd2.js"],"/admin/access-tokens":[s,a,c,e,i,"static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js"],"/admin/actions":[s,a,c,e,"static/chunks/pages/admin/actions-118addb368d4ec1b.js"],"/admin/chat/messages":[I,s,a,c,e,i,n,B,F,"static/chunks/pages/admin/chat/messages-954bab3a08b52e63.js"],"/admin/chat/users":[I,s,a,c,e,i,t,n,B,F,"static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-aee7dee7c0ddef1c.js",s,a,c,e,g,"static/chunks/9257-d713fc824ad40552.js",A,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[s,a,c,e,A,"static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[s,a,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-77be2acde5c474cb.js"],"/admin/federation/actions":[s,a,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[s,a,c,e,i,t,"static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js"],"/admin/hardware-info":[j,i,t,d,o,p,g,"static/chunks/pages/admin/hardware-info-2cb40bf1c957de96.js"],"/admin/help":[t,d,v,"static/chunks/5566-d74e7fd6b2bc806a.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[s,a,c,e,i,k,"static/chunks/pages/admin/logs-edbab10327a430d5.js"],"/admin/stream-health":[j,i,t,d,o,p,"static/chunks/6610-d5a140d3395ae209.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[s,a,c,e,"static/chunks/3812-73e73ff4fa8c15d9.js","static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js"],"/admin/viewer-info":[j,s,a,c,e,i,t,n,d,o,p,g,"static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js"],"/admin/webhooks":[s,a,c,e,"static/chunks/pages/admin/webhooks-66e239b373b061f0.js"],"/embed/chat/readonly":[b,m,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-7d52555642af387d.js"],"/embed/chat/readwrite":[b,m,a,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js"],"/embed/video":[l,n,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-767df07d35be7bcf.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-29079579e398192c.js","static/chunks/4267-b54c540ce3a8eed5.js","static/chunks/3626-717f7ff16ee717f6.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-2a9b62dad629aca2.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-18f6a7fa5034eeb3.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-aaa393afe6bb8ebd.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/8763-7d290efc89421849.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/29-2e97e484c972d352.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-adab6ebb159dfcfb.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file +self.__BUILD_MANIFEST=function(a,s,c,e,i,t,d,n,f,h,o,m,b,u,k,r,g,j,p,l,_,w,v,y,I,B,F,A,D){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[m,b,l,s,a,c,t,d,f,u,k,_,w,v,"static/chunks/8782-f3854e33766b9b1f.js",h,r,y,"static/css/50ef1663cf2c1b27.css","static/chunks/pages/index-de8237c8f59c5465.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/admin":[s,a,c,e,i,t,d,n,o,k,"static/chunks/8676-58e1723c87a0d4ec.js","static/chunks/pages/admin-4b93901c94acbbd2.js"],"/admin/access-tokens":[s,a,c,e,i,"static/chunks/pages/admin/access-tokens-5f45e77ab2176f5b.js"],"/admin/actions":[s,a,c,e,"static/chunks/pages/admin/actions-118addb368d4ec1b.js"],"/admin/chat/messages":[I,s,a,c,e,i,d,B,F,"static/chunks/pages/admin/chat/messages-954bab3a08b52e63.js"],"/admin/chat/users":[I,s,a,c,e,i,t,d,B,F,"static/chunks/pages/admin/chat/users-47c7102aec07a1a6.js"],"/admin/config-chat":["static/chunks/pages/admin/config-chat-60cf4efa879df43b.js"],"/admin/config-federation":["static/chunks/1829-b015b4e5cd814fc8.js","static/chunks/pages/admin/config-federation-5c6874737e33a71c.js"],"/admin/config-notify":["static/chunks/pages/admin/config-notify-162a41a161f6bd5a.js"],"/admin/config-public-details":["static/chunks/4ad82c5e-aee7dee7c0ddef1c.js",s,a,c,e,g,"static/chunks/9257-66ad7ef8cc6a6ab9.js",A,"static/chunks/pages/admin/config-public-details-e19f32415e69afa7.js"],"/admin/config-server-details":[D,"static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js"],"/admin/config-social-items":[s,a,c,e,A,"static/chunks/pages/admin/config-social-items-4259e7e71b649d89.js"],"/admin/config-storage":["static/chunks/5473-ecd3fd646bf241fd.js","static/chunks/pages/admin/config-storage-723faa1b1e9d32cc.js"],"/admin/config-video":[s,a,c,e,D,"static/chunks/4812-9c96405be4c6ddd3.js","static/chunks/pages/admin/config-video-77be2acde5c474cb.js"],"/admin/federation/actions":[s,a,c,e,i,"static/chunks/pages/admin/federation/actions-7358c2d2b36cd0d3.js"],"/admin/federation/followers":[s,a,c,e,i,t,"static/chunks/pages/admin/federation/followers-7c6d59427a9c1b69.js"],"/admin/hardware-info":[j,i,t,n,o,p,g,"static/chunks/pages/admin/hardware-info-2cb40bf1c957de96.js"],"/admin/help":[t,n,v,"static/chunks/5566-d74e7fd6b2bc806a.js","static/chunks/pages/admin/help-635a866be914f510.js"],"/admin/logs":[s,a,c,e,i,k,"static/chunks/pages/admin/logs-edbab10327a430d5.js"],"/admin/stream-health":[j,i,t,n,o,p,"static/chunks/6610-d5a140d3395ae209.js","static/chunks/pages/admin/stream-health-897a4c79610a240c.js"],"/admin/upgrade":[s,a,c,e,"static/chunks/2069-57515c89a2a2ad62.js","static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js"],"/admin/viewer-info":[j,s,a,c,e,i,t,d,n,o,p,g,"static/chunks/pages/admin/viewer-info-b295d263f1fe0bd8.js"],"/admin/webhooks":[s,a,c,e,"static/chunks/pages/admin/webhooks-66e239b373b061f0.js"],"/embed/chat/readonly":[m,b,f,u,h,r,"static/css/87104b15c089124a.css","static/chunks/pages/embed/chat/readonly-7d52555642af387d.js"],"/embed/chat/readwrite":[m,b,a,f,u,h,r,"static/css/38031c0e461b403f.css","static/chunks/pages/embed/chat/readwrite-b54f76d80455488b.js"],"/embed/video":[l,d,f,_,w,h,y,"static/css/50d4ea374f37f0f9.css","static/chunks/pages/embed/video-767df07d35be7bcf.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/messages","/admin/chat/users","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/3903-97c724332d1a5798.js","static/chunks/8939-2c7dd78bd2286b4d.js","static/chunks/4267-b54c540ce3a8eed5.js","static/chunks/3626-717f7ff16ee717f6.js","static/chunks/8091-d7457a988f3f1d54.js","static/chunks/2944-2a9b62dad629aca2.js","static/chunks/9764-3705d4c034a766fe.js","static/chunks/5315-0e7e74a6fb9533c3.js","static/chunks/9372-9a6ed970911222d5.js","static/chunks/1899-18f6a7fa5034eeb3.js","static/chunks/4763-a050d4b408cb3260.js","static/chunks/d3048c20-0576676e1017fabd.js","static/chunks/d2094a0f-579ef58c933db91c.js","static/chunks/7364-aaa393afe6bb8ebd.js","static/chunks/2429-38af9f180f370b65.js","static/chunks/8763-7d290efc89421849.js","static/chunks/7910-c80aab5f0058b5c3.js","static/chunks/3fff1979-612c6162f1b345ff.js","static/chunks/2139-c72b3a851c3b6fc9.js","static/chunks/d6e1aeb5-e5a704c6afec0fd3.js","static/css/7c735c05af084bb2.css","static/chunks/29-efb8248317a52098.js","static/chunks/1082-c86716156ee6f510.js","static/chunks/2854-adab6ebb159dfcfb.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9189-200a9342100c92dd.js","static/chunks/9640-e282810d6fb4f58d.js","static/chunks/2877-6ed259e27dba66ad.js","static/chunks/3286-a15aa91d3d2fc97f.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/Wnc9js7gFg6tPx2MIsfR6/_ssgManifest.js b/static/web/_next/static/82lNuSLP1rJ4Q9DQoyBSm/_ssgManifest.js similarity index 100% rename from static/web/_next/static/Wnc9js7gFg6tPx2MIsfR6/_ssgManifest.js rename to static/web/_next/static/82lNuSLP1rJ4Q9DQoyBSm/_ssgManifest.js diff --git a/static/web/_next/static/chunks/3812-73e73ff4fa8c15d9.js b/static/web/_next/static/chunks/2069-57515c89a2a2ad62.js similarity index 55% rename from static/web/_next/static/chunks/3812-73e73ff4fa8c15d9.js rename to static/web/_next/static/chunks/2069-57515c89a2a2ad62.js index 62645faee..1ba2775ea 100644 --- a/static/web/_next/static/chunks/3812-73e73ff4fa8c15d9.js +++ b/static/web/_next/static/chunks/2069-57515c89a2a2ad62.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3812],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},l=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var n,t,r,o,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p=n||t<0||g&&e-h>=c}function b(){var e=o();if(v(e))return w(e);p=setTimeout(b,function(e){var t=n-(e-d);return g?u(t,c-(e-h)):t}(e))}function w(e){return p=void 0,y&&a?x(e):(a=s=void 0,f)}function S(){var e=o(),t=v(e);if(a=arguments,s=this,d=e,t){if(void 0===p)return k(d);if(g)return clearTimeout(p),p=setTimeout(b,n),x(d)}return void 0===p&&(p=setTimeout(b,n)),f}return n=i(n)||0,r(t)&&(m=!!t.leading,c=(g="maxWait"in t)?l(i(t.maxWait)||0,n):c,y="trailing"in t?!!t.trailing:y),S.cancel=function(){void 0!==p&&clearTimeout(p),h=0,a=d=s=p=void 0},S.flush=function(){return void 0===p?f:w(o())},S}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),i=t(33448),l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=u.test(e);return t||a.test(e)?s(e.slice(2),t?2:8):l.test(e)?NaN:+e}},69921:function(e,n){"use strict";var t,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case i:case u:case l:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case m:case h:case a:return e;default:return n}}case o:return n}}}t=Symbol.for("react.module.reference"),n.ContextConsumer=s,n.ContextProvider=a,n.Element=r,n.ForwardRef=f,n.Fragment=i,n.Lazy=m,n.Memo=h,n.Portal=o,n.Profiler=u,n.StrictMode=l,n.Suspense=p,n.SuspenseList=d,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return y(e)===s},n.isContextProvider=function(e){return y(e)===a},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return y(e)===f},n.isFragment=function(e){return y(e)===i},n.isLazy=function(e){return y(e)===m},n.isMemo=function(e){return y(e)===h},n.isPortal=function(e){return y(e)===o},n.isProfiler=function(e){return y(e)===u},n.isStrictMode=function(e){return y(e)===l},n.isSuspense=function(e){return y(e)===p},n.isSuspenseList=function(e){return y(e)===d},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===u||e===l||e===p||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===t||void 0!==e.getModuleId)},n.typeOf=y},59864:function(e,n,t){"use strict";e.exports=t(69921)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,o=null;if(!e||"string"!==typeof e)return o;for(var i,l,u=r(e),a="function"===typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(d(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){d(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const u=e.charCodeAt(t);if(47!==u)r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,u=0;continue}}else if(o.length>0){o="",i=0,l=a,u=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,u=0}else 46===t&&u>-1?u++:u=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function d(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h={cwd:function(){return"/"}};function m(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function g(e){if("string"===typeof e)e=new URL(e);else if(!m(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let u;r&&n.push(o);try{u=e.apply(this,n)}catch(i){const n=i;if(r&&t)throw n;return o(n)}r||(u instanceof Promise?u.then(l,o):u instanceof Error?o(u):l(u))}function o(e,...r){t||(t=!0,n(e,...r))}function l(e){o(null,e)}}(u,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!==typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const A=function e(){const n=E(),t=[];let r,o={},i=-1;return u.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(I("data",r),o[e]=n,u):F.call(o,e)&&o[e]||null;if(e)return I("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++i{if(!e&&n&&t){const o=u.stringify(n,t);void 0===o||null===o||("string"===typeof(r=o)||l(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r}))}t(null,n)},u.processSync=function(e){let n;u.freeze(),P("processSync",u.Parser),O("processSync",u.Compiler);const t=z(e);return u.process(t,r),D("processSync","process",n),t;function r(e){n=!0,w(e)}},u;function u(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),[].splice.apply(e,i);else for(t&&[].splice.apply(e,[n,t]);l0?(B(e,e.length,0,n),e):n}const _={}.hasOwnProperty;function N(e,n){let t;for(t in n){const r=(_.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;for(i in o){_.call(r,i)||(r[i]=[]);const e=o[i];H(r[i],Array.isArray(e)?e:e?[e]:[])}}}function H(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,u,a=t;for(;a--;)if("exit"===n.events[a][0]&&"chunkFlow"===n.events[a][1].type){if(o){u=n.events[a][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function x(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},oe={tokenize:function(e,n,t){return ne(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ie={tokenize:function(e,n,t){return ne(e,(function(e){return null===e||X(e)?n(e):t(e)}),"linePrefix")},partial:!0};function le(e){const n={};let t,r,o,i,l,u,a,s=-1;for(;++s=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const ce={tokenize:function(e){const n=this,t=e.attempt(ie,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,ne(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ae,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const fe={resolveAll:me()},pe=he("string"),de=he("text");function he(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),u;n.consume(e)}function u(e){return a(e)?(n.exit("data"),o(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1&&(l[0]=l[0].slice(r)),i>0&&l.push(e[o].slice(0,i)));return l}(l,e)}function h(){return Object.assign({},r)}function m(){let e;for(;r._indexs?t(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):null===o||K(o)?c?t(o):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):Y(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Ee(e,n,t,r,o,i){const l=this;let u,a=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):X(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||X(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),u=u||!Z(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function Ae(e,n,t,r,o,i){let l;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,u};function u(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===l?(e.exit(i),u(l)):null===n?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ne(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||X(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Fe(e,n){let t;return function r(o){if(X(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(Z(o))return ne(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pe={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),Ee.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return o=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Fe(e,Ce(e,e.attempt(Oe,ne(e,l,"whitespace"),ne(e,l,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function l(i){return null===i||X(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),n(i)):t(i)}}},Oe={tokenize:function(e,n,t){return function(n){return K(n)?Fe(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Ae(e,ne(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||X(e)?n(e):t(e)}},partial:!0};const Ie={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),ne(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?u(n):X(n)?e.attempt(Le,i,u)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||X(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function u(t){return e.exit("codeIndented"),n(t)}}},Le={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):ne(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):X(e)?o(e):t(e)}},partial:!0};const De={name:"headingAtx",tokenize:function(e,n,t){const r=this;let o=0;return function(n){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(n)};function i(u){return 35===u&&o++<6?(e.consume(u),i):null===u||K(u)?(e.exit("atxHeadingSequence"),r.interrupt?n(u):l(u)):t(u)}function l(t){return 35===t?(e.enter("atxHeadingSequence"),u(t)):null===t||X(t)?(e.exit("atxHeading"),n(t)):Z(t)?ne(e,l,"whitespace")(t):(e.enter("atxHeadingText"),a(t))}function u(n){return 35===n?(e.consume(n),u):(e.exit("atxHeadingSequence"),l(n))}function a(n){return null===n||35===n||K(n)?(e.exit("atxHeadingText"),l(n)):(e.consume(n),a)}},resolve:function(e,n){let t,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},B(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const ze={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=n,u(n);return t(n)};function u(n){return n===o?(e.consume(n),u):(e.exit("setextHeadingLineSequence"),ne(e,a,"lineSuffix")(n))}function a(r){return null===r||X(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Re=["pre","script","style","textarea"],Be={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,u,a;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),d):63===u?(e.consume(u),o=3,r.interrupt?n:z):U(u)?(e.consume(u),l=String.fromCharCode(u),i=!0,h):t(u)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l="CDATA[",u=0,p):U(i)?(e.consume(i),o=4,r.interrupt?n:z):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:z):t(o)}function p(o){return o===l.charCodeAt(u++)?(e.consume(o),u===l.length?r.interrupt?n:A:p):t(o)}function d(n){return U(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(u){return null===u||47===u||62===u||K(u)?47!==u&&i&&Re.includes(l.toLowerCase())?(o=1,r.interrupt?n(u):A(u)):Me.includes(l.toLowerCase())?(o=6,47===u?(e.consume(u),m):r.interrupt?n(u):A(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(u):i?y(u):g(u)):45===u||$(u)?(e.consume(u),l+=String.fromCharCode(u),h):t(u)}function m(o){return 62===o?(e.consume(o),r.interrupt?n:A):t(o)}function g(n){return Z(n)?(e.consume(n),g):C(n)}function y(n){return 47===n?(e.consume(n),C):58===n||95===n||U(n)?(e.consume(n),x):Z(n)?(e.consume(n),y):C(n)}function x(n){return 45===n||46===n||58===n||95===n||$(n)?(e.consume(n),x):k(n)}function k(n){return 61===n?(e.consume(n),v):Z(n)?(e.consume(n),k):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),a=n,b):Z(n)?(e.consume(n),v):(a=null,w(n))}function b(n){return null===n||X(n)?t(n):n===a?(e.consume(n),S):(e.consume(n),b)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||K(n)?k(n):(e.consume(n),w)}function S(e){return 47===e||62===e||Z(e)?y(e):t(e)}function C(n){return 62===n?(e.consume(n),E):t(n)}function E(n){return Z(n)?(e.consume(n),E):null===n||X(n)?A(n):t(n)}function A(n){return 45===n&&2===o?(e.consume(n),O):60===n&&1===o?(e.consume(n),I):62===n&&4===o?(e.consume(n),M):63===n&&3===o?(e.consume(n),z):93===n&&5===o?(e.consume(n),D):!X(n)||6!==o&&7!==o?null===n||X(n)?F(n):(e.consume(n),A):e.check(je,M,F)(n)}function F(n){return e.exit("htmlFlowData"),T(n)}function T(n){return null===n?R(n):X(n)?e.attempt({tokenize:P,partial:!0},T,R)(n):(e.enter("htmlFlowData"),A(n))}function P(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function O(n){return 45===n?(e.consume(n),z):A(n)}function I(n){return 47===n?(e.consume(n),l="",L):A(n)}function L(n){return 62===n&&Re.includes(l.toLowerCase())?(e.consume(n),M):U(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),L):A(n)}function D(n){return 93===n?(e.consume(n),z):A(n)}function z(n){return 62===n?(e.consume(n),M):45===n&&2===o?(e.consume(n),z):A(n)}function M(n){return null===n||X(n)?(e.exit("htmlFlowData"),R(n)):(e.consume(n),M)}function R(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},je={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ie,n,t)}},partial:!0};const _e={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let r=0;return ne(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(n)}function i(n){return n===a?(e.consume(n),r++,i):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);Je(f,-u),Je(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=j(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=j(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),a=j(a,ye(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=j(a,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,B(e,t-1,c-t+3,a),c=t+a.length-s-2;break}c=-1;for(;++c13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535===(65535&t)||65534===(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const yn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return gn(t.slice(n?2:1),n?16:10)}return He(t)||e}function kn(e){return e&&"object"===typeof e?"position"in e||"type"in e?bn(e.position):"start"in e||"end"in e?bn(e):"line"in e||"column"in e?vn(e):"":""}function vn(e){return wn(e&&e.line)+":"+wn(e&&e.column)}function bn(e){return vn(e&&e.start)+"-"+vn(e&&e.end)}function wn(e){return e&&"number"===typeof e?e:1}const Sn={}.hasOwnProperty,Cn=function(e,n,t){return"string"!==typeof n&&(t=n,n=void 0),function(e={}){const n=En({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(oe),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ee),blockQuote:a(K),characterEscape:T,characterReference:T,codeFenced:a(X),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(X,s),codeText:a(Z,s),codeTextData:T,data:T,codeFlowValue:T,definition:a(J),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(G),hardBreakEscape:a(ne),hardBreakTrailing:a(ne),htmlFlow:a(te,s),htmlFlowData:T,htmlText:a(te,s),htmlTextData:T,image:a(re),label:s,link:a(oe),listItem:a(le),listItemValue:m,listOrdered:a(ie,h),listUnordered:a(ie),paragraph:a(ue),reference:V,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(ee),strong:a(ae),thematicBreak:a(ce)},exit:{atxHeading:f(),atxHeadingSequence:C,autolink:f(),autolinkEmail:Y,autolinkProtocol:Q,blockQuote:f(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:$,characterReferenceMarkerNumeric:$,characterReferenceValue:W,codeFenced:f(k),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:y,codeFlowValue:P,codeIndented:f(v),codeText:f(z),codeTextData:P,data:P,definition:f(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:w,emphasis:f(),hardBreakEscape:f(I),hardBreakTrailing:f(I),htmlFlow:f(L),htmlFlowData:P,htmlText:f(D),htmlTextData:P,image:f(B),label:_,labelText:j,lineEnding:O,link:f(R),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:q,resourceDestinationString:N,resourceTitleString:H,resource:U,setextHeading:f(F),setextHeadingLineSequence:A,setextHeadingText:E,strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],a=[],f={stack:[t],tokenStack:r,config:n,enter:c,exit:p,buffer:s,resume:d,setData:i,getData:l};let h=-1;for(;++h0){const e=r[r.length-1];(e[1]||Fn).call(f,void 0,e[0])}for(t.position={start:u(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:u(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h{const t=this.data("settings");return Cn(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},Pn=function(e,n,t){var r={type:String(e)};return void 0!==t&&null!==t||"string"!==typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:void 0!==t&&null!==t&&(r.value=String(t)),r};const On=function(e){if(void 0===e||null===e)return Ln;if("string"===typeof e)return function(e){return In(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c-1?t.offset:null}}}const jn={}.hasOwnProperty;function _n(e){return String(e||"").toUpperCase()}const Nn={}.hasOwnProperty;function Hn(e,n){const t=n.data||{};return"value"in n&&!(Nn.call(t,"hName")||Nn.call(t,"hProperties")||Nn.call(t,"hChildren"))?e.augment(n,Pn("text",n.value)):e(n,"div",qn(e,n))}function Un(e,n,t){const r=n&&n.type;let o;if(!r)throw new Error("Expected node, got `"+n+"`");return o=Nn.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Vn:e.unknownHandler,("function"===typeof o?o:Hn)(e,n,t)}function Vn(e,n){return"children"in n?{...n,children:qn(e,n)}:n}function qn(e,n){const t=[];if("children"in n){const r=n.children;let o=-1;for(;++o55295&&i<57344){const n=e.charCodeAt(t+1);i<56320&&n>56319&&n<57344?(l=String.fromCharCode(i,n),o=1):l="\ufffd"}else l=String.fromCharCode(i);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+o+1,l=""),o&&(t+=o,o=0)}return n.join("")+e.slice(r)}function Wn(e,n){const t=[];let r=-1;for(n&&t.push(Pn("text","\n"));++r0&&t.push(Pn("text","\n")),t}function Qn(e,n){const t=String(n.identifier),r=$n(t.toLowerCase()),o=e.footnoteOrder.indexOf(t);let i;-1===o?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,i=e.footnoteOrder.length):(e.footnoteCounts[t]++,i=o+1);const l=e.footnoteCounts[t];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Pn("text",String(i))])])}function Yn(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return Pn("text","!["+n.alt+r);const o=qn(e,n),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(Pn("text","["));const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push(Pn("text",r)),o}function Kn(e){const n=e.spread;return void 0===n||null===n?e.children.length>1:n}function Xn(e,n,t){let r=0,o=e.length;if(n){let n=e.codePointAt(r);for(;9===n||32===n;)r++,n=e.codePointAt(r)}if(t){let n=e.codePointAt(o-1);for(;9===n||32===n;)o--,n=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Zn={blockquote:function(e,n){return e(n,"blockquote",Wn(qn(e,n),!0))},break:function(e,n){return[e(n,"br"),Pn("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[Pn("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",qn(e,n))},emphasis:function(e,n){return e(n,"em",qn(e,n))},footnoteReference:Qn,footnote:function(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const o=String(r);return t[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:n.children}],position:n.position},Qn(e,{type:"footnoteReference",identifier:o,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,qn(e,n))},html:function(e,n){return e.dangerous?e.augment(n,Pn("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Yn(e,n);const r={src:$n(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:$n(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[Pn("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return Yn(e,n);const r={href:$n(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,qn(e,n))},link:function(e,n){const t={href:$n(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,qn(e,n))},listItem:function(e,n,t){const r=qn(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(Pn("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let u=-1;for(;++u0,!0),r[0]),o=r.index+r[0].length,r=t.exec(n);return i.push(Xn(n.slice(o),o>0,!1)),i.join("")}(String(n.value))))},thematicBreak:function(e,n){return e(n,"hr")},toml:Jn,yaml:Jn,definition:Jn,footnoteDefinition:Jn};function Jn(){return null}const Gn={}.hasOwnProperty;function et(e,n){const t=n||{},r=t.allowDangerousHtml||!1,o={};return l.dangerous=r,l.clobberPrefix=void 0===t.clobberPrefix||null===t.clobberPrefix?"user-content-":t.clobberPrefix,l.footnoteLabel=t.footnoteLabel||"Footnotes",l.footnoteLabelTagName=t.footnoteLabelTagName||"h2",l.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},l.footnoteBackLabel=t.footnoteBackLabel||"Back to content",l.definition=function(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return zn(e,"definition",(e=>{const t=_n(e.identifier);t&&!jn.call(n,t)&&(n[t]=e)})),function(e){const t=_n(e);return t&&jn.call(n,t)?n[t]:null}}(e),l.footnoteById=o,l.footnoteOrder=[],l.footnoteCounts={},l.augment=i,l.handlers={...Zn,...t.handlers},l.unknownHandler=t.unknownHandler,l.passThrough=t.passThrough,zn(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();Gn.call(o,n)||(o[n]=e)})),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:Mn(r),end:Rn(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}function nt(e,n){const t=et(e,n),r=Un(t,e,null),o=function(e){let n=-1;const t=[];for(;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(n)}const s=o[o.length-1];if(s&&"element"===s.type&&"p"===s.tagName){const e=s.children[s.children.length-1];e&&"text"===e.type?e.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...a)}else o.push(...a);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+l},children:Wn(o,!0)};r.position&&(c.position=r.position),t.push(c)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[Pn("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Wn(t,!0)},{type:"text",value:"\n"}]}}(t);return o&&r.children.push(Pn("text","\n"),o),Array.isArray(r)?{type:"root",children:r}:r}var tt=function(e,n){return e&&"run"in e?function(e,n){return(t,r,o)=>{e.run(nt(t,n),r,(e=>{o(e)}))}}(e,n):function(e){return n=>nt(n,e)}(e||n)};var rt=t(45697);class ot{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function it(e,n){const t={},r={};let o=-1;for(;++o"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),St=bt({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ct(e,n){return n in e?e[n]:n}function Et(e,n){return Ct(e,n.toLowerCase())}const At=bt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Et,properties:{xmlns:null,xmlnsXLink:null}}),Ft=bt({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:pt,ariaColIndex:pt,ariaColSpan:pt,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:dt,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:pt,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:pt,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:dt,ariaRowCount:pt,ariaRowIndex:pt,ariaRowSpan:pt,ariaSelected:ct,ariaSetSize:pt,ariaSort:null,ariaValueMax:pt,ariaValueMin:pt,ariaValueNow:pt,ariaValueText:null,role:null}}),Tt=bt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Et,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ht,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:st,allowPaymentRequest:st,allowUserMedia:st,alt:null,as:null,async:st,autoCapitalize:null,autoComplete:dt,autoFocus:st,autoPlay:st,capture:st,charSet:null,checked:st,cite:null,className:dt,cols:pt,colSpan:null,content:null,contentEditable:ct,controls:st,controlsList:dt,coords:pt|ht,crossOrigin:null,data:null,dateTime:null,decoding:null,default:st,defer:st,dir:null,dirName:null,disabled:st,download:ft,draggable:ct,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:st,formTarget:null,headers:dt,height:pt,hidden:st,high:pt,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:st,itemId:null,itemProp:dt,itemRef:dt,itemScope:st,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:st,low:pt,manifest:null,max:null,maxLength:pt,media:null,method:null,min:null,minLength:pt,multiple:st,muted:st,name:null,nonce:null,noModule:st,noValidate:st,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:st,optimum:pt,pattern:null,ping:dt,placeholder:null,playsInline:st,poster:null,preload:null,readOnly:st,referrerPolicy:null,rel:dt,required:st,reversed:st,rows:pt,rowSpan:pt,sandbox:dt,scope:null,scoped:st,seamless:st,selected:st,shape:null,size:pt,sizes:null,slot:null,span:pt,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pt,step:null,style:null,tabIndex:pt,target:null,title:null,translate:null,type:null,typeMustMatch:st,useMap:null,value:ct,width:pt,wrap:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:pt,borderColor:null,bottomMargin:pt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:st,declare:st,event:null,face:null,frame:null,frameBorder:null,hSpace:pt,leftMargin:pt,link:null,longDesc:null,lowSrc:null,marginHeight:pt,marginWidth:pt,noResize:st,noHref:st,noShade:st,noWrap:st,object:null,profile:null,prompt:null,rev:null,rightMargin:pt,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:pt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:st,disableRemotePlayback:st,prefix:null,property:null,results:pt,security:null,unselectable:null}}),Pt=bt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Ct,properties:{about:mt,accentHeight:pt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pt,amplitude:pt,arabicForm:null,ascent:pt,attributeName:null,attributeType:null,azimuth:pt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pt,by:null,calcMode:null,capHeight:pt,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pt,diffuseConstant:pt,direction:null,display:null,dur:null,divisor:pt,dominantBaseline:null,download:st,dx:null,dy:null,edgeMode:null,editable:null,elevation:pt,enableBackground:null,end:null,event:null,exponent:pt,externalResourcesRequired:null,fill:null,fillOpacity:pt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ht,g2:ht,glyphName:ht,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pt,horizOriginX:pt,horizOriginY:pt,id:null,ideographic:pt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pt,k:pt,k1:pt,k2:pt,k3:pt,k4:pt,kernelMatrix:mt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pt,overlineThickness:pt,paintOrder:null,panose1:null,path:null,pathLength:pt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pt,pointsAtY:pt,pointsAtZ:pt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mt,rev:mt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mt,requiredFeatures:mt,requiredFonts:mt,requiredFormats:mt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pt,specularExponent:pt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pt,strikethroughThickness:pt,string:null,stroke:null,strokeDashArray:mt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pt,strokeOpacity:pt,strokeWidth:null,style:null,surfaceScale:pt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mt,tabIndex:pt,tableValues:null,target:null,targetX:pt,targetY:pt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mt,to:null,transform:null,u1:null,u2:null,underlinePosition:pt,underlineThickness:pt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pt,values:null,vAlphabetic:pt,vMathematical:pt,vectorEffect:null,vHanging:pt,vIdeographic:pt,version:null,vertAdvY:pt,vertOriginX:pt,vertOriginY:pt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Ot=it([St,wt,At,Ft,Tt],"html"),It=it([St,wt,At,Ft,Pt],"svg"),Lt=function(e){if(void 0===e||null===e)return zt;if("string"===typeof e)return function(e){return Dt(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c{!function(e,n,t,r){"function"===typeof n&&"function"!==typeof t&&(r=t,t=n,n=null),Mt(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)}(n,"element",((n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"===typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"===typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t}))}}const Bt=["http","https","mailto","tel"];var jt=t(59864);function _t(e){var n=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}const Nt=/^data[-\w.:]+$/i,Ht=/-[a-z]/g,Ut=/[A-Z]/g;function Vt(e){return"-"+e.toLowerCase()}function qt(e){return e.charAt(1).toUpperCase()}const $t={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Wt=t(57848);const Qt={}.hasOwnProperty,Yt=new Set(["table","thead","tbody","tfoot","tr"]);function Kt(e,n){const t=[];let r,o=-1;for(;++oString(e))).join("")),!h&&o.rawSourcePos&&(a.sourcePosition=n.position),!h&&o.includeElementIndex&&(a.index=Zt(r,n),a.siblingCount=Zt(r)),h||(a.node=n),f.length>0?i.createElement(d,a,f):i.createElement(d,a)}function Zt(e,n){let t=-1,r=0;for(;++t4&&"data"===t.slice(0,4)&&Nt.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Ht,qt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Ht.test(e)){let t=e.replace(Ut,Vt);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=xt}return new o(r,n)}(r.schema,n);let i=t;null!==i&&void 0!==i&&i===i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,n){var t=n||{};return""===e[e.length-1]&&(e=e.concat("")),e.join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"===typeof i&&(i=function(e){const n={};try{Wt(e,t)}catch{}return n;function t(e,t){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,Gt)]=t}}(i)),o.space&&o.property?e[Qt.call($t,o.property)?$t[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function Gt(e,n){return n.toUpperCase()}const er={}.hasOwnProperty,nr={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function tr(e){for(const i in nr)if(er.call(nr,i)&&er.call(e,i)){const e=nr[i];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${i}\` (see for more info)`),delete nr[i]}const n=A().use(Tn).use(e.remarkPlugins||[]).use(tt,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Rt,e),t=new x;"string"===typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},Kt({options:e,schema:Ot,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}tr.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},tr.propTypes={children:rt.string,className:rt.string,allowElement:rt.func,allowedElements:rt.arrayOf(rt.string),disallowedElements:rt.arrayOf(rt.string),unwrapDisallowed:rt.bool,remarkPlugins:rt.arrayOf(rt.oneOfType([rt.object,rt.func,rt.arrayOf(rt.oneOfType([rt.bool,rt.string,rt.object,rt.func,rt.arrayOf(rt.any)]))])),rehypePlugins:rt.arrayOf(rt.oneOfType([rt.object,rt.func,rt.arrayOf(rt.oneOfType([rt.bool,rt.string,rt.object,rt.func,rt.arrayOf(rt.any)]))])),sourcePos:rt.bool,rawSourcePos:rt.bool,skipHtml:rt.bool,includeElementIndex:rt.bool,transformLinkUri:rt.oneOfType([rt.func,rt.bool]),linkTarget:rt.oneOfType([rt.func,rt.string]),transformImageUri:rt.func,components:rt.object}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2069],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},l=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var n,t,r,o,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"===typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});p=n||t<0||g&&e-h>=c}function b(){var e=o();if(v(e))return w(e);p=setTimeout(b,function(e){var t=n-(e-d);return g?u(t,c-(e-h)):t}(e))}function w(e){return p=void 0,y&&a?x(e):(a=s=void 0,f)}function S(){var e=o(),t=v(e);if(a=arguments,s=this,d=e,t){if(void 0===p)return k(d);if(g)return clearTimeout(p),p=setTimeout(b,n),x(d)}return void 0===p&&(p=setTimeout(b,n)),f}return n=i(n)||0,r(t)&&(m=!!t.leading,c=(g="maxWait"in t)?l(i(t.maxWait)||0,n):c,y="trailing"in t?!!t.trailing:y),S.cancel=function(){void 0!==p&&clearTimeout(p),h=0,a=d=s=p=void 0},S.flush=function(){return void 0===p?f:w(o())},S}},33448:function(e,n,t){var r=t(44239),o=t(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),o=t(13218),i=t(33448),l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=u.test(e);return t||a.test(e)?s(e.slice(2),t?2:8):l.test(e)?NaN:+e}},69921:function(e,n){"use strict";var t,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case i:case u:case l:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case m:case h:case a:return e;default:return n}}case o:return n}}}t=Symbol.for("react.module.reference"),n.ContextConsumer=s,n.ContextProvider=a,n.Element=r,n.ForwardRef=f,n.Fragment=i,n.Lazy=m,n.Memo=h,n.Portal=o,n.Profiler=u,n.StrictMode=l,n.Suspense=p,n.SuspenseList=d,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return y(e)===s},n.isContextProvider=function(e){return y(e)===a},n.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return y(e)===f},n.isFragment=function(e){return y(e)===i},n.isLazy=function(e){return y(e)===m},n.isMemo=function(e){return y(e)===h},n.isPortal=function(e){return y(e)===o},n.isProfiler=function(e){return y(e)===u},n.isStrictMode=function(e){return y(e)===l},n.isSuspense=function(e){return y(e)===p},n.isSuspenseList=function(e){return y(e)===d},n.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===u||e===l||e===p||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===t||void 0!==e.getModuleId)},n.typeOf=y},59864:function(e,n,t){"use strict";e.exports=t(69921)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,o=null;if(!e||"string"!==typeof e)return o;for(var i,l,u=r(e),a="function"===typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1);return o<0?"":e.slice(r,o)}if(n===e)return"";let l=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(o=i):(u=-1,o=l));r===o?o=l:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(d(e),0===e.length)return".";let n,t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){d(e);let n,t=e.length,r=-1,o=0,i=-1,l=0;for(;t--;){const u=e.charCodeAt(t);if(47!==u)r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==l&&(l=1):i>-1&&(l=-1);else if(n){o=t+1;break}}if(i<0||r<0||0===l||1===l&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),l=a,u=0;continue}}else if(o.length>0){o="",i=0,l=a,u=0;continue}n&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(l+1,a):o=e.slice(l+1,a),i=a-l-1;l=a,u=0}else 46===t&&u>-1?u++:u=-1}return o}(e,!n);0!==t.length||n||(t=".");t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/");return n?"/"+t:t}(n)},sep:"/"};function d(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const h={cwd:function(){return"/"}};function m(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function g(e){if("string"===typeof e)e=new URL(e);else if(!m(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const n=e.pathname;let t=-1;for(;++tn.length;let u;r&&n.push(o);try{u=e.apply(this,n)}catch(i){const n=i;if(r&&t)throw n;return o(n)}r||(u instanceof Promise?u.then(l,o):u instanceof Error?o(u):l(u))}function o(e,...r){t||(t=!0,n(e,...r))}function l(e){o(null,e)}}(u,o)(...l):r(null,...l)}}(null,...n)},use:function(t){if("function"!==typeof t)throw new TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}const A=function e(){const n=E(),t=[];let r,o={},i=-1;return u.data=function(e,n){if("string"===typeof e)return 2===arguments.length?(I("data",r),o[e]=n,u):F.call(o,e)&&o[e]||null;if(e)return I("data",r),o=e,u;return o},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(r)return u;for(;++i{if(!e&&n&&t){const o=u.stringify(n,t);void 0===o||null===o||("string"===typeof(r=o)||l(r)?t.value=o:t.result=o),i(e,t)}else i(e);var r}))}t(null,n)},u.processSync=function(e){let n;u.freeze(),P("processSync",u.Parser),O("processSync",u.Compiler);const t=z(e);return u.process(t,r),D("processSync","process",n),t;function r(e){n=!0,w(e)}},u;function u(){const n=e();let r=-1;for(;++ro?0:o+n:n>o?o:n,t=t>0?t:0,r.length<1e4)i=Array.from(r),i.unshift(n,t),[].splice.apply(e,i);else for(t&&[].splice.apply(e,[n,t]);l0?(B(e,e.length,0,n),e):n}const _={}.hasOwnProperty;function N(e,n){let t;for(t in n){const r=(_.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let i;for(i in o){_.call(r,i)||(r[i]=[]);const e=o[i];H(r[i],Array.isArray(e)?e:e?[e]:[])}}}function H(e,n){let t=-1;const r=[];for(;++ti))return;const t=n.events.length;let o,u,a=t;for(;a--;)if("exit"===n.events[a][0]&&"chunkFlow"===n.events[a][1].type){if(o){u=n.events[a][1].end;break}o=!0}for(y(l),e=t;er;){const r=t[o];n.containerState=r[1],r[0].exit.call(n,e)}t.length=r}function x(){r.write([null]),o=void 0,r=void 0,n.containerState._closeFlow=void 0}}},oe={tokenize:function(e,n,t){return ne(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ie={tokenize:function(e,n,t){return ne(e,(function(e){return null===e||X(e)?n(e):t(e)}),"linePrefix")},partial:!0};function le(e){const n={};let t,r,o,i,l,u,a,s=-1;for(;++s=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}},partial:!0};const ce={tokenize:function(e){const n=this,t=e.attempt(ie,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}),e.attempt(this.parser.constructs.flowInitial,r,ne(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ae,r)),"linePrefix")));return t;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t;e.consume(r)}}};const fe={resolveAll:me()},pe=he("string"),de=he("text");function he(e){return{tokenize:function(n){const t=this,r=this.parser.constructs[e],o=n.attempt(r,i,l);return i;function i(e){return a(e)?o(e):l(e)}function l(e){if(null!==e)return n.enter("data"),n.consume(e),u;n.consume(e)}function u(e){return a(e)?(n.exit("data"),o(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;const n=r[e];let o=-1;if(n)for(;++o-1&&(l[0]=l[0].slice(r)),i>0&&l.push(e[o].slice(0,i)));return l}(l,e)}function h(){return Object.assign({},r)}function m(){let e;for(;r._indexs?t(o):(e.consume(o),h):41===o?c--?(e.consume(o),h):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):null===o||K(o)?c?t(o):(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),n(o)):Y(o)?t(o):(e.consume(o),92===o?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function Ee(e,n,t,r,o,i){const l=this;let u,a=0;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!u||94===f&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),n):X(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||X(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),u=u||!Z(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function Ae(e,n,t,r,o,i){let l;return function(n){return e.enter(r),e.enter(o),e.consume(n),e.exit(o),l=40===n?41:n,u};function u(t){return t===l?(e.enter(o),e.consume(t),e.exit(o),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===l?(e.exit(i),u(l)):null===n?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ne(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===l||null===n||X(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===l||92===n?(e.consume(n),s):s(n)}}function Fe(e,n){let t;return function r(o){if(X(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t=!0,r;if(Z(o))return ne(e,r,t?"linePrefix":"lineSuffix")(o);return n(o)}}function Te(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pe={name:"definition",tokenize:function(e,n,t){const r=this;let o;return function(n){return e.enter("definition"),Ee.call(r,e,i,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function i(n){return o=Te(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===n?(e.enter("definitionMarker"),e.consume(n),e.exit("definitionMarker"),Fe(e,Ce(e,e.attempt(Oe,ne(e,l,"whitespace"),ne(e,l,"whitespace")),t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):t(n)}function l(i){return null===i||X(i)?(e.exit("definition"),r.parser.defined.includes(o)||r.parser.defined.push(o),n(i)):t(i)}}},Oe={tokenize:function(e,n,t){return function(n){return K(n)?Fe(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?Ae(e,ne(e,o,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function o(e){return null===e||X(e)?n(e):t(e)}},partial:!0};const Ie={name:"codeIndented",tokenize:function(e,n,t){const r=this;return function(n){return e.enter("codeIndented"),ne(e,o,"linePrefix",5)(n)};function o(e){const n=r.events[r.events.length-1];return n&&"linePrefix"===n[1].type&&n[2].sliceSerialize(n[1],!0).length>=4?i(e):t(e)}function i(n){return null===n?u(n):X(n)?e.attempt(Le,i,u)(n):(e.enter("codeFlowValue"),l(n))}function l(n){return null===n||X(n)?(e.exit("codeFlowValue"),i(n)):(e.consume(n),l)}function u(t){return e.exit("codeIndented"),n(t)}}},Le={tokenize:function(e,n,t){const r=this;return o;function o(n){return r.parser.lazy[r.now().line]?t(n):X(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o):ne(e,i,"linePrefix",5)(n)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):X(e)?o(e):t(e)}},partial:!0};const De={name:"headingAtx",tokenize:function(e,n,t){const r=this;let o=0;return function(n){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),i(n)};function i(u){return 35===u&&o++<6?(e.consume(u),i):null===u||K(u)?(e.exit("atxHeadingSequence"),r.interrupt?n(u):l(u)):t(u)}function l(t){return 35===t?(e.enter("atxHeadingSequence"),u(t)):null===t||X(t)?(e.exit("atxHeading"),n(t)):Z(t)?ne(e,l,"whitespace")(t):(e.enter("atxHeadingText"),a(t))}function u(n){return 35===n?(e.consume(n),u):(e.exit("atxHeadingSequence"),l(n))}function a(n){return null===n||35===n||K(n)?(e.exit("atxHeadingText"),l(n)):(e.consume(n),a)}},resolve:function(e,n){let t,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},B(e,i,o-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]]));return e}};const ze={name:"setextUnderline",tokenize:function(e,n,t){const r=this;let o,i,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){i="paragraph"===r.events[l][1].type;break}return function(n){if(!r.parser.lazy[r.now().line]&&(r.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),o=n,u(n);return t(n)};function u(n){return n===o?(e.consume(n),u):(e.exit("setextHeadingLineSequence"),ne(e,a,"lineSuffix")(n))}function a(r){return null===r||X(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const l={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",l,n]),e.splice(o+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[o][1].end)):e[t][1]=l;return e.push(["exit",l,n]),e}};const Me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Re=["pre","script","style","textarea"],Be={name:"htmlFlow",tokenize:function(e,n,t){const r=this;let o,i,l,u,a;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(u){return 33===u?(e.consume(u),c):47===u?(e.consume(u),d):63===u?(e.consume(u),o=3,r.interrupt?n:z):U(u)?(e.consume(u),l=String.fromCharCode(u),i=!0,h):t(u)}function c(i){return 45===i?(e.consume(i),o=2,f):91===i?(e.consume(i),o=5,l="CDATA[",u=0,p):U(i)?(e.consume(i),o=4,r.interrupt?n:z):t(i)}function f(o){return 45===o?(e.consume(o),r.interrupt?n:z):t(o)}function p(o){return o===l.charCodeAt(u++)?(e.consume(o),u===l.length?r.interrupt?n:A:p):t(o)}function d(n){return U(n)?(e.consume(n),l=String.fromCharCode(n),h):t(n)}function h(u){return null===u||47===u||62===u||K(u)?47!==u&&i&&Re.includes(l.toLowerCase())?(o=1,r.interrupt?n(u):A(u)):Me.includes(l.toLowerCase())?(o=6,47===u?(e.consume(u),m):r.interrupt?n(u):A(u)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(u):i?y(u):g(u)):45===u||$(u)?(e.consume(u),l+=String.fromCharCode(u),h):t(u)}function m(o){return 62===o?(e.consume(o),r.interrupt?n:A):t(o)}function g(n){return Z(n)?(e.consume(n),g):C(n)}function y(n){return 47===n?(e.consume(n),C):58===n||95===n||U(n)?(e.consume(n),x):Z(n)?(e.consume(n),y):C(n)}function x(n){return 45===n||46===n||58===n||95===n||$(n)?(e.consume(n),x):k(n)}function k(n){return 61===n?(e.consume(n),v):Z(n)?(e.consume(n),k):y(n)}function v(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),a=n,b):Z(n)?(e.consume(n),v):(a=null,w(n))}function b(n){return null===n||X(n)?t(n):n===a?(e.consume(n),S):(e.consume(n),b)}function w(n){return null===n||34===n||39===n||60===n||61===n||62===n||96===n||K(n)?k(n):(e.consume(n),w)}function S(e){return 47===e||62===e||Z(e)?y(e):t(e)}function C(n){return 62===n?(e.consume(n),E):t(n)}function E(n){return Z(n)?(e.consume(n),E):null===n||X(n)?A(n):t(n)}function A(n){return 45===n&&2===o?(e.consume(n),O):60===n&&1===o?(e.consume(n),I):62===n&&4===o?(e.consume(n),M):63===n&&3===o?(e.consume(n),z):93===n&&5===o?(e.consume(n),D):!X(n)||6!==o&&7!==o?null===n||X(n)?F(n):(e.consume(n),A):e.check(je,M,F)(n)}function F(n){return e.exit("htmlFlowData"),T(n)}function T(n){return null===n?R(n):X(n)?e.attempt({tokenize:P,partial:!0},T,R)(n):(e.enter("htmlFlowData"),A(n))}function P(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?t(e):n(e)}}function O(n){return 45===n?(e.consume(n),z):A(n)}function I(n){return 47===n?(e.consume(n),l="",L):A(n)}function L(n){return 62===n&&Re.includes(l.toLowerCase())?(e.consume(n),M):U(n)&&l.length<8?(e.consume(n),l+=String.fromCharCode(n),L):A(n)}function D(n){return 93===n?(e.consume(n),z):A(n)}function z(n){return 62===n?(e.consume(n),M):45===n&&2===o?(e.consume(n),z):A(n)}function M(n){return null===n||X(n)?(e.exit("htmlFlowData"),R(n)):(e.consume(n),M)}function R(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2));return e},concrete:!0},je={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(ie,n,t)}},partial:!0};const _e={name:"codeFenced",tokenize:function(e,n,t){const r=this,o={tokenize:function(e,n,t){let r=0;return ne(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(n)}function i(n){return n===a?(e.consume(n),r++,i):r1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);Je(f,-u),Je(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},l={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},l.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},l.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=j(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=j(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",o,n]]),a=j(a,ye(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=j(a,[["exit",o,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,B(e,t-1,c-t+3,a),c=t+a.length-s-2;break}c=-1;for(;++c13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||65535===(65535&t)||65534===(65535&t)||t>1114111?"\ufffd":String.fromCharCode(t)}const yn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xn(e,n,t){if(n)return n;if(35===t.charCodeAt(0)){const e=t.charCodeAt(1),n=120===e||88===e;return gn(t.slice(n?2:1),n?16:10)}return He(t)||e}const kn={}.hasOwnProperty,vn=function(e,n,t){return"string"!==typeof n&&(t=n,n=void 0),function(e={}){const n=bn({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ie),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(ne),blockQuote:s(X),characterEscape:P,characterReference:P,codeFenced:s(Z),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Z,c),codeText:s(J,c),codeTextData:P,data:P,codeFlowValue:P,definition:s(G),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(ee),hardBreakEscape:s(te),hardBreakTrailing:s(te),htmlFlow:s(re,c),htmlFlowData:P,htmlText:s(re,c),htmlTextData:P,image:s(oe),label:c,link:s(ie),listItem:s(ue),listItemValue:g,listOrdered:s(le,m),listUnordered:s(le),paragraph:s(ae),reference:q,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(ne),strong:s(se),thematicBreak:s(fe)},exit:{atxHeading:p(),atxHeadingSequence:E,autolink:p(),autolinkEmail:K,autolinkProtocol:Y,blockQuote:p(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:Q,codeFenced:p(v),codeFencedFence:k,codeFencedFenceInfo:y,codeFencedFenceMeta:x,codeFlowValue:O,codeIndented:p(b),codeText:p(R),codeTextData:O,data:O,definition:p(),definitionDestinationString:C,definitionLabelString:w,definitionTitleString:S,emphasis:p(),hardBreakEscape:p(L),hardBreakTrailing:p(L),htmlFlow:p(D),htmlFlowData:O,htmlText:p(z),htmlTextData:O,image:p(j),label:N,labelText:_,lineEnding:I,link:p(B),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:$,resourceDestinationString:H,resourceTitleString:U,resource:V,setextHeading:p(T),setextHeadingLineSequence:F,setextHeadingText:A,strong:p(),thematicBreak:p()}},e.mdastExtensions||[]),t={};return r;function r(e){let t={type:"root",children:[]};const r=[],u=[],s={stack:[t],tokenStack:r,config:n,enter:f,exit:d,buffer:c,resume:h,setData:i,getData:l};let p=-1;for(;++p0){const e=r[r.length-1];(e[1]||Sn).call(s,void 0,e[0])}for(t.position={start:a(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:a(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p{const t=this.data("settings");return vn(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},En=function(e,n,t){var r={type:String(e)};return void 0!==t&&null!==t||"string"!==typeof n&&!Array.isArray(n)?Object.assign(r,n):t=n,Array.isArray(t)?r.children=t:void 0!==t&&null!==t&&(r.value=String(t)),r};const An=function(e){if(void 0===e||null===e)return Tn;if("string"===typeof e)return function(e){return Fn(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c-1?t.offset:null}}}const zn={}.hasOwnProperty;function Mn(e){return String(e||"").toUpperCase()}const Rn={}.hasOwnProperty;function Bn(e,n){const t=n.data||{};return"value"in n&&!(Rn.call(t,"hName")||Rn.call(t,"hProperties")||Rn.call(t,"hChildren"))?e.augment(n,En("text",n.value)):e(n,"div",Nn(e,n))}function jn(e,n,t){const r=n&&n.type;let o;if(!r)throw new Error("Expected node, got `"+n+"`");return o=Rn.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?_n:e.unknownHandler,("function"===typeof o?o:Bn)(e,n,t)}function _n(e,n){return"children"in n?{...n,children:Nn(e,n)}:n}function Nn(e,n){const t=[];if("children"in n){const r=n.children;let o=-1;for(;++o55295&&i<57344){const n=e.charCodeAt(t+1);i<56320&&n>56319&&n<57344?(l=String.fromCharCode(i,n),o=1):l="\ufffd"}else l=String.fromCharCode(i);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+o+1,l=""),o&&(t+=o,o=0)}return n.join("")+e.slice(r)}function Un(e,n){const t=[];let r=-1;for(n&&t.push(En("text","\n"));++r0&&t.push(En("text","\n")),t}function Vn(e,n){const t=String(n.identifier),r=Hn(t.toLowerCase()),o=e.footnoteOrder.indexOf(t);let i;-1===o?(e.footnoteOrder.push(t),e.footnoteCounts[t]=1,i=e.footnoteOrder.length):(e.footnoteCounts[t]++,i=o+1);const l=e.footnoteCounts[t];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[En("text",String(i))])])}function qn(e,n){const t=n.referenceType;let r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return En("text","!["+n.alt+r);const o=Nn(e,n),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift(En("text","["));const l=o[o.length-1];return l&&"text"===l.type?l.value+=r:o.push(En("text",r)),o}function $n(e){const n=e.spread;return void 0===n||null===n?e.children.length>1:n}function Wn(e,n,t){let r=0,o=e.length;if(n){let n=e.codePointAt(r);for(;9===n||32===n;)r++,n=e.codePointAt(r)}if(t){let n=e.codePointAt(o-1);for(;9===n||32===n;)o--,n=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Qn={blockquote:function(e,n){return e(n,"blockquote",Un(Nn(e,n),!0))},break:function(e,n){return[e(n,"br"),En("text","\n")]},code:function(e,n){const t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),o={};r&&(o.className=["language-"+r]);const i=e(n,"code",o,[En("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",Nn(e,n))},emphasis:function(e,n){return e(n,"em",Nn(e,n))},footnoteReference:Vn,footnote:function(e,n){const t=e.footnoteById;let r=1;for(;r in t;)r++;const o=String(r);return t[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:n.children}],position:n.position},Vn(e,{type:"footnoteReference",identifier:o,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,Nn(e,n))},html:function(e,n){return e.dangerous?e.augment(n,En("raw",n.value)):null},imageReference:function(e,n){const t=e.definition(n.identifier);if(!t)return qn(e,n);const r={src:Hn(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){const t={src:Hn(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[En("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){const t=e.definition(n.identifier);if(!t)return qn(e,n);const r={href:Hn(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,Nn(e,n))},link:function(e,n){const t={href:Hn(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,Nn(e,n))},listItem:function(e,n,t){const r=Nn(e,n),o=t?function(e){let n=e.spread;const t=e.children;let r=-1;for(;!n&&++r0&&t.children.unshift(En("text"," ")),t.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let u=-1;for(;++u0,!0),r[0]),o=r.index+r[0].length,r=t.exec(n);return i.push(Wn(n.slice(o),o>0,!1)),i.join("")}(String(n.value))))},thematicBreak:function(e,n){return e(n,"hr")},toml:Yn,yaml:Yn,definition:Yn,footnoteDefinition:Yn};function Yn(){return null}const Kn={}.hasOwnProperty;function Xn(e,n){const t=n||{},r=t.allowDangerousHtml||!1,o={};return l.dangerous=r,l.clobberPrefix=void 0===t.clobberPrefix||null===t.clobberPrefix?"user-content-":t.clobberPrefix,l.footnoteLabel=t.footnoteLabel||"Footnotes",l.footnoteLabelTagName=t.footnoteLabelTagName||"h2",l.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},l.footnoteBackLabel=t.footnoteBackLabel||"Back to content",l.definition=function(e){const n=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return On(e,"definition",(e=>{const t=Mn(e.identifier);t&&!zn.call(n,t)&&(n[t]=e)})),function(e){const t=Mn(e);return t&&zn.call(n,t)?n[t]:null}}(e),l.footnoteById=o,l.footnoteOrder=[],l.footnoteCounts={},l.augment=i,l.handlers={...Qn,...t.handlers},l.unknownHandler=t.unknownHandler,l.passThrough=t.passThrough,On(e,"footnoteDefinition",(e=>{const n=String(e.identifier).toUpperCase();Kn.call(o,n)||(o[n]=e)})),l;function i(e,n){if(e&&"data"in e&&e.data){const t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){const r="type"in e?e:{position:e};(t=r)&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column&&(n.position={start:In(r),end:Ln(r)})}var t;return n}function l(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}function Zn(e,n){const t=Xn(e,n),r=jn(t,e,null),o=function(e){let n=-1;const t=[];for(;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};u>1&&n.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(n)}const s=o[o.length-1];if(s&&"element"===s.type&&"p"===s.tagName){const e=s.children[s.children.length-1];e&&"text"===e.type?e.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...a)}else o.push(...a);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+l},children:Un(o,!0)};r.position&&(c.position=r.position),t.push(c)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[En("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:Un(t,!0)},{type:"text",value:"\n"}]}}(t);return o&&r.children.push(En("text","\n"),o),Array.isArray(r)?{type:"root",children:r}:r}var Jn=function(e,n){return e&&"run"in e?function(e,n){return(t,r,o)=>{e.run(Zn(t,n),r,(e=>{o(e)}))}}(e,n):function(e){return n=>Zn(n,e)}(e||n)};var Gn=t(45697);class et{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function nt(e,n){const t={},r={};let o=-1;for(;++o"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),kt=yt({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function vt(e,n){return n in e?e[n]:n}function bt(e,n){return vt(e,n.toLowerCase())}const wt=yt({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:bt,properties:{xmlns:null,xmlnsXLink:null}}),St=yt({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:lt,ariaAutoComplete:null,ariaBusy:lt,ariaChecked:lt,ariaColCount:at,ariaColIndex:at,ariaColSpan:at,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:lt,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:lt,ariaFlowTo:st,ariaGrabbed:lt,ariaHasPopup:null,ariaHidden:lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:at,ariaLive:null,ariaModal:lt,ariaMultiLine:lt,ariaMultiSelectable:lt,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:at,ariaPressed:lt,ariaReadOnly:lt,ariaRelevant:null,ariaRequired:lt,ariaRoleDescription:st,ariaRowCount:at,ariaRowIndex:at,ariaRowSpan:at,ariaSelected:lt,ariaSetSize:at,ariaSort:null,ariaValueMax:at,ariaValueMin:at,ariaValueNow:at,ariaValueText:null,role:null}}),Ct=yt({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:bt,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ct,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:it,allowPaymentRequest:it,allowUserMedia:it,alt:null,as:null,async:it,autoCapitalize:null,autoComplete:st,autoFocus:it,autoPlay:it,capture:it,charSet:null,checked:it,cite:null,className:st,cols:at,colSpan:null,content:null,contentEditable:lt,controls:it,controlsList:st,coords:at|ct,crossOrigin:null,data:null,dateTime:null,decoding:null,default:it,defer:it,dir:null,dirName:null,disabled:it,download:ut,draggable:lt,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:it,formTarget:null,headers:st,height:at,hidden:it,high:at,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:it,itemId:null,itemProp:st,itemRef:st,itemScope:it,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:it,low:at,manifest:null,max:null,maxLength:at,media:null,method:null,min:null,minLength:at,multiple:it,muted:it,name:null,nonce:null,noModule:it,noValidate:it,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:it,optimum:at,pattern:null,ping:st,placeholder:null,playsInline:it,poster:null,preload:null,readOnly:it,referrerPolicy:null,rel:st,required:it,reversed:it,rows:at,rowSpan:at,sandbox:st,scope:null,scoped:it,seamless:it,selected:it,shape:null,size:at,sizes:null,slot:null,span:at,spellCheck:lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:at,step:null,style:null,tabIndex:at,target:null,title:null,translate:null,type:null,typeMustMatch:it,useMap:null,value:lt,width:at,wrap:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:at,borderColor:null,bottomMargin:at,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:it,declare:it,event:null,face:null,frame:null,frameBorder:null,hSpace:at,leftMargin:at,link:null,longDesc:null,lowSrc:null,marginHeight:at,marginWidth:at,noResize:it,noHref:it,noShade:it,noWrap:it,object:null,profile:null,prompt:null,rev:null,rightMargin:at,rules:null,scheme:null,scrolling:lt,standby:null,summary:null,text:null,topMargin:at,valueType:null,version:null,vAlign:null,vLink:null,vSpace:at,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:it,disableRemotePlayback:it,prefix:null,property:null,results:at,security:null,unselectable:null}}),Et=yt({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:vt,properties:{about:ft,accentHeight:at,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:at,amplitude:at,arabicForm:null,ascent:at,attributeName:null,attributeType:null,azimuth:at,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:at,by:null,calcMode:null,capHeight:at,className:st,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:at,diffuseConstant:at,direction:null,display:null,dur:null,divisor:at,dominantBaseline:null,download:it,dx:null,dy:null,edgeMode:null,editable:null,elevation:at,enableBackground:null,end:null,event:null,exponent:at,externalResourcesRequired:null,fill:null,fillOpacity:at,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ct,g2:ct,glyphName:ct,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:at,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:at,horizOriginX:at,horizOriginY:at,id:null,ideographic:at,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:at,k:at,k1:at,k2:at,k3:at,k4:at,kernelMatrix:ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:at,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:at,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:at,overlineThickness:at,paintOrder:null,panose1:null,path:null,pathLength:at,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:at,pointsAtY:at,pointsAtZ:at,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ft,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ft,rev:ft,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ft,requiredFeatures:ft,requiredFonts:ft,requiredFormats:ft,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:at,specularExponent:at,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:at,strikethroughThickness:at,string:null,stroke:null,strokeDashArray:ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:at,strokeOpacity:at,strokeWidth:null,style:null,surfaceScale:at,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ft,tabIndex:at,tableValues:null,target:null,targetX:at,targetY:at,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ft,to:null,transform:null,u1:null,u2:null,underlinePosition:at,underlineThickness:at,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:at,values:null,vAlphabetic:at,vMathematical:at,vectorEffect:null,vHanging:at,vIdeographic:at,version:null,vertAdvY:at,vertOriginX:at,vertOriginY:at,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:at,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),At=nt([kt,xt,wt,St,Ct],"html"),Ft=nt([kt,xt,wt,St,Et],"svg"),Tt=function(e){if(void 0===e||null===e)return Ot;if("string"===typeof e)return function(e){return Pt(n);function n(n){return n&&n.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const n=[];let t=-1;for(;++t":"")+")"}));return f;function f(){let s,c,f,p=[];if((!n||o(l,u,a[a.length-1]||null))&&(p=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(t(l,a)),false===p[0]))return p;if(l.children&&"skip"!==p[0])for(c=(r?l.children.length:-1)+i,f=a.concat(l);c>-1&&c{!function(e,n,t,r){"function"===typeof n&&"function"!==typeof t&&(r=t,t=n,n=null),It(e,n,(function(e,n){const r=n[n.length-1];return t(e,r?r.children.indexOf(e):null,r)}),r)}(n,"element",((n,t,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(n.tagName)),!i&&e.allowElement&&"number"===typeof t&&(i=!e.allowElement(n,t,o)),i&&"number"===typeof t)return e.unwrapDisallowed&&n.children?o.children.splice(t,1,...n.children):o.children.splice(t,1),t}))}}const Dt=["http","https","mailto","tel"];var zt=t(59864);function Mt(e){var n=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}const Rt=/^data[-\w.:]+$/i,Bt=/-[a-z]/g,jt=/[A-Z]/g;function _t(e){return"-"+e.toLowerCase()}function Nt(e){return e.charAt(1).toUpperCase()}const Ht={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Ut=t(57848);const Vt={}.hasOwnProperty,qt=new Set(["table","thead","tbody","tfoot","tr"]);function $t(e,n){const t=[];let r,o=-1;for(;++oString(e))).join("")),!h&&o.rawSourcePos&&(a.sourcePosition=n.position),!h&&o.includeElementIndex&&(a.index=Qt(r,n),a.siblingCount=Qt(r)),h||(a.node=n),f.length>0?i.createElement(d,a,f):i.createElement(d,a)}function Qt(e,n){let t=-1,r=0;for(;++t4&&"data"===t.slice(0,4)&&Rt.test(n)){if("-"===n.charAt(4)){const e=n.slice(5).replace(Bt,Nt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=n.slice(4);if(!Bt.test(e)){let t=e.replace(jt,_t);"-"!==t.charAt(0)&&(t="-"+t),n="data"+t}}o=ht}return new o(r,n)}(r.schema,n);let i=t;null!==i&&void 0!==i&&i===i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,n){var t=n||{};return""===e[e.length-1]&&(e=e.concat("")),e.join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"===typeof i&&(i=function(e){const n={};try{Ut(e,t)}catch{}return n;function t(e,t){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,Kt)]=t}}(i)),o.space&&o.property?e[Vt.call(Ht,o.property)?Ht[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function Kt(e,n){return n.toUpperCase()}const Xt={}.hasOwnProperty,Zt={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Jt(e){for(const i in Zt)if(Xt.call(Zt,i)&&Xt.call(e,i)){const e=Zt[i];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${i}\` (see for more info)`),delete Zt[i]}const n=A().use(Cn).use(e.remarkPlugins||[]).use(Jn,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Lt,e),t=new x;"string"===typeof e.children?t.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=n.runSync(n.parse(t),t);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},$t({options:e,schema:At,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}Jt.defaultProps={transformLinkUri:function(e){const n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;const r=n.indexOf(":");if(-1===r)return n;let o=-1;for(;++oo?n:(o=n.indexOf("#"),-1!==o&&r>o?n:"javascript:void(0)")}},Jt.propTypes={children:Gn.string,className:Gn.string,allowElement:Gn.func,allowedElements:Gn.arrayOf(Gn.string),disallowedElements:Gn.arrayOf(Gn.string),unwrapDisallowed:Gn.bool,remarkPlugins:Gn.arrayOf(Gn.oneOfType([Gn.object,Gn.func,Gn.arrayOf(Gn.oneOfType([Gn.bool,Gn.string,Gn.object,Gn.func,Gn.arrayOf(Gn.any)]))])),rehypePlugins:Gn.arrayOf(Gn.oneOfType([Gn.object,Gn.func,Gn.arrayOf(Gn.oneOfType([Gn.bool,Gn.string,Gn.object,Gn.func,Gn.arrayOf(Gn.any)]))])),sourcePos:Gn.bool,rawSourcePos:Gn.bool,skipHtml:Gn.bool,includeElementIndex:Gn.bool,transformLinkUri:Gn.oneOfType([Gn.func,Gn.bool]),linkTarget:Gn.oneOfType([Gn.func,Gn.string]),transformImageUri:Gn.func,components:Gn.object}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/29-2e97e484c972d352.js b/static/web/_next/static/chunks/29-2e97e484c972d352.js deleted file mode 100644 index 2fdee9eaf..000000000 --- a/static/web/_next/static/chunks/29-2e97e484c972d352.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29],{71578:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="BellFilled";var u=i.forwardRef(s)},24019:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="ClockCircleOutlined";var u=i.forwardRef(s)},34447:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(1413),i=r(67294),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},o=r(42135),s=function(t,e){return i.createElement(o.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:e,icon:a}))};s.displayName="HeartFilled";var u=i.forwardRef(s)},60562:function(t,e,r){"use strict";r.d(e,{Au:function(){return i},G3:function(){return p},Ki:function(){return a},d3:function(){return f},hL:function(){return c},lx:function(){return h},qX:function(){return l},tm:function(){return u}});var n=r(58908),i=function(t){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},a=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||i(t)||t instanceof ArrayBuffer||(t="number"!==typeof t||"number"===typeof t&&t!==t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},o=r.n(n)().BigInt||Number,s=[o("0x1"),o("0x100"),o("0x10000"),o("0x1000000"),o("0x100000000"),o("0x10000000000"),o("0x1000000000000"),o("0x100000000000000"),o("0x10000000000000000")],u=(function(){var t=new Uint16Array([65484]),e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);255===e[0]||e[0]}(),function(t,e){var r=void 0===e?{}:e,n=r.signed,i=void 0!==n&&n,u=r.le,c=void 0!==u&&u;t=a(t);var f=c?"reduce":"reduceRight",l=(t[f]?t[f]:Array.prototype[f]).call(t,(function(e,r,n){var i=c?n:Math.abs(n+1-t.length);return e+o(r)*s[i]}),o(0));if(i){var h=s[t.length]/o(2)-o(1);(l=o(l))>h&&(l-=h,l-=h,l-=o(2))}return Number(l)}),c=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!==typeof t&&"number"!==typeof t||"number"===typeof t&&t!==t)&&(t=0),t=o(t);for(var i,a=(i=t,Math.ceil(function(t){return t.toString(2).length}(i)/8)),u=new Uint8Array(new ArrayBuffer(a)),c=0;c=e.length&&c.call(e,(function(e,r){return e===(u[r]?u[r]&t[o+r]:t[o+r])}))}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return h},kS:function(){return c},lA:function(){return m},p7:function(){return p},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach((function(t){var e;t=t.trim(),o.forEach((function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}})),e||r.push({type:t,details:"",mediaType:"unknown"})})),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},h=function(t){if(t&&"string"===typeof t){var e,r=t.toLowerCase().split(",").map((function(t){return u(t.trim())})),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every((function(t){return a.mp4.test(t)}))?i="mp4":r.every((function(t){return a.webm.test(t)}))?i="webm":r.every((function(t){return a.ogg.test(t)}))&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},p=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(h(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,c=e.subarray(s+4,s+8);if(0===u)break;var f=s+u;if(f>e.length){if(n)break;f=e.length}var l=e.subarray(s+8,f);(0,i.G3)(c,r[0])&&(1===r.length?o.push(l):o.push.apply(o,t(l,r.slice(1),n))),s=f}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=f(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=f(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},p=function t(e,r){r=function(t){return Array.isArray(t)?t.map((function(t){return l(t)})):[l(t)]}(r),e=(0,i.Ki)(e);var n=[];if(!r.length)return n;for(var a=0;ae.length?e.length:u+s.value,p=e.subarray(u,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?n.push(p):n=n.concat(t(p,r.slice(1)))),a+=o.length+s.length+p.length}return n},d=r(68925),m=(0,i.Ki)([0,0,0,1]),g=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),y=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}else o++}return t.subarray(0,0)},w={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},E={aac:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.webm)},mkv:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.matroska)},mp4:function(t){return!E["3gp"](t)&&!E.mov(t)&&(!(!(0,i.G3)(t,w.mp4,{offset:4})&&!(0,i.G3)(t,w.fmp4,{offset:4}))||(!(!(0,i.G3)(t,w.moof,{offset:4})&&!(0,i.G3)(t,w.moov,{offset:4}))||void 0))},mov:function(t){return(0,i.G3)(t,w.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,w["3gp"],{offset:4})},ac3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,w.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e,r=(e=t,i().atob?i().atob(e):a.from(e,"base64").toString("binary")),n=new Uint8Array(r.length),o=0;o>4?i+20:i+10}(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"===typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o().URL)(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e)if(n.TextDecoder){var s=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t}),"utf-8")}(i.headers&&i.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));t({cause:o})}else t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);s.httpHandler=r(13490);function o(t,e,r){var n=t;return a(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function s(t,e,r){return u(e=o(t,e,r))}function u(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(c),g)try{t=JSON.parse(t)}catch(e){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,v)}function a(){if(!u){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=v,a=null;return 0!==e?(i={body:n(),statusCode:e,method:h,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();"undefined"===typeof e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var f,l=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data,d=c.headers=t.headers||{},m=!!t.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=i,c.open(h,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(o in d)d.hasOwnProperty(o)&&c.setRequestHeader(o,d[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=s,t.exports.default=s,s.XMLHttpRequest=n.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new h,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),p=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof h)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"===typeof t?n.parse(t,c,p):n.errorHandler.error("invalid doc source"),i.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s=0))throw I(A,new Error(t.tagName+"@"+r));for(var i=e.length-1;n"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function _(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(_(t,e))return!0}while(t=t.nextSibling)}function X(){}function Z(t,e,r,i){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function j(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a}}}function z(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,j(t.ownerDocument,t),e}function F(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=r?r.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:t.firstChild=i,null==r?t.lastChild=a:r.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return j(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function q(){this._nsMap={}}function H(){}function K(){}function G(){}function V(){}function Y(){}function W(){}function $(){}function J(){}function Q(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ot(this,r,t,e,o),r.join("")}function it(t,e,r){var i=t.prefix||"",a=t.namespaceURI;if(!a)return!1;if("xml"===i&&a===n.XML||a===n.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===i)return s.namespace!==a}return!0}function at(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,B),'"')}function ot(t,e,r,i,a){if(a||(a=[]),i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case f:var o=t.attributes,s=o.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var E,T=0;T=0;N--){if(""===(S=a[N]).prefix&&S.namespace===t.namespaceURI){E=S.namespace;break}}if(E!==t.namespaceURI)for(N=a.length-1;N>=0;N--){var S;if((S=a[N]).namespace===t.namespaceURI){S.prefix&&(m=S.prefix+":"+c);break}}}e.push("<",m);for(var A=0;A"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):ot(u,e,r,i,a.slice()),u=u.nextSibling;else for(;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;e.push("")}else e.push("/>");return;case y:case w:for(u=t.firstChild;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;return;case l:return at(e,t.name,t.value);case h:return e.push(t.data.replace(/[<&]/g,B).replace(/]]>/g,"]]>"));case p:return e.push("");case v:return e.push("\x3c!--",t.data,"--\x3e");case b:var O=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var D=t.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return;case g:return e.push("");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case f:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case l:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(st(t,i,r)),i=i.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var i in e){var a=e[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(e.childNodes&&(n.childNodes=new C),n.ownerDocument=t,n.nodeType){case f:var o=e.attributes,s=n.attributes=new D,u=o.length;s._ownerElement=n;for(var c=0;c0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(r[n]==t)return n;e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r)return r[t];e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,k),s(c,k.prototype),X.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==f&&(this.documentElement=t),F(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),z(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return _(this.documentElement,(function(r){if(r.nodeType==f&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=o(t);return new O(this,(function(r){var n=[];return e.length>0&&_(r.documentElement,(function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=t===a;if(!s){var u=o(a);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(i)}}var c})),n}))},createElement:function(t){var e=new q;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new C,(e.attributes=new D)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new C,t},createTextNode:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Y;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new H;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new q,n=e.split(":"),i=r.attributes=new D;return r.childNodes=new C,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new H,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u(X,k),q.prototype={nodeType:f,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){var r=e.parentNode;if(r){var n=t.lastChild;r.removeChild(e),n=t.lastChild}return n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,j(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new O(this,(function(e){var r=[];return _(e,(function(n){n===e||n.nodeType!=f||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new O(this,(function(r){var n=[];return _(r,(function(i){i===r||i.nodeType!==f||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||n.push(i)})),n}))}},X.prototype.getElementsByTagName=q.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=q.prototype.getElementsByTagNameNS,u(q,k),H.prototype.nodeType=l,u(H,k),K.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(N[S])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(K,k),G.prototype={nodeName:"#text",nodeType:h,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(G,K),V.prototype={nodeName:"#comment",nodeType:v},u(V,K),Y.prototype={nodeName:"#cdata-section",nodeType:p},u(Y,K),W.prototype.nodeType=b,u(W,k),$.prototype.nodeType=E,u($,k),J.prototype.nodeType=m,u(J,k),Q.prototype.nodeType=d,u(Q,k),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,k),et.prototype.nodeType=g,u(et,k),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},k.prototype.toString=nt;try{if(Object.defineProperty){function ft(t){switch(t.nodeType){case f:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(ft(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(O.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return ft(this)},set:function(t){switch(this.nodeType){case f:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(lt){}e.DocumentType=W,e.DOMException=I,e.DOMImplementation=U,e.Element=q,e.Node=k,e.NodeList=C,e.XMLSerializer=rt},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c=++e,f=0;;){var l=t.charAt(c);switch(l){case"=":if(1===f)u=t.slice(e,c),f=3;else{if(2!==f)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(3===f||1===f){if(1===f&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e-1),f=5}else{if(4!=f)throw new Error('attribute value must after "="');s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,f=5}break;case"/":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:f=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==f&&r.setTagName(t.slice(e,c)),c;case">":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===f&&(h=u),4==f?(o.warning('attribute "'+h+'" missed quot(")!'),s(u,h.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":l=" ";default:if(l<=" ")switch(f){case 0:r.setTagName(t.slice(e,c)),f=6;break;case 1:u=t.slice(e,c),f=2;break;case 4:var h=t.slice(e,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+h+'" missed quot(")!!'),s(u,h,e);case 5:f=6}else switch(f){case 2:r.tagName;n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,f=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:f=1,e=c;break;case 3:f=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((p=u.indexOf(":"))>0)var f=s.prefix=u.slice(0,p),l=u.slice(p+1),h="xmlns"===f&&l;else l=u,f=null,h="xmlns"===u&&"";s.localName=l,!1!==h&&(null==a&&(a={},d(r,r={})),r[h]=a[h]=c,s.uri=n.XMLNS,e.startPrefixMapping(h,c))}for(o=t.length;o--;){(f=(s=t[o]).prefix)&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}var p;(p=i.indexOf(":"))>0?(f=t.prefix=i.slice(0,p),l=t.localName=i.slice(p+1)):(f=null,l=t.localName=i);var m=t.uri=r[f||""];if(e.startElement(m,l,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,l,i),a)for(f in a)e.endPrefixMapping(f)}function h(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}function p(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))e?(r.comment(t,e+4,i-e-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}return-1}function g(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function v(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),d(e,e={}),function(t,e,r,i,a){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}function u(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(a.error("entity not found:"+t),t)}function d(e){if(e>A){var r=t.substring(A,e).replace(/&#?\w+;/g,u);T&&y(A),i.characters(r,0,e-A),A=e}}function y(e,r){for(;e>=w&&(r=E.exec(t));)b=r.index,w=b+r[0].length,T.lineNumber++;T.columnNumber=e-b+1}var b=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,N=[{currentNSMap:e}],S={},A=0;for(;;){try{var x=t.indexOf("<",A);if(x<0){if(!t.substr(A).match(/^\s*$/)){var I=i.doc,C=I.createTextNode(t.substr(A));I.appendChild(C),i.currentElement=C}return}switch(x>A&&d(x),t.charAt(x+1)){case"/":var O=t.indexOf(">",x+3),R=t.substring(x+2,O).replace(/[ \t\n\r]+$/g,""),D=N.pop();O<0?(R=t.substring(x+2).replace(/[\s<].*/,""),a.error("end tag name: "+R+" is not complete:"+D.tagName),O=x+1+R.length):R.match(/\sA?A=O:d(Math.max(x,A)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},v.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},27049:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(94184),o=r.n(a),s=r(67294),u=r(53124),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?"-".concat(m):m,S=!!y,A="left"===m&&null!=g,x="right"===m&&null!=g,I=o()(T,"".concat(T,"-").concat(p),(e={},(0,i.Z)(e,"".concat(T,"-with-text"),S),(0,i.Z)(e,"".concat(T,"-with-text").concat(N),S),(0,i.Z)(e,"".concat(T,"-dashed"),!!b),(0,i.Z)(e,"".concat(T,"-plain"),!!w),(0,i.Z)(e,"".concat(T,"-rtl"),"rtl"===f),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-left"),A),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-right"),x),e),v),C=(0,n.Z)((0,n.Z)({},A&&{marginLeft:g}),x&&{marginRight:g});return s.createElement("div",(0,n.Z)({className:I},E,{role:"separator"}),y&&"vertical"!==p&&s.createElement("span",{className:"".concat(T,"-inner-text"),style:C},y))}},26303:function(t,e,r){"use strict";r.d(e,{Z:function(){return I}});var n=r(4942),i=r(87462),a=r(71002),o=r(94184),s=r.n(o),u=r(67294),c=r(53124),f=r(98423),l=function(t){var e,r,a=t.prefixCls,o=t.className,c=t.style,f=t.size,l=t.shape,h=s()((e={},(0,n.Z)(e,"".concat(a,"-lg"),"large"===f),(0,n.Z)(e,"".concat(a,"-sm"),"small"===f),e)),p=s()((r={},(0,n.Z)(r,"".concat(a,"-circle"),"circle"===l),(0,n.Z)(r,"".concat(a,"-square"),"square"===l),(0,n.Z)(r,"".concat(a,"-round"),"round"===l),r)),d=u.useMemo((function(){return"number"===typeof f?{width:f,height:f,lineHeight:"".concat(f,"px")}:{}}),[f]);return u.createElement("span",{className:s()(a,h,p,o),style:(0,i.Z)((0,i.Z)({},d),c)})},h=function(t){var e=t.prefixCls,r=t.className,a=t.active,o=t.shape,h=void 0===o?"circle":o,p=t.size,d=void 0===p?"default":p,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),g=(0,f.Z)(t,["prefixCls","className"]),v=s()(m,"".concat(m,"-element"),(0,n.Z)({},"".concat(m,"-active"),a),r);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-avatar"),shape:h,size:d},g)))},p=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,h=t.block,p=void 0!==h&&h,d=t.size,m=void 0===d?"default":d,g=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),v=(0,f.Z)(t,["prefixCls"]),y=s()(g,"".concat(g,"-element"),(e={},(0,n.Z)(e,"".concat(g,"-active"),o),(0,n.Z)(e,"".concat(g,"-block"),p),e),a);return u.createElement("div",{className:y},u.createElement(l,(0,i.Z)({prefixCls:"".concat(g,"-button"),size:m},v)))},d=r(1413),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=r(42135),v=function(t,e){return u.createElement(g.Z,(0,d.Z)((0,d.Z)({},t),{},{ref:e,icon:m}))};v.displayName="DotChartOutlined";var y=u.forwardRef(v),b=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=t.children,f=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),l=s()(f,"".concat(f,"-element"),(0,n.Z)({},"".concat(f,"-active"),a),r),h=null!==o&&void 0!==o?o:u.createElement(y,null);return u.createElement("div",{className:l},u.createElement("div",{className:s()("".concat(f,"-image"),r),style:i},h))},w=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),f=s()(o,"".concat(o,"-element"),(0,n.Z)({},"".concat(o,"-active"),a),r);return u.createElement("div",{className:f},u.createElement("div",{className:s()("".concat(o,"-image"),r),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(o,"-image-svg")},u.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(o,"-image-path")}))))},E=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,h=t.block,p=t.size,d=void 0===p?"default":p,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),g=(0,f.Z)(t,["prefixCls"]),v=s()(m,"".concat(m,"-element"),(e={},(0,n.Z)(e,"".concat(m,"-active"),o),(0,n.Z)(e,"".concat(m,"-block"),h),e),a);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-input"),size:d},g)))},T=r(74902),N=function(t){var e=function(e){var r=t.width,n=t.rows,i=void 0===n?2:n;return Array.isArray(r)?r[e]:i-1===e?r:void 0},r=t.prefixCls,n=t.className,i=t.style,a=t.rows,o=(0,T.Z)(Array(a)).map((function(t,r){return u.createElement("li",{key:r,style:{width:e(r)}})}));return u.createElement("ul",{className:s()(r,n),style:i},o)},S=function(t){var e=t.prefixCls,r=t.className,n=t.width,a=t.style;return u.createElement("h3",{className:s()(e,r),style:(0,i.Z)({width:n},a)})};function A(t){return t&&"object"===(0,a.Z)(t)?t:{}}var x=function(t){var e=t.prefixCls,r=t.loading,a=t.className,o=t.style,f=t.children,h=t.avatar,p=void 0!==h&&h,d=t.title,m=void 0===d||d,g=t.paragraph,v=void 0===g||g,y=t.active,b=t.round,w=u.useContext(c.E_),E=w.getPrefixCls,T=w.direction,x=E("skeleton",e);if(r||!("loading"in t)){var I,C,O,R=!!p,D=!!m,M=!!v;if(R){var P=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-avatar")},function(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(D,M)),A(p));C=u.createElement("div",{className:"".concat(x,"-header")},u.createElement(l,(0,i.Z)({},P)))}if(D||M){var L,U;if(D){var k=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-title")},function(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}(R,M)),A(m));L=u.createElement(S,(0,i.Z)({},k))}if(M){var B=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-paragraph")},function(t,e){var r={};return t&&e||(r.width="61%"),r.rows=!t&&e?3:2,r}(R,D)),A(v));U=u.createElement(N,(0,i.Z)({},B))}O=u.createElement("div",{className:"".concat(x,"-content")},L,U)}var _=s()(x,(I={},(0,n.Z)(I,"".concat(x,"-with-avatar"),R),(0,n.Z)(I,"".concat(x,"-active"),y),(0,n.Z)(I,"".concat(x,"-rtl"),"rtl"===T),(0,n.Z)(I,"".concat(x,"-round"),b),I),a);return u.createElement("div",{className:_,style:o},C,O)}return"undefined"!==typeof f?f:null};x.Button=p,x.Avatar=h,x.Input=E,x.Image=w,x.Node=b;var I=x},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,a,o=[],s=e;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";var n=r(79742),i=r(80645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(j(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||z(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:_(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return C(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(a=t[i+1]))&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return N(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function C(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function Z(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!==t}var F=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},86559:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(t,e,r){var i,a=n[t];return i="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(t,e,r,n){return s[t]};function c(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!==r&&void 0!==r&&r.width?String(r.width):i;n=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var f={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o,s=a[0],u=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?p(u,(function(t){return t.test(s)})):h(u,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=r.valueCallback?r.valueCallback(o):o;var f=e.slice(s.length);return{value:o,rest:f}}}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function p(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(d.matchPattern);if(!r)return null;var n=r[0],i=t.match(d.parsePattern);if(!i)return null;var a=d.valueCallback?d.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(n.length);return{value:a,rest:o}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},g={code:"en-US",formatDistance:i,formatLong:o,formatRelative:u,localize:f,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},24262:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},83946:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},77349:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},11640:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var s=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+o+1,0);var c=u.getDate();return s>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},75401:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(24262),i=r(19013),a=r(13882);function o(t){(0,a.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var s=864e5;function u(t,e){(0,a.Z)(2,arguments);var r=o(t),i=o(e),u=r.getTime()-(0,n.Z)(r),c=i.getTime()-(0,n.Z)(i);return Math.round((u-c)/s)}},68730:function(t,e,r){"use strict";r.d(e,{Z:function(){return N}});var n=r(49474),i=r(77349),a=r(11640),o=r(19013),s=r(13882),u=r(83946);function c(t){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){if((0,s.Z)(2,arguments),!e||"object"!==c(e))return new Date(NaN);var r=e.years?(0,u.Z)(e.years):0,n=e.months?(0,u.Z)(e.months):0,f=e.weeks?(0,u.Z)(e.weeks):0,l=e.days?(0,u.Z)(e.days):0,h=e.hours?(0,u.Z)(e.hours):0,p=e.minutes?(0,u.Z)(e.minutes):0,d=e.seconds?(0,u.Z)(e.seconds):0,m=(0,o.Z)(t),g=n||r?(0,a.Z)(m,n+12*r):m,v=l||f?(0,i.Z)(g,l+7*f):g,y=p+60*h,b=d+60*y,w=1e3*b,E=new Date(v.getTime()+w);return E}var l=r(75401);function h(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function p(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e),i=h(r,n),a=Math.abs((0,l.Z)(r,n));r.setDate(r.getDate()-i*a);var u=Number(h(r,n)===-i),c=i*(a-u);return 0===c?0:c}Math.pow(10,8);var d=36e5,m=r(59910),g=r(93645);function v(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/d;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}function y(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/6e4;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}var b=r(82161),w=r(11699);function E(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e);return r.getFullYear()-n.getFullYear()}function T(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),i=(0,o.Z)(e),a=(0,n.Z)(r,i),u=Math.abs(E(r,i));r.setFullYear(1584),i.setFullYear(1584);var c=(0,n.Z)(r,i)===-a,f=a*(u-Number(c));return 0===f?0:f}function N(t){(0,s.Z)(1,arguments);var e=(0,o.Z)(t.start),r=(0,o.Z)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(T(r,e));var a=(0,n.Z)(r,e),u=f(e,{years:a*i.years});i.months=Math.abs((0,b.Z)(r,u));var c=f(u,{months:a*i.months});i.days=Math.abs(p(r,c));var l=f(c,{days:a*i.days});i.hours=Math.abs(v(r,l));var h=f(l,{hours:a*i.hours});i.minutes=Math.abs(y(r,h));var d=f(h,{minutes:a*i.minutes});return i.seconds=Math.abs((0,w.Z)(r,d)),i}},89144:function(t,e,r){var n,i="undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:{},a=r(25893);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{},t.exports=n},80645:function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=h,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"===typeof t&&"[object RegExp]"!==r||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"===typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"===typeof t)return o[t];var r,a=String(t);return(r=n[a.toLowerCase()])?r:(r=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"===typeof t){var r=t.which||t.keyCode||t.charCode;if(null===r||void 0===r)return!1;if("string"===typeof e){var a;if(a=n[e.toLowerCase()])return a===r;if(a=i[e.toLowerCase()])return a===r}else if("number"===typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return m}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=String.fromCharCode(9),f=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},l=function(t){for(var e,r=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},h=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,r){var n=r(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!==typeof t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,v=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes?(f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){v+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,d.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;l=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length)));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1}));var e,r},C=function(t){var e,r,n=[];return e=t,r=function(t,e,r,i){n=n.concat(t.playlists||[])},x.forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][i];r(a,t,n,i)}})),n},O=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach((function(t,r){t.number=e.mediaSequence+r}))},R=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(C(e)),i=r.playlists.concat(C(r));return r.timelineStarts=I([e.timelineStarts,r.timelineStarts]),function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach((function(t){t.discontinuitySequence=p(n,(function(e){return e.timeline===t.timeline}));var r=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),O({playlist:t,mediaSequence:r.segments[a].number})}}))}({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},D=function(t){return t&&t.uri+"-"+function(t){var e;return e="bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e}(t.byterange)},M=function(t){return f(t.reduce((function(t,e){var r=e.attributes.id+(e.attributes.lang||"");if(t[r]){var n;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[r].segments).push.apply(n,e.segments);e.attributes.contentProtection&&(t[r].attributes.contentProtection=e.attributes.contentProtection)}else t[r]=e,t[r].attributes.timelineStarts=[];return t[r].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,r;return t.discontinuityStarts=(e=t.segments||[],r="discontinuity",e.reduce((function(t,e,n){return e[r]&&t.push(n),t}),[])),t}))},P=function(t,e){var r=D(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&A(t,n,t.sidx.resolvedUri),t},L=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=P(t[r],e);return t},U=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:(e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},k=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},B=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},_=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},X=function(t){return t?Object.keys(t).reduce((function(e,r){var n=t[r];return e.concat(n.playlists)}),[]):[]},Z=function(t){var e,r=t.dashPlaylists,n=t.locations,i=t.sidxMapping,a=void 0===i?{}:i,o=t.previousManifest;if(!r.length)return{};var s=r[0].attributes,u=s.sourceDuration,c=s.type,f=s.suggestedPresentationDelay,l=s.minimumUpdatePeriod,h=M(r.filter(k)).map(U),d=M(r.filter(B)),m=M(r.filter(_)),g=r.map((function(t){return t.attributes.captionServices})).filter(Boolean),v={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:u,playlists:L(h,a)};l>=0&&(v.minimumUpdatePeriod=1e3*l),n&&(v.locations=n),"dynamic"===c&&(v.suggestedPresentationDelay=f);var y,b,w=0===v.playlists.length,E=d.length?function(t,e,r){var n;void 0===e&&(e={}),void 0===r&&(r=!1);var i=t.reduce((function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var u=a?" ("+a+")":"";s=""+i.attributes.lang+u}t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=P(function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(i,r),e);return t[s].playlists.push(c),"undefined"===typeof n&&"main"===a&&((n=i).default=!0),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,a,w):null,T=m.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(P(function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;"undefined"===typeof n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}}(r),e)),t}),{})}(m,a):null,N=h.concat(X(E),X(T)),S=N.map((function(t){return t.timelineStarts}));return v.timelineStarts=I(S),y=N,b=v.timelineStarts,y.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=p(b,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),E&&(v.mediaGroups.AUDIO.audio=E),T&&(v.mediaGroups.SUBTITLES.subs=T),g.length&&(v.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce((function(t,e){return e?(e.forEach((function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),o?R({oldManifest:o,newManifest:v}):v},j=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=void 0===o?1:o,u=t.periodStart,c=void 0===u?0:u,f=t.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===f?0:f)-(a+c);return Math.ceil((l*s-e)/r)},z=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,h=t.periodStart,p=[],d=-1,m=0;md&&(d=b);var w=void 0;if(y<0){var E=m+1;w=E===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?j(t,d,v):(s*c-d)/v:(e[E].t-d)/v}else w=y+1;for(var T=l+p.length+w,N=l+p.length;N=i?a:""+new Array(i-a.length+1).join("0")+a)}}(e))},H=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=w({baseUrl:t.baseUrl,source:q(a.sourceURL,r),range:a.range}),s=function(t,e){return t.duration||e?t.duration?N(t):z(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return s.map((function(e){r.Number=e.number,r.Time=e.time;var i=q(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}}))},K=function(t,e){var r=t.duration,n=t.segmentUrls,i=void 0===n?[]:n,a=t.periodStart;if(!r&&!e||r&&e)throw new Error(y);var o,s=i.map((function(e){return function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=w({baseUrl:r,source:i.sourceURL,range:i.range}),o=w({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o}(t,e)}));return r&&(o=N(t)),e&&(o=z(t,e)),o.map((function(e,r){if(s[r]){var n=s[r],i=t.timescale||1,o=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-o)/i,n}})).filter((function(t){return t}))},G=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=H,e=c(n,i.template)):i.base?(r=S,e=c(n,i.base)):i.list&&(r=K,e=c(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,f=s.timescale,l=void 0===f?1:f;e.duration=u/l}else o.length?e.duration=o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},V=function(t,e){return h(t.childNodes).filter((function(t){return t.tagName===e}))},Y=function(t){return t.textContent.trim()},W=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},$={mediaPresentationDuration:function(t){return W(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return W(t)},suggestedPresentationDelay:function(t){return W(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return W(t)},start:function(t){return W(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?W(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},J=function(t){return t&&t.attributes?h(t.attributes).reduce((function(t,e){var r=$[e.name]||$.DEFAULT;return t[e.name]=r(e.value),t}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},tt=function(t,e){return e.length?l(t.map((function(t){return e.map((function(e){return(0,n.Z)(t,Y(e))}))}))):t},et=function(t){var e=V(t,"SegmentTemplate")[0],r=V(t,"SegmentList")[0],n=r&&V(r,"SegmentURL").map((function(t){return c({tag:"SegmentURL"},J(t))})),i=V(t,"SegmentBase")[0],a=r||e,o=a&&V(a,"SegmentTimeline")[0],s=r||i||e,u=s&&V(s,"Initialization")[0],f=e&&J(e);f&&u?f.initialization=u&&J(u):f&&f.initialization&&(f.initialization={sourceURL:f.initialization});var l={template:f,segmentTimeline:o&&V(o,"S").map((function(t){return J(t)})),list:r&&c(J(r),{segmentUrls:n,initialization:J(u)}),base:i&&c(J(i),{initialization:J(u)})};return Object.keys(l).forEach((function(t){l[t]||delete l[t]})),l},rt=function(t,e,r){return function(n){var i,a=J(n),s=tt(e,V(n,"BaseURL")),u=V(n,"Role")[0],f={role:J(u)},h=c(t,a,f),p=V(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(i=J(p)).schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e,r;if(r=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1],a=void 0===i?"":i;e.channel=n,e.language=t,a.split(",").forEach((function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;d&&(h=c(h,{captionServices:d}));var m=V(n,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();h=c(h,{label:g})}var v=V(n,"ContentProtection").reduce((function(t,e){var r=J(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=Q[r.schemeIdUri];if(n){t[n]={attributes:r};var i=V(e,"cenc:pssh")[0];if(i){var a=Y(i);t[n].pssh=a&&(0,o.Z)(a)}}return t}),{});Object.keys(v).length&&(h=c(h,{contentProtection:v}));var y=et(n),b=V(n,"Representation"),w=c(r,y);return l(b.map(function(t,e,r){return function(n){var i=V(n,"BaseURL"),a=tt(e,i),o=c(t,J(n)),s=et(n);return a.map((function(t){return{segmentInfo:c(r,s),attributes:c(o,{baseUrl:t})}}))}}(h,s,w)))}},nt=function(t,e){return function(r,n){var i=tt(e,V(r.node,"BaseURL")),a=c(t,{periodStart:r.attributes.start});"number"===typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);var o=V(r.node,"AdaptationSet"),s=et(r.node);return l(o.map(rt(a,i,s)))}},it=function(t){if(""===t)throw new Error(m);var e,r,n=new s.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(g);return r},at=function(t,e){void 0===e&&(e={});var r=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,u=void 0===s?0:s,c=V(t,"Period");if(!c.length)throw new Error(d);var f=V(t,"Location"),h=J(t),p=tt([i],V(t,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=u,f.length&&(h.locations=f.map(Y));var m=[];return c.forEach((function(t,e){var r=J(t),n=m[e-1];r.start=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"===typeof e.start?e.start:r&&"number"===typeof r.start&&"number"===typeof r.duration?r.start+r.duration:r||"static"!==n?null:0}({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:h.type}),m.push({node:t,attributes:r})})),{locations:h.locations,representationInfo:l(m.map(nt(h,p)))}}(it(t),e),n=r.representationInfo.map(G);return Z({dashPlaylists:n,locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},ot=function(t){return function(t){var e=V(t,"UTCTiming")[0];if(!e)return null;var r=J(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(b)}return r}(it(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i,a,o,s,u=9e4;e=function(t){return t*u},r=function(t,e){return t*e},n=function(t){return t/u},i=function(t,e){return t/e},a=function(t,r){return e(i(t,r))},o=function(t,e){return r(n(t),e)},s=function(t,e,r){return n(r?t:t-e)},t.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},46894:function(t){var e=Math.pow(2,32);t.exports={getUint64:function(t){var r,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))0;function i(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function a(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":n?173:189,"=":n?61:187,";":n?59:186,"'":222,"[":219,"]":221,"\\":220},u={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},f={16:!1,18:!1,17:!1,91:!1},l={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],d=!1,m="all",g=[],v=function(t){return s[t.toLowerCase()]||u[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function y(t){m=t||"all"}function b(){return m||"all"}var w=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,s=void 0===i?"+":i;o(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],c="*"===o?"*":v(o);if(l[c]){r||(r=b());var f=i>1?a(u,e):[];l[c]=l[c].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,a=0;a0,f)Object.prototype.hasOwnProperty.call(f,a)&&(!f[a]&&e.mods.indexOf(+a)>-1||f[a]&&-1===e.mods.indexOf(+a))&&(i=!1);(0!==e.mods.length||f[16]||f[18]||f[17]||f[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function T(t,e){var r=l["*"],n=t.keyCode||t.which||t.charCode;if(N.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===p.indexOf(n)&&229!==n&&p.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=c[e];t[e]&&-1===p.indexOf(r)?p.push(r):!t[e]&&p.indexOf(r)>-1?p.splice(p.indexOf(r),1):"metaKey"===e&&t[e]&&3===p.length&&(t.ctrlKey||t.shiftKey||t.altKey||(p=p.slice(p.indexOf(r))))})),n in f){for(var i in f[n]=!0,u)u[i]===n&&(N[i]=!0);if(!r)return}for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(f[a]=t[c[a]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),f[17]=!0,f[18]=!0);var o=b();if(r)for(var s=0;s1&&(s=a(u,t)),(t="*"===(t=t[t.length-1])?"*":v(t))in l||(l[t]=[]),l[t].push({keyup:y,keydown:b,scope:c,mods:s,shortcut:n[m],method:r,key:n[m],splitKey:w,element:h});"undefined"!==typeof h&&!function(t){return g.indexOf(t)>-1}(h)&&window&&(g.push(h),i(h,"keydown",(function(t){T(t,h)}),E),d||(d=!0,i(window,"focus",(function(){p=[]}),E)),i(h,"keyup",(function(t){T(t,h),function(t){var e=t.keyCode||t.which||t.charCode,r=p.indexOf(e);if(r>=0&&p.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&p.splice(0,p.length),93!==e&&224!==e||(e=91),e in f)for(var n in f[e]=!1,u)u[n]===e&&(N[n]=!1)}(t)}),E))}var S={setScope:y,getScope:b,deleteScope:function(t,e){var r,n;for(var i in t||(t=b()),l)if(Object.prototype.hasOwnProperty.call(l,i))for(r=l[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(l).forEach((function(r){var n=l[r].find((function(r){return r.scope===e&&r.shortcut===t}));n&&n.method&&n.method()}))},unbind:function(t){if("undefined"===typeof t)Object.keys(l).forEach((function(t){return delete l[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&w(t)}));else if("object"===typeof t)t.key&&w(t);else if("string"===typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);if(2===o.length)e(o[0].trim(),o[1].trim())}}function c(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(i){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(i){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var f=n.createElement&&n.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},d={rt:"ruby"};function m(t,e){function r(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}function n(t,e){return!d[e.localName]||d[e.localName]===t.localName}function i(e,r){var n=l[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}for(var a,s,u=t.document.createElement("div"),c=u,m=[];null!==(a=r());)if("<"!==a[0])c.appendChild(t.document.createTextNode((s=a,f.innerHTML=s,s=f.textContent,f.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=o(a.substr(1,a.length-2));if(v){g=t.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=i(y[1],y[3])))continue;if(!n(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(h.hasOwnProperty(r)){var n=e?"background-color":"color",i=h[r];g.style[n]=i}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(t){for(var e=0;e=r[0]&&t<=r[1])return!0}return!1}function y(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function i(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===e.tagName?i(t):e.childNodes?(n(t,e),i(t)):void 0}for(n(e,t);r=i(e);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=f<0?-1:1,f*=Math.ceil(l/c)*c),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(h,f)}else{var p=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new E(e)}var d=function(t,e){for(var i,a=new E(t),o=1,s=0;su&&(i=new E(t),o=u),t=new E(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}function N(){}b.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},w.prototype=i(b.prototype),w.prototype.constructor=w,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},E.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},N.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},N.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null};N.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"===typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r=function(t){return"string"===typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;eh&&(l-=h,l-=h,l-=o(2))}return Number(l)}),c=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!==typeof t&&"number"!==typeof t||"number"===typeof t&&t!==t)&&(t=0),t=o(t);for(var i,a=(i=t,Math.ceil(function(t){return t.toString(2).length}(i)/8)),u=new Uint8Array(new ArrayBuffer(a)),c=0;c=e.length&&c.call(e,(function(e,r){return e===(u[r]?u[r]&t[o+r]:t[o+r])}))}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return h},kS:function(){return c},lA:function(){return m},p7:function(){return p},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)})):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach((function(t){var e;t=t.trim(),o.forEach((function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}})),e||r.push({type:t,details:"",mediaType:"unknown"})})),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},h=function(t){if(t&&"string"===typeof t){var e,r=t.toLowerCase().split(",").map((function(t){return u(t.trim())})),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every((function(t){return a.mp4.test(t)}))?i="mp4":r.every((function(t){return a.webm.test(t)}))?i="webm":r.every((function(t){return a.ogg.test(t)}))&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},p=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(h(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,c=e.subarray(s+4,s+8);if(0===u)break;var f=s+u;if(f>e.length){if(n)break;f=e.length}var l=e.subarray(s+8,f);(0,i.G3)(c,r[0])&&(1===r.length?o.push(l):o.push.apply(o,t(l,r.slice(1),n))),s=f}return o},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t,e,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var a=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=f(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=f(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},p=function t(e,r){r=function(t){return Array.isArray(t)?t.map((function(t){return l(t)})):[l(t)]}(r),e=(0,i.Ki)(e);var n=[];if(!r.length)return n;for(var a=0;ae.length?e.length:u+s.value,p=e.subarray(u,c);(0,i.G3)(r[0],o.bytes)&&(1===r.length?n.push(p):n=n.concat(t(p,r.slice(1)))),a+=o.length+s.length+p.length}return n},d=r(68925),m=(0,i.Ki)([0,0,0,1]),g=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),y=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}else o++}return t.subarray(0,0)},w={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},E={aac:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.webm)},mkv:function(t){var e=p(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,w.matroska)},mp4:function(t){return!E["3gp"](t)&&!E.mov(t)&&(!(!(0,i.G3)(t,w.mp4,{offset:4})&&!(0,i.G3)(t,w.fmp4,{offset:4}))||(!(!(0,i.G3)(t,w.moof,{offset:4})&&!(0,i.G3)(t,w.moov,{offset:4}))||void 0))},mov:function(t){return(0,i.G3)(t,w.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,w["3gp"],{offset:4})},ac3:function(t){var e=(0,d.c)(t);return(0,i.G3)(t,w.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e,r=(e=t,i().atob?i().atob(e):a.from(e,"base64").toString("binary")),n=new Uint8Array(r.length),o=0;o>4?i+20:i+10}(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"===typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o().URL)(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r)t(r);else if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e)if(n.TextDecoder){var s=function(t){void 0===t&&(t="");return t.toLowerCase().split(";").reduce((function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t}),"utf-8")}(i.headers&&i.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(u){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));t({cause:o})}else t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);s.httpHandler=r(13490);function o(t,e,r){var n=t;return a(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function s(t,e,r){return u(e=o(t,e,r))}function u(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(c),g)try{t=JSON.parse(t)}catch(e){}return t}function i(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,v)}function a(){if(!u){var e;clearTimeout(f),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var i=v,a=null;return 0!==e?(i={body:n(),statusCode:e,method:h,headers:{},url:l,rawRequest:c},c.getAllResponseHeaders&&(i.headers=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();"undefined"===typeof e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),r(a,i,i.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var f,l=c.url=t.uri||t.url,h=c.method=t.method||"GET",p=t.body||t.data,d=c.headers=t.headers||{},m=!!t.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:l,rawRequest:c};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),p=JSON.stringify(!0===t.json?p:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=i,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=i,c.open(h,l,!m,t.username,t.password),m||(c.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(f=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),c.setRequestHeader)for(o in d)d.hasOwnProperty(o)&&c.setRequestHeader(o,d[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(c),c.send(p||null),c}t.exports=s,t.exports.default=s,s.XMLHttpRequest=n.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new h,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),p=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof h)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"]\t"+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"===typeof t?n.parse(t,c,p):n.errorHandler.error("invalid doc source"),i.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s=0))throw I(A,new Error(t.tagName+"@"+r));for(var i=e.length-1;n"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function _(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(_(t,e))return!0}while(t=t.nextSibling)}function X(){}function Z(t,e,r,i){t&&t._inc++,r.namespaceURI===n.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function j(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a}}}function z(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,j(t.ownerDocument,t),e}function F(t,e,r){var n=e.parentNode;if(n&&n.removeChild(e),e.nodeType===w){var i=e.firstChild;if(null==i)return e;var a=e.lastChild}else i=a=e;var o=r?r.previousSibling:t.lastChild;i.previousSibling=o,a.nextSibling=r,o?o.nextSibling=i:t.firstChild=i,null==r?t.lastChild=a:r.previousSibling=a;do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));return j(t.ownerDocument||t,t),e.nodeType==w&&(e.firstChild=e.lastChild=null),e}function q(){this._nsMap={}}function H(){}function K(){}function G(){}function V(){}function Y(){}function W(){}function $(){}function J(){}function Q(){}function tt(){}function et(){}function rt(){}function nt(t,e){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,a=n.namespaceURI;if(a&&null==i&&null==(i=n.lookupPrefix(a)))var o=[{namespace:a,prefix:null}];return ot(this,r,t,e,o),r.join("")}function it(t,e,r){var i=t.prefix||"",a=t.namespaceURI;if(!a)return!1;if("xml"===i&&a===n.XML||a===n.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===i)return s.namespace!==a}return!0}function at(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,B),'"')}function ot(t,e,r,i,a){if(a||(a=[]),i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case f:var o=t.attributes,s=o.length,u=t.firstChild,c=t.tagName,m=c;if(!(r=n.isHTML(t.namespaceURI)||r)&&!t.prefix&&t.namespaceURI){for(var E,T=0;T=0;N--){if(""===(S=a[N]).prefix&&S.namespace===t.namespaceURI){E=S.namespace;break}}if(E!==t.namespaceURI)for(N=a.length-1;N>=0;N--){var S;if((S=a[N]).namespace===t.namespaceURI){S.prefix&&(m=S.prefix+":"+c);break}}}e.push("<",m);for(var A=0;A"),r&&/^script$/i.test(c))for(;u;)u.data?e.push(u.data):ot(u,e,r,i,a.slice()),u=u.nextSibling;else for(;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;e.push("")}else e.push("/>");return;case y:case w:for(u=t.firstChild;u;)ot(u,e,r,i,a.slice()),u=u.nextSibling;return;case l:return at(e,t.name,t.value);case h:return e.push(t.data.replace(/[<&]/g,B).replace(/]]>/g,"]]>"));case p:return e.push("");case v:return e.push("\x3c!--",t.data,"--\x3e");case b:var C=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var D=t.internalSubset;D&&e.push(" [",D,"]"),e.push(">")}return;case g:return e.push("");case d:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function st(t,e,r){var n;switch(e.nodeType){case f:(n=e.cloneNode(!1)).ownerDocument=t;case w:break;case l:r=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,r)for(var i=e.firstChild;i;)n.appendChild(st(t,i,r)),i=i.nextSibling;return n}function ut(t,e,r){var n=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=e[i];"object"!=typeof a&&a!=n[i]&&(n[i]=a)}switch(e.childNodes&&(n.childNodes=new O),n.ownerDocument=t,n.nodeType){case f:var o=e.attributes,s=n.attributes=new D,u=o.length;s._ownerElement=n;for(var c=0;c0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r)for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n;e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==l?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},s(c,k),s(c,k.prototype),X.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return null==this.documentElement&&t.nodeType==f&&(this.documentElement=t),F(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),z(this,t)},importNode:function(t,e){return st(this,t,e)},getElementById:function(t){var e=null;return _(this.documentElement,(function(r){if(r.nodeType==f&&r.getAttribute("id")==t)return e=r,!0})),e},getElementsByClassName:function(t){var e=o(t);return new C(this,(function(r){var n=[];return e.length>0&&_(r.documentElement,(function(i){if(i!==r&&i.nodeType===f){var a=i.getAttribute("class");if(a){var s=t===a;if(!s){var u=o(a);s=e.every((c=u,function(t){return c&&-1!==c.indexOf(t)}))}s&&n.push(i)}}var c})),n}))},createElement:function(t){var e=new q;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new O,(e.attributes=new D)._ownerElement=e,e},createDocumentFragment:function(){var t=new tt;return t.ownerDocument=this,t.childNodes=new O,t},createTextNode:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new V;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Y;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new et;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new H;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new q,n=e.split(":"),i=r.attributes=new D;return r.childNodes=new O,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new H,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},u(X,k),q.prototype={nodeType:f,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===w?this.insertBefore(t,null):function(t,e){var r=e.parentNode;if(r){var n=t.lastChild;r.removeChild(e),n=t.lastChild}return n=t.lastChild,e.parentNode=t,e.previousSibling=n,e.nextSibling=null,n?n.nextSibling=e:t.firstChild=e,t.lastChild=e,j(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new C(this,(function(e){var r=[];return _(e,(function(n){n===e||n.nodeType!=f||"*"!==t&&n.tagName!=t||r.push(n)})),r}))},getElementsByTagNameNS:function(t,e){return new C(this,(function(r){var n=[];return _(r,(function(i){i===r||i.nodeType!==f||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||n.push(i)})),n}))}},X.prototype.getElementsByTagName=q.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=q.prototype.getElementsByTagNameNS,u(q,k),H.prototype.nodeType=l,u(H,k),K.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(N[S])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},u(K,k),G.prototype={nodeName:"#text",nodeType:h,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(G,K),V.prototype={nodeName:"#comment",nodeType:v},u(V,K),Y.prototype={nodeName:"#cdata-section",nodeType:p},u(Y,K),W.prototype.nodeType=b,u(W,k),$.prototype.nodeType=E,u($,k),J.prototype.nodeType=m,u(J,k),Q.prototype.nodeType=d,u(Q,k),tt.prototype.nodeName="#document-fragment",tt.prototype.nodeType=w,u(tt,k),et.prototype.nodeType=g,u(et,k),rt.prototype.serializeToString=function(t,e,r){return nt.call(t,e,r)},k.prototype.toString=nt;try{if(Object.defineProperty){function ft(t){switch(t.nodeType){case f:case w:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(ft(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(C.prototype,"length",{get:function(){return R(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return ft(this)},set:function(t){switch(this.nodeType){case f:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),ct=function(t,e,r){t["$$"+e]=r}}}catch(lt){}e.DocumentType=W,e.DOMException=I,e.DOMImplementation=U,e.Element=q,e.Node=k,e.NodeList=O,e.XMLSerializer=rt},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c=++e,f=0;;){var l=t.charAt(c);switch(l){case"=":if(1===f)u=t.slice(e,c),f=3;else{if(2!==f)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(3===f||1===f){if(1===f&&(o.warning('attribute value must after "="'),u=t.slice(e,c)),e=c+1,!((c=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e-1),f=5}else{if(4!=f)throw new Error('attribute value must after "="');s(u,h=t.slice(e,c).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+l+")!!"),e=c+1,f=5}break;case"/":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:f=7,r.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==f&&r.setTagName(t.slice(e,c)),c;case">":switch(f){case 0:r.setTagName(t.slice(e,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(e,c)).slice(-1)&&(r.closed=!0,h=h.slice(0,-1));case 2:2===f&&(h=u),4==f?(o.warning('attribute "'+h+'" missed quot(")!'),s(u,h.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,e));break;case 3:throw new Error("attribute value missed!!")}return c;case"\x80":l=" ";default:if(l<=" ")switch(f){case 0:r.setTagName(t.slice(e,c)),f=6;break;case 1:u=t.slice(e,c),f=2;break;case 4:var h=t.slice(e,c).replace(/&#?\w+;/g,a);o.warning('attribute "'+h+'" missed quot(")!!'),s(u,h,e);case 5:f=6}else switch(f){case 2:r.tagName;n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=c,f=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:f=1,e=c;break;case 3:f=4,e=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value;if((p=u.indexOf(":"))>0)var f=s.prefix=u.slice(0,p),l=u.slice(p+1),h="xmlns"===f&&l;else l=u,f=null,h="xmlns"===u&&"";s.localName=l,!1!==h&&(null==a&&(a={},d(r,r={})),r[h]=a[h]=c,s.uri=n.XMLNS,e.startPrefixMapping(h,c))}for(o=t.length;o--;){(f=(s=t[o]).prefix)&&("xml"===f&&(s.uri=n.XML),"xmlns"!==f&&(s.uri=r[f||""]))}var p;(p=i.indexOf(":"))>0?(f=t.prefix=i.slice(0,p),l=t.localName=i.slice(p+1)):(f=null,l=t.localName=i);var m=t.uri=r[f||""];if(e.startElement(m,l,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,l,i),a)for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&e.endPrefixMapping(f)}function h(t,e,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var a=t.indexOf("",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}function p(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))e?(r.comment(t,e+4,i-e-4),i+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e,i.exec(t);for(;r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}return-1}function g(t,e,r){var n=t.indexOf("?>",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return r.processingInstruction(i[1],i[2]),n+2}return-1}return-1}function v(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),d(e,e={}),function(t,e,r,i,a){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),r=56320+(1023&t);return String.fromCharCode(e,r)}return String.fromCharCode(t)}function u(t){var e=t.slice(1,-1);return e in r?r[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(a.error("entity not found:"+t),t)}function d(e){if(e>A){var r=t.substring(A,e).replace(/&#?\w+;/g,u);T&&y(A),i.characters(r,0,e-A),A=e}}function y(e,r){for(;e>=w&&(r=E.exec(t));)b=r.index,w=b+r[0].length,T.lineNumber++;T.columnNumber=e-b+1}var b=0,w=0,E=/.*(?:\r\n?|\n)|.*$/g,T=i.locator,N=[{currentNSMap:e}],S={},A=0;for(;;){try{var x=t.indexOf("<",A);if(x<0){if(!t.substr(A).match(/^\s*$/)){var I=i.doc,O=I.createTextNode(t.substr(A));I.appendChild(O),i.currentElement=O}return}switch(x>A&&d(x),t.charAt(x+1)){case"/":var C=t.indexOf(">",x+3),R=t.substring(x+2,C).replace(/[ \t\n\r]+$/g,""),D=N.pop();C<0?(R=t.substring(x+2).replace(/[\s<].*/,""),a.error("end tag name: "+R+" is not complete:"+D.tagName),C=x+1+R.length):R.match(/\sA?A=C:d(Math.max(x,A)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},v.prototype={setTagName:function(t){if(!o.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},27049:function(t,e,r){"use strict";var n=r(87462),i=r(4942),a=r(94184),o=r.n(a),s=r(67294),u=r(53124),c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i0?"-".concat(m):m,S=!!y,A="left"===m&&null!=g,x="right"===m&&null!=g,I=o()(T,"".concat(T,"-").concat(p),(e={},(0,i.Z)(e,"".concat(T,"-with-text"),S),(0,i.Z)(e,"".concat(T,"-with-text").concat(N),S),(0,i.Z)(e,"".concat(T,"-dashed"),!!b),(0,i.Z)(e,"".concat(T,"-plain"),!!w),(0,i.Z)(e,"".concat(T,"-rtl"),"rtl"===f),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-left"),A),(0,i.Z)(e,"".concat(T,"-no-default-orientation-margin-right"),x),e),v),O=(0,n.Z)((0,n.Z)({},A&&{marginLeft:g}),x&&{marginRight:g});return s.createElement("div",(0,n.Z)({className:I},E,{role:"separator"}),y&&"vertical"!==p&&s.createElement("span",{className:"".concat(T,"-inner-text"),style:O},y))}},26303:function(t,e,r){"use strict";r.d(e,{Z:function(){return I}});var n=r(4942),i=r(87462),a=r(71002),o=r(94184),s=r.n(o),u=r(67294),c=r(53124),f=r(98423),l=function(t){var e,r,a=t.prefixCls,o=t.className,c=t.style,f=t.size,l=t.shape,h=s()((e={},(0,n.Z)(e,"".concat(a,"-lg"),"large"===f),(0,n.Z)(e,"".concat(a,"-sm"),"small"===f),e)),p=s()((r={},(0,n.Z)(r,"".concat(a,"-circle"),"circle"===l),(0,n.Z)(r,"".concat(a,"-square"),"square"===l),(0,n.Z)(r,"".concat(a,"-round"),"round"===l),r)),d=u.useMemo((function(){return"number"===typeof f?{width:f,height:f,lineHeight:"".concat(f,"px")}:{}}),[f]);return u.createElement("span",{className:s()(a,h,p,o),style:(0,i.Z)((0,i.Z)({},d),c)})},h=function(t){var e=t.prefixCls,r=t.className,a=t.active,o=t.shape,h=void 0===o?"circle":o,p=t.size,d=void 0===p?"default":p,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),g=(0,f.Z)(t,["prefixCls","className"]),v=s()(m,"".concat(m,"-element"),(0,n.Z)({},"".concat(m,"-active"),a),r);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-avatar"),shape:h,size:d},g)))},p=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,h=t.block,p=void 0!==h&&h,d=t.size,m=void 0===d?"default":d,g=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),v=(0,f.Z)(t,["prefixCls"]),y=s()(g,"".concat(g,"-element"),(e={},(0,n.Z)(e,"".concat(g,"-active"),o),(0,n.Z)(e,"".concat(g,"-block"),p),e),a);return u.createElement("div",{className:y},u.createElement(l,(0,i.Z)({prefixCls:"".concat(g,"-button"),size:m},v)))},d=r(1413),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},g=r(42135),v=function(t,e){return u.createElement(g.Z,(0,d.Z)((0,d.Z)({},t),{},{ref:e,icon:m}))};v.displayName="DotChartOutlined";var y=u.forwardRef(v),b=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=t.children,f=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),l=s()(f,"".concat(f,"-element"),(0,n.Z)({},"".concat(f,"-active"),a),r),h=null!==o&&void 0!==o?o:u.createElement(y,null);return u.createElement("div",{className:l},u.createElement("div",{className:s()("".concat(f,"-image"),r),style:i},h))},w=function(t){var e=t.prefixCls,r=t.className,i=t.style,a=t.active,o=(0,u.useContext(c.E_).getPrefixCls)("skeleton",e),f=s()(o,"".concat(o,"-element"),(0,n.Z)({},"".concat(o,"-active"),a),r);return u.createElement("div",{className:f},u.createElement("div",{className:s()("".concat(o,"-image"),r),style:i},u.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(o,"-image-svg")},u.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(o,"-image-path")}))))},E=function(t){var e,r=t.prefixCls,a=t.className,o=t.active,h=t.block,p=t.size,d=void 0===p?"default":p,m=(0,u.useContext(c.E_).getPrefixCls)("skeleton",r),g=(0,f.Z)(t,["prefixCls"]),v=s()(m,"".concat(m,"-element"),(e={},(0,n.Z)(e,"".concat(m,"-active"),o),(0,n.Z)(e,"".concat(m,"-block"),h),e),a);return u.createElement("div",{className:v},u.createElement(l,(0,i.Z)({prefixCls:"".concat(m,"-input"),size:d},g)))},T=r(74902),N=function(t){var e=function(e){var r=t.width,n=t.rows,i=void 0===n?2:n;return Array.isArray(r)?r[e]:i-1===e?r:void 0},r=t.prefixCls,n=t.className,i=t.style,a=t.rows,o=(0,T.Z)(Array(a)).map((function(t,r){return u.createElement("li",{key:r,style:{width:e(r)}})}));return u.createElement("ul",{className:s()(r,n),style:i},o)},S=function(t){var e=t.prefixCls,r=t.className,n=t.width,a=t.style;return u.createElement("h3",{className:s()(e,r),style:(0,i.Z)({width:n},a)})};function A(t){return t&&"object"===(0,a.Z)(t)?t:{}}var x=function(t){var e=t.prefixCls,r=t.loading,a=t.className,o=t.style,f=t.children,h=t.avatar,p=void 0!==h&&h,d=t.title,m=void 0===d||d,g=t.paragraph,v=void 0===g||g,y=t.active,b=t.round,w=u.useContext(c.E_),E=w.getPrefixCls,T=w.direction,x=E("skeleton",e);if(r||!("loading"in t)){var I,O,C,R=!!p,D=!!m,M=!!v;if(R){var P=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-avatar")},function(t,e){return t&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(D,M)),A(p));O=u.createElement("div",{className:"".concat(x,"-header")},u.createElement(l,(0,i.Z)({},P)))}if(D||M){var L,U;if(D){var k=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-title")},function(t,e){return!t&&e?{width:"38%"}:t&&e?{width:"50%"}:{}}(R,M)),A(m));L=u.createElement(S,(0,i.Z)({},k))}if(M){var B=(0,i.Z)((0,i.Z)({prefixCls:"".concat(x,"-paragraph")},function(t,e){var r={};return t&&e||(r.width="61%"),r.rows=!t&&e?3:2,r}(R,D)),A(v));U=u.createElement(N,(0,i.Z)({},B))}C=u.createElement("div",{className:"".concat(x,"-content")},L,U)}var _=s()(x,(I={},(0,n.Z)(I,"".concat(x,"-with-avatar"),R),(0,n.Z)(I,"".concat(x,"-active"),y),(0,n.Z)(I,"".concat(x,"-rtl"),"rtl"===T),(0,n.Z)(I,"".concat(x,"-round"),b),I),a);return u.createElement("div",{className:_,style:o},O,C)}return"undefined"!==typeof f?f:null};x.Button=p,x.Avatar=h,x.Input=E,x.Image=w,x.Node=b;var I=x},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,u=n-i;su?u:s+o));1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return a.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,n){for(var i,a,o=[],s=e;s>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";var n=r(79742),i=r(80645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=u,e.h2=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|m(t,e),n=s(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(j(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||z(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function m(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return _(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(i)return n?-1:_(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,h=0;hi&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:128===(192&(a=t[i+1]))&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?u.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i)}i+=a.length}return n},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return T(this,t,e,r);case"base64":return N(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",a=e;ar)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,r,n,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function L(t,e,r,n,i,a){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,a){return e=+e,r>>>=0,a||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&t;++a>>=0,r>>>=0,n)||P(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(a=e;a55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function Z(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!==t}var F=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},86559:function(t,e,r){"use strict";r.d(e,{Z:function(){return g}});var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=function(t,e,r){var i,a=n[t];return i="string"===typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function a(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(t,e,r,n){return s[t]};function c(t){return function(e,r){var n;if("formatting"===(null!==r&&void 0!==r&&r.context?String(r.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!==r&&void 0!==r&&r.width?String(r.width):i;n=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):t.defaultWidth;n=t.values[s]||t.values[o]}return n[t.argumentCallback?t.argumentCallback(e):e]}}var f={ordinalNumber:function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:c({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:c({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:c({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:c({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:c({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var o,s=a[0],u=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(u)?p(u,(function(t){return t.test(s)})):h(u,(function(t){return t.test(s)}));o=t.valueCallback?t.valueCallback(c):c,o=r.valueCallback?r.valueCallback(o):o;var f=e.slice(s.length);return{value:o,rest:f}}}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function p(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(d.matchPattern);if(!r)return null;var n=r[0],i=t.match(d.parsePattern);if(!i)return null;var a=d.valueCallback?d.valueCallback(i[0]):i[0];a=e.valueCallback?e.valueCallback(a):a;var o=t.slice(n.length);return{value:a,rest:o}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},g={code:"en-US",formatDistance:i,formatLong:o,formatRelative:u,localize:f,match:m,options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(t,e,r){"use strict";r.d(e,{j:function(){return i}});var n={};function i(){return n}},24262:function(t,e,r){"use strict";function n(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}r.d(e,{Z:function(){return n}})},83946:function(t,e,r){"use strict";function n(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}r.d(e,{Z:function(){return n}})},77349:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);return isNaN(o)?new Date(NaN):o?(r.setDate(r.getDate()+o),r):r}},11640:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(83946),i=r(19013),a=r(13882);function o(t,e){(0,a.Z)(2,arguments);var r=(0,i.Z)(t),o=(0,n.Z)(e);if(isNaN(o))return new Date(NaN);if(!o)return r;var s=r.getDate(),u=new Date(r.getTime());u.setMonth(r.getMonth()+o+1,0);var c=u.getDate();return s>=c?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}},75401:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var n=r(24262),i=r(19013),a=r(13882);function o(t){(0,a.Z)(1,arguments);var e=(0,i.Z)(t);return e.setHours(0,0,0,0),e}var s=864e5;function u(t,e){(0,a.Z)(2,arguments);var r=o(t),i=o(e),u=r.getTime()-(0,n.Z)(r),c=i.getTime()-(0,n.Z)(i);return Math.round((u-c)/s)}},68730:function(t,e,r){"use strict";r.d(e,{Z:function(){return N}});var n=r(49474),i=r(77349),a=r(11640),o=r(19013),s=r(13882),u=r(83946);function c(t){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){if((0,s.Z)(2,arguments),!e||"object"!==c(e))return new Date(NaN);var r=e.years?(0,u.Z)(e.years):0,n=e.months?(0,u.Z)(e.months):0,f=e.weeks?(0,u.Z)(e.weeks):0,l=e.days?(0,u.Z)(e.days):0,h=e.hours?(0,u.Z)(e.hours):0,p=e.minutes?(0,u.Z)(e.minutes):0,d=e.seconds?(0,u.Z)(e.seconds):0,m=(0,o.Z)(t),g=n||r?(0,a.Z)(m,n+12*r):m,v=l||f?(0,i.Z)(g,l+7*f):g,y=p+60*h,b=d+60*y,w=1e3*b,E=new Date(v.getTime()+w);return E}var l=r(75401);function h(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function p(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e),i=h(r,n),a=Math.abs((0,l.Z)(r,n));r.setDate(r.getDate()-i*a);var u=Number(h(r,n)===-i),c=i*(a-u);return 0===c?0:c}Math.pow(10,8);var d=36e5,m=r(59910),g=r(93645);function v(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/d;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}function y(t,e,r){(0,s.Z)(2,arguments);var n=(0,m.Z)(t,e)/6e4;return(0,g.u)(null===r||void 0===r?void 0:r.roundingMethod)(n)}var b=r(82161),w=r(11699);function E(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),n=(0,o.Z)(e);return r.getFullYear()-n.getFullYear()}function T(t,e){(0,s.Z)(2,arguments);var r=(0,o.Z)(t),i=(0,o.Z)(e),a=(0,n.Z)(r,i),u=Math.abs(E(r,i));r.setFullYear(1584),i.setFullYear(1584);var c=(0,n.Z)(r,i)===-a,f=a*(u-Number(c));return 0===f?0:f}function N(t){(0,s.Z)(1,arguments);var e=(0,o.Z)(t.start),r=(0,o.Z)(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(r.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(T(r,e));var a=(0,n.Z)(r,e),u=f(e,{years:a*i.years});i.months=Math.abs((0,b.Z)(r,u));var c=f(u,{months:a*i.months});i.days=Math.abs(p(r,c));var l=f(c,{days:a*i.days});i.hours=Math.abs(v(r,l));var h=f(l,{hours:a*i.hours});i.minutes=Math.abs(y(r,h));var d=f(h,{minutes:a*i.minutes});return i.seconds=Math.abs((0,w.Z)(r,d)),i}},89144:function(t,e,r){var n,i="undefined"!==typeof r.g?r.g:"undefined"!==typeof window?window:{},a=r(25893);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{},t.exports=n},80645:function(t,e){e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,a=p&(1<<-f)-1,p>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=h,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),(e+=o+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"===typeof t&&"[object RegExp]"!==r||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"===typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"===typeof t)return o[t];var r,a=String(t);return(r=n[a.toLowerCase()])?r:(r=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"===typeof t){var r=t.which||t.keyCode||t.charCode;if(null===r||void 0===r)return!1;if("string"===typeof e){var a;if(a=n[e.toLowerCase()])return a===r;if(a=i[e.toLowerCase()])return a===r}else if("number"===typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"\u21e7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return m}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=String.fromCharCode(9),f=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},l=function(t){for(var e,r=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},h=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,r){var n=r(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},"undefined"!==typeof t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,v=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes?(f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){v+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,d.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;l=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),d.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length)));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1}));var e,r},O=function(t){var e,r,n=[];return e=t,r=function(t,e,r,i){n=n.concat(t.playlists||[])},x.forEach((function(t){for(var n in e.mediaGroups[t])for(var i in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][i];r(a,t,n,i)}})),n},C=function(t){var e=t.playlist,r=t.mediaSequence;e.mediaSequence=r,e.segments.forEach((function(t,r){t.number=e.mediaSequence+r}))},R=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(O(e)),i=r.playlists.concat(O(r));return r.timelineStarts=I([e.timelineStarts,r.timelineStarts]),function(t){var e=t.oldPlaylists,r=t.newPlaylists,n=t.timelineStarts;r.forEach((function(t){t.discontinuitySequence=p(n,(function(e){return e.timeline===t.timeline}));var r=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--);r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),C({playlist:t,mediaSequence:r.segments[a].number})}}))}({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},D=function(t){return t&&t.uri+"-"+function(t){var e;return e="bigint"===typeof t.offset||"bigint"===typeof t.length?a().BigInt(t.offset)+a().BigInt(t.length)-a().BigInt(1):t.offset+t.length-1,t.offset+"-"+e}(t.byterange)},M=function(t){return f(t.reduce((function(t,e){var r=e.attributes.id+(e.attributes.lang||"");if(t[r]){var n;if(e.segments)e.segments[0]&&(e.segments[0].discontinuity=!0),(n=t[r].segments).push.apply(n,e.segments);e.attributes.contentProtection&&(t[r].attributes.contentProtection=e.attributes.contentProtection)}else t[r]=e,t[r].attributes.timelineStarts=[];return t[r].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e,r;return t.discontinuityStarts=(e=t.segments||[],r="discontinuity",e.reduce((function(t,e,n){return e[r]&&t.push(n),t}),[])),t}))},P=function(t,e){var r=D(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&A(t,n,t.sidx.resolvedUri),t},L=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=P(t[r],e);return t},U=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:(e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},k=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},B=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},_=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},X=function(t){return t?Object.keys(t).reduce((function(e,r){var n=t[r];return e.concat(n.playlists)}),[]):[]},Z=function(t){var e,r=t.dashPlaylists,n=t.locations,i=t.sidxMapping,a=void 0===i?{}:i,o=t.previousManifest;if(!r.length)return{};var s=r[0].attributes,u=s.sourceDuration,c=s.type,f=s.suggestedPresentationDelay,l=s.minimumUpdatePeriod,h=M(r.filter(k)).map(U),d=M(r.filter(B)),m=M(r.filter(_)),g=r.map((function(t){return t.attributes.captionServices})).filter(Boolean),v={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:u,playlists:L(h,a)};l>=0&&(v.minimumUpdatePeriod=1e3*l),n&&(v.locations=n),"dynamic"===c&&(v.suggestedPresentationDelay=f);var y,b,w=0===v.playlists.length,E=d.length?function(t,e,r){var n;void 0===e&&(e={}),void 0===r&&(r=!1);var i=t.reduce((function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var u=a?" ("+a+")":"";s=""+i.attributes.lang+u}t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=P(function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:(r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},r["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(i,r),e);return t[s].playlists.push(c),"undefined"===typeof n&&"main"===a&&((n=i).default=!0),t}),{});return n||(i[Object.keys(i)[0]].default=!0),i}(d,a,w):null,T=m.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(P(function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;"undefined"===typeof n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}}(r),e)),t}),{})}(m,a):null,N=h.concat(X(E),X(T)),S=N.map((function(t){return t.timelineStarts}));return v.timelineStarts=I(S),y=N,b=v.timelineStarts,y.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=p(b,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),E&&(v.mediaGroups.AUDIO.audio=E),T&&(v.mediaGroups.SUBTITLES.subs=T),g.length&&(v.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce((function(t,e){return e?(e.forEach((function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),o?R({oldManifest:o,newManifest:v}):v},j=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=void 0===o?1:o,u=t.periodStart,c=void 0===u?0:u,f=t.minimumUpdatePeriod,l=(n+i)/1e3+(void 0===f?0:f)-(a+c);return Math.ceil((l*s-e)/r)},z=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,h=t.periodStart,p=[],d=-1,m=0;md&&(d=b);var w=void 0;if(y<0){var E=m+1;w=E===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?j(t,d,v):(s*c-d)/v:(e[E].t-d)/v}else w=y+1;for(var T=l+p.length+w,N=l+p.length;N=i?a:""+new Array(i-a.length+1).join("0")+a)}}(e))},H=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=w({baseUrl:t.baseUrl,source:q(a.sourceURL,r),range:a.range}),s=function(t,e){return t.duration||e?t.duration?N(t):z(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return s.map((function(e){r.Number=e.number,r.Time=e.time;var i=q(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}}))},K=function(t,e){var r=t.duration,n=t.segmentUrls,i=void 0===n?[]:n,a=t.periodStart;if(!r&&!e||r&&e)throw new Error(y);var o,s=i.map((function(e){return function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=w({baseUrl:r,source:i.sourceURL,range:i.range}),o=w({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o}(t,e)}));return r&&(o=N(t)),e&&(o=z(t,e)),o.map((function(e,r){if(s[r]){var n=s[r],i=t.timescale||1,o=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-o)/i,n}})).filter((function(t){return t}))},G=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=H,e=c(n,i.template)):i.base?(r=S,e=c(n,i.base)):i.list&&(r=K,e=c(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,f=s.timescale,l=void 0===f?1:f;e.duration=u/l}else o.length?e.duration=o.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},V=function(t,e){return h(t.childNodes).filter((function(t){return t.tagName===e}))},Y=function(t){return t.textContent.trim()},W=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},$={mediaPresentationDuration:function(t){return W(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return W(t)},suggestedPresentationDelay:function(t){return W(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return W(t)},start:function(t){return W(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?W(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},J=function(t){return t&&t.attributes?h(t.attributes).reduce((function(t,e){var r=$[e.name]||$.DEFAULT;return t[e.name]=r(e.value),t}),{}):{}},Q={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},tt=function(t,e){return e.length?l(t.map((function(t){return e.map((function(e){return(0,n.Z)(t,Y(e))}))}))):t},et=function(t){var e=V(t,"SegmentTemplate")[0],r=V(t,"SegmentList")[0],n=r&&V(r,"SegmentURL").map((function(t){return c({tag:"SegmentURL"},J(t))})),i=V(t,"SegmentBase")[0],a=r||e,o=a&&V(a,"SegmentTimeline")[0],s=r||i||e,u=s&&V(s,"Initialization")[0],f=e&&J(e);f&&u?f.initialization=u&&J(u):f&&f.initialization&&(f.initialization={sourceURL:f.initialization});var l={template:f,segmentTimeline:o&&V(o,"S").map((function(t){return J(t)})),list:r&&c(J(r),{segmentUrls:n,initialization:J(u)}),base:i&&c(J(i),{initialization:J(u)})};return Object.keys(l).forEach((function(t){l[t]||delete l[t]})),l},rt=function(t,e,r){return function(n){var i,a=J(n),s=tt(e,V(n,"BaseURL")),u=V(n,"Role")[0],f={role:J(u)},h=c(t,a,f),p=V(n,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(i=J(p)).schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e,r;if(r=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!==typeof i.value?[]:i.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1],a=void 0===i?"":i;e.channel=n,e.language=t,a.split(",").forEach((function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;d&&(h=c(h,{captionServices:d}));var m=V(n,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();h=c(h,{label:g})}var v=V(n,"ContentProtection").reduce((function(t,e){var r=J(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=Q[r.schemeIdUri];if(n){t[n]={attributes:r};var i=V(e,"cenc:pssh")[0];if(i){var a=Y(i);t[n].pssh=a&&(0,o.Z)(a)}}return t}),{});Object.keys(v).length&&(h=c(h,{contentProtection:v}));var y=et(n),b=V(n,"Representation"),w=c(r,y);return l(b.map(function(t,e,r){return function(n){var i=V(n,"BaseURL"),a=tt(e,i),o=c(t,J(n)),s=et(n);return a.map((function(t){return{segmentInfo:c(r,s),attributes:c(o,{baseUrl:t})}}))}}(h,s,w)))}},nt=function(t,e){return function(r,n){var i=tt(e,V(r.node,"BaseURL")),a=c(t,{periodStart:r.attributes.start});"number"===typeof r.attributes.duration&&(a.periodDuration=r.attributes.duration);var o=V(r.node,"AdaptationSet"),s=et(r.node);return l(o.map(rt(a,i,s)))}},it=function(t){if(""===t)throw new Error(m);var e,r,n=new s.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(g);return r},at=function(t,e){void 0===e&&(e={});var r=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=void 0===n?"":n,a=r.NOW,o=void 0===a?Date.now():a,s=r.clientOffset,u=void 0===s?0:s,c=V(t,"Period");if(!c.length)throw new Error(d);var f=V(t,"Location"),h=J(t),p=tt([i],V(t,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=u,f.length&&(h.locations=f.map(Y));var m=[];return c.forEach((function(t,e){var r=J(t),n=m[e-1];r.start=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"===typeof e.start?e.start:r&&"number"===typeof r.start&&"number"===typeof r.duration?r.start+r.duration:r||"static"!==n?null:0}({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:h.type}),m.push({node:t,attributes:r})})),{locations:h.locations,representationInfo:l(m.map(nt(h,p)))}}(it(t),e),n=r.representationInfo.map(G);return Z({dashPlaylists:n,locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},ot=function(t){return function(t){var e=V(t,"UTCTiming")[0];if(!e)return null;var r=J(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw new Error(b)}return r}(it(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i,a,o,s,u=9e4;e=function(t){return t*u},r=function(t,e){return t*e},n=function(t){return t/u},i=function(t,e){return t/e},a=function(t,r){return e(i(t,r))},o=function(t,e){return r(n(t),e)},s=function(t,e,r){return n(r?t:t-e)},t.exports={ONE_SECOND_IN_TS:u,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},46894:function(t){var e=Math.pow(2,32);t.exports={getUint64:function(t){var r,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(r=n.getBigUint64(0))0;function i(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),(function(){r(window.event)}))}function a(t,e){for(var r=e.slice(0,e.length-1),n=0;n=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":n?173:189,"=":n?61:187,";":n?59:186,"'":222,"[":219,"]":221,"\\":220},u={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},f={16:!1,18:!1,17:!1,91:!1},l={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],d=!1,m="all",g=[],v=function(t){return s[t.toLowerCase()]||u[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function y(t){m=t||"all"}function b(){return m||"all"}var w=function(t){var e=t.key,r=t.scope,n=t.method,i=t.splitKey,s=void 0===i?"+":i;o(e).forEach((function(t){var e=t.split(s),i=e.length,o=e[i-1],c="*"===o?"*":v(o);if(l[c]){r||(r=b());var f=i>1?a(u,e):[];l[c]=l[c].filter((function(t){return!((!n||t.method===n)&&t.scope===r&&function(t,e){for(var r=t.length>=e.length?t:e,n=t.length>=e.length?e:t,i=!0,a=0;a0,f)Object.prototype.hasOwnProperty.call(f,a)&&(!f[a]&&e.mods.indexOf(+a)>-1||f[a]&&-1===e.mods.indexOf(+a))&&(i=!1);(0!==e.mods.length||f[16]||f[18]||f[17]||f[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function T(t,e){var r=l["*"],n=t.keyCode||t.which||t.charCode;if(N.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===p.indexOf(n)&&229!==n&&p.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var r=c[e];t[e]&&-1===p.indexOf(r)?p.push(r):!t[e]&&p.indexOf(r)>-1?p.splice(p.indexOf(r),1):"metaKey"===e&&t[e]&&3===p.length&&(t.ctrlKey||t.shiftKey||t.altKey||(p=p.slice(p.indexOf(r))))})),n in f){for(var i in f[n]=!0,u)u[i]===n&&(N[i]=!0);if(!r)return}for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(f[a]=t[c[a]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),f[17]=!0,f[18]=!0);var o=b();if(r)for(var s=0;s1&&(s=a(u,t)),(t="*"===(t=t[t.length-1])?"*":v(t))in l||(l[t]=[]),l[t].push({keyup:y,keydown:b,scope:c,mods:s,shortcut:n[m],method:r,key:n[m],splitKey:w,element:h});"undefined"!==typeof h&&!function(t){return g.indexOf(t)>-1}(h)&&window&&(g.push(h),i(h,"keydown",(function(t){T(t,h)}),E),d||(d=!0,i(window,"focus",(function(){p=[]}),E)),i(h,"keyup",(function(t){T(t,h),function(t){var e=t.keyCode||t.which||t.charCode,r=p.indexOf(e);if(r>=0&&p.splice(r,1),t.key&&"meta"===t.key.toLowerCase()&&p.splice(0,p.length),93!==e&&224!==e||(e=91),e in f)for(var n in f[e]=!1,u)u[n]===e&&(N[n]=!1)}(t)}),E))}var S={setScope:y,getScope:b,deleteScope:function(t,e){var r,n;for(var i in t||(t=b()),l)if(Object.prototype.hasOwnProperty.call(l,i))for(r=l[i],n=0;n1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(l).forEach((function(r){var n=l[r].find((function(r){return r.scope===e&&r.shortcut===t}));n&&n.method&&n.method()}))},unbind:function(t){if("undefined"===typeof t)Object.keys(l).forEach((function(t){return delete l[t]}));else if(Array.isArray(t))t.forEach((function(t){t.key&&w(t)}));else if("object"===typeof t)t.key&&w(t);else if("string"===typeof t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(r);if(2===o.length)e(o[0].trim(),o[1].trim())}}function c(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"--\x3e"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(i){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(i){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var f=n.createElement&&n.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},d={rt:"ruby"};function m(t,e){function r(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}function n(t,e){return!d[e.localName]||d[e.localName]===t.localName}function i(e,r){var n=l[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}for(var a,s,u=t.document.createElement("div"),c=u,m=[];null!==(a=r());)if("<"!==a[0])c.appendChild(t.document.createTextNode((s=a,f.innerHTML=s,s=f.textContent,f.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=o(a.substr(1,a.length-2));if(v){g=t.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=i(y[1],y[3])))continue;if(!n(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(h.hasOwnProperty(r)){var n=e?"background-color":"color",i=h[r];g.style[n]=i}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return u}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(t){for(var e=0;e=r[0]&&t<=r[1])return!0}return!1}function y(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function i(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(t.length=0,a[0]):r}return"ruby"===e.tagName?i(t):e.childNodes?(n(t,e),i(t)):void 0}for(n(e,t);r=i(e);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=f<0?-1:1,f*=Math.ceil(l/c)*c),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(h,f)}else{var p=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new E(e)}var d=function(t,e){for(var i,a=new E(t),o=1,s=0;su&&(i=new E(t),o=u),t=new E(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}function N(){}b.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},b.prototype.formatStyle=function(t,e){return 0===t?0:t+e},w.prototype=i(b.prototype),w.prototype.constructor=w,E.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},E.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},E.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},E.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},E.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},E.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},E.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},N.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},N.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null};N.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var e=0;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"===typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r=function(t){return"string"===typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},10434:function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;eZ&&(a="".concat(i.slice(0,Z),"..."))}var u=function(t){t&&t.stopPropagation(),P(e)};return"function"===typeof x?function(e,t,n,o,r){return v.createElement("span",{onMouseDown:function(e){H(e),M(!l)}},x({label:t,value:e,disabled:n,closable:o,onClose:r}))}(o,a,t,r,u):te(e,a,t,r,u)},renderRest:function(e){var t="function"===typeof O?O(e):O;return te({title:t},t,!1)},suffix:ne,itemKey:_,maxCount:S});return v.createElement(v.Fragment,null,oe,!u.length&&!J&&v.createElement("span",{className:"".concat(q,"-placeholder")},p))},F=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,a=e.disabled,i=e.autoFocus,u=e.autoComplete,l=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,d=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,S=e.onInputChange,Z=e.onInputPaste,C=e.onInputCompositionStart,O=e.onInputCompositionEnd,x=v.useState(!1),M=(0,c.Z)(x,2),R=M[0],N=M[1],P="combobox"===s,D=P||h,j=p[0],k=g||"";P&&b&&!R&&(k=b),v.useEffect((function(){P&&N(!1)}),[P,b]);var A=!("combobox"!==s&&!f&&!h)&&!!k,_=L(j);return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(n,"-selection-search")},v.createElement(T,{ref:r,prefixCls:n,id:o,open:f,inputElement:t,disabled:a,autoFocus:i,autoComplete:u,editable:D,activeDescendantId:l,value:k,onKeyDown:w,onMouseDown:E,onChange:function(e){N(!0),S(e)},onPaste:Z,onCompositionStart:C,onCompositionEnd:O,tabIndex:m,attrs:(0,I.Z)(e,!0),maxLength:P?y:void 0})),!P&&j&&!A&&v.createElement("span",{className:"".concat(n,"-selection-item"),title:_},j.label),function(){if(j)return null;var e=A?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},d)}())};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=v.useRef(null),n=v.useRef(null);function o(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return v.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},o]}var z=function(e,t){var n=(0,v.useRef)(null),o=(0,v.useRef)(!1),a=e.prefixCls,i=e.open,u=e.mode,l=e.showSearch,s=e.tokenWithEnter,f=e.onSearch,p=e.onSearchSubmit,d=e.onToggleOpen,h=e.onInputKeyDown,g=e.domRef;v.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var b=K(0),y=(0,c.Z)(b,2),w=y[0],E=y[1],S=(0,v.useRef)(null),Z=function(e){!1!==f(e,!0,o.current)&&d(!0)},C={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==m.Z.UP&&n!==m.Z.DOWN||e.preventDefault(),h&&h(e),n!==m.Z.ENTER||"tags"!==u||o.current||i||null===p||void 0===p||p(e.target.value),t=n,[m.Z.ESC,m.Z.SHIFT,m.Z.BACKSPACE,m.Z.TAB,m.Z.WIN_KEY,m.Z.ALT,m.Z.META,m.Z.WIN_KEY_RIGHT,m.Z.CTRL,m.Z.SEMICOLON,m.Z.EQUALS,m.Z.CAPS_LOCK,m.Z.CONTEXT_MENU,m.Z.F1,m.Z.F2,m.Z.F3,m.Z.F4,m.Z.F5,m.Z.F6,m.Z.F7,m.Z.F8,m.Z.F9,m.Z.F10,m.Z.F11,m.Z.F12].includes(t)||d(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(s&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,Z(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");S.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==u&&Z(e.target.value)}},O="multiple"===u||"tags"===u?v.createElement(V,(0,r.Z)({},e,C)):v.createElement(F,(0,r.Z)({},e,C));return v.createElement("div",{ref:g,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||"combobox"===u||e.preventDefault(),("combobox"===u||l&&t)&&i||(i&&f("",!0,!1),d())}},O)},U=v.forwardRef(z);U.displayName="Selector";var W=U;var Y=v.createContext(null);var B=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],G=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function X(e){return"tags"===e||"multiple"===e}var $=v.forwardRef((function(e,t){var n,a,d=e.id,w=e.prefixCls,E=e.className,S=e.showSearch,Z=e.tagRender,C=e.direction,O=e.omitDomProps,x=e.displayValues,I=e.onDisplayValuesChange,R=e.emptyOptions,P=e.notFoundContent,D=void 0===P?"Not Found":P,T=e.onClear,j=e.mode,k=e.disabled,A=e.loading,L=e.getInputElement,_=e.getRawInputElement,H=e.open,V=e.defaultOpen,F=e.onDropdownVisibleChange,z=e.activeValue,U=e.onActiveValueChange,$=e.activeDescendantId,Q=e.searchValue,q=e.onSearch,J=e.onSearchSplit,ee=e.tokenSeparators,te=e.allowClear,ne=e.showArrow,oe=e.inputIcon,re=e.clearIcon,ae=e.OptionList,ie=e.animation,ue=e.transitionName,le=e.dropdownStyle,ce=e.dropdownClassName,se=e.dropdownMatchSelectWidth,fe=e.dropdownRender,pe=e.dropdownAlign,de=e.placement,ve=e.getPopupContainer,me=e.showAction,he=void 0===me?[]:me,ge=e.onFocus,be=e.onBlur,ye=e.onKeyUp,we=e.onKeyDown,Ee=e.onMouseDown,Se=(0,s.Z)(e,B),Ze=X(j),Ce=(void 0!==S?S:Ze)||"combobox"===j,Oe=(0,l.Z)({},Se);G.forEach((function(e){delete Oe[e]})),null===O||void 0===O||O.forEach((function(e){delete Oe[e]}));var xe=v.useState(!1),Me=(0,c.Z)(xe,2),Ie=Me[0],Re=Me[1];v.useEffect((function(){Re((0,h.Z)())}),[]);var Ne=v.useRef(null),Pe=v.useRef(null),De=v.useRef(null),Te=v.useRef(null),je=v.useRef(null),ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=v.useState(!1),n=(0,c.Z)(t,2),o=n[0],r=n[1],a=v.useRef(null),i=function(){window.clearTimeout(a.current)};return v.useEffect((function(){return i}),[]),[o,function(t,n){i(),a.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),Ae=(0,c.Z)(ke,3),Le=Ae[0],_e=Ae[1],He=Ae[2];v.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Te.current)||void 0===e?void 0:e.focus,blur:null===(t=Te.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=je.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Ve=v.useMemo((function(){var e;if("combobox"!==j)return Q;var t=null===(e=x[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[Q,j,x]),Fe="combobox"===j&&"function"===typeof L&&L()||null,Ke="function"===typeof _&&_(),ze=(0,g.x1)(Pe,null===Ke||void 0===Ke||null===(n=Ke.props)||void 0===n?void 0:n.ref),Ue=(0,p.Z)(void 0,{defaultValue:V,value:H}),We=(0,c.Z)(Ue,2),Ye=We[0],Be=We[1],Ge=Ye,Xe=!D&&R;(k||Xe&&Ge&&"combobox"===j)&&(Ge=!1);var $e=!Xe&&Ge,Qe=v.useCallback((function(e){var t=void 0!==e?e:!Ge;Ge===t||k||(Be(t),null===F||void 0===F||F(t))}),[k,Ge,Be,F]),qe=v.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),Je=function(e,t,n){var o=!0,r=e;null===U||void 0===U||U(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,y.Z)(o),a=r[0],i=r.slice(1);if(!a)return[t];var l=t.split(a);return n=n||l.length>1,l.reduce((function(t,n){return[].concat((0,u.Z)(t),(0,u.Z)(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?o:null}(e,ee);return"combobox"!==j&&a&&(r="",null===J||void 0===J||J(a),Qe(!1),o=!1),q&&Ve!==r&&q(r,{source:t?"typing":"effect"}),o};v.useEffect((function(){Ge||Ze||"combobox"===j||Je("",!1,!1)}),[Ge]),v.useEffect((function(){Ye&&k&&Be(!1),k&&_e(!1)}),[k]);var et=K(),tt=(0,c.Z)(et,2),nt=tt[0],ot=tt[1],rt=v.useRef(!1),at=[];v.useEffect((function(){return function(){at.forEach((function(e){return clearTimeout(e)})),at.splice(0,at.length)}}),[]);var it,ut=v.useState(null),lt=(0,c.Z)(ut,2),ct=lt[0],st=lt[1],ft=v.useState({}),pt=(0,c.Z)(ft,2)[1];(0,b.Z)((function(){if($e){var e,t=Math.ceil(null===(e=Ne.current)||void 0===e?void 0:e.offsetWidth);ct===t||Number.isNaN(t)||st(t)}}),[$e]),Ke&&(it=function(e){Qe(e)}),function(e,t,n,o){var r=v.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},v.useEffect((function(){function t(t){var n;if(!(null===(n=r.current)||void 0===n?void 0:n.customizedTrigger)){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=De.current)||void 0===e?void 0:e.getPopupElement()]}),$e,Qe,!!Ke);var dt,vt,mt=v.useMemo((function(){return(0,l.Z)((0,l.Z)({},e),{},{notFoundContent:D,open:Ge,triggerOpen:$e,id:d,showSearch:Ce,multiple:Ze,toggleOpen:Qe})}),[e,D,$e,Ge,d,Ce,Ze,Qe]),ht=void 0!==ne?ne:A||!Ze&&"combobox"!==j;ht&&(dt=v.createElement(N,{className:i()("".concat(w,"-arrow"),(0,o.Z)({},"".concat(w,"-arrow-loading"),A)),customizeIcon:oe,customizeIconProps:{loading:A,searchValue:Ve,open:Ge,focused:Le,showSearch:Ce}}));k||!te||!x.length&&!Ve||"combobox"===j&&""===Ve||(vt=v.createElement(N,{className:"".concat(w,"-clear"),onMouseDown:function(){null===T||void 0===T||T(),I([],{type:"clear",values:x}),Je("",!1,!1)},customizeIcon:re},"\xd7"));var gt,bt=v.createElement(ae,{ref:je}),yt=i()(w,E,(a={},(0,o.Z)(a,"".concat(w,"-focused"),Le),(0,o.Z)(a,"".concat(w,"-multiple"),Ze),(0,o.Z)(a,"".concat(w,"-single"),!Ze),(0,o.Z)(a,"".concat(w,"-allow-clear"),te),(0,o.Z)(a,"".concat(w,"-show-arrow"),ht),(0,o.Z)(a,"".concat(w,"-disabled"),k),(0,o.Z)(a,"".concat(w,"-loading"),A),(0,o.Z)(a,"".concat(w,"-open"),Ge),(0,o.Z)(a,"".concat(w,"-customize-input"),Fe),(0,o.Z)(a,"".concat(w,"-show-search"),Ce),a)),wt=v.createElement(M,{ref:De,disabled:k,prefixCls:w,visible:$e,popupElement:bt,containerWidth:ct,animation:ie,transitionName:ue,dropdownStyle:le,dropdownClassName:ce,direction:C,dropdownMatchSelectWidth:se,dropdownRender:fe,dropdownAlign:pe,placement:de,getPopupContainer:ve,empty:R,getTriggerDOMNode:function(){return Pe.current},onPopupVisibleChange:it,onPopupMouseEnter:function(){pt({})}},Ke?v.cloneElement(Ke,{ref:ze}):v.createElement(W,(0,r.Z)({},e,{domRef:Pe,prefixCls:w,inputElement:Fe,ref:Te,id:d,showSearch:Ce,mode:j,activeDescendantId:$,tagRender:Z,values:x,open:Ge,onToggleOpen:Qe,activeValue:z,searchValue:Ve,onSearch:Je,onSearchSubmit:function(e){e&&e.trim()&&q(e,{source:"submit"})},onRemove:function(e){var t=x.filter((function(t){return t!==e}));I(t,{type:"remove",values:[e]})},tokenWithEnter:qe})));return gt=Ke?wt:v.createElement("div",(0,r.Z)({className:yt},Oe,{ref:Ne,onMouseDown:function(e){var t,n=e.target,o=null===(t=De.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=at.indexOf(r);-1!==t&&at.splice(t,1),He(),Ie||o.contains(document.activeElement)||null===(e=Te.current)||void 0===e||e.focus()}));at.push(r)}for(var a=arguments.length,i=new Array(a>1?a-1:0),u=1;u=0;i-=1){var l=r[i];if(!l.disabled){r.splice(i,1),a=l;break}}a&&I(r,{type:"remove",values:[a]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),f=1;f1?t-1:0),o=1;o1&&void 0!==arguments[1]&&arguments[1];return(0,oe.Z)(e).map((function(e,n){if(!v.isValidElement(e)||!e.type)return null;var o=e.type.isSelectOptGroup,r=e.key,a=e.props,i=a.children,u=(0,s.Z)(a,ae);return t||!o?ie(e):(0,l.Z)((0,l.Z)({key:"__RC_SELECT_GRP__".concat(null===r?n:r,"__"),label:r},u),{},{options:ue(i)})})).filter((function(e){return e}))}function le(e,t,n,o,r){return v.useMemo((function(){var a=e;!e&&(a=ue(t));var i=new Map,u=new Map,l=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];K(e);var n={source:t?"keyboard":"mouse"},o=j[e];o?S(o.value,e,n):S(null,-1,n)};(0,v.useEffect)((function(){z(!1!==Z?_(0):-1)}),[j.length,h]);var U=v.useCallback((function(e){return x.has(e)&&"combobox"!==d}),[d,(0,u.Z)(x).toString()]);(0,v.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&f&&1===x.size){var e=Array.from(x)[0],t=j.findIndex((function(t){return t.data.value===e}));-1!==t&&(z(t),L(t))}}));f&&(null===(e=k.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f,h]);var W=function(e){void 0!==e&&C(e,{selected:!x.has(e)}),p||g(!1)};if(v.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:var o=0;if(t===m.Z.UP?o=-1:t===m.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===m.Z.N?o=1:t===m.Z.P&&(o=-1)),0!==o){var r=_(F+o,o);L(r),z(r,!0)}break;case m.Z.ENTER:var a=j[F];a&&!a.data.disabled?W(a.value):W(void 0),f&&e.preventDefault();break;case m.Z.ESC:g(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===j.length)return v.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(T,"-empty"),onMouseDown:A},b);var B=Object.keys(M).map((function(e){return M[e]})),G=function(e){return e.label},X=function(e){var t=j[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,i=(0,I.Z)(n,!0),u=G(t);return t?v.createElement("div",(0,r.Z)({"aria-label":"string"!==typeof u||a?null:u},i,{key:e,role:a?"presentation":"option",id:"".concat(l,"_list_").concat(e),"aria-selected":U(o)}),o):null};return v.createElement(v.Fragment,null,v.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},X(F-1),X(F),X(F+1)),v.createElement(he.Z,{itemKey:"key",ref:k,data:j,height:P,itemHeight:D,fullHeight:!1,onMouseDown:A,onScroll:y,virtual:R},(function(e,t){var n,a=e.group,u=e.groupOption,l=e.data,c=e.label,f=e.value,p=l.key;if(a){var d,m=null!==(d=l.title)&&void 0!==d?d:ye(c)?c.toString():void 0;return v.createElement("div",{className:i()(T,"".concat(T,"-group")),title:m},void 0!==c?c:p)}var h=l.disabled,g=l.title,b=(l.children,l.style),y=l.className,w=(0,s.Z)(l,be),E=(0,ve.Z)(w,B),S=U(f),Z="".concat(T,"-option"),C=i()(T,Z,y,(n={},(0,o.Z)(n,"".concat(Z,"-grouped"),u),(0,o.Z)(n,"".concat(Z,"-active"),F===t&&!h),(0,o.Z)(n,"".concat(Z,"-disabled"),h),(0,o.Z)(n,"".concat(Z,"-selected"),S),n)),x=G(e),M=!O||"function"===typeof O||S,R="number"===typeof x?x:x||f,P=ye(R)?R.toString():void 0;return void 0!==g&&(P=g),v.createElement("div",(0,r.Z)({},(0,I.Z)(E),{"aria-selected":S,className:C,title:P,onMouseMove:function(){F===t||h||z(t)},onClick:function(){h||W(f)},style:b}),v.createElement("div",{className:"".concat(Z,"-content")},R),v.isValidElement(O)||S,M&&v.createElement(N,{className:"".concat(T,"-option-state"),customizeIcon:O,customizeIconProps:{isSelected:S}},S?"\u2713":null))})))},Ee=v.forwardRef(we);Ee.displayName="OptionList";var Se=Ee;var Ze=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ce=["inputValue"];var Oe=v.forwardRef((function(e,t){var n=e.id,a=e.mode,i=e.prefixCls,d=void 0===i?"rc-select":i,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,y=e.onSearch,Z=e.autoClearSearchValue,C=void 0===Z||Z,O=e.onSelect,x=e.onDeselect,M=e.dropdownMatchSelectWidth,I=void 0===M||M,R=e.filterOption,N=e.filterSort,P=e.optionFilterProp,D=e.optionLabelProp,T=e.options,k=e.children,A=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,_=e.virtual,H=e.listHeight,V=void 0===H?200:H,F=e.listItemHeight,K=void 0===F?20:F,z=e.value,U=e.defaultValue,W=e.labelInValue,Y=e.onChange,B=(0,s.Z)(e,Ze),G=ne(n),$=X(a),J=!(T||!k),ee=v.useMemo((function(){return(void 0!==R||"combobox"!==a)&&R}),[R,a]),te=v.useMemo((function(){return E(h,J)}),[JSON.stringify(h),J]),oe=(0,p.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),re=(0,c.Z)(oe,2),ae=re[0],ie=re[1],ue=le(T,k,te,P,D),se=ue.valueOptions,fe=ue.labelOptions,pe=ue.options,de=v.useCallback((function(e){return j(e).map((function(e){var t,n,o,r,a,i;(function(e){return!e||"object"!==(0,f.Z)(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(i=e.value)&&void 0!==i?i:o);var u,l=se.get(t);l&&(void 0===n&&(n=null===l||void 0===l?void 0:l[D||te.label]),void 0===o&&(o=null!==(u=null===l||void 0===l?void 0:l.key)&&void 0!==u?u:t),r=null===l||void 0===l?void 0:l.disabled,a=null===l||void 0===l?void 0:l.title);return{label:n,value:t,key:o,disabled:r,title:a}}))}),[te,D,se]),ve=(0,p.Z)(U,{value:z}),me=(0,c.Z)(ve,2),he=me[0],be=me[1],ye=function(e,t){var n=v.useRef({values:new Map,options:new Map});return[v.useMemo((function(){var o=n.current,r=o.values,a=o.options,i=e.map((function(e){var t;return void 0===e.label?(0,l.Z)((0,l.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),u=new Map,c=new Map;return i.forEach((function(e){u.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))})),n.current.values=u,n.current.options=c,i}),[e,t]),v.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(v.useMemo((function(){var e,t=de(he);return"combobox"!==a||(null===(e=t[0])||void 0===e?void 0:e.value)?t:[]}),[he,de,a]),se),we=(0,c.Z)(ye,2),Ee=we[0],Oe=we[1],xe=v.useMemo((function(){if(!a&&1===Ee.length){var e=Ee[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Ee.map((function(e){var t;return(0,l.Z)((0,l.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[a,Ee]),Me=v.useMemo((function(){return new Set(Ee.map((function(e){return e.value})))}),[Ee]);v.useEffect((function(){if("combobox"===a){var e,t=null===(e=Ee[0])||void 0===e?void 0:e.value;ie(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[Ee]);var Ie=ce((function(e,t){var n,r=null!==t&&void 0!==t?t:e;return n={},(0,o.Z)(n,te.value,e),(0,o.Z)(n,te.label,r),n})),Re=function(e,t,n,r,a){return v.useMemo((function(){if(!n||!1===r)return e;var i=t.options,u=t.label,c=t.value,s=[],f="function"===typeof r,p=n.toUpperCase(),d=f?r:function(e,t){return a?q(t[a],p):t[i]?q(t["children"!==u?u:"label"],p):q(t[c],p)},v=f?function(e){return S(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,v(e)))s.push(e);else{var t=e[i].filter((function(e){return d(n,v(e))}));t.length&&s.push((0,l.Z)((0,l.Z)({},e),{},(0,o.Z)({},i,t)))}else d(n,v(e))&&s.push(e)})),s}),[e,r,a,n,t])}(v.useMemo((function(){if("tags"!==a)return pe;var e=(0,u.Z)(pe);return(0,u.Z)(Ee).sort((function(e,t){return e.value1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],a=E(n,!1),i=a.label,u=a.value,l=a.options;function c(e,t){e.forEach((function(e){var n=e[i];if(t||!(l in e)){var a=e[u];r.push({key:w(e,r.length),groupOption:t,data:e,label:n,value:a})}else{var s=n;void 0===s&&o&&(s=e.label),r.push({key:w(e,r.length),group:!0,data:e,label:s}),c(e[l],!0)}}))}return c(e,!1),r}(Pe,{fieldNames:te,childrenAsData:J})}),[Pe,te,J]),Te=function(e){var t=de(e);if(be(t),Y&&(t.length!==Ee.length||t.some((function(e,t){var n;return(null===(n=Ee[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=W?t:t.map((function(e){return e.value})),o=t.map((function(e){return S(Oe(e.value))}));Y($?n:n[0],$?o:o[0])}},je=v.useState(null),ke=(0,c.Z)(je,2),Ae=ke[0],Le=ke[1],_e=v.useState(0),He=(0,c.Z)(_e,2),Ve=He[0],Fe=He[1],Ke=void 0!==A?A:"combobox"!==a,ze=v.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source,r=void 0===o?"keyboard":o;Fe(t),m&&"combobox"===a&&null!==e&&"keyboard"===r&&Le(String(e))}),[m,a]),Ue=function(e,t){var n=function(){var t,n=Oe(e);return[W?{label:null===n||void 0===n?void 0:n[te.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,S(n)]};if(t&&O){var o=n(),r=(0,c.Z)(o,2),a=r[0],i=r[1];O(a,i)}else if(!t&&x){var u=n(),l=(0,c.Z)(u,2),s=l[0],f=l[1];x(s,f)}},We=ce((function(e,t){var n,o=!$||t.selected;n=o?$?[].concat((0,u.Z)(Ee),[e]):[e]:Ee.filter((function(t){return t.value!==e})),Te(n),Ue(e,o),"combobox"===a?Le(""):X&&!C||(ie(""),Le(""))})),Ye=v.useMemo((function(){var e=!1!==_&&!1!==I;return(0,l.Z)((0,l.Z)({},ue),{},{flattenOptions:De,onActiveValue:ze,defaultActiveFirstOption:Ke,onSelect:We,menuItemSelectedIcon:L,rawValues:Me,fieldNames:te,virtual:e,listHeight:V,listItemHeight:K,childrenAsData:J})}),[ue,De,ze,Ke,We,L,Me,te,_,I,V,K,J]);return v.createElement(ge.Provider,{value:Ye},v.createElement(Q,(0,r.Z)({},B,{id:G,prefixCls:d,ref:t,omitDomProps:Ce,mode:a,displayValues:xe,onDisplayValuesChange:function(e,t){Te(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){Ue(e.value,!1)}))},searchValue:ae,onSearch:function(e,t){if(ie(e),Le(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===a&&Te(e),null===y||void 0===y||y(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,u.Z)(Me),[n])));Te(o),Ue(n,!0),ie("")}}},onSearchSplit:function(e){var t=e;"tags"!==a&&(t=e.map((function(e){var t=fe.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,u.Z)(Me),(0,u.Z)(t))));Te(n),n.forEach((function(e){Ue(e,!0)}))},dropdownMatchSelectWidth:I,OptionList:Se,emptyOptions:!De.length,activeValue:Ae,activeDescendantId:"".concat(G,"_list_").concat(Ve)})))}));var xe=Oe;xe.Option=de,xe.OptGroup=fe;var Me=xe,Ie=n(53124),Re=n(88258),Ne=n(98866),Pe=n(97647),De=n(65223),Te=n(33603),je=n(9708),ke=n(63606),Ae=n(4340),Le=n(97937),_e=n(80882),He=n(50888),Ve=n(68795);var Fe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rn},e}return t=u,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props.prefixCls,i=this.getSpinHeight(),u=this.getTop(),l=this.showScroll(),c=l&&n;return o.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(r,"-scrollbar"),v({},"".concat(r,"-scrollbar-show"),l)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},o.createElement("div",{ref:this.thumbRef,className:a()("".concat(r,"-scrollbar-thumb"),v({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:u,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component);function Z(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}var C=n(34203);function O(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],o=e<0&&i.current.top||e>0&&i.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||a(),!n.current&&o}};var A=n(8410);var L=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _(){return _=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var W=[],Y={overflowY:"auto",overflowAnchor:"none"};function B(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,u=e.height,l=e.itemHeight,c=e.fullHeight,s=void 0===c||c,d=e.style,v=e.data,m=e.children,h=e.itemKey,g=e.virtual,b=e.component,y=void 0===b?"div":b,w=e.onScroll,E=e.onVisibleChange,O=U(e,L),I=!(!1===g||!u||!l),N=I&&v&&l*v.length>u,P=K((0,o.useState)(0),2),T=P[0],H=P[1],z=K((0,o.useState)(!1),2),B=z[0],G=z[1],X=a()(r,i),$=v||W,Q=(0,o.useRef)(),q=(0,o.useRef)(),J=(0,o.useRef)(),ee=o.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),te={getKey:ee};function ne(e){H((function(t){var n=function(e){var t=e;Number.isNaN(be.current)||(t=Math.min(t,be.current));return t=Math.max(t,0)}("function"===typeof e?e(t):e);return Q.current.scrollTop=n,n}))}var oe=(0,o.useRef)({start:0,end:$.length}),re=(0,o.useRef)(),ae=K(D($,ee),1)[0];re.current=ae;var ie=function(e,t,n){var r=M(o.useState(0),2),a=r[0],i=r[1],u=(0,o.useRef)(new Map),l=(0,o.useRef)(new x),c=(0,o.useRef)();function s(){p.Z.cancel(c.current)}function f(){s(),c.current=(0,p.Z)((function(){u.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,C.Z)(e),o=n.offsetHeight;l.current.get(t)!==o&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))}))}return(0,o.useEffect)((function(){return s}),[]),[function(o,r){var a=e(o),i=u.current.get(a);r?(u.current.set(a,r),f()):u.current.delete(a),!i!==!r&&(r?null===t||void 0===t||t(o):null===n||void 0===n||n(o))},f,l.current,a]}(ee,null,null),ue=K(ie,4),le=ue[0],ce=ue[1],se=ue[2],fe=ue[3],pe=o.useMemo((function(){if(!I)return{scrollHeight:void 0,start:0,end:$.length-1,offset:void 0};var e;if(!N)return{scrollHeight:(null===(e=q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var t,n,o,r=0,a=$.length,i=0;i=T&&void 0===t&&(t=i,n=r),p>T+u&&void 0===o&&(o=i),r=p}return void 0===t&&(t=0,n=0),void 0===o&&(o=$.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,$.length),offset:n}}),[N,I,T,$,fe,u]),de=pe.scrollHeight,ve=pe.start,me=pe.end,he=pe.offset;oe.current.start=ve,oe.current.end=me;var ge=de-u,be=(0,o.useRef)(ge);be.current=ge;var ye=T<=0,we=T>=ge,Ee=k(ye,we);var Se=function(e,t,n,r){var a=(0,o.useRef)(0),i=(0,o.useRef)(null),u=(0,o.useRef)(null),l=(0,o.useRef)(!1),c=k(t,n);return[function(t){if(e){p.Z.cancel(i.current);var n=t.deltaY;a.current+=n,u.current=n,c(n)||(j||t.preventDefault(),i.current=(0,p.Z)((function(){var e=l.current?10:1;r(a.current*e),a.current=0})))}},function(t){e&&(l.current=t.detail===u.current)}]}(I,ye,we,(function(e){ne((function(t){return t+e}))})),Ze=K(Se,2),Ce=Ze[0],Oe=Ze[1];!function(e,t,n){var r,a=(0,o.useRef)(!1),i=(0,o.useRef)(0),u=(0,o.useRef)(null),l=(0,o.useRef)(null),c=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),o=i.current-t;i.current=t,n(o)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(o*=.9333333333333333,!0)||Math.abs(o)<=.1)&&clearInterval(l.current)}),16)}},s=function(){a.current=!1,r()},f=function(e){r(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),u.current=e.target,u.current.addEventListener("touchmove",c),u.current.addEventListener("touchend",s))};r=function(){u.current&&(u.current.removeEventListener("touchmove",c),u.current.removeEventListener("touchend",s))},(0,A.Z)((function(){return e&&t.current.addEventListener("touchstart",f),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(l.current)}}),[e])}(I,Q,(function(e,t){return!Ee(e,t)&&(Ce({preventDefault:function(){},deltaY:e}),!0)})),(0,A.Z)((function(){function e(e){I&&e.preventDefault()}return Q.current.addEventListener("wheel",Ce),Q.current.addEventListener("DOMMouseScroll",Oe),Q.current.addEventListener("MozMousePixelScroll",e),function(){Q.current&&(Q.current.removeEventListener("wheel",Ce),Q.current.removeEventListener("DOMMouseScroll",Oe),Q.current.removeEventListener("MozMousePixelScroll",e))}}),[I]);var xe=function(e,t,n,r,a,i,u,l){var c=o.useRef();return function(o){if(null!==o&&void 0!==o){if(p.Z.cancel(c.current),"number"===typeof o)u(o);else if(o&&"object"===R(o)){var s,f=o.align;s="index"in o?o.index:t.findIndex((function(e){return a(e)===o.key}));var d=o.offset,v=void 0===d?0:d;!function o(l,d){if(!(l<0)&&e.current){var m=e.current.clientHeight,h=!1,g=d;if(m){for(var b=d||f,y=0,w=0,E=0,S=Math.min(t.length,s),Z=0;Z<=S;Z+=1){var C=a(t[Z]);w=y;var O=n.get(C);y=E=w+(void 0===O?r:O),Z===s&&void 0===O&&(h=!0)}var x=null;switch(b){case"top":x=w-v;break;case"bottom":x=E-m+v;break;default:var M=e.current.scrollTop;wM+m&&(g="bottom")}null!==x&&x!==e.current.scrollTop&&u(x)}c.current=(0,p.Z)((function(){h&&i(),o(l-1,g)}))}}(3)}}else l()}}(Q,$,se,l,ee,ce,ne,(function(){var e;null===(e=J.current)||void 0===e||e.delayHidden()}));o.useImperativeHandle(t,(function(){return{scrollTo:xe}})),(0,A.Z)((function(){if(E){var e=$.slice(ve,me+1);E(e,$)}}),[ve,me,$]);var Me=function(e,t,n,r,a,i){var u=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=a(e,t+n,{}),l=u(e);return o.createElement(Z,{key:l,setRef:function(t){return r(e,t)}},i)}))}($,ve,me,le,m,te),Ie=null;return u&&(Ie=V(F({},s?"height":"maxHeight",u),Y),I&&(Ie.overflowY="hidden",B&&(Ie.pointerEvents="none"))),o.createElement("div",_({style:V(V({},d),{},{position:"relative"}),className:X},O),o.createElement(y,{className:"".concat(r,"-holder"),style:Ie,ref:Q,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==T&&ne(t),null===w||void 0===w||w(e)}},o.createElement(f,{prefixCls:r,height:de,offset:he,onInnerResize:ce,ref:q},Me)),I&&o.createElement(S,{ref:J,prefixCls:r,scrollTop:T,height:u,scrollHeight:de,count:$.length,onScroll:function(e){ne(e)},onStartMove:function(){G(!0)},onStopMove:function(){G(!1)}}))}var G=o.forwardRef(B);G.displayName="List";var X=G}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8939],{88258:function(e,t,n){var o=n(67294),r=n(53124),a=n(62986);t.Z=function(e){return o.createElement(r.C,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return o.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return o.createElement(a.Z,null)}}))}},62986:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(4942),r=n(87462),a=n(94184),i=n.n(a),u=n(67294),l=n(53124),c=n(23715),s=function(){var e=(0,u.useContext(l.E_).getPrefixCls)("empty-img-default");return u.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{fill:"none",fillRule:"evenodd"},u.createElement("g",{transform:"translate(24 31.67)"},u.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),u.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),u.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),u.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),u.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),u.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),u.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},u.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),u.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var e=(0,u.useContext(l.E_).getPrefixCls)("empty-img-simple");return u.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},u.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},u.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),u.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},u.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),u.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))},p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rZ&&(a="".concat(i.slice(0,Z),"..."))}var u=function(t){t&&t.stopPropagation(),P(e)};return"function"===typeof M?function(e,t,n,o,r){return v.createElement("span",{onMouseDown:function(e){H(e),x(!l)}},M({label:t,value:e,disabled:n,closable:o,onClose:r}))}(o,a,t,r,u):te(e,a,t,r,u)},renderRest:function(e){var t="function"===typeof O?O(e):O;return te({title:t},t,!1)},suffix:ne,itemKey:_,maxCount:S});return v.createElement(v.Fragment,null,oe,!u.length&&!J&&v.createElement("span",{className:"".concat(q,"-placeholder")},p))},F=function(e){var t=e.inputElement,n=e.prefixCls,o=e.id,r=e.inputRef,a=e.disabled,i=e.autoFocus,u=e.autoComplete,l=e.activeDescendantId,s=e.mode,f=e.open,p=e.values,d=e.placeholder,m=e.tabIndex,h=e.showSearch,g=e.searchValue,b=e.activeValue,y=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,S=e.onInputChange,Z=e.onInputPaste,C=e.onInputCompositionStart,O=e.onInputCompositionEnd,M=v.useState(!1),x=(0,c.Z)(M,2),R=x[0],N=x[1],P="combobox"===s,D=P||h,j=p[0],k=g||"";P&&b&&!R&&(k=b),v.useEffect((function(){P&&N(!1)}),[P,b]);var A=!("combobox"!==s&&!f&&!h)&&!!k,_=L(j);return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(n,"-selection-search")},v.createElement(T,{ref:r,prefixCls:n,id:o,open:f,inputElement:t,disabled:a,autoFocus:i,autoComplete:u,editable:D,activeDescendantId:l,value:k,onKeyDown:w,onMouseDown:E,onChange:function(e){N(!0),S(e)},onPaste:Z,onCompositionStart:C,onCompositionEnd:O,tabIndex:m,attrs:(0,I.Z)(e,!0),maxLength:P?y:void 0})),!P&&j&&!A&&v.createElement("span",{className:"".concat(n,"-selection-item"),title:_},j.label),function(){if(j)return null;var e=A?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},d)}())};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=v.useRef(null),n=v.useRef(null);function o(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return v.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},o]}var z=function(e,t){var n=(0,v.useRef)(null),o=(0,v.useRef)(!1),a=e.prefixCls,i=e.open,u=e.mode,l=e.showSearch,s=e.tokenWithEnter,f=e.onSearch,p=e.onSearchSubmit,d=e.onToggleOpen,h=e.onInputKeyDown,g=e.domRef;v.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var b=K(0),y=(0,c.Z)(b,2),w=y[0],E=y[1],S=(0,v.useRef)(null),Z=function(e){!1!==f(e,!0,o.current)&&d(!0)},C={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==m.Z.UP&&n!==m.Z.DOWN||e.preventDefault(),h&&h(e),n!==m.Z.ENTER||"tags"!==u||o.current||i||null===p||void 0===p||p(e.target.value),t=n,[m.Z.ESC,m.Z.SHIFT,m.Z.BACKSPACE,m.Z.TAB,m.Z.WIN_KEY,m.Z.ALT,m.Z.META,m.Z.WIN_KEY_RIGHT,m.Z.CTRL,m.Z.SEMICOLON,m.Z.EQUALS,m.Z.CAPS_LOCK,m.Z.CONTEXT_MENU,m.Z.F1,m.Z.F2,m.Z.F3,m.Z.F4,m.Z.F5,m.Z.F6,m.Z.F7,m.Z.F8,m.Z.F9,m.Z.F10,m.Z.F11,m.Z.F12].includes(t)||d(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(s&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,Z(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");S.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==u&&Z(e.target.value)}},O="multiple"===u||"tags"===u?v.createElement(V,(0,r.Z)({},e,C)):v.createElement(F,(0,r.Z)({},e,C));return v.createElement("div",{ref:g,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||"combobox"===u||e.preventDefault(),("combobox"===u||l&&t)&&i||(i&&f("",!0,!1),d())}},O)},U=v.forwardRef(z);U.displayName="Selector";var W=U;var Y=v.createContext(null);var B=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],G=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function X(e){return"tags"===e||"multiple"===e}var $=v.forwardRef((function(e,t){var n,a,d=e.id,w=e.prefixCls,E=e.className,S=e.showSearch,Z=e.tagRender,C=e.direction,O=e.omitDomProps,M=e.displayValues,I=e.onDisplayValuesChange,R=e.emptyOptions,P=e.notFoundContent,D=void 0===P?"Not Found":P,T=e.onClear,j=e.mode,k=e.disabled,A=e.loading,L=e.getInputElement,_=e.getRawInputElement,H=e.open,V=e.defaultOpen,F=e.onDropdownVisibleChange,z=e.activeValue,U=e.onActiveValueChange,$=e.activeDescendantId,Q=e.searchValue,q=e.onSearch,J=e.onSearchSplit,ee=e.tokenSeparators,te=e.allowClear,ne=e.showArrow,oe=e.inputIcon,re=e.clearIcon,ae=e.OptionList,ie=e.animation,ue=e.transitionName,le=e.dropdownStyle,ce=e.dropdownClassName,se=e.dropdownMatchSelectWidth,fe=e.dropdownRender,pe=e.dropdownAlign,de=e.placement,ve=e.getPopupContainer,me=e.showAction,he=void 0===me?[]:me,ge=e.onFocus,be=e.onBlur,ye=e.onKeyUp,we=e.onKeyDown,Ee=e.onMouseDown,Se=(0,s.Z)(e,B),Ze=X(j),Ce=(void 0!==S?S:Ze)||"combobox"===j,Oe=(0,l.Z)({},Se);G.forEach((function(e){delete Oe[e]})),null===O||void 0===O||O.forEach((function(e){delete Oe[e]}));var Me=v.useState(!1),xe=(0,c.Z)(Me,2),Ie=xe[0],Re=xe[1];v.useEffect((function(){Re((0,h.Z)())}),[]);var Ne=v.useRef(null),Pe=v.useRef(null),De=v.useRef(null),Te=v.useRef(null),je=v.useRef(null),ke=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=v.useState(!1),n=(0,c.Z)(t,2),o=n[0],r=n[1],a=v.useRef(null),i=function(){window.clearTimeout(a.current)};return v.useEffect((function(){return i}),[]),[o,function(t,n){i(),a.current=window.setTimeout((function(){r(t),n&&n()}),e)},i]}(),Ae=(0,c.Z)(ke,3),Le=Ae[0],_e=Ae[1],He=Ae[2];v.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Te.current)||void 0===e?void 0:e.focus,blur:null===(t=Te.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=je.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Ve=v.useMemo((function(){var e;if("combobox"!==j)return Q;var t=null===(e=M[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""}),[Q,j,M]),Fe="combobox"===j&&"function"===typeof L&&L()||null,Ke="function"===typeof _&&_(),ze=(0,g.x1)(Pe,null===Ke||void 0===Ke||null===(n=Ke.props)||void 0===n?void 0:n.ref),Ue=(0,p.Z)(void 0,{defaultValue:V,value:H}),We=(0,c.Z)(Ue,2),Ye=We[0],Be=We[1],Ge=Ye,Xe=!D&&R;(k||Xe&&Ge&&"combobox"===j)&&(Ge=!1);var $e=!Xe&&Ge,Qe=v.useCallback((function(e){var t=void 0!==e?e:!Ge;Ge===t||k||(Be(t),null===F||void 0===F||F(t))}),[k,Ge,Be,F]),qe=v.useMemo((function(){return(ee||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ee]),Je=function(e,t,n){var o=!0,r=e;null===U||void 0===U||U(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,o=function e(t,o){var r=(0,y.Z)(o),a=r[0],i=r.slice(1);if(!a)return[t];var l=t.split(a);return n=n||l.length>1,l.reduce((function(t,n){return[].concat((0,u.Z)(t),(0,u.Z)(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?o:null}(e,ee);return"combobox"!==j&&a&&(r="",null===J||void 0===J||J(a),Qe(!1),o=!1),q&&Ve!==r&&q(r,{source:t?"typing":"effect"}),o};v.useEffect((function(){Ge||Ze||"combobox"===j||Je("",!1,!1)}),[Ge]),v.useEffect((function(){Ye&&k&&Be(!1),k&&_e(!1)}),[k]);var et=K(),tt=(0,c.Z)(et,2),nt=tt[0],ot=tt[1],rt=v.useRef(!1),at=[];v.useEffect((function(){return function(){at.forEach((function(e){return clearTimeout(e)})),at.splice(0,at.length)}}),[]);var it,ut=v.useState(null),lt=(0,c.Z)(ut,2),ct=lt[0],st=lt[1],ft=v.useState({}),pt=(0,c.Z)(ft,2)[1];(0,b.Z)((function(){if($e){var e,t=Math.ceil(null===(e=Ne.current)||void 0===e?void 0:e.offsetWidth);ct===t||Number.isNaN(t)||st(t)}}),[$e]),Ke&&(it=function(e){Qe(e)}),function(e,t,n,o){var r=v.useRef(null);r.current={open:t,triggerOpen:n,customizedTrigger:o},v.useEffect((function(){function t(t){var n;if(!(null===(n=r.current)||void 0===n?void 0:n.customizedTrigger)){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ne.current,null===(e=De.current)||void 0===e?void 0:e.getPopupElement()]}),$e,Qe,!!Ke);var dt,vt,mt=v.useMemo((function(){return(0,l.Z)((0,l.Z)({},e),{},{notFoundContent:D,open:Ge,triggerOpen:$e,id:d,showSearch:Ce,multiple:Ze,toggleOpen:Qe})}),[e,D,$e,Ge,d,Ce,Ze,Qe]),ht=void 0!==ne?ne:A||!Ze&&"combobox"!==j;ht&&(dt=v.createElement(N,{className:i()("".concat(w,"-arrow"),(0,o.Z)({},"".concat(w,"-arrow-loading"),A)),customizeIcon:oe,customizeIconProps:{loading:A,searchValue:Ve,open:Ge,focused:Le,showSearch:Ce}}));k||!te||!M.length&&!Ve||"combobox"===j&&""===Ve||(vt=v.createElement(N,{className:"".concat(w,"-clear"),onMouseDown:function(){null===T||void 0===T||T(),I([],{type:"clear",values:M}),Je("",!1,!1)},customizeIcon:re},"\xd7"));var gt,bt=v.createElement(ae,{ref:je}),yt=i()(w,E,(a={},(0,o.Z)(a,"".concat(w,"-focused"),Le),(0,o.Z)(a,"".concat(w,"-multiple"),Ze),(0,o.Z)(a,"".concat(w,"-single"),!Ze),(0,o.Z)(a,"".concat(w,"-allow-clear"),te),(0,o.Z)(a,"".concat(w,"-show-arrow"),ht),(0,o.Z)(a,"".concat(w,"-disabled"),k),(0,o.Z)(a,"".concat(w,"-loading"),A),(0,o.Z)(a,"".concat(w,"-open"),Ge),(0,o.Z)(a,"".concat(w,"-customize-input"),Fe),(0,o.Z)(a,"".concat(w,"-show-search"),Ce),a)),wt=v.createElement(x,{ref:De,disabled:k,prefixCls:w,visible:$e,popupElement:bt,containerWidth:ct,animation:ie,transitionName:ue,dropdownStyle:le,dropdownClassName:ce,direction:C,dropdownMatchSelectWidth:se,dropdownRender:fe,dropdownAlign:pe,placement:de,getPopupContainer:ve,empty:R,getTriggerDOMNode:function(){return Pe.current},onPopupVisibleChange:it,onPopupMouseEnter:function(){pt({})}},Ke?v.cloneElement(Ke,{ref:ze}):v.createElement(W,(0,r.Z)({},e,{domRef:Pe,prefixCls:w,inputElement:Fe,ref:Te,id:d,showSearch:Ce,mode:j,activeDescendantId:$,tagRender:Z,values:M,open:Ge,onToggleOpen:Qe,activeValue:z,searchValue:Ve,onSearch:Je,onSearchSubmit:function(e){e&&e.trim()&&q(e,{source:"submit"})},onRemove:function(e){var t=M.filter((function(t){return t!==e}));I(t,{type:"remove",values:[e]})},tokenWithEnter:qe})));return gt=Ke?wt:v.createElement("div",(0,r.Z)({className:yt},Oe,{ref:Ne,onMouseDown:function(e){var t,n=e.target,o=null===(t=De.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout((function(){var e,t=at.indexOf(r);-1!==t&&at.splice(t,1),He(),Ie||o.contains(document.activeElement)||null===(e=Te.current)||void 0===e||e.focus()}));at.push(r)}for(var a=arguments.length,i=new Array(a>1?a-1:0),u=1;u=0;i-=1){var l=r[i];if(!l.disabled){r.splice(i,1),a=l;break}}a&&I(r,{type:"remove",values:[a]})}for(var c=arguments.length,s=new Array(c>1?c-1:0),f=1;f1?t-1:0),o=1;o1&&void 0!==arguments[1]&&arguments[1];return(0,oe.Z)(e).map((function(e,n){if(!v.isValidElement(e)||!e.type)return null;var o=e.type.isSelectOptGroup,r=e.key,a=e.props,i=a.children,u=(0,s.Z)(a,ae);return t||!o?ie(e):(0,l.Z)((0,l.Z)({key:"__RC_SELECT_GRP__".concat(null===r?n:r,"__"),label:r},u),{},{options:ue(i)})})).filter((function(e){return e}))}function le(e,t,n,o,r){return v.useMemo((function(){var a=e;!e&&(a=ue(t));var i=new Map,u=new Map,l=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:1,n=j.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];K(e);var n={source:t?"keyboard":"mouse"},o=j[e];o?S(o.value,e,n):S(null,-1,n)};(0,v.useEffect)((function(){z(!1!==Z?_(0):-1)}),[j.length,h]);var U=v.useCallback((function(e){return M.has(e)&&"combobox"!==d}),[d,(0,u.Z)(M).toString()]);(0,v.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&f&&1===M.size){var e=Array.from(M)[0],t=j.findIndex((function(t){return t.data.value===e}));-1!==t&&(z(t),L(t))}}));f&&(null===(e=k.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f,h]);var W=function(e){void 0!==e&&C(e,{selected:!M.has(e)}),p||g(!1)};if(v.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:var o=0;if(t===m.Z.UP?o=-1:t===m.Z.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===m.Z.N?o=1:t===m.Z.P&&(o=-1)),0!==o){var r=_(F+o,o);L(r),z(r,!0)}break;case m.Z.ENTER:var a=j[F];a&&!a.data.disabled?W(a.value):W(void 0),f&&e.preventDefault();break;case m.Z.ESC:g(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===j.length)return v.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(T,"-empty"),onMouseDown:A},b);var B=Object.keys(x).map((function(e){return x[e]})),G=function(e){return e.label},X=function(e){var t=j[e];if(!t)return null;var n=t.data||{},o=n.value,a=t.group,i=(0,I.Z)(n,!0),u=G(t);return t?v.createElement("div",(0,r.Z)({"aria-label":"string"!==typeof u||a?null:u},i,{key:e,role:a?"presentation":"option",id:"".concat(l,"_list_").concat(e),"aria-selected":U(o)}),o):null};return v.createElement(v.Fragment,null,v.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},X(F-1),X(F),X(F+1)),v.createElement(he.Z,{itemKey:"key",ref:k,data:j,height:P,itemHeight:D,fullHeight:!1,onMouseDown:A,onScroll:y,virtual:R},(function(e,t){var n,a=e.group,u=e.groupOption,l=e.data,c=e.label,f=e.value,p=l.key;if(a){var d,m=null!==(d=l.title)&&void 0!==d?d:ye(c)?c.toString():void 0;return v.createElement("div",{className:i()(T,"".concat(T,"-group")),title:m},void 0!==c?c:p)}var h=l.disabled,g=l.title,b=(l.children,l.style),y=l.className,w=(0,s.Z)(l,be),E=(0,ve.Z)(w,B),S=U(f),Z="".concat(T,"-option"),C=i()(T,Z,y,(n={},(0,o.Z)(n,"".concat(Z,"-grouped"),u),(0,o.Z)(n,"".concat(Z,"-active"),F===t&&!h),(0,o.Z)(n,"".concat(Z,"-disabled"),h),(0,o.Z)(n,"".concat(Z,"-selected"),S),n)),M=G(e),x=!O||"function"===typeof O||S,R="number"===typeof M?M:M||f,P=ye(R)?R.toString():void 0;return void 0!==g&&(P=g),v.createElement("div",(0,r.Z)({},(0,I.Z)(E),{"aria-selected":S,className:C,title:P,onMouseMove:function(){F===t||h||z(t)},onClick:function(){h||W(f)},style:b}),v.createElement("div",{className:"".concat(Z,"-content")},R),v.isValidElement(O)||S,x&&v.createElement(N,{className:"".concat(T,"-option-state"),customizeIcon:O,customizeIconProps:{isSelected:S}},S?"\u2713":null))})))},Ee=v.forwardRef(we);Ee.displayName="OptionList";var Se=Ee;var Ze=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ce=["inputValue"];var Oe=v.forwardRef((function(e,t){var n=e.id,a=e.mode,i=e.prefixCls,d=void 0===i?"rc-select":i,m=e.backfill,h=e.fieldNames,g=e.inputValue,b=e.searchValue,y=e.onSearch,Z=e.autoClearSearchValue,C=void 0===Z||Z,O=e.onSelect,M=e.onDeselect,x=e.dropdownMatchSelectWidth,I=void 0===x||x,R=e.filterOption,N=e.filterSort,P=e.optionFilterProp,D=e.optionLabelProp,T=e.options,k=e.children,A=e.defaultActiveFirstOption,L=e.menuItemSelectedIcon,_=e.virtual,H=e.listHeight,V=void 0===H?200:H,F=e.listItemHeight,K=void 0===F?20:F,z=e.value,U=e.defaultValue,W=e.labelInValue,Y=e.onChange,B=(0,s.Z)(e,Ze),G=ne(n),$=X(a),J=!(T||!k),ee=v.useMemo((function(){return(void 0!==R||"combobox"!==a)&&R}),[R,a]),te=v.useMemo((function(){return E(h,J)}),[JSON.stringify(h),J]),oe=(0,p.Z)("",{value:void 0!==b?b:g,postState:function(e){return e||""}}),re=(0,c.Z)(oe,2),ae=re[0],ie=re[1],ue=le(T,k,te,P,D),se=ue.valueOptions,fe=ue.labelOptions,pe=ue.options,de=v.useCallback((function(e){return j(e).map((function(e){var t,n,o,r,a,i;(function(e){return!e||"object"!==(0,f.Z)(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(i=e.value)&&void 0!==i?i:o);var u,l=se.get(t);l&&(void 0===n&&(n=null===l||void 0===l?void 0:l[D||te.label]),void 0===o&&(o=null!==(u=null===l||void 0===l?void 0:l.key)&&void 0!==u?u:t),r=null===l||void 0===l?void 0:l.disabled,a=null===l||void 0===l?void 0:l.title);return{label:n,value:t,key:o,disabled:r,title:a}}))}),[te,D,se]),ve=(0,p.Z)(U,{value:z}),me=(0,c.Z)(ve,2),he=me[0],be=me[1],ye=function(e,t){var n=v.useRef({values:new Map,options:new Map});return[v.useMemo((function(){var o=n.current,r=o.values,a=o.options,i=e.map((function(e){var t;return void 0===e.label?(0,l.Z)((0,l.Z)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e})),u=new Map,c=new Map;return i.forEach((function(e){u.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))})),n.current.values=u,n.current.options=c,i}),[e,t]),v.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(v.useMemo((function(){var e,t=de(he);return"combobox"!==a||(null===(e=t[0])||void 0===e?void 0:e.value)?t:[]}),[he,de,a]),se),we=(0,c.Z)(ye,2),Ee=we[0],Oe=we[1],Me=v.useMemo((function(){if(!a&&1===Ee.length){var e=Ee[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Ee.map((function(e){var t;return(0,l.Z)((0,l.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[a,Ee]),xe=v.useMemo((function(){return new Set(Ee.map((function(e){return e.value})))}),[Ee]);v.useEffect((function(){if("combobox"===a){var e,t=null===(e=Ee[0])||void 0===e?void 0:e.value;ie(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}}),[Ee]);var Ie=ce((function(e,t){var n,r=null!==t&&void 0!==t?t:e;return n={},(0,o.Z)(n,te.value,e),(0,o.Z)(n,te.label,r),n})),Re=function(e,t,n,r,a){return v.useMemo((function(){if(!n||!1===r)return e;var i=t.options,u=t.label,c=t.value,s=[],f="function"===typeof r,p=n.toUpperCase(),d=f?r:function(e,t){return a?q(t[a],p):t[i]?q(t["children"!==u?u:"label"],p):q(t[c],p)},v=f?function(e){return S(e)}:function(e){return e};return e.forEach((function(e){if(e[i])if(d(n,v(e)))s.push(e);else{var t=e[i].filter((function(e){return d(n,v(e))}));t.length&&s.push((0,l.Z)((0,l.Z)({},e),{},(0,o.Z)({},i,t)))}else d(n,v(e))&&s.push(e)})),s}),[e,r,a,n,t])}(v.useMemo((function(){if("tags"!==a)return pe;var e=(0,u.Z)(pe);return(0,u.Z)(Ee).sort((function(e,t){return e.value1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],a=E(n,!1),i=a.label,u=a.value,l=a.options;function c(e,t){e.forEach((function(e){var n=e[i];if(t||!(l in e)){var a=e[u];r.push({key:w(e,r.length),groupOption:t,data:e,label:n,value:a})}else{var s=n;void 0===s&&o&&(s=e.label),r.push({key:w(e,r.length),group:!0,data:e,label:s}),c(e[l],!0)}}))}return c(e,!1),r}(Pe,{fieldNames:te,childrenAsData:J})}),[Pe,te,J]),Te=function(e){var t=de(e);if(be(t),Y&&(t.length!==Ee.length||t.some((function(e,t){var n;return(null===(n=Ee[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var n=W?t:t.map((function(e){return e.value})),o=t.map((function(e){return S(Oe(e.value))}));Y($?n:n[0],$?o:o[0])}},je=v.useState(null),ke=(0,c.Z)(je,2),Ae=ke[0],Le=ke[1],_e=v.useState(0),He=(0,c.Z)(_e,2),Ve=He[0],Fe=He[1],Ke=void 0!==A?A:"combobox"!==a,ze=v.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source,r=void 0===o?"keyboard":o;Fe(t),m&&"combobox"===a&&null!==e&&"keyboard"===r&&Le(String(e))}),[m,a]),Ue=function(e,t){var n=function(){var t,n=Oe(e);return[W?{label:null===n||void 0===n?void 0:n[te.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,S(n)]};if(t&&O){var o=n(),r=(0,c.Z)(o,2),a=r[0],i=r[1];O(a,i)}else if(!t&&M){var u=n(),l=(0,c.Z)(u,2),s=l[0],f=l[1];M(s,f)}},We=ce((function(e,t){var n,o=!$||t.selected;n=o?$?[].concat((0,u.Z)(Ee),[e]):[e]:Ee.filter((function(t){return t.value!==e})),Te(n),Ue(e,o),"combobox"===a?Le(""):X&&!C||(ie(""),Le(""))})),Ye=v.useMemo((function(){var e=!1!==_&&!1!==I;return(0,l.Z)((0,l.Z)({},ue),{},{flattenOptions:De,onActiveValue:ze,defaultActiveFirstOption:Ke,onSelect:We,menuItemSelectedIcon:L,rawValues:xe,fieldNames:te,virtual:e,listHeight:V,listItemHeight:K,childrenAsData:J})}),[ue,De,ze,Ke,We,L,xe,te,_,I,V,K,J]);return v.createElement(ge.Provider,{value:Ye},v.createElement(Q,(0,r.Z)({},B,{id:G,prefixCls:d,ref:t,omitDomProps:Ce,mode:a,displayValues:Me,onDisplayValuesChange:function(e,t){Te(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){Ue(e.value,!1)}))},searchValue:ae,onSearch:function(e,t){if(ie(e),Le(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===a&&Te(e),null===y||void 0===y||y(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat((0,u.Z)(xe),[n])));Te(o),Ue(n,!0),ie("")}}},onSearchSplit:function(e){var t=e;"tags"!==a&&(t=e.map((function(e){var t=fe.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,u.Z)(xe),(0,u.Z)(t))));Te(n),n.forEach((function(e){Ue(e,!0)}))},dropdownMatchSelectWidth:I,OptionList:Se,emptyOptions:!De.length,activeValue:Ae,activeDescendantId:"".concat(G,"_list_").concat(Ve)})))}));var Me=Oe;Me.Option=de,Me.OptGroup=fe;var xe=Me,Ie=n(53124),Re=n(88258),Ne=n(98866),Pe=n(97647),De=n(65223),Te=n(33603),je=n(9708),ke=n(63606),Ae=n(4340),Le=n(97937),_e=n(80882),He=n(50888),Ve=n(68795);var Fe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);rn},e}return t=u,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props.prefixCls,i=this.getSpinHeight(),u=this.getTop(),l=this.showScroll(),c=l&&n;return o.createElement("div",{ref:this.scrollbarRef,className:a()("".concat(r,"-scrollbar"),v({},"".concat(r,"-scrollbar-show"),l)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},o.createElement("div",{ref:this.thumbRef,className:a()("".concat(r,"-scrollbar-thumb"),v({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:u,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component);function Z(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}var C=n(34203);function O(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],o=e<0&&i.current.top||e>0&&i.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||a(),!n.current&&o}};var A=n(8410);var L=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function _(){return _=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var W=[],Y={overflowY:"auto",overflowAnchor:"none"};function B(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,u=e.height,l=e.itemHeight,c=e.fullHeight,s=void 0===c||c,d=e.style,v=e.data,m=e.children,h=e.itemKey,g=e.virtual,b=e.component,y=void 0===b?"div":b,w=e.onScroll,E=e.onVisibleChange,O=U(e,L),I=!(!1===g||!u||!l),N=I&&v&&l*v.length>u,P=K((0,o.useState)(0),2),T=P[0],H=P[1],z=K((0,o.useState)(!1),2),B=z[0],G=z[1],X=a()(r,i),$=v||W,Q=(0,o.useRef)(),q=(0,o.useRef)(),J=(0,o.useRef)(),ee=o.useCallback((function(e){return"function"===typeof h?h(e):null===e||void 0===e?void 0:e[h]}),[h]),te={getKey:ee};function ne(e){H((function(t){var n=function(e){var t=e;Number.isNaN(be.current)||(t=Math.min(t,be.current));return t=Math.max(t,0)}("function"===typeof e?e(t):e);return Q.current.scrollTop=n,n}))}var oe=(0,o.useRef)({start:0,end:$.length}),re=(0,o.useRef)(),ae=K(D($,ee),1)[0];re.current=ae;var ie=function(e,t,n){var r=x(o.useState(0),2),a=r[0],i=r[1],u=(0,o.useRef)(new Map),l=(0,o.useRef)(new M),c=(0,o.useRef)();function s(){p.Z.cancel(c.current)}function f(){s(),c.current=(0,p.Z)((function(){u.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,C.Z)(e),o=n.offsetHeight;l.current.get(t)!==o&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1}))}))}return(0,o.useEffect)((function(){return s}),[]),[function(o,r){var a=e(o),i=u.current.get(a);r?(u.current.set(a,r),f()):u.current.delete(a),!i!==!r&&(r?null===t||void 0===t||t(o):null===n||void 0===n||n(o))},f,l.current,a]}(ee,null,null),ue=K(ie,4),le=ue[0],ce=ue[1],se=ue[2],fe=ue[3],pe=o.useMemo((function(){if(!I)return{scrollHeight:void 0,start:0,end:$.length-1,offset:void 0};var e;if(!N)return{scrollHeight:(null===(e=q.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var t,n,o,r=0,a=$.length,i=0;i=T&&void 0===t&&(t=i,n=r),p>T+u&&void 0===o&&(o=i),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(u/l)),void 0===o&&(o=$.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,$.length),offset:n}}),[N,I,T,$,fe,u]),de=pe.scrollHeight,ve=pe.start,me=pe.end,he=pe.offset;oe.current.start=ve,oe.current.end=me;var ge=de-u,be=(0,o.useRef)(ge);be.current=ge;var ye=T<=0,we=T>=ge,Ee=k(ye,we);var Se=function(e,t,n,r){var a=(0,o.useRef)(0),i=(0,o.useRef)(null),u=(0,o.useRef)(null),l=(0,o.useRef)(!1),c=k(t,n);return[function(t){if(e){p.Z.cancel(i.current);var n=t.deltaY;a.current+=n,u.current=n,c(n)||(j||t.preventDefault(),i.current=(0,p.Z)((function(){var e=l.current?10:1;r(a.current*e),a.current=0})))}},function(t){e&&(l.current=t.detail===u.current)}]}(I,ye,we,(function(e){ne((function(t){return t+e}))})),Ze=K(Se,2),Ce=Ze[0],Oe=Ze[1];!function(e,t,n){var r,a=(0,o.useRef)(!1),i=(0,o.useRef)(0),u=(0,o.useRef)(null),l=(0,o.useRef)(null),c=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),o=i.current-t;i.current=t,n(o)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(o*=.9333333333333333,!0)||Math.abs(o)<=.1)&&clearInterval(l.current)}),16)}},s=function(){a.current=!1,r()},f=function(e){r(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),u.current=e.target,u.current.addEventListener("touchmove",c),u.current.addEventListener("touchend",s))};r=function(){u.current&&(u.current.removeEventListener("touchmove",c),u.current.removeEventListener("touchend",s))},(0,A.Z)((function(){return e&&t.current.addEventListener("touchstart",f),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",f),r(),clearInterval(l.current)}}),[e])}(I,Q,(function(e,t){return!Ee(e,t)&&(Ce({preventDefault:function(){},deltaY:e}),!0)})),(0,A.Z)((function(){function e(e){I&&e.preventDefault()}return Q.current.addEventListener("wheel",Ce),Q.current.addEventListener("DOMMouseScroll",Oe),Q.current.addEventListener("MozMousePixelScroll",e),function(){Q.current&&(Q.current.removeEventListener("wheel",Ce),Q.current.removeEventListener("DOMMouseScroll",Oe),Q.current.removeEventListener("MozMousePixelScroll",e))}}),[I]);var Me=function(e,t,n,r,a,i,u,l){var c=o.useRef();return function(o){if(null!==o&&void 0!==o){if(p.Z.cancel(c.current),"number"===typeof o)u(o);else if(o&&"object"===R(o)){var s,f=o.align;s="index"in o?o.index:t.findIndex((function(e){return a(e)===o.key}));var d=o.offset,v=void 0===d?0:d;!function o(l,d){if(!(l<0)&&e.current){var m=e.current.clientHeight,h=!1,g=d;if(m){for(var b=d||f,y=0,w=0,E=0,S=Math.min(t.length,s),Z=0;Z<=S;Z+=1){var C=a(t[Z]);w=y;var O=n.get(C);y=E=w+(void 0===O?r:O),Z===s&&void 0===O&&(h=!0)}var M=null;switch(b){case"top":M=w-v;break;case"bottom":M=E-m+v;break;default:var x=e.current.scrollTop;wx+m&&(g="bottom")}null!==M&&M!==e.current.scrollTop&&u(M)}c.current=(0,p.Z)((function(){h&&i(),o(l-1,g)}))}}(3)}}else l()}}(Q,$,se,l,ee,ce,ne,(function(){var e;null===(e=J.current)||void 0===e||e.delayHidden()}));o.useImperativeHandle(t,(function(){return{scrollTo:Me}})),(0,A.Z)((function(){if(E){var e=$.slice(ve,me+1);E(e,$)}}),[ve,me,$]);var xe=function(e,t,n,r,a,i){var u=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=a(e,t+n,{}),l=u(e);return o.createElement(Z,{key:l,setRef:function(t){return r(e,t)}},i)}))}($,ve,me,le,m,te),Ie=null;return u&&(Ie=V(F({},s?"height":"maxHeight",u),Y),I&&(Ie.overflowY="hidden",B&&(Ie.pointerEvents="none"))),o.createElement("div",_({style:V(V({},d),{},{position:"relative"}),className:X},O),o.createElement(y,{className:"".concat(r,"-holder"),style:Ie,ref:Q,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==T&&ne(t),null===w||void 0===w||w(e)}},o.createElement(f,{prefixCls:r,height:de,offset:he,onInnerResize:ce,ref:q},xe)),I&&o.createElement(S,{ref:J,prefixCls:r,scrollTop:T,height:u,scrollHeight:de,count:$.length,onScroll:function(e){ne(e)},onStartMove:function(){G(!0)},onStopMove:function(){G(!1)}}))}var G=o.forwardRef(B);G.displayName="List";var X=G}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/9257-d713fc824ad40552.js b/static/web/_next/static/chunks/9257-66ad7ef8cc6a6ab9.js similarity index 99% rename from static/web/_next/static/chunks/9257-d713fc824ad40552.js rename to static/web/_next/static/chunks/9257-66ad7ef8cc6a6ab9.js index 93dbc387c..e50d5e383 100644 --- a/static/web/_next/static/chunks/9257-d713fc824ad40552.js +++ b/static/web/_next/static/chunks/9257-66ad7ef8cc6a6ab9.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9257],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},o=n(42135),a=function(e,t){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:s}))};a.displayName="DeleteOutlined";var l=r.forwardRef(a)},88484:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},o=n(42135),a=function(e,t){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:s}))};a.displayName="UploadOutlined";var l=r.forwardRef(a)},58909:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var i=n(35524),r=n(47421),s=n(59119),o=e=>{var{theme:t,settings:n,styles:i}=e,o={"&":{backgroundColor:n.background,color:n.foreground},".cm-gutters":{}};n.gutterBackground&&(o[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(o[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(o[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(o[".cm-content"]={caretColor:n.caret},o[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret}),n.lineHighlight&&(o[".cm-activeLine"]={backgroundColor:n.lineHighlight},o[".cm-activeLineGutter"]={backgroundColor:n.lineHighlight}),n.selection&&(o["&.cm-focused .cm-selectionBackground .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, ::selection"]={backgroundColor:n.selection}),n.selectionMatch&&(o["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=r.tk.theme(o,{dark:"dark"===t}),l=s.Qf.define(i);return[a,(0,s.nF)(l)]},a=o({theme:"light",settings:{background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",lineHighlight:"#00000012"},styles:[{tag:[i.pJ.meta,i.pJ.comment],color:"#804000"},{tag:[i.pJ.keyword,i.pJ.strong],color:"#0000FF"},{tag:[i.pJ.number],color:"#FF0080"},{tag:[i.pJ.string],color:"#FF0080"},{tag:[i.pJ.variableName],color:"#006600"},{tag:[i.pJ.escape],color:"#33CC33"},{tag:[i.pJ.tagName],color:"#1C02FF"},{tag:[i.pJ.heading],color:"#0C07FF"},{tag:[i.pJ.quote],color:"#000000"},{tag:[i.pJ.list],color:"#B90690"},{tag:[i.pJ.documentMeta],color:"#888888"},{tag:[i.pJ.function(i.pJ.variableName)],color:"#0000A2"},{tag:[i.pJ.definition(i.pJ.typeName),i.pJ.typeName],color:"#6D79DE"}]})},87685:function(e,t,n){"use strict";n.d(t,{ZP:function(){return An}});var i=n(87462),r=n(63366),s=n(67294),o=n(78120),a=n(47421),l=n(59119),c=n(41113);function h(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(i(n.update(r)),!0)}}const u=h(m,0),O=h(p,0),f=h(((e,t)=>p(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),r=n.to<=i.to?i:e.doc.lineAt(n.to),s=t.length-1;s>=0&&t[s].to>i.from?t[s].to=r.to:t.push({from:i.from,to:r.to})}return t}(t))),0);function d(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function p(e,t,n=t.selection.ranges){let i=n.map((e=>d(t,e.from).block));if(!i.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},i,r){let s,o,a=e.sliceDoc(i-50,i),l=e.sliceDoc(r,r+50),c=/\s*$/.exec(a)[0].length,h=/^\s*/.exec(l)[0].length,u=a.length-c;if(a.slice(u-t.length,u)==t&&l.slice(h,h+n.length)==n)return{open:{pos:i-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-i<=100?s=o=e.sliceDoc(i,r):(s=e.sliceDoc(i,i+50),o=e.sliceDoc(r-50,r));let O=/^\s*/.exec(s)[0].length,f=/\s*$/.exec(o)[0].length,d=o.length-f-n.length;return s.slice(O,O+t.length)==t&&o.slice(d,d+n.length)==n?{open:{pos:i+O+t.length,margin:/\s/.test(s.charAt(O+t.length))?1:0},close:{pos:r-f-n.length,margin:/\s/.test(o.charAt(d-1))?1:0}}:null}(t,i[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;nr&&(s==o||o>e.from)){r=e.from;let s=d(t,a).line;if(!s)continue;let o=/^\s*/.exec(e.text)[0].length,l=o==e.length,c=e.text.slice(o,o+s.length)==s?o:-1;oe.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:r,indent:s,empty:o,single:a}of i)!a&&o||e.push({from:t.from+s,insert:r+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of i)if(n>=0){let i=t.from+n,s=i+r.length;" "==t.text[s-t.from]&&s++,e.push({from:i,to:s})}return{changes:e}}return null}const g=o.q6.define(),Q=o.q6.define(),b=o.r$.define(),x=o.r$.define({combine:e=>(0,o.BO)(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})});const k=o.QQ.define({create:()=>q.empty,update(e,t){let n=t.state.facet(x),i=t.annotation(g);if(i){let r=t.docChanged?o.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,s=T.fromTransaction(t,r),a=i.side,l=0==a?e.undone:e.done;return l=s?P(l,l.length,n.minDepth,s):Z(l,t.startState.selection),new q(0==a?i.rest:l,0==a?l:i.rest)}let r=t.annotation(Q);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(o.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=T.fromTransaction(t),a=t.annotation(o.YW.time),l=t.annotation(o.YW.userEvent);return s?e=e.addChanges(s,a,l,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new q(e.done.map(T.fromJSON),e.undone.map(T.fromJSON))});function y(e,t){return function({state:n,dispatch:i}){if(!t&&n.readOnly)return!1;let r=n.field(k,!1);if(!r)return!1;let s=r.pop(e,n,t);return!!s&&(i(s),!0)}}const v=y(0,!1),$=y(1,!1),S=y(0,!0),w=y(1,!0);class T{constructor(e,t,n,i,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new T(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new T(e.changes&&o.as.fromJSON(e.changes),[],e.mapped&&o.n0.fromJSON(e.mapped),e.startSelection&&o.jT.fromJSON(e.startSelection),e.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(e,t){let n=C;for(let i of e.startState.facet(b)){let t=i(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new T(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,C)}static selection(e){return new T(void 0,C,void 0,void 0,e)}}function P(e,t,n,i){let r=t+1>n+20?t-n-1:0,s=e.slice(r,t);return s.push(i),s}function R(e,t){return e.length?t.length?e.concat(t):e:t}const C=[];function Z(e,t){if(e.length){let n=e[e.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),P(e,e.length-1,1e9,n.setSelAfter(i)))}return[T.selection([t])]}function X(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function j(e,t){if(!e.length)return e;let n=e.length,i=C;for(;n;){let r=W(e[n-1],t,i);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,i=r.selectionsAfter}return i.length?[T.selection(i)]:C}function W(e,t,n){let i=R(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):C,n);if(!e.changes)return T.selection(i);let r=e.changes.map(t),s=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(s):s;return new T(r,o.Py.mapEffects(e.effects,t),a,e.startSelection.map(s),i)}const A=/^(input\.type|delete)($|\.)/;class q{constructor(e,t,n=0,i){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new q(this.done,this.undone):this}addChanges(e,t,n,i,r){let s=this.done,o=s[s.length-1];return s=o&&o.changes&&!o.changes.empty&&e.changes&&(!n||A.test(n))&&(!o.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,r,s)=>{for(let o=0;o=e&&r<=t&&(i=!0)}})),i}(o.changes,e.changes)||"input.type.compose"==n)?P(s,s.length-1,r,new T(e.changes.compose(o.changes),R(e.effects,o.effects),o.mapped,o.startSelection,C)):P(s,s.length,r,e),new q(s,C,t,n)}addSelection(e,t,n,i){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:C;return r.length>0&&t-this.prevTimee.empty!=o.ranges[t].empty)).length)?this:new q(Z(this.done,e),this.undone,t,n);var s,o}addMapping(e){return new q(j(this.done,e),j(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=0==e?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1];if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:g.of({side:e,rest:X(i)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==i.length?C:i.slice(0,i.length-1);return r.mapped&&(n=j(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:g.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}q.empty=new q(C,C);const _=[{key:"Mod-z",run:v,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$,preventDefault:!0},{key:"Mod-u",run:S,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:w,preventDefault:!0}];function z(e,t){return o.jT.create(e.ranges.map(t),e.mainIndex)}function I(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function E({state:e,dispatch:t},n){let i=z(e.selection,n);return!i.eq(e.selection)&&(t(I(e,i)),!0)}function G(e,t){return o.jT.cursor(t?e.to:e.from)}function L(e,t){return E(e,(n=>n.empty?e.moveByChar(n,t):G(n,t)))}function D(e){return e.textDirectionAt(e.state.selection.main.head)==a.Nm.LTR}const N=e=>L(e,!D(e)),U=e=>L(e,D(e));function M(e,t){return E(e,(n=>n.empty?e.moveByGroup(n,t):G(n,t)))}function J(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function V(e,t,n){let i,r,s=(0,l.qz)(e).resolveInner(t.head),a=n?c.md.closedBy:c.md.openedBy;for(let o=t.head;;){let t=n?s.childAfter(o):s.childBefore(o);if(!t)break;J(e,t,a)?s=t:o=n?t.to:t.from}return r=s.type.prop(a)&&(i=n?(0,l.Um)(e,s.from,1):(0,l.Um)(e,s.to,-1))&&i.matched?n?i.end.to:i.end.from:n?s.to:s.from,o.jT.cursor(r,n?-1:1)}function B(e,t){return E(e,(n=>{if(!n.empty)return G(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)}))}const Y=e=>B(e,!1),F=e=>B(e,!0);function H(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function K(e,t){let{state:n}=e,i=z(n.selection,(n=>n.empty?e.moveVertically(n,t,H(e)):G(n,t)));if(i.eq(n.selection))return!1;let r,s=e.coordsAtPos(n.selection.main.head),o=e.scrollDOM.getBoundingClientRect();return s&&s.top>o.top&&s.bottomK(e,!1),te=e=>K(e,!0);function ne(e,t,n){let i=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?i.to:i.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(r=o.jT.cursor(i.from+n))}return r}function ie(e,t,n){let i=!1,r=z(e.selection,(t=>{let r=(0,l.Um)(e,t.head,-1)||(0,l.Um)(e,t.head,1)||t.head>0&&(0,l.Um)(e,t.head-1,1)||t.head{let n=t(e);return o.jT.range(e.anchor,n.head,n.goalColumn)}));return!n.eq(e.state.selection)&&(e.dispatch(I(e.state,n)),!0)}function se(e,t){return re(e,(n=>e.moveByChar(n,t)))}const oe=e=>se(e,!D(e)),ae=e=>se(e,D(e));function le(e,t){return re(e,(n=>e.moveByGroup(n,t)))}function ce(e,t){return re(e,(n=>e.moveVertically(n,t)))}const he=e=>ce(e,!1),ue=e=>ce(e,!0);function Oe(e,t){return re(e,(n=>e.moveVertically(n,t,H(e))))}const fe=e=>Oe(e,!1),de=e=>Oe(e,!0),pe=({state:e,dispatch:t})=>(t(I(e,{anchor:0})),!0),me=({state:e,dispatch:t})=>(t(I(e,{anchor:e.doc.length})),!0),ge=({state:e,dispatch:t})=>(t(I(e,{anchor:e.selection.main.anchor,head:0})),!0),Qe=({state:e,dispatch:t})=>(t(I(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function be(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:i}=e,r=i.changeByRange((i=>{let{from:r,to:s}=i;if(r==s){let i=t(r);ir&&(n="delete.forward",i=xe(e,i,!0)),r=Math.min(r,i),s=Math.max(s,i)}else r=xe(e,r,!1),s=xe(e,r,!0);return r==s?{range:i}:{changes:{from:r,to:s},range:o.jT.cursor(r)}}));return!r.changes.empty&&(e.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?a.tk.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function xe(e,t,n){if(e instanceof a.tk)for(let i of e.state.facet(a.tk.atomicRanges).map((t=>t(e))))i.between(t,t,((e,i)=>{et&&(t=n?i:e)}));return t}const ke=(e,t)=>be(e,(n=>{let i,r,{state:s}=e,a=s.doc.lineAt(n);if(!t&&n>a.from&&nke(e,!1),ve=e=>ke(e,!0),$e=(e,t)=>be(e,(n=>{let i=n,{state:r}=e,s=r.doc.lineAt(i),a=r.charCategorizer(i);for(let e=null;;){if(i==(t?s.to:s.from)){i==n&&s.number!=(t?r.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,o.cp)(s.text,i-s.from,t)+s.from,c=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from),h=a(c);if(null!=e&&h!=e)break;" "==c&&i==n||(e=h),i=l}return i})),Se=e=>$e(e,!1),we=e=>be(e,(t=>{let n=e.lineBlockAt(t).to;return t=r.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(i)}else t.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return t}function Pe(e,t,n){if(e.readOnly)return!1;let i=[],r=[];for(let s of Te(e)){if(n?s.to==e.doc.length:0==s.from)continue;let t=e.doc.lineAt(n?s.to+1:s.from-1),a=t.length+1;if(n){i.push({from:s.to,to:t.to},{from:s.from,insert:t.text+e.lineBreak});for(let t of s.ranges)r.push(o.jT.range(Math.min(e.doc.length,t.anchor+a),Math.min(e.doc.length,t.head+a)))}else{i.push({from:t.from,to:s.from},{from:s.to,insert:e.lineBreak+t.text});for(let e of s.ranges)r.push(o.jT.range(e.anchor-a,e.head-a))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:o.jT.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Re(e,t,n){if(e.readOnly)return!1;let i=[];for(let r of Te(e))n?i.push({from:r.from,insert:e.doc.slice(r.from,r.to)+e.lineBreak}):i.push({from:r.to,insert:e.lineBreak+e.doc.slice(r.from,r.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ce=Ze(!1);function Ze(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange((n=>{let{from:i,to:r}=n,s=t.doc.lineAt(i),a=!e&&i==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,i=(0,l.qz)(e).resolveInner(t),r=i.childBefore(t),s=i.childAfter(t);return r&&s&&r.to<=t&&s.from>=t&&(n=r.type.prop(c.md.closedBy))&&n.indexOf(s.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(s.from).from?{from:r.to,to:s.from}:null}(t,i);e&&(i=r=(r<=s.to?s:t.doc.lineAt(r)).to);let h=new l.Gn(t,{simulateBreak:i,simulateDoubleBreak:!!a}),u=(0,l.K0)(h,i);for(null==u&&(u=/^\s*/.exec(t.doc.lineAt(i).text)[0].length);rs.from&&i{let r=[];for(let o=i.from;o<=i.to;){let s=e.doc.lineAt(o);s.number>n&&(i.empty||i.to>s.from)&&(t(s,r,i),n=s.number),o=s.to+1}let s=e.changes(r);return{changes:r,range:o.jT.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}}))}const je=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Xe(e,((t,n)=>{n.push({from:t.from,insert:e.facet(l.c)})})),{userEvent:"input.indent"})),!0),We=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Xe(e,((t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=(0,o.IS)(i,e.tabSize),s=0,a=(0,l.SS)(e,Math.max(0,r-(0,l.y1)(e)));for(;sE(e,(t=>V(e.state,t,!D(e)))),shift:e=>re(e,(t=>V(e.state,t,!D(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>E(e,(t=>V(e.state,t,D(e)))),shift:e=>re(e,(t=>V(e.state,t,D(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Pe(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Re(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Pe(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Re(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=o.jT.create([n.main]):n.main.empty||(i=o.jT.create([o.jT.cursor(n.main.head)])),!!i&&(t(I(e,i)),!0)}},{key:"Mod-Enter",run:Ze(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Te(e).map((({from:t,to:n})=>o.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:o.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=z(e.selection,(t=>{var n;let i=(0,l.qz)(e).resolveInner(t.head,1);for(;!(i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return o.jT.range(i.to,i.from)}));return t(I(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:We},{key:"Mod-]",run:je},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new l.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=Xe(e,((t,r,s)=>{let o=(0,l.K0)(i,t.from);if(null==o)return;/\S/.test(t.text)||(o=0);let a=/^\s*/.exec(t.text)[0],c=(0,l.SS)(e,o);(a!=c||s.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Te(t).map((({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>ie(e,t,!1)},{key:"Mod-/",run:e=>{let t=d(e.state);return t.line?u(e):!!t.block&&f(e)}},{key:"Alt-A",run:O}].concat([{key:"ArrowLeft",run:N,shift:oe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>M(e,!D(e)),shift:e=>le(e,!D(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>E(e,(t=>ne(e,t,!D(e)))),shift:e=>re(e,(t=>ne(e,t,!D(e)))),preventDefault:!0},{key:"ArrowRight",run:U,shift:ae,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>M(e,D(e)),shift:e=>le(e,D(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>E(e,(t=>ne(e,t,D(e)))),shift:e=>re(e,(t=>ne(e,t,D(e)))),preventDefault:!0},{key:"ArrowUp",run:Y,shift:he,preventDefault:!0},{mac:"Cmd-ArrowUp",run:pe,shift:ge},{mac:"Ctrl-ArrowUp",run:ee,shift:fe},{key:"ArrowDown",run:F,shift:ue,preventDefault:!0},{mac:"Cmd-ArrowDown",run:me,shift:Qe},{mac:"Ctrl-ArrowDown",run:te,shift:de},{key:"PageUp",run:ee,shift:fe},{key:"PageDown",run:te,shift:de},{key:"Home",run:e=>E(e,(t=>ne(e,t,!1))),shift:e=>re(e,(t=>ne(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:pe,shift:ge},{key:"End",run:e=>E(e,(t=>ne(e,t,!0))),shift:e=>re(e,(t=>ne(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:me,shift:Qe},{key:"Enter",run:Ce},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:ye,shift:ye},{key:"Delete",run:ve},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Se},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>$e(e,!0)},{mac:"Mod-Backspace",run:e=>be(e,(t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}))},{mac:"Mod-Delete",run:we}].concat([{key:"Ctrl-b",run:N,shift:oe,preventDefault:!0},{key:"Ctrl-f",run:U,shift:ae},{key:"Ctrl-p",run:Y,shift:he},{key:"Ctrl-n",run:F,shift:ue},{key:"Ctrl-a",run:e=>E(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>re(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>E(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>re(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:ve},{key:"Ctrl-h",run:ye},{key:"Ctrl-k",run:we},{key:"Ctrl-Alt-h",run:Se},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:o.xv.of(["",""])},range:o.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),r=n==i.from?n-1:(0,o.cp)(i.text,n-i.from,!1)+i.from,s=n==i.to?n+1:(0,o.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:r,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(r,n))},range:o.jT.cursor(s)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:te}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),qe={key:"Tab",run:je,shift:We};function _e(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;te.normalize("NFKD"):e=>e;class Ee{constructor(e,t,n=0,i=e.length,r,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=r?e=>r(Ie(e)):Ie,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,o.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,o.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,o.nZ)(e);let i=this.normalize(t);for(let r=0,s=n;;r++){let e=i.charCodeAt(r),o=this.match(e,s);if(o)return this.value=o,this;if(r==i.length-1)break;s==n&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=Je(this.text,i+(n==i?1:0)),n==this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||i.to<=t){let i=new Ue(t,e.sliceString(t,n));return Ne.set(e,i),i}if(i.from==t&&i.to==n)return i;let{text:r,from:s}=i;return s>t&&(r=e.sliceString(t,s)+r,s=t),i.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Je(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ue.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Je(e,t){if(t>=e.length)return t;let n,i=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function Ve(e){let t=_e("input",{class:"cm-textfield",name:"line"});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:i}=e,r=i.doc.lineAt(i.selection.main.head),[,s,a,l,c]=n,h=l?+l.slice(1):0,u=a?+a:r.number;if(a&&c){let e=u/100;s&&(e=e*("-"==s?-1:1)+r.number/i.doc.lines),u=Math.round(i.doc.lines*e)}else a&&s&&(u=u*("-"==s?-1:1)+r.number);let O=i.doc.line(Math.max(1,Math.min(i.doc.lines,u)));e.dispatch({effects:Be.of(!1),selection:o.jT.cursor(O.from+Math.max(0,Math.min(h,O.length))),scrollIntoView:!0}),e.focus()}return{dom:_e("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Be.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},_e("label",e.state.phrase("Go to line"),": ",t)," ",_e("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(De.prototype[Symbol.iterator]=Me.prototype[Symbol.iterator]=function(){return this});const Be=o.Py.define(),Ye=o.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(Be)&&(e=n.value);return e},provide:e=>a.mH.from(e,(e=>e?Ve:null))}),Fe=a.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),He={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ke=o.r$.define({combine:e=>(0,o.BO)(e,He,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});const et=a.p.mark({class:"cm-selectionMatch"}),tt=a.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function nt(e,t,n,i){return(0==n||e(t.sliceDoc(n-1,n))!=o.D0.Word)&&(i==t.doc.length||e(t.sliceDoc(i,i+1))!=o.D0.Word)}const it=a.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Ke),{state:n}=e,i=n.selection;if(i.ranges.length>1)return a.p.none;let r,s=i.main,l=null;if(s.empty){if(!t.highlightWordAroundCursor)return a.p.none;let e=n.wordAt(s.head);if(!e)return a.p.none;l=n.charCategorizer(s.head),r=n.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return a.p.none;if(t.wholeWords){if(r=n.sliceDoc(s.from,s.to),l=n.charCategorizer(s.head),!nt(l,n,s.from,s.to)||!function(e,t,n,i){return e(t.sliceDoc(n,n+1))==o.D0.Word&&e(t.sliceDoc(i-1,i))==o.D0.Word}(l,n,s.from,s.to))return a.p.none}else if(r=n.sliceDoc(s.from,s.to).trim(),!r)return a.p.none}let c=[];for(let o of e.visibleRanges){let e=new Ee(n.doc,r,o.from,o.to);for(;!e.next().done;){let{from:i,to:r}=e.value;if((!l||nt(l,n,i,r))&&(s.empty&&i<=s.from&&r>=s.to?c.push(tt.range(i,r)):(i>=s.to||r<=s.from)&&c.push(et.range(i,r)),c.length>t.maxMatches))return a.p.none}}return a.p.set(c)}},{decorations:e=>e.decorations}),rt=a.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const st=o.r$.define({combine:e=>(0,o.BO)(e,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:e=>new Xt(e)})});class ot{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Le),!0}catch(t){return!1}}(this.search)),this.unquoted=this.literal?this.search:this.search.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")),this.wholeWord=!!e.wholeWord}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new ft(this):new ct(this)}getCursor(e,t=0,n){let i=e.doc?e:o.yy.create({doc:e});return null==n&&(n=i.doc.length),this.regexp?ht(this,i,t,n):lt(this,i,t,n)}}class at{constructor(e){this.spec=e}}function lt(e,t,n,i){return new Ee(t.doc,e.unquoted,n,i,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(r=t.doc,s=t.charCategorizer(t.selection.main.head),(e,t,n,i)=>((i>e||i+n.length=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=lt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}function ht(e,t,n,i){return new De(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(r=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(r(ut(n.input,n.index))!=o.D0.Word||r(Ot(n.input,n.index))!=o.D0.Word)&&(r(Ot(n.input,n.index+n[0].length))!=o.D0.Word||r(ut(n.input,n.index+n[0].length))!=o.D0.Word)):void 0},n,i);var r}function ut(e,t){return e.slice((0,o.cp)(e,t,!1),t)}function Ot(e,t){return e.slice(t,(0,o.cp)(e,t))}class ft extends at{nextMatch(e,t,n){let i=ht(this.spec,e,n,e.doc.length).next();return i.done&&(i=ht(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let r=Math.max(t,n-1e4*i),s=ht(this.spec,e,r,n),o=null;for(;!s.next().done;)o=s.value;if(o&&(r==t||o.from>r+10))return o;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=ht(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}const dt=o.Py.define(),pt=o.Py.define(),mt=o.QQ.define({create:e=>new gt(Pt(e).create(),null),update(e,t){for(let n of t.effects)n.is(dt)?e=new gt(n.value.create(),e.panel):n.is(pt)&&(e=new gt(e.query,n.value?Tt:null));return e},provide:e=>a.mH.from(e,(e=>e.panel))});class gt{constructor(e,t){this.query=e,this.panel=t}}const Qt=a.p.mark({class:"cm-searchMatch"}),bt=a.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),xt=a.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(mt))}update(e){let t=e.state.field(mt);(t!=e.startState.field(mt)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return a.p.none;let{view:n}=this,i=new o.f_;for(let r=0,s=n.visibleRanges,o=s.length;rs[r+1].from-500;)a=s[++r].to;e.highlight(n.state,t,a,((e,t)=>{let r=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));i.add(e,t,r?bt:Qt)}))}return i.finish()}},{decorations:e=>e.decorations});function kt(e){return t=>{let n=t.state.field(mt,!1);return n&&n.query.spec.valid?e(t,n):Rt(t)}}const yt=kt(((e,{query:t})=>{let{to:n}=e.state.selection.main,i=t.nextMatch(e.state,n,n);return!!i&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:At(e,i),userEvent:"select.search"}),!0)})),vt=kt(((e,{query:t})=>{let{state:n}=e,{from:i}=n.selection.main,r=t.prevMatch(n,i,i);return!!r&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:At(e,r),userEvent:"select.search"}),!0)})),$t=kt(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:o.jT.create(n.map((e=>o.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),St=kt(((e,{query:t})=>{let{state:n}=e,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=t.nextMatch(n,i,i);if(!s)return!1;let o,l,c=[],h=[];if(s.from==i&&s.to==r&&(l=n.toText(t.getReplacement(s)),c.push({from:s.from,to:s.to,insert:l}),s=t.nextMatch(n,s.from,s.to),h.push(a.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),s){let t=0==c.length||c[0].from>=s.to?0:s.to-s.from-l.length;o={anchor:s.from-t,head:s.to-t},h.push(At(e,s))}return e.dispatch({changes:c,selection:o,scrollIntoView:!!o,effects:h,userEvent:"input.replace"}),!0})),wt=kt(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:i}=e;return{from:n,to:i,insert:t.getReplacement(e)}}));if(!n.length)return!1;let i=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:a.tk.announce.of(i),userEvent:"input.replace.all"}),!0}));function Tt(e){return e.state.facet(st).createPanel(e)}function Pt(e,t){var n,i,r,s;let o=e.selection.main,a=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!a)return t;let l=e.facet(st);return new ot({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=null===t||void 0===t?void 0:t.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(s=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==s?s:l.wholeWord})}const Rt=e=>{let t=e.state.field(mt,!1);if(t&&t.panel){let n=(0,a.Sd)(e,Tt);if(!n)return!1;let i=n.dom.querySelector("[main-field]");if(i&&i!=e.root.activeElement){let n=Pt(e.state,t.query.spec);n.valid&&e.dispatch({effects:dt.of(n)}),i.focus(),i.select()}}else e.dispatch({effects:[pt.of(!0),t?dt.of(Pt(e.state,t.query.spec)):o.Py.appendConfig.of(_t)]});return!0},Ct=e=>{let t=e.state.field(mt,!1);if(!t||!t.panel)return!1;let n=(0,a.Sd)(e,Tt);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:pt.of(!1)}),!0},Zt=[{key:"Mod-f",run:Rt,scope:"editor search-panel"},{key:"F3",run:yt,shift:vt,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:yt,shift:vt,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ct,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],a=0;for(let l=new Ee(e.doc,e.sliceDoc(i,r));!l.next().done;){if(s.length>1e3)return!1;l.value.from==i&&(a=s.length),s.push(o.jT.range(l.value.from,l.value.to))}return t(e.update({selection:o.jT.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,a.Sd)(e,Ve);if(!t){let n=[Be.of(!0)];null==e.state.field(Ye,!1)&&n.push(o.Py.appendConfig.of([Ye,Fe])),e.dispatch({effects:n}),t=(0,a.Sd)(e,Ve)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,i=o.jT.create(n.ranges.map((t=>e.wordAt(t.head)||o.jT.cursor(t.head))),n.mainIndex);return!i.eq(n)&&(t(e.update({selection:i})),!0)})({state:e,dispatch:t});let i=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=i)))return!1;let r=function(e,t){let{main:n,ranges:i}=e.selection,r=e.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let o=!1,a=new Ee(e.doc,t,i[i.length-1].to);;){if(a.next(),!a.done){if(o&&i.some((e=>e.from==a.value.from)))continue;if(s){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(o)return null;a=new Ee(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),o=!0}}(e,i);return!!r&&(t(e.update({selection:e.selection.addRange(o.jT.range(r.from,r.to),!1),effects:a.tk.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class Xt{constructor(e){this.view=e;let t=this.query=e.state.field(mt).query.spec;function n(e,t,n){return _e("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=_e("input",{value:t.search,placeholder:jt(e,"Find"),"aria-label":jt(e,"Find"),class:"cm-textfield",name:"search","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=_e("input",{value:t.replace,placeholder:jt(e,"Replace"),"aria-label":jt(e,"Replace"),class:"cm-textfield",name:"replace",onchange:this.commit,onkeyup:this.commit}),this.caseField=_e("input",{type:"checkbox",name:"case",checked:t.caseSensitive,onchange:this.commit}),this.reField=_e("input",{type:"checkbox",name:"re",checked:t.regexp,onchange:this.commit}),this.wordField=_e("input",{type:"checkbox",name:"word",checked:t.wholeWord,onchange:this.commit}),this.dom=_e("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>yt(e)),[jt(e,"next")]),n("prev",(()=>vt(e)),[jt(e,"previous")]),n("select",(()=>$t(e)),[jt(e,"all")]),_e("label",null,[this.caseField,jt(e,"match case")]),_e("label",null,[this.reField,jt(e,"regexp")]),_e("label",null,[this.wordField,jt(e,"by word")]),...e.state.readOnly?[]:[_e("br"),this.replaceField,n("replace",(()=>St(e)),[jt(e,"replace")]),n("replaceAll",(()=>wt(e)),[jt(e,"replace all")]),_e("button",{name:"close",onclick:()=>Ct(e),"aria-label":jt(e,"close"),type:"button"},["\xd7"])]])}commit(){let e=new ot({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:dt.of(e)}))}keydown(e){(0,a.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?vt:yt)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),St(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(dt)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(st).top}}function jt(e,t){return e.state.phrase(t)}const Wt=/[\s\.,:;?!]/;function At(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),r=e.state.doc.lineAt(n).to,s=Math.max(i.from,t-30),o=Math.min(r,n+30),l=e.state.sliceDoc(s,o);if(s!=i.from)for(let a=0;a<30;a++)if(!Wt.test(l[a+1])&&Wt.test(l[a])){l=l.slice(a);break}if(o!=r)for(let a=l.length-1;a>l.length-30;a--)if(!Wt.test(l[a-1])&&Wt.test(l[a])){l=l.slice(0,a);break}return a.tk.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}const qt=a.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),_t=[mt,o.Wl.lowest(xt),qt];var zt=n(34790);class It{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Et{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,r=n.facet(en).markerFilter;r&&(i=r(i));let s=a.p.set(i.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?a.p.widget({widget:new rn(e),diagnostic:e}).range(e.from):a.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to))),!0);return new Et(s,t,Gt(s))}}function Gt(e,t=null,n=0){let i=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!t||r.diagnostic==t)return i=new It(e,n,r.diagnostic),!1})),i}function Lt(e,t){return!(!e.effects.some((e=>e.is(Nt)))&&!e.changes.touchesRange(t.pos))}function Dt(e,t){return e.field(Jt,!1)?t:t.concat(o.Py.appendConfig.of([Jt,a.tk.decorations.compute([Jt],(e=>{let{selected:t,panel:n}=e.field(Jt);return t&&n&&t.from!=t.to?a.p.set([Vt.range(t.from,t.to)]):a.p.none})),(0,a.bF)(Bt,{hideOn:Lt}),cn]))}const Nt=o.Py.define(),Ut=o.Py.define(),Mt=o.Py.define(),Jt=o.QQ.define({create:()=>new Et(a.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),i=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);i=Gt(n,e.selected.diagnostic,r)||Gt(n,null,r)}e=new Et(n,e.panel,i)}for(let n of t.effects)n.is(Nt)?e=Et.init(n.value,e.panel,t.state):n.is(Ut)?e=new Et(e.diagnostics,n.value?on.open:null,e.selected):n.is(Mt)&&(e=new Et(e.diagnostics,e.panel,n.value));return e},provide:e=>[a.mH.from(e,(e=>e.panel)),a.tk.decorations.from(e,(e=>e.diagnostics))]});const Vt=a.p.mark({class:"cm-lintRange cm-lintRange-active"});function Bt(e,t,n){let{diagnostics:i}=e.state.field(Jt),r=[],s=2e8,o=0;i.between(t-(n<0?1:0),t+(n>0?1:0),((e,i,{spec:a})=>{t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t({dom:Yt(e,r)})}:null}function Yt(e,t){return _e("ul",{class:"cm-tooltip-lint"},t.map((t=>nn(e,t,!1))))}const Ft=e=>{let t=e.state.field(Jt,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Ut.of(!1)}),!0)},Ht=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Jt,!1);t&&t.panel||e.dispatch({effects:Dt(e.state,[Ut.of(!0)])});let n=(0,a.Sd)(e,on.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0}},{key:"F8",run:e=>{let t=e.state.field(Jt,!1);if(!t)return!1;let n=e.state.selection.main,i=t.diagnostics.iter(n.to+1);return!(!i.value&&(i=t.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to))&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)}}],Kt=a.lg.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(en);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(ePromise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:Dt(e,[Nt.of(t)])}}(this.view.state,n))}),(e=>{(0,a.OO)(this.view.state,e)}))}}update(e){let t=e.state.facet(en);(e.docChanged||t!=e.startState.facet(en))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),en=o.r$.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},(0,o.BO)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null})),enables:Kt});function tn(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==i.toLowerCase()))){t.push(i);continue e}}t.push("")}return t}function nn(e,t,n){var i;let r=n?tn(t.actions):[];return _e("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},_e("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(i=t.actions)||void 0===i?void 0:i.map(((n,i)=>{let s=i=>{i.preventDefault();let r=Gt(e.state.field(Jt).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:o}=n,a=r[i]?o.indexOf(r[i]):-1,l=a<0?o:[o.slice(0,a),_e("u",o.slice(a,a+1)),o.slice(a+1)];return _e("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${o}${a<0?"":` (access key "${r[i]})"`}.`},l)})),t.source&&_e("div",{class:"cm-diagnosticSource"},t.source))}class rn extends a.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return _e("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class sn{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=nn(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class on{constructor(e){this.view=e,this.items=[];this.list=_e("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Ft(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],i=tn(n.actions);for(let r=0;r{for(let t=0;tFt(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(Jt).selected;if(!e)return-1;for(let t=0;t{let a,l=-1;for(let t=n;tn&&(this.items.splice(n,l-n),i=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{e.topt.bottom&&(this.list.scrollTop+=e.bottom-t.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Gt(this.view.state.field(Jt).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Mt.of(t)})}static open(e){return new on(e)}}function an(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function ln(e){return an(``,'width="6" height="3"')}const cn=a.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:ln("#d11")},".cm-lintRange-warning":{backgroundImage:ln("orange")},".cm-lintRange-info":{backgroundImage:ln("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});a.SJ;var hn=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(zt.GA)),!1!==e.defaultKeymap&&(t=t.concat(Ae)),!1!==e.searchKeymap&&(t=t.concat(Zt)),!1!==e.historyKeymap&&(t=t.concat(_)),!1!==e.foldKeymap&&(t=t.concat(l.e7)),!1!==e.completionKeymap&&(t=t.concat(zt.B1)),!1!==e.lintKeymap&&(t=t.concat(Ht));var n=[];return!1!==e.lineNumbers&&n.push((0,a.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,a.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,a.AE)()),!1!==e.history&&n.push(function(e={}){return[k,x.of(e),a.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?v:"historyRedo"==e.inputType?$:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&n.push((0,l.mi)()),!1!==e.drawSelection&&n.push((0,a.Uw)()),!1!==e.dropCursor&&n.push((0,a.qr)()),!1!==e.allowMultipleSelections&&n.push(o.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push((0,l.nY)()),!1!==e.syntaxHighlighting&&n.push((0,l.nF)(l.R_,{fallback:!0})),!1!==e.bracketMatching&&n.push((0,l.n$)()),!1!==e.closeBrackets&&n.push((0,zt.vQ)()),!1!==e.autocompletion&&n.push((0,zt.ys)()),!1!==e.rectangularSelection&&n.push((0,a.Zs)()),!1!==e.crosshairCursor&&n.push((0,a.S2)()),!1!==e.highlightActiveLine&&n.push((0,a.ZO)()),!1!==e.highlightSelectionMatches&&n.push(function(e){let t=[rt,it];return e&&t.push(Ke.of(e)),t}()),n.concat([a.$f.of(t.flat())]).filter(Boolean)},un=n(35524);const On="#e5c07b",fn="#e06c75",dn="#56b6c2",pn="#ffffff",mn="#abb2bf",gn="#7d8799",Qn="#61afef",bn="#98c379",xn="#d19a66",kn="#c678dd",yn="#21252b",vn="#2c313a",$n="#282c34",Sn="#353a42",wn="#3E4451",Tn="#528bff",Pn=a.tk.theme({"&":{color:mn,backgroundColor:$n},".cm-content":{caretColor:Tn},".cm-cursor, .cm-dropCursor":{borderLeftColor:Tn},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:wn},".cm-panels":{backgroundColor:yn,color:mn},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847",outline:"1px solid #515a6b"},".cm-gutters":{backgroundColor:$n,color:gn,border:"none"},".cm-activeLineGutter":{backgroundColor:vn},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Sn},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Sn,borderBottomColor:Sn},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:vn,color:mn}}},{dark:!0}),Rn=l.Qf.define([{tag:un.pJ.keyword,color:kn},{tag:[un.pJ.name,un.pJ.deleted,un.pJ.character,un.pJ.propertyName,un.pJ.macroName],color:fn},{tag:[un.pJ.function(un.pJ.variableName),un.pJ.labelName],color:Qn},{tag:[un.pJ.color,un.pJ.constant(un.pJ.name),un.pJ.standard(un.pJ.name)],color:xn},{tag:[un.pJ.definition(un.pJ.name),un.pJ.separator],color:mn},{tag:[un.pJ.typeName,un.pJ.className,un.pJ.number,un.pJ.changed,un.pJ.annotation,un.pJ.modifier,un.pJ.self,un.pJ.namespace],color:On},{tag:[un.pJ.operator,un.pJ.operatorKeyword,un.pJ.url,un.pJ.escape,un.pJ.regexp,un.pJ.link,un.pJ.special(un.pJ.string)],color:dn},{tag:[un.pJ.meta,un.pJ.comment],color:gn},{tag:un.pJ.strong,fontWeight:"bold"},{tag:un.pJ.emphasis,fontStyle:"italic"},{tag:un.pJ.strikethrough,textDecoration:"line-through"},{tag:un.pJ.link,color:gn,textDecoration:"underline"},{tag:un.pJ.heading,fontWeight:"bold",color:fn},{tag:[un.pJ.atom,un.pJ.bool,un.pJ.special(un.pJ.variableName)],color:xn},{tag:[un.pJ.processingInstruction,un.pJ.string,un.pJ.inserted],color:bn},{tag:un.pJ.invalid,color:pn}]),Cn=[Pn,(0,l.nF)(Rn)];function Zn(e){var{value:t,selection:n,onChange:i,onStatistics:r,onCreateEditor:l,onUpdate:c,extensions:h=[],autoFocus:u,theme:O="light",height:f="",minHeight:d="",maxHeight:p="",placeholder:m="",width:g="",minWidth:Q="",maxWidth:b="",editable:x=!0,readOnly:k=!1,indentWithTab:y=!0,basicSetup:v=!0,root:$,initialState:S}=e,[w,T]=(0,s.useState)(),[P,R]=(0,s.useState)(),[C,Z]=(0,s.useState)(),X=a.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),j=a.tk.theme({"&":{height:f,minHeight:d,maxHeight:p,width:g,minWidth:Q,maxWidth:b}}),W=a.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof i){var t=e.state.doc.toString();i(t,e)}r&&r((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),A=[W,j];switch(y&&A.unshift(a.$f.of([qe])),v&&("boolean"===typeof v?A.unshift(hn()):A.unshift(hn(v))),m&&A.unshift((0,a.W$)(m)),O){case"light":A.push(X);break;case"dark":A.push(Cn);break;default:A.push(O)}return!1===x&&A.push(a.tk.editable.of(!1)),k&&A.push(o.yy.readOnly.of(!0)),c&&"function"===typeof c&&A.push(a.tk.updateListener.of(c)),A=A.concat(h),(0,s.useEffect)((()=>{if(w&&!C){var e={doc:t,selection:n,extensions:A},i=S?o.yy.fromJSON(S.json,e,S.fields):o.yy.create(e);if(Z(i),!P){var r=new a.tk({state:i,parent:w,root:$});R(r),l&&l(r,i)}}return()=>{P&&(Z(void 0),R(void 0))}}),[w,C]),(0,s.useEffect)((()=>T(e.container)),[e.container]),(0,s.useEffect)((()=>()=>{P&&(P.destroy(),R(void 0))}),[P]),(0,s.useEffect)((()=>{u&&P&&P.focus()}),[u,P]),(0,s.useEffect)((()=>{P&&P.dispatch({effects:o.Py.reconfigure.of(A)})}),[O,h,f,d,p,g,Q,b,m,x,k,y,v,i,c]),(0,s.useEffect)((()=>{var e=P?P.state.doc.toString():"";P&&t!==e&&P.dispatch({changes:{from:0,to:e.length,insert:t||""}})}),[t,P]),{state:C,setState:Z,view:P,setView:R,container:w,setContainer:T}}var Xn=n(85893),jn=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Wn=(0,s.forwardRef)(((e,t)=>{var{className:n,value:o="",selection:a,extensions:l=[],onChange:c,onStatistics:h,onCreateEditor:u,onUpdate:O,autoFocus:f,theme:d="light",height:p,minHeight:m,maxHeight:g,width:Q,minWidth:b,maxWidth:x,basicSetup:k,placeholder:y,indentWithTab:v,editable:$,readOnly:S,root:w,initialState:T}=e,P=(0,r.Z)(e,jn),R=(0,s.useRef)(null),{state:C,view:Z,container:X,setContainer:j}=Zn({container:R.current,root:w,value:o,autoFocus:f,theme:d,height:p,minHeight:m,maxHeight:g,width:Q,minWidth:b,maxWidth:x,basicSetup:k,placeholder:y,indentWithTab:v,editable:$,readOnly:S,selection:a,onChange:c,onStatistics:h,onCreateEditor:u,onUpdate:O,extensions:l,initialState:T});if((0,s.useImperativeHandle)(t,(()=>({editor:R.current,state:C,view:Z})),[R,X,C,Z]),"string"!==typeof o)throw new Error("value must be typeof string but got "+typeof o);var W="string"===typeof d?"cm-theme-"+d:"cm-theme";return(0,Xn.jsx)("div",(0,i.Z)({ref:R,className:W+(n?" "+n:"")},P))}));Wn.displayName="CodeMirror";var An=Wn},94594:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var i=n(87462),r=n(4942),s=n(50888),o=n(94184),a=n.n(o),l=n(97685),c=n(45987),h=n(67294),u=n(21770),O=n(15105),f=h.forwardRef((function(e,t){var n,i=e.prefixCls,s=void 0===i?"rc-switch":i,o=e.className,f=e.checked,d=e.defaultChecked,p=e.disabled,m=e.loadingIcon,g=e.checkedChildren,Q=e.unCheckedChildren,b=e.onClick,x=e.onChange,k=e.onKeyDown,y=(0,c.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),v=(0,u.Z)(!1,{value:f,defaultValue:d}),$=(0,l.Z)(v,2),S=$[0],w=$[1];function T(e,t){var n=S;return p||(w(n=e),null===x||void 0===x||x(n,t)),n}var P=a()(s,o,(n={},(0,r.Z)(n,"".concat(s,"-checked"),S),(0,r.Z)(n,"".concat(s,"-disabled"),p),n));return h.createElement("button",Object.assign({},y,{type:"button",role:"switch","aria-checked":S,disabled:p,className:P,ref:t,onKeyDown:function(e){e.which===O.Z.LEFT?T(!1,e):e.which===O.Z.RIGHT&&T(!0,e),null===k||void 0===k||k(e)},onClick:function(e){var t=T(!S,e);null===b||void 0===b||b(t,e)}}),m,h.createElement("span",{className:"".concat(s,"-inner")},S?g:Q))}));f.displayName="Switch";var d=f,p=n(53124),m=n(98866),g=n(97647),Q=n(68349),b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var i=e.data[t];Array.isArray(i)?i.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,i)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),i=new Error(n);return i.status=t.status,i.method=e.method,i.url=e.action,i}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};return null!==i["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach((function(e){null!==i[e]&&t.setRequestHeader(e,i[e])})),t.send(n),{abort:function(){t.abort()}}}var k=+new Date,y=0;function v(){return"rc-upload-".concat(k,"-").concat(++y)}var $=n(80334),S=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",r=e.type||"",s=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=i.toLowerCase(),o=t.toLowerCase(),a=[o];return".jpg"!==o&&".jpeg"!==o||(a=[".jpg",".jpeg"]),a.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?s===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)&&((0,$.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var w=function(e,t,n){var i=function e(i,r){i.path=r||"",i.isFile?i.file((function(e){n(e)&&(i.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=i.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):i.isDirectory&&function(e,t){var n=e.createReader(),i=[];!function e(){n.readEntries((function(n){var r=Array.prototype.slice.apply(n);i=i.concat(r),r.length?e():t(i)}))}()}(i,(function(t){t.forEach((function(t){e(t,"".concat(r).concat(i.name,"/"))}))}))};e.forEach((function(e){i(e.webkitGetAsEntry())}))},T=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],P=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;(0,O.Z)(this,n);for(var i=arguments.length,r=new Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},ae=200;function le(e){return new Promise((function(t){if(e.type&&se(e.type)){var n=document.createElement("canvas");n.width=ae,n.height=ae,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ae,"px; height: ").concat(ae,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var i=n.getContext("2d"),r=new Image;if(r.onload=function(){var e=r.width,s=r.height,o=ae,a=ae,l=0,c=0;e>s?c=-((a=s*(ae/e))-o)/2:l=-((o=e*(ae/s))-a)/2,i.drawImage(r,l,c,o,a);var h=n.toDataURL();document.body.removeChild(n),t(h)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var s=new FileReader;s.addEventListener("load",(function(){s.result&&(r.src=s.result)})),s.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}else t("")}))}var ce=n(48689),he={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ue=function(e,t){return r.createElement(G.Z,(0,I.Z)((0,I.Z)({},e),{},{ref:t,icon:he}))};ue.displayName="DownloadOutlined";var Oe=r.forwardRef(ue),fe=n(99611),de=n(97910),pe=n(94199),me=r.forwardRef((function(e,t){var n,o,a,l=e.prefixCls,h=e.className,O=e.style,f=e.locale,d=e.listType,p=e.file,m=e.items,g=e.progress,Q=e.iconRender,b=e.actionIconRender,x=e.itemRender,k=e.isImgUrl,y=e.showPreviewIcon,v=e.showRemoveIcon,$=e.showDownloadIcon,S=e.previewIcon,w=e.removeIcon,T=e.downloadIcon,P=e.onPreview,R=e.onDownload,C=e.onClose,Z=p.status,X=r.useState(Z),j=(0,c.Z)(X,2),W=j[0],q=j[1];r.useEffect((function(){"removed"!==Z&&q(Z)}),[Z]);var _=r.useState(!1),z=(0,c.Z)(_,2),I=z[0],E=z[1],G=r.useRef();r.useEffect((function(){return G.current=setTimeout((function(){E(!0)}),300),function(){window.clearTimeout(G.current)}}),[]);var L="".concat(l,"-span"),D=Q(p),N=r.createElement("div",{className:"".concat(l,"-text-icon")},D);if("picture"===d||"picture-card"===d)if("uploading"===W||!p.thumbUrl&&!p.url){var U,M=u()((U={},(0,s.Z)(U,"".concat(l,"-list-item-thumbnail"),!0),(0,s.Z)(U,"".concat(l,"-list-item-file"),"uploading"!==W),U));N=r.createElement("div",{className:M},D)}else{var J,V=(null===k||void 0===k?void 0:k(p))?r.createElement("img",{src:p.thumbUrl||p.url,alt:p.name,className:"".concat(l,"-list-item-image"),crossOrigin:p.crossOrigin}):D,B=u()((J={},(0,s.Z)(J,"".concat(l,"-list-item-thumbnail"),!0),(0,s.Z)(J,"".concat(l,"-list-item-file"),k&&!k(p)),J));N=r.createElement("a",{className:B,onClick:function(e){return P(p,e)},href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer"},V)}var Y,H=u()((n={},(0,s.Z)(n,"".concat(l,"-list-item"),!0),(0,s.Z)(n,"".concat(l,"-list-item-").concat(W),!0),(0,s.Z)(n,"".concat(l,"-list-item-list-type-").concat(d),!0),n)),K="string"===typeof p.linkProps?JSON.parse(p.linkProps):p.linkProps,ee=v?b(("function"===typeof w?w(p):w)||r.createElement(ce.Z,null),(function(){return C(p)}),l,f.removeFile):null,te=$&&"done"===W?b(("function"===typeof T?T(p):T)||r.createElement(Oe,null),(function(){return R(p)}),l,f.downloadFile):null,ne="picture-card"!==d&&r.createElement("span",{key:"download-delete",className:u()("".concat(l,"-list-item-card-actions"),{picture:"picture"===d})},te,ee),ie=u()("".concat(l,"-list-item-name")),re=p.url?[r.createElement("a",(0,i.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:ie,title:p.name},K,{href:p.url,onClick:function(e){return P(p,e)}}),p.name),ne]:[r.createElement("span",{key:"view",className:ie,onClick:function(e){return P(p,e)},title:p.name},p.name),ne],se=y?r.createElement("a",{href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:p.url||p.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return P(p,e)},title:f.previewFile},"function"===typeof S?S(p):S||r.createElement(fe.Z,null)):null,oe="picture-card"===d&&"uploading"!==W&&r.createElement("span",{className:"".concat(l,"-list-item-actions")},se,"done"===W&&te,ee);Y=p.response&&"string"===typeof p.response?p.response:(null===(o=p.error)||void 0===o?void 0:o.statusText)||(null===(a=p.error)||void 0===a?void 0:a.message)||f.uploadError;var ae=r.createElement("span",{className:L},N,re),le=(0,r.useContext(A.E_).getPrefixCls)(),he=r.createElement("div",{className:H},r.createElement("div",{className:"".concat(l,"-list-item-info")},ae),oe,I&&r.createElement(F.Z,{motionName:"".concat(le,"-fade"),visible:"uploading"===W,motionDeadline:2e3},(function(e){var t=e.className,n="percent"in p?r.createElement(de.Z,(0,i.Z)({},g,{type:"line",percent:p.percent})):null;return r.createElement("div",{className:u()("".concat(l,"-list-item-progress"),t)},n)}))),ue=u()("".concat(l,"-list-").concat(d,"-container"),h),me="error"===W?r.createElement(pe.Z,{title:Y,getPopupContainer:function(e){return e.parentNode}},he):he;return r.createElement("div",{className:ue,style:O,ref:t},x?x(me,p,m,{download:R.bind(null,p),preview:P.bind(null,p),remove:C.bind(null,p)}):me)})),ge=(0,i.Z)({},ee.ZP);delete ge.onAppearEnd,delete ge.onEnterEnd,delete ge.onLeaveEnd;var Qe=function(e,t){var n,o=e.listType,a=void 0===o?"text":o,h=e.previewFile,O=void 0===h?le:h,f=e.onPreview,d=e.onDownload,p=e.onRemove,m=e.locale,g=e.iconRender,Q=e.isImageUrl,b=void 0===Q?oe:Q,x=e.prefixCls,k=e.items,y=void 0===k?[]:k,v=e.showPreviewIcon,$=void 0===v||v,S=e.showRemoveIcon,w=void 0===S||S,T=e.showDownloadIcon,P=void 0!==T&&T,R=e.removeIcon,C=e.previewIcon,Z=e.downloadIcon,X=e.progress,j=void 0===X?{strokeWidth:2,showInfo:!1}:X,W=e.appendAction,q=e.appendActionVisible,_=void 0===q||q,z=e.itemRender,I=(0,K.Z)(),E=r.useState(!1),G=(0,c.Z)(E,2),L=G[0],U=G[1];r.useEffect((function(){"picture"!==a&&"picture-card"!==a||(y||[]).forEach((function(e){"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",O&&O(e.originFileObj).then((function(t){e.thumbUrl=t||"",I()})))}))}),[a,y,O]),r.useEffect((function(){U(!0)}),[]);var M=function(e,t){if(f)return null===t||void 0===t||t.preventDefault(),f(e)},V=function(e){"function"===typeof d?d(e):e.url&&window.open(e.url)},B=function(e){null===p||void 0===p||p(e)},ee=function(e){if(g)return g(e,a);var t="uploading"===e.status,n=b&&b(e)?r.createElement(Y,null):r.createElement(D,null),i=t?r.createElement(N.Z,null):r.createElement(J,null);return"picture"===a?i=t?r.createElement(N.Z,null):n:"picture-card"===a&&(i=t?m.uploading:n),i},ne=function(e,t,n,s){var o={type:"text",size:"small",title:s,onClick:function(n){t(),(0,te.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if((0,te.l$)(e)){var a=(0,te.Tm)(e,(0,i.Z)((0,i.Z)({},e.props),{onClick:function(){}}));return r.createElement(H.Z,(0,i.Z)({},o,{icon:a}))}return r.createElement(H.Z,(0,i.Z)({},o),r.createElement("span",null,e))};r.useImperativeHandle(t,(function(){return{handlePreview:M,handleDownload:V}}));var ie=r.useContext(A.E_),re=ie.getPrefixCls,se=ie.direction,ae=re("upload",x),ce=u()((n={},(0,s.Z)(n,"".concat(ae,"-list"),!0),(0,s.Z)(n,"".concat(ae,"-list-").concat(a),!0),(0,s.Z)(n,"".concat(ae,"-list-rtl"),"rtl"===se),n)),he=(0,l.Z)(y.map((function(e){return{key:e.uid,file:e}}))),ue="picture-card"===a?"animate-inline":"animate",Oe={motionDeadline:2e3,motionName:"".concat(ae,"-").concat(ue),keys:he,motionAppear:L};return"picture-card"!==a&&(Oe=(0,i.Z)((0,i.Z)({},ge),Oe)),r.createElement("div",{className:ce},r.createElement(F.V,(0,i.Z)({},Oe,{component:!1}),(function(e){var t=e.key,n=e.file,i=e.className,s=e.style;return r.createElement(me,{key:t,locale:m,prefixCls:ae,className:i,style:s,file:n,items:y,progress:j,listType:a,isImgUrl:b,showPreviewIcon:$,showRemoveIcon:w,showDownloadIcon:P,removeIcon:R,previewIcon:C,downloadIcon:Z,iconRender:ee,actionIconRender:ne,itemRender:z,onPreview:M,onDownload:V,onClose:B})})),W&&r.createElement(F.Z,(0,i.Z)({},Oe,{visible:_,forceRender:!0}),(function(e){var t=e.className,n=e.style;return(0,te.Tm)(W,(function(e){return{className:u()(e.className,t),style:(0,i.Z)((0,i.Z)((0,i.Z)({},n),{pointerEvents:t?"none":void 0}),e.style)}}))})))};var be=r.forwardRef(Qe),xe=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},ke="__LIST_IGNORE_".concat(Date.now(),"__"),ye=function(e,t){var n,h=e.fileList,O=e.defaultFileList,f=e.onRemove,d=e.showUploadList,p=void 0===d||d,m=e.listType,g=void 0===m?"text":m,Q=e.onPreview,b=e.onDownload,x=e.onChange,k=e.onDrop,y=e.previewFile,v=e.disabled,$=void 0!==v&&v,S=e.locale,w=e.iconRender,T=e.isImageUrl,P=e.progress,R=e.prefixCls,C=e.className,Z=e.type,I=void 0===Z?"select":Z,E=e.children,G=e.style,L=e.itemRender,D=e.maxCount,N=e.data,U=void 0===N?{}:N,M=e.multiple,J=void 0!==M&&M,V=e.action,B=void 0===V?"":V,Y=e.accept,F=void 0===Y?"":Y,H=e.supportServerRender,K=void 0===H||H,ee=r.useContext(q.Z),te=$||ee,se=(0,j.Z)(O||[],{value:h,postState:function(e){return null!==e&&void 0!==e?e:[]}}),oe=(0,c.Z)(se,2),ae=oe[0],le=oe[1],ce=r.useState("drop"),he=(0,c.Z)(ce,2),ue=he[0],Oe=he[1],fe=r.useRef();r.useMemo((function(){var e=Date.now();(h||[]).forEach((function(t,n){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))}))}),[h]);var de=function(e,t,n){var i=(0,l.Z)(t);1===D?i=i.slice(-1):D&&(i=i.slice(0,D)),(0,W.flushSync)((function(){le(i)}));var r={file:e,fileList:i};n&&(r.event=n),null===x||void 0===x||x(r)},pe=function(e){var t=e.filter((function(e){return!e.file[ke]}));if(t.length){var n=t.map((function(e){return ne(e.file)})),i=(0,l.Z)(ae);n.forEach((function(e){i=ie(e,i)})),n.forEach((function(e,n){var r=e;if(t[n].parsedFile)e.status="uploading";else{var s,o=e.originFileObj;try{s=new File([o],o.name,{type:o.type})}catch(a){(s=new Blob([o],{type:o.type})).name=o.name,s.lastModifiedDate=new Date,s.lastModified=(new Date).getTime()}s.uid=e.uid,r=s}de(r,i)}))}},me=function(e,t,n){try{"string"===typeof e&&(e=JSON.parse(e))}catch(s){}if(re(t,ae)){var i=ne(t);i.status="done",i.percent=100,i.response=e,i.xhr=n;var r=ie(i,ae);de(i,r)}},ge=function(e,t){if(re(t,ae)){var n=ne(t);n.status="uploading",n.percent=e.percent;var i=ie(n,ae);de(n,i,e)}},Qe=function(e,t,n){if(re(n,ae)){var i=ne(n);i.error=e,i.response=t,i.status="error";var r=ie(i,ae);de(i,r)}},ye=function(e){var t;Promise.resolve("function"===typeof f?f(e):f).then((function(n){var r;if(!1!==n){var s=function(e,t){var n=void 0!==e.uid?"uid":"name",i=t.filter((function(t){return t[n]!==e[n]}));return i.length===t.length?null:i}(e,ae);s&&(t=(0,i.Z)((0,i.Z)({},e),{status:"removed"}),null===ae||void 0===ae||ae.forEach((function(e){var n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=fe.current)||void 0===r||r.abort(t),de(t,s))}}))},ve=function(e){Oe(e.type),"drop"===e.type&&(null===k||void 0===k||k(e))};r.useImperativeHandle(t,(function(){return{onBatchStart:pe,onSuccess:me,onProgress:ge,onError:Qe,fileList:ae,upload:fe.current}}));var $e=r.useContext(A.E_),Se=$e.getPrefixCls,we=$e.direction,Te=Se("upload",R),Pe=(0,i.Z)((0,i.Z)({onBatchStart:pe,onError:Qe,onProgress:ge,onSuccess:me},e),{data:U,multiple:J,action:B,accept:F,supportServerRender:K,prefixCls:Te,disabled:te,beforeUpload:function(t,n){return xe(void 0,void 0,void 0,(0,o.Z)().mark((function i(){var r,s,l,c;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=e.beforeUpload,s=e.transformFile,l=t,!r){i.next=13;break}return i.next=5,r(t,n);case 5:if(!1!==(c=i.sent)){i.next=8;break}return i.abrupt("return",!1);case 8:if(delete t[ke],c!==ke){i.next=12;break}return Object.defineProperty(t,ke,{value:!0,configurable:!0}),i.abrupt("return",!1);case 12:"object"===(0,a.Z)(c)&&c&&(l=c);case 13:if(!s){i.next=17;break}return i.next=16,s(l);case 16:l=i.sent;case 17:return i.abrupt("return",l);case 18:case"end":return i.stop()}}),i)})))},onChange:void 0});delete Pe.className,delete Pe.style,E&&!te||delete Pe.id;var Re=function(e,t){return p?r.createElement(_.Z,{componentName:"Upload",defaultLocale:z.Z.Upload},(function(n){var s="boolean"===typeof p?{}:p,o=s.showRemoveIcon,a=s.showPreviewIcon,l=s.showDownloadIcon,c=s.removeIcon,h=s.previewIcon,u=s.downloadIcon;return r.createElement(be,{prefixCls:Te,listType:g,items:ae,previewFile:y,onPreview:Q,onDownload:b,onRemove:ye,showRemoveIcon:!te&&o,showPreviewIcon:a,showDownloadIcon:l,removeIcon:c,previewIcon:h,downloadIcon:u,iconRender:w,locale:(0,i.Z)((0,i.Z)({},n),S),isImageUrl:T,progress:P,appendAction:e,appendActionVisible:t,itemRender:L})})):e};if("drag"===I){var Ce,Ze=u()(Te,(Ce={},(0,s.Z)(Ce,"".concat(Te,"-drag"),!0),(0,s.Z)(Ce,"".concat(Te,"-drag-uploading"),ae.some((function(e){return"uploading"===e.status}))),(0,s.Z)(Ce,"".concat(Te,"-drag-hover"),"dragover"===ue),(0,s.Z)(Ce,"".concat(Te,"-disabled"),te),(0,s.Z)(Ce,"".concat(Te,"-rtl"),"rtl"===we),Ce),C);return r.createElement("span",null,r.createElement("div",{className:Ze,onDrop:ve,onDragOver:ve,onDragLeave:ve,style:G},r.createElement(X,(0,i.Z)({},Pe,{ref:fe,className:"".concat(Te,"-btn")}),r.createElement("div",{className:"".concat(Te,"-drag-container")},E))),Re())}var Xe,je=u()(Te,(n={},(0,s.Z)(n,"".concat(Te,"-select"),!0),(0,s.Z)(n,"".concat(Te,"-select-").concat(g),!0),(0,s.Z)(n,"".concat(Te,"-disabled"),te),(0,s.Z)(n,"".concat(Te,"-rtl"),"rtl"===we),n)),We=(Xe=E?void 0:{display:"none"},r.createElement("div",{className:je,style:Xe},r.createElement(X,(0,i.Z)({},Pe,{ref:fe}))));return"picture-card"===g?r.createElement("span",{className:u()("".concat(Te,"-picture-card-wrapper"),C)},Re(We,!!E)):r.createElement("span",{className:C},We,Re())};var ve=r.forwardRef(ye),$e=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r=t||n<0||m&&e-d>=h}function k(){var e=r();if(x(e))return y(e);O=setTimeout(k,function(e){var n=t-(e-f);return m?a(n,h-(e-d)):n}(e))}function y(e){return O=void 0,g&&l?Q(e):(l=c=void 0,u)}function v(){var e=r(),n=x(e);if(l=arguments,c=this,f=e,n){if(void 0===O)return b(f);if(m)return clearTimeout(O),O=setTimeout(k,t),Q(f)}return void 0===O&&(O=setTimeout(k,t)),u}return t=s(t)||0,i(n)&&(p=!!n.leading,h=(m="maxWait"in n)?o(s(n.maxWait)||0,t):h,g="trailing"in n?!!n.trailing:g),v.cancel=function(){void 0!==O&&clearTimeout(O),d=0,l=f=c=O=void 0},v.flush=function(){return void 0===O?u:y(r())},v}},33448:function(e,t,n){var i=n(44239),r=n(37005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},7771:function(e,t,n){var i=n(55639);e.exports=function(){return i.Date.now()}},14841:function(e,t,n){var i=n(27561),r=n(13218),s=n(33448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},34790:function(e,t,n){"use strict";n.d(t,{B1:function(){return ke},GA:function(){return Oe},Gn:function(){return K},Mb:function(){return l},eC:function(){return c},vQ:function(){return oe},ys:function(){return xe}});var i=n(78120),r=n(47421),s=n(59119);class o{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,s.qz)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),r=i.search(O(e,!1));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function a(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,i]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let r=e.matchBefore(i);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}function c(e,t){return n=>{for(let t=(0,s.qz)(n.state).resolveInner(n.pos,-1);t;t=t.parent)if(e.indexOf(t.name)>-1)return null;return t(n)}}class h{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function u(e){return e.selection.main.head}function O(e,t){var n;let{source:i}=e,r=t&&"^"!=i[0],s="$"!=i[i.length-1];return r||s?new RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}function f(e,t){const n=t.completion.apply||t.completion.label;let r=t.source;var s,o,a,l;"string"==typeof n?e.dispatch((s=e.state,o=n,a=r.from,l=r.to,Object.assign(Object.assign({},s.changeByRange((e=>{if(e==s.selection.main)return{changes:{from:a,to:l,insert:o},range:i.jT.cursor(a+o.length)};let t=l-a;return!e.empty||t&&s.sliceDoc(e.from-t,e.from)!=s.sliceDoc(a,l)?{range:e}:{changes:{from:e.from-t,to:e.from,insert:o},range:i.jT.cursor(e.from-t+o.length)}}))),{userEvent:"input.complete"}))):n(e,t.completion,r.from,r.to)}const d=new WeakMap;function p(e){if(!Array.isArray(e))return e;let t=d.get(e);return t||d.set(e,t=l(e)),t}class m{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t=48&&r<=57||r>=97&&r<=122?2:r>=65&&r<=90?1:0:(c=(0,i.bg)(r))!=c.toLowerCase()?1:c!=c.toUpperCase()?2:0;(!Q||1==b&&m||0==x&&0!=b)&&(t[u]==r||n[u]==r&&(O=!0)?o[u++]=Q:o.length&&(g=!1)),x=b,Q+=(0,i.nZ)(r)}return u==l&&0==o[0]&&g?this.result((O?-200:0)-100,o,e):f==l&&0==d?[-200-e.length,0,p]:a>-1?[-700-e.length,a,a+this.pattern.length]:f==l?[-900-e.length,d,p]:u==l?this.result((O?-200:0)-100-700+(g?0:-1100),o,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[e-n.length],s=1;for(let o of t){let e=o+(this.astral?(0,i.nZ)((0,i.gm)(n,o)):1);s>1&&r[s-1]==o?r[s-1]=e:(r[s++]=o,r[s++]=e)}return r}}const g=i.r$.define({combine:e=>(0,i.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,optionClass:(e,t)=>n=>function(e,t){return e?t?e+" "+t:e:t}(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function Q(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}class b{constructor(e,t){this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this};let n=e.state.field(t),{options:i,selected:r}=n.open,s=e.state.facet(g);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let i=document.createElement("span");i.className="cm-completionLabel";let{label:r}=e,s=0;for(let o=1;os&&i.appendChild(document.createTextNode(r.slice(s,e)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(r.slice(e,t))),a.className="cm-completionMatchedText",s=t}return se.position-t.position)).map((e=>e.render))}(s),this.optionClass=s.optionClass,this.range=Q(i.length,r,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.dom.addEventListener("mousedown",(t=>{for(let n,r=t.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(n=/-(\d+)$/.exec(r.id))&&+n[1]{this.info&&this.view.requestMeasure(this.placeInfo)}))}mount(){this.updateSel()}update(e){e.state.field(this.stateField)!=e.startState.field(this.stateField)&&this.updateSel()}positioned(){this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=Q(t.options.length,t.selected,this.view.state.facet(g).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let s="string"===typeof i?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)})).catch((e=>(0,r.OO)(this.view.state,e,"completion info"))):this.addInfoPane(s)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&function(e,t){let n=e.getBoundingClientRect(),i=t.getBoundingClientRect();i.topn.bottom&&(e.scrollTop+=i.bottom-n.bottom)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.ownerDocument.defaultView||window,n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect();if(s.top>Math.min(t.innerHeight,n.bottom)-10||s.bottom=i.height||e>n.top?h=s.bottom-n.top+"px":u=n.bottom-s.top+"px"}return{top:h,bottom:u,maxWidth:o,class:c?a?"left-narrow":"right-narrow":l?"left":"right"}}positionInfo(e){this.info&&(e?(this.info.style.top=e.top,this.info.style.bottom=e.bottom,this.info.style.maxWidth=e.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+e.class):this.info.style.top="-1e6px")}createListBox(e,t,n){const i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=n.from;r=this.options.length?this:new k(this.options,$(t,e),this.tooltip,this.timestamp,e)}static build(e,t,n,i,r){let s=function(e,t){let n=[],i=0;for(let a of e)if(a.hasResult())if(!1===a.result.filter){let e=a.result.getMatch;for(let t of a.result.options){let r=[1e9-i++];if(e)for(let n of e(t))r.push(n);n.push(new h(t,a,r))}}else{let e,i=new m(t.sliceDoc(a.from,a.to));for(let t of a.result.options)(e=i.match(t.label))&&(null!=t.boost&&(e[0]+=t.boost),n.push(new h(t,a,e)))}let r=[],s=null,o=t.facet(g).compareCompletions;for(let a of n.sort(((e,t)=>t.match[0]-e.match[0]||o(e.completion,t.completion))))!s||s.label!=a.completion.label||s.detail!=a.completion.detail||null!=s.type&&null!=a.completion.type&&s.type!=a.completion.type||s.apply!=a.completion.apply?r.push(a):x(a.completion)>x(s)&&(r[r.length-1]=a),s=a.completion;return r}(e,t);if(!s.length)return null;let o=t.facet(g).selectOnOpen?0:-1;if(i&&i.selected!=o&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:(a=j,e=>new b(e,a)),above:r.aboveCursor},i?i.timestamp:Date.now(),o);var a}map(e){return new k(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}class y{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new y(S,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(g),i=(n.override||t.languageDataAt("autocomplete",u(t)).map(p)).map((t=>(this.active.find((e=>e.source==t))||new T(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));i.length==this.active.length&&i.every(((e,t)=>e==this.active[t]))&&(i=this.active);let r=e.selection||i.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n1!=e.state))&&i.some((e=>e.hasResult()))&&(i=i.map((e=>e.hasResult()?new T(e.source,0):e)));for(let s of e.effects)s.is(X)&&(r=r&&r.setSelected(s.value,this.id));return i==this.active&&r==this.open?this:new y(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:v}}const v={"aria-autocomplete":"list"};function $(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const S=[];function w(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class T{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=w(e),i=this;n?i=i.handleUserEvent(e,n,t):e.docChanged?i=i.handleChange(e):e.selection&&0!=i.state&&(i=new T(i.source,0));for(let r of e.effects)if(r.is(R))i=new T(i.source,1,r.value?u(e.state):-1);else if(r.is(C))i=new T(i.source,0);else if(r.is(Z))for(let e of r.value)e.source==i.source&&(i=e);return i}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new T(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(u(e.startState))?new T(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new T(this.source,this.state,e.mapPos(this.explicitPos))}}class P extends T{constructor(e,t,n,i,r){super(e,2,t),this.result=n,this.from=i,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var i;let r=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),a=u(e.state);if((this.explicitPos<0?a<=r:as||"delete"==t&&u(e.startState)==this.from)return new T(this.source,"input"==t&&n.activateOnTyping?1:0);let l,c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,i){if(!e)return!1;let r=t.sliceDoc(n,i);return"function"==typeof e?e(r,n,i,t):O(e,!0).test(r)}(this.result.validFor,e.state,r,s)?new P(this.source,c,this.result,r,s):this.result.update&&(l=this.result.update(this.result,r,s,new o(e.state,a,c>=0)))?new P(this.source,c,l,l.from,null!==(i=l.to)&&void 0!==i?i:u(e.state)):new T(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new T(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new P(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const R=i.Py.define(),C=i.Py.define(),Z=i.Py.define({map:(e,t)=>e.map((e=>e.map(t)))}),X=i.Py.define(),j=i.QQ.define({create:()=>y.start(),update:(e,t)=>e.update(t),provide:e=>[r.hJ.from(e,(e=>e.tooltip)),r.tk.contentAttributes.from(e,(e=>e.attrs))]});function W(e,t="option"){return n=>{let i=n.state.field(j,!1);if(!i||!i.open||Date.now()-i.open.timestamp-1?i.open.selected+o*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),n.dispatch({effects:X.of(l)}),!0}}class A{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const q=r.lg.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(j).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(j);if(!e.selectionSet&&!e.docChanged&&e.startState.field(j)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!w(e)));for(let s=0;s50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(i){(0,r.OO)(this.view.state,i)}t.context.abortListeners=null,this.running.splice(s--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let r of e.transactions)"input"==w(r)?this.composing=2:2==this.composing&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(j);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=u(t),i=new o(t,n,e.explicitPos==n),s=new A(e,i);this.running.push(s),Promise.resolve(e.source(i)).then((e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:C.of(null)}),(0,r.OO)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(g);for(let i=0;ie.source==r.active.source));if(s&&1==s.state)if(null==r.done){let e=new T(r.active.source,0);for(let t of r.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(s)}t.length&&this.view.dispatch({effects:Z.of(t)})}},{eventHandlers:{blur(){let e=this.view.state.field(j,!1);e&&e.tooltip&&this.view.state.facet(g).closeOnBlur&&this.view.dispatch({effects:C.of(null)})},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:R.of(!1)})),20),this.composing=0}}}),_=r.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class z{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class I{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,i.gc.TrackDel),n=e.mapPos(this.to,1,i.gc.TrackDel);return null==t||null==n?null:new I(this.field,t,n)}}class E{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let n=o,r=/^\t*/.exec(l)[0].length;for(let t=0;tnew I(e.field,i[e.line]+e.from,i[e.line]+e.to)));return{text:n,ranges:a}}static parse(e){let t,n=[],i=[],r=[];for(let s of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let e=t[1]?+t[1]:null,o=t[2]||t[3]||"",a=-1;for(let t=0;t=a&&e.field++}r.push(new z(a,i.length,t.index,t.index+o.length)),s=s.slice(0,t.index)+o+s.slice(t.index+t[0].length)}for(let e;e=/([$#])\\{/.exec(s);){s=s.slice(0,e.index)+e[1]+"{"+s.slice(e.index+e[0].length);for(let t of r)t.line==i.length&&t.from>e.index&&(t.from--,t.to--)}i.push(s)}return new E(i,r)}}let G=r.p.widget({widget:new class extends r.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),L=r.p.mark({class:"cm-snippetField"});class D{constructor(e,t){this.ranges=e,this.active=t,this.deco=r.p.set(e.map((e=>(e.from==e.to?G:L).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new D(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const N=i.Py.define({map:(e,t)=>e&&e.map(t)}),U=i.Py.define(),M=i.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(N))return n.value;if(n.is(U)&&e)return new D(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>r.tk.decorations.from(e,(e=>e?e.deco:r.p.none))});function J(e,t){return i.jT.create(e.filter((e=>e.field==t)).map((e=>i.jT.range(e.from,e.to))))}function V(e){let t=E.parse(e);return(e,n,r,s)=>{let{text:o,ranges:a}=t.instantiate(e.state,r),l={changes:{from:r,to:s,insert:i.xv.of(o)},scrollIntoView:!0};if(a.length&&(l.selection=J(a,0)),a.length>1){let t=new D(a,0),n=l.effects=[N.of(t)];void 0===e.state.field(M,!1)&&n.push(i.Py.appendConfig.of([M,H,ee,_]))}e.dispatch(e.state.update(l))}}function B(e){return({state:t,dispatch:n})=>{let i=t.field(M,!1);if(!i||e<0&&0==i.active)return!1;let r=i.active+e,s=e>0&&!i.ranges.some((t=>t.field==r+e));return n(t.update({selection:J(i.ranges,r),effects:N.of(s?null:new D(i.ranges,r))})),!0}}const Y=[{key:"Tab",run:B(1),shift:B(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(M,!1)&&(t(e.update({effects:N.of(null)})),!0)}],F=i.r$.define({combine:e=>e.length?e[0]:Y}),H=i.Wl.highest(r.$f.compute([F],(e=>e.facet(F))));function K(e,t){return Object.assign(Object.assign({},t),{apply:V(e)})}const ee=r.tk.domEventHandlers({mousedown(e,t){let n,i=t.state.field(M,!1);if(!i||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=i.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==i.active)&&(t.dispatch({selection:J(i.ranges,r.field),effects:N.of(i.ranges.some((e=>e.field>r.field))?new D(i.ranges,r.field):null)}),!0)}});const te={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ne=i.Py.define({map(e,t){let n=t.mapPos(e,-1,i.gc.TrackAfter);return null==n?void 0:n}}),ie=i.Py.define({map:(e,t)=>t.mapPos(e)}),re=new class extends i.uU{};re.startSide=1,re.endSide=-1;const se=i.QQ.define({create:()=>i.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=i.Xs.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(ne)?e=e.update({add:[re.range(n.value,n.value+1)]}):n.is(ie)&&(e=e.update({filter:e=>e!=n.value}));return e}});function oe(){return[ue,se]}const ae="()[]{}<>";function le(e){for(let t=0;t{if((he?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let s=e.state.selection.main;if(r.length>2||2==r.length&&1==(0,i.nZ)((0,i.gm)(r,0))||t!=s.from||n!=s.to)return!1;let o=function(e,t){let n=ce(e,e.selection.main.head),r=n.brackets||te.brackets;for(let s of r){let o=le((0,i.gm)(s,0));if(t==s)return o==s?ge(e,s,r.indexOf(s+s+s)>-1,n):pe(e,s,o,n.before||te.before);if(t==o&&fe(e,e.selection.main.from))return me(e,s,o)}return null}(e.state,r);return!!o&&(e.dispatch(o),!0)})),Oe=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=ce(e,e.selection.main.head).brackets||te.brackets,r=null,s=e.changeByRange((t=>{if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t);return(0,i.nZ)((0,i.gm)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let s of n)if(s==r&&de(e.doc,t.head)==le((0,i.gm)(s,0)))return{changes:{from:t.head-s.length,to:t.head+s.length},range:i.jT.cursor(t.head-s.length)}}return{range:r=t}}));return r||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function fe(e,t){let n=!1;return e.field(se).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function de(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,i.nZ)((0,i.gm)(n,0)))}function pe(e,t,n,r){let s=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:ne.of(o.to+t.length),range:i.jT.range(o.anchor+t.length,o.head+t.length)};let a=de(e.doc,o.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:o.head},effects:ne.of(o.head+t.length),range:i.jT.cursor(o.head+t.length)}:{range:s=o}}));return s?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function me(e,t,n){let r=null,s=e.selection.ranges.map((t=>t.empty&&de(e.doc,t.head)==n?i.jT.cursor(t.head+n.length):r=t));return r?null:e.update({selection:i.jT.create(s,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map((({from:e})=>ie.of(e)))})}function ge(e,t,n,r){let o=r.stringPrefixes||te.stringPrefixes,a=null,l=e.changeByRange((r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:ne.of(r.to+t.length),range:i.jT.range(r.anchor+t.length,r.head+t.length)};let l,c=r.head,h=de(e.doc,c);if(h==t){if(Qe(e,c))return{changes:{insert:t+t,from:c},effects:ne.of(c+t.length),range:i.jT.cursor(c+t.length)};if(fe(e,c)){let r=n&&e.sliceDoc(c,c+3*t.length)==t+t+t;return{range:i.jT.cursor(c+t.length*(r?3:1)),effects:ie.of(c)}}}else{if(n&&e.sliceDoc(c-2*t.length,c)==t+t&&(l=be(e,c-2*t.length,o))>-1&&Qe(e,l))return{changes:{insert:t+t+t+t,from:c},effects:ne.of(c+t.length),range:i.jT.cursor(c+t.length)};if(e.charCategorizer(c)(h)!=i.D0.Word&&be(e,c,o)>-1&&!function(e,t,n,i){let r=(0,s.qz)(e).resolveInner(t,-1),o=i.reduce(((e,t)=>Math.max(e,t.length)),0);for(let s=0;s<5;s++){let s=e.sliceDoc(r.from,Math.min(r.to,r.from+n.length+o)),a=s.indexOf(n);if(!a||a>-1&&i.indexOf(s.slice(0,a))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=r.to==t&&r.parent;if(!l)break;r=l}return!1}(e,c,t,o))return{changes:{insert:t+t,from:c},effects:ne.of(c+t.length),range:i.jT.cursor(c+t.length)}}return{range:a=r}}));return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Qe(e,t){let n=(0,s.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function be(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=i.D0.Word)return t;for(let s of n){let n=t-s.length;if(e.sliceDoc(n,t)==s&&r(e.sliceDoc(n-1,n))!=i.D0.Word)return n}return-1}function xe(e={}){return[j,g.of(e),q,ye,_]}const ke=[{key:"Ctrl-Space",run:e=>!!e.state.field(j,!1)&&(e.dispatch({effects:R.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(j,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:C.of(null)}),!0)}},{key:"ArrowDown",run:W(!0)},{key:"ArrowUp",run:W(!1)},{key:"PageDown",run:W(!0,"page")},{key:"PageUp",run:W(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(j,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestampe.facet(g).defaultKeymap?[ke]:[])))},61426:function(e,t,n){"use strict";n.r(t),n.d(t,{css:function(){return $},cssCompletionSource:function(){return y},cssLanguage:function(){return v}});var i=n(53105),r=n(35524);const s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function o(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const a=new i.Jq(((e,t)=>{for(let i=!1,r=0,s=0;;s++){let{next:a}=e;if(!(o(a)||45==a||95==a||i&&(n=a,n>=48&&n<=57))){i&&e.acceptToken(40==a?94:2==r&&t.canShift(2)?2:95);break}!i&&(45!=a||s>0)&&(i=!0),r===s&&45==a&&r++,e.advance()}var n})),l=new i.Jq((e=>{if(s.includes(e.peek(-1))){let{next:t}=e;(o(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(93)}})),c=new i.Jq((e=>{if(!s.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),o(t)){do{e.advance()}while(o(e.next));e.acceptToken(1)}}})),h=(0,r.Gv)({"AtKeyword import charset namespace keyframes media supports":r.pJ.definitionKeyword,"from to selector":r.pJ.keyword,NamespaceName:r.pJ.namespace,KeyframeName:r.pJ.labelName,TagName:r.pJ.tagName,ClassName:r.pJ.className,PseudoClassName:r.pJ.constant(r.pJ.className),IdName:r.pJ.labelName,"FeatureName PropertyName":r.pJ.propertyName,AttributeName:r.pJ.attributeName,NumberLiteral:r.pJ.number,KeywordQuery:r.pJ.keyword,UnaryQueryOp:r.pJ.operatorKeyword,"CallTag ValueName":r.pJ.atom,VariableName:r.pJ.variableName,Callee:r.pJ.operatorKeyword,Unit:r.pJ.unit,"UniversalSelector NestingSelector":r.pJ.definitionOperator,MatchOp:r.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":r.pJ.logicOperator,BinOp:r.pJ.arithmeticOperator,Important:r.pJ.modifier,Comment:r.pJ.blockComment,ParenthesizedContent:r.pJ.special(r.pJ.name),ColorLiteral:r.pJ.color,StringLiteral:r.pJ.string,":":r.pJ.punctuation,"PseudoOp #":r.pJ.derefOperator,"; ,":r.pJ.separator,"( )":r.pJ.paren,"[ ]":r.pJ.squareBracket,"{ }":r.pJ.brace}),u={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},O={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},f={__proto__:null,not:128,only:128,from:158,to:160},d=i.WQ.deserialize({version:14,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO#UQ[O'#ChO#aQ[O'#DPO#fQ[O'#DTOOQP'#Ec'#EcO#kQdO'#DeO$VQ[O'#DrO#kQdO'#DtO$hQ[O'#DvO$sQ[O'#DyO$xQ[O'#EPO%WQ[O'#EROOQS'#Eb'#EbOOQS'#ES'#ESQYQ[OOOOQP'#Cg'#CgOOQP,59Q,59QO!ZQ[O,59QO%_Q[O'#EVO%yQWO,58{O&RQ[O,59SO#aQ[O,59kO#fQ[O,59oO%_Q[O,59sO%_Q[O,59uO%_Q[O,59vO'bQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO'iQWO,59SO'nQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO'sQ`O,59oOOQS'#Cp'#CpO#kQdO'#CqO'{QvO'#CsO)VQtO,5:POOQO'#Cx'#CxO'nQWO'#CwO)kQWO'#CyOOQS'#Ef'#EfOOQO'#Dh'#DhO)pQ[O'#DoO*OQWO'#EiO$xQ[O'#DmO*^QWO'#DpOOQO'#Ej'#EjO%|QWO,5:^O*cQpO,5:`OOQS'#Dx'#DxO*kQWO,5:bO*pQ[O,5:bOOQO'#D{'#D{O*xQWO,5:eO*}QWO,5:kO+VQWO,5:mOOQS-E8Q-E8QOOQP1G.l1G.lO+yQXO,5:qOOQO-E8T-E8TOOQS1G.g1G.gOOQP1G.n1G.nO'iQWO1G.nO'nQWO1G.nOOQP1G/V1G/VO,WQ`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!`PoWOy%Qz~%QX@tSOy%Qz#f%Q#f#g@d#g~%QXAVQ!RPOy%Qz~%Q_AbQ!QVOy%Qz~%QZAmS!PPOy%Qz!_%Q!_!`2e!`~%Q",tokenizers:[l,c,a,0,1,2,3],topRules:{StyleSheet:[0,4]},specialized:[{term:94,get:e=>u[e]||-1},{term:56,get:e=>O[e]||-1},{term:95,get:e=>f[e]||-1}],tokenPrec:1078});var p=n(59119);let m=null;function g(){if(!m&&"object"==typeof document&&document.body){let e=[];for(let t in document.body.style)/[A-Z]|^-|^(item|length)$/.test(t)||e.push(t);m=e.sort().map((e=>({type:"property",label:e})))}return m||[]}const Q=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map((e=>({type:"class",label:e}))),b=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),x=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),k=/^[\w-]*/,y=e=>{let{state:t,pos:n}=e,i=(0,p.qz)(t).resolveInner(n,-1);if("PropertyName"==i.name)return{from:i.from,options:g(),validFor:k};if("ValueName"==i.name)return{from:i.from,options:b,validFor:k};if("PseudoClassName"==i.name)return{from:i.from,options:Q,validFor:k};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:g(),validFor:k};return{from:i.from,options:x,validFor:k}}if(!e.explicit)return null;let r=i.resolve(n),s=r.childBefore(n);return s&&":"==s.name&&"PseudoClassSelector"==r.name?{from:n,options:Q,validFor:k}:s&&":"==s.name&&"Declaration"==r.name||"ArgList"==r.name?{from:n,options:b,validFor:k}:"Block"==r.name?{from:n,options:g(),validFor:k}:null},v=p.qp.define({parser:d.configure({props:[p.uj.add({Declaration:(0,p.tC)()}),p.x0.add({Block:p.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function $(){return new p.ri(v,v.data.of({autocomplete:y}))}},13804:function(e,t,n){"use strict";n.r(t),n.d(t,{autoCloseTags:function(){return ne},html:function(){return te},htmlCompletionSource:function(){return H},htmlCompletionSourceWith:function(){return K},htmlLanguage:function(){return ee}});var i=n(53105),r=n(35524),s=n(41113);const o={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},l={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function c(e){return 9==e||10==e||13==e||32==e}let h=null,u=null,O=0;function f(e,t){let n=e.pos+t;if(O==n&&u==e)return h;let i=e.peek(t);for(;c(i);)i=e.peek(++t);let r="";for(;45==(s=i)||46==s||58==s||s>=65&&s<=90||95==s||s>=97&&s<=122||s>=161;)r+=String.fromCharCode(i),i=e.peek(++t);var s;return u=e,O=n,h=r?r.toLowerCase():i==d||i==p?void 0:null}const d=63,p=33;function m(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;ng.indexOf(t)>-1?new m(f(i,1)||"",e):e,reduce:(e,t)=>18==t&&e?e.parent:e,reuse(e,t,n,i){let r=t.type.id;return 4==r||35==r?new m(f(i,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),b=new i.Jq(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(56));e.advance();let n=47==e.next;n&&e.advance();let i=f(e,0);if(void 0===i)return;if(!i)return e.acceptToken(n?12:4);let r=t.context?t.context.name:null;if(n){if(i==r)return e.acceptToken(9);if(r&&a[r])return e.acceptToken(56,-2);if(t.dialectEnabled(0))return e.acceptToken(10);for(let e=t.context;e;e=e.parent)if(e.name==i)return;e.acceptToken(11)}else{if("script"==i)return e.acceptToken(5);if("style"==i)return e.acceptToken(6);if("textarea"==i)return e.acceptToken(7);if(o.hasOwnProperty(i))return e.acceptToken(8);r&&l[r]&&l[r][i]?e.acceptToken(56,-1):e.acceptToken(4)}}),{contextual:!0}),x=new i.Jq((e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(57);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>3&&e.acceptToken(57,-2);break}t=0}e.advance()}}));function k(e,t,n){let r=2+e.length;return new i.Jq((i=>{for(let s=0,o=0,a=0;;a++){if(i.next<0){a&&i.acceptToken(t);break}if(0==s&&60==i.next||1==s&&47==i.next||s>=2&&so?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}if((10==i.next||13==i.next)&&a){i.acceptToken(t,1);break}s=o=0}else o++;i.advance()}}))}const y=k("script",53,1),v=k("style",54,2),$=k("textarea",55,3),S=(0,r.Gv)({"Text RawText":r.pJ.content,"StartTag StartCloseTag SelfCloserEndTag EndTag SelfCloseEndTag":r.pJ.angleBracket,TagName:r.pJ.tagName,"MismatchedCloseTag/TagName":[r.pJ.tagName,r.pJ.invalid],AttributeName:r.pJ.attributeName,"AttributeValue UnquotedAttributeValue":r.pJ.attributeValue,Is:r.pJ.definitionOperator,"EntityReference CharacterReference":r.pJ.character,Comment:r.pJ.blockComment,ProcessingInst:r.pJ.processingInstruction,DoctypeDecl:r.pJ.documentMeta}),w=i.WQ.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO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nP!YnP~O!XlORqP!YqP~OSSOTPOUQOVROWTOXqOY]OZ[O[^O^^O_^O`^Oa^Ow^O!cZO~O!YrO~P#dO!ZsO!duO~OdvO~OdwO~OfyOj|O~OfyOj!OO~OfyOj!QO~OfyOj!SO~OfyOj!UO~O!VfOPkX!YkX~OP!WO!Y!XO~O!WiOQnX!YnX~OQ!ZO!Y!XO~O!XlORqX!YqX~OR!]O!Y!XO~O!Y!XO~P#dOd!_O~O!ZsO!d!aO~Oj!bO~Oj!cO~Og!dOfeXjeX~OfyOj!fO~OfyOj!gO~OfyOj!hO~OfyOj!iO~OfyOj!jO~Od!kO~Od!lO~Od!mO~Oj!nO~Oi!qO!_!oO!a!pO~Oj!rO~Oj!sO~Oj!tO~O_!uO`!uOa!uO!_!wO!`!uO~O_!xO`!xOa!xO!a!wO!b!xO~O_!uO`!uOa!uO!_!{O!`!uO~O_!xO`!xOa!xO!a!{O!b!xO~O`_a!cwz!c~",goto:"%o!_PPPPPPPPPPPPPPPPPP!`!fP!lPP!xPP!{#O#R#X#[#_#e#h#k#q#w!`P!`!`P#}$T$k$q$w$}%T%Z%aPPPPPPPP%gX^OX`pXUOX`pezabcde{}!P!R!TR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!TeZ!e{}!P!R!TQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26a0 StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:Q,nodeProps:[["closedBy",-11,1,2,3,4,5,6,7,8,9,10,11,"EndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],propSources:[S],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_!Q![$k![!]8u!]!^$k!^!_>b!_!`!!p!`!a8T!a!c$k!c!}8u!}#R$k#R#S8u#S#T$k#T#o8u#o$f$k$f$g&R$g%W$k%W%o8u%o%p$k%p&a8u&a&b$k&b1p8u1p4U$k4U4d8u4d4e$k4e$IS8u$IS$I`$k$I`$Ib8u$Ib$Kh$k$Kh%#t8u%#t&/x$k&/x&Et8u&Et&FV$k&FV;'S8u;'S;:jiW!``!bpOq(kqr?Rrs'gsv(kwx(]x!a(k!a!bKj!b~(k!R?YZ!``!bpOr(krs'gsv(kwx(]x}(k}!O?{!O!f(k!f!gAR!g#W(k#W#XGz#X~(k!R@SV!``!bpOr(krs'gsv(kwx(]x}(k}!O@i!O~(k!R@rT!``!bp!cPOr(krs'gsv(kwx(]x~(k!RAYV!``!bpOr(krs'gsv(kwx(]x!q(k!q!rAo!r~(k!RAvV!``!bpOr(krs'gsv(kwx(]x!e(k!e!fB]!f~(k!RBdV!``!bpOr(krs'gsv(kwx(]x!v(k!v!wBy!w~(k!RCQV!``!bpOr(krs'gsv(kwx(]x!{(k!{!|Cg!|~(k!RCnV!``!bpOr(krs'gsv(kwx(]x!r(k!r!sDT!s~(k!RD[V!``!bpOr(krs'gsv(kwx(]x!g(k!g!hDq!h~(k!RDxW!``!bpOrDqrsEbsvDqvwEvwxFfx!`Dq!`!aGb!a~DqqEgT!bpOvEbvxEvx!`Eb!`!aFX!a~EbPEyRO!`Ev!`!aFS!a~EvPFXOzPqF`Q!bpzPOv'gx~'gaFkV!``OrFfrsEvsvFfvwEvw!`Ff!`!aGQ!a~FfaGXR!``zPOr(]sv(]w~(]!RGkT!``!bpzPOr(krs'gsv(kwx(]x~(k!RHRV!``!bpOr(krs'gsv(kwx(]x#c(k#c#dHh#d~(k!RHoV!``!bpOr(krs'gsv(kwx(]x#V(k#V#WIU#W~(k!RI]V!``!bpOr(krs'gsv(kwx(]x#h(k#h#iIr#i~(k!RIyV!``!bpOr(krs'gsv(kwx(]x#m(k#m#nJ`#n~(k!RJgV!``!bpOr(krs'gsv(kwx(]x#d(k#d#eJ|#e~(k!RKTV!``!bpOr(krs'gsv(kwx(]x#X(k#X#YDq#Y~(k!RKqW!``!bpOrKjrsLZsvKjvwLowxNPx!aKj!a!b! g!b~KjqL`T!bpOvLZvxLox!aLZ!a!bM^!b~LZPLrRO!aLo!a!bL{!b~LoPMORO!`Lo!`!aMX!a~LoPM^OwPqMcT!bpOvLZvxLox!`LZ!`!aMr!a~LZqMyQ!bpwPOv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[y,v,$,b,x,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:476});function T(e,t){let n=Object.create(null);for(let i of e.firstChild.getChildren("Attribute")){let e=i.getChild("AttributeName"),r=i.getChild("AttributeValue")||i.getChild("UnquotedAttributeValue");e&&(n[t.read(e.from,e.to)]=r?"AttributeValue"==r.name?t.read(r.from+1,r.to-1):t.read(r.from,r.to):"")}return n}function P(e,t,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=T(e.node.parent,t))))return{parser:r.parser};return null}function R(e){let t=[],n=[],i=[];for(let r of e){let e="script"==r.tag?t:"style"==r.tag?n:"textarea"==r.tag?i:null;if(!e)throw new RangeError("Only script, style, and textarea tags can host nested parsers");e.push(r)}return(0,s.FE)(((e,r)=>{let s=e.type.id;return 27==s?P(e,r,t):30==s?P(e,r,n):33==s?P(e,r,i):null}))}var C=n(61426),Z=n(58037),X=n(47421),j=n(78120),W=n(59119);const A=["_blank","_self","_top","_parent"],q=["ascii","utf-8","utf-16","latin1","latin1"],_=["get","post","put","delete"],z=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],I=["true","false"],E={},G={a:{attrs:{href:null,ping:null,type:null,media:null,target:A,hreflang:null}},abbr:E,acronym:E,address:E,applet:E,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:E,aside:E,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:E,base:{attrs:{href:null,target:A}},basefont:E,bdi:E,bdo:E,big:E,blockquote:{attrs:{cite:null}},body:E,br:E,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:z,formmethod:_,formnovalidate:["novalidate"],formtarget:A,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:E,center:E,cite:E,code:E,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:E,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:E,dir:E,div:E,dl:E,dt:E,em:E,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:E,figure:E,font:E,footer:E,form:{attrs:{action:null,name:null,"accept-charset":q,autocomplete:["on","off"],enctype:z,method:_,novalidate:["novalidate"],target:A}},frame:E,frameset:E,h1:E,h2:E,h3:E,h4:E,h5:E,h6:E,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:E,hgroup:E,hr:E,html:{attrs:{manifest:null}},i:E,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:z,formmethod:_,formnovalidate:["novalidate"],formtarget:A,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:E,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:E,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:E,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:q,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:E,noframes:E,noscript:E,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:E,param:{attrs:{name:null,value:null}},pre:E,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:E,rt:E,ruby:E,s:E,samp:E,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:q}},section:E,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:E,source:{attrs:{src:null,type:null,media:null}},span:E,strike:E,strong:E,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:E,summary:E,sup:E,table:E,tbody:E,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:E,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:E,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:E,time:{attrs:{datetime:null}},title:E,tr:E,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},tt:E,u:E,ul:{children:["li","script","template","ul","ol"]},var:E,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:E},L={accesskey:null,class:null,contenteditable:I,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:I,autocorrect:I,autocapitalize:I,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":I,"aria-autocomplete":["inline","list","both","none"],"aria-busy":I,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":I,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":I,"aria-hidden":I,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":I,"aria-multiselectable":I,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":I,"aria-relevant":null,"aria-required":I,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};class D{constructor(e,t){this.tags=Object.assign(Object.assign({},G),e),this.globalAttrs=Object.assign(Object.assign({},L),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function N(e,t,n=e.length){if(!t)return"";let i=t.firstChild,r=i&&i.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,n)):""}function U(e,t=!1){for(let n=e.parent;n;n=n.parent)if("Element"==n.name){if(!t)return n;t=!1}return null}function M(e,t,n){let i=n.tags[N(e,U(t,!0))];return(null===i||void 0===i?void 0:i.children)||n.allTags}function J(e,t){let n=[];for(let i=t;i=U(i);){let r=N(e,i);if(r&&"CloseTag"==i.lastChild.name)break;r&&n.indexOf(r)<0&&("EndTag"==t.name||t.from>=i.firstChild.to)&&n.push(r)}return n}D.default=new D;const V=/^[:\-\.\w\u00b7-\uffff]*$/;function B(e,t,n,i,r){let s=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:i,to:r,options:M(e.doc,n,t).map((e=>({label:e,type:"type"}))).concat(J(e.doc,n).map(((e,t)=>({label:"/"+e,apply:"/"+e+s,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Y(e,t,n,i){let r=/\s*>/.test(e.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:J(e.doc,t).map(((e,t)=>({label:e,apply:e+r,type:"type",boost:99-t}))),validFor:V}}function F(e,t){let{state:n,pos:i}=t,r=(0,W.qz)(n).resolveInner(i),s=r.resolve(i,-1);for(let o,a=i;r==s&&(o=s.childBefore(a));){let e=o.lastChild;if(!e||!e.type.isError||e.from({label:e,type:"property"}))),validFor:V}}(n,e,s,"AttributeName"==s.name?s.from:i,i):"Is"==s.name||"AttributeValue"==s.name||"UnquotedAttributeValue"==s.name?function(e,t,n,i,r){var s;let o,a=null===(s=n.parent)||void 0===s?void 0:s.getChild("AttributeName"),l=[];if(a){let s=e.sliceDoc(a.from,a.to),c=t.globalAttrs[s];if(!c){let i=U(n),r=i?t.tags[N(e.doc,i)]:null;c=(null===r||void 0===r?void 0:r.attrs)&&r.attrs[s]}if(c){let t=e.sliceDoc(i,r).toLowerCase(),n='"',s='"';/^['"]/.test(t)?(o='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",s=e.sliceDoc(r,r+1)==t[0]?"":t[0],t=t.slice(1),i++):o=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:n+e+s,type:"constant"})}}return{from:i,to:r,options:l,validFor:o}}(n,e,s,"Is"==s.name?i:s.from,i):!t.explicit||"Element"!=r.name&&"Text"!=r.name&&"Document"!=r.name?null:function(e,t,n,i){let r=[],s=0;for(let o of M(e.doc,n,t))r.push({label:"<"+o,type:"type"});for(let o of J(e.doc,n))r.push({label:"",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,s,i)}function H(e){return F(D.default,e)}function K(e){let{extraTags:t,extraGlobalAttributes:n}=e,i=n||t?new D(t,n):D.default;return e=>F(i,e)}const ee=W.qp.define({parser:w.configure({props:[W.uj.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:Z.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:C.cssLanguage.parser}])}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});function te(e={}){let t=ee;return!1===e.matchClosingTags&&(t=t.configure({dialect:"noMatch"})),new W.ri(t,[ee.data.of({autocomplete:K(e)}),!1!==e.autoCloseTags?ne:[],(0,Z.javascript)().support,(0,C.css)().support])}const ne=X.tk.inputHandler.of(((e,t,n,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=i&&"/"!=i||!ee.isActiveAt(e.state,t,-1))return!1;let{state:r}=e,s=r.changeByRange((t=>{var n,s,o;let a,{head:l}=t,c=(0,W.qz)(r).resolveInner(l,-1);if("TagName"!=c.name&&"StartTag"!=c.name||(c=c.parent),">"==i&&"OpenTag"==c.name){if("CloseTag"!=(null===(s=null===(n=c.parent)||void 0===n?void 0:n.lastChild)||void 0===s?void 0:s.name)&&(a=N(r.doc,c.parent,l))){let t=">"===e.state.doc.sliceString(l,l+1),n=`${t?"":">"}`;return{range:j.jT.cursor(l+1),changes:{from:l+(t?1:0),insert:n}}}}else if("/"==i&&"OpenTag"==c.name){let t=c.parent,n=null===t||void 0===t?void 0:t.parent;if(t.from==l-1&&"CloseTag"!=(null===(o=n.lastChild)||void 0===o?void 0:o.name)&&(a=N(r.doc,n,l))){let t=">"===e.state.doc.sliceString(l,l+1),n=`/${a}${t?"":">"}`,i=l+n.length+(t?1:0);return{range:j.jT.cursor(i),changes:{from:l,insert:n}}}}return{range:t}}));return!s.changes.empty&&(e.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)}))},58037:function(e,t,n){"use strict";n.r(t),n.d(t,{autoCloseTags:function(){return N},completionPath:function(){return W},esLint:function(){return U},javascript:function(){return G},javascriptLanguage:function(){return q},jsxLanguage:function(){return z},localCompletionSource:function(){return X},scopeCompletionSource:function(){return A},snippets:function(){return v},tsxLanguage:function(){return I},typescriptLanguage:function(){return _}});var i=n(53105),r=n(35524);const s=282,o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],a=new i.IK({start:!1,shift:(e,t)=>5==t||6==t||286==t?e:287==t,strict:!1}),l=new i.Jq(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&t.canShift(284)&&e.acceptToken(284)}),{contextual:!0,fallback:!0}),c=new i.Jq(((e,t)=>{let n,{next:i}=e;o.indexOf(i)>-1||(47!=i||47!=(n=e.peek(1))&&42!=n)&&125!=i&&59!=i&&-1!=i&&!t.context&&t.canShift(281)&&e.acceptToken(281)}),{contextual:!0}),h=new i.Jq(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(2);e.acceptToken(n?2:3)}}),{contextual:!0}),u=new i.Jq((e=>{for(let t=!1,n=0;;n++){let{next:i}=e;if(i<0){n&&e.acceptToken(s);break}if(96==i){n?e.acceptToken(s):e.acceptToken(283,1);break}if(123==i&&t){1==n?e.acceptToken(4,1):e.acceptToken(s,-1);break}if(10==i&&n){e.advance(),e.acceptToken(s);break}92==i&&e.advance(),t=36==i,e.advance()}})),O=new i.Jq(((e,t)=>{if(101==e.next&&t.dialectEnabled(1)){e.advance();for(let t=0;t<6;t++){if(e.next!="xtends".charCodeAt(t))return;e.advance()}e.next>=57&&e.next<=65||e.next>=48&&e.next<=90||95==e.next||e.next>=97&&e.next<=122||e.next>160||e.acceptToken(1)}})),f=(0,r.Gv)({"get set async static":r.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":r.pJ.controlKeyword,"in of await yield void typeof delete instanceof":r.pJ.operatorKeyword,"let var const function class extends":r.pJ.definitionKeyword,"import export from":r.pJ.moduleKeyword,"with debugger as new":r.pJ.keyword,TemplateString:r.pJ.special(r.pJ.string),super:r.pJ.atom,BooleanLiteral:r.pJ.bool,this:r.pJ.self,null:r.pJ.null,Star:r.pJ.modifier,VariableName:r.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":r.pJ.function(r.pJ.variableName),VariableDefinition:r.pJ.definition(r.pJ.variableName),Label:r.pJ.labelName,PropertyName:r.pJ.propertyName,PrivatePropertyName:r.pJ.special(r.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":r.pJ.function(r.pJ.propertyName),"FunctionDeclaration/VariableDefinition":r.pJ.function(r.pJ.definition(r.pJ.variableName)),"ClassDeclaration/VariableDefinition":r.pJ.definition(r.pJ.className),PropertyDefinition:r.pJ.definition(r.pJ.propertyName),PrivatePropertyDefinition:r.pJ.definition(r.pJ.special(r.pJ.propertyName)),UpdateOp:r.pJ.updateOperator,LineComment:r.pJ.lineComment,BlockComment:r.pJ.blockComment,Number:r.pJ.number,String:r.pJ.string,ArithOp:r.pJ.arithmeticOperator,LogicOp:r.pJ.logicOperator,BitOp:r.pJ.bitwiseOperator,CompareOp:r.pJ.compareOperator,RegExp:r.pJ.regexp,Equals:r.pJ.definitionOperator,Arrow:r.pJ.function(r.pJ.punctuation),": Spread":r.pJ.punctuation,"( )":r.pJ.paren,"[ ]":r.pJ.squareBracket,"{ }":r.pJ.brace,"InterpolationStart InterpolationEnd":r.pJ.special(r.pJ.brace),".":r.pJ.derefOperator,", ;":r.pJ.separator,TypeName:r.pJ.typeName,TypeDefinition:r.pJ.definition(r.pJ.typeName),"type enum interface implements namespace module declare":r.pJ.definitionKeyword,"abstract global Privacy readonly override":r.pJ.modifier,"is keyof unique infer":r.pJ.operatorKeyword,JSXAttributeValue:r.pJ.attributeValue,JSXText:r.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":r.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":r.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":r.pJ.attributeName}),d={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},p={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},m={__proto__:null,"<":129},g=i.WQ.deserialize({version:14,states:"$8SO`QdOOO'QQ(C|O'#ChO'XOWO'#DVO)dQdO'#D]O)tQdO'#DhO){QdO'#DrO-xQdO'#DxOOQO'#E]'#E]O.]Q`O'#E[O.bQ`O'#E[OOQ(C['#Ef'#EfO0aQ(C|O'#ItO2wQ(C|O'#IuO3eQ`O'#EzO3jQ!bO'#FaOOQ(C['#FS'#FSO3rO#tO'#FSO4QQ&jO'#FhO5bQ`O'#FgOOQ(C['#Iu'#IuOOQ(CW'#It'#ItOOQS'#J^'#J^O5gQ`O'#HpO5lQ(ChO'#HqOOQS'#Ih'#IhOOQS'#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f:gQ6g:hQ7g6WQ7z6{Q8Z7jQ8m8]Q8y8oQ9_!WR:|;aR!aRR&Y!bS&U!b+`S+]&V&^R0Q+fR'P!yR'S!zT!tU$ZS!sU$ZU$xrs*mS&s!r!uQ,T&tQ,W&wQ.l)zS0k,S,UR4X0l`!dR!]!`$u%x&`)x+hh!qUrs!r!u$Z&t&w)z,S,U0lQ/d*mQ/w+YQ3p/oT:s&W)yT!gR$uS!fR$uS%y!]&`S&O!`)xS+S%x+hT+_&W)yT&]!b$vQ#i^R'{#nT'q#i'rR1Z,lT(a#v(cR(i#yQ-})]Q2U.RQ2|.{Q4{2TQ5l3QQ6t4}Q7U5kQ7y6zQ8S7WR8i8TlhOSj}!n$]%c%f%g%i*o*t/g/jQ%]yR*d%YV$yrs*mR.u*TR*c%WQ$qpR)u$rR)k$lT%az%dT%bz%dT/i*t/j",nodeNames:"\u26a0 extends ArithOp ArithOp InterpolationStart LineComment BlockComment Script ExportDeclaration export Star as VariableName String from ; default FunctionDeclaration async function VariableDefinition TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation null super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression PrivatePropertyName BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement",maxTerm:332,context:a,nodeProps:[["closedBy",4,"InterpolationEnd",40,"]",51,"}",66,")",132,"JSXSelfCloseEndTag JSXEndTag",146,"JSXEndTag"],["group",-26,8,15,17,58,184,188,191,192,194,197,200,211,213,219,221,223,225,228,234,240,242,244,246,248,250,251,"Statement",-30,12,13,24,27,28,41,43,44,45,47,52,60,68,74,75,91,92,101,103,119,122,124,125,126,127,129,130,148,149,151,"Expression",-22,23,25,29,32,34,152,154,156,157,159,160,161,163,164,165,167,168,169,178,180,182,183,"Type",-3,79,85,90,"ClassItem"],["openedBy",30,"InterpolationStart",46,"[",50,"{",65,"(",131,"JSXStartTag",141,"JSXStartTag JSXStartCloseTag"]],propSources:[f],skippedNodes:[0,5,6],repeatNodeCount:28,tokenData:"!C}~R!`OX%TXY%c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R!S5}nQ$UWO!^%T!_#o%T#p~%TX!@PR!kP$UWO!^%T!_#o%T#p~%T7Z!@gr$UW'Y7R#zS']$y'g3SOX%TXY%cYZ%TZ[%c[p%Tpq%cqt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$JT2`$JT$JU!@Y$JU$KV2`$KV$KW!@Y$KW&FU2`&FU&FV!@Y&FV?HT2`?HT?HU!@Y?HU~2`7Z!CO_$UW'Z7R#zS']$y'g3SOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[O,c,h,u,0,1,2,3,4,5,6,7,8,9,l],topRules:{Script:[0,7]},dialects:{jsx:12107,ts:12109},dynamicPrecedences:{149:1,176:1},specialized:[{term:289,get:e=>d[e]||-1},{term:299,get:e=>p[e]||-1},{term:63,get:e=>m[e]||-1}],tokenPrec:12130});var Q=n(59119),b=n(78120),x=n(47421),k=n(34790),y=n(41113);const v=[(0,k.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,k.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,k.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,k.Gn)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,k.Gn)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,k.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,k.Gn)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,k.Gn)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,k.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,k.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,k.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],$=new y.hr,S=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function w(e){return(t,n)=>{let i=t.node.getChild("VariableDefinition");return i&&n(i,e),!0}}const T=["FunctionDeclaration"],P={FunctionDeclaration:w("function"),ClassDeclaration:w("class"),ClassExpression:()=>!0,EnumDeclaration:w("constant"),TypeAliasDeclaration:w("type"),NamespaceDeclaration:w("namespace"),VariableDefinition(e,t){e.matchContext(T)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function R(e,t){let n=$.get(t);if(n)return n;let i=[],r=!0;function s(t,n){let r=e.sliceString(t.from,t.to);i.push({label:r,type:n})}return t.cursor(y.vj.IncludeAnonymous).iterate((t=>{if(r)r=!1;else if(t.name){let e=P[t.name];if(e&&e(t,s)||S.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of R(e,t.node))i.push(n);return!1}})),$.set(t,i),i}const C=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Z=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function X(e){let t=(0,Q.qz)(e.state).resolveInner(e.pos,-1);if(Z.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&C.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let i=[];for(let r=t;r;r=r.parent)S.has(r.name)&&(i=i.concat(R(e.state.doc,r)));return{options:i,from:n?t.from:e.pos,validFor:C}}function j(e,t,n){var i;let r=[];for(;;){let s,o=t.firstChild;if("VariableName"==(null===o||void 0===o?void 0:o.name))return r.push(e(o)),{path:r.reverse(),name:n};if("MemberExpression"!=(null===o||void 0===o?void 0:o.name)||"PropertyName"!=(null===(i=s=o.lastChild)||void 0===i?void 0:i.name))return null;r.push(e(s)),t=o}}function W(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=(0,Q.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?j(t,n.parent,t(n)):Z.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&C.test(t(n))?{path:[],name:t(n)}:"."==n.name&&"MemberExpression"==n.parent.name?j(t,n.parent,""):"MemberExpression"==n.name?j(t,n,""):e.explicit?{path:[],name:""}:null}function A(e){let t=new Map;return n=>{let i=W(n);if(!i)return null;let r=e;for(let e of i.path)if(r=r[e],!r)return null;let s=t.get(r);return s||t.set(r,s=function(e,t){let n=[],i=new Set;for(let s=0;;s++){for(let a of(Object.getOwnPropertyNames||Object.keys)(e)){if(i.has(a))continue;let o;i.add(a);try{o=e[a]}catch(r){continue}n.push({label:a,type:"function"==typeof o?/^[A-Z]/.test(a)?"class":t?"function":"method":t?"variable":"property",boost:-s})}let o=Object.getPrototypeOf(e);if(!o)return n;e=o}}(r,!i.path.length)),{from:n.pos-i.name.length,options:s,validFor:C}}}const q=Q.qp.define({parser:g.configure({props:[Q.uj.add({IfStatement:(0,Q.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,Q.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Q.ze,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),i=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:i?1:2)*e.unit},Block:(0,Q.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,Q.tC)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),Q.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":Q.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),_=q.configure({dialect:"ts"}),z=q.configure({dialect:"jsx"}),I=q.configure({dialect:"jsx ts"}),E="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map((e=>({label:e,type:"keyword"})));function G(e={}){let t=e.jsx?e.typescript?I:z:e.typescript?_:q;return new Q.ri(t,[q.data.of({autocomplete:(0,k.eC)(Z,(0,k.Mb)(v.concat(E)))}),q.data.of({autocomplete:X}),e.jsx?N:[]])}function L(e,t,n=e.length){if(!t)return"";let i=t.getChild("JSXIdentifier");return i?e.sliceString(i.from,Math.min(i.to,n)):""}const D="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),N=x.tk.inputHandler.of(((e,t,n,i)=>{if((D?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=i&&"/"!=i||!q.isActiveAt(e.state,t,-1))return!1;let{state:r}=e,s=r.changeByRange((e=>{var t,n,s;let o,{head:a}=e,l=(0,Q.qz)(r).resolveInner(a,-1);if("JSXStartTag"==l.name&&(l=l.parent),">"==i&&"JSXFragmentTag"==l.name)return{range:b.jT.cursor(a+1),changes:{from:a,insert:"><>"}};if(">"==i&&"JSXIdentifier"==l.name){if("JSXEndTag"!=(null===(n=null===(t=l.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=L(r.doc,l.parent,a)))return{range:b.jT.cursor(a+1),changes:{from:a,insert:`>`}}}else if("/"==i&&"JSXFragmentTag"==l.name){let e=l.parent,t=null===e||void 0===e?void 0:e.parent;if(e.from==a-1&&"JSXEndTag"!=(null===(s=t.lastChild)||void 0===s?void 0:s.name)&&(o=L(r.doc,null===t||void 0===t?void 0:t.firstChild,a))){let e=`/${o}>`;return{range:b.jT.cursor(a+e.length),changes:{from:a,insert:e}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)}));function U(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach(((e,n)=>{e.meta.docs.recommended&&(t.rules[n]=2)}))),n=>{let{state:i}=n,r=[];for(let{from:s,to:o}of q.findRegions(i)){let n=i.doc.lineAt(s),a={line:n.number-1,col:s-n.from,pos:s};for(let l of e.verify(i.sliceDoc(s,o),t))r.push(J(l,i.doc,a))}return r}}function M(e,t,n,i){return n.line(e+i.line).from+t+(1==e?i.col-1:-1)}function J(e,t,n){let i=M(e.line,e.column,t,n),r={from:i,to:null!=e.endLine&&1!=e.endColumn?M(e.endLine,e.endColumn,t,n):i,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:s}=e.fix,o=t[0]+n.pos-i,a=t[1]+n.pos-i;r.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+o,to:t+a,insert:s},scrollIntoView:!0})}}]}return r}},48825:function(e,t,n){"use strict";n.r(t),n.d(t,{commonmarkLanguage:function(){return je},deleteMarkupBackward:function(){return Le},insertNewlineContinueMarkup:function(){return Ee},markdown:function(){return Ue},markdownKeymap:function(){return De},markdownLanguage:function(){return We}});var i,r=n(78120),s=n(47421),o=n(59119),a=n(41113),l=n(35524);class c{constructor(e,t,n,i,r,s,o){this.type=e,this.value=t,this.from=n,this.hash=i,this.end=r,this.children=s,this.positions=o,this.hashProp=[[a.md.contextHash,i]]}static create(e,t,n,i,r){return new c(e,t,n,i+(i<<8)+e+(t<<4)|0,r,[],[])}addChild(e,t){e.prop(a.md.contextHash)!=this.hash&&(e=new a.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new a.mp(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new a.mp(a.Jq.none,e,t,n,this.hashProp)})}}!function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.URL=33]="URL",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel"}(i||(i={}));class h{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class u{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return p(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let i=t;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==i.OrderedList?y:k)(n,t,!1);return r>0&&(e.type!=i.BulletList||b(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const f={[i.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(Y(i.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(d(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[i.ListItem]:(e,t,n)=>!(n.indent-1)&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[i.OrderedList]:O,[i.BulletList]:O,[i.Document]:()=>!0};function d(e){return 32==e||9==e||10==e||13==e}function p(e,t=0){for(;tn&&d(e.charCodeAt(t-1));)t--;return t}function g(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||i<3?-1:1}function x(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function k(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!d(e.text.charCodeAt(e.pos+1))||!(!n||x(t,i.BulletList)||e.skipSpace(e.pos+2)=48&&s<=57;){if(r++,r==e.text.length)return-1;s=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||46!=s&&41!=s||re.pos+1||49!=e.next)?-1:r+1-e.pos}function v(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t6?-1:n}function $(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,T=/\?>/,P=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(o)return e.append(Y(i.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(Y(i.ProcessingInstruction,n,n+1+a[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return l?e.append(Y(i.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let i=n+1;for(;e.char(i)==t;)i++;let r=e.slice(n-1,n),s=e.slice(i,i+1),o=ie.test(r),a=ie.test(s),l=/\s|^$/.test(r),c=/\s|^$/.test(s),h=!c&&(!a||l||o),u=!l&&(!o||c||a),O=h&&(42==t||!u||o),f=u&&(42==t||!h||a);return e.append(new te(95==t?F:H,n,i,(O?1:0)|(f?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(Y(i.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(Y(i.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new te(K,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new te(ee,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let r=e.parts.length-1;r>=0;r--){let t=e.parts[r];if(t instanceof te&&(t.type==K||t.type==ee)){if(!t.side||e.skipSpace(t.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let s=e.takeContent(r),o=e.parts[r]=se(e,s,t.type==K?i.Link:i.Image,t.from,n+1);if(t.type==K)for(let t=0;tt?Y(i.URL,t+n,s+n):s==e.length&&null}}function ae(e,t,n){let r=e.charCodeAt(t);if(39!=r&&34!=r&&40!=r)return!1;let s=40==r?41:r;for(let o=t+1,a=!1;o=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,i,r){return this.append(new te(e,t,n,(i?1:0)|(r?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n=e;o--){let e=this.parts[o];if(e instanceof te&&1&e.side&&e.type==t.type&&!(r&&(1&t.side||2&e.side)&&(e.to-e.from+s)%3==0&&((e.to-e.from)%3||s%3))){i=e;break}}if(!i)continue;let a=t.type.resolve,l=[],c=i.from,h=t.to;if(r){let e=Math.min(2,i.to-i.from,s);c=i.to-e,h=t.from+e,a=1==e?"Emphasis":"StrongEmphasis"}i.type.mark&&l.push(this.elt(i.type.mark,c,i.to));for(let e=o+1;e=0;t--){let n=this.parts[t];if(n instanceof te&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return p(this.text,e-this.offset)+this.offset}elt(e,t,n,i){return"string"==typeof e?Y(this.parser.getNodeType(e),t,n,i):new B(e,t)}}function he(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),i=0;for(let r of t){for(;i(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let i=e+this.fragment.offset;for(;n.to<=i;)if(!n.parent())return!1;for(;;){if(n.from>=i)return this.fragment.from<=t;if(!n.childAfter(i))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(a.md.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),r=e.absoluteLineStart,s=r,o=e.block.children.length,a=s,l=o;for(;;){if(t.to-n>i){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-n),t.type.is("Block")&&(ue.indexOf(t.type.id)<0?(s=t.to-n,o=e.block.children.length):(s=a,o=l,a=t.to-n,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return s-r}}const fe=(0,l.Gv)({"Blockquote/...":l.pJ.quote,HorizontalRule:l.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":l.pJ.heading1,"ATXHeading2/... SetextHeading2/...":l.pJ.heading2,"ATXHeading3/...":l.pJ.heading3,"ATXHeading4/...":l.pJ.heading4,"ATXHeading5/...":l.pJ.heading5,"ATXHeading6/...":l.pJ.heading6,"Comment CommentBlock":l.pJ.comment,Escape:l.pJ.escape,Entity:l.pJ.character,"Emphasis/...":l.pJ.emphasis,"StrongEmphasis/...":l.pJ.strong,"Link/... Image/...":l.pJ.link,"OrderedList/... BulletList/...":l.pJ.list,"BlockQuote/...":l.pJ.quote,"InlineCode CodeText":l.pJ.monospace,URL:l.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":l.pJ.processingInstruction,"CodeInfo LinkLabel":l.pJ.labelName,LinkTitle:l.pJ.string,Paragraph:l.pJ.content}),de=new G(new a.Lj(U).extend(fe),Object.keys(X).map((e=>X[e])),Object.keys(X).map((e=>q[e])),Object.keys(X),_,f,Object.keys(re).map((e=>re[e])),Object.keys(re),[]);function pe(e,t,n){let i=[];for(let r=e.firstChild,s=t;;r=r.nextSibling){let e=r?r.from:n;if(e>s&&i.push({from:s,to:e}),!r)break;s=r.to}return i}const me={resolve:"Strikethrough",mark:"StrikethroughMark"},ge={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":l.pJ.strikethrough}},{name:"StrikethroughMark",style:l.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(126!=t||126!=e.char(n+1)||126==e.char(n+2))return-1;let i=e.slice(n-1,n),r=e.slice(n+2,n+3),s=/\s|^$/.test(i),o=/\s|^$/.test(r),a=ie.test(i),l=ie.test(r);return e.addDelimiter(me,n,n+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function Qe(e,t,n=0,i,r=0){let s=0,o=!0,a=-1,l=-1,c=!1,h=()=>{i.push(e.elt("TableCell",r+a,r+l,e.parser.parseInline(t.slice(a,l),r+a)))};for(let u=n;u-1)&&s++,o=!1,i&&(a>-1&&h(),i.push(e.elt("TableDelimiter",u+r,u+r+1))),a=l=-1),c=!c&&92==n}return a>-1&&(s++,i&&h()),s}function be(e,t){for(let n=t;nbe(t.content,0)?new ke:null,endLeaf(e,t,n){if(n.parsers.some((e=>e instanceof ke))||!be(t.text,t.basePos))return!1;let i=e.scanLine(e.absoluteLineEnd+1).text;return xe.test(i)&&Qe(e,t.text,t.basePos)==Qe(e,i,t.basePos)},before:"SetextHeading"}]};class ve{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const $e=[ye,{defineNodes:[{name:"Task",block:!0,style:l.pJ.list},{name:"TaskMarker",style:l.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\]/.test(t.content)&&"ListItem"==e.parentType().name?new ve:null,after:"SetextHeading"}]},ge];function Se(e,t,n){return(i,r,s)=>{if(r!=e||i.char(s+1)==e)return-1;let o=[i.elt(n,s,s+1)];for(let a=s+1;a{if(e.is("Block")&&!e.is("Document"))return(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})),o.uj.add({Document:()=>null}),o.pp.add({Document:Ce})]});function Xe(e){return new o.SQ(Ce,e)}const je=Xe(Ze),We=Xe(Ze.configure([$e,Te,we,Pe]));function Ae(e,t){return t.sliceString(e.from,e.from+50)}class qe{constructor(e,t,n,i,r,s,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=i,this.spaceAfter=r,this.type=s,this.item=o}blank(e=!0){let t=this.spaceBefore;if("Blockquote"==this.node.name)t+=">";else for(let n=this.to-this.from-t.length-this.spaceAfter.length;n>0;n--)t+=" ";return t+(e?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+ze(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function _e(e,t,n){let i=[];for(let o=e;o&&"Document"!=o.name;o=o.parent)"ListItem"!=o.name&&"Blockquote"!=o.name&&"FencedCode"!=o.name||i.push(o);let r=[],s=0;for(let o=i.length-1;o>=0;o--){let e,a=i[o],l=s;if("FencedCode"==a.name)r.push(new qe(a,s,s,"","","",null));else if("Blockquote"==a.name&&(e=/^[ \t]*>( ?)/.exec(t.slice(s))))s+=e[0].length,r.push(new qe(a,l,s,"",e[1],">",null));else if("ListItem"==a.name&&"OrderedList"==a.parent.name&&(e=/^([ \t]*)\d+([.)])([ \t]*)/.exec(Ae(a,n)))){let t=e[3],n=e[0].length;t.length>=4&&(t=t.slice(0,t.length-4),n-=4),s+=n,r.push(new qe(a.parent,l,s,e[1],t,e[2],a))}else if("ListItem"==a.name&&"BulletList"==a.parent.name&&(e=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(Ae(a,n)))){let t=e[4],n=e[0].length;t.length>4&&(t=t.slice(0,t.length-4),n-=4);let i=e[2];e[3]&&(i+=e[3].replace(/[xX]/," ")),s+=n,r.push(new qe(a.parent,l,s,e[1],t,i,a))}}return r}function ze(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Ie(e,t,n,i=0){for(let r=-1,s=e;;){if("ListItem"==s.name){let e=ze(s,t),o=+e[2];if(r>=0){if(o!=r+1)return;n.push({from:s.from+e[1].length,to:s.from+e[0].length,insert:String(r+2+i)})}r=o}let e=s.nextSibling;if(!e)break;s=e}}const Ee=({state:e,dispatch:t})=>{let n=(0,o.qz)(e),{doc:i}=e,s=null,a=e.changeByRange((t=>{if(!t.empty||!We.isActiveAt(e,t.from))return s={range:t};let o=t.from,a=i.lineAt(o),l=_e(n.resolveInner(o,-1),a.text,i);for(;l.length&&l[l.length-1].from>o-a.from;)l.pop();if(!l.length)return s={range:t};let c=l[l.length-1];if(c.to-c.spaceAfter.length>o-a.from)return s={range:t};let h=o>=c.to-c.spaceAfter.length&&!/\S/.test(a.text.slice(c.to));if(c.item&&h){if(c.node.firstChild.to>=o||a.from>0&&!/[^\s>]/.test(i.lineAt(a.from-1).text)){let e,t=l.length>1?l[l.length-2]:null,n="";t&&t.item?(e=a.from+t.from,n=t.marker(i,1)):e=a.from+(t?t.to:0);let s=[{from:e,to:o,insert:n}];return"OrderedList"==c.node.name&&Ie(c.item,i,s,-2),t&&"OrderedList"==t.node.name&&Ie(t.item,i,s),{range:r.jT.cursor(e+n.length),changes:s}}{let t="";for(let e=0,n=l.length-2;e<=n;e++)t+=l[e].blank(e\s*$/.exec(n.text);if(r&&r.index==c.from){let i=e.changes([{from:n.from+r.index,to:n.to},{from:a.from+c.from,to:a.to}]);return{range:t.map(i),changes:i}}}let u=[];"OrderedList"==c.node.name&&Ie(c.item,i,u);let O=e.lineBreak,f=c.item&&c.item.from]*/.exec(a.text)[0].length>=c.to)for(let e=0,n=l.length-1;e<=n;e++)O+=e!=n||f?l[e].blank():l[e].marker(i,1);let d=o;for(;d>a.from&&/\s/.test(a.text.charAt(d-a.from-1));)d--;return u.push({from:d,to:o,insert:O}),{range:r.jT.cursor(d+O.length),changes:u}}));return!s&&(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function Ge(e){return"QuoteMark"==e.name||"ListMark"==e.name}const Le=({state:e,dispatch:t})=>{let n=(0,o.qz)(e),i=null,s=e.changeByRange((t=>{let s=t.from,{doc:o}=e;if(t.empty&&We.isActiveAt(e,t.from)){let e=o.lineAt(s),i=_e(function(e,t){let n,i=e.resolveInner(t,-1),r=t;for(Ge(i)&&(r=i.from,i=i.parent);n=i.childBefore(r);)if(Ge(n))r=n.from;else{if("OrderedList"!=n.name&&"BulletList"!=n.name)break;i=n.lastChild,r=i.to}return i}(n,s),e.text,o);if(i.length){let n=i[i.length-1],o=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(s-e.from>o&&!/\S/.test(e.text.slice(o,s-e.from)))return{range:r.jT.cursor(e.from+o),changes:{from:e.from+o,to:s}};if(s-e.from==o){let i=e.from+n.from;if(n.item&&n.node.from{if(e&&d){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof d?d(e):o.c6.matchLanguageName(d,e,!0),t instanceof o.c6)return t.support?t.support.language.parser:o.Be.getSkippingParser(t.load());if(t)return t.parser}return p?p.parser:null}):void 0;var d,p;return u.push(function(e){let{codeParser:t,htmlParser:n}=e,r=(0,a.FE)(((e,r)=>{let s=e.type.id;if(!t||s!=i.CodeBlock&&s!=i.FencedCode){if(n&&(s==i.HTMLBlock||s==i.HTMLTag))return{parser:n,overlay:pe(e.node,e.from,e.to)}}else{let n="";if(s==i.FencedCode){let t=e.node.getChild(i.CodeInfo);t&&(n=r.read(t.from,t.to))}let o=t(n);if(o)return{parser:o,overlay:e=>e.type.id==i.CodeText}}return null}));return{wrap:r}}({codeParser:f,htmlParser:Ne.language.parser})),l&&O.push(r.Wl.high(s.$f.of(De))),new o.ri(Xe(c.configure(u)),O)}},76538:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var i=n(59119);function r(e){return new i.ri(i.il.define(e))}function s(e){return n.e(1390).then(n.bind(n,21390)).then((t=>t.sql({dialect:t[e]})))}const o=[i.c6.of({name:"C",extensions:["c","h","ino"],load:()=>n.e(2750).then(n.bind(n,12750)).then((e=>e.cpp()))}),i.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>n.e(2750).then(n.bind(n,12750)).then((e=>e.cpp()))}),i.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>s("Cassandra")}),i.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(n.bind(n,61426)).then((e=>e.css()))}),i.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(n.bind(n,13804)).then((e=>e.html()))}),i.c6.of({name:"Java",extensions:["java"],load:()=>n.e(4778).then(n.bind(n,44778)).then((e=>e.java()))}),i.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript()))}),i.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>n.e(4732).then(n.bind(n,44732)).then((e=>e.json()))}),i.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript({jsx:!0})))}),i.c6.of({name:"MariaDB SQL",load:()=>s("MariaSQL")}),i.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(n.bind(n,48825)).then((e=>e.markdown()))}),i.c6.of({name:"MS SQL",load:()=>s("MSSQL")}),i.c6.of({name:"MySQL",load:()=>s("MySQL")}),i.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>n.e(2386).then(n.bind(n,12386)).then((e=>e.php()))}),i.c6.of({name:"PLSQL",extensions:["pls"],load:()=>s("PLSQL")}),i.c6.of({name:"PostgreSQL",load:()=>s("PostgreSQL")}),i.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>n.e(8088).then(n.bind(n,28088)).then((e=>e.python()))}),i.c6.of({name:"Rust",extensions:["rs"],load:()=>n.e(4920).then(n.bind(n,24920)).then((e=>e.rust()))}),i.c6.of({name:"SQL",extensions:["sql"],load:()=>s("StandardSQL")}),i.c6.of({name:"SQLite",load:()=>s("SQLite")}),i.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript({jsx:!0,typescript:!0})))}),i.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript({typescript:!0})))}),i.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>n.e(9972).then(n.bind(n,9972)).then((e=>e.wast()))}),i.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>n.e(5122).then(n.bind(n,5122)).then((e=>e.xml()))}),i.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>n.e(870).then(n.bind(n,90870)).then((e=>r(e.apl)))}),i.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>n.e(8029).then(n.bind(n,58029)).then((e=>r(e.asciiArmor)))}),i.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>n.e(3203).then(n.bind(n,93203)).then((e=>r(e.asn1({}))))}),i.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>n.e(5648).then(n.bind(n,15648)).then((e=>r(e.asterisk)))}),i.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>n.e(2675).then(n.bind(n,2675)).then((e=>r(e.brainfuck)))}),i.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>n.e(8915).then(n.bind(n,68915)).then((e=>r(e.cobol)))}),i.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.csharp)))}),i.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>n.e(2406).then(n.bind(n,72406)).then((e=>r(e.clojure)))}),i.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>n.e(2406).then(n.bind(n,72406)).then((e=>r(e.clojure)))}),i.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>n.e(2136).then(n.bind(n,62136)).then((e=>r(e.gss)))}),i.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>n.e(889).then(n.bind(n,70889)).then((e=>r(e.cmake)))}),i.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>n.e(9558).then(n.bind(n,29558)).then((e=>r(e.coffeeScript)))}),i.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>n.e(1446).then(n.bind(n,61446)).then((e=>r(e.commonLisp)))}),i.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>n.e(673).then(n.bind(n,20673)).then((e=>r(e.cypher)))}),i.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>n.e(4323).then(n.bind(n,74323)).then((e=>r(e.cython)))}),i.c6.of({name:"Crystal",extensions:["cr"],load:()=>n.e(2602).then(n.bind(n,62602)).then((e=>r(e.crystal)))}),i.c6.of({name:"D",extensions:["d"],load:()=>n.e(1660).then(n.bind(n,11660)).then((e=>r(e.d)))}),i.c6.of({name:"Dart",extensions:["dart"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.dart)))}),i.c6.of({name:"diff",extensions:["diff","patch"],load:()=>n.e(7475).then(n.bind(n,87475)).then((e=>r(e.diff)))}),i.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>n.e(7047).then(n.bind(n,34812)).then((e=>r(e.dockerFile)))}),i.c6.of({name:"DTD",extensions:["dtd"],load:()=>n.e(6991).then(n.bind(n,76991)).then((e=>r(e.dtd)))}),i.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>n.e(4144).then(n.bind(n,24144)).then((e=>r(e.dylan)))}),i.c6.of({name:"EBNF",load:()=>n.e(2040).then(n.bind(n,82040)).then((e=>r(e.ebnf)))}),i.c6.of({name:"ECL",extensions:["ecl"],load:()=>n.e(7315).then(n.bind(n,37315)).then((e=>r(e.ecl)))}),i.c6.of({name:"edn",extensions:["edn"],load:()=>n.e(2406).then(n.bind(n,72406)).then((e=>r(e.clojure)))}),i.c6.of({name:"Eiffel",extensions:["e"],load:()=>n.e(7525).then(n.bind(n,87525)).then((e=>r(e.eiffel)))}),i.c6.of({name:"Elm",extensions:["elm"],load:()=>n.e(8770).then(n.bind(n,28770)).then((e=>r(e.elm)))}),i.c6.of({name:"Erlang",extensions:["erl"],load:()=>n.e(7590).then(n.bind(n,53482)).then((e=>r(e.erlang)))}),i.c6.of({name:"Esper",load:()=>n.e(9607).then(n.bind(n,54050)).then((e=>r(e.esper)))}),i.c6.of({name:"Factor",extensions:["factor"],load:()=>n.e(7001).then(n.bind(n,87001)).then((e=>r(e.factor)))}),i.c6.of({name:"FCL",load:()=>n.e(7663).then(n.bind(n,77663)).then((e=>r(e.fcl)))}),i.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>n.e(8393).then(n.bind(n,68393)).then((e=>r(e.forth)))}),i.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>n.e(8283).then(n.bind(n,8283)).then((e=>r(e.fortran)))}),i.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>n.e(6121).then(n.bind(n,96121)).then((e=>r(e.fSharp)))}),i.c6.of({name:"Gas",extensions:["s"],load:()=>n.e(9781).then(n.bind(n,39781)).then((e=>r(e.gas)))}),i.c6.of({name:"Gherkin",extensions:["feature"],load:()=>n.e(2542).then(n.bind(n,2542)).then((e=>r(e.gherkin)))}),i.c6.of({name:"Go",extensions:["go"],load:()=>n.e(8910).then(n.bind(n,48910)).then((e=>r(e.go)))}),i.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>n.e(3883).then(n.bind(n,23883)).then((e=>r(e.groovy)))}),i.c6.of({name:"Haskell",extensions:["hs"],load:()=>n.e(5372).then(n.bind(n,95372)).then((e=>r(e.haskell)))}),i.c6.of({name:"Haxe",extensions:["hx"],load:()=>n.e(3509).then(n.bind(n,63509)).then((e=>r(e.haxe)))}),i.c6.of({name:"HXML",extensions:["hxml"],load:()=>n.e(3509).then(n.bind(n,63509)).then((e=>r(e.hxml)))}),i.c6.of({name:"HTTP",load:()=>n.e(6395).then(n.bind(n,36395)).then((e=>r(e.http)))}),i.c6.of({name:"IDL",extensions:["pro"],load:()=>n.e(2314).then(n.bind(n,22314)).then((e=>r(e.idl)))}),i.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>n.e(9296).then(n.bind(n,59296)).then((e=>r(e.jsonld)))}),i.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>n.e(1084).then(n.bind(n,41084)).then((e=>r(e.jinja2)))}),i.c6.of({name:"Julia",extensions:["jl"],load:()=>n.e(6092).then(n.bind(n,76092)).then((e=>r(e.julia)))}),i.c6.of({name:"Kotlin",extensions:["kt"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.kotlin)))}),i.c6.of({name:"LESS",extensions:["less"],load:()=>n.e(2136).then(n.bind(n,62136)).then((e=>r(e.less)))}),i.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>n.e(402).then(n.bind(n,60402)).then((e=>r(e.liveScript)))}),i.c6.of({name:"Lua",extensions:["lua"],load:()=>n.e(3519).then(n.bind(n,3519)).then((e=>r(e.lua)))}),i.c6.of({name:"mIRC",extensions:["mrc"],load:()=>n.e(5134).then(n.bind(n,65134)).then((e=>r(e.mirc)))}),i.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>n.e(7213).then(n.bind(n,37213)).then((e=>r(e.mathematica)))}),i.c6.of({name:"Modelica",extensions:["mo"],load:()=>n.e(305).then(n.bind(n,14630)).then((e=>r(e.modelica)))}),i.c6.of({name:"MUMPS",extensions:["mps"],load:()=>n.e(7988).then(n.bind(n,17988)).then((e=>r(e.mumps)))}),i.c6.of({name:"Mbox",extensions:["mbox"],load:()=>n.e(9121).then(n.bind(n,29121)).then((e=>r(e.mbox)))}),i.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>n.e(8561).then(n.bind(n,78561)).then((e=>r(e.nginx)))}),i.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>n.e(7370).then(n.bind(n,67370)).then((e=>r(e.nsis)))}),i.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>n.e(3314).then(n.bind(n,43314)).then((e=>r(e.ntriples)))}),i.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.objectiveC)))}),i.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.objectiveCpp)))}),i.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>n.e(6121).then(n.bind(n,96121)).then((e=>r(e.oCaml)))}),i.c6.of({name:"Octave",extensions:["m"],load:()=>n.e(3283).then(n.bind(n,33283)).then((e=>r(e.octave)))}),i.c6.of({name:"Oz",extensions:["oz"],load:()=>n.e(4796).then(n.bind(n,94796)).then((e=>r(e.oz)))}),i.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>n.e(4163).then(n.bind(n,44163)).then((e=>r(e.pascal)))}),i.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>n.e(4293).then(n.bind(n,94293)).then((e=>r(e.perl)))}),i.c6.of({name:"Pig",extensions:["pig"],load:()=>n.e(3482).then(n.bind(n,33482)).then((e=>r(e.pig)))}),i.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>n.e(7421).then(n.bind(n,37421)).then((e=>r(e.powerShell)))}),i.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>n.e(9071).then(n.bind(n,69071)).then((e=>r(e.properties)))}),i.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>n.e(8142).then(n.bind(n,78142)).then((e=>r(e.protobuf)))}),i.c6.of({name:"Puppet",extensions:["pp"],load:()=>n.e(3993).then(n.bind(n,83993)).then((e=>r(e.puppet)))}),i.c6.of({name:"Q",extensions:["q"],load:()=>n.e(228).then(n.bind(n,10228)).then((e=>r(e.q)))}),i.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>n.e(7365).then(n.bind(n,57365)).then((e=>r(e.r)))}),i.c6.of({name:"RPM Changes",load:()=>n.e(8171).then(n.bind(n,48171)).then((e=>r(e.rpmChanges)))}),i.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>n.e(8171).then(n.bind(n,48171)).then((e=>r(e.rpmSpec)))}),i.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:()=>n.e(4439).then(n.bind(n,24439)).then((e=>r(e.ruby)))}),i.c6.of({name:"SAS",extensions:["sas"],load:()=>n.e(1770).then(n.bind(n,1770)).then((e=>r(e.sas)))}),i.c6.of({name:"Sass",extensions:["sass"],load:()=>n.e(9809).then(n.bind(n,49809)).then((e=>r(e.sass)))}),i.c6.of({name:"Scala",extensions:["scala"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.scala)))}),i.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>n.e(5879).then(n.bind(n,95879)).then((e=>r(e.scheme)))}),i.c6.of({name:"SCSS",extensions:["scss"],load:()=>n.e(2136).then(n.bind(n,62136)).then((e=>r(e.sCSS)))}),i.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>n.e(4879).then(n.bind(n,44879)).then((e=>r(e.shell)))}),i.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>n.e(9713).then(n.bind(n,9713)).then((e=>r(e.sieve)))}),i.c6.of({name:"Smalltalk",extensions:["st"],load:()=>n.e(1873).then(n.bind(n,11873)).then((e=>r(e.smalltalk)))}),i.c6.of({name:"Solr",load:()=>n.e(7762).then(n.bind(n,17762)).then((e=>r(e.solr)))}),i.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>n.e(6121).then(n.bind(n,96121)).then((e=>r(e.sml)))}),i.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>n.e(370).then(n.bind(n,70370)).then((e=>r(e.sparql)))}),i.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>n.e(7601).then(n.bind(n,97601)).then((e=>r(e.spreadsheet)))}),i.c6.of({name:"Squirrel",extensions:["nut"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.squirrel)))}),i.c6.of({name:"Stylus",extensions:["styl"],load:()=>n.e(8007).then(n.bind(n,28007)).then((e=>r(e.stylus)))}),i.c6.of({name:"Swift",extensions:["swift"],load:()=>n.e(6062).then(n.bind(n,66062)).then((e=>r(e.swift)))}),i.c6.of({name:"sTeX",load:()=>n.e(6732).then(n.bind(n,86732)).then((e=>r(e.stex)))}),i.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>n.e(6732).then(n.bind(n,86732)).then((e=>r(e.stex)))}),i.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>n.e(2119).then(n.bind(n,52119)).then((e=>r(e.verilog)))}),i.c6.of({name:"Tcl",extensions:["tcl"],load:()=>n.e(3465).then(n.bind(n,43465)).then((e=>r(e.tcl)))}),i.c6.of({name:"Textile",extensions:["textile"],load:()=>n.e(177).then(n.bind(n,90177)).then((e=>r(e.textile)))}),i.c6.of({name:"TiddlyWiki",load:()=>n.e(4511).then(n.bind(n,34511)).then((e=>r(e.tiddlyWiki)))}),i.c6.of({name:"Tiki wiki",load:()=>n.e(6471).then(n.bind(n,36471)).then((e=>r(e.tiki)))}),i.c6.of({name:"TOML",extensions:["toml"],load:()=>n.e(6443).then(n.bind(n,96443)).then((e=>r(e.toml)))}),i.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>n.e(1920).then(n.bind(n,71920)).then((e=>r(e.troff)))}),i.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>n.e(6665).then(n.bind(n,66665)).then((e=>r(e.ttcn)))}),i.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>n.e(9831).then(n.bind(n,29831)).then((e=>r(e.ttcnCfg)))}),i.c6.of({name:"Turtle",extensions:["ttl"],load:()=>n.e(5815).then(n.bind(n,15815)).then((e=>r(e.turtle)))}),i.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>n.e(6692).then(n.bind(n,26692)).then((e=>r(e.webIDL)))}),i.c6.of({name:"VB.NET",extensions:["vb"],load:()=>n.e(4212).then(n.bind(n,44212)).then((e=>r(e.vb)))}),i.c6.of({name:"VBScript",extensions:["vbs"],load:()=>n.e(1650).then(n.bind(n,31650)).then((e=>r(e.vbScript)))}),i.c6.of({name:"Velocity",extensions:["vtl"],load:()=>n.e(617).then(n.bind(n,90617)).then((e=>r(e.velocity)))}),i.c6.of({name:"Verilog",extensions:["v"],load:()=>n.e(2119).then(n.bind(n,52119)).then((e=>r(e.verilog)))}),i.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>n.e(5819).then(n.bind(n,5819)).then((e=>r(e.vhdl)))}),i.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>n.e(5753).then(n.bind(n,35753)).then((e=>r(e.xQuery)))}),i.c6.of({name:"Yacas",extensions:["ys"],load:()=>n.e(9232).then(n.bind(n,69232)).then((e=>r(e.yacas)))}),i.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>n.e(5379).then(n.bind(n,82877)).then((e=>r(e.yaml)))}),i.c6.of({name:"Z80",extensions:["z80"],load:()=>n.e(1053).then(n.bind(n,21053)).then((e=>r(e.z80)))}),i.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>n.e(758).then(n.bind(n,30758)).then((e=>r(e.mscgen)))}),i.c6.of({name:"X\xf9",extensions:["xu"],load:()=>n.e(758).then(n.bind(n,30758)).then((e=>r(e.xu)))}),i.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>n.e(758).then(n.bind(n,30758)).then((e=>r(e.msgenny)))})]},59119:function(e,t,n){"use strict";n.d(t,{Be:function(){return g},Dv:function(){return U},Gn:function(){return Z},K0:function(){return C},Qf:function(){return Oe},R_:function(){return be},SQ:function(){return u},SS:function(){return R},Um:function(){return Re},c:function(){return T},c6:function(){return S},e7:function(){return ie},il:function(){return We},kU:function(){return h},mi:function(){return he},n$:function(){return Te},nF:function(){return me},nY:function(){return L},pp:function(){return c},qp:function(){return f},qz:function(){return d},ri:function(){return $},tC:function(){return G},uj:function(){return X},vw:function(){return z},x0:function(){return N},y1:function(){return P},ze:function(){return E}});var i,r=n(41113),s=n(78120),o=n(47421),a=n(35524),l=n(28699);const c=new r.md;function h(e){return s.r$.define({combine:e?t=>t.concat(e):void 0})}class u{constructor(e,t,n=[]){this.data=e,s.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(s.yy.prototype,"tree",{get(){return d(this)}}),this.parser=t,this.extension=[v.of(this),s.yy.languageData.of(((e,t,n)=>e.facet(O(e,t,n))))].concat(n)}isActiveAt(e,t,n=-1){return O(e,t,n)==this.data}findRegions(e){let t=e.facet(v);if((null===t||void 0===t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let s=e.prop(r.md.mounted);if(s){if(s.tree.prop(c)==this.data){if(s.overlay)for(let e of s.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(s.overlay){let e=n.length;if(i(s.tree,s.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}))}configure(e){return new f(this.data,this.parser.configure(e))}get allowsNesting(){return this.parser.hasWrappers()}}function d(e){let t=e.field(u.state,!1);return t?t.tree:r.mp.empty}class p{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let m=null;class g{constructor(e,t,n=[],i,r,s,o,a){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new g(e,t,[],r.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new p(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=r.mp.empty&&this.isDone(null!==t&&void 0!==t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=m;m=this;try{return e()}finally{m=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Q(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,i,r)=>t.push({fromA:e,toA:n,fromB:i,toB:r}))),n=r.i9.applyChanges(n,t),i=r.mp.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);ne.from&&(this.fragments=Q(this.fragments,t,i),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends r._b{createParse(t,n,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let t=m;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new r.mp(r.Jq.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return m}}function Q(e,t,n){return r.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class b{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new b(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=g.create(e.facet(v).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new b(n)}}u.state=s.QQ.define({create:b.init,update(e,t){for(let n of t.effects)if(n.is(u.setState))return n.value;return t.startState.facet(v)!=t.state.facet(v)?b.init(t.state):e.apply(t)}});let x=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(x=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const k="undefined"!=typeof navigator&&(null===(i=navigator.scheduling)||void 0===i?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,y=o.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(u.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(u.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=x(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,a=r.context.work((()=>k&&k()||Date.now()>s),i+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:u.setState.of(new b(r.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,o.OO)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),v=s.r$.define({combine:e=>e.length?e[0]:null,enables:[u.state,y]});class ${constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class S{constructor(e,t,n,i,r,s){this.name=e,this.alias=t,this.extensions=n,this.filename=i,this.loadFunc=r,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new S(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let n=/\.([^.]+)$/.exec(t);if(n)for(let i of e)if(i.extensions.indexOf(n[1])>-1)return i;return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some((e=>e==t)))return i;if(n)for(let i of e)for(let e of i.alias){let n=t.indexOf(e);if(n>-1&&(e.length>2||!/\w/.test(t[n-1])&&!/\w/.test(t[n+e.length])))return i}return null}}const w=s.r$.define(),T=s.r$.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function P(e){let t=e.facet(T);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function R(e,t){let n="",i=e.tabSize;if(9==e.facet(T).charCodeAt(0))for(;t>=i;)n+="\t",t-=i;for(let r=0;r=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i-1&&(r+=s-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return(0,s.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const X=new r.md;function j(e){let t=e.type.prop(X);if(t)return t;let n,i=e.firstChild;if(i&&(n=i.type.prop(r.md.closedBy))){let t=e.lastChild,i=t&&n.indexOf(t.name)>-1;return e=>I(e,!0,1,void 0,i&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?A:null}function W(e,t,n){for(;e;e=e.parent){let i=j(e);if(i)return i(q.create(n,t,e))}return null}function A(){return 0}class q extends Z{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new q(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(_(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?W(e,this.pos,this.base):0}}function _(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function z({closing:e,align:t=!0,units:n=1}){return i=>I(i,t,n,e)}function I(e,t,n,i,r){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=i&&s.slice(o,o+i.length)==i||r==e.pos+o,l=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==i)return null;if(!e.type.isSkipped)return e.frome.baseIndent;function G({except:e,units:t=1}={}){return n=>{let i=e&&e.test(n.textAfter);return n.baseIndent+(i?0:t*n.unit)}}function L(){return s.yy.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:i}=e.newSelection.main,r=n.lineAt(i);if(i>r.from+200)return e;let s=n.sliceString(r.from,i);if(!t.some((e=>e.test(s))))return e;let{state:o}=e,a=-1,l=[];for(let{head:c}of o.selection.ranges){let e=o.doc.lineAt(c);if(e.from==a)continue;a=e.from;let t=C(o,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],i=R(o,t);n!=i&&l.push({from:e.from,to:e.from+n.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const D=s.r$.define(),N=new r.md;function U(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(r&&s.from=t&&i.to>n&&(r=i)}}return r}(e,t,n)}function V(e,t){let n=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);return n>=i?void 0:{from:n,to:i}}const B=s.Py.define({map:V}),Y=s.Py.define({map:V});function F(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const H=s.QQ.define({create:()=>o.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(B)&&!ee(e,n.value.from,n.value.to)?e=e.update({add:[ae.range(n.value.from,n.value.to)]}):n.is(Y)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:i}=t.selection.main;e.between(i,i,((e,t)=>{ei&&(n=!0)})),n&&(e=e.update({filterFrom:i,filterTo:i,filter:(e,t)=>t<=i||e>=i}))}return e},provide:e=>o.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!r||r.from>e)&&(r={from:e,to:t})})),r}function ee(e,t,n){let i=!1;return e.between(t,t,((e,r)=>{e==t&&r==n&&(i=!0)})),i}function te(e,t){return e.field(H,!1)?t:t.concat(s.Py.appendConfig.of(oe()))}function ne(e,t,n=!0){let i=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return o.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${e.state.phrase("to")} ${r}.`)}const ie=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of F(e)){let n=J(e.state,t.from,t.to);if(n)return e.dispatch({effects:te(e.state,[B.of(n),ne(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(H,!1))return!1;let t=[];for(let n of F(e)){let i=K(e.state,n.from,n.to);i&&t.push(Y.of(i),ne(e,i,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let i=0;i{let t=e.state.field(H,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(Y.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],re={placeholderDOM:null,placeholderText:"\u2026"},se=s.r$.define({combine:e=>(0,s.BO)(e,re)});function oe(e){let t=[H,ue];return e&&t.push(se.of(e)),t}const ae=o.p.replace({widget:new class extends o.l9{toDOM(e){let{state:t}=e,n=t.facet(se),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),i=K(e.state,n.from,n.to);i&&e.dispatch({effects:Y.of(i)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,i);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",t.phrase("folded code")),r.title=t.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=i,r}}}),le={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class ce extends o.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function he(e={}){let t=Object.assign(Object.assign({},le),e),n=new ce(t,!0),i=new ce(t,!1),r=o.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(v)!=e.state.facet(v)||e.startState.field(H,!1)!=e.state.field(H,!1)||d(e.startState)!=d(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s.f_;for(let r of e.viewportLineBlocks){let s=K(e.state,r.from,r.to)?i:J(e.state,r.from,r.to)?n:null;s&&t.add(r.from,r.from,s)}return t.finish()}}),{domEventHandlers:a}=t;return[r,(0,o.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||s.Xs.empty},initialSpacer:()=>new ce(t,!1),domEventHandlers:Object.assign(Object.assign({},a),{click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return!0;let i=K(e.state,t.from,t.to);if(i)return e.dispatch({effects:Y.of(i)}),!0;let r=J(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:B.of(r)}),!0)}})}),oe()]}const ue=o.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Oe{constructor(e,t){let n;function i(e){let t=l.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}const r="string"==typeof t.all?t.all:t.all?i(t.all):void 0,s=t.scope;this.scope=s instanceof u?e=>e.prop(c)==s.data:s?e=>e==s:void 0,this.style=(0,a.QR)(e.map((e=>({tag:e.tag,class:e.class||i(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=n?new l.V(n):null,this.themeType=t.themeType}static define(e,t){return new Oe(e,t||{})}}const fe=s.r$.define(),de=s.r$.define({combine:e=>e.length?[e[0]]:null});function pe(e){let t=e.facet(fe);return t.length?t:e.facet(de)}function me(e,t){let n,i=[Qe];return e instanceof Oe&&(e.module&&i.push(o.tk.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?i.push(de.of(e)):n?i.push(fe.computeN([o.tk.darkTheme],(t=>t.facet(o.tk.darkTheme)==("dark"==n)?[e]:[]))):i.push(fe.of(e)),i}class ge{constructor(e){this.markCache=Object.create(null),this.tree=d(e.state),this.decorations=this.buildDeco(e,pe(e.state))}update(e){let t=d(e.state),n=pe(e.state),i=n!=pe(e.startState);t.length{n.add(e,t,this.markCache[i]||(this.markCache[i]=o.p.mark({class:i})))}),i,r);return n.finish()}}const Qe=s.Wl.high(o.lg.fromClass(ge,{decorations:e=>e.decorations})),be=Oe.define([{tag:a.pJ.meta,color:"#7a757a"},{tag:a.pJ.link,textDecoration:"underline"},{tag:a.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.pJ.emphasis,fontStyle:"italic"},{tag:a.pJ.strong,fontWeight:"bold"},{tag:a.pJ.strikethrough,textDecoration:"line-through"},{tag:a.pJ.keyword,color:"#708"},{tag:[a.pJ.atom,a.pJ.bool,a.pJ.url,a.pJ.contentSeparator,a.pJ.labelName],color:"#219"},{tag:[a.pJ.literal,a.pJ.inserted],color:"#164"},{tag:[a.pJ.string,a.pJ.deleted],color:"#a11"},{tag:[a.pJ.regexp,a.pJ.escape,a.pJ.special(a.pJ.string)],color:"#e40"},{tag:a.pJ.definition(a.pJ.variableName),color:"#00f"},{tag:a.pJ.local(a.pJ.variableName),color:"#30a"},{tag:[a.pJ.typeName,a.pJ.namespace],color:"#085"},{tag:a.pJ.className,color:"#167"},{tag:[a.pJ.special(a.pJ.variableName),a.pJ.macroName],color:"#256"},{tag:a.pJ.definition(a.pJ.propertyName),color:"#00c"},{tag:a.pJ.comment,color:"#940"},{tag:a.pJ.invalid,color:"#f00"}]),xe=o.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ke="()[]{}",ye=s.r$.define({combine:e=>(0,s.BO)(e,{afterCursor:!0,brackets:ke,maxScanDistance:1e4,renderMatch:Se})}),ve=o.p.mark({class:"cm-matchingBracket"}),$e=o.p.mark({class:"cm-nonmatchingBracket"});function Se(e){let t=[],n=e.matched?ve:$e;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const we=[s.QQ.define({create:()=>o.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],i=t.state.facet(ye);for(let r of t.state.selection.ranges){if(!r.empty)continue;let e=Re(t.state,r.head,-1,i)||r.head>0&&Re(t.state,r.head-1,1,i)||i.afterCursor&&(Re(t.state,r.head,1,i)||r.heado.tk.decorations.from(e)}),xe];function Te(e={}){return[ye.of(e),we]}function Pe(e,t,n){let i=e.prop(t<0?r.md.openedBy:r.md.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function Re(e,t,n,i={}){let r=i.maxScanDistance||1e4,s=i.brackets||ke,o=d(e),a=o.resolveInner(t,n);for(let l=a;l;l=l.parent){let i=Pe(l.type,n,s);if(i&&l.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},h=e.doc.iterRange(t,n>0?e.doc.length:0),u=0;for(let O=0;!h.next().done&&O<=s;){let e=h.value;n<0&&(O+=e.length);let s=t+O*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=o.indexOf(e[t]);if(!(a<0||i.resolveInner(s+t,1).type!=r))if(a%2==0==n>0)u++;else{if(1==u)return{start:c,end:{from:s+t,to:s+t+1},matched:a>>1==l>>1};u--}}n>0&&(O+=e.length)}return h.done?{start:c,matched:!1}:null}(e,t,n,o,a.type,r,s)}function Ce(e,t,n,i,r,s){let o=i.parent,a={from:i.from,to:i.to},l=0,c=null===o||void 0===o?void 0:o.cursor();if(c&&(n<0?c.childBefore(i.from):c.childAfter(i.to)))do{if(n<0?c.to<=i.from:c.from>=i.to){if(0==l&&r.indexOf(c.type.name)>-1&&c.from=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return i(this.string.substr(this.pos,e.length))==i(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function je(e){if("object"!=typeof e)return e;let t={};for(let n in e){let i=e[n];t[n]=i instanceof Array?i.slice():i}return t}class We extends u{constructor(e){let t,n=h(e.languageData),i={token:(s=e).token,blankLine:s.blankLine||(()=>{}),startState:s.startState||(()=>!0),copyState:s.copyState||je,indent:s.indent||(()=>null),languageData:s.languageData||{},tokenTable:s.tokenTable||Ie};var s;super(n,new class extends r._b{createParse(e,n,i){return new _e(t,e,n,i)}},[w.of(((e,t)=>this.getIndent(e,t)))]),this.topNode=function(e){let t=r.Jq.define({id:Ee.length,name:"Document",props:[c.add((()=>e))]});return Ee.push(t),t}(n),t=this,this.streamParser=i,this.stateAfter=new r.md({perNode:!0}),this.tokenTable=e.tokenTable?new Ne(i.tokenTable):Ue}static define(e){return new We(e)}getIndent(e,t){let n=d(e.state),i=n.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let r,s,o=Ae(this,n,0,i.from,t);if(o?(s=o.state,r=o.pos+1):(s=this.streamParser.startState(e.unit),r=0),t-r>1e4)return null;for(;r=i&&n+t.length<=s&&t.prop(e.stateAfter);if(o)return{state:e.streamParser.copyState(o),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let o=t.children[a],l=n+t.positions[a],c=o instanceof r.mp&&l=t.length)return t;s||t.type!=e.topNode||(s=!0);for(let o=t.children.length-1;o>=0;o--){let a,l=t.positions[o],c=t.children[o];if(ln&&Ae(e,r.tree,0-r.offset,n,s);if(o&&(t=qe(e,r.tree,n+r.offset,o.pos+r.offset,!1)))return{state:o.state,tree:t}}return{state:e.streamParser.startState(i?P(i):4),tree:r.mp.empty}}(e,n,o,null===s||void 0===s?void 0:s.state);this.state=a,this.parsedPos=this.chunkStart=o+l.length;for(let r=0;r=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let i=this.rangeIndex;;){let e=this.ranges[i].to;if(e>=n)break;if(t=t.slice(0,e-(n-t.length)),i++,i==this.ranges.length)break;let r=this.ranges[i].from,s=this.lineAfter(r);t+=s,n=r+s.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let i=this.ranges[this.rangeIndex].to,r=e+t;if(n>0?i>r:i>=r)break;t+=this.ranges[++this.rangeIndex].from-i}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=r=this.skipGapsTo(t,r,1);let e=this.chunk.length;n+=r=this.skipGapsTo(n,r,-1),i+=this.chunk.length-e}return this.chunk.push(e,t,n,i),r}parseLine(e){let{line:t,end:n}=this.nextLine(),i=0,{streamParser:r}=this.lang,s=new Xe(t,e?e.state.tabSize:4,e?P(e.state):2);if(s.eol())r.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let e=ze(r.token,s,this.state);if(e&&(i=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+s.start,this.parsedPos+s.pos,4,i)),s.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return i}throw new Error("Stream parser failed to advance stream.")}const Ie=Object.create(null),Ee=[r.Jq.none],Ge=new r.Lj(Ee),Le=[],De=Object.create(null);for(let[Ve,Be]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])De[Ve]=Je(Ie,Be);class Ne{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),De)}resolve(e){return e?this.table[e]||(this.table[e]=Je(this.extra,e)):0}}const Ue=new Ne(Ie);function Me(e,t){Le.indexOf(e)>-1||(Le.push(e),console.warn(t))}function Je(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||a.pJ[r];t?"function"==typeof t?n?n=t(n):Me(r,`Modifier ${r} used at start of tag`):n?Me(r,`Tag ${r} used as modifier`):n=t:Me(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let i=t.replace(/ /g,"_"),s=r.Jq.define({id:Ee.length,name:i,props:[(0,a.Gv)({[i]:n})]});return Ee.push(s),s.id}},78120:function(e,t,n){"use strict";n.d(t,{BO:function(){return we},D0:function(){return ke},Gz:function(){return Ne},IS:function(){return De},Py:function(){return fe},QQ:function(){return N},Wl:function(){return Y},Xs:function(){return Ze},YW:function(){return de},as:function(){return w},bg:function(){return k},cp:function(){return p},f_:function(){return Xe},gc:function(){return $},gm:function(){return x},jT:function(){return W},n0:function(){return S},nZ:function(){return y},q6:function(){return he},r$:function(){return _},uU:function(){return Te},xv:function(){return i},yy:function(){return Se}});class i{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),s.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),s.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new l(this),r=new l(e);for(let s=t,o=t;;){if(i.next(s),r.next(s),s=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new c(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new h(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new r(e):s.from(r.split(e,[])):i.empty}}class r extends i{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.text[r],o=i+s.length;if((t?n:o)>=e)return new u(i,o,n,s);i=o+1,n++}}decompose(e,t,n,i){let s=e<=0&&t>=this.length?this:new r(a(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=o(s.text,e.text.slice(),0,s.length);if(t.length<=32)n.push(new r(t,e.length+s.length));else{let e=t.length>>1;n.push(new r(t.slice(0,e)),new r(t.slice(e)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof r))return super.replace(e,t,n);let i=o(this.text,o(n.text,a(this.text,0,e)),t),l=this.length+n.length-(t-e);return i.length<=32?new r(i,l):s.from(r.split(i,[]),l)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,s=0;r<=t&&se&&s&&(i+=n),er&&(i+=o.slice(Math.max(0,e-r),t-r)),r=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let s of e)n.push(s),i+=s.length+1,32==n.length&&(t.push(new r(n,i)),n=[],i=-1);return i>-1&&t.push(new r(n,i)),t}}class s extends i{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.children[r],o=i+s.length,a=n+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,n,i);i=o+1,n=a+1}}decompose(e,t,n,i){for(let r=0,s=0;s<=t&&r=s){let r=i&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!r?n.push(o):o.decompose(e-s,t-s,n,r)}s=a+1}}replace(e,t,n){if(n.lines=r&&t<=a){let l=o.replace(e-r,t-r,n),c=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let r=this.children.slice();return r[i]=l,new s(r,this.length-(t-e)+n.length)}return super.replace(r,a,l)}r=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,s=0;re&&r&&(i+=n),es&&(i+=o.sliceString(e-s,t-s,n)),s=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof s))return 0;let n=0,[i,r,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==o||r==a)return n;let s=this.children[i],l=e.children[r];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let r of e)n+=r.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new r(n,t)}let i=Math.max(32,n>>5),o=i<<1,a=i>>1,l=[],c=0,h=-1,u=[];function O(e){let t;if(e.lines>o&&e instanceof s)for(let n of e.children)O(n);else e.lines>a&&(c>a||!c)?(f(),l.push(e)):e instanceof r&&c&&(t=u[u.length-1])instanceof r&&e.lines+t.lines<=32?(c+=e.lines,h+=e.length+1,u[u.length-1]=new r(t.text.concat(e.text),t.length+1+e.length)):(c+e.lines>i&&f(),c+=e.lines,h+=e.length+1,u.push(e))}function f(){0!=c&&(l.push(1==u.length?u[0]:s.from(u,h)),h=-1,c=u.length=0)}for(let r of e)O(r);return f(),1==l.length?l[0]:new s(l,t)}}function o(e,t,n=0,i=1e9){for(let r=0,s=0,o=!0;s=n&&(l>i&&(a=a.slice(0,i-r)),r0?1:(e instanceof r?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],s=this.offsets[n],o=s>>1,a=i instanceof r?i.text.length:i.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof r){let r=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let s=i.children[o+(t<0?-1:0)];e>s.length?(e-=s.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(s),this.offsets.push(t>0?1:(s instanceof r?s.text.length:s.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class c{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class h{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=h.prototype[Symbol.iterator]=function(){return this});class u{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}let O="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let Me=1;Mee)return O[t-1]<=e;return!1}function d(e){return e>=127462&&e<=127487}function p(e,t,n=!0,i=!0){return(n?m:g)(e,t,i)}function m(e,t,n){if(t==e.length)return t;t&&Q(e.charCodeAt(t))&&b(e.charCodeAt(t-1))&&t--;let i=x(e,t);for(t+=y(i);t=0&&d(x(e,i));)n++,i-=2;if(n%2==0)break;t+=2}}}return t}function g(e,t,n){for(;t>0;){let i=m(e,t-2,n);if(i=56320&&e<57344}function b(e){return e>=55296&&e<56320}function x(e,t){let n=e.charCodeAt(t);if(!b(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return Q(i)?i-56320+(n-55296<<10)+65536:n}function k(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function y(e){return e<65536?1:2}const v=/\r\n?|\n/;var $=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}($||($={}));class S{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-i);r+=o}else{if(n!=$.Simple&&l>=e&&(n==$.TrackDel&&ie||n==$.TrackBefore&&ie))return null;if(l>e||l==e&&t<0&&!o)return e==i||t<0?r:r+a;r+=a}i=l}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&r>=e)return!(it)||"cover";i=r}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new S(e)}static create(e){return new S(e)}}class w extends S{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return R(this,((t,n,i,r,s)=>e=e.replace(i,i+(n-t),s)),!1),e}mapDesc(e,t=!1){return C(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,s=0;r=0){t[r]=a,t[r+1]=o;let l=r>>1;for(;n.length0&&P(n,t,r.text),r.forward(e),o+=e}let l=e[s++];for(;o>1].toJSON()))}return e}static of(e,t,n){let r=[],s=[],o=0,a=null;function l(e=!1){if(!e&&!r.length)return;oa||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=h?"string"==typeof h?i.of(h.split(n||v)):h:i.empty,O=u.length;if(e==a&&0==O)return;eo&&T(r,e-o,-1),T(r,a-e,O),P(s,r,u),o=a}}(e),l(!a),a}static empty(e){return new w(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==s.length)t.push(s[0],0);else{for(;n.length=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:i?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function P(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],c=e.sections[a++];t(s,h,o,u,O),s=h,o=u}}}function C(e,t,n,i=!1){let r=[],s=i?[]:null,o=new X(e),a=new X(t);for(let l=-1;;)if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);T(r,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||l==o.i||0==o.off&&(a.len=0&&l=0)){if(o.done&&a.done)return s?w.createSet(r,s):S.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=o.len;for(;t;)if(-1==a.ins){let n=Math.min(t,a.len);e+=n,t-=n,a.forward(n)}else{if(!(0==a.ins&&a.lene||o.ins>=0&&o.len>e)&&(a||i.length>t),s.forward2(e),o.forward(e)}}else T(i,0,o.ins,a),r&&P(r,i,o.text),o.next()}}class X{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?i.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?i.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class j{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new j(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return W.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return W.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return W.range(e.anchor,e.head)}static create(e,t,n){return new j(e,t,n)}}class W{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:W.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new W(e.ranges.map((e=>j.fromJSON(e))),e.main)}static single(e,t=e){return new W([W.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;ie?4:0))}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let i=1;in.head?W.range(o,s):W.range(s,o))}}return new W(e,t)}}function A(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let q=0;class _{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=q++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}static define(e={}){return new _(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:z),!!e.static,e.enables)}of(e){return new I([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function z(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class I{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=q++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,s=e[r]>>1,o=2==this.type,a=!1,l=!1,c=[];for(let h of this.dependencies)"doc"==h?a=!0:"selection"==h?l=!0:0==(1&(null!==(t=e[h.id])&&void 0!==t?t:1))&&c.push(e[h.id]);return{create:e=>(e.values[s]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||G(e,c)){let t=n(e);if(o?!E(t,e.values[s],i):!i(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a=n(e),l=t.config.address[r];if(null!=l){let n=ne(t,l);if(this.dependencies.every((n=>n instanceof _?t.facet(n)===e.facet(n):!(n instanceof N)||t.field(n,!1)==e.field(n,!1)))||(o?E(a,n,i):i(a,n)))return e.values[s]=n,0}return e.values[s]=a,1}}}}function E(e,t,n){if(e.length!=t.length)return!1;for(let i=0;ie[t.id])),r=n.map((e=>e.type)),s=i.filter((e=>!(1&e))),o=e[t.id]>>1;function a(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(D).find((e=>e.field==this));return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],r=this.updateF(i,n);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,D.of({field:this,create:e})]}get extension(){return this}}const U=4,M=3,J=2,V=1;function B(e){return t=>new F(t,e)}const Y={highest:B(0),high:B(V),default:B(J),low:B(M),lowest:B(U)};class F{constructor(e,t){this.inner=e,this.prec=t}}class H{of(e){return new K(this,e)}reconfigure(e){return H.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class K{constructor(e,t){this.compartment=e,this.inner=t}}class ee{constructor(e,t,n,i,r,s){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i=[],r=Object.create(null),s=new Map;for(let u of function(e,t,n){let i=[[],[],[],[],[]],r=new Map;function s(e,o){let a=r.get(e);if(null!=a){if(a<=o)return;let t=i[a].indexOf(e);t>-1&&i[a].splice(t,1),e instanceof K&&n.delete(e.compartment)}if(r.set(e,o),Array.isArray(e))for(let t of e)s(t,o);else if(e instanceof K){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;n.set(e.compartment,i),s(i,o)}else if(e instanceof F)s(e.inner,e.prec);else if(e instanceof N)i[o].push(e),e.provides&&s(e.provides,o);else if(e instanceof I)i[o].push(e),e.facet.extensions&&s(e.facet.extensions,J);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(t,o)}}return s(e,J),i.reduce(((e,t)=>e.concat(t)))}(e,t,s))u instanceof N?i.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let o=Object.create(null),a=[],l=[];for(let u of i)o[u.id]=l.length<<1,l.push((e=>u.slot(e)));let c=null===n||void 0===n?void 0:n.config.facets;for(let u in r){let e=r[u],t=e[0].facet,i=c&&c[u]||[];if(e.every((e=>0==e.type)))if(o[t.id]=a.length<<1|1,z(i,e))a.push(n.facet(t));else{let i=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(i,n.facet(t))?n.facet(t):i)}else{for(let t of e)0==t.type?(o[t.id]=a.length<<1|1,a.push(t.value)):(o[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));o[t.id]=l.length<<1,l.push((n=>L(n,t,e)))}}let h=l.map((e=>e(o)));return new ee(e,s,h,o,a,r)}}function te(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function ne(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ie=_.define(),re=_.define({combine:e=>e.some((e=>e)),static:!0}),se=_.define({combine:e=>e.length?e[0]:void 0,static:!0}),oe=_.define(),ae=_.define(),le=_.define(),ce=_.define({combine:e=>!!e.length&&e[0]});class he{constructor(e,t){this.type=e,this.value=t}static define(){return new ue}}class ue{of(e){return new he(this,e)}}class Oe{constructor(e){this.map=e}of(e){return new fe(this,e)}}class fe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new fe(this.type,t)}is(e){return this.type==e}static define(e={}){return new Oe(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}}fe.reconfigure=fe.define(),fe.appendConfig=fe.define();class de{constructor(e,t,n,i,r,s){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,n&&A(n,t.newLength),r.some((e=>e.type==de.time))||(this.annotations=r.concat(de.time.of(Date.now())))}static create(e,t,n,i,r,s){return new de(e,t,n,i,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(de.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function pe(e,t){let n=[];for(let i=0,r=0;;){let s,o;if(i=e[i]))s=e[i++],o=e[i++];else{if(!(r=0;r--){let s=n[r](e);s&&Object.keys(s).length&&(i=me(i,ge(t,s,e.changes.newLength),!0))}return i==e?e:de.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(oe)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:pe(n,t))}if(!0!==n){let i,r;if(!1===n)r=e.changes.invertedDesc,i=w.empty(t.doc.length);else{let t=e.changes.filter(n);i=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=de.create(t,i,e.selection&&e.selection.map(r),fe.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let i=t.facet(ae);for(let r=i.length-1;r>=0;r--){let n=i[r](e);e=n instanceof de?n:Array.isArray(n)&&1==n.length&&n[0]instanceof de?n[0]:Qe(t,xe(n),!1)}return e}(r):r)}de.time=he.define(),de.userEvent=he.define(),de.addToHistory=he.define(),de.remote=he.define();const be=[];function xe(e){return null==e?be:Array.isArray(e)?e:[e]}var ke=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ke||(ke={}));const ye=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ve;try{ve=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Ue){}function $e(e){return t=>{if(!/\S/.test(t))return ke.Space;if(function(e){if(ve)return ve.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ye.test(n)))return!0}return!1}(t))return ke.Word;for(let n=0;n-1)return ke.Word;return ke.Other}}class Se{constructor(e,t,n,i,r,s){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let o=0;or.set(t,e))),n=null),r.set(s.value.compartment,s.value.extension)):s.is(fe.reconfigure)?(n=null,i=s.value):s.is(fe.appendConfig)&&(n=null,i=xe(i).concat(s.value));if(n)t=e.startState.values.slice();else{n=ee.resolve(i,r,this),t=new Se(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new Se(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:W.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],s=xe(n.effects);for(let o=1;ot.spec.fromJSON(s,e))))}return Se.create({doc:e.doc,selection:W.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=ee.resolve(e.extensions||[],new Map),n=e.doc instanceof i?e.doc:i.of((e.doc||"").split(t.staticFacet(Se.lineSeparator)||v)),r=e.selection?e.selection instanceof W?e.selection:W.single(e.selection.anchor,e.selection.head):W.single(0);return A(r,n.length),t.staticFacet(re)||(r=r.asSingle()),new Se(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Se.tabSize)}get lineBreak(){return this.facet(Se.lineSeparator)||"\n"}get readOnly(){return this.facet(ce)}phrase(e,...t){for(let n of this.facet(Se.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]}))),e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(ie))for(let s of r(this,t,n))Object.prototype.hasOwnProperty.call(s,e)&&i.push(s[e]);return i}charCategorizer(e){return $e(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),s=e-n,o=e-n;for(;s>0;){let e=p(t,s,!1);if(r(t.slice(e,s))!=ke.Word)break;s=e}for(;oe.length?e[0]:4}),Se.lineSeparator=se,Se.readOnly=ce,Se.phrases=_.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every((n=>e[n]==t[n]))}}),Se.languageData=ie,Se.changeFilter=oe,Se.transactionFilter=ae,Se.transactionExtender=le,H.reconfigure=fe.define();class Te{eq(e){return this==e}range(e,t=e){return Pe.create(e,t,this)}}Te.prototype.startSide=Te.prototype.endSide=0,Te.prototype.point=!1,Te.prototype.mapMode=$.TrackDel;class Pe{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Pe(e,t,n)}}function Re(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ce{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let r=n?this.to:this.from;for(let s=i,o=r.length;;){if(s==o)return s;let i=s+o>>1,a=r[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==s)return a>=0?s:o;a>=0?o=i:s=i+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),s=this.findIndex(n,1e9,!1,r);rc||l==c&&h.startSide>0&&h.endSide<=0)continue;(c-l||h.endSide-h.startSide)<0||(s<0&&(s=l),h.point&&(o=Math.max(o,c-l)),n.push(h),i.push(l-s),r.push(c-s))}return{mapped:n.length?new Ce(i,r,n,o):null,pos:s}}}class Ze{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new Ze(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(n&&(t=t.slice().sort(Re)),this.isEmpty)return t.length?Ze.of(t):this;let o=new We(this,null,-1).goto(0),a=0,l=[],c=new Xe;for(;o.value||a=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ro.to||r=r&&e<=r+s.length&&!1===s.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Ae.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ae.from(e).goto(t)}static compare(e,t,n,i,r=-1){let s=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),o=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=je(s,o,n),l=new _e(s,a,r),c=new _e(o,a,r);n.iterGaps(((e,t,n)=>ze(l,e,c,t,n,i))),n.empty&&0==n.length&&ze(l,0,c,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=1e9);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=s.length)return!1;if(!r.length)return!0;let o=je(r,s),a=new _e(r,o,0).goto(n),l=new _e(s,o,0).goto(n);for(;;){if(a.to!=l.to||!Ie(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>i)return!0;a.next(),l.next()}}static spans(e,t,n,i,r=-1){let s=new _e(e,null,r).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,n);if(s.point?(i.point(o,e,s.point,s.activeForPoint(s.to),a,s.pointRank),a=s.openEnd(e)+(s.to>e?1:0)):e>o&&(i.span(o,e,s.active,a),a=s.openEnd(e)),s.to>n)break;o=s.to,s.next()}return a}static of(e,t=!1){let n=new Xe;for(let i of e instanceof Pe?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Re);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}}Ze.empty=new Ze([],[],null,-1),Ze.empty.nextLayer=Ze.empty;class Xe{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new Ce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Xe)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function je(e,t,n){let i=new Map;for(let s of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new We(s,t,n,r));return 1==i.length?i[0]:new Ae(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)qe(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)qe(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),qe(this.heap,0)}}}function qe(e,t){for(let n=e[t];;){let i=1+(t<<1);if(i>=e.length)break;let r=e[i];if(i+1=0&&(r=e[i+1],i++),n.compare(r)<0)break;e[i]=n,e[t]=r,t=i}}class _e{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ae.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ee(this.active,e),Ee(this.activeTo,e),Ee(this.activeRank,e),this.minActive=Le(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Ee(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point){if(!(t&&this.cursor.to==this.to&&this.cursor.frome&&i++,this.cursor.next()}}}if(n){let t=0;for(;t=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function ze(e,t,n,i,r,s){e.goto(t),n.goto(i);let o=i+r,a=i,l=i-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,i=t<0?e.to+l:n.to,r=Math.min(i,o);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Ie(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||s.comparePoint(a,r,e.point,n.point):r>a&&!Ie(e.active,n.active)&&s.compareRange(a,r,e.active,n.active),i>o)break;a=i,t<=0&&e.next(),t>=0&&n.next()}}function Ie(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;i--)e[i+1]=e[i];e[t]=n}function Le(e,t){let n=-1,i=1e9;for(let r=0;r=t)return r;if(r==e.length)break;s+=9==e.charCodeAt(r)?n-s%n:1,r=p(e,r)}return!0===i?-1:e.length}},41113:function(e,t,n){"use strict";n.d(t,{FE:function(){return W},Jq:function(){return c},L3:function(){return i},Lj:function(){return h},_b:function(){return X},hr:function(){return C},i9:function(){return Z},md:function(){return o},mp:function(){return d},vj:function(){return f}});const i=1024;let r=0;class s{constructor(e,t){this.from=e,this.to=t}}class o{constructor(e={}){this.id=r++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=c.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}o.closedBy=new o({deserialize:e=>e.split(" ")}),o.openedBy=new o({deserialize:e=>e.split(" ")}),o.group=new o({deserialize:e=>e.split(" ")}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class a{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const l=Object.create(null);class c{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new c(e.name||"",t,e.id,n);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(o.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(o.group),i=-1;i<(n?n.length:0);i++){let r=t[i<0?e.name:n[i]];if(r)return r}}}}c.none=new c("",Object.create(null),0,8);class h{constructor(e){this.types=e;for(let t=0;t=i&&(s.type.isAnonymous||!1!==t(s))){if(s.firstChild())continue;e=!0}for(;e&&n&&!s.type.isAnonymous&&n(s),!s.nextSibling();){if(!s.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:R(c.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new d(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new d(c.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:s=i,reused:a=[],minRepeatType:l=r.types.length}=e,c=Array.isArray(n)?new p(n,n.length):n,h=r.types,u=0,O=0;function f(e,t,n,i,o){let{id:d,start:p,end:y,size:v}=c,$=O;for(;v<0;){if(c.next(),-1==v){let t=a[d];return n.push(t),void i.push(p-e)}if(-3==v)return void(u=d);if(-4==v)return void(O=d);throw new RangeError(`Unrecognized record size: ${v}`)}let S,w,T=h[d],P=p-e;if(y-p<=s&&(w=x(c.pos-t,o))){let t=new Uint16Array(w.size-w.skip),n=c.pos-w.size,i=t.length;for(;c.pos>n;)i=k(w.start,t,i);S=new m(t,y-w.start,r),P=w.start-e}else{let e=c.pos-v;c.next();let t=[],n=[],i=d>=l?d:-1,r=0,o=y;for(;c.pos>e;)i>=0&&c.id==i&&c.size>=0?(c.end<=o-s&&(Q(t,n,p,r,c.end,o,i,$),r=t.length,o=c.end),c.next()):f(p,e,t,n,i);if(i>=0&&r>0&&r-1&&r>0){let e=g(T);S=R(T,t,n,0,t.length,0,y-p,e,e)}else S=b(T,t,n,y-p,$-y)}n.push(S),i.push(P)}function g(e){return(t,n,i)=>{let r,s,a=0,l=t.length-1;if(l>=0&&(r=t[l])instanceof d){if(!l&&r.type==e&&r.length==i)return r;(s=r.prop(o.lookAhead))&&(a=n[l]+r.length+s)}return b(e,t,n,i,a)}}function Q(e,t,n,i,s,o,a,l){let c=[],h=[];for(;e.length>i;)c.push(e.pop()),h.push(t.pop()+n-s);e.push(b(r.types[a],c,h,o-s,l-o)),t.push(s-n)}function b(e,t,n,i,r=0,s){if(u){let e=[o.contextHash,u];s=s?[e].concat(s):[e]}if(r>25){let e=[o.lookAhead,r];s=s?[e].concat(s):[e]}return new d(e,t,n,i,s)}function x(e,t){let n=c.fork(),i=0,r=0,o=0,a=n.end-s,h={size:0,start:0,skip:0};e:for(let s=n.pos-e;n.pos>s;){let e=n.size;if(n.id==t&&e>=0){h.size=i,h.start=r,h.skip=o,o+=4,i+=4,n.next();continue}let c=n.pos-e;if(e<0||c=l?4:0,O=n.start;for(n.next();n.pos>c;){if(n.size<0){if(-3!=n.size)break e;u+=4}else n.id>=l&&(u+=4);n.next()}r=O,i+=e,o+=u}return(t<0||i==e)&&(h.size=i,h.start=r,h.skip=o),h.size>4?h:void 0}function k(e,t,n){let{id:i,start:r,end:s,size:o}=c;if(c.next(),o>=0&&i4){let i=c.pos-(o-4);for(;c.pos>i;)n=k(e,t,n)}t[--n]=a,t[--n]=s-e,t[--n]=r-e,t[--n]=i}else-3==o?u=i:-4==o&&(O=i);return n}let y=[],v=[];for(;c.pos>0;)f(e.start||0,e.bufferStart||0,y,v,-1);let $=null!==(t=e.length)&&void 0!==t?t:y.length?v[0]+y[0].length:0;return new d(h[e.topID],y.reverse(),v.reverse(),$)}(e)}}d.empty=new d(c.none,[],[],0);class p{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new p(this.buffer,this.index)}}class m{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return c.none}toString(){let e=[];for(let t=0;t0));a=s[a+3]);return o}slice(e,t,n,i){let r=this.buffer,s=new Uint16Array(t-e);for(let o=e,a=0;o=t&&nt;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function Q(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function b(e,t,n,i){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=c;e+=t){let c=a[e],h=l[e]+s.from;if(g(i,n,h,h+c.length))if(c instanceof m){if(r&f.ExcludeBuffers)continue;let o=c.findChild(0,c.buffer.length,t,n-h,i);if(o>-1)return new $(new v(s,c,e,h),null,o)}else if(r&f.IncludeAnonymous||!c.type.isAnonymous||w(c)){let a;if(!(r&f.IgnoreMounts)&&c.props&&(a=c.prop(o.mounted))&&!a.overlay)return new x(a.tree,h,e,s);let l=new x(c,h,e,s);return r&f.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?c.children.length-1:0,t,n,i)}}if(r&f.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&f.IgnoreOverlays)&&(i=this._tree.prop(o.mounted))&&i.overlay){let n=e-this.from;for(let{from:e,to:r}of i.overlay)if((t>0?e<=n:e=n:r>n))return new x(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new S(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Q(this,e)}getChild(e,t=null,n=null){let i=k(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return k(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return y(this,e)}}function k(e,t,n,i){let r=e.cursor(),s=[];if(!r.firstChild())return s;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return s;for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(t)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function y(e,t,n=t.length-1){for(let i=e.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}class v{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class ${constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new $(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&f.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new $(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new $(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new $(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new S(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let s=n.buffer[this.index+1],o=n.buffer[this.index+2];e.push(n.slice(i,r,s,o)),t.push(0)}return new d(this.type,e,t,this.to-this.from)}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Q(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=k(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return k(this,e,t,n)}get node(){return this}matchContext(e){return y(this,e)}}class S{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof x)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof x?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&f.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&f.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&f.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let i=t+e,r=e<0?-1:n._tree.children.length;i!=r;i+=e){let e=n._tree.children[i];if(this.mode&f.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||w(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;t=s,n=r+1;break e}i=this.stack[--r]}for(let i=n;i=0;r--){if(r<0)return y(this.node,e,i);let s=n[t.buffer[this.stack[r]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function w(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||w(e)))}const T=new WeakMap;function P(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let n=T.get(t);if(null==n){n=1;for(let i of t.children){if(i.type!=e||!(i instanceof d)){n=1;break}n+=P(e,i)}T.set(t,n)}return n}function R(e,t,n,i,r,s,o,a,l){let c=0;for(let f=i;f=h)break;d+=t}if(c==r+1){if(d>h){let e=n[r];t(e.children,e.positions,0,e.children.length,i[r]+a);continue}u.push(n[r])}else{let t=i[c-1]+n[c-1].length-f;u.push(R(e,n,i,r,c,f,t,null,l))}O.push(f+a-s)}}(t,n,i,r,0),(a||l)(u,O,o)}class C{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof $?this.setBuffer(e.context.buffer,e.index,t):e instanceof x&&this.map.set(e.tree,t)}get(e){return e instanceof $?this.getBuffer(e.context.buffer,e.index):e instanceof x?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Z{constructor(e,t,n,i,r=!1,s=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new Z(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&i.push(r);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let c=o=n)for(;s&&s.from=t.from||h<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,h)-l;t=e>=n?null:new Z(e,n,t.tree,t.offset+l,o>0,!!c)}if(t&&i.push(t),s.to>h)break;s=rnew s(e.from,e.to))):[new s(0,0)]:[new s(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}}class j{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function W(e){return(t,n,i,r)=>new z(t,e,n,i,r)}class A{constructor(e,t,n,i,r){this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=r}}class q{constructor(e,t,n,i,r,s,o){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=r,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const _=new o({perNode:!0});class z{constructor(e,t,n,i,r){this.nest=t,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new d(e.type,e.children,e.positions,e.length,e.propValues.concat([[_,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[o.mounted.id]=new a(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let r=n.from+e.pos,s=n.to+e.pos;r>=i.from&&s<=i.to&&!t.ranges.some((e=>e.fromr))&&t.ranges.push({from:r,to:s})}}l=!1}else if(n&&(o=I(n.ranges,i.from,i.to)))l=2!=o;else if(!i.type.isAnonymous&&i.fromnew s(e.from-i.from,e.to-i.from))):null,i.tree,e)),r.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):l=!1}}else t&&(a=t.predicate(i))&&(!0===a&&(a=new s(i.from,i.to)),a.fromnew s(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function I(e,t,n){for(let i of e){if(i.from>=n)break;if(i.to>t)return i.from<=t&&i.to>=n?2:1}return 0}function E(e,t,n,i,r,s){if(t=t.to);i++);let o=r.children[i],a=o.buffer;r.children[i]=function e(n,i,r,l,c){let h=n;for(;a[h+2]+s<=t.from;)h=a[h+3];let u=[],O=[];E(o,n,h,u,O,l);let f=a[h+1],p=a[h+2],m=f+s==t.from&&p+s==t.to&&a[h]==t.type.id;return u.push(m?t.toTree():e(h+4,a[h+3],o.set.types[a[h]],f,p-f)),O.push(f-l),E(o,a[h+3],i,u,O,l),new d(r,u,O,c)}(0,a.length,c.none,0,o.length);for(let l=0;l<=n;l++)e.childAfter(t.from)}class L{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(f.IncludeAnonymous|f.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from=e&&t.enter(n,1,f.IgnoreOverlays|f.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof d))break;t=t.children[0]}return!1}}class D{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(_))&&void 0!==t?t:n.to,this.inner=new L(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(_))&&void 0!==e?e:t.to,this.inner=new L(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(n=e.tree)||void 0===n?void 0:n.prop(o.mounted);if(r&&r.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&i.push({frag:n,pos:e.from-n.offset,mount:r})}}}return i}}function N(e,t){let n=null,i=t;for(let r=1,o=0;r=l)break;e.to<=a||(n||(i=n=t.slice()),e.froml&&n.splice(o+1,0,new s(l,e.to))):e.to>l?n[o--]=new s(l,e.to):n.splice(o--,1))}}return i}function U(e,t,n,i){let r=0,o=0,a=!1,l=!1,c=-1e9,h=[];for(;;){let u=r==e.length?1e9:a?e[r].to:e[r].from,O=o==t.length?1e9:l?t[o].to:t[o].from;if(a!=l){let e=Math.max(c,n),t=Math.min(u,O,i);enew s(e.from+i,e.to+i))),l,c);for(let t=0,i=l;;t++){let s=t==a.length,l=s?c:a[t].from;if(l>i&&n.push(new Z(i,l,r.tree,-e,o.from>=i||o.openStart,o.to<=l||o.openEnd)),s)break;i=a[t].to}}else n.push(new Z(l,c,r.tree,-e,o.from>=e||o.openStart,o.to<=a||o.openEnd))}return n}},35524:function(e,t,n){"use strict";n.d(t,{Gv:function(){return c},QR:function(){return O},Vp:function(){return s},bW:function(){return f},pJ:function(){return C}});var i=n(41113);let r=0;class s{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=r++}static define(e){if(null===e||void 0===e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new s([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new a;return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let o=0;class a{constructor(){this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(i=t,r=n.modified,i.length==r.length&&i.every(((e,t)=>e==r[t])));var i,r}));if(n)return n;let i=[],r=new s(i,e,t);for(let s of t)s.instances.push(r);let o=l(t);for(let s of e.set)for(let e of o)i.push(a.get(s,e));return r}}function l(e){let t=[e];for(let n=0;n0&&t+3==e.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!i)throw new RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),t+=i[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){r=0;break}if("/"!=o)throw new RangeError("Invalid path: "+e);s=e.slice(t)}let o=n.length-1,a=n[o];if(!a)throw new RangeError("Invalid path: "+e);let l=new u(i,r,o>0?n.slice(0,o):null);t[a]=l.sort(t[a])}}return h.add(t)}const h=new i.md;class u{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=r;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function f(e,t,n,i=0,r=e.length){let s=new d(i,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),i,r,"",s.highlighters),s.flush(r)}u.empty=new u([],2,null);class d{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,s){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(s=this.highlighters.filter((e=>!e.scope||e.scope(o))));let c=r,O=function(e){let t=e.type.prop(h);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||u.empty,f=function(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}(s,O.tags);if(f&&(c&&(c+=" "),c+=f,1==O.mode&&(r+=(r?" ":"")+f)),this.startSpan(e.from,c),O.opaque)return;let d=e.tree&&e.tree.prop(i.md.mounted);if(d&&d.overlay){let i=e.node.enter(d.overlay[0].from+a,1),o=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),h=e.firstChild();for(let u=0,O=a;;u++){let f=u=p)&&e.nextSibling()););if(!f||p>n)break;O=f.to+a,O>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+a),Math.min(n,O),r,o),this.startSpan(O,c))}h&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,s),this.startSpan(Math.min(n,e.to),c)}}while(e.nextSibling());e.parent()}}}const p=s.define,m=p(),g=p(),Q=p(g),b=p(g),x=p(),k=p(x),y=p(x),v=p(),$=p(v),S=p(),w=p(),T=p(),P=p(T),R=p(),C={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:Q,tagName:p(Q),propertyName:b,attributeName:p(b),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:x,string:k,docString:p(k),character:p(k),attributeValue:p(k),number:y,integer:p(y),float:p(y),bool:p(x),regexp:p(x),escape:p(x),color:p(x),url:p(x),keyword:S,self:p(S),null:p(S),atom:p(S),unit:p(S),modifier:p(S),operatorKeyword:p(S),controlKeyword:p(S),definitionKeyword:p(S),moduleKeyword:p(S),operator:w,derefOperator:p(w),arithmeticOperator:p(w),logicOperator:p(w),bitwiseOperator:p(w),compareOperator:p(w),updateOperator:p(w),definitionOperator:p(w),typeOperator:p(w),controlOperator:p(w),punctuation:T,separator:p(T),bracket:P,angleBracket:p(P),squareBracket:p(P),paren:p(P),brace:p(P),content:v,heading:$,heading1:p($),heading2:p($),heading3:p($),heading4:p($),heading5:p($),heading6:p($),contentSeparator:p(v),list:p(v),quote:p(v),emphasis:p(v),strong:p(v),link:p(v),monospace:p(v),strikethrough:p(v),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:R,documentMeta:p(R),annotation:p(R),processingInstruction:p(R),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};O([{tag:C.link,class:"tok-link"},{tag:C.heading,class:"tok-heading"},{tag:C.emphasis,class:"tok-emphasis"},{tag:C.strong,class:"tok-strong"},{tag:C.keyword,class:"tok-keyword"},{tag:C.atom,class:"tok-atom"},{tag:C.bool,class:"tok-bool"},{tag:C.url,class:"tok-url"},{tag:C.labelName,class:"tok-labelName"},{tag:C.inserted,class:"tok-inserted"},{tag:C.deleted,class:"tok-deleted"},{tag:C.literal,class:"tok-literal"},{tag:C.string,class:"tok-string"},{tag:C.number,class:"tok-number"},{tag:[C.regexp,C.escape,C.special(C.string)],class:"tok-string2"},{tag:C.variableName,class:"tok-variableName"},{tag:C.local(C.variableName),class:"tok-variableName tok-local"},{tag:C.definition(C.variableName),class:"tok-variableName tok-definition"},{tag:C.special(C.variableName),class:"tok-variableName2"},{tag:C.definition(C.propertyName),class:"tok-propertyName tok-definition"},{tag:C.typeName,class:"tok-typeName"},{tag:C.namespace,class:"tok-namespace"},{tag:C.className,class:"tok-className"},{tag:C.macroName,class:"tok-macroName"},{tag:C.propertyName,class:"tok-propertyName"},{tag:C.operator,class:"tok-operator"},{tag:C.comment,class:"tok-comment"},{tag:C.meta,class:"tok-meta"},{tag:C.invalid,class:"tok-invalid"},{tag:C.punctuation,class:"tok-punctuation"}])},53105:function(e,t,n){"use strict";n.d(t,{IK:function(){return T},Jq:function(){return d},WQ:function(){return P}});var i,r=n(41113),s=n(34155);class o{constructor(e,t,n,i,r,s,o,a,l,c=0,h){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=r,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=h}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new o(e,[],t,n,n,0,[],0,i?new a(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=65535&e,{parser:i}=this.p,r=i.dynamicPrecedence(n);if(r&&(this.score+=r),0==t)return this.pushState(i.getGoto(this.state,n,!0),this.reducePos),ns;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,n,i=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t)return void(e.buffer[i-2]=n)}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>n;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n){let i=this.pos;if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:s}=this.p;(n>this.pos||t<=s.maxNode)&&(this.pos=n,s.stateFlag(r,1)||(this.reducePos=n)),this.pushState(r,i),this.shiftContext(t,i),t<=s.maxNode&&this.buffer.push(t,i,n,4)}else this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4)}apply(e,t,n){65536&e?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new l(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==(65536&n))return!0;if(0==n)return!1;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i,r=0;r1&t&&e==i))||n.push(t[e],i)}t=n}let n=[];for(let i=0;i>19,i=65535&e,r=this.stack.length-3*n;if(r<0||t.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}!function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(i||(i={}));class l{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class c{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new c(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new c(this.stack,this.pos,this.index)}}class h{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const u=new h;class O{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=u,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,r=this.pos+e;for(;rn.to:r>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];r+=e.from-n.to,n=e}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,i=this.chunkOff+e;if(i>=0&&i=this.chunk2Pos&&ti.to&&(this.chunk2=this.chunk2.slice(0,i.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=u,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class f{constructor(e,t){this.data=e,this.id=t}token(e,t){!function(e,t,n,i){let r=0,s=1<0){let n=e[h];if(a.allows(n)&&(-1==t.token.value||t.token.value==n||o.overrides(n,t.token.value))){t.acceptToken(n);break}}let i=t.next,l=0,c=e[r+2];if(!(t.next<0&&c>l&&65535==e[n+3*c-3])){for(;l>1,o=n+s+(s<<1),a=e[o],h=e[o+1];if(i=h)){r=e[o+2],t.advance();continue e}l=s+1}}break}r=e[n+3*c-1]}}(this.data,e,t,this.id)}}f.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;class d{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function p(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,r=0;i=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),s+=r,n)break;s*=46}n?n[r++]=s:n=new t(s)}return n}const m="undefined"!=typeof s&&s.env&&/\bparse\b/.test(s.env.LOG);let g=null;var Q,b;function x(e,t,n){let i=e.cursor(r.vj.IncludeAnonymous);for(i.moveTo(t);;)if(!(n<0?i.childBefore(t):i.childAfter(t)))for(;;){if((n<0?i.tot)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}!function(e){e[e.Margin=25]="Margin"}(Q||(Q={}));class k{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?x(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?x(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(s instanceof r.mp){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class y{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new h))}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:r}=i,s=i.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let l=0;lc.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!i.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new h,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new h,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i=0&&n.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let r=0;r4*e.bufferLength?new k(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,r=this.stacks=[];for(let s=0;si)r.push(o);else{if(this.advanceStack(o,r,n))continue;{e||(e=[],t=[]),e.push(o);let n=this.tokens.getMainToken(o);t.push(n.value,n.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>i))&&this.recovering--}else if(r.length>1)e:for(let s=0;s500&&n.buffer.length>500){if(!((e.score-n.score||e.buffer.length-n.buffer.length)>0)){r.splice(s--,1);continue e}r.splice(t--,1)}}}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?s.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(r.md.contextHash)||0)==n))return e.useNode(a,i),m&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(a.type.id)})`),!0;if(!(a instanceof r.mp)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof r.mp&&0==a.positions[0]))break;a=l}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),m&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(65535&a)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;ri?t.push(O):n.push(O)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return $(e,t),!0}}runRecovery(e,t,n){let i=null,r=!1;for(let s=0;s ":"";if(o.deadEnd){if(r)continue;if(r=!0,o.restart(),m&&console.log(c+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))continue}let h=o.split(),u=c;for(let e=0;h.forceReduce()&&e<10;e++){if(m&&console.log(u+this.stackID(h)+" (via force-reduce)"),this.advanceFully(h,n))break;m&&(u=this.stackID(h)+" -> ")}for(let e of o.recoverByInsert(a))m&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),m&&console.log(c+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),$(o,n)):(!i||i.scoree;class T{constructor(e){this.start=e.start,this.shift=e.shift||w,this.reduce=e.reduce||w,this.reuse=e.reuse||w,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class P extends r._b{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;re.topRules[t][1])),i=[];for(let r=0;r=0)s(n,e,a[t++]);else{let i=a[t+-n];for(let r=-n;r>0;r--)s(a[t++],e,i);t++}}}this.nodeSet=new r.Lj(t.map(((t,s)=>r.Jq.define({name:s>=this.minRepeatTerm?void 0:t,id:s,props:i[s],top:n.indexOf(s)>-1,error:0==s,skipped:e.skippedNodes&&e.skippedNodes.indexOf(s)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.L3;let o=p(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let r=0;r"number"==typeof e?new f(o,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new v(this,e,t,n);for(let r of this.wrappers)i=r(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let r=i[t+1];;){let t=i[r++],s=1&t,o=i[r++];if(s&&n)return o;for(let n=r+(t>>1);r0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=R(this.data,n+2)}if(t==R(this.data,n+1))return!0}}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=R(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}overrides(e,t){let n=C(this.data,this.tokenPrecTable,t);return n<0||C(this.data,this.tokenPrecTable,e){let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,i)=>{let r=e.specializers.find((e=>e.from==n.external));if(!r)return n;let s=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[i]=Z(s),s}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let i=null;for(let r=0;re.external(n,i)<<1|t}return e.get}},20943:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),o,s);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(i(n),o,a,c)}else null!=o&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+o+";")}(a.length||c)&&s.push((!n||l||o?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let s in e)r(i(s),e[s],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=s[i]||1;return s[i]=e+1,"\u037c"+e.toString(36)}static mount(e,t){(e[r]||new l(e)).mount(Array.isArray(t)?t:[t])}}let a=null;class l{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(a)return e.adoptedStyleSheets=[a.sheet].concat(e.adoptedStyleSheets),e[r]=a;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),a=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[r]=this}mount(e){let t=this.sheet,n=0,i=0;for(let r=0;r-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,s),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),o=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=o||s&&+s[1]<57,c=0;c<10;c++)i[48+c]=i[96+c]=String(c);for(c=1;c<=24;c++)i[c+111]="F"+c;for(c=65;c<=90;c++)i[c]=String.fromCharCode(c+32),r[c]=String.fromCharCode(c);for(var h in i)r.hasOwnProperty(h)||(r[h]=i[h]);function u(e){var t=!(l&&(e.ctrlKey||e.altKey||e.metaKey)||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?r:i)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9257],{48689:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},o=n(42135),a=function(e,t){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:s}))};a.displayName="DeleteOutlined";var l=r.forwardRef(a)},88484:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(1413),r=n(67294),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},o=n(42135),a=function(e,t){return r.createElement(o.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:s}))};a.displayName="UploadOutlined";var l=r.forwardRef(a)},58909:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});var i=n(35524),r=n(47421),s=n(59119),o=e=>{var{theme:t,settings:n,styles:i}=e,o={"&":{backgroundColor:n.background,color:n.foreground},".cm-gutters":{}};n.gutterBackground&&(o[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(o[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(o[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(o[".cm-content"]={caretColor:n.caret},o[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret}),n.lineHighlight&&(o[".cm-activeLine"]={backgroundColor:n.lineHighlight},o[".cm-activeLineGutter"]={backgroundColor:n.lineHighlight}),n.selection&&(o["&.cm-focused .cm-selectionBackground .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, ::selection"]={backgroundColor:n.selection}),n.selectionMatch&&(o["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=r.tk.theme(o,{dark:"dark"===t}),l=s.Qf.define(i);return[a,(0,s.nF)(l)]},a=o({theme:"light",settings:{background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",lineHighlight:"#00000012"},styles:[{tag:[i.pJ.meta,i.pJ.comment],color:"#804000"},{tag:[i.pJ.keyword,i.pJ.strong],color:"#0000FF"},{tag:[i.pJ.number],color:"#FF0080"},{tag:[i.pJ.string],color:"#FF0080"},{tag:[i.pJ.variableName],color:"#006600"},{tag:[i.pJ.escape],color:"#33CC33"},{tag:[i.pJ.tagName],color:"#1C02FF"},{tag:[i.pJ.heading],color:"#0C07FF"},{tag:[i.pJ.quote],color:"#000000"},{tag:[i.pJ.list],color:"#B90690"},{tag:[i.pJ.documentMeta],color:"#888888"},{tag:[i.pJ.function(i.pJ.variableName)],color:"#0000A2"},{tag:[i.pJ.definition(i.pJ.typeName),i.pJ.typeName],color:"#6D79DE"}]})},87685:function(e,t,n){"use strict";n.d(t,{ZP:function(){return An}});var i=n(87462),r=n(63366),s=n(67294),o=n(78120),a=n(47421),l=n(59119),c=n(41113);function h(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(i(n.update(r)),!0)}}const u=h(m,0),O=h(p,0),f=h(((e,t)=>p(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),r=n.to<=i.to?i:e.doc.lineAt(n.to),s=t.length-1;s>=0&&t[s].to>i.from?t[s].to=r.to:t.push({from:i.from,to:r.to})}return t}(t))),0);function d(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function p(e,t,n=t.selection.ranges){let i=n.map((e=>d(t,e.from).block));if(!i.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},i,r){let s,o,a=e.sliceDoc(i-50,i),l=e.sliceDoc(r,r+50),c=/\s*$/.exec(a)[0].length,h=/^\s*/.exec(l)[0].length,u=a.length-c;if(a.slice(u-t.length,u)==t&&l.slice(h,h+n.length)==n)return{open:{pos:i-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-i<=100?s=o=e.sliceDoc(i,r):(s=e.sliceDoc(i,i+50),o=e.sliceDoc(r-50,r));let O=/^\s*/.exec(s)[0].length,f=/\s*$/.exec(o)[0].length,d=o.length-f-n.length;return s.slice(O,O+t.length)==t&&o.slice(d,d+n.length)==n?{open:{pos:i+O+t.length,margin:/\s/.test(s.charAt(O+t.length))?1:0},close:{pos:r-f-n.length,margin:/\s/.test(o.charAt(d-1))?1:0}}:null}(t,i[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;nr&&(s==o||o>e.from)){r=e.from;let s=d(t,a).line;if(!s)continue;let o=/^\s*/.exec(e.text)[0].length,l=o==e.length,c=e.text.slice(o,o+s.length)==s?o:-1;oe.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:r,indent:s,empty:o,single:a}of i)!a&&o||e.push({from:t.from+s,insert:r+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of i)if(n>=0){let i=t.from+n,s=i+r.length;" "==t.text[s-t.from]&&s++,e.push({from:i,to:s})}return{changes:e}}return null}const g=o.q6.define(),Q=o.q6.define(),b=o.r$.define(),x=o.r$.define({combine:e=>(0,o.BO)(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})});const k=o.QQ.define({create:()=>q.empty,update(e,t){let n=t.state.facet(x),i=t.annotation(g);if(i){let r=t.docChanged?o.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,s=T.fromTransaction(t,r),a=i.side,l=0==a?e.undone:e.done;return l=s?P(l,l.length,n.minDepth,s):Z(l,t.startState.selection),new q(0==a?i.rest:l,0==a?l:i.rest)}let r=t.annotation(Q);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(o.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=T.fromTransaction(t),a=t.annotation(o.YW.time),l=t.annotation(o.YW.userEvent);return s?e=e.addChanges(s,a,l,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new q(e.done.map(T.fromJSON),e.undone.map(T.fromJSON))});function y(e,t){return function({state:n,dispatch:i}){if(!t&&n.readOnly)return!1;let r=n.field(k,!1);if(!r)return!1;let s=r.pop(e,n,t);return!!s&&(i(s),!0)}}const v=y(0,!1),$=y(1,!1),S=y(0,!0),w=y(1,!0);class T{constructor(e,t,n,i,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new T(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new T(e.changes&&o.as.fromJSON(e.changes),[],e.mapped&&o.n0.fromJSON(e.mapped),e.startSelection&&o.jT.fromJSON(e.startSelection),e.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(e,t){let n=C;for(let i of e.startState.facet(b)){let t=i(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new T(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,C)}static selection(e){return new T(void 0,C,void 0,void 0,e)}}function P(e,t,n,i){let r=t+1>n+20?t-n-1:0,s=e.slice(r,t);return s.push(i),s}function R(e,t){return e.length?t.length?e.concat(t):e:t}const C=[];function Z(e,t){if(e.length){let n=e[e.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),P(e,e.length-1,1e9,n.setSelAfter(i)))}return[T.selection([t])]}function X(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function j(e,t){if(!e.length)return e;let n=e.length,i=C;for(;n;){let r=W(e[n-1],t,i);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,i=r.selectionsAfter}return i.length?[T.selection(i)]:C}function W(e,t,n){let i=R(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):C,n);if(!e.changes)return T.selection(i);let r=e.changes.map(t),s=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(s):s;return new T(r,o.Py.mapEffects(e.effects,t),a,e.startSelection.map(s),i)}const A=/^(input\.type|delete)($|\.)/;class q{constructor(e,t,n=0,i){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new q(this.done,this.undone):this}addChanges(e,t,n,i,r){let s=this.done,o=s[s.length-1];return s=o&&o.changes&&!o.changes.empty&&e.changes&&(!n||A.test(n))&&(!o.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,r,s)=>{for(let o=0;o=e&&r<=t&&(i=!0)}})),i}(o.changes,e.changes)||"input.type.compose"==n)?P(s,s.length-1,r,new T(e.changes.compose(o.changes),R(e.effects,o.effects),o.mapped,o.startSelection,C)):P(s,s.length,r,e),new q(s,C,t,n)}addSelection(e,t,n,i){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:C;return r.length>0&&t-this.prevTimee.empty!=o.ranges[t].empty)).length)?this:new q(Z(this.done,e),this.undone,t,n);var s,o}addMapping(e){return new q(j(this.done,e),j(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=0==e?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1];if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:g.of({side:e,rest:X(i)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==i.length?C:i.slice(0,i.length-1);return r.mapped&&(n=j(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:g.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}q.empty=new q(C,C);const _=[{key:"Mod-z",run:v,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:$,preventDefault:!0},{linux:"Ctrl-Shift-z",run:$,preventDefault:!0},{key:"Mod-u",run:S,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:w,preventDefault:!0}];function z(e,t){return o.jT.create(e.ranges.map(t),e.mainIndex)}function I(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function E({state:e,dispatch:t},n){let i=z(e.selection,n);return!i.eq(e.selection)&&(t(I(e,i)),!0)}function G(e,t){return o.jT.cursor(t?e.to:e.from)}function L(e,t){return E(e,(n=>n.empty?e.moveByChar(n,t):G(n,t)))}function D(e){return e.textDirectionAt(e.state.selection.main.head)==a.Nm.LTR}const N=e=>L(e,!D(e)),U=e=>L(e,D(e));function M(e,t){return E(e,(n=>n.empty?e.moveByGroup(n,t):G(n,t)))}function J(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function V(e,t,n){let i,r,s=(0,l.qz)(e).resolveInner(t.head),a=n?c.md.closedBy:c.md.openedBy;for(let o=t.head;;){let t=n?s.childAfter(o):s.childBefore(o);if(!t)break;J(e,t,a)?s=t:o=n?t.to:t.from}return r=s.type.prop(a)&&(i=n?(0,l.Um)(e,s.from,1):(0,l.Um)(e,s.to,-1))&&i.matched?n?i.end.to:i.end.from:n?s.to:s.from,o.jT.cursor(r,n?-1:1)}function B(e,t){return E(e,(n=>{if(!n.empty)return G(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)}))}const Y=e=>B(e,!1),F=e=>B(e,!0);function H(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function K(e,t){let{state:n}=e,i=z(n.selection,(n=>n.empty?e.moveVertically(n,t,H(e)):G(n,t)));if(i.eq(n.selection))return!1;let r,s=e.coordsAtPos(n.selection.main.head),o=e.scrollDOM.getBoundingClientRect();return s&&s.top>o.top&&s.bottomK(e,!1),te=e=>K(e,!0);function ne(e,t,n){let i=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?i.to:i.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(r=o.jT.cursor(i.from+n))}return r}function ie(e,t,n){let i=!1,r=z(e.selection,(t=>{let r=(0,l.Um)(e,t.head,-1)||(0,l.Um)(e,t.head,1)||t.head>0&&(0,l.Um)(e,t.head-1,1)||t.head{let n=t(e);return o.jT.range(e.anchor,n.head,n.goalColumn)}));return!n.eq(e.state.selection)&&(e.dispatch(I(e.state,n)),!0)}function se(e,t){return re(e,(n=>e.moveByChar(n,t)))}const oe=e=>se(e,!D(e)),ae=e=>se(e,D(e));function le(e,t){return re(e,(n=>e.moveByGroup(n,t)))}function ce(e,t){return re(e,(n=>e.moveVertically(n,t)))}const he=e=>ce(e,!1),ue=e=>ce(e,!0);function Oe(e,t){return re(e,(n=>e.moveVertically(n,t,H(e))))}const fe=e=>Oe(e,!1),de=e=>Oe(e,!0),pe=({state:e,dispatch:t})=>(t(I(e,{anchor:0})),!0),me=({state:e,dispatch:t})=>(t(I(e,{anchor:e.doc.length})),!0),ge=({state:e,dispatch:t})=>(t(I(e,{anchor:e.selection.main.anchor,head:0})),!0),Qe=({state:e,dispatch:t})=>(t(I(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function be(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:i}=e,r=i.changeByRange((i=>{let{from:r,to:s}=i;if(r==s){let i=t(r);ir&&(n="delete.forward",i=xe(e,i,!0)),r=Math.min(r,i),s=Math.max(s,i)}else r=xe(e,r,!1),s=xe(e,s,!0);return r==s?{range:i}:{changes:{from:r,to:s},range:o.jT.cursor(r)}}));return!r.changes.empty&&(e.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?a.tk.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function xe(e,t,n){if(e instanceof a.tk)for(let i of e.state.facet(a.tk.atomicRanges).map((t=>t(e))))i.between(t,t,((e,i)=>{et&&(t=n?i:e)}));return t}const ke=(e,t)=>be(e,(n=>{let i,r,{state:s}=e,a=s.doc.lineAt(n);if(!t&&n>a.from&&nke(e,!1),ve=e=>ke(e,!0),$e=(e,t)=>be(e,(n=>{let i=n,{state:r}=e,s=r.doc.lineAt(i),a=r.charCategorizer(i);for(let e=null;;){if(i==(t?s.to:s.from)){i==n&&s.number!=(t?r.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,o.cp)(s.text,i-s.from,t)+s.from,c=s.text.slice(Math.min(i,l)-s.from,Math.max(i,l)-s.from),h=a(c);if(null!=e&&h!=e)break;" "==c&&i==n||(e=h),i=l}return i})),Se=e=>$e(e,!1),we=e=>be(e,(t=>{let n=e.lineBlockAt(t).to;return t=r.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(i)}else t.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return t}function Pe(e,t,n){if(e.readOnly)return!1;let i=[],r=[];for(let s of Te(e)){if(n?s.to==e.doc.length:0==s.from)continue;let t=e.doc.lineAt(n?s.to+1:s.from-1),a=t.length+1;if(n){i.push({from:s.to,to:t.to},{from:s.from,insert:t.text+e.lineBreak});for(let t of s.ranges)r.push(o.jT.range(Math.min(e.doc.length,t.anchor+a),Math.min(e.doc.length,t.head+a)))}else{i.push({from:t.from,to:s.from},{from:s.to,insert:e.lineBreak+t.text});for(let e of s.ranges)r.push(o.jT.range(e.anchor-a,e.head-a))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:o.jT.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Re(e,t,n){if(e.readOnly)return!1;let i=[];for(let r of Te(e))n?i.push({from:r.from,insert:e.doc.slice(r.from,r.to)+e.lineBreak}):i.push({from:r.to,insert:e.lineBreak+e.doc.slice(r.from,r.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ce=Ze(!1);function Ze(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange((n=>{let{from:i,to:r}=n,s=t.doc.lineAt(i),a=!e&&i==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,i=(0,l.qz)(e).resolveInner(t),r=i.childBefore(t),s=i.childAfter(t);return r&&s&&r.to<=t&&s.from>=t&&(n=r.type.prop(c.md.closedBy))&&n.indexOf(s.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(s.from).from?{from:r.to,to:s.from}:null}(t,i);e&&(i=r=(r<=s.to?s:t.doc.lineAt(r)).to);let h=new l.Gn(t,{simulateBreak:i,simulateDoubleBreak:!!a}),u=(0,l.K0)(h,i);for(null==u&&(u=/^\s*/.exec(t.doc.lineAt(i).text)[0].length);rs.from&&i{let r=[];for(let o=i.from;o<=i.to;){let s=e.doc.lineAt(o);s.number>n&&(i.empty||i.to>s.from)&&(t(s,r,i),n=s.number),o=s.to+1}let s=e.changes(r);return{changes:r,range:o.jT.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}}))}const je=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Xe(e,((t,n)=>{n.push({from:t.from,insert:e.facet(l.c)})})),{userEvent:"input.indent"})),!0),We=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Xe(e,((t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=(0,o.IS)(i,e.tabSize),s=0,a=(0,l.SS)(e,Math.max(0,r-(0,l.y1)(e)));for(;sE(e,(t=>V(e.state,t,!D(e)))),shift:e=>re(e,(t=>V(e.state,t,!D(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>E(e,(t=>V(e.state,t,D(e)))),shift:e=>re(e,(t=>V(e.state,t,D(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Pe(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Re(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Pe(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Re(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=o.jT.create([n.main]):n.main.empty||(i=o.jT.create([o.jT.cursor(n.main.head)])),!!i&&(t(I(e,i)),!0)}},{key:"Mod-Enter",run:Ze(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=Te(e).map((({from:t,to:n})=>o.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:o.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=z(e.selection,(t=>{var n;let i=(0,l.qz)(e).resolveInner(t.head,1);for(;!(i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return o.jT.range(i.to,i.from)}));return t(I(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:We},{key:"Mod-]",run:je},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new l.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=Xe(e,((t,r,s)=>{let o=(0,l.K0)(i,t.from);if(null==o)return;/\S/.test(t.text)||(o=0);let a=/^\s*/.exec(t.text)[0],c=(0,l.SS)(e,o);(a!=c||s.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Te(t).map((({from:e,to:n})=>(e>0?e--:ne.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>ie(e,t,!1)},{key:"Mod-/",run:e=>{let t=d(e.state);return t.line?u(e):!!t.block&&f(e)}},{key:"Alt-A",run:O}].concat([{key:"ArrowLeft",run:N,shift:oe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>M(e,!D(e)),shift:e=>le(e,!D(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>E(e,(t=>ne(e,t,!D(e)))),shift:e=>re(e,(t=>ne(e,t,!D(e)))),preventDefault:!0},{key:"ArrowRight",run:U,shift:ae,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>M(e,D(e)),shift:e=>le(e,D(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>E(e,(t=>ne(e,t,D(e)))),shift:e=>re(e,(t=>ne(e,t,D(e)))),preventDefault:!0},{key:"ArrowUp",run:Y,shift:he,preventDefault:!0},{mac:"Cmd-ArrowUp",run:pe,shift:ge},{mac:"Ctrl-ArrowUp",run:ee,shift:fe},{key:"ArrowDown",run:F,shift:ue,preventDefault:!0},{mac:"Cmd-ArrowDown",run:me,shift:Qe},{mac:"Ctrl-ArrowDown",run:te,shift:de},{key:"PageUp",run:ee,shift:fe},{key:"PageDown",run:te,shift:de},{key:"Home",run:e=>E(e,(t=>ne(e,t,!1))),shift:e=>re(e,(t=>ne(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:pe,shift:ge},{key:"End",run:e=>E(e,(t=>ne(e,t,!0))),shift:e=>re(e,(t=>ne(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:me,shift:Qe},{key:"Enter",run:Ce},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:ye,shift:ye},{key:"Delete",run:ve},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Se},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>$e(e,!0)},{mac:"Mod-Backspace",run:e=>be(e,(t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}))},{mac:"Mod-Delete",run:we}].concat([{key:"Ctrl-b",run:N,shift:oe,preventDefault:!0},{key:"Ctrl-f",run:U,shift:ae},{key:"Ctrl-p",run:Y,shift:he},{key:"Ctrl-n",run:F,shift:ue},{key:"Ctrl-a",run:e=>E(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>re(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>E(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>re(e,(t=>o.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:ve},{key:"Ctrl-h",run:ye},{key:"Ctrl-k",run:we},{key:"Ctrl-Alt-h",run:Se},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:o.xv.of(["",""])},range:o.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),r=n==i.from?n-1:(0,o.cp)(i.text,n-i.from,!1)+i.from,s=n==i.to?n+1:(0,o.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:r,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(r,n))},range:o.jT.cursor(s)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:te}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),qe={key:"Tab",run:je,shift:We};function _e(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;te.normalize("NFKD"):e=>e;class Ee{constructor(e,t,n=0,i=e.length,r,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=r?e=>r(Ie(e)):Ie,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,o.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,o.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,o.nZ)(e);let i=this.normalize(t);for(let r=0,s=n;;r++){let e=i.charCodeAt(r),o=this.match(e,s);if(o)return this.value=o,this;if(r==i.length-1)break;s==n&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=Je(this.text,i+(n==i?1:0)),n==this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||i.to<=t){let i=new Ue(t,e.sliceString(t,n));return Ne.set(e,i),i}if(i.from==t&&i.to==n)return i;let{text:r,from:s}=i;return s>t&&(r=e.sliceString(t,s)+r,s=t),i.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Je(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ue.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Je(e,t){if(t>=e.length)return t;let n,i=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function Ve(e){let t=_e("input",{class:"cm-textfield",name:"line"});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:i}=e,r=i.doc.lineAt(i.selection.main.head),[,s,a,l,c]=n,h=l?+l.slice(1):0,u=a?+a:r.number;if(a&&c){let e=u/100;s&&(e=e*("-"==s?-1:1)+r.number/i.doc.lines),u=Math.round(i.doc.lines*e)}else a&&s&&(u=u*("-"==s?-1:1)+r.number);let O=i.doc.line(Math.max(1,Math.min(i.doc.lines,u)));e.dispatch({effects:Be.of(!1),selection:o.jT.cursor(O.from+Math.max(0,Math.min(h,O.length))),scrollIntoView:!0}),e.focus()}return{dom:_e("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Be.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},_e("label",e.state.phrase("Go to line"),": ",t)," ",_e("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(De.prototype[Symbol.iterator]=Me.prototype[Symbol.iterator]=function(){return this});const Be=o.Py.define(),Ye=o.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(Be)&&(e=n.value);return e},provide:e=>a.mH.from(e,(e=>e?Ve:null))}),Fe=a.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),He={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ke=o.r$.define({combine:e=>(0,o.BO)(e,He,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});const et=a.p.mark({class:"cm-selectionMatch"}),tt=a.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function nt(e,t,n,i){return(0==n||e(t.sliceDoc(n-1,n))!=o.D0.Word)&&(i==t.doc.length||e(t.sliceDoc(i,i+1))!=o.D0.Word)}const it=a.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Ke),{state:n}=e,i=n.selection;if(i.ranges.length>1)return a.p.none;let r,s=i.main,l=null;if(s.empty){if(!t.highlightWordAroundCursor)return a.p.none;let e=n.wordAt(s.head);if(!e)return a.p.none;l=n.charCategorizer(s.head),r=n.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return a.p.none;if(t.wholeWords){if(r=n.sliceDoc(s.from,s.to),l=n.charCategorizer(s.head),!nt(l,n,s.from,s.to)||!function(e,t,n,i){return e(t.sliceDoc(n,n+1))==o.D0.Word&&e(t.sliceDoc(i-1,i))==o.D0.Word}(l,n,s.from,s.to))return a.p.none}else if(r=n.sliceDoc(s.from,s.to).trim(),!r)return a.p.none}let c=[];for(let o of e.visibleRanges){let e=new Ee(n.doc,r,o.from,o.to);for(;!e.next().done;){let{from:i,to:r}=e.value;if((!l||nt(l,n,i,r))&&(s.empty&&i<=s.from&&r>=s.to?c.push(tt.range(i,r)):(i>=s.to||r<=s.from)&&c.push(et.range(i,r)),c.length>t.maxMatches))return a.p.none}}return a.p.set(c)}},{decorations:e=>e.decorations}),rt=a.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const st=o.r$.define({combine:e=>(0,o.BO)(e,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:e=>new Xt(e)})});class ot{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Le),!0}catch(t){return!1}}(this.search)),this.unquoted=this.literal?this.search:this.search.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")),this.wholeWord=!!e.wholeWord}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new ft(this):new ct(this)}getCursor(e,t=0,n){let i=e.doc?e:o.yy.create({doc:e});return null==n&&(n=i.doc.length),this.regexp?ht(this,i,t,n):lt(this,i,t,n)}}class at{constructor(e){this.spec=e}}function lt(e,t,n,i){return new Ee(t.doc,e.unquoted,n,i,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(r=t.doc,s=t.charCategorizer(t.selection.main.head),(e,t,n,i)=>((i>e||i+n.length=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=lt(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}function ht(e,t,n,i){return new De(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(r=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(r(ut(n.input,n.index))!=o.D0.Word||r(Ot(n.input,n.index))!=o.D0.Word)&&(r(Ot(n.input,n.index+n[0].length))!=o.D0.Word||r(ut(n.input,n.index+n[0].length))!=o.D0.Word)):void 0},n,i);var r}function ut(e,t){return e.slice((0,o.cp)(e,t,!1),t)}function Ot(e,t){return e.slice(t,(0,o.cp)(e,t))}class ft extends at{nextMatch(e,t,n){let i=ht(this.spec,e,n,e.doc.length).next();return i.done&&(i=ht(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let r=Math.max(t,n-1e4*i),s=ht(this.spec,e,r,n),o=null;for(;!s.next().done;)o=s.value;if(o&&(r==t||o.from>r+10))return o;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=ht(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}const dt=o.Py.define(),pt=o.Py.define(),mt=o.QQ.define({create:e=>new gt(Pt(e).create(),null),update(e,t){for(let n of t.effects)n.is(dt)?e=new gt(n.value.create(),e.panel):n.is(pt)&&(e=new gt(e.query,n.value?Tt:null));return e},provide:e=>a.mH.from(e,(e=>e.panel))});class gt{constructor(e,t){this.query=e,this.panel=t}}const Qt=a.p.mark({class:"cm-searchMatch"}),bt=a.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),xt=a.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(mt))}update(e){let t=e.state.field(mt);(t!=e.startState.field(mt)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return a.p.none;let{view:n}=this,i=new o.f_;for(let r=0,s=n.visibleRanges,o=s.length;rs[r+1].from-500;)a=s[++r].to;e.highlight(n.state,t,a,((e,t)=>{let r=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));i.add(e,t,r?bt:Qt)}))}return i.finish()}},{decorations:e=>e.decorations});function kt(e){return t=>{let n=t.state.field(mt,!1);return n&&n.query.spec.valid?e(t,n):Rt(t)}}const yt=kt(((e,{query:t})=>{let{to:n}=e.state.selection.main,i=t.nextMatch(e.state,n,n);return!!i&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:At(e,i),userEvent:"select.search"}),!0)})),vt=kt(((e,{query:t})=>{let{state:n}=e,{from:i}=n.selection.main,r=t.prevMatch(n,i,i);return!!r&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:At(e,r),userEvent:"select.search"}),!0)})),$t=kt(((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:o.jT.create(n.map((e=>o.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),St=kt(((e,{query:t})=>{let{state:n}=e,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=t.nextMatch(n,i,i);if(!s)return!1;let o,l,c=[],h=[];if(s.from==i&&s.to==r&&(l=n.toText(t.getReplacement(s)),c.push({from:s.from,to:s.to,insert:l}),s=t.nextMatch(n,s.from,s.to),h.push(a.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),s){let t=0==c.length||c[0].from>=s.to?0:s.to-s.from-l.length;o={anchor:s.from-t,head:s.to-t},h.push(At(e,s))}return e.dispatch({changes:c,selection:o,scrollIntoView:!!o,effects:h,userEvent:"input.replace"}),!0})),wt=kt(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map((e=>{let{from:n,to:i}=e;return{from:n,to:i,insert:t.getReplacement(e)}}));if(!n.length)return!1;let i=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:a.tk.announce.of(i),userEvent:"input.replace.all"}),!0}));function Tt(e){return e.state.facet(st).createPanel(e)}function Pt(e,t){var n,i,r,s;let o=e.selection.main,a=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!a)return t;let l=e.facet(st);return new ot({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:l.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!==(i=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==i?i:l.caseSensitive,literal:null!==(r=null===t||void 0===t?void 0:t.literal)&&void 0!==r?r:l.literal,wholeWord:null!==(s=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==s?s:l.wholeWord})}const Rt=e=>{let t=e.state.field(mt,!1);if(t&&t.panel){let n=(0,a.Sd)(e,Tt);if(!n)return!1;let i=n.dom.querySelector("[main-field]");if(i&&i!=e.root.activeElement){let n=Pt(e.state,t.query.spec);n.valid&&e.dispatch({effects:dt.of(n)}),i.focus(),i.select()}}else e.dispatch({effects:[pt.of(!0),t?dt.of(Pt(e.state,t.query.spec)):o.Py.appendConfig.of(_t)]});return!0},Ct=e=>{let t=e.state.field(mt,!1);if(!t||!t.panel)return!1;let n=(0,a.Sd)(e,Tt);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:pt.of(!1)}),!0},Zt=[{key:"Mod-f",run:Rt,scope:"editor search-panel"},{key:"F3",run:yt,shift:vt,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:yt,shift:vt,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ct,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],a=0;for(let l=new Ee(e.doc,e.sliceDoc(i,r));!l.next().done;){if(s.length>1e3)return!1;l.value.from==i&&(a=s.length),s.push(o.jT.range(l.value.from,l.value.to))}return t(e.update({selection:o.jT.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,a.Sd)(e,Ve);if(!t){let n=[Be.of(!0)];null==e.state.field(Ye,!1)&&n.push(o.Py.appendConfig.of([Ye,Fe])),e.dispatch({effects:n}),t=(0,a.Sd)(e,Ve)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,i=o.jT.create(n.ranges.map((t=>e.wordAt(t.head)||o.jT.cursor(t.head))),n.mainIndex);return!i.eq(n)&&(t(e.update({selection:i})),!0)})({state:e,dispatch:t});let i=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=i)))return!1;let r=function(e,t){let{main:n,ranges:i}=e.selection,r=e.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let o=!1,a=new Ee(e.doc,t,i[i.length-1].to);;){if(a.next(),!a.done){if(o&&i.some((e=>e.from==a.value.from)))continue;if(s){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(o)return null;a=new Ee(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),o=!0}}(e,i);return!!r&&(t(e.update({selection:e.selection.addRange(o.jT.range(r.from,r.to),!1),effects:a.tk.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class Xt{constructor(e){this.view=e;let t=this.query=e.state.field(mt).query.spec;function n(e,t,n){return _e("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=_e("input",{value:t.search,placeholder:jt(e,"Find"),"aria-label":jt(e,"Find"),class:"cm-textfield",name:"search","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=_e("input",{value:t.replace,placeholder:jt(e,"Replace"),"aria-label":jt(e,"Replace"),class:"cm-textfield",name:"replace",onchange:this.commit,onkeyup:this.commit}),this.caseField=_e("input",{type:"checkbox",name:"case",checked:t.caseSensitive,onchange:this.commit}),this.reField=_e("input",{type:"checkbox",name:"re",checked:t.regexp,onchange:this.commit}),this.wordField=_e("input",{type:"checkbox",name:"word",checked:t.wholeWord,onchange:this.commit}),this.dom=_e("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>yt(e)),[jt(e,"next")]),n("prev",(()=>vt(e)),[jt(e,"previous")]),n("select",(()=>$t(e)),[jt(e,"all")]),_e("label",null,[this.caseField,jt(e,"match case")]),_e("label",null,[this.reField,jt(e,"regexp")]),_e("label",null,[this.wordField,jt(e,"by word")]),...e.state.readOnly?[]:[_e("br"),this.replaceField,n("replace",(()=>St(e)),[jt(e,"replace")]),n("replaceAll",(()=>wt(e)),[jt(e,"replace all")]),_e("button",{name:"close",onclick:()=>Ct(e),"aria-label":jt(e,"close"),type:"button"},["\xd7"])]])}commit(){let e=new ot({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:dt.of(e)}))}keydown(e){(0,a.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?vt:yt)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),St(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(dt)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(st).top}}function jt(e,t){return e.state.phrase(t)}const Wt=/[\s\.,:;?!]/;function At(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),r=e.state.doc.lineAt(n).to,s=Math.max(i.from,t-30),o=Math.min(r,n+30),l=e.state.sliceDoc(s,o);if(s!=i.from)for(let a=0;a<30;a++)if(!Wt.test(l[a+1])&&Wt.test(l[a])){l=l.slice(a);break}if(o!=r)for(let a=l.length-1;a>l.length-30;a--)if(!Wt.test(l[a-1])&&Wt.test(l[a])){l=l.slice(0,a);break}return a.tk.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}const qt=a.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),_t=[mt,o.Wl.lowest(xt),qt];var zt=n(34790);class It{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Et{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,r=n.facet(en).markerFilter;r&&(i=r(i));let s=a.p.set(i.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?a.p.widget({widget:new rn(e),diagnostic:e}).range(e.from):a.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to))),!0);return new Et(s,t,Gt(s))}}function Gt(e,t=null,n=0){let i=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!t||r.diagnostic==t)return i=new It(e,n,r.diagnostic),!1})),i}function Lt(e,t){return!(!e.effects.some((e=>e.is(Nt)))&&!e.changes.touchesRange(t.pos))}function Dt(e,t){return e.field(Jt,!1)?t:t.concat(o.Py.appendConfig.of([Jt,a.tk.decorations.compute([Jt],(e=>{let{selected:t,panel:n}=e.field(Jt);return t&&n&&t.from!=t.to?a.p.set([Vt.range(t.from,t.to)]):a.p.none})),(0,a.bF)(Bt,{hideOn:Lt}),cn]))}const Nt=o.Py.define(),Ut=o.Py.define(),Mt=o.Py.define(),Jt=o.QQ.define({create:()=>new Et(a.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),i=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);i=Gt(n,e.selected.diagnostic,r)||Gt(n,null,r)}e=new Et(n,e.panel,i)}for(let n of t.effects)n.is(Nt)?e=Et.init(n.value,e.panel,t.state):n.is(Ut)?e=new Et(e.diagnostics,n.value?on.open:null,e.selected):n.is(Mt)&&(e=new Et(e.diagnostics,e.panel,n.value));return e},provide:e=>[a.mH.from(e,(e=>e.panel)),a.tk.decorations.from(e,(e=>e.diagnostics))]});const Vt=a.p.mark({class:"cm-lintRange cm-lintRange-active"});function Bt(e,t,n){let{diagnostics:i}=e.state.field(Jt),r=[],s=2e8,o=0;i.between(t-(n<0?1:0),t+(n>0?1:0),((e,i,{spec:a})=>{t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t({dom:Yt(e,r)})}:null}function Yt(e,t){return _e("ul",{class:"cm-tooltip-lint"},t.map((t=>nn(e,t,!1))))}const Ft=e=>{let t=e.state.field(Jt,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Ut.of(!1)}),!0)},Ht=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Jt,!1);t&&t.panel||e.dispatch({effects:Dt(e.state,[Ut.of(!0)])});let n=(0,a.Sd)(e,on.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0}},{key:"F8",run:e=>{let t=e.state.field(Jt,!1);if(!t)return!1;let n=e.state.selection.main,i=t.diagnostics.iter(n.to+1);return!(!i.value&&(i=t.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to))&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)}}],Kt=a.lg.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(en);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(ePromise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:Dt(e,[Nt.of(t)])}}(this.view.state,n))}),(e=>{(0,a.OO)(this.view.state,e)}))}}update(e){let t=e.state.facet(en);(e.docChanged||t!=e.startState.facet(en))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),en=o.r$.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},(0,o.BO)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null})),enables:Kt});function tn(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==i.toLowerCase()))){t.push(i);continue e}}t.push("")}return t}function nn(e,t,n){var i;let r=n?tn(t.actions):[];return _e("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},_e("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(i=t.actions)||void 0===i?void 0:i.map(((n,i)=>{let s=i=>{i.preventDefault();let r=Gt(e.state.field(Jt).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:o}=n,a=r[i]?o.indexOf(r[i]):-1,l=a<0?o:[o.slice(0,a),_e("u",o.slice(a,a+1)),o.slice(a+1)];return _e("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${o}${a<0?"":` (access key "${r[i]})"`}.`},l)})),t.source&&_e("div",{class:"cm-diagnosticSource"},t.source))}class rn extends a.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return _e("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class sn{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=nn(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class on{constructor(e){this.view=e,this.items=[];this.list=_e("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Ft(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],i=tn(n.actions);for(let r=0;r{for(let t=0;tFt(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(Jt).selected;if(!e)return-1;for(let t=0;t{let a,l=-1;for(let t=n;tn&&(this.items.splice(n,l-n),i=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{e.topt.bottom&&(this.list.scrollTop+=e.bottom-t.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Gt(this.view.state.field(Jt).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Mt.of(t)})}static open(e){return new on(e)}}function an(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function ln(e){return an(``,'width="6" height="3"')}const cn=a.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:ln("#d11")},".cm-lintRange-warning":{backgroundImage:ln("orange")},".cm-lintRange-info":{backgroundImage:ln("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});a.SJ;var hn=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(zt.GA)),!1!==e.defaultKeymap&&(t=t.concat(Ae)),!1!==e.searchKeymap&&(t=t.concat(Zt)),!1!==e.historyKeymap&&(t=t.concat(_)),!1!==e.foldKeymap&&(t=t.concat(l.e7)),!1!==e.completionKeymap&&(t=t.concat(zt.B1)),!1!==e.lintKeymap&&(t=t.concat(Ht));var n=[];return!1!==e.lineNumbers&&n.push((0,a.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,a.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,a.AE)()),!1!==e.history&&n.push(function(e={}){return[k,x.of(e),a.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?v:"historyRedo"==e.inputType?$:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&n.push((0,l.mi)()),!1!==e.drawSelection&&n.push((0,a.Uw)()),!1!==e.dropCursor&&n.push((0,a.qr)()),!1!==e.allowMultipleSelections&&n.push(o.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push((0,l.nY)()),!1!==e.syntaxHighlighting&&n.push((0,l.nF)(l.R_,{fallback:!0})),!1!==e.bracketMatching&&n.push((0,l.n$)()),!1!==e.closeBrackets&&n.push((0,zt.vQ)()),!1!==e.autocompletion&&n.push((0,zt.ys)()),!1!==e.rectangularSelection&&n.push((0,a.Zs)()),!1!==e.crosshairCursor&&n.push((0,a.S2)()),!1!==e.highlightActiveLine&&n.push((0,a.ZO)()),!1!==e.highlightSelectionMatches&&n.push(function(e){let t=[rt,it];return e&&t.push(Ke.of(e)),t}()),n.concat([a.$f.of(t.flat())]).filter(Boolean)},un=n(35524);const On="#e5c07b",fn="#e06c75",dn="#56b6c2",pn="#ffffff",mn="#abb2bf",gn="#7d8799",Qn="#61afef",bn="#98c379",xn="#d19a66",kn="#c678dd",yn="#21252b",vn="#2c313a",$n="#282c34",Sn="#353a42",wn="#3E4451",Tn="#528bff",Pn=a.tk.theme({"&":{color:mn,backgroundColor:$n},".cm-content":{caretColor:Tn},".cm-cursor, .cm-dropCursor":{borderLeftColor:Tn},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:wn},".cm-panels":{backgroundColor:yn,color:mn},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847",outline:"1px solid #515a6b"},".cm-gutters":{backgroundColor:$n,color:gn,border:"none"},".cm-activeLineGutter":{backgroundColor:vn},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Sn},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Sn,borderBottomColor:Sn},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:vn,color:mn}}},{dark:!0}),Rn=l.Qf.define([{tag:un.pJ.keyword,color:kn},{tag:[un.pJ.name,un.pJ.deleted,un.pJ.character,un.pJ.propertyName,un.pJ.macroName],color:fn},{tag:[un.pJ.function(un.pJ.variableName),un.pJ.labelName],color:Qn},{tag:[un.pJ.color,un.pJ.constant(un.pJ.name),un.pJ.standard(un.pJ.name)],color:xn},{tag:[un.pJ.definition(un.pJ.name),un.pJ.separator],color:mn},{tag:[un.pJ.typeName,un.pJ.className,un.pJ.number,un.pJ.changed,un.pJ.annotation,un.pJ.modifier,un.pJ.self,un.pJ.namespace],color:On},{tag:[un.pJ.operator,un.pJ.operatorKeyword,un.pJ.url,un.pJ.escape,un.pJ.regexp,un.pJ.link,un.pJ.special(un.pJ.string)],color:dn},{tag:[un.pJ.meta,un.pJ.comment],color:gn},{tag:un.pJ.strong,fontWeight:"bold"},{tag:un.pJ.emphasis,fontStyle:"italic"},{tag:un.pJ.strikethrough,textDecoration:"line-through"},{tag:un.pJ.link,color:gn,textDecoration:"underline"},{tag:un.pJ.heading,fontWeight:"bold",color:fn},{tag:[un.pJ.atom,un.pJ.bool,un.pJ.special(un.pJ.variableName)],color:xn},{tag:[un.pJ.processingInstruction,un.pJ.string,un.pJ.inserted],color:bn},{tag:un.pJ.invalid,color:pn}]),Cn=[Pn,(0,l.nF)(Rn)];function Zn(e){var{value:t,selection:n,onChange:i,onStatistics:r,onCreateEditor:l,onUpdate:c,extensions:h=[],autoFocus:u,theme:O="light",height:f="",minHeight:d="",maxHeight:p="",placeholder:m="",width:g="",minWidth:Q="",maxWidth:b="",editable:x=!0,readOnly:k=!1,indentWithTab:y=!0,basicSetup:v=!0,root:$,initialState:S}=e,[w,T]=(0,s.useState)(),[P,R]=(0,s.useState)(),[C,Z]=(0,s.useState)(),X=a.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),j=a.tk.theme({"&":{height:f,minHeight:d,maxHeight:p,width:g,minWidth:Q,maxWidth:b}}),W=a.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof i){var t=e.state.doc.toString();i(t,e)}r&&r((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),A=[W,j];switch(y&&A.unshift(a.$f.of([qe])),v&&("boolean"===typeof v?A.unshift(hn()):A.unshift(hn(v))),m&&A.unshift((0,a.W$)(m)),O){case"light":A.push(X);break;case"dark":A.push(Cn);break;default:A.push(O)}return!1===x&&A.push(a.tk.editable.of(!1)),k&&A.push(o.yy.readOnly.of(!0)),c&&"function"===typeof c&&A.push(a.tk.updateListener.of(c)),A=A.concat(h),(0,s.useEffect)((()=>{if(w&&!C){var e={doc:t,selection:n,extensions:A},i=S?o.yy.fromJSON(S.json,e,S.fields):o.yy.create(e);if(Z(i),!P){var r=new a.tk({state:i,parent:w,root:$});R(r),l&&l(r,i)}}return()=>{P&&(Z(void 0),R(void 0))}}),[w,C]),(0,s.useEffect)((()=>T(e.container)),[e.container]),(0,s.useEffect)((()=>()=>{P&&(P.destroy(),R(void 0))}),[P]),(0,s.useEffect)((()=>{u&&P&&P.focus()}),[u,P]),(0,s.useEffect)((()=>{P&&P.dispatch({effects:o.Py.reconfigure.of(A)})}),[O,h,f,d,p,g,Q,b,m,x,k,y,v,i,c]),(0,s.useEffect)((()=>{var e=P?P.state.doc.toString():"";P&&t!==e&&P.dispatch({changes:{from:0,to:e.length,insert:t||""}})}),[t,P]),{state:C,setState:Z,view:P,setView:R,container:w,setContainer:T}}var Xn=n(85893),jn=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Wn=(0,s.forwardRef)(((e,t)=>{var{className:n,value:o="",selection:a,extensions:l=[],onChange:c,onStatistics:h,onCreateEditor:u,onUpdate:O,autoFocus:f,theme:d="light",height:p,minHeight:m,maxHeight:g,width:Q,minWidth:b,maxWidth:x,basicSetup:k,placeholder:y,indentWithTab:v,editable:$,readOnly:S,root:w,initialState:T}=e,P=(0,r.Z)(e,jn),R=(0,s.useRef)(null),{state:C,view:Z,container:X,setContainer:j}=Zn({container:R.current,root:w,value:o,autoFocus:f,theme:d,height:p,minHeight:m,maxHeight:g,width:Q,minWidth:b,maxWidth:x,basicSetup:k,placeholder:y,indentWithTab:v,editable:$,readOnly:S,selection:a,onChange:c,onStatistics:h,onCreateEditor:u,onUpdate:O,extensions:l,initialState:T});if((0,s.useImperativeHandle)(t,(()=>({editor:R.current,state:C,view:Z})),[R,X,C,Z]),"string"!==typeof o)throw new Error("value must be typeof string but got "+typeof o);var W="string"===typeof d?"cm-theme-"+d:"cm-theme";return(0,Xn.jsx)("div",(0,i.Z)({ref:R,className:W+(n?" "+n:"")},P))}));Wn.displayName="CodeMirror";var An=Wn},94594:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var i=n(87462),r=n(4942),s=n(50888),o=n(94184),a=n.n(o),l=n(97685),c=n(45987),h=n(67294),u=n(21770),O=n(15105),f=h.forwardRef((function(e,t){var n,i=e.prefixCls,s=void 0===i?"rc-switch":i,o=e.className,f=e.checked,d=e.defaultChecked,p=e.disabled,m=e.loadingIcon,g=e.checkedChildren,Q=e.unCheckedChildren,b=e.onClick,x=e.onChange,k=e.onKeyDown,y=(0,c.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),v=(0,u.Z)(!1,{value:f,defaultValue:d}),$=(0,l.Z)(v,2),S=$[0],w=$[1];function T(e,t){var n=S;return p||(w(n=e),null===x||void 0===x||x(n,t)),n}var P=a()(s,o,(n={},(0,r.Z)(n,"".concat(s,"-checked"),S),(0,r.Z)(n,"".concat(s,"-disabled"),p),n));return h.createElement("button",Object.assign({},y,{type:"button",role:"switch","aria-checked":S,disabled:p,className:P,ref:t,onKeyDown:function(e){e.which===O.Z.LEFT?T(!1,e):e.which===O.Z.RIGHT&&T(!0,e),null===k||void 0===k||k(e)},onClick:function(e){var t=T(!S,e);null===b||void 0===b||b(t,e)}}),m,h.createElement("span",{className:"".concat(s,"-inner")},S?g:Q))}));f.displayName="Switch";var d=f,p=n(53124),m=n(98866),g=n(97647),Q=n(68349),b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var i=e.data[t];Array.isArray(i)?i.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,i)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),i=new Error(n);return i.status=t.status,i.method=e.method,i.url=e.action,i}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};return null!==i["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach((function(e){null!==i[e]&&t.setRequestHeader(e,i[e])})),t.send(n),{abort:function(){t.abort()}}}var k=+new Date,y=0;function v(){return"rc-upload-".concat(k,"-").concat(++y)}var $=n(80334),S=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),i=e.name||"",r=e.type||"",s=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=i.toLowerCase(),o=t.toLowerCase(),a=[o];return".jpg"!==o&&".jpeg"!==o||(a=[".jpg",".jpeg"]),a.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?s===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)&&((0,$.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var w=function(e,t,n){var i=function e(i,r){i.path=r||"",i.isFile?i.file((function(e){n(e)&&(i.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=i.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):i.isDirectory&&function(e,t){var n=e.createReader(),i=[];!function e(){n.readEntries((function(n){var r=Array.prototype.slice.apply(n);i=i.concat(r),r.length?e():t(i)}))}()}(i,(function(t){t.forEach((function(t){e(t,"".concat(r).concat(i.name,"/"))}))}))};e.forEach((function(e){i(e.webkitGetAsEntry())}))},T=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],P=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;(0,O.Z)(this,n);for(var i=arguments.length,r=new Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},ae=200;function le(e){return new Promise((function(t){if(e.type&&se(e.type)){var n=document.createElement("canvas");n.width=ae,n.height=ae,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ae,"px; height: ").concat(ae,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var i=n.getContext("2d"),r=new Image;if(r.onload=function(){var e=r.width,s=r.height,o=ae,a=ae,l=0,c=0;e>s?c=-((a=s*(ae/e))-o)/2:l=-((o=e*(ae/s))-a)/2,i.drawImage(r,l,c,o,a);var h=n.toDataURL();document.body.removeChild(n),t(h)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var s=new FileReader;s.addEventListener("load",(function(){s.result&&(r.src=s.result)})),s.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)}else t("")}))}var ce=n(48689),he={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ue=function(e,t){return r.createElement(G.Z,(0,I.Z)((0,I.Z)({},e),{},{ref:t,icon:he}))};ue.displayName="DownloadOutlined";var Oe=r.forwardRef(ue),fe=n(99611),de=n(97910),pe=n(94199),me=r.forwardRef((function(e,t){var n,o,a,l=e.prefixCls,h=e.className,O=e.style,f=e.locale,d=e.listType,p=e.file,m=e.items,g=e.progress,Q=e.iconRender,b=e.actionIconRender,x=e.itemRender,k=e.isImgUrl,y=e.showPreviewIcon,v=e.showRemoveIcon,$=e.showDownloadIcon,S=e.previewIcon,w=e.removeIcon,T=e.downloadIcon,P=e.onPreview,R=e.onDownload,C=e.onClose,Z=p.status,X=r.useState(Z),j=(0,c.Z)(X,2),W=j[0],q=j[1];r.useEffect((function(){"removed"!==Z&&q(Z)}),[Z]);var _=r.useState(!1),z=(0,c.Z)(_,2),I=z[0],E=z[1],G=r.useRef();r.useEffect((function(){return G.current=setTimeout((function(){E(!0)}),300),function(){window.clearTimeout(G.current)}}),[]);var L="".concat(l,"-span"),D=Q(p),N=r.createElement("div",{className:"".concat(l,"-text-icon")},D);if("picture"===d||"picture-card"===d)if("uploading"===W||!p.thumbUrl&&!p.url){var U,M=u()((U={},(0,s.Z)(U,"".concat(l,"-list-item-thumbnail"),!0),(0,s.Z)(U,"".concat(l,"-list-item-file"),"uploading"!==W),U));N=r.createElement("div",{className:M},D)}else{var J,V=(null===k||void 0===k?void 0:k(p))?r.createElement("img",{src:p.thumbUrl||p.url,alt:p.name,className:"".concat(l,"-list-item-image"),crossOrigin:p.crossOrigin}):D,B=u()((J={},(0,s.Z)(J,"".concat(l,"-list-item-thumbnail"),!0),(0,s.Z)(J,"".concat(l,"-list-item-file"),k&&!k(p)),J));N=r.createElement("a",{className:B,onClick:function(e){return P(p,e)},href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer"},V)}var Y,H=u()((n={},(0,s.Z)(n,"".concat(l,"-list-item"),!0),(0,s.Z)(n,"".concat(l,"-list-item-").concat(W),!0),(0,s.Z)(n,"".concat(l,"-list-item-list-type-").concat(d),!0),n)),K="string"===typeof p.linkProps?JSON.parse(p.linkProps):p.linkProps,ee=v?b(("function"===typeof w?w(p):w)||r.createElement(ce.Z,null),(function(){return C(p)}),l,f.removeFile):null,te=$&&"done"===W?b(("function"===typeof T?T(p):T)||r.createElement(Oe,null),(function(){return R(p)}),l,f.downloadFile):null,ne="picture-card"!==d&&r.createElement("span",{key:"download-delete",className:u()("".concat(l,"-list-item-card-actions"),{picture:"picture"===d})},te,ee),ie=u()("".concat(l,"-list-item-name")),re=p.url?[r.createElement("a",(0,i.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:ie,title:p.name},K,{href:p.url,onClick:function(e){return P(p,e)}}),p.name),ne]:[r.createElement("span",{key:"view",className:ie,onClick:function(e){return P(p,e)},title:p.name},p.name),ne],se=y?r.createElement("a",{href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:p.url||p.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return P(p,e)},title:f.previewFile},"function"===typeof S?S(p):S||r.createElement(fe.Z,null)):null,oe="picture-card"===d&&"uploading"!==W&&r.createElement("span",{className:"".concat(l,"-list-item-actions")},se,"done"===W&&te,ee);Y=p.response&&"string"===typeof p.response?p.response:(null===(o=p.error)||void 0===o?void 0:o.statusText)||(null===(a=p.error)||void 0===a?void 0:a.message)||f.uploadError;var ae=r.createElement("span",{className:L},N,re),le=(0,r.useContext(A.E_).getPrefixCls)(),he=r.createElement("div",{className:H},r.createElement("div",{className:"".concat(l,"-list-item-info")},ae),oe,I&&r.createElement(F.Z,{motionName:"".concat(le,"-fade"),visible:"uploading"===W,motionDeadline:2e3},(function(e){var t=e.className,n="percent"in p?r.createElement(de.Z,(0,i.Z)({},g,{type:"line",percent:p.percent})):null;return r.createElement("div",{className:u()("".concat(l,"-list-item-progress"),t)},n)}))),ue=u()("".concat(l,"-list-").concat(d,"-container"),h),me="error"===W?r.createElement(pe.Z,{title:Y,getPopupContainer:function(e){return e.parentNode}},he):he;return r.createElement("div",{className:ue,style:O,ref:t},x?x(me,p,m,{download:R.bind(null,p),preview:P.bind(null,p),remove:C.bind(null,p)}):me)})),ge=(0,i.Z)({},ee.ZP);delete ge.onAppearEnd,delete ge.onEnterEnd,delete ge.onLeaveEnd;var Qe=function(e,t){var n,o=e.listType,a=void 0===o?"text":o,h=e.previewFile,O=void 0===h?le:h,f=e.onPreview,d=e.onDownload,p=e.onRemove,m=e.locale,g=e.iconRender,Q=e.isImageUrl,b=void 0===Q?oe:Q,x=e.prefixCls,k=e.items,y=void 0===k?[]:k,v=e.showPreviewIcon,$=void 0===v||v,S=e.showRemoveIcon,w=void 0===S||S,T=e.showDownloadIcon,P=void 0!==T&&T,R=e.removeIcon,C=e.previewIcon,Z=e.downloadIcon,X=e.progress,j=void 0===X?{strokeWidth:2,showInfo:!1}:X,W=e.appendAction,q=e.appendActionVisible,_=void 0===q||q,z=e.itemRender,I=(0,K.Z)(),E=r.useState(!1),G=(0,c.Z)(E,2),L=G[0],U=G[1];r.useEffect((function(){"picture"!==a&&"picture-card"!==a||(y||[]).forEach((function(e){"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",O&&O(e.originFileObj).then((function(t){e.thumbUrl=t||"",I()})))}))}),[a,y,O]),r.useEffect((function(){U(!0)}),[]);var M=function(e,t){if(f)return null===t||void 0===t||t.preventDefault(),f(e)},V=function(e){"function"===typeof d?d(e):e.url&&window.open(e.url)},B=function(e){null===p||void 0===p||p(e)},ee=function(e){if(g)return g(e,a);var t="uploading"===e.status,n=b&&b(e)?r.createElement(Y,null):r.createElement(D,null),i=t?r.createElement(N.Z,null):r.createElement(J,null);return"picture"===a?i=t?r.createElement(N.Z,null):n:"picture-card"===a&&(i=t?m.uploading:n),i},ne=function(e,t,n,s){var o={type:"text",size:"small",title:s,onClick:function(n){t(),(0,te.l$)(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if((0,te.l$)(e)){var a=(0,te.Tm)(e,(0,i.Z)((0,i.Z)({},e.props),{onClick:function(){}}));return r.createElement(H.Z,(0,i.Z)({},o,{icon:a}))}return r.createElement(H.Z,(0,i.Z)({},o),r.createElement("span",null,e))};r.useImperativeHandle(t,(function(){return{handlePreview:M,handleDownload:V}}));var ie=r.useContext(A.E_),re=ie.getPrefixCls,se=ie.direction,ae=re("upload",x),ce=u()((n={},(0,s.Z)(n,"".concat(ae,"-list"),!0),(0,s.Z)(n,"".concat(ae,"-list-").concat(a),!0),(0,s.Z)(n,"".concat(ae,"-list-rtl"),"rtl"===se),n)),he=(0,l.Z)(y.map((function(e){return{key:e.uid,file:e}}))),ue="picture-card"===a?"animate-inline":"animate",Oe={motionDeadline:2e3,motionName:"".concat(ae,"-").concat(ue),keys:he,motionAppear:L};return"picture-card"!==a&&(Oe=(0,i.Z)((0,i.Z)({},ge),Oe)),r.createElement("div",{className:ce},r.createElement(F.V,(0,i.Z)({},Oe,{component:!1}),(function(e){var t=e.key,n=e.file,i=e.className,s=e.style;return r.createElement(me,{key:t,locale:m,prefixCls:ae,className:i,style:s,file:n,items:y,progress:j,listType:a,isImgUrl:b,showPreviewIcon:$,showRemoveIcon:w,showDownloadIcon:P,removeIcon:R,previewIcon:C,downloadIcon:Z,iconRender:ee,actionIconRender:ne,itemRender:z,onPreview:M,onDownload:V,onClose:B})})),W&&r.createElement(F.Z,(0,i.Z)({},Oe,{visible:_,forceRender:!0}),(function(e){var t=e.className,n=e.style;return(0,te.Tm)(W,(function(e){return{className:u()(e.className,t),style:(0,i.Z)((0,i.Z)((0,i.Z)({},n),{pointerEvents:t?"none":void 0}),e.style)}}))})))};var be=r.forwardRef(Qe),xe=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{l(i.next(e))}catch(t){s(t)}}function a(e){try{l(i.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},ke="__LIST_IGNORE_".concat(Date.now(),"__"),ye=function(e,t){var n,h=e.fileList,O=e.defaultFileList,f=e.onRemove,d=e.showUploadList,p=void 0===d||d,m=e.listType,g=void 0===m?"text":m,Q=e.onPreview,b=e.onDownload,x=e.onChange,k=e.onDrop,y=e.previewFile,v=e.disabled,$=void 0!==v&&v,S=e.locale,w=e.iconRender,T=e.isImageUrl,P=e.progress,R=e.prefixCls,C=e.className,Z=e.type,I=void 0===Z?"select":Z,E=e.children,G=e.style,L=e.itemRender,D=e.maxCount,N=e.data,U=void 0===N?{}:N,M=e.multiple,J=void 0!==M&&M,V=e.action,B=void 0===V?"":V,Y=e.accept,F=void 0===Y?"":Y,H=e.supportServerRender,K=void 0===H||H,ee=r.useContext(q.Z),te=$||ee,se=(0,j.Z)(O||[],{value:h,postState:function(e){return null!==e&&void 0!==e?e:[]}}),oe=(0,c.Z)(se,2),ae=oe[0],le=oe[1],ce=r.useState("drop"),he=(0,c.Z)(ce,2),ue=he[0],Oe=he[1],fe=r.useRef();r.useMemo((function(){var e=Date.now();(h||[]).forEach((function(t,n){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))}))}),[h]);var de=function(e,t,n){var i=(0,l.Z)(t);1===D?i=i.slice(-1):D&&(i=i.slice(0,D)),(0,W.flushSync)((function(){le(i)}));var r={file:e,fileList:i};n&&(r.event=n),null===x||void 0===x||x(r)},pe=function(e){var t=e.filter((function(e){return!e.file[ke]}));if(t.length){var n=t.map((function(e){return ne(e.file)})),i=(0,l.Z)(ae);n.forEach((function(e){i=ie(e,i)})),n.forEach((function(e,n){var r=e;if(t[n].parsedFile)e.status="uploading";else{var s,o=e.originFileObj;try{s=new File([o],o.name,{type:o.type})}catch(a){(s=new Blob([o],{type:o.type})).name=o.name,s.lastModifiedDate=new Date,s.lastModified=(new Date).getTime()}s.uid=e.uid,r=s}de(r,i)}))}},me=function(e,t,n){try{"string"===typeof e&&(e=JSON.parse(e))}catch(s){}if(re(t,ae)){var i=ne(t);i.status="done",i.percent=100,i.response=e,i.xhr=n;var r=ie(i,ae);de(i,r)}},ge=function(e,t){if(re(t,ae)){var n=ne(t);n.status="uploading",n.percent=e.percent;var i=ie(n,ae);de(n,i,e)}},Qe=function(e,t,n){if(re(n,ae)){var i=ne(n);i.error=e,i.response=t,i.status="error";var r=ie(i,ae);de(i,r)}},ye=function(e){var t;Promise.resolve("function"===typeof f?f(e):f).then((function(n){var r;if(!1!==n){var s=function(e,t){var n=void 0!==e.uid?"uid":"name",i=t.filter((function(t){return t[n]!==e[n]}));return i.length===t.length?null:i}(e,ae);s&&(t=(0,i.Z)((0,i.Z)({},e),{status:"removed"}),null===ae||void 0===ae||ae.forEach((function(e){var n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=fe.current)||void 0===r||r.abort(t),de(t,s))}}))},ve=function(e){Oe(e.type),"drop"===e.type&&(null===k||void 0===k||k(e))};r.useImperativeHandle(t,(function(){return{onBatchStart:pe,onSuccess:me,onProgress:ge,onError:Qe,fileList:ae,upload:fe.current}}));var $e=r.useContext(A.E_),Se=$e.getPrefixCls,we=$e.direction,Te=Se("upload",R),Pe=(0,i.Z)((0,i.Z)({onBatchStart:pe,onError:Qe,onProgress:ge,onSuccess:me},e),{data:U,multiple:J,action:B,accept:F,supportServerRender:K,prefixCls:Te,disabled:te,beforeUpload:function(t,n){return xe(void 0,void 0,void 0,(0,o.Z)().mark((function i(){var r,s,l,c;return(0,o.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=e.beforeUpload,s=e.transformFile,l=t,!r){i.next=13;break}return i.next=5,r(t,n);case 5:if(!1!==(c=i.sent)){i.next=8;break}return i.abrupt("return",!1);case 8:if(delete t[ke],c!==ke){i.next=12;break}return Object.defineProperty(t,ke,{value:!0,configurable:!0}),i.abrupt("return",!1);case 12:"object"===(0,a.Z)(c)&&c&&(l=c);case 13:if(!s){i.next=17;break}return i.next=16,s(l);case 16:l=i.sent;case 17:return i.abrupt("return",l);case 18:case"end":return i.stop()}}),i)})))},onChange:void 0});delete Pe.className,delete Pe.style,E&&!te||delete Pe.id;var Re=function(e,t){return p?r.createElement(_.Z,{componentName:"Upload",defaultLocale:z.Z.Upload},(function(n){var s="boolean"===typeof p?{}:p,o=s.showRemoveIcon,a=s.showPreviewIcon,l=s.showDownloadIcon,c=s.removeIcon,h=s.previewIcon,u=s.downloadIcon;return r.createElement(be,{prefixCls:Te,listType:g,items:ae,previewFile:y,onPreview:Q,onDownload:b,onRemove:ye,showRemoveIcon:!te&&o,showPreviewIcon:a,showDownloadIcon:l,removeIcon:c,previewIcon:h,downloadIcon:u,iconRender:w,locale:(0,i.Z)((0,i.Z)({},n),S),isImageUrl:T,progress:P,appendAction:e,appendActionVisible:t,itemRender:L})})):e};if("drag"===I){var Ce,Ze=u()(Te,(Ce={},(0,s.Z)(Ce,"".concat(Te,"-drag"),!0),(0,s.Z)(Ce,"".concat(Te,"-drag-uploading"),ae.some((function(e){return"uploading"===e.status}))),(0,s.Z)(Ce,"".concat(Te,"-drag-hover"),"dragover"===ue),(0,s.Z)(Ce,"".concat(Te,"-disabled"),te),(0,s.Z)(Ce,"".concat(Te,"-rtl"),"rtl"===we),Ce),C);return r.createElement("span",null,r.createElement("div",{className:Ze,onDrop:ve,onDragOver:ve,onDragLeave:ve,style:G},r.createElement(X,(0,i.Z)({},Pe,{ref:fe,className:"".concat(Te,"-btn")}),r.createElement("div",{className:"".concat(Te,"-drag-container")},E))),Re())}var Xe,je=u()(Te,(n={},(0,s.Z)(n,"".concat(Te,"-select"),!0),(0,s.Z)(n,"".concat(Te,"-select-").concat(g),!0),(0,s.Z)(n,"".concat(Te,"-disabled"),te),(0,s.Z)(n,"".concat(Te,"-rtl"),"rtl"===we),n)),We=(Xe=E?void 0:{display:"none"},r.createElement("div",{className:je,style:Xe},r.createElement(X,(0,i.Z)({},Pe,{ref:fe}))));return"picture-card"===g?r.createElement("span",{className:u()("".concat(Te,"-picture-card-wrapper"),C)},Re(We,!!E)):r.createElement("span",{className:C},We,Re())};var ve=r.forwardRef(ye),$e=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r=t||n<0||m&&e-d>=h}function k(){var e=r();if(x(e))return y(e);O=setTimeout(k,function(e){var n=t-(e-f);return m?a(n,h-(e-d)):n}(e))}function y(e){return O=void 0,g&&l?Q(e):(l=c=void 0,u)}function v(){var e=r(),n=x(e);if(l=arguments,c=this,f=e,n){if(void 0===O)return b(f);if(m)return clearTimeout(O),O=setTimeout(k,t),Q(f)}return void 0===O&&(O=setTimeout(k,t)),u}return t=s(t)||0,i(n)&&(p=!!n.leading,h=(m="maxWait"in n)?o(s(n.maxWait)||0,t):h,g="trailing"in n?!!n.trailing:g),v.cancel=function(){void 0!==O&&clearTimeout(O),d=0,l=f=c=O=void 0},v.flush=function(){return void 0===O?u:y(r())},v}},33448:function(e,t,n){var i=n(44239),r=n(37005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},7771:function(e,t,n){var i=n(55639);e.exports=function(){return i.Date.now()}},14841:function(e,t,n){var i=n(27561),r=n(13218),s=n(33448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},34790:function(e,t,n){"use strict";n.d(t,{B1:function(){return ke},GA:function(){return Oe},Gn:function(){return K},Mb:function(){return l},eC:function(){return c},vQ:function(){return oe},ys:function(){return xe}});var i=n(78120),r=n(47421),s=n(59119);class o{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,s.qz)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),r=i.search(O(e,!1));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function a(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function l(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,i]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e{let r=e.matchBefore(i);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}function c(e,t){return n=>{for(let t=(0,s.qz)(n.state).resolveInner(n.pos,-1);t;t=t.parent)if(e.indexOf(t.name)>-1)return null;return t(n)}}class h{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function u(e){return e.selection.main.head}function O(e,t){var n;let{source:i}=e,r=t&&"^"!=i[0],s="$"!=i[i.length-1];return r||s?new RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}function f(e,t){const n=t.completion.apply||t.completion.label;let r=t.source;var s,o,a,l;"string"==typeof n?e.dispatch((s=e.state,o=n,a=r.from,l=r.to,Object.assign(Object.assign({},s.changeByRange((e=>{if(e==s.selection.main)return{changes:{from:a,to:l,insert:o},range:i.jT.cursor(a+o.length)};let t=l-a;return!e.empty||t&&s.sliceDoc(e.from-t,e.from)!=s.sliceDoc(a,l)?{range:e}:{changes:{from:e.from-t,to:e.from,insert:o},range:i.jT.cursor(e.from-t+o.length)}}))),{userEvent:"input.complete"}))):n(e,t.completion,r.from,r.to)}const d=new WeakMap;function p(e){if(!Array.isArray(e))return e;let t=d.get(e);return t||d.set(e,t=l(e)),t}class m{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t=48&&r<=57||r>=97&&r<=122?2:r>=65&&r<=90?1:0:(c=(0,i.bg)(r))!=c.toLowerCase()?1:c!=c.toUpperCase()?2:0;(!Q||1==b&&m||0==x&&0!=b)&&(t[u]==r||n[u]==r&&(O=!0)?o[u++]=Q:o.length&&(g=!1)),x=b,Q+=(0,i.nZ)(r)}return u==l&&0==o[0]&&g?this.result((O?-200:0)-100,o,e):f==l&&0==d?[-200-e.length,0,p]:a>-1?[-700-e.length,a,a+this.pattern.length]:f==l?[-900-e.length,d,p]:u==l?this.result((O?-200:0)-100-700+(g?0:-1100),o,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[e-n.length],s=1;for(let o of t){let e=o+(this.astral?(0,i.nZ)((0,i.gm)(n,o)):1);s>1&&r[s-1]==o?r[s-1]=e:(r[s++]=o,r[s++]=e)}return r}}const g=i.r$.define({combine:e=>(0,i.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,optionClass:(e,t)=>n=>function(e,t){return e?t?e+" "+t:e:t}(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function Q(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}class b{constructor(e,t){this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this};let n=e.state.field(t),{options:i,selected:r}=n.open,s=e.state.facet(g);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let i=document.createElement("span");i.className="cm-completionLabel";let{label:r}=e,s=0;for(let o=1;os&&i.appendChild(document.createTextNode(r.slice(s,e)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(r.slice(e,t))),a.className="cm-completionMatchedText",s=t}return se.position-t.position)).map((e=>e.render))}(s),this.optionClass=s.optionClass,this.range=Q(i.length,r,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.dom.addEventListener("mousedown",(t=>{for(let n,r=t.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(n=/-(\d+)$/.exec(r.id))&&+n[1]{this.info&&this.view.requestMeasure(this.placeInfo)}))}mount(){this.updateSel()}update(e){e.state.field(this.stateField)!=e.startState.field(this.stateField)&&this.updateSel()}positioned(){this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=Q(t.options.length,t.selected,this.view.state.facet(g).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let s="string"===typeof i?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)})).catch((e=>(0,r.OO)(this.view.state,e,"completion info"))):this.addInfoPane(s)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&function(e,t){let n=e.getBoundingClientRect(),i=t.getBoundingClientRect();i.topn.bottom&&(e.scrollTop+=i.bottom-n.bottom)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.ownerDocument.defaultView||window,n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=e.getBoundingClientRect();if(s.top>Math.min(t.innerHeight,n.bottom)-10||s.bottom=i.height||e>n.top?h=s.bottom-n.top+"px":u=n.bottom-s.top+"px"}return{top:h,bottom:u,maxWidth:o,class:c?a?"left-narrow":"right-narrow":l?"left":"right"}}positionInfo(e){this.info&&(e?(this.info.style.top=e.top,this.info.style.bottom=e.bottom,this.info.style.maxWidth=e.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+e.class):this.info.style.top="-1e6px")}createListBox(e,t,n){const i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=n.from;r=this.options.length?this:new k(this.options,$(t,e),this.tooltip,this.timestamp,e)}static build(e,t,n,i,r){let s=function(e,t){let n=[],i=0;for(let a of e)if(a.hasResult())if(!1===a.result.filter){let e=a.result.getMatch;for(let t of a.result.options){let r=[1e9-i++];if(e)for(let n of e(t))r.push(n);n.push(new h(t,a,r))}}else{let e,i=new m(t.sliceDoc(a.from,a.to));for(let t of a.result.options)(e=i.match(t.label))&&(null!=t.boost&&(e[0]+=t.boost),n.push(new h(t,a,e)))}let r=[],s=null,o=t.facet(g).compareCompletions;for(let a of n.sort(((e,t)=>t.match[0]-e.match[0]||o(e.completion,t.completion))))!s||s.label!=a.completion.label||s.detail!=a.completion.detail||null!=s.type&&null!=a.completion.type&&s.type!=a.completion.type||s.apply!=a.completion.apply?r.push(a):x(a.completion)>x(s)&&(r[r.length-1]=a),s=a.completion;return r}(e,t);if(!s.length)return null;let o=t.facet(g).selectOnOpen?0:-1;if(i&&i.selected!=o&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:(a=j,e=>new b(e,a)),above:r.aboveCursor},i?i.timestamp:Date.now(),o);var a}map(e){return new k(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}class y{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new y(S,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(g),i=(n.override||t.languageDataAt("autocomplete",u(t)).map(p)).map((t=>(this.active.find((e=>e.source==t))||new T(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));i.length==this.active.length&&i.every(((e,t)=>e==this.active[t]))&&(i=this.active);let r=e.selection||i.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n1!=e.state))&&i.some((e=>e.hasResult()))&&(i=i.map((e=>e.hasResult()?new T(e.source,0):e)));for(let s of e.effects)s.is(X)&&(r=r&&r.setSelected(s.value,this.id));return i==this.active&&r==this.open?this:new y(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:v}}const v={"aria-autocomplete":"list"};function $(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const S=[];function w(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class T{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=w(e),i=this;n?i=i.handleUserEvent(e,n,t):e.docChanged?i=i.handleChange(e):e.selection&&0!=i.state&&(i=new T(i.source,0));for(let r of e.effects)if(r.is(R))i=new T(i.source,1,r.value?u(e.state):-1);else if(r.is(C))i=new T(i.source,0);else if(r.is(Z))for(let e of r.value)e.source==i.source&&(i=e);return i}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new T(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(u(e.startState))?new T(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new T(this.source,this.state,e.mapPos(this.explicitPos))}}class P extends T{constructor(e,t,n,i,r){super(e,2,t),this.result=n,this.from=i,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var i;let r=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),a=u(e.state);if((this.explicitPos<0?a<=r:as||"delete"==t&&u(e.startState)==this.from)return new T(this.source,"input"==t&&n.activateOnTyping?1:0);let l,c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,i){if(!e)return!1;let r=t.sliceDoc(n,i);return"function"==typeof e?e(r,n,i,t):O(e,!0).test(r)}(this.result.validFor,e.state,r,s)?new P(this.source,c,this.result,r,s):this.result.update&&(l=this.result.update(this.result,r,s,new o(e.state,a,c>=0)))?new P(this.source,c,l,l.from,null!==(i=l.to)&&void 0!==i?i:u(e.state)):new T(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new T(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new P(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const R=i.Py.define(),C=i.Py.define(),Z=i.Py.define({map:(e,t)=>e.map((e=>e.map(t)))}),X=i.Py.define(),j=i.QQ.define({create:()=>y.start(),update:(e,t)=>e.update(t),provide:e=>[r.hJ.from(e,(e=>e.tooltip)),r.tk.contentAttributes.from(e,(e=>e.attrs))]});function W(e,t="option"){return n=>{let i=n.state.field(j,!1);if(!i||!i.open||Date.now()-i.open.timestamp-1?i.open.selected+o*(e?1:-1):e?0:a-1;return l<0?l="page"==t?0:a-1:l>=a&&(l="page"==t?a-1:0),n.dispatch({effects:X.of(l)}),!0}}class A{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const q=r.lg.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(j).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(j);if(!e.selectionSet&&!e.docChanged&&e.startState.field(j)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!w(e)));for(let s=0;s50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(i){(0,r.OO)(this.view.state,i)}t.context.abortListeners=null,this.running.splice(s--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let r of e.transactions)"input"==w(r)?this.composing=2:2==this.composing&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(j);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=u(t),i=new o(t,n,e.explicitPos==n),s=new A(e,i);this.running.push(s),Promise.resolve(e.source(i)).then((e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:C.of(null)}),(0,r.OO)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(g);for(let i=0;ie.source==r.active.source));if(s&&1==s.state)if(null==r.done){let e=new T(r.active.source,0);for(let t of r.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(s)}t.length&&this.view.dispatch({effects:Z.of(t)})}},{eventHandlers:{blur(){let e=this.view.state.field(j,!1);e&&e.tooltip&&this.view.state.facet(g).closeOnBlur&&this.view.dispatch({effects:C.of(null)})},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:R.of(!1)})),20),this.composing=0}}}),_=r.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class z{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class I{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,i.gc.TrackDel),n=e.mapPos(this.to,1,i.gc.TrackDel);return null==t||null==n?null:new I(this.field,t,n)}}class E{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let n=o,r=/^\t*/.exec(l)[0].length;for(let t=0;tnew I(e.field,i[e.line]+e.from,i[e.line]+e.to)));return{text:n,ranges:a}}static parse(e){let t,n=[],i=[],r=[];for(let s of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let e=t[1]?+t[1]:null,o=t[2]||t[3]||"",a=-1;for(let t=0;t=a&&e.field++}r.push(new z(a,i.length,t.index,t.index+o.length)),s=s.slice(0,t.index)+o+s.slice(t.index+t[0].length)}for(let e;e=/([$#])\\{/.exec(s);){s=s.slice(0,e.index)+e[1]+"{"+s.slice(e.index+e[0].length);for(let t of r)t.line==i.length&&t.from>e.index&&(t.from--,t.to--)}i.push(s)}return new E(i,r)}}let G=r.p.widget({widget:new class extends r.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),L=r.p.mark({class:"cm-snippetField"});class D{constructor(e,t){this.ranges=e,this.active=t,this.deco=r.p.set(e.map((e=>(e.from==e.to?G:L).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new D(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const N=i.Py.define({map:(e,t)=>e&&e.map(t)}),U=i.Py.define(),M=i.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(N))return n.value;if(n.is(U)&&e)return new D(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>r.tk.decorations.from(e,(e=>e?e.deco:r.p.none))});function J(e,t){return i.jT.create(e.filter((e=>e.field==t)).map((e=>i.jT.range(e.from,e.to))))}function V(e){let t=E.parse(e);return(e,n,r,s)=>{let{text:o,ranges:a}=t.instantiate(e.state,r),l={changes:{from:r,to:s,insert:i.xv.of(o)},scrollIntoView:!0};if(a.length&&(l.selection=J(a,0)),a.length>1){let t=new D(a,0),n=l.effects=[N.of(t)];void 0===e.state.field(M,!1)&&n.push(i.Py.appendConfig.of([M,H,ee,_]))}e.dispatch(e.state.update(l))}}function B(e){return({state:t,dispatch:n})=>{let i=t.field(M,!1);if(!i||e<0&&0==i.active)return!1;let r=i.active+e,s=e>0&&!i.ranges.some((t=>t.field==r+e));return n(t.update({selection:J(i.ranges,r),effects:N.of(s?null:new D(i.ranges,r))})),!0}}const Y=[{key:"Tab",run:B(1),shift:B(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(M,!1)&&(t(e.update({effects:N.of(null)})),!0)}],F=i.r$.define({combine:e=>e.length?e[0]:Y}),H=i.Wl.highest(r.$f.compute([F],(e=>e.facet(F))));function K(e,t){return Object.assign(Object.assign({},t),{apply:V(e)})}const ee=r.tk.domEventHandlers({mousedown(e,t){let n,i=t.state.field(M,!1);if(!i||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=i.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==i.active)&&(t.dispatch({selection:J(i.ranges,r.field),effects:N.of(i.ranges.some((e=>e.field>r.field))?new D(i.ranges,r.field):null)}),!0)}});const te={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ne=i.Py.define({map(e,t){let n=t.mapPos(e,-1,i.gc.TrackAfter);return null==n?void 0:n}}),ie=i.Py.define({map:(e,t)=>t.mapPos(e)}),re=new class extends i.uU{};re.startSide=1,re.endSide=-1;const se=i.QQ.define({create:()=>i.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=i.Xs.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(ne)?e=e.update({add:[re.range(n.value,n.value+1)]}):n.is(ie)&&(e=e.update({filter:e=>e!=n.value}));return e}});function oe(){return[ue,se]}const ae="()[]{}<>";function le(e){for(let t=0;t{if((he?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let s=e.state.selection.main;if(r.length>2||2==r.length&&1==(0,i.nZ)((0,i.gm)(r,0))||t!=s.from||n!=s.to)return!1;let o=function(e,t){let n=ce(e,e.selection.main.head),r=n.brackets||te.brackets;for(let s of r){let o=le((0,i.gm)(s,0));if(t==s)return o==s?ge(e,s,r.indexOf(s+s+s)>-1,n):pe(e,s,o,n.before||te.before);if(t==o&&fe(e,e.selection.main.from))return me(e,s,o)}return null}(e.state,r);return!!o&&(e.dispatch(o),!0)})),Oe=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=ce(e,e.selection.main.head).brackets||te.brackets,r=null,s=e.changeByRange((t=>{if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t);return(0,i.nZ)((0,i.gm)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let s of n)if(s==r&&de(e.doc,t.head)==le((0,i.gm)(s,0)))return{changes:{from:t.head-s.length,to:t.head+s.length},range:i.jT.cursor(t.head-s.length)}}return{range:r=t}}));return r||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function fe(e,t){let n=!1;return e.field(se).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function de(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,i.nZ)((0,i.gm)(n,0)))}function pe(e,t,n,r){let s=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:ne.of(o.to+t.length),range:i.jT.range(o.anchor+t.length,o.head+t.length)};let a=de(e.doc,o.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:o.head},effects:ne.of(o.head+t.length),range:i.jT.cursor(o.head+t.length)}:{range:s=o}}));return s?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function me(e,t,n){let r=null,s=e.selection.ranges.map((t=>t.empty&&de(e.doc,t.head)==n?i.jT.cursor(t.head+n.length):r=t));return r?null:e.update({selection:i.jT.create(s,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map((({from:e})=>ie.of(e)))})}function ge(e,t,n,r){let o=r.stringPrefixes||te.stringPrefixes,a=null,l=e.changeByRange((r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:ne.of(r.to+t.length),range:i.jT.range(r.anchor+t.length,r.head+t.length)};let l,c=r.head,h=de(e.doc,c);if(h==t){if(Qe(e,c))return{changes:{insert:t+t,from:c},effects:ne.of(c+t.length),range:i.jT.cursor(c+t.length)};if(fe(e,c)){let r=n&&e.sliceDoc(c,c+3*t.length)==t+t+t;return{range:i.jT.cursor(c+t.length*(r?3:1)),effects:ie.of(c)}}}else{if(n&&e.sliceDoc(c-2*t.length,c)==t+t&&(l=be(e,c-2*t.length,o))>-1&&Qe(e,l))return{changes:{insert:t+t+t+t,from:c},effects:ne.of(c+t.length),range:i.jT.cursor(c+t.length)};if(e.charCategorizer(c)(h)!=i.D0.Word&&be(e,c,o)>-1&&!function(e,t,n,i){let r=(0,s.qz)(e).resolveInner(t,-1),o=i.reduce(((e,t)=>Math.max(e,t.length)),0);for(let s=0;s<5;s++){let s=e.sliceDoc(r.from,Math.min(r.to,r.from+n.length+o)),a=s.indexOf(n);if(!a||a>-1&&i.indexOf(s.slice(0,a))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>n.length+a;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=r.to==t&&r.parent;if(!l)break;r=l}return!1}(e,c,t,o))return{changes:{insert:t+t,from:c},effects:ne.of(c+t.length),range:i.jT.cursor(c+t.length)}}return{range:a=r}}));return a?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Qe(e,t){let n=(0,s.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function be(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=i.D0.Word)return t;for(let s of n){let n=t-s.length;if(e.sliceDoc(n,t)==s&&r(e.sliceDoc(n-1,n))!=i.D0.Word)return n}return-1}function xe(e={}){return[j,g.of(e),q,ye,_]}const ke=[{key:"Ctrl-Space",run:e=>!!e.state.field(j,!1)&&(e.dispatch({effects:R.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(j,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:C.of(null)}),!0)}},{key:"ArrowDown",run:W(!0)},{key:"ArrowUp",run:W(!1)},{key:"PageDown",run:W(!0,"page")},{key:"PageUp",run:W(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(j,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestampe.facet(g).defaultKeymap?[ke]:[])))},61426:function(e,t,n){"use strict";n.r(t),n.d(t,{css:function(){return $},cssCompletionSource:function(){return y},cssLanguage:function(){return v}});var i=n(53105),r=n(35524);const s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function o(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const a=new i.Jq(((e,t)=>{for(let i=!1,r=0,s=0;;s++){let{next:a}=e;if(!(o(a)||45==a||95==a||i&&(n=a,n>=48&&n<=57))){i&&e.acceptToken(40==a?94:2==r&&t.canShift(2)?2:95);break}!i&&(45!=a||s>0)&&(i=!0),r===s&&45==a&&r++,e.advance()}var n})),l=new i.Jq((e=>{if(s.includes(e.peek(-1))){let{next:t}=e;(o(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(93)}})),c=new i.Jq((e=>{if(!s.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),o(t)){do{e.advance()}while(o(e.next));e.acceptToken(1)}}})),h=(0,r.Gv)({"AtKeyword import charset namespace keyframes media supports":r.pJ.definitionKeyword,"from to selector":r.pJ.keyword,NamespaceName:r.pJ.namespace,KeyframeName:r.pJ.labelName,TagName:r.pJ.tagName,ClassName:r.pJ.className,PseudoClassName:r.pJ.constant(r.pJ.className),IdName:r.pJ.labelName,"FeatureName PropertyName":r.pJ.propertyName,AttributeName:r.pJ.attributeName,NumberLiteral:r.pJ.number,KeywordQuery:r.pJ.keyword,UnaryQueryOp:r.pJ.operatorKeyword,"CallTag ValueName":r.pJ.atom,VariableName:r.pJ.variableName,Callee:r.pJ.operatorKeyword,Unit:r.pJ.unit,"UniversalSelector NestingSelector":r.pJ.definitionOperator,MatchOp:r.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":r.pJ.logicOperator,BinOp:r.pJ.arithmeticOperator,Important:r.pJ.modifier,Comment:r.pJ.blockComment,ParenthesizedContent:r.pJ.special(r.pJ.name),ColorLiteral:r.pJ.color,StringLiteral:r.pJ.string,":":r.pJ.punctuation,"PseudoOp #":r.pJ.derefOperator,"; ,":r.pJ.separator,"( )":r.pJ.paren,"[ ]":r.pJ.squareBracket,"{ }":r.pJ.brace}),u={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},O={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},f={__proto__:null,not:128,only:128,from:158,to:160},d=i.WQ.deserialize({version:14,states:"7WOYQ[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO!ZQ[O'#CfO!}QXO'#CaO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(item|length)$/.test(t)||e.push(t);m=e.sort().map((e=>({type:"property",label:e})))}return m||[]}const Q=["active","after","before","checked","default","disabled","empty","enabled","first-child","first-letter","first-line","first-of-type","focus","hover","in-range","indeterminate","invalid","lang","last-child","last-of-type","link","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-of-type","only-child","optional","out-of-range","placeholder","read-only","read-write","required","root","selection","target","valid","visited"].map((e=>({type:"class",label:e}))),b=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),x=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),k=/^[\w-]*/,y=e=>{let{state:t,pos:n}=e,i=(0,p.qz)(t).resolveInner(n,-1);if("PropertyName"==i.name)return{from:i.from,options:g(),validFor:k};if("ValueName"==i.name)return{from:i.from,options:b,validFor:k};if("PseudoClassName"==i.name)return{from:i.from,options:Q,validFor:k};if("TagName"==i.name){for(let{parent:e}=i;e;e=e.parent)if("Block"==e.name)return{from:i.from,options:g(),validFor:k};return{from:i.from,options:x,validFor:k}}if(!e.explicit)return null;let r=i.resolve(n),s=r.childBefore(n);return s&&":"==s.name&&"PseudoClassSelector"==r.name?{from:n,options:Q,validFor:k}:s&&":"==s.name&&"Declaration"==r.name||"ArgList"==r.name?{from:n,options:b,validFor:k}:"Block"==r.name?{from:n,options:g(),validFor:k}:null},v=p.qp.define({parser:d.configure({props:[p.uj.add({Declaration:(0,p.tC)()}),p.x0.add({Block:p.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function $(){return new p.ri(v,v.data.of({autocomplete:y}))}},13804:function(e,t,n){"use strict";n.r(t),n.d(t,{autoCloseTags:function(){return ne},html:function(){return te},htmlCompletionSource:function(){return H},htmlCompletionSourceWith:function(){return K},htmlLanguage:function(){return ee}});var i=n(53105),r=n(35524),s=n(41113);const o={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},a={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},l={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function c(e){return 9==e||10==e||13==e||32==e}let h=null,u=null,O=0;function f(e,t){let n=e.pos+t;if(O==n&&u==e)return h;let i=e.peek(t);for(;c(i);)i=e.peek(++t);let r="";for(;45==(s=i)||46==s||58==s||s>=65&&s<=90||95==s||s>=97&&s<=122||s>=161;)r+=String.fromCharCode(i),i=e.peek(++t);var s;return u=e,O=n,h=r?r.toLowerCase():i==d||i==p?void 0:null}const d=63,p=33;function m(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;ng.indexOf(t)>-1?new m(f(i,1)||"",e):e,reduce:(e,t)=>18==t&&e?e.parent:e,reuse(e,t,n,i){let r=t.type.id;return 4==r||35==r?new m(f(i,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),b=new i.Jq(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(56));e.advance();let n=47==e.next;n&&e.advance();let i=f(e,0);if(void 0===i)return;if(!i)return e.acceptToken(n?12:4);let r=t.context?t.context.name:null;if(n){if(i==r)return e.acceptToken(9);if(r&&a[r])return e.acceptToken(56,-2);if(t.dialectEnabled(0))return e.acceptToken(10);for(let e=t.context;e;e=e.parent)if(e.name==i)return;e.acceptToken(11)}else{if("script"==i)return e.acceptToken(5);if("style"==i)return e.acceptToken(6);if("textarea"==i)return e.acceptToken(7);if(o.hasOwnProperty(i))return e.acceptToken(8);r&&l[r]&&l[r][i]?e.acceptToken(56,-1):e.acceptToken(4)}}),{contextual:!0}),x=new i.Jq((e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(57);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>3&&e.acceptToken(57,-2);break}t=0}e.advance()}}));function k(e,t,n){let r=2+e.length;return new i.Jq((i=>{for(let s=0,o=0,a=0;;a++){if(i.next<0){a&&i.acceptToken(t);break}if(0==s&&60==i.next||1==s&&47==i.next||s>=2&&so?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}if((10==i.next||13==i.next)&&a){i.acceptToken(t,1);break}s=o=0}else o++;i.advance()}}))}const y=k("script",53,1),v=k("style",54,2),$=k("textarea",55,3),S=(0,r.Gv)({"Text RawText":r.pJ.content,"StartTag StartCloseTag SelfCloserEndTag EndTag SelfCloseEndTag":r.pJ.angleBracket,TagName:r.pJ.tagName,"MismatchedCloseTag/TagName":[r.pJ.tagName,r.pJ.invalid],AttributeName:r.pJ.attributeName,"AttributeValue UnquotedAttributeValue":r.pJ.attributeValue,Is:r.pJ.definitionOperator,"EntityReference CharacterReference":r.pJ.character,Comment:r.pJ.blockComment,ProcessingInst:r.pJ.processingInstruction,DoctypeDecl:r.pJ.documentMeta}),w=i.WQ.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DSO$tQ!bO'#DUO$yQ!bO'#DVOOOW'#Dj'#DjOOOW'#DX'#DXQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%pQ#tO,59mOOOX'#D]'#D]O%xOXO'#CwO&TOXO,59YOOOY'#D^'#D^O&]OYO'#CzO&hOYO,59YOOO['#D_'#D_O&pO[O'#C}O&{O[O,59YOOOW'#D`'#D`O'TOxO,59YO'[Q!bO'#DQOOOW,59Y,59YOOO`'#Da'#DaO'aO!rO,59nO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O~OfyOj!gO~OfyOj!hO~OfyOj!iO~OfyOj!jO~Od!kO~Od!lO~Od!mO~Oj!nO~Oi!qO!_!oO!a!pO~Oj!rO~Oj!sO~Oj!tO~O_!uO`!uOa!uO!_!wO!`!uO~O_!xO`!xOa!xO!a!wO!b!xO~O_!uO`!uOa!uO!_!{O!`!uO~O_!xO`!xOa!xO!a!{O!b!xO~O`_a!cwz!c~",goto:"%o!_PPPPPPPPPPPPPPPPPP!`!fP!lPP!xPP!{#O#R#X#[#_#e#h#k#q#w!`P!`!`P#}$T$k$q$w$}%T%Z%aPPPPPPPP%gX^OX`pXUOX`pezabcde{}!P!R!TR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!TeZ!e{}!P!R!TQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"\u26a0 StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:66,context:Q,nodeProps:[["closedBy",-11,1,2,3,4,5,6,7,8,9,10,11,"EndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,38,39,40,41,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag"]],propSources:[S],skippedNodes:[0],repeatNodeCount:9,tokenData:"!#b!aR!WOX$kXY)sYZ)sZ]$k]^)s^p$kpq)sqr$krs*zsv$kvw+dwx2yx}$k}!O3f!O!P$k!P!Q7_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k!RJgV!``!bpOr(krs'gsv(kwx(]x#d(k#d#eJ|#e~(k!RKTV!``!bpOr(krs'gsv(kwx(]x#X(k#X#YDq#Y~(k!RKqW!``!bpOrKjrsLZsvKjvwLowxNPx!aKj!a!b! g!b~KjqL`T!bpOvLZvxLox!aLZ!a!bM^!b~LZPLrRO!aLo!a!bL{!b~LoPMORO!`Lo!`!aMX!a~LoPM^OwPqMcT!bpOvLZvxLox!`LZ!`!aMr!a~LZqMyQ!bpwPOv'gx~'gaNUV!``OrNPrsLosvNPvwLow!aNP!a!bNk!b~NPaNpV!``OrNPrsLosvNPvwLow!`NP!`!a! V!a~NPa! ^R!``wPOr(]sv(]w~(]!R! nW!``!bpOrKjrsLZsvKjvwLowxNPx!`Kj!`!a!!W!a~Kj!R!!aT!``!bpwPOr(krs'gsv(kwx(]x~(k!V!!{VgS^P!``!bpOr&Rrs&qsv&Rwx'rx!^&R!^!_(k!_~&R",tokenizers:[y,v,$,b,x,0,1,2,3,4,5],topRules:{Document:[0,13]},dialects:{noMatch:0},tokenPrec:476});function T(e,t){let n=Object.create(null);for(let i of e.firstChild.getChildren("Attribute")){let e=i.getChild("AttributeName"),r=i.getChild("AttributeValue")||i.getChild("UnquotedAttributeValue");e&&(n[t.read(e.from,e.to)]=r?"AttributeValue"==r.name?t.read(r.from+1,r.to-1):t.read(r.from,r.to):"")}return n}function P(e,t,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=T(e.node.parent,t))))return{parser:r.parser};return null}function R(e){let t=[],n=[],i=[];for(let r of e){let e="script"==r.tag?t:"style"==r.tag?n:"textarea"==r.tag?i:null;if(!e)throw new RangeError("Only script, style, and textarea tags can host nested parsers");e.push(r)}return(0,s.FE)(((e,r)=>{let s=e.type.id;return 27==s?P(e,r,t):30==s?P(e,r,n):33==s?P(e,r,i):null}))}var C=n(61426),Z=n(58037),X=n(47421),j=n(78120),W=n(59119);const A=["_blank","_self","_top","_parent"],q=["ascii","utf-8","utf-16","latin1","latin1"],_=["get","post","put","delete"],z=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],I=["true","false"],E={},G={a:{attrs:{href:null,ping:null,type:null,media:null,target:A,hreflang:null}},abbr:E,acronym:E,address:E,applet:E,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:E,aside:E,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:E,base:{attrs:{href:null,target:A}},basefont:E,bdi:E,bdo:E,big:E,blockquote:{attrs:{cite:null}},body:E,br:E,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:z,formmethod:_,formnovalidate:["novalidate"],formtarget:A,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:E,center:E,cite:E,code:E,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:E,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:E,dir:E,div:E,dl:E,dt:E,em:E,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:E,figure:E,font:E,footer:E,form:{attrs:{action:null,name:null,"accept-charset":q,autocomplete:["on","off"],enctype:z,method:_,novalidate:["novalidate"],target:A}},frame:E,frameset:E,h1:E,h2:E,h3:E,h4:E,h5:E,h6:E,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:E,hgroup:E,hr:E,html:{attrs:{manifest:null}},i:E,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:z,formmethod:_,formnovalidate:["novalidate"],formtarget:A,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:E,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:E,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:E,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:q,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:E,noframes:E,noscript:E,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:E,param:{attrs:{name:null,value:null}},pre:E,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:E,rt:E,ruby:E,s:E,samp:E,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:q}},section:E,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:E,source:{attrs:{src:null,type:null,media:null}},span:E,strike:E,strong:E,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:E,summary:E,sup:E,table:E,tbody:E,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:E,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:E,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:E,time:{attrs:{datetime:null}},title:E,tr:E,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},tt:E,u:E,ul:{children:["li","script","template","ul","ol"]},var:E,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:E},L={accesskey:null,class:null,contenteditable:I,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:I,autocorrect:I,autocapitalize:I,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":I,"aria-autocomplete":["inline","list","both","none"],"aria-busy":I,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":I,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":I,"aria-hidden":I,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":I,"aria-multiselectable":I,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":I,"aria-relevant":null,"aria-required":I,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};class D{constructor(e,t){this.tags=Object.assign(Object.assign({},G),e),this.globalAttrs=Object.assign(Object.assign({},L),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function N(e,t,n=e.length){if(!t)return"";let i=t.firstChild,r=i&&i.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,n)):""}function U(e,t=!1){for(let n=e.parent;n;n=n.parent)if("Element"==n.name){if(!t)return n;t=!1}return null}function M(e,t,n){let i=n.tags[N(e,U(t,!0))];return(null===i||void 0===i?void 0:i.children)||n.allTags}function J(e,t){let n=[];for(let i=t;i=U(i);){let r=N(e,i);if(r&&"CloseTag"==i.lastChild.name)break;r&&n.indexOf(r)<0&&("EndTag"==t.name||t.from>=i.firstChild.to)&&n.push(r)}return n}D.default=new D;const V=/^[:\-\.\w\u00b7-\uffff]*$/;function B(e,t,n,i,r){let s=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:i,to:r,options:M(e.doc,n,t).map((e=>({label:e,type:"type"}))).concat(J(e.doc,n).map(((e,t)=>({label:"/"+e,apply:"/"+e+s,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Y(e,t,n,i){let r=/\s*>/.test(e.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:J(e.doc,t).map(((e,t)=>({label:e,apply:e+r,type:"type",boost:99-t}))),validFor:V}}function F(e,t){let{state:n,pos:i}=t,r=(0,W.qz)(n).resolveInner(i),s=r.resolve(i,-1);for(let o,a=i;r==s&&(o=s.childBefore(a));){let e=o.lastChild;if(!e||!e.type.isError||e.from({label:e,type:"property"}))),validFor:V}}(n,e,s,"AttributeName"==s.name?s.from:i,i):"Is"==s.name||"AttributeValue"==s.name||"UnquotedAttributeValue"==s.name?function(e,t,n,i,r){var s;let o,a=null===(s=n.parent)||void 0===s?void 0:s.getChild("AttributeName"),l=[];if(a){let s=e.sliceDoc(a.from,a.to),c=t.globalAttrs[s];if(!c){let i=U(n),r=i?t.tags[N(e.doc,i)]:null;c=(null===r||void 0===r?void 0:r.attrs)&&r.attrs[s]}if(c){let t=e.sliceDoc(i,r).toLowerCase(),n='"',s='"';/^['"]/.test(t)?(o='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",s=e.sliceDoc(r,r+1)==t[0]?"":t[0],t=t.slice(1),i++):o=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:n+e+s,type:"constant"})}}return{from:i,to:r,options:l,validFor:o}}(n,e,s,"Is"==s.name?i:s.from,i):!t.explicit||"Element"!=r.name&&"Text"!=r.name&&"Document"!=r.name?null:function(e,t,n,i){let r=[],s=0;for(let o of M(e.doc,n,t))r.push({label:"<"+o,type:"type"});for(let o of J(e.doc,n))r.push({label:"",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,s,i)}function H(e){return F(D.default,e)}function K(e){let{extraTags:t,extraGlobalAttributes:n}=e,i=n||t?new D(t,n):D.default;return e=>F(i,e)}const ee=W.qp.define({parser:w.configure({props:[W.uj.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:Z.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:C.cssLanguage.parser}])}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});function te(e={}){let t=ee;return!1===e.matchClosingTags&&(t=t.configure({dialect:"noMatch"})),new W.ri(t,[ee.data.of({autocomplete:K(e)}),!1!==e.autoCloseTags?ne:[],(0,Z.javascript)().support,(0,C.css)().support])}const ne=X.tk.inputHandler.of(((e,t,n,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=i&&"/"!=i||!ee.isActiveAt(e.state,t,-1))return!1;let{state:r}=e,s=r.changeByRange((t=>{var n,s,o;let a,{head:l}=t,c=(0,W.qz)(r).resolveInner(l,-1);if("TagName"!=c.name&&"StartTag"!=c.name||(c=c.parent),">"==i&&"OpenTag"==c.name){if("CloseTag"!=(null===(s=null===(n=c.parent)||void 0===n?void 0:n.lastChild)||void 0===s?void 0:s.name)&&(a=N(r.doc,c.parent,l))){let t=">"===e.state.doc.sliceString(l,l+1),n=`${t?"":">"}`;return{range:j.jT.cursor(l+1),changes:{from:l+(t?1:0),insert:n}}}}else if("/"==i&&"OpenTag"==c.name){let t=c.parent,n=null===t||void 0===t?void 0:t.parent;if(t.from==l-1&&"CloseTag"!=(null===(o=n.lastChild)||void 0===o?void 0:o.name)&&(a=N(r.doc,n,l))){let t=">"===e.state.doc.sliceString(l,l+1),n=`/${a}${t?"":">"}`,i=l+n.length+(t?1:0);return{range:j.jT.cursor(i),changes:{from:l,insert:n}}}}return{range:t}}));return!s.changes.empty&&(e.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)}))},58037:function(e,t,n){"use strict";n.r(t),n.d(t,{autoCloseTags:function(){return N},completionPath:function(){return W},esLint:function(){return U},javascript:function(){return G},javascriptLanguage:function(){return q},jsxLanguage:function(){return z},localCompletionSource:function(){return X},scopeCompletionSource:function(){return A},snippets:function(){return v},tsxLanguage:function(){return I},typescriptLanguage:function(){return _}});var i=n(53105),r=n(35524);const s=282,o=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],a=new i.IK({start:!1,shift:(e,t)=>5==t||6==t||286==t?e:287==t,strict:!1}),l=new i.Jq(((e,t)=>{let{next:n}=e;(125==n||-1==n||t.context)&&t.canShift(284)&&e.acceptToken(284)}),{contextual:!0,fallback:!0}),c=new i.Jq(((e,t)=>{let n,{next:i}=e;o.indexOf(i)>-1||(47!=i||47!=(n=e.peek(1))&&42!=n)&&125!=i&&59!=i&&-1!=i&&!t.context&&t.canShift(281)&&e.acceptToken(281)}),{contextual:!0}),h=new i.Jq(((e,t)=>{let{next:n}=e;if((43==n||45==n)&&(e.advance(),n==e.next)){e.advance();let n=!t.context&&t.canShift(2);e.acceptToken(n?2:3)}}),{contextual:!0}),u=new i.Jq((e=>{for(let t=!1,n=0;;n++){let{next:i}=e;if(i<0){n&&e.acceptToken(s);break}if(96==i){n?e.acceptToken(s):e.acceptToken(283,1);break}if(123==i&&t){1==n?e.acceptToken(4,1):e.acceptToken(s,-1);break}if(10==i&&n){e.advance(),e.acceptToken(s);break}92==i&&e.advance(),t=36==i,e.advance()}})),O=new i.Jq(((e,t)=>{if(101==e.next&&t.dialectEnabled(1)){e.advance();for(let t=0;t<6;t++){if(e.next!="xtends".charCodeAt(t))return;e.advance()}e.next>=57&&e.next<=65||e.next>=48&&e.next<=90||95==e.next||e.next>=97&&e.next<=122||e.next>160||e.acceptToken(1)}})),f=(0,r.Gv)({"get set async static":r.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":r.pJ.controlKeyword,"in of await yield void typeof delete instanceof":r.pJ.operatorKeyword,"let var const function class extends":r.pJ.definitionKeyword,"import export from":r.pJ.moduleKeyword,"with debugger as new":r.pJ.keyword,TemplateString:r.pJ.special(r.pJ.string),super:r.pJ.atom,BooleanLiteral:r.pJ.bool,this:r.pJ.self,null:r.pJ.null,Star:r.pJ.modifier,VariableName:r.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":r.pJ.function(r.pJ.variableName),VariableDefinition:r.pJ.definition(r.pJ.variableName),Label:r.pJ.labelName,PropertyName:r.pJ.propertyName,PrivatePropertyName:r.pJ.special(r.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":r.pJ.function(r.pJ.propertyName),"FunctionDeclaration/VariableDefinition":r.pJ.function(r.pJ.definition(r.pJ.variableName)),"ClassDeclaration/VariableDefinition":r.pJ.definition(r.pJ.className),PropertyDefinition:r.pJ.definition(r.pJ.propertyName),PrivatePropertyDefinition:r.pJ.definition(r.pJ.special(r.pJ.propertyName)),UpdateOp:r.pJ.updateOperator,LineComment:r.pJ.lineComment,BlockComment:r.pJ.blockComment,Number:r.pJ.number,String:r.pJ.string,ArithOp:r.pJ.arithmeticOperator,LogicOp:r.pJ.logicOperator,BitOp:r.pJ.bitwiseOperator,CompareOp:r.pJ.compareOperator,RegExp:r.pJ.regexp,Equals:r.pJ.definitionOperator,Arrow:r.pJ.function(r.pJ.punctuation),": Spread":r.pJ.punctuation,"( )":r.pJ.paren,"[ ]":r.pJ.squareBracket,"{ }":r.pJ.brace,"InterpolationStart InterpolationEnd":r.pJ.special(r.pJ.brace),".":r.pJ.derefOperator,", ;":r.pJ.separator,TypeName:r.pJ.typeName,TypeDefinition:r.pJ.definition(r.pJ.typeName),"type enum interface implements namespace module declare":r.pJ.definitionKeyword,"abstract global Privacy readonly override":r.pJ.modifier,"is keyof unique infer":r.pJ.operatorKeyword,JSXAttributeValue:r.pJ.attributeValue,JSXText:r.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":r.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":r.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":r.pJ.attributeName}),d={__proto__:null,export:18,as:23,from:29,default:32,async:37,function:38,this:48,true:56,false:56,void:66,typeof:70,null:86,super:88,new:122,await:139,yield:141,delete:142,class:152,extends:154,public:197,private:197,protected:197,readonly:199,instanceof:220,in:222,const:224,import:256,keyof:307,unique:311,infer:317,is:351,abstract:371,implements:373,type:375,let:378,var:380,interface:387,enum:391,namespace:397,module:399,declare:403,global:407,for:428,of:437,while:440,with:444,do:448,if:452,else:454,switch:458,case:464,try:470,catch:474,finally:478,return:482,throw:486,break:490,continue:494,debugger:498},p={__proto__:null,async:109,get:111,set:113,public:161,private:161,protected:161,static:163,abstract:165,override:167,readonly:173,new:355},m={__proto__:null,"<":129},g=i.WQ.deserialize({version:14,states:"$8SO`QdOOO'QQ(C|O'#ChO'XOWO'#DVO)dQdO'#D]O)tQdO'#DhO){QdO'#DrO-xQdO'#DxOOQO'#E]'#E]O.]Q`O'#E[O.bQ`O'#E[OOQ(C['#Ef'#EfO0aQ(C|O'#ItO2wQ(C|O'#IuO3eQ`O'#EzO3jQ!bO'#FaOOQ(C['#FS'#FSO3rO#tO'#FSO4QQ&jO'#FhO5bQ`O'#FgOOQ(C['#Iu'#IuOOQ(CW'#It'#ItOOQS'#J^'#J^O5gQ`O'#HpO5lQ(ChO'#HqOOQS'#Ih'#IhOOQS'#Hr'#HrQ`QdOOO){QdO'#DjO5tQ`O'#G[O5yQ&jO'#CmO6XQ`O'#EZO6dQ`O'#EgO6iQ,UO'#FRO7TQ`O'#G[O7YQ`O'#G`O7eQ`O'#G`O7sQ`O'#GcO7sQ`O'#GdO7sQ`O'#GfO5tQ`O'#GiO8dQ`O'#GlO9rQ`O'#CdO:SQ`O'#GyO:[Q`O'#HPO:[Q`O'#HRO`QdO'#HTO:[Q`O'#HVO:[Q`O'#HYO:aQ`O'#H`O:fQ(CjO'#HfO){QdO'#HhO:qQ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rR1Z,lT(a#v(cR(i#yQ-})]Q2U.RQ2|.{Q4{2TQ5l3QQ6t4}Q7U5kQ7y6zQ8S7WR8i8TlhOSj}!n$]%c%f%g%i*o*t/g/jQ%]yR*d%YV$yrs*mR.u*TR*c%WQ$qpR)u$rR)k$lT%az%dT%bz%dT/i*t/j",nodeNames:"\u26a0 extends ArithOp ArithOp InterpolationStart LineComment BlockComment Script ExportDeclaration export Star as VariableName String from ; default FunctionDeclaration async function VariableDefinition TypeParamList TypeDefinition ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation null super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class extends ClassBody MethodDeclaration Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression PrivatePropertyName BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement",maxTerm:332,context:a,nodeProps:[["closedBy",4,"InterpolationEnd",40,"]",51,"}",66,")",132,"JSXSelfCloseEndTag JSXEndTag",146,"JSXEndTag"],["group",-26,8,15,17,58,184,188,191,192,194,197,200,211,213,219,221,223,225,228,234,240,242,244,246,248,250,251,"Statement",-30,12,13,24,27,28,41,43,44,45,47,52,60,68,74,75,91,92,101,103,119,122,124,125,126,127,129,130,148,149,151,"Expression",-22,23,25,29,32,34,152,154,156,157,159,160,161,163,164,165,167,168,169,178,180,182,183,"Type",-3,79,85,90,"ClassItem"],["openedBy",30,"InterpolationStart",46,"[",50,"{",65,"(",131,"JSXStartTag",141,"JSXStartTag JSXStartCloseTag"]],propSources:[f],skippedNodes:[0,5,6],repeatNodeCount:28,tokenData:"!C}~R!`OX%TXY%cYZ'RZ[%c[]%T]^'R^p%Tpq%cqr'crs(kst0htu2`uv4pvw5ewx6cxyk|}?O}!O>k!O!P?`!P!QCl!Q!R!0[!R![!1q![!]!7s!]!^!8V!^!_!8g!_!`!9d!`!a!:[!a!b!U#R#S2`#S#T!>i#T#o2`#o#p!>y#p#q!?O#q#r!?f#r#s!?x#s$f%T$f$g%c$g#BY2`#BY#BZ!@Y#BZ$IS2`$IS$I_!@Y$I_$I|2`$I|$I}!Bq$I}$JO!Bq$JO$JT2`$JT$JU!@Y$JU$KV2`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y&FV?HT2`?HT?HU!@Y?HU~2`7Z!CO_$UW'Z7R#zS']$y'g3SOt%Ttu2`u}%T}!O3j!O!Q%T!Q![2`![!^%T!_!c%T!c!}2`!}#R%T#R#S2`#S#T%T#T#o2`#p$g%T$g~2`",tokenizers:[O,c,h,u,0,1,2,3,4,5,6,7,8,9,l],topRules:{Script:[0,7]},dialects:{jsx:12107,ts:12109},dynamicPrecedences:{149:1,176:1},specialized:[{term:289,get:e=>d[e]||-1},{term:299,get:e=>p[e]||-1},{term:63,get:e=>m[e]||-1}],tokenPrec:12130});var Q=n(59119),b=n(78120),x=n(47421),k=n(34790),y=n(41113);const v=[(0,k.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,k.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,k.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,k.Gn)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,k.Gn)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,k.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,k.Gn)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,k.Gn)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,k.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,k.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,k.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],$=new y.hr,S=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function w(e){return(t,n)=>{let i=t.node.getChild("VariableDefinition");return i&&n(i,e),!0}}const T=["FunctionDeclaration"],P={FunctionDeclaration:w("function"),ClassDeclaration:w("class"),ClassExpression:()=>!0,EnumDeclaration:w("constant"),TypeAliasDeclaration:w("type"),NamespaceDeclaration:w("namespace"),VariableDefinition(e,t){e.matchContext(T)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function R(e,t){let n=$.get(t);if(n)return n;let i=[],r=!0;function s(t,n){let r=e.sliceString(t.from,t.to);i.push({label:r,type:n})}return t.cursor(y.vj.IncludeAnonymous).iterate((t=>{if(r)r=!1;else if(t.name){let e=P[t.name];if(e&&e(t,s)||S.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of R(e,t.node))i.push(n);return!1}})),$.set(t,i),i}const C=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Z=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function X(e){let t=(0,Q.qz)(e.state).resolveInner(e.pos,-1);if(Z.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&C.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let i=[];for(let r=t;r;r=r.parent)S.has(r.name)&&(i=i.concat(R(e.state.doc,r)));return{options:i,from:n?t.from:e.pos,validFor:C}}function j(e,t,n){var i;let r=[];for(;;){let s,o=t.firstChild;if("VariableName"==(null===o||void 0===o?void 0:o.name))return r.push(e(o)),{path:r.reverse(),name:n};if("MemberExpression"!=(null===o||void 0===o?void 0:o.name)||"PropertyName"!=(null===(i=s=o.lastChild)||void 0===i?void 0:i.name))return null;r.push(e(s)),t=o}}function W(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=(0,Q.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?j(t,n.parent,t(n)):Z.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&C.test(t(n))?{path:[],name:t(n)}:"."==n.name&&"MemberExpression"==n.parent.name?j(t,n.parent,""):"MemberExpression"==n.name?j(t,n,""):e.explicit?{path:[],name:""}:null}function A(e){let t=new Map;return n=>{let i=W(n);if(!i)return null;let r=e;for(let e of i.path)if(r=r[e],!r)return null;let s=t.get(r);return s||t.set(r,s=function(e,t){let n=[],i=new Set;for(let s=0;;s++){for(let a of(Object.getOwnPropertyNames||Object.keys)(e)){if(i.has(a))continue;let o;i.add(a);try{o=e[a]}catch(r){continue}n.push({label:a,type:"function"==typeof o?/^[A-Z]/.test(a)?"class":t?"function":"method":t?"variable":"property",boost:-s})}let o=Object.getPrototypeOf(e);if(!o)return n;e=o}}(r,!i.path.length)),{from:n.pos-i.name.length,options:s,validFor:C}}}const q=Q.qp.define({parser:g.configure({props:[Q.uj.add({IfStatement:(0,Q.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,Q.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Q.ze,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),i=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:i?1:2)*e.unit},Block:(0,Q.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,Q.tC)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),Q.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":Q.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),_=q.configure({dialect:"ts"}),z=q.configure({dialect:"jsx"}),I=q.configure({dialect:"jsx ts"}),E="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map((e=>({label:e,type:"keyword"})));function G(e={}){let t=e.jsx?e.typescript?I:z:e.typescript?_:q;return new Q.ri(t,[q.data.of({autocomplete:(0,k.eC)(Z,(0,k.Mb)(v.concat(E)))}),q.data.of({autocomplete:X}),e.jsx?N:[]])}function L(e,t,n=e.length){if(!t)return"";let i=t.getChild("JSXIdentifier");return i?e.sliceString(i.from,Math.min(i.to,n)):""}const D="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),N=x.tk.inputHandler.of(((e,t,n,i)=>{if((D?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=i&&"/"!=i||!q.isActiveAt(e.state,t,-1))return!1;let{state:r}=e,s=r.changeByRange((e=>{var t,n,s;let o,{head:a}=e,l=(0,Q.qz)(r).resolveInner(a,-1);if("JSXStartTag"==l.name&&(l=l.parent),">"==i&&"JSXFragmentTag"==l.name)return{range:b.jT.cursor(a+1),changes:{from:a,insert:"><>"}};if(">"==i&&"JSXIdentifier"==l.name){if("JSXEndTag"!=(null===(n=null===(t=l.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=L(r.doc,l.parent,a)))return{range:b.jT.cursor(a+1),changes:{from:a,insert:`>`}}}else if("/"==i&&"JSXFragmentTag"==l.name){let e=l.parent,t=null===e||void 0===e?void 0:e.parent;if(e.from==a-1&&"JSXEndTag"!=(null===(s=t.lastChild)||void 0===s?void 0:s.name)&&(o=L(r.doc,null===t||void 0===t?void 0:t.firstChild,a))){let e=`/${o}>`;return{range:b.jT.cursor(a+e.length),changes:{from:a,insert:e}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch(s,{userEvent:"input.type",scrollIntoView:!0}),!0)}));function U(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach(((e,n)=>{e.meta.docs.recommended&&(t.rules[n]=2)}))),n=>{let{state:i}=n,r=[];for(let{from:s,to:o}of q.findRegions(i)){let n=i.doc.lineAt(s),a={line:n.number-1,col:s-n.from,pos:s};for(let l of e.verify(i.sliceDoc(s,o),t))r.push(J(l,i.doc,a))}return r}}function M(e,t,n,i){return n.line(e+i.line).from+t+(1==e?i.col-1:-1)}function J(e,t,n){let i=M(e.line,e.column,t,n),r={from:i,to:null!=e.endLine&&1!=e.endColumn?M(e.endLine,e.endColumn,t,n):i,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:s}=e.fix,o=t[0]+n.pos-i,a=t[1]+n.pos-i;r.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+o,to:t+a,insert:s},scrollIntoView:!0})}}]}return r}},48825:function(e,t,n){"use strict";n.r(t),n.d(t,{commonmarkLanguage:function(){return je},deleteMarkupBackward:function(){return Le},insertNewlineContinueMarkup:function(){return Ee},markdown:function(){return Ue},markdownKeymap:function(){return De},markdownLanguage:function(){return We}});var i,r=n(78120),s=n(47421),o=n(59119),a=n(41113),l=n(35524);class c{constructor(e,t,n,i,r,s,o){this.type=e,this.value=t,this.from=n,this.hash=i,this.end=r,this.children=s,this.positions=o,this.hashProp=[[a.md.contextHash,i]]}static create(e,t,n,i,r){return new c(e,t,n,i+(i<<8)+e+(t<<4)|0,r,[],[])}addChild(e,t){e.prop(a.md.contextHash)!=this.hash&&(e=new a.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new a.mp(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new a.mp(a.Jq.none,e,t,n,this.hashProp)})}}!function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.URL=33]="URL",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel"}(i||(i={}));class h{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class u{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return p(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let i=t;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==i.OrderedList?y:k)(n,t,!1);return r>0&&(e.type!=i.BulletList||b(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const f={[i.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(Y(i.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(d(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[i.ListItem]:(e,t,n)=>!(n.indent-1)&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[i.OrderedList]:O,[i.BulletList]:O,[i.Document]:()=>!0};function d(e){return 32==e||9==e||10==e||13==e}function p(e,t=0){for(;tn&&d(e.charCodeAt(t-1));)t--;return t}function g(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||i<3?-1:1}function x(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function k(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!d(e.text.charCodeAt(e.pos+1))||!(!n||x(t,i.BulletList)||e.skipSpace(e.pos+2)=48&&s<=57;){if(r++,r==e.text.length)return-1;s=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||46!=s&&41!=s||re.pos+1||49!=e.next)?-1:r+1-e.pos}function v(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t6?-1:n}function $(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,T=/\?>/,P=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(o)return e.append(Y(i.Comment,n,n+1+o[0].length));let a=/^\?[^]*?\?>/.exec(r);if(a)return e.append(Y(i.ProcessingInstruction,n,n+1+a[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return l?e.append(Y(i.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let i=n+1;for(;e.char(i)==t;)i++;let r=e.slice(n-1,n),s=e.slice(i,i+1),o=ie.test(r),a=ie.test(s),l=/\s|^$/.test(r),c=/\s|^$/.test(s),h=!c&&(!a||l||o),u=!l&&(!o||c||a),O=h&&(42==t||!u||o),f=u&&(42==t||!h||a);return e.append(new te(95==t?F:H,n,i,(O?1:0)|(f?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(Y(i.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(Y(i.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new te(K,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new te(ee,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let r=e.parts.length-1;r>=0;r--){let t=e.parts[r];if(t instanceof te&&(t.type==K||t.type==ee)){if(!t.side||e.skipSpace(t.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let s=e.takeContent(r),o=e.parts[r]=se(e,s,t.type==K?i.Link:i.Image,t.from,n+1);if(t.type==K)for(let t=0;tt?Y(i.URL,t+n,s+n):s==e.length&&null}}function ae(e,t,n){let r=e.charCodeAt(t);if(39!=r&&34!=r&&40!=r)return!1;let s=40==r?41:r;for(let o=t+1,a=!1;o=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,i,r){return this.append(new te(e,t,n,(i?1:0)|(r?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n=e;o--){let e=this.parts[o];if(e instanceof te&&1&e.side&&e.type==t.type&&!(r&&(1&t.side||2&e.side)&&(e.to-e.from+s)%3==0&&((e.to-e.from)%3||s%3))){i=e;break}}if(!i)continue;let a=t.type.resolve,l=[],c=i.from,h=t.to;if(r){let e=Math.min(2,i.to-i.from,s);c=i.to-e,h=t.from+e,a=1==e?"Emphasis":"StrongEmphasis"}i.type.mark&&l.push(this.elt(i.type.mark,c,i.to));for(let e=o+1;e=0;t--){let n=this.parts[t];if(n instanceof te&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return p(this.text,e-this.offset)+this.offset}elt(e,t,n,i){return"string"==typeof e?Y(this.parser.getNodeType(e),t,n,i):new B(e,t)}}function he(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),i=0;for(let r of t){for(;i(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let i=e+this.fragment.offset;for(;n.to<=i;)if(!n.parent())return!1;for(;;){if(n.from>=i)return this.fragment.from<=t;if(!n.childAfter(i))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(a.md.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),r=e.absoluteLineStart,s=r,o=e.block.children.length,a=s,l=o;for(;;){if(t.to-n>i){if(t.type.isAnonymous&&t.firstChild())continue;break}if(e.dontInject.add(t.tree),e.addNode(t.tree,t.from-n),t.type.is("Block")&&(ue.indexOf(t.type.id)<0?(s=t.to-n,o=e.block.children.length):(s=a,o=l,a=t.to-n,l=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return s-r}}const fe=(0,l.Gv)({"Blockquote/...":l.pJ.quote,HorizontalRule:l.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":l.pJ.heading1,"ATXHeading2/... SetextHeading2/...":l.pJ.heading2,"ATXHeading3/...":l.pJ.heading3,"ATXHeading4/...":l.pJ.heading4,"ATXHeading5/...":l.pJ.heading5,"ATXHeading6/...":l.pJ.heading6,"Comment CommentBlock":l.pJ.comment,Escape:l.pJ.escape,Entity:l.pJ.character,"Emphasis/...":l.pJ.emphasis,"StrongEmphasis/...":l.pJ.strong,"Link/... Image/...":l.pJ.link,"OrderedList/... BulletList/...":l.pJ.list,"BlockQuote/...":l.pJ.quote,"InlineCode CodeText":l.pJ.monospace,URL:l.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":l.pJ.processingInstruction,"CodeInfo LinkLabel":l.pJ.labelName,LinkTitle:l.pJ.string,Paragraph:l.pJ.content}),de=new G(new a.Lj(U).extend(fe),Object.keys(X).map((e=>X[e])),Object.keys(X).map((e=>q[e])),Object.keys(X),_,f,Object.keys(re).map((e=>re[e])),Object.keys(re),[]);function pe(e,t,n){let i=[];for(let r=e.firstChild,s=t;;r=r.nextSibling){let e=r?r.from:n;if(e>s&&i.push({from:s,to:e}),!r)break;s=r.to}return i}const me={resolve:"Strikethrough",mark:"StrikethroughMark"},ge={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":l.pJ.strikethrough}},{name:"StrikethroughMark",style:l.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(126!=t||126!=e.char(n+1)||126==e.char(n+2))return-1;let i=e.slice(n-1,n),r=e.slice(n+2,n+3),s=/\s|^$/.test(i),o=/\s|^$/.test(r),a=ie.test(i),l=ie.test(r);return e.addDelimiter(me,n,n+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function Qe(e,t,n=0,i,r=0){let s=0,o=!0,a=-1,l=-1,c=!1,h=()=>{i.push(e.elt("TableCell",r+a,r+l,e.parser.parseInline(t.slice(a,l),r+a)))};for(let u=n;u-1)&&s++,o=!1,i&&(a>-1&&h(),i.push(e.elt("TableDelimiter",u+r,u+r+1))),a=l=-1),c=!c&&92==n}return a>-1&&(s++,i&&h()),s}function be(e,t){for(let n=t;nbe(t.content,0)?new ke:null,endLeaf(e,t,n){if(n.parsers.some((e=>e instanceof ke))||!be(t.text,t.basePos))return!1;let i=e.scanLine(e.absoluteLineEnd+1).text;return xe.test(i)&&Qe(e,t.text,t.basePos)==Qe(e,i,t.basePos)},before:"SetextHeading"}]};class ve{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const $e=[ye,{defineNodes:[{name:"Task",block:!0,style:l.pJ.list},{name:"TaskMarker",style:l.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\]/.test(t.content)&&"ListItem"==e.parentType().name?new ve:null,after:"SetextHeading"}]},ge];function Se(e,t,n){return(i,r,s)=>{if(r!=e||i.char(s+1)==e)return-1;let o=[i.elt(n,s,s+1)];for(let a=s+1;a{if(e.is("Block")&&!e.is("Document"))return(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})),o.uj.add({Document:()=>null}),o.pp.add({Document:Ce})]});function Xe(e){return new o.SQ(Ce,e)}const je=Xe(Ze),We=Xe(Ze.configure([$e,Te,we,Pe]));function Ae(e,t){return t.sliceString(e.from,e.from+50)}class qe{constructor(e,t,n,i,r,s,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=i,this.spaceAfter=r,this.type=s,this.item=o}blank(e=!0){let t=this.spaceBefore;if("Blockquote"==this.node.name)t+=">";else for(let n=this.to-this.from-t.length-this.spaceAfter.length;n>0;n--)t+=" ";return t+(e?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+ze(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function _e(e,t,n){let i=[];for(let o=e;o&&"Document"!=o.name;o=o.parent)"ListItem"!=o.name&&"Blockquote"!=o.name&&"FencedCode"!=o.name||i.push(o);let r=[],s=0;for(let o=i.length-1;o>=0;o--){let e,a=i[o],l=s;if("FencedCode"==a.name)r.push(new qe(a,s,s,"","","",null));else if("Blockquote"==a.name&&(e=/^[ \t]*>( ?)/.exec(t.slice(s))))s+=e[0].length,r.push(new qe(a,l,s,"",e[1],">",null));else if("ListItem"==a.name&&"OrderedList"==a.parent.name&&(e=/^([ \t]*)\d+([.)])([ \t]*)/.exec(Ae(a,n)))){let t=e[3],n=e[0].length;t.length>=4&&(t=t.slice(0,t.length-4),n-=4),s+=n,r.push(new qe(a.parent,l,s,e[1],t,e[2],a))}else if("ListItem"==a.name&&"BulletList"==a.parent.name&&(e=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(Ae(a,n)))){let t=e[4],n=e[0].length;t.length>4&&(t=t.slice(0,t.length-4),n-=4);let i=e[2];e[3]&&(i+=e[3].replace(/[xX]/," ")),s+=n,r.push(new qe(a.parent,l,s,e[1],t,i,a))}}return r}function ze(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Ie(e,t,n,i=0){for(let r=-1,s=e;;){if("ListItem"==s.name){let e=ze(s,t),o=+e[2];if(r>=0){if(o!=r+1)return;n.push({from:s.from+e[1].length,to:s.from+e[0].length,insert:String(r+2+i)})}r=o}let e=s.nextSibling;if(!e)break;s=e}}const Ee=({state:e,dispatch:t})=>{let n=(0,o.qz)(e),{doc:i}=e,s=null,a=e.changeByRange((t=>{if(!t.empty||!We.isActiveAt(e,t.from))return s={range:t};let o=t.from,a=i.lineAt(o),l=_e(n.resolveInner(o,-1),a.text,i);for(;l.length&&l[l.length-1].from>o-a.from;)l.pop();if(!l.length)return s={range:t};let c=l[l.length-1];if(c.to-c.spaceAfter.length>o-a.from)return s={range:t};let h=o>=c.to-c.spaceAfter.length&&!/\S/.test(a.text.slice(c.to));if(c.item&&h){if(c.node.firstChild.to>=o||a.from>0&&!/[^\s>]/.test(i.lineAt(a.from-1).text)){let e,t=l.length>1?l[l.length-2]:null,n="";t&&t.item?(e=a.from+t.from,n=t.marker(i,1)):e=a.from+(t?t.to:0);let s=[{from:e,to:o,insert:n}];return"OrderedList"==c.node.name&&Ie(c.item,i,s,-2),t&&"OrderedList"==t.node.name&&Ie(t.item,i,s),{range:r.jT.cursor(e+n.length),changes:s}}{let t="";for(let e=0,n=l.length-2;e<=n;e++)t+=l[e].blank(e\s*$/.exec(n.text);if(r&&r.index==c.from){let i=e.changes([{from:n.from+r.index,to:n.to},{from:a.from+c.from,to:a.to}]);return{range:t.map(i),changes:i}}}let u=[];"OrderedList"==c.node.name&&Ie(c.item,i,u);let O=e.lineBreak,f=c.item&&c.item.from]*/.exec(a.text)[0].length>=c.to)for(let e=0,n=l.length-1;e<=n;e++)O+=e!=n||f?l[e].blank():l[e].marker(i,1);let d=o;for(;d>a.from&&/\s/.test(a.text.charAt(d-a.from-1));)d--;return u.push({from:d,to:o,insert:O}),{range:r.jT.cursor(d+O.length),changes:u}}));return!s&&(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function Ge(e){return"QuoteMark"==e.name||"ListMark"==e.name}const Le=({state:e,dispatch:t})=>{let n=(0,o.qz)(e),i=null,s=e.changeByRange((t=>{let s=t.from,{doc:o}=e;if(t.empty&&We.isActiveAt(e,t.from)){let e=o.lineAt(s),i=_e(function(e,t){let n,i=e.resolveInner(t,-1),r=t;for(Ge(i)&&(r=i.from,i=i.parent);n=i.childBefore(r);)if(Ge(n))r=n.from;else{if("OrderedList"!=n.name&&"BulletList"!=n.name)break;i=n.lastChild,r=i.to}return i}(n,s),e.text,o);if(i.length){let n=i[i.length-1],o=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(s-e.from>o&&!/\S/.test(e.text.slice(o,s-e.from)))return{range:r.jT.cursor(e.from+o),changes:{from:e.from+o,to:s}};if(s-e.from==o){let i=e.from+n.from;if(n.item&&n.node.from{if(e&&d){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof d?d(e):o.c6.matchLanguageName(d,e,!0),t instanceof o.c6)return t.support?t.support.language.parser:o.Be.getSkippingParser(t.load());if(t)return t.parser}return p?p.parser:null}):void 0;var d,p;return u.push(function(e){let{codeParser:t,htmlParser:n}=e,r=(0,a.FE)(((e,r)=>{let s=e.type.id;if(!t||s!=i.CodeBlock&&s!=i.FencedCode){if(n&&(s==i.HTMLBlock||s==i.HTMLTag))return{parser:n,overlay:pe(e.node,e.from,e.to)}}else{let n="";if(s==i.FencedCode){let t=e.node.getChild(i.CodeInfo);t&&(n=r.read(t.from,t.to))}let o=t(n);if(o)return{parser:o,overlay:e=>e.type.id==i.CodeText}}return null}));return{wrap:r}}({codeParser:f,htmlParser:Ne.language.parser})),l&&O.push(r.Wl.high(s.$f.of(De))),new o.ri(Xe(c.configure(u)),O)}},76538:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var i=n(59119);function r(e){return new i.ri(i.il.define(e))}function s(e){return n.e(1390).then(n.bind(n,21390)).then((t=>t.sql({dialect:t[e]})))}const o=[i.c6.of({name:"C",extensions:["c","h","ino"],load:()=>n.e(2750).then(n.bind(n,12750)).then((e=>e.cpp()))}),i.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>n.e(2750).then(n.bind(n,12750)).then((e=>e.cpp()))}),i.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>s("Cassandra")}),i.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(n.bind(n,61426)).then((e=>e.css()))}),i.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(n.bind(n,13804)).then((e=>e.html()))}),i.c6.of({name:"Java",extensions:["java"],load:()=>n.e(4778).then(n.bind(n,44778)).then((e=>e.java()))}),i.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript()))}),i.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>n.e(4732).then(n.bind(n,44732)).then((e=>e.json()))}),i.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript({jsx:!0})))}),i.c6.of({name:"MariaDB SQL",load:()=>s("MariaSQL")}),i.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(n.bind(n,48825)).then((e=>e.markdown()))}),i.c6.of({name:"MS SQL",load:()=>s("MSSQL")}),i.c6.of({name:"MySQL",load:()=>s("MySQL")}),i.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>n.e(2386).then(n.bind(n,12386)).then((e=>e.php()))}),i.c6.of({name:"PLSQL",extensions:["pls"],load:()=>s("PLSQL")}),i.c6.of({name:"PostgreSQL",load:()=>s("PostgreSQL")}),i.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>n.e(8088).then(n.bind(n,28088)).then((e=>e.python()))}),i.c6.of({name:"Rust",extensions:["rs"],load:()=>n.e(4920).then(n.bind(n,24920)).then((e=>e.rust()))}),i.c6.of({name:"SQL",extensions:["sql"],load:()=>s("StandardSQL")}),i.c6.of({name:"SQLite",load:()=>s("SQLite")}),i.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript({jsx:!0,typescript:!0})))}),i.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(n.bind(n,58037)).then((e=>e.javascript({typescript:!0})))}),i.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>n.e(9972).then(n.bind(n,9972)).then((e=>e.wast()))}),i.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>n.e(5122).then(n.bind(n,5122)).then((e=>e.xml()))}),i.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>n.e(870).then(n.bind(n,90870)).then((e=>r(e.apl)))}),i.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>n.e(8029).then(n.bind(n,58029)).then((e=>r(e.asciiArmor)))}),i.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>n.e(3203).then(n.bind(n,93203)).then((e=>r(e.asn1({}))))}),i.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>n.e(5648).then(n.bind(n,15648)).then((e=>r(e.asterisk)))}),i.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>n.e(2675).then(n.bind(n,2675)).then((e=>r(e.brainfuck)))}),i.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>n.e(8915).then(n.bind(n,68915)).then((e=>r(e.cobol)))}),i.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.csharp)))}),i.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>n.e(2406).then(n.bind(n,72406)).then((e=>r(e.clojure)))}),i.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>n.e(2406).then(n.bind(n,72406)).then((e=>r(e.clojure)))}),i.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>n.e(2136).then(n.bind(n,62136)).then((e=>r(e.gss)))}),i.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>n.e(889).then(n.bind(n,70889)).then((e=>r(e.cmake)))}),i.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>n.e(9558).then(n.bind(n,29558)).then((e=>r(e.coffeeScript)))}),i.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>n.e(1446).then(n.bind(n,61446)).then((e=>r(e.commonLisp)))}),i.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>n.e(673).then(n.bind(n,20673)).then((e=>r(e.cypher)))}),i.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>n.e(4323).then(n.bind(n,74323)).then((e=>r(e.cython)))}),i.c6.of({name:"Crystal",extensions:["cr"],load:()=>n.e(2602).then(n.bind(n,62602)).then((e=>r(e.crystal)))}),i.c6.of({name:"D",extensions:["d"],load:()=>n.e(1660).then(n.bind(n,11660)).then((e=>r(e.d)))}),i.c6.of({name:"Dart",extensions:["dart"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.dart)))}),i.c6.of({name:"diff",extensions:["diff","patch"],load:()=>n.e(7475).then(n.bind(n,87475)).then((e=>r(e.diff)))}),i.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>n.e(7047).then(n.bind(n,34812)).then((e=>r(e.dockerFile)))}),i.c6.of({name:"DTD",extensions:["dtd"],load:()=>n.e(6991).then(n.bind(n,76991)).then((e=>r(e.dtd)))}),i.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>n.e(4144).then(n.bind(n,24144)).then((e=>r(e.dylan)))}),i.c6.of({name:"EBNF",load:()=>n.e(2040).then(n.bind(n,82040)).then((e=>r(e.ebnf)))}),i.c6.of({name:"ECL",extensions:["ecl"],load:()=>n.e(7315).then(n.bind(n,37315)).then((e=>r(e.ecl)))}),i.c6.of({name:"edn",extensions:["edn"],load:()=>n.e(2406).then(n.bind(n,72406)).then((e=>r(e.clojure)))}),i.c6.of({name:"Eiffel",extensions:["e"],load:()=>n.e(7525).then(n.bind(n,87525)).then((e=>r(e.eiffel)))}),i.c6.of({name:"Elm",extensions:["elm"],load:()=>n.e(8770).then(n.bind(n,28770)).then((e=>r(e.elm)))}),i.c6.of({name:"Erlang",extensions:["erl"],load:()=>n.e(7590).then(n.bind(n,53482)).then((e=>r(e.erlang)))}),i.c6.of({name:"Esper",load:()=>n.e(9607).then(n.bind(n,54050)).then((e=>r(e.esper)))}),i.c6.of({name:"Factor",extensions:["factor"],load:()=>n.e(7001).then(n.bind(n,87001)).then((e=>r(e.factor)))}),i.c6.of({name:"FCL",load:()=>n.e(7663).then(n.bind(n,77663)).then((e=>r(e.fcl)))}),i.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>n.e(8393).then(n.bind(n,68393)).then((e=>r(e.forth)))}),i.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>n.e(8283).then(n.bind(n,8283)).then((e=>r(e.fortran)))}),i.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>n.e(6121).then(n.bind(n,96121)).then((e=>r(e.fSharp)))}),i.c6.of({name:"Gas",extensions:["s"],load:()=>n.e(9781).then(n.bind(n,39781)).then((e=>r(e.gas)))}),i.c6.of({name:"Gherkin",extensions:["feature"],load:()=>n.e(2542).then(n.bind(n,2542)).then((e=>r(e.gherkin)))}),i.c6.of({name:"Go",extensions:["go"],load:()=>n.e(8910).then(n.bind(n,48910)).then((e=>r(e.go)))}),i.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>n.e(3883).then(n.bind(n,23883)).then((e=>r(e.groovy)))}),i.c6.of({name:"Haskell",extensions:["hs"],load:()=>n.e(5372).then(n.bind(n,95372)).then((e=>r(e.haskell)))}),i.c6.of({name:"Haxe",extensions:["hx"],load:()=>n.e(3509).then(n.bind(n,63509)).then((e=>r(e.haxe)))}),i.c6.of({name:"HXML",extensions:["hxml"],load:()=>n.e(3509).then(n.bind(n,63509)).then((e=>r(e.hxml)))}),i.c6.of({name:"HTTP",load:()=>n.e(6395).then(n.bind(n,36395)).then((e=>r(e.http)))}),i.c6.of({name:"IDL",extensions:["pro"],load:()=>n.e(2314).then(n.bind(n,22314)).then((e=>r(e.idl)))}),i.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>n.e(9296).then(n.bind(n,59296)).then((e=>r(e.jsonld)))}),i.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>n.e(1084).then(n.bind(n,41084)).then((e=>r(e.jinja2)))}),i.c6.of({name:"Julia",extensions:["jl"],load:()=>n.e(6092).then(n.bind(n,76092)).then((e=>r(e.julia)))}),i.c6.of({name:"Kotlin",extensions:["kt"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.kotlin)))}),i.c6.of({name:"LESS",extensions:["less"],load:()=>n.e(2136).then(n.bind(n,62136)).then((e=>r(e.less)))}),i.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>n.e(402).then(n.bind(n,60402)).then((e=>r(e.liveScript)))}),i.c6.of({name:"Lua",extensions:["lua"],load:()=>n.e(3519).then(n.bind(n,3519)).then((e=>r(e.lua)))}),i.c6.of({name:"mIRC",extensions:["mrc"],load:()=>n.e(5134).then(n.bind(n,65134)).then((e=>r(e.mirc)))}),i.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>n.e(7213).then(n.bind(n,37213)).then((e=>r(e.mathematica)))}),i.c6.of({name:"Modelica",extensions:["mo"],load:()=>n.e(305).then(n.bind(n,14630)).then((e=>r(e.modelica)))}),i.c6.of({name:"MUMPS",extensions:["mps"],load:()=>n.e(7988).then(n.bind(n,17988)).then((e=>r(e.mumps)))}),i.c6.of({name:"Mbox",extensions:["mbox"],load:()=>n.e(9121).then(n.bind(n,29121)).then((e=>r(e.mbox)))}),i.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>n.e(8561).then(n.bind(n,78561)).then((e=>r(e.nginx)))}),i.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>n.e(7370).then(n.bind(n,67370)).then((e=>r(e.nsis)))}),i.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>n.e(3314).then(n.bind(n,43314)).then((e=>r(e.ntriples)))}),i.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.objectiveC)))}),i.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.objectiveCpp)))}),i.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>n.e(6121).then(n.bind(n,96121)).then((e=>r(e.oCaml)))}),i.c6.of({name:"Octave",extensions:["m"],load:()=>n.e(3283).then(n.bind(n,33283)).then((e=>r(e.octave)))}),i.c6.of({name:"Oz",extensions:["oz"],load:()=>n.e(4796).then(n.bind(n,94796)).then((e=>r(e.oz)))}),i.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>n.e(4163).then(n.bind(n,44163)).then((e=>r(e.pascal)))}),i.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>n.e(4293).then(n.bind(n,94293)).then((e=>r(e.perl)))}),i.c6.of({name:"Pig",extensions:["pig"],load:()=>n.e(3482).then(n.bind(n,33482)).then((e=>r(e.pig)))}),i.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>n.e(7421).then(n.bind(n,37421)).then((e=>r(e.powerShell)))}),i.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>n.e(9071).then(n.bind(n,69071)).then((e=>r(e.properties)))}),i.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>n.e(8142).then(n.bind(n,78142)).then((e=>r(e.protobuf)))}),i.c6.of({name:"Puppet",extensions:["pp"],load:()=>n.e(3993).then(n.bind(n,83993)).then((e=>r(e.puppet)))}),i.c6.of({name:"Q",extensions:["q"],load:()=>n.e(228).then(n.bind(n,10228)).then((e=>r(e.q)))}),i.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>n.e(7365).then(n.bind(n,57365)).then((e=>r(e.r)))}),i.c6.of({name:"RPM Changes",load:()=>n.e(8171).then(n.bind(n,48171)).then((e=>r(e.rpmChanges)))}),i.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>n.e(8171).then(n.bind(n,48171)).then((e=>r(e.rpmSpec)))}),i.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:()=>n.e(4439).then(n.bind(n,24439)).then((e=>r(e.ruby)))}),i.c6.of({name:"SAS",extensions:["sas"],load:()=>n.e(1770).then(n.bind(n,1770)).then((e=>r(e.sas)))}),i.c6.of({name:"Sass",extensions:["sass"],load:()=>n.e(9809).then(n.bind(n,49809)).then((e=>r(e.sass)))}),i.c6.of({name:"Scala",extensions:["scala"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.scala)))}),i.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>n.e(5879).then(n.bind(n,95879)).then((e=>r(e.scheme)))}),i.c6.of({name:"SCSS",extensions:["scss"],load:()=>n.e(2136).then(n.bind(n,62136)).then((e=>r(e.sCSS)))}),i.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>n.e(4879).then(n.bind(n,44879)).then((e=>r(e.shell)))}),i.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>n.e(9713).then(n.bind(n,9713)).then((e=>r(e.sieve)))}),i.c6.of({name:"Smalltalk",extensions:["st"],load:()=>n.e(1873).then(n.bind(n,11873)).then((e=>r(e.smalltalk)))}),i.c6.of({name:"Solr",load:()=>n.e(7762).then(n.bind(n,17762)).then((e=>r(e.solr)))}),i.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>n.e(6121).then(n.bind(n,96121)).then((e=>r(e.sml)))}),i.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>n.e(370).then(n.bind(n,70370)).then((e=>r(e.sparql)))}),i.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>n.e(7601).then(n.bind(n,97601)).then((e=>r(e.spreadsheet)))}),i.c6.of({name:"Squirrel",extensions:["nut"],load:()=>n.e(7917).then(n.bind(n,67917)).then((e=>r(e.squirrel)))}),i.c6.of({name:"Stylus",extensions:["styl"],load:()=>n.e(8007).then(n.bind(n,28007)).then((e=>r(e.stylus)))}),i.c6.of({name:"Swift",extensions:["swift"],load:()=>n.e(6062).then(n.bind(n,66062)).then((e=>r(e.swift)))}),i.c6.of({name:"sTeX",load:()=>n.e(6732).then(n.bind(n,86732)).then((e=>r(e.stex)))}),i.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>n.e(6732).then(n.bind(n,86732)).then((e=>r(e.stex)))}),i.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>n.e(2119).then(n.bind(n,52119)).then((e=>r(e.verilog)))}),i.c6.of({name:"Tcl",extensions:["tcl"],load:()=>n.e(3465).then(n.bind(n,43465)).then((e=>r(e.tcl)))}),i.c6.of({name:"Textile",extensions:["textile"],load:()=>n.e(177).then(n.bind(n,90177)).then((e=>r(e.textile)))}),i.c6.of({name:"TiddlyWiki",load:()=>n.e(4511).then(n.bind(n,34511)).then((e=>r(e.tiddlyWiki)))}),i.c6.of({name:"Tiki wiki",load:()=>n.e(6471).then(n.bind(n,36471)).then((e=>r(e.tiki)))}),i.c6.of({name:"TOML",extensions:["toml"],load:()=>n.e(6443).then(n.bind(n,96443)).then((e=>r(e.toml)))}),i.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>n.e(1920).then(n.bind(n,71920)).then((e=>r(e.troff)))}),i.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>n.e(6665).then(n.bind(n,66665)).then((e=>r(e.ttcn)))}),i.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>n.e(9831).then(n.bind(n,29831)).then((e=>r(e.ttcnCfg)))}),i.c6.of({name:"Turtle",extensions:["ttl"],load:()=>n.e(5815).then(n.bind(n,15815)).then((e=>r(e.turtle)))}),i.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>n.e(6692).then(n.bind(n,26692)).then((e=>r(e.webIDL)))}),i.c6.of({name:"VB.NET",extensions:["vb"],load:()=>n.e(4212).then(n.bind(n,44212)).then((e=>r(e.vb)))}),i.c6.of({name:"VBScript",extensions:["vbs"],load:()=>n.e(1650).then(n.bind(n,31650)).then((e=>r(e.vbScript)))}),i.c6.of({name:"Velocity",extensions:["vtl"],load:()=>n.e(617).then(n.bind(n,90617)).then((e=>r(e.velocity)))}),i.c6.of({name:"Verilog",extensions:["v"],load:()=>n.e(2119).then(n.bind(n,52119)).then((e=>r(e.verilog)))}),i.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>n.e(5819).then(n.bind(n,5819)).then((e=>r(e.vhdl)))}),i.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>n.e(5753).then(n.bind(n,35753)).then((e=>r(e.xQuery)))}),i.c6.of({name:"Yacas",extensions:["ys"],load:()=>n.e(9232).then(n.bind(n,69232)).then((e=>r(e.yacas)))}),i.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>n.e(5379).then(n.bind(n,82877)).then((e=>r(e.yaml)))}),i.c6.of({name:"Z80",extensions:["z80"],load:()=>n.e(1053).then(n.bind(n,21053)).then((e=>r(e.z80)))}),i.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>n.e(758).then(n.bind(n,30758)).then((e=>r(e.mscgen)))}),i.c6.of({name:"X\xf9",extensions:["xu"],load:()=>n.e(758).then(n.bind(n,30758)).then((e=>r(e.xu)))}),i.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>n.e(758).then(n.bind(n,30758)).then((e=>r(e.msgenny)))})]},59119:function(e,t,n){"use strict";n.d(t,{Be:function(){return g},Dv:function(){return U},Gn:function(){return Z},K0:function(){return C},Qf:function(){return Oe},R_:function(){return be},SQ:function(){return u},SS:function(){return R},Um:function(){return Re},c:function(){return T},c6:function(){return S},e7:function(){return ie},il:function(){return We},kU:function(){return h},mi:function(){return he},n$:function(){return Te},nF:function(){return me},nY:function(){return L},pp:function(){return c},qp:function(){return f},qz:function(){return d},ri:function(){return $},tC:function(){return G},uj:function(){return X},vw:function(){return z},x0:function(){return N},y1:function(){return P},ze:function(){return E}});var i,r=n(41113),s=n(78120),o=n(47421),a=n(35524),l=n(28699);const c=new r.md;function h(e){return s.r$.define({combine:e?t=>t.concat(e):void 0})}class u{constructor(e,t,n=[]){this.data=e,s.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(s.yy.prototype,"tree",{get(){return d(this)}}),this.parser=t,this.extension=[v.of(this),s.yy.languageData.of(((e,t,n)=>e.facet(O(e,t,n))))].concat(n)}isActiveAt(e,t,n=-1){return O(e,t,n)==this.data}findRegions(e){let t=e.facet(v);if((null===t||void 0===t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let s=e.prop(r.md.mounted);if(s){if(s.tree.prop(c)==this.data){if(s.overlay)for(let e of s.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(s.overlay){let e=n.length;if(i(s.tree,s.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}))}configure(e){return new f(this.data,this.parser.configure(e))}get allowsNesting(){return this.parser.hasWrappers()}}function d(e){let t=e.field(u.state,!1);return t?t.tree:r.mp.empty}class p{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let m=null;class g{constructor(e,t,n=[],i,r,s,o,a){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new g(e,t,[],r.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new p(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=r.mp.empty&&this.isDone(null!==t&&void 0!==t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=m;m=this;try{return e()}finally{m=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Q(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,i,r)=>t.push({fromA:e,toA:n,fromB:i,toB:r}))),n=r.i9.applyChanges(n,t),i=r.mp.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);ne.from&&(this.fragments=Q(this.fragments,t,i),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends r._b{createParse(t,n,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let t=m;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new r.mp(r.Jq.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return m}}function Q(e,t,n){return r.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class b{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new b(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=g.create(e.facet(v).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new b(n)}}u.state=s.QQ.define({create:b.init,update(e,t){for(let n of t.effects)if(n.is(u.setState))return n.value;return t.startState.facet(v)!=t.state.facet(v)?b.init(t.state):e.apply(t)}});let x=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(x=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const k="undefined"!=typeof navigator&&(null===(i=navigator.scheduling)||void 0===i?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,y=o.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(u.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(u.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=x(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndi+1e3,a=r.context.work((()=>k&&k()||Date.now()>s),i+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:u.setState.of(new b(r.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,o.OO)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),v=s.r$.define({combine:e=>e.length?e[0]:null,enables:[u.state,y]});class ${constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class S{constructor(e,t,n,i,r,s){this.name=e,this.alias=t,this.extensions=n,this.filename=i,this.loadFunc=r,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new S(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let i of e)if(i.filename&&i.filename.test(t))return i;let n=/\.([^.]+)$/.exec(t);if(n)for(let i of e)if(i.extensions.indexOf(n[1])>-1)return i;return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let i of e)if(i.alias.some((e=>e==t)))return i;if(n)for(let i of e)for(let e of i.alias){let n=t.indexOf(e);if(n>-1&&(e.length>2||!/\w/.test(t[n-1])&&!/\w/.test(t[n+e.length])))return i}return null}}const w=s.r$.define(),T=s.r$.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function P(e){let t=e.facet(T);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function R(e,t){let n="",i=e.tabSize;if(9==e.facet(T).charCodeAt(0))for(;t>=i;)n+="\t",t-=i;for(let r=0;r=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i-1&&(r+=s-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return(0,s.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const X=new r.md;function j(e){let t=e.type.prop(X);if(t)return t;let n,i=e.firstChild;if(i&&(n=i.type.prop(r.md.closedBy))){let t=e.lastChild,i=t&&n.indexOf(t.name)>-1;return e=>I(e,!0,1,void 0,i&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?A:null}function W(e,t,n){for(;e;e=e.parent){let i=j(e);if(i)return i(q.create(n,t,e))}return null}function A(){return 0}class q extends Z{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new q(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(_(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?W(e,this.pos,this.base):0}}function _(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function z({closing:e,align:t=!0,units:n=1}){return i=>I(i,t,n,e)}function I(e,t,n,i,r){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=i&&s.slice(o,o+i.length)==i||r==e.pos+o,l=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==i)return null;if(!e.type.isSkipped)return e.frome.baseIndent;function G({except:e,units:t=1}={}){return n=>{let i=e&&e.test(n.textAfter);return n.baseIndent+(i?0:t*n.unit)}}function L(){return s.yy.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:i}=e.newSelection.main,r=n.lineAt(i);if(i>r.from+200)return e;let s=n.sliceString(r.from,i);if(!t.some((e=>e.test(s))))return e;let{state:o}=e,a=-1,l=[];for(let{head:c}of o.selection.ranges){let e=o.doc.lineAt(c);if(e.from==a)continue;a=e.from;let t=C(o,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],i=R(o,t);n!=i&&l.push({from:e.from,to:e.from+n.length,insert:i})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const D=s.r$.define(),N=new r.md;function U(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(r&&s.from=t&&i.to>n&&(r=i)}}return r}(e,t,n)}function V(e,t){let n=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);return n>=i?void 0:{from:n,to:i}}const B=s.Py.define({map:V}),Y=s.Py.define({map:V});function F(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const H=s.QQ.define({create:()=>o.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(B)&&!ee(e,n.value.from,n.value.to)?e=e.update({add:[ae.range(n.value.from,n.value.to)]}):n.is(Y)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:i}=t.selection.main;e.between(i,i,((e,t)=>{ei&&(n=!0)})),n&&(e=e.update({filterFrom:i,filterTo:i,filter:(e,t)=>t<=i||e>=i}))}return e},provide:e=>o.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!r||r.from>e)&&(r={from:e,to:t})})),r}function ee(e,t,n){let i=!1;return e.between(t,t,((e,r)=>{e==t&&r==n&&(i=!0)})),i}function te(e,t){return e.field(H,!1)?t:t.concat(s.Py.appendConfig.of(oe()))}function ne(e,t,n=!0){let i=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return o.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${e.state.phrase("to")} ${r}.`)}const ie=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of F(e)){let n=J(e.state,t.from,t.to);if(n)return e.dispatch({effects:te(e.state,[B.of(n),ne(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(H,!1))return!1;let t=[];for(let n of F(e)){let i=K(e.state,n.from,n.to);i&&t.push(Y.of(i),ne(e,i,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let i=0;i{let t=e.state.field(H,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(Y.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],re={placeholderDOM:null,placeholderText:"\u2026"},se=s.r$.define({combine:e=>(0,s.BO)(e,re)});function oe(e){let t=[H,ue];return e&&t.push(se.of(e)),t}const ae=o.p.replace({widget:new class extends o.l9{toDOM(e){let{state:t}=e,n=t.facet(se),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),i=K(e.state,n.from,n.to);i&&e.dispatch({effects:Y.of(i)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,i);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",t.phrase("folded code")),r.title=t.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=i,r}}}),le={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class ce extends o.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function he(e={}){let t=Object.assign(Object.assign({},le),e),n=new ce(t,!0),i=new ce(t,!1),r=o.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(v)!=e.state.facet(v)||e.startState.field(H,!1)!=e.state.field(H,!1)||d(e.startState)!=d(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s.f_;for(let r of e.viewportLineBlocks){let s=K(e.state,r.from,r.to)?i:J(e.state,r.from,r.to)?n:null;s&&t.add(r.from,r.from,s)}return t.finish()}}),{domEventHandlers:a}=t;return[r,(0,o.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||s.Xs.empty},initialSpacer:()=>new ce(t,!1),domEventHandlers:Object.assign(Object.assign({},a),{click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return!0;let i=K(e.state,t.from,t.to);if(i)return e.dispatch({effects:Y.of(i)}),!0;let r=J(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:B.of(r)}),!0)}})}),oe()]}const ue=o.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Oe{constructor(e,t){let n;function i(e){let t=l.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}const r="string"==typeof t.all?t.all:t.all?i(t.all):void 0,s=t.scope;this.scope=s instanceof u?e=>e.prop(c)==s.data:s?e=>e==s:void 0,this.style=(0,a.QR)(e.map((e=>({tag:e.tag,class:e.class||i(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=n?new l.V(n):null,this.themeType=t.themeType}static define(e,t){return new Oe(e,t||{})}}const fe=s.r$.define(),de=s.r$.define({combine:e=>e.length?[e[0]]:null});function pe(e){let t=e.facet(fe);return t.length?t:e.facet(de)}function me(e,t){let n,i=[Qe];return e instanceof Oe&&(e.module&&i.push(o.tk.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?i.push(de.of(e)):n?i.push(fe.computeN([o.tk.darkTheme],(t=>t.facet(o.tk.darkTheme)==("dark"==n)?[e]:[]))):i.push(fe.of(e)),i}class ge{constructor(e){this.markCache=Object.create(null),this.tree=d(e.state),this.decorations=this.buildDeco(e,pe(e.state))}update(e){let t=d(e.state),n=pe(e.state),i=n!=pe(e.startState);t.length{n.add(e,t,this.markCache[i]||(this.markCache[i]=o.p.mark({class:i})))}),i,r);return n.finish()}}const Qe=s.Wl.high(o.lg.fromClass(ge,{decorations:e=>e.decorations})),be=Oe.define([{tag:a.pJ.meta,color:"#7a757a"},{tag:a.pJ.link,textDecoration:"underline"},{tag:a.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.pJ.emphasis,fontStyle:"italic"},{tag:a.pJ.strong,fontWeight:"bold"},{tag:a.pJ.strikethrough,textDecoration:"line-through"},{tag:a.pJ.keyword,color:"#708"},{tag:[a.pJ.atom,a.pJ.bool,a.pJ.url,a.pJ.contentSeparator,a.pJ.labelName],color:"#219"},{tag:[a.pJ.literal,a.pJ.inserted],color:"#164"},{tag:[a.pJ.string,a.pJ.deleted],color:"#a11"},{tag:[a.pJ.regexp,a.pJ.escape,a.pJ.special(a.pJ.string)],color:"#e40"},{tag:a.pJ.definition(a.pJ.variableName),color:"#00f"},{tag:a.pJ.local(a.pJ.variableName),color:"#30a"},{tag:[a.pJ.typeName,a.pJ.namespace],color:"#085"},{tag:a.pJ.className,color:"#167"},{tag:[a.pJ.special(a.pJ.variableName),a.pJ.macroName],color:"#256"},{tag:a.pJ.definition(a.pJ.propertyName),color:"#00c"},{tag:a.pJ.comment,color:"#940"},{tag:a.pJ.invalid,color:"#f00"}]),xe=o.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ke="()[]{}",ye=s.r$.define({combine:e=>(0,s.BO)(e,{afterCursor:!0,brackets:ke,maxScanDistance:1e4,renderMatch:Se})}),ve=o.p.mark({class:"cm-matchingBracket"}),$e=o.p.mark({class:"cm-nonmatchingBracket"});function Se(e){let t=[],n=e.matched?ve:$e;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const we=[s.QQ.define({create:()=>o.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],i=t.state.facet(ye);for(let r of t.state.selection.ranges){if(!r.empty)continue;let e=Re(t.state,r.head,-1,i)||r.head>0&&Re(t.state,r.head-1,1,i)||i.afterCursor&&(Re(t.state,r.head,1,i)||r.heado.tk.decorations.from(e)}),xe];function Te(e={}){return[ye.of(e),we]}function Pe(e,t,n){let i=e.prop(t<0?r.md.openedBy:r.md.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function Re(e,t,n,i={}){let r=i.maxScanDistance||1e4,s=i.brackets||ke,o=d(e),a=o.resolveInner(t,n);for(let l=a;l;l=l.parent){let i=Pe(l.type,n,s);if(i&&l.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},h=e.doc.iterRange(t,n>0?e.doc.length:0),u=0;for(let O=0;!h.next().done&&O<=s;){let e=h.value;n<0&&(O+=e.length);let s=t+O*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=o.indexOf(e[t]);if(!(a<0||i.resolveInner(s+t,1).type!=r))if(a%2==0==n>0)u++;else{if(1==u)return{start:c,end:{from:s+t,to:s+t+1},matched:a>>1==l>>1};u--}}n>0&&(O+=e.length)}return h.done?{start:c,matched:!1}:null}(e,t,n,o,a.type,r,s)}function Ce(e,t,n,i,r,s){let o=i.parent,a={from:i.from,to:i.to},l=0,c=null===o||void 0===o?void 0:o.cursor();if(c&&(n<0?c.childBefore(i.from):c.childAfter(i.to)))do{if(n<0?c.to<=i.from:c.from>=i.to){if(0==l&&r.indexOf(c.type.name)>-1&&c.from=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPosn?e.toLowerCase():e;return i(this.string.substr(this.pos,e.length))==i(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}}function je(e){if("object"!=typeof e)return e;let t={};for(let n in e){let i=e[n];t[n]=i instanceof Array?i.slice():i}return t}class We extends u{constructor(e){let t,n=h(e.languageData),i={token:(s=e).token,blankLine:s.blankLine||(()=>{}),startState:s.startState||(()=>!0),copyState:s.copyState||je,indent:s.indent||(()=>null),languageData:s.languageData||{},tokenTable:s.tokenTable||Ie};var s;super(n,new class extends r._b{createParse(e,n,i){return new _e(t,e,n,i)}},[w.of(((e,t)=>this.getIndent(e,t)))]),this.topNode=function(e){let t=r.Jq.define({id:Ee.length,name:"Document",props:[c.add((()=>e))]});return Ee.push(t),t}(n),t=this,this.streamParser=i,this.stateAfter=new r.md({perNode:!0}),this.tokenTable=e.tokenTable?new Ne(i.tokenTable):Ue}static define(e){return new We(e)}getIndent(e,t){let n=d(e.state),i=n.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let r,s,o=Ae(this,n,0,i.from,t);if(o?(s=o.state,r=o.pos+1):(s=this.streamParser.startState(e.unit),r=0),t-r>1e4)return null;for(;r=i&&n+t.length<=s&&t.prop(e.stateAfter);if(o)return{state:e.streamParser.copyState(o),pos:n+t.length};for(let a=t.children.length-1;a>=0;a--){let o=t.children[a],l=n+t.positions[a],c=o instanceof r.mp&&l=t.length)return t;s||t.type!=e.topNode||(s=!0);for(let o=t.children.length-1;o>=0;o--){let a,l=t.positions[o],c=t.children[o];if(ln&&Ae(e,r.tree,0-r.offset,n,s);if(o&&(t=qe(e,r.tree,n+r.offset,o.pos+r.offset,!1)))return{state:o.state,tree:t}}return{state:e.streamParser.startState(i?P(i):4),tree:r.mp.empty}}(e,n,o,null===s||void 0===s?void 0:s.state);this.state=a,this.parsedPos=this.chunkStart=o+l.length;for(let r=0;r=t?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,t),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let t=this.input.chunk(e);if(this.input.lineChunks)"\n"==t&&(t="");else{let e=t.indexOf("\n");e>-1&&(t=t.slice(0,e))}return e+t.length<=this.to?t:t.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,t=this.lineAfter(e),n=e+t.length;for(let i=this.rangeIndex;;){let e=this.ranges[i].to;if(e>=n)break;if(t=t.slice(0,e-(n-t.length)),i++,i==this.ranges.length)break;let r=this.ranges[i].from,s=this.lineAfter(r);t+=s,n=r+s.length}return{line:t,end:n}}skipGapsTo(e,t,n){for(;;){let i=this.ranges[this.rangeIndex].to,r=e+t;if(n>0?i>r:i>=r)break;t+=this.ranges[++this.rangeIndex].from-i}return t}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){t+=r=this.skipGapsTo(t,r,1);let e=this.chunk.length;n+=r=this.skipGapsTo(n,r,-1),i+=this.chunk.length-e}return this.chunk.push(e,t,n,i),r}parseLine(e){let{line:t,end:n}=this.nextLine(),i=0,{streamParser:r}=this.lang,s=new Xe(t,e?e.state.tabSize:4,e?P(e.state):2);if(s.eol())r.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let e=ze(r.token,s,this.state);if(e&&(i=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+s.start,this.parsedPos+s.pos,4,i)),s.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return i}throw new Error("Stream parser failed to advance stream.")}const Ie=Object.create(null),Ee=[r.Jq.none],Ge=new r.Lj(Ee),Le=[],De=Object.create(null);for(let[Ve,Be]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])De[Ve]=Je(Ie,Be);class Ne{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),De)}resolve(e){return e?this.table[e]||(this.table[e]=Je(this.extra,e)):0}}const Ue=new Ne(Ie);function Me(e,t){Le.indexOf(e)>-1||(Le.push(e),console.warn(t))}function Je(e,t){let n=null;for(let r of t.split(".")){let t=e[r]||a.pJ[r];t?"function"==typeof t?n?n=t(n):Me(r,`Modifier ${r} used at start of tag`):n?Me(r,`Tag ${r} used as modifier`):n=t:Me(r,`Unknown highlighting tag ${r}`)}if(!n)return 0;let i=t.replace(/ /g,"_"),s=r.Jq.define({id:Ee.length,name:i,props:[(0,a.Gv)({[i]:n})]});return Ee.push(s),s.id}},78120:function(e,t,n){"use strict";n.d(t,{BO:function(){return we},D0:function(){return ke},Gz:function(){return Ne},IS:function(){return De},Py:function(){return fe},QQ:function(){return N},Wl:function(){return Y},Xs:function(){return Ze},YW:function(){return de},as:function(){return w},bg:function(){return k},cp:function(){return p},f_:function(){return Xe},gc:function(){return $},gm:function(){return x},jT:function(){return W},n0:function(){return S},nZ:function(){return y},q6:function(){return he},r$:function(){return _},uU:function(){return Te},xv:function(){return i},yy:function(){return Se}});class i{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),s.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),s.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new l(this),r=new l(e);for(let s=t,o=t;;){if(i.next(s),r.next(s),s=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new c(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new h(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new r(e):s.from(r.split(e,[])):i.empty}}class r extends i{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.text[r],o=i+s.length;if((t?n:o)>=e)return new u(i,o,n,s);i=o+1,n++}}decompose(e,t,n,i){let s=e<=0&&t>=this.length?this:new r(a(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=o(s.text,e.text.slice(),0,s.length);if(t.length<=32)n.push(new r(t,e.length+s.length));else{let e=t.length>>1;n.push(new r(t.slice(0,e)),new r(t.slice(e)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof r))return super.replace(e,t,n);let i=o(this.text,o(n.text,a(this.text,0,e)),t),l=this.length+n.length-(t-e);return i.length<=32?new r(i,l):s.from(r.split(i,[]),l)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,s=0;r<=t&&se&&s&&(i+=n),er&&(i+=o.slice(Math.max(0,e-r),t-r)),r=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let s of e)n.push(s),i+=s.length+1,32==n.length&&(t.push(new r(n,i)),n=[],i=-1);return i>-1&&t.push(new r(n,i)),t}}class s extends i{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.children[r],o=i+s.length,a=n+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,n,i);i=o+1,n=a+1}}decompose(e,t,n,i){for(let r=0,s=0;s<=t&&r=s){let r=i&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!r?n.push(o):o.decompose(e-s,t-s,n,r)}s=a+1}}replace(e,t,n){if(n.lines=r&&t<=a){let l=o.replace(e-r,t-r,n),c=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let r=this.children.slice();return r[i]=l,new s(r,this.length-(t-e)+n.length)}return super.replace(r,a,l)}r=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,s=0;re&&r&&(i+=n),es&&(i+=o.sliceString(e-s,t-s,n)),s=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof s))return 0;let n=0,[i,r,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==o||r==a)return n;let s=this.children[i],l=e.children[r];if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let r of e)n+=r.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new r(n,t)}let i=Math.max(32,n>>5),o=i<<1,a=i>>1,l=[],c=0,h=-1,u=[];function O(e){let t;if(e.lines>o&&e instanceof s)for(let n of e.children)O(n);else e.lines>a&&(c>a||!c)?(f(),l.push(e)):e instanceof r&&c&&(t=u[u.length-1])instanceof r&&e.lines+t.lines<=32?(c+=e.lines,h+=e.length+1,u[u.length-1]=new r(t.text.concat(e.text),t.length+1+e.length)):(c+e.lines>i&&f(),c+=e.lines,h+=e.length+1,u.push(e))}function f(){0!=c&&(l.push(1==u.length?u[0]:s.from(u,h)),h=-1,c=u.length=0)}for(let r of e)O(r);return f(),1==l.length?l[0]:new s(l,t)}}function o(e,t,n=0,i=1e9){for(let r=0,s=0,o=!0;s=n&&(l>i&&(a=a.slice(0,i-r)),r0?1:(e instanceof r?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],s=this.offsets[n],o=s>>1,a=i instanceof r?i.text.length:i.children.length;if(o==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&s)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof r){let r=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let s=i.children[o+(t<0?-1:0)];e>s.length?(e-=s.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(s),this.offsets.push(t>0?1:(s instanceof r?s.text.length:s.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class c{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class h{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=h.prototype[Symbol.iterator]=function(){return this});class u{constructor(e,t,n,i){this.from=e,this.to=t,this.number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,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let Me=1;Mee)return O[t-1]<=e;return!1}function d(e){return e>=127462&&e<=127487}function p(e,t,n=!0,i=!0){return(n?m:g)(e,t,i)}function m(e,t,n){if(t==e.length)return t;t&&Q(e.charCodeAt(t))&&b(e.charCodeAt(t-1))&&t--;let i=x(e,t);for(t+=y(i);t=0&&d(x(e,i));)n++,i-=2;if(n%2==0)break;t+=2}}}return t}function g(e,t,n){for(;t>0;){let i=m(e,t-2,n);if(i=56320&&e<57344}function b(e){return e>=55296&&e<56320}function x(e,t){let n=e.charCodeAt(t);if(!b(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return Q(i)?i-56320+(n-55296<<10)+65536:n}function k(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function y(e){return e<65536?1:2}const v=/\r\n?|\n/;var $=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}($||($={}));class S{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-i);r+=o}else{if(n!=$.Simple&&l>=e&&(n==$.TrackDel&&ie||n==$.TrackBefore&&ie))return null;if(l>e||l==e&&t<0&&!o)return e==i||t<0?r:r+a;r+=a}i=l}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&r>=e)return!(it)||"cover";i=r}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new S(e)}static create(e){return new S(e)}}class w extends S{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return R(this,((t,n,i,r,s)=>e=e.replace(i,i+(n-t),s)),!1),e}mapDesc(e,t=!1){return C(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let r=0,s=0;r=0){t[r]=a,t[r+1]=o;let l=r>>1;for(;n.length0&&P(n,t,r.text),r.forward(e),o+=e}let l=e[s++];for(;o>1].toJSON()))}return e}static of(e,t,n){let r=[],s=[],o=0,a=null;function l(e=!1){if(!e&&!r.length)return;oa||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let u=h?"string"==typeof h?i.of(h.split(n||v)):h:i.empty,O=u.length;if(e==a&&0==O)return;eo&&T(r,e-o,-1),T(r,a-e,O),P(s,r,u),o=a}}(e),l(!a),a}static empty(e){return new w(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let r=0;rt&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==s.length)t.push(s[0],0);else{for(;n.length=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:i?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function P(e,t,n){if(0==n.length)return;let r=t.length-2>>1;if(r>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],c=e.sections[a++];t(s,h,o,u,O),s=h,o=u}}}function C(e,t,n,i=!1){let r=[],s=i?[]:null,o=new X(e),a=new X(t);for(let l=-1;;)if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);T(r,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||l==o.i||0==o.off&&(a.len=0&&l=0)){if(o.done&&a.done)return s?w.createSet(r,s):S.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=o.len;for(;t;)if(-1==a.ins){let n=Math.min(t,a.len);e+=n,t-=n,a.forward(n)}else{if(!(0==a.ins&&a.lene||o.ins>=0&&o.len>e)&&(a||i.length>t),s.forward2(e),o.forward(e)}}else T(i,0,o.ins,a),r&&P(r,i,o.text),o.next()}}class X{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?i.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?i.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class j{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new j(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return W.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return W.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return W.range(e.anchor,e.head)}static create(e,t,n){return new j(e,t,n)}}class W{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:W.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new W(e.ranges.map((e=>j.fromJSON(e))),e.main)}static single(e,t=e){return new W([W.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;ie?4:0))}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let i=1;in.head?W.range(o,s):W.range(s,o))}}return new W(e,t)}}function A(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let q=0;class _{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=q++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}static define(e={}){return new _(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:z),!!e.static,e.enables)}of(e){return new I([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function z(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class I{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=q++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,s=e[r]>>1,o=2==this.type,a=!1,l=!1,c=[];for(let h of this.dependencies)"doc"==h?a=!0:"selection"==h?l=!0:0==(1&(null!==(t=e[h.id])&&void 0!==t?t:1))&&c.push(e[h.id]);return{create:e=>(e.values[s]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||G(e,c)){let t=n(e);if(o?!E(t,e.values[s],i):!i(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a=n(e),l=t.config.address[r];if(null!=l){let n=ne(t,l);if(this.dependencies.every((n=>n instanceof _?t.facet(n)===e.facet(n):!(n instanceof N)||t.field(n,!1)==e.field(n,!1)))||(o?E(a,n,i):i(a,n)))return e.values[s]=n,0}return e.values[s]=a,1}}}}function E(e,t,n){if(e.length!=t.length)return!1;for(let i=0;ie[t.id])),r=n.map((e=>e.type)),s=i.filter((e=>!(1&e))),o=e[t.id]>>1;function a(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(D).find((e=>e.field==this));return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],r=this.updateF(i,n);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,D.of({field:this,create:e})]}get extension(){return this}}const U=4,M=3,J=2,V=1;function B(e){return t=>new F(t,e)}const Y={highest:B(0),high:B(V),default:B(J),low:B(M),lowest:B(U)};class F{constructor(e,t){this.inner=e,this.prec=t}}class H{of(e){return new K(this,e)}reconfigure(e){return H.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class K{constructor(e,t){this.compartment=e,this.inner=t}}class ee{constructor(e,t,n,i,r,s){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i=[],r=Object.create(null),s=new Map;for(let u of function(e,t,n){let i=[[],[],[],[],[]],r=new Map;function s(e,o){let a=r.get(e);if(null!=a){if(a<=o)return;let t=i[a].indexOf(e);t>-1&&i[a].splice(t,1),e instanceof K&&n.delete(e.compartment)}if(r.set(e,o),Array.isArray(e))for(let t of e)s(t,o);else if(e instanceof K){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;n.set(e.compartment,i),s(i,o)}else if(e instanceof F)s(e.inner,e.prec);else if(e instanceof N)i[o].push(e),e.provides&&s(e.provides,o);else if(e instanceof I)i[o].push(e),e.facet.extensions&&s(e.facet.extensions,J);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(t,o)}}return s(e,J),i.reduce(((e,t)=>e.concat(t)))}(e,t,s))u instanceof N?i.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let o=Object.create(null),a=[],l=[];for(let u of i)o[u.id]=l.length<<1,l.push((e=>u.slot(e)));let c=null===n||void 0===n?void 0:n.config.facets;for(let u in r){let e=r[u],t=e[0].facet,i=c&&c[u]||[];if(e.every((e=>0==e.type)))if(o[t.id]=a.length<<1|1,z(i,e))a.push(n.facet(t));else{let i=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(i,n.facet(t))?n.facet(t):i)}else{for(let t of e)0==t.type?(o[t.id]=a.length<<1|1,a.push(t.value)):(o[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));o[t.id]=l.length<<1,l.push((n=>L(n,t,e)))}}let h=l.map((e=>e(o)));return new ee(e,s,h,o,a,r)}}function te(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function ne(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ie=_.define(),re=_.define({combine:e=>e.some((e=>e)),static:!0}),se=_.define({combine:e=>e.length?e[0]:void 0,static:!0}),oe=_.define(),ae=_.define(),le=_.define(),ce=_.define({combine:e=>!!e.length&&e[0]});class he{constructor(e,t){this.type=e,this.value=t}static define(){return new ue}}class ue{of(e){return new he(this,e)}}class Oe{constructor(e){this.map=e}of(e){return new fe(this,e)}}class fe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new fe(this.type,t)}is(e){return this.type==e}static define(e={}){return new Oe(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}}fe.reconfigure=fe.define(),fe.appendConfig=fe.define();class de{constructor(e,t,n,i,r,s){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,n&&A(n,t.newLength),r.some((e=>e.type==de.time))||(this.annotations=r.concat(de.time.of(Date.now())))}static create(e,t,n,i,r,s){return new de(e,t,n,i,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(de.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function pe(e,t){let n=[];for(let i=0,r=0;;){let s,o;if(i=e[i]))s=e[i++],o=e[i++];else{if(!(r=0;r--){let s=n[r](e);s&&Object.keys(s).length&&(i=me(i,ge(t,s,e.changes.newLength),!0))}return i==e?e:de.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let r of t.facet(oe)){let t=r(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:pe(n,t))}if(!0!==n){let i,r;if(!1===n)r=e.changes.invertedDesc,i=w.empty(t.doc.length);else{let t=e.changes.filter(n);i=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=de.create(t,i,e.selection&&e.selection.map(r),fe.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let i=t.facet(ae);for(let r=i.length-1;r>=0;r--){let n=i[r](e);e=n instanceof de?n:Array.isArray(n)&&1==n.length&&n[0]instanceof de?n[0]:Qe(t,xe(n),!1)}return e}(r):r)}de.time=he.define(),de.userEvent=he.define(),de.addToHistory=he.define(),de.remote=he.define();const be=[];function xe(e){return null==e?be:Array.isArray(e)?e:[e]}var ke=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ke||(ke={}));const ye=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ve;try{ve=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Ue){}function $e(e){return t=>{if(!/\S/.test(t))return ke.Space;if(function(e){if(ve)return ve.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ye.test(n)))return!0}return!1}(t))return ke.Word;for(let n=0;n-1)return ke.Word;return ke.Other}}class Se{constructor(e,t,n,i,r,s){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let o=0;or.set(t,e))),n=null),r.set(s.value.compartment,s.value.extension)):s.is(fe.reconfigure)?(n=null,i=s.value):s.is(fe.appendConfig)&&(n=null,i=xe(i).concat(s.value));if(n)t=e.startState.values.slice();else{n=ee.resolve(i,r,this),t=new Se(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new Se(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:W.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],s=xe(n.effects);for(let o=1;ot.spec.fromJSON(s,e))))}return Se.create({doc:e.doc,selection:W.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=ee.resolve(e.extensions||[],new Map),n=e.doc instanceof i?e.doc:i.of((e.doc||"").split(t.staticFacet(Se.lineSeparator)||v)),r=e.selection?e.selection instanceof W?e.selection:W.single(e.selection.anchor,e.selection.head):W.single(0);return A(r,n.length),t.staticFacet(re)||(r=r.asSingle()),new Se(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Se.tabSize)}get lineBreak(){return this.facet(Se.lineSeparator)||"\n"}get readOnly(){return this.facet(ce)}phrase(e,...t){for(let n of this.facet(Se.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]}))),e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(ie))for(let s of r(this,t,n))Object.prototype.hasOwnProperty.call(s,e)&&i.push(s[e]);return i}charCategorizer(e){return $e(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),s=e-n,o=e-n;for(;s>0;){let e=p(t,s,!1);if(r(t.slice(e,s))!=ke.Word)break;s=e}for(;oe.length?e[0]:4}),Se.lineSeparator=se,Se.readOnly=ce,Se.phrases=_.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every((n=>e[n]==t[n]))}}),Se.languageData=ie,Se.changeFilter=oe,Se.transactionFilter=ae,Se.transactionExtender=le,H.reconfigure=fe.define();class Te{eq(e){return this==e}range(e,t=e){return Pe.create(e,t,this)}}Te.prototype.startSide=Te.prototype.endSide=0,Te.prototype.point=!1,Te.prototype.mapMode=$.TrackDel;class Pe{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Pe(e,t,n)}}function Re(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ce{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let r=n?this.to:this.from;for(let s=i,o=r.length;;){if(s==o)return s;let i=s+o>>1,a=r[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==s)return a>=0?s:o;a>=0?o=i:s=i+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),s=this.findIndex(n,1e9,!1,r);rc||l==c&&h.startSide>0&&h.endSide<=0)continue;(c-l||h.endSide-h.startSide)<0||(s<0&&(s=l),h.point&&(o=Math.max(o,c-l)),n.push(h),i.push(l-s),r.push(c-s))}return{mapped:n.length?new Ce(i,r,n,o):null,pos:s}}}class Ze{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new Ze(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(n&&(t=t.slice().sort(Re)),this.isEmpty)return t.length?Ze.of(t):this;let o=new We(this,null,-1).goto(0),a=0,l=[],c=new Xe;for(;o.value||a=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ro.to||r=r&&e<=r+s.length&&!1===s.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Ae.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ae.from(e).goto(t)}static compare(e,t,n,i,r=-1){let s=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),o=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=je(s,o,n),l=new _e(s,a,r),c=new _e(o,a,r);n.iterGaps(((e,t,n)=>ze(l,e,c,t,n,i))),n.empty&&0==n.length&&ze(l,0,c,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=1e9);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=s.length)return!1;if(!r.length)return!0;let o=je(r,s),a=new _e(r,o,0).goto(n),l=new _e(s,o,0).goto(n);for(;;){if(a.to!=l.to||!Ie(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>i)return!0;a.next(),l.next()}}static spans(e,t,n,i,r=-1){let s=new _e(e,null,r).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,n);if(s.point?(i.point(o,e,s.point,s.activeForPoint(s.to),a,s.pointRank),a=s.openEnd(e)+(s.to>e?1:0)):e>o&&(i.span(o,e,s.active,a),a=s.openEnd(e)),s.to>n)break;o=s.to,s.next()}return a}static of(e,t=!1){let n=new Xe;for(let i of e instanceof Pe?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Re);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}}Ze.empty=new Ze([],[],null,-1),Ze.empty.nextLayer=Ze.empty;class Xe{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new Ce(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Xe)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ze.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ze.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function je(e,t,n){let i=new Map;for(let s of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new We(s,t,n,r));return 1==i.length?i[0]:new Ae(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)qe(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)qe(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),qe(this.heap,0)}}}function qe(e,t){for(let n=e[t];;){let i=1+(t<<1);if(i>=e.length)break;let r=e[i];if(i+1=0&&(r=e[i+1],i++),n.compare(r)<0)break;e[i]=n,e[t]=r,t=i}}class _e{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ae.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Ee(this.active,e),Ee(this.activeTo,e),Ee(this.activeRank,e),this.minActive=Le(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&Ee(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point){if(!(t&&this.cursor.to==this.to&&this.cursor.frome&&i++,this.cursor.next()}}}if(n){let t=0;for(;t=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function ze(e,t,n,i,r,s){e.goto(t),n.goto(i);let o=i+r,a=i,l=i-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,i=t<0?e.to+l:n.to,r=Math.min(i,o);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Ie(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||s.comparePoint(a,r,e.point,n.point):r>a&&!Ie(e.active,n.active)&&s.compareRange(a,r,e.active,n.active),i>o)break;a=i,t<=0&&e.next(),t>=0&&n.next()}}function Ie(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;i--)e[i+1]=e[i];e[t]=n}function Le(e,t){let n=-1,i=1e9;for(let r=0;r=t)return r;if(r==e.length)break;s+=9==e.charCodeAt(r)?n-s%n:1,r=p(e,r)}return!0===i?-1:e.length}},41113:function(e,t,n){"use strict";n.d(t,{FE:function(){return W},Jq:function(){return c},L3:function(){return i},Lj:function(){return h},_b:function(){return X},hr:function(){return C},i9:function(){return Z},md:function(){return o},mp:function(){return d},vj:function(){return f}});const i=1024;let r=0;class s{constructor(e,t){this.from=e,this.to=t}}class o{constructor(e={}){this.id=r++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=c.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}o.closedBy=new o({deserialize:e=>e.split(" ")}),o.openedBy=new o({deserialize:e=>e.split(" ")}),o.group=new o({deserialize:e=>e.split(" ")}),o.contextHash=new o({perNode:!0}),o.lookAhead=new o({perNode:!0}),o.mounted=new o({perNode:!0});class a{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const l=Object.create(null);class c{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):l,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new c(e.name||"",t,e.id,n);if(e.props)for(let r of e.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(o.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(o.group),i=-1;i<(n?n.length:0);i++){let r=t[i<0?e.name:n[i]];if(r)return r}}}}c.none=new c("",Object.create(null),0,8);class h{constructor(e){this.types=e;for(let t=0;t=i&&(s.type.isAnonymous||!1!==t(s))){if(s.firstChild())continue;e=!0}for(;e&&n&&!s.type.isAnonymous&&n(s),!s.nextSibling();){if(!s.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:R(c.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new d(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new d(c.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:s=i,reused:a=[],minRepeatType:l=r.types.length}=e,c=Array.isArray(n)?new p(n,n.length):n,h=r.types,u=0,O=0;function f(e,t,n,i,o){let{id:d,start:p,end:y,size:v}=c,$=O;for(;v<0;){if(c.next(),-1==v){let t=a[d];return n.push(t),void i.push(p-e)}if(-3==v)return void(u=d);if(-4==v)return void(O=d);throw new RangeError(`Unrecognized record size: ${v}`)}let S,w,T=h[d],P=p-e;if(y-p<=s&&(w=x(c.pos-t,o))){let t=new Uint16Array(w.size-w.skip),n=c.pos-w.size,i=t.length;for(;c.pos>n;)i=k(w.start,t,i);S=new m(t,y-w.start,r),P=w.start-e}else{let e=c.pos-v;c.next();let t=[],n=[],i=d>=l?d:-1,r=0,o=y;for(;c.pos>e;)i>=0&&c.id==i&&c.size>=0?(c.end<=o-s&&(Q(t,n,p,r,c.end,o,i,$),r=t.length,o=c.end),c.next()):f(p,e,t,n,i);if(i>=0&&r>0&&r-1&&r>0){let e=g(T);S=R(T,t,n,0,t.length,0,y-p,e,e)}else S=b(T,t,n,y-p,$-y)}n.push(S),i.push(P)}function g(e){return(t,n,i)=>{let r,s,a=0,l=t.length-1;if(l>=0&&(r=t[l])instanceof d){if(!l&&r.type==e&&r.length==i)return r;(s=r.prop(o.lookAhead))&&(a=n[l]+r.length+s)}return b(e,t,n,i,a)}}function Q(e,t,n,i,s,o,a,l){let c=[],h=[];for(;e.length>i;)c.push(e.pop()),h.push(t.pop()+n-s);e.push(b(r.types[a],c,h,o-s,l-o)),t.push(s-n)}function b(e,t,n,i,r=0,s){if(u){let e=[o.contextHash,u];s=s?[e].concat(s):[e]}if(r>25){let e=[o.lookAhead,r];s=s?[e].concat(s):[e]}return new d(e,t,n,i,s)}function x(e,t){let n=c.fork(),i=0,r=0,o=0,a=n.end-s,h={size:0,start:0,skip:0};e:for(let s=n.pos-e;n.pos>s;){let e=n.size;if(n.id==t&&e>=0){h.size=i,h.start=r,h.skip=o,o+=4,i+=4,n.next();continue}let c=n.pos-e;if(e<0||c=l?4:0,O=n.start;for(n.next();n.pos>c;){if(n.size<0){if(-3!=n.size)break e;u+=4}else n.id>=l&&(u+=4);n.next()}r=O,i+=e,o+=u}return(t<0||i==e)&&(h.size=i,h.start=r,h.skip=o),h.size>4?h:void 0}function k(e,t,n){let{id:i,start:r,end:s,size:o}=c;if(c.next(),o>=0&&i4){let i=c.pos-(o-4);for(;c.pos>i;)n=k(e,t,n)}t[--n]=a,t[--n]=s-e,t[--n]=r-e,t[--n]=i}else-3==o?u=i:-4==o&&(O=i);return n}let y=[],v=[];for(;c.pos>0;)f(e.start||0,e.bufferStart||0,y,v,-1);let $=null!==(t=e.length)&&void 0!==t?t:y.length?v[0]+y[0].length:0;return new d(h[e.topID],y.reverse(),v.reverse(),$)}(e)}}d.empty=new d(c.none,[],[],0);class p{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new p(this.buffer,this.index)}}class m{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return c.none}toString(){let e=[];for(let t=0;t0));a=s[a+3]);return o}slice(e,t,n,i){let r=this.buffer,s=new Uint16Array(t-e);for(let o=e,a=0;o=t&&nt;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function Q(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function b(e,t,n,i){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?a.length:-1;e!=c;e+=t){let c=a[e],h=l[e]+s.from;if(g(i,n,h,h+c.length))if(c instanceof m){if(r&f.ExcludeBuffers)continue;let o=c.findChild(0,c.buffer.length,t,n-h,i);if(o>-1)return new $(new v(s,c,e,h),null,o)}else if(r&f.IncludeAnonymous||!c.type.isAnonymous||w(c)){let a;if(!(r&f.IgnoreMounts)&&c.props&&(a=c.prop(o.mounted))&&!a.overlay)return new x(a.tree,h,e,s);let l=new x(c,h,e,s);return r&f.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?c.children.length-1:0,t,n,i)}}if(r&f.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&f.IgnoreOverlays)&&(i=this._tree.prop(o.mounted))&&i.overlay){let n=e-this.from;for(let{from:e,to:r}of i.overlay)if((t>0?e<=n:e=n:r>n))return new x(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new S(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Q(this,e)}getChild(e,t=null,n=null){let i=k(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return k(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return y(this,e)}}function k(e,t,n,i){let r=e.cursor(),s=[];if(!r.firstChild())return s;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return s;for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(t)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function y(e,t,n=t.length-1){for(let i=e.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}class v{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class ${constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new $(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&f.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new $(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new $(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new $(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new S(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let s=n.buffer[this.index+1],o=n.buffer[this.index+2];e.push(n.slice(i,r,s,o)),t.push(0)}return new d(this.type,e,t,this.to-this.from)}resolve(e,t=0){return b(this,e,t,!1)}resolveInner(e,t=0){return b(this,e,t,!0)}enterUnfinishedNodesBefore(e){return Q(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=k(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return k(this,e,t,n)}get node(){return this}matchContext(e){return y(this,e)}}class S{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof x)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof x?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&f.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&f.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&f.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let i=t+e,r=e<0?-1:n._tree.children.length;i!=r;i+=e){let e=n._tree.children[i];if(this.mode&f.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||w(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;t=s,n=r+1;break e}i=this.stack[--r]}for(let i=n;i=0;r--){if(r<0)return y(this.node,e,i);let s=n[t.buffer[this.stack[r]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function w(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||w(e)))}const T=new WeakMap;function P(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let n=T.get(t);if(null==n){n=1;for(let i of t.children){if(i.type!=e||!(i instanceof d)){n=1;break}n+=P(e,i)}T.set(t,n)}return n}function R(e,t,n,i,r,s,o,a,l){let c=0;for(let f=i;f=h)break;d+=t}if(c==r+1){if(d>h){let e=n[r];t(e.children,e.positions,0,e.children.length,i[r]+a);continue}u.push(n[r])}else{let t=i[c-1]+n[c-1].length-f;u.push(R(e,n,i,r,c,f,t,null,l))}O.push(f+a-s)}}(t,n,i,r,0),(a||l)(u,O,o)}class C{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof $?this.setBuffer(e.context.buffer,e.index,t):e instanceof x&&this.map.set(e.tree,t)}get(e){return e instanceof $?this.getBuffer(e.context.buffer,e.index):e instanceof x?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Z{constructor(e,t,n,i,r=!1,s=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new Z(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&i.push(r);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let c=o=n)for(;s&&s.from=t.from||h<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,h)-l;t=e>=n?null:new Z(e,n,t.tree,t.offset+l,o>0,!!c)}if(t&&i.push(t),s.to>h)break;s=rnew s(e.from,e.to))):[new s(0,0)]:[new s(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}}class j{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function W(e){return(t,n,i,r)=>new z(t,e,n,i,r)}class A{constructor(e,t,n,i,r){this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=r}}class q{constructor(e,t,n,i,r,s,o){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=r,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const _=new o({perNode:!0});class z{constructor(e,t,n,i,r){this.nest=t,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new d(e.type,e.children,e.positions,e.length,e.propValues.concat([[_,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[o.mounted.id]=new a(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let r=n.from+e.pos,s=n.to+e.pos;r>=i.from&&s<=i.to&&!t.ranges.some((e=>e.fromr))&&t.ranges.push({from:r,to:s})}}l=!1}else if(n&&(o=I(n.ranges,i.from,i.to)))l=2!=o;else if(!i.type.isAnonymous&&i.fromnew s(e.from-i.from,e.to-i.from))):null,i.tree,e)),r.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):l=!1}}else t&&(a=t.predicate(i))&&(!0===a&&(a=new s(i.from,i.to)),a.fromnew s(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function I(e,t,n){for(let i of e){if(i.from>=n)break;if(i.to>t)return i.from<=t&&i.to>=n?2:1}return 0}function E(e,t,n,i,r,s){if(t=t.to);i++);let o=r.children[i],a=o.buffer;r.children[i]=function e(n,i,r,l,c){let h=n;for(;a[h+2]+s<=t.from;)h=a[h+3];let u=[],O=[];E(o,n,h,u,O,l);let f=a[h+1],p=a[h+2],m=f+s==t.from&&p+s==t.to&&a[h]==t.type.id;return u.push(m?t.toTree():e(h+4,a[h+3],o.set.types[a[h]],f,p-f)),O.push(f-l),E(o,a[h+3],i,u,O,l),new d(r,u,O,c)}(0,a.length,c.none,0,o.length);for(let l=0;l<=n;l++)e.childAfter(t.from)}class L{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(f.IncludeAnonymous|f.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from=e&&t.enter(n,1,f.IgnoreOverlays|f.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof d))break;t=t.children[0]}return!1}}class D{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(_))&&void 0!==t?t:n.to,this.inner=new L(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(_))&&void 0!==e?e:t.to,this.inner=new L(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(n=e.tree)||void 0===n?void 0:n.prop(o.mounted);if(r&&r.parser==t)for(let t=this.fragI;t=e.to)break;n.tree==this.curFrag.tree&&i.push({frag:n,pos:e.from-n.offset,mount:r})}}}return i}}function N(e,t){let n=null,i=t;for(let r=1,o=0;r=l)break;e.to<=a||(n||(i=n=t.slice()),e.froml&&n.splice(o+1,0,new s(l,e.to))):e.to>l?n[o--]=new s(l,e.to):n.splice(o--,1))}}return i}function U(e,t,n,i){let r=0,o=0,a=!1,l=!1,c=-1e9,h=[];for(;;){let u=r==e.length?1e9:a?e[r].to:e[r].from,O=o==t.length?1e9:l?t[o].to:t[o].from;if(a!=l){let e=Math.max(c,n),t=Math.min(u,O,i);enew s(e.from+i,e.to+i))),l,c);for(let t=0,i=l;;t++){let s=t==a.length,l=s?c:a[t].from;if(l>i&&n.push(new Z(i,l,r.tree,-e,o.from>=i||o.openStart,o.to<=l||o.openEnd)),s)break;i=a[t].to}}else n.push(new Z(l,c,r.tree,-e,o.from>=e||o.openStart,o.to<=a||o.openEnd))}return n}},35524:function(e,t,n){"use strict";n.d(t,{Gv:function(){return c},QR:function(){return O},Vp:function(){return s},bW:function(){return f},pJ:function(){return C}});var i=n(41113);let r=0;class s{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=r++}static define(e){if(null===e||void 0===e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new s([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new a;return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let o=0;class a{constructor(){this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(i=t,r=n.modified,i.length==r.length&&i.every(((e,t)=>e==r[t])));var i,r}));if(n)return n;let i=[],r=new s(i,e,t);for(let s of t)s.instances.push(r);let o=l(t);for(let s of e.set)for(let e of o)i.push(a.get(s,e));return r}}function l(e){let t=[e];for(let n=0;n0&&t+3==e.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!i)throw new RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),t+=i[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){r=0;break}if("/"!=o)throw new RangeError("Invalid path: "+e);s=e.slice(t)}let o=n.length-1,a=n[o];if(!a)throw new RangeError("Invalid path: "+e);let l=new u(i,r,o>0?n.slice(0,o):null);t[a]=l.sort(t[a])}}return h.add(t)}const h=new i.md;class u{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth{let t=r;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function f(e,t,n,i=0,r=e.length){let s=new d(i,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),i,r,"",s.highlighters),s.flush(r)}u.empty=new u([],2,null);class d{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,s){let{type:o,from:a,to:l}=e;if(a>=n||l<=t)return;o.isTop&&(s=this.highlighters.filter((e=>!e.scope||e.scope(o))));let c=r,O=function(e){let t=e.type.prop(h);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||u.empty,f=function(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}(s,O.tags);if(f&&(c&&(c+=" "),c+=f,1==O.mode&&(r+=(r?" ":"")+f)),this.startSpan(e.from,c),O.opaque)return;let d=e.tree&&e.tree.prop(i.md.mounted);if(d&&d.overlay){let i=e.node.enter(d.overlay[0].from+a,1),o=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),h=e.firstChild();for(let u=0,O=a;;u++){let f=u=p)&&e.nextSibling()););if(!f||p>n)break;O=f.to+a,O>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+a),Math.min(n,O),r,o),this.startSpan(O,c))}h&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,r,s),this.startSpan(Math.min(n,e.to),c)}}while(e.nextSibling());e.parent()}}}const p=s.define,m=p(),g=p(),Q=p(g),b=p(g),x=p(),k=p(x),y=p(x),v=p(),$=p(v),S=p(),w=p(),T=p(),P=p(T),R=p(),C={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:Q,tagName:p(Q),propertyName:b,attributeName:p(b),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:x,string:k,docString:p(k),character:p(k),attributeValue:p(k),number:y,integer:p(y),float:p(y),bool:p(x),regexp:p(x),escape:p(x),color:p(x),url:p(x),keyword:S,self:p(S),null:p(S),atom:p(S),unit:p(S),modifier:p(S),operatorKeyword:p(S),controlKeyword:p(S),definitionKeyword:p(S),moduleKeyword:p(S),operator:w,derefOperator:p(w),arithmeticOperator:p(w),logicOperator:p(w),bitwiseOperator:p(w),compareOperator:p(w),updateOperator:p(w),definitionOperator:p(w),typeOperator:p(w),controlOperator:p(w),punctuation:T,separator:p(T),bracket:P,angleBracket:p(P),squareBracket:p(P),paren:p(P),brace:p(P),content:v,heading:$,heading1:p($),heading2:p($),heading3:p($),heading4:p($),heading5:p($),heading6:p($),contentSeparator:p(v),list:p(v),quote:p(v),emphasis:p(v),strong:p(v),link:p(v),monospace:p(v),strikethrough:p(v),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:R,documentMeta:p(R),annotation:p(R),processingInstruction:p(R),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};O([{tag:C.link,class:"tok-link"},{tag:C.heading,class:"tok-heading"},{tag:C.emphasis,class:"tok-emphasis"},{tag:C.strong,class:"tok-strong"},{tag:C.keyword,class:"tok-keyword"},{tag:C.atom,class:"tok-atom"},{tag:C.bool,class:"tok-bool"},{tag:C.url,class:"tok-url"},{tag:C.labelName,class:"tok-labelName"},{tag:C.inserted,class:"tok-inserted"},{tag:C.deleted,class:"tok-deleted"},{tag:C.literal,class:"tok-literal"},{tag:C.string,class:"tok-string"},{tag:C.number,class:"tok-number"},{tag:[C.regexp,C.escape,C.special(C.string)],class:"tok-string2"},{tag:C.variableName,class:"tok-variableName"},{tag:C.local(C.variableName),class:"tok-variableName tok-local"},{tag:C.definition(C.variableName),class:"tok-variableName tok-definition"},{tag:C.special(C.variableName),class:"tok-variableName2"},{tag:C.definition(C.propertyName),class:"tok-propertyName tok-definition"},{tag:C.typeName,class:"tok-typeName"},{tag:C.namespace,class:"tok-namespace"},{tag:C.className,class:"tok-className"},{tag:C.macroName,class:"tok-macroName"},{tag:C.propertyName,class:"tok-propertyName"},{tag:C.operator,class:"tok-operator"},{tag:C.comment,class:"tok-comment"},{tag:C.meta,class:"tok-meta"},{tag:C.invalid,class:"tok-invalid"},{tag:C.punctuation,class:"tok-punctuation"}])},53105:function(e,t,n){"use strict";n.d(t,{IK:function(){return T},Jq:function(){return d},WQ:function(){return P}});var i,r=n(41113),s=n(34155);class o{constructor(e,t,n,i,r,s,o,a,l,c=0,h){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=r,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=c,this.parent=h}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new o(e,[],t,n,n,0,[],0,i?new a(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){let t=e>>19,n=65535&e,{parser:i}=this.p,r=i.dynamicPrecedence(n);if(r&&(this.score+=r),0==t)return this.pushState(i.getGoto(this.state,n,!0),this.reducePos),ns;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,n,i=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t)return void(e.buffer[i-2]=n)}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>n;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n){let i=this.pos;if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:s}=this.p;(n>this.pos||t<=s.maxNode)&&(this.pos=n,s.stateFlag(r,1)||(this.reducePos=n)),this.pushState(r,i),this.shiftContext(t,i),t<=s.maxNode&&this.buffer.push(t,i,n,4)}else this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4)}apply(e,t,n){65536&e?this.reduce(e):this.shift(e,t,n)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new l(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==(65536&n))return!0;if(0==n)return!1;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i,r=0;r1&t&&e==i))||n.push(t[e],i)}t=n}let n=[];for(let i=0;i>19,i=65535&e,r=this.stack.length-3*n;if(r<0||t.getGoto(this.stack[r],i,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}!function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(i||(i={}));class l{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,n=e>>19;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class c{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new c(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new c(this.stack,this.pos,this.index)}}class h{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const u=new h;class O{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=u,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,r=this.pos+e;for(;rn.to:r>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];r+=e.from-n.to,n=e}return r}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t,n,i=this.chunkOff+e;if(i>=0&&i=this.chunk2Pos&&ti.to&&(this.chunk2=this.chunk2.slice(0,i.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=u,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class f{constructor(e,t){this.data=e,this.id=t}token(e,t){!function(e,t,n,i){let r=0,s=1<0){let n=e[h];if(a.allows(n)&&(-1==t.token.value||t.token.value==n||o.overrides(n,t.token.value))){t.acceptToken(n);break}}let i=t.next,l=0,c=e[r+2];if(!(t.next<0&&c>l&&65535==e[n+3*c-3])){for(;l>1,o=n+s+(s<<1),a=e[o],h=e[o+1];if(i=h)){r=e[o+2],t.advance();continue e}l=s+1}}break}r=e[n+3*c-1]}}(this.data,e,t,this.id)}}f.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;class d{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function p(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,r=0;i=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),s+=r,n)break;s*=46}n?n[r++]=s:n=new t(s)}return n}const m="undefined"!=typeof s&&s.env&&/\bparse\b/.test(s.env.LOG);let g=null;var Q,b;function x(e,t,n){let i=e.cursor(r.vj.IncludeAnonymous);for(i.moveTo(t);;)if(!(n<0?i.childBefore(t):i.childAfter(t)))for(;;){if((n<0?i.tot)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:e.length}}!function(e){e[e.Margin=25]="Margin"}(Q||(Q={}));class k{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?x(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?x(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=o,null;if(s instanceof r.mp){if(o==e){if(o=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class y{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new h))}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:r}=i,s=i.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let l=0;lc.end+25&&(a=Math.max(c.lookAhead,a)),0!=c.value)){let r=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!i.extend&&(n=c,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),n||e.pos!=this.stream.end||(n=new h,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new h,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i=0&&n.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let r=0;r4*e.bufferLength?new k(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,r=this.stacks=[];for(let s=0;si)r.push(o);else{if(this.advanceStack(o,r,n))continue;{e||(e=[],t=[]),e.push(o);let n=this.tokens.getMainToken(o);t.push(n.value,n.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scorethis.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>i))&&this.recovering--}else if(r.length>1)e:for(let s=0;s500&&n.buffer.length>500){if(!((e.score-n.score||e.buffer.length-n.buffer.length)>0)){r.splice(s--,1);continue e}r.splice(t--,1)}}}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?s.getGoto(e.state,a.type.id):-1;if(i>-1&&a.length&&(!t||(a.prop(r.md.contextHash)||0)==n))return e.useNode(a,i),m&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(a.type.id)})`),!0;if(!(a instanceof r.mp)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof r.mp&&0==a.positions[0]))break;a=l}}let a=s.stateSlot(e.state,4);if(a>0)return e.reduce(a),m&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(65535&a)})`),!0;if(e.stack.length>=15e3)for(;e.stack.length>9e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let r=0;ri?t.push(O):n.push(O)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return $(e,t),!0}}runRecovery(e,t,n){let i=null,r=!1;for(let s=0;s ":"";if(o.deadEnd){if(r)continue;if(r=!0,o.restart(),m&&console.log(c+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))continue}let h=o.split(),u=c;for(let e=0;h.forceReduce()&&e<10;e++){if(m&&console.log(u+this.stackID(h)+" (via force-reduce)"),this.advanceFully(h,n))break;m&&(u=this.stackID(h)+" -> ")}for(let e of o.recoverByInsert(a))m&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),m&&console.log(c+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),$(o,n)):(!i||i.scoree;class T{constructor(e){this.start=e.start,this.shift=e.shift||w,this.reduce=e.reduce||w,this.reuse=e.reuse||w,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class P extends r._b{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;re.topRules[t][1])),i=[];for(let r=0;r=0)s(n,e,a[t++]);else{let i=a[t+-n];for(let r=-n;r>0;r--)s(a[t++],e,i);t++}}}this.nodeSet=new r.Lj(t.map(((t,s)=>r.Jq.define({name:s>=this.minRepeatTerm?void 0:t,id:s,props:i[s],top:n.indexOf(s)>-1,error:0==s,skipped:e.skippedNodes&&e.skippedNodes.indexOf(s)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=r.L3;let o=p(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let r=0;r"number"==typeof e?new f(o,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new v(this,e,t,n);for(let r of this.wrappers)i=r(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return-1;for(let r=i[t+1];;){let t=i[r++],s=1&t,o=i[r++];if(s&&n)return o;for(let n=r+(t>>1);r0}validAction(e,t){if(t==this.stateSlot(e,4))return!0;for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=R(this.data,n+2)}if(t==R(this.data,n+1))return!0}}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])break;n=R(this.data,n+2)}if(0==(1&this.data[n+2])){let e=this.data[n+1];t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}overrides(e,t){let n=C(this.data,this.tokenPrecTable,t);return n<0||C(this.data,this.tokenPrecTable,e){let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((n,i)=>{let r=e.specializers.find((e=>e.from==n.external));if(!r)return n;let s=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[i]=Z(s),s}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map((()=>!1));if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let i=null;for(let r=0;re.external(n,i)<<1|t}return e.get}},20943:function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),o,s);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(i(n),o,a,c)}else null!=o&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+o+";")}(a.length||c)&&s.push((!n||l||o?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let s in e)r(i(s),e[s],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=s[i]||1;return s[i]=e+1,"\u037c"+e.toString(36)}static mount(e,t){(e[r]||new l(e)).mount(Array.isArray(t)?t:[t])}}let a=null;class l{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(a)return e.adoptedStyleSheets=[a.sheet].concat(e.adoptedStyleSheets),e[r]=a;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),a=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[r]=this}mount(e){let t=this.sheet,n=0,i=0;for(let r=0;r-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,s),t)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),o=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=o||s&&+s[1]<57,c=0;c<10;c++)i[48+c]=i[96+c]=String(c);for(c=1;c<=24;c++)i[c+111]="F"+c;for(c=65;c<=90;c++)i[c]=String.fromCharCode(c+32),r[c]=String.fromCharCode(c);for(var h in i)r.hasOwnProperty(h)||(r[h]=i[h]);function u(e){var t=!(l&&(e.ctrlKey||e.altKey||e.metaKey)||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?r:i)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js b/static/web/_next/static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js similarity index 88% rename from static/web/_next/static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js rename to static/web/_next/static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js index d7307b265..9ef35d245 100644 --- a/static/web/_next/static/chunks/pages/admin/upgrade-20cbc2c681a2512f.js +++ b/static/web/_next/static/chunks/pages/admin/upgrade-c7e86ed531f5961a.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return r(73143)}])},73143:function(e,n,r){"use strict";r.r(n);var t=r(47568),a=r(26042),u=r(70655),s=r(85893),i=r(67294),c=r(16153),l=r(84485),o=r(93626),d=r(58827),f=l.Z.Title,h=function(e){var n=Object.values(e),r=[{title:"Name",dataIndex:"name",key:"name",render:function(e,n){return(0,s.jsx)("a",{href:n.browser_download_url,children:e})}},{title:"Size",dataIndex:"size",key:"size",render:function(e){return"".concat((e/1024/1024).toFixed(2)," MB")}}];return(0,s.jsx)(o.Z,{dataSource:n,columns:r,rowKey:function(e){return e.id},size:"large",pagination:!1})};n.default=function(){var e=(0,i.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=e[0],r=e[1],l=function(){var e=(0,t.Z)((function(){var e,n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,d.Kt)()];case 1:return e=t.sent(),r(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){l()}),[]),n?(0,s.jsxs)("div",{className:"upgrade-page",children:[(0,s.jsx)(f,{level:2,children:(0,s.jsx)("a",{href:n.html_url,children:n.name})}),(0,s.jsx)(f,{level:5,children:new Date(n.created_at).toDateString()}),(0,s.jsx)(c.D,{children:n.body}),(0,s.jsx)("h3",{children:"Downloads"}),(0,s.jsx)(h,(0,a.Z)({},n.assets))]}):null}}},function(e){e.O(0,[8939,3903,4267,3626,3812,9774,2888,179],(function(){return n=70918,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9262],{70918:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/upgrade",function(){return r(73143)}])},73143:function(e,n,r){"use strict";r.r(n);var t=r(47568),a=r(26042),u=r(70655),s=r(85893),i=r(67294),c=r(21364),l=r(84485),o=r(93626),d=r(58827),f=l.Z.Title,h=function(e){var n=Object.values(e),r=[{title:"Name",dataIndex:"name",key:"name",render:function(e,n){return(0,s.jsx)("a",{href:n.browser_download_url,children:e})}},{title:"Size",dataIndex:"size",key:"size",render:function(e){return"".concat((e/1024/1024).toFixed(2)," MB")}}];return(0,s.jsx)(o.Z,{dataSource:n,columns:r,rowKey:function(e){return e.id},size:"large",pagination:!1})};n.default=function(){var e=(0,i.useState)({html_url:"",name:"",created_at:null,body:"",assets:[]}),n=e[0],r=e[1],l=function(){var e=(0,t.Z)((function(){var e,n;return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,d.Kt)()];case 1:return e=t.sent(),r(e),[3,3];case 2:return n=t.sent(),console.log("==== error",n),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.useEffect)((function(){l()}),[]),n?(0,s.jsxs)("div",{className:"upgrade-page",children:[(0,s.jsx)(f,{level:2,children:(0,s.jsx)("a",{href:n.html_url,children:n.name})}),(0,s.jsx)(f,{level:5,children:new Date(n.created_at).toDateString()}),(0,s.jsx)(c.D,{children:n.body}),(0,s.jsx)("h3",{children:"Downloads"}),(0,s.jsx)(h,(0,a.Z)({},n.assets))]}):null}}},function(e){e.O(0,[8939,3903,4267,3626,2069,9774,2888,179],(function(){return n=70918,e(e.s=n);var n}));var n=e.O();_N_E=n}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/webpack-6a24fcfeb2f53811.js b/static/web/_next/static/chunks/webpack-882e68d308f7b179.js similarity index 98% rename from static/web/_next/static/chunks/webpack-6a24fcfeb2f53811.js rename to static/web/_next/static/chunks/webpack-882e68d308f7b179.js index 2c3f5110c..9f45f577b 100644 --- a/static/web/_next/static/chunks/webpack-6a24fcfeb2f53811.js +++ b/static/web/_next/static/chunks/webpack-882e68d308f7b179.js @@ -1 +1 @@ -!function(){"use strict";var e={},t={};function a(c){var n=t[c];if(void 0!==n)return n.exports;var f=t[c]={id:c,loaded:!1,exports:{}},r=!0;try{e[c].call(f.exports,f,f.exports,a),r=!1}finally{r&&delete t[c]}return f.loaded=!0,f.exports}a.m=e,a.amdO={},function(){var e=[];a.O=function(t,c,n,f){if(!c){var r=1/0;for(i=0;i=f)&&Object.keys(a.O).every((function(e){return a.O[e](c[b])}))?c.splice(b--,1):(d=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,n,f]}}(),a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(c,n){if(1&n&&(c=this(c)),8&n)return c;if("object"===typeof c&&c){if(4&n&&c.__esModule)return c;if(16&n&&"function"===typeof c.then)return c}var f=Object.create(null);a.r(f);var r={};e=e||[null,t({}),t([]),t(t)];for(var d=2&n&&c;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((function(e){r[e]=function(){return c[e]}}));return r.default=function(){return c},a.d(f,r),f}}(),a.d=function(e,t){for(var c in t)a.o(t,c)&&!a.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,c){return a.f[c](e,t),t}),[]))},a.u=function(e){return 8939===e?"static/chunks/8939-29079579e398192c.js":3903===e?"static/chunks/3903-97c724332d1a5798.js":4267===e?"static/chunks/4267-b54c540ce3a8eed5.js":3626===e?"static/chunks/3626-717f7ff16ee717f6.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":2944===e?"static/chunks/2944-2a9b62dad629aca2.js":"static/chunks/"+e+"."+{177:"07e81c876c150d56",228:"7008583a6edcaf6f",305:"81addcdd22dac87e",370:"52e16b019e72e3e7",402:"d2b366579300ae3b",617:"933158da5fda9b65",673:"ece53c2daf22e93d",758:"4e6dace4695912fa",786:"bda6a234b010d76b",870:"2ed8d4e2260b0131",889:"ae582629b4ddeada",1053:"cadcccb1887d1655",1084:"5b7bb8501d49b84f",1300:"4b32175d5676e8df",1390:"d3320a2772ee1632",1446:"d4716947e754971e",1650:"8909ff4ee9be21d8",1660:"2e69d7651d99fffa",1770:"e9d167a359425734",1873:"a756dbdabb15f510",1920:"c33b94a1a93e947a",2040:"8c1f1efa3891bda8",2119:"33ee19dcc774b7b3",2136:"87902004824e59b3",2314:"0c7ba9cb309bbcae",2365:"e111da64ecd79b2c",2386:"7849afb31fdbcbe9",2406:"fdc2fd9471c9277c",2542:"d87f01354fa8625b",2602:"23ec287cba38919e",2675:"c188080c2b5d4a3d",2750:"64ce3f9e097bda01",3203:"4a03f08cc075a41a",3283:"508ea7a82a17eb6f",3314:"21f4d993f672bac4",3465:"3b01362997e94018",3482:"123b2f3fc81ff758",3509:"3932ae3634ee5b2e",3519:"7b44cdadfa3dccf8",3883:"2fb7f03e2ca3529a",3993:"128027dd7265a783",4144:"ac42c8b1f09df8f9",4163:"1b16f58fd432f4da",4212:"f665078601f914de",4293:"9a6146c4cd92c0ea",4323:"88655b5982d04133",4439:"4f04bf9f401b13af",4511:"c20b329de4a94d30",4732:"abe153cd9e74cf8c",4778:"fe124557ac27707c",4796:"59ffa2aa8de67c8d",4879:"ff6296c6446eb972",4920:"5562dd5144a4a0c6",5122:"c94bd6aa99c27f1e",5134:"8c40f920826939fb",5135:"6541163f583921e6",5372:"1cbe35d74e4ddd0e",5379:"aade0a3e0e516604",5648:"6417f99e99d45d4c",5753:"369aa818f4fa0dae",5815:"d2bce212c3134600",5819:"d24a858591bd5c3c",5879:"1b55d2b462afebf3",6062:"99b0d3c3b2722798",6092:"cb997822d5ad9a36",6121:"3d67c2fae8774daa",6395:"21f59417b457c6b2",6443:"dd7e5cd2e659f21f",6471:"a1b969913a20a449",6665:"9b4fa1f8176c8faf",6692:"4c47b40a842bfe37",6732:"a90326e23dac20d0",6991:"015225d9c5454e6b",7001:"e576736a60e3567b",7047:"7055375b97eebebc",7213:"0c5bd78e1f87e6ff",7315:"6f5ab7ef11af96d8",7365:"f54e467b2f4523d1",7370:"f49ab049acf16289",7421:"06e86f299b78a3d3",7475:"b1546a7ebfa28cbb",7525:"938d02cfd66dc876",7590:"efdde8b2997b09a1",7601:"5a327eee5530fbe2",7663:"b3b1c64004576939",7735:"df129ee8ae364d5e",7741:"177818bb3887216e",7762:"7bae3e40001587ab",7781:"f2e7d91aa07a4804",7917:"04781deb6d0da1e1",7988:"0a5a4bd779cbda3e",8007:"36e212ff50d5c34a",8029:"ca20148827905307",8088:"6b0d80ed9ff6ff22",8142:"fca9502f471ae841",8171:"97a5e3c90df36fc7",8225:"b1ad83c90140af1a",8283:"914dfaa8316d16d7",8393:"ac707cc39cd5aab8",8561:"281bc4ce77b8995a",8770:"719a9f10f1781d66",8910:"0be92050586e05f6",8915:"0a35c35fa8764138",9071:"d812295ab2a73c24",9121:"5c4711a92893fca9",9232:"400b581440faecc1",9296:"b186db185a29360d",9558:"cfa96280a9f9d439",9607:"ff46198deba68fd1",9674:"1c8a004662670f7a",9713:"0ca649eec80739b4",9781:"6915afce38fb4e27",9809:"b5973362b6234d26",9831:"a0808ada0e3f0bcc",9972:"dcde2a016a9a80ee"}[e]+".js"},a.miniCssF=function(e){return"static/css/"+{29:"7c735c05af084bb2",955:"38031c0e461b403f",2365:"19d74602c45ee60b",2888:"091d82c6a3e87800",3126:"50d4ea374f37f0f9",5135:"edb3f793b986286c",5405:"50ef1663cf2c1b27",7735:"ffd83995160971e6",7781:"b92b45b3f2e03f44",8399:"87104b15c089124a",9674:"ed28f196ebbc4ea9"}[e]+".css"},a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";a.l=function(c,n,f,r){if(e[c])e[c].push(n);else{var d,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),i=0;i=f)&&Object.keys(a.O).every((function(e){return a.O[e](c[b])}))?c.splice(b--,1):(d=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[c,n,f]}}(),a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(c,n){if(1&n&&(c=this(c)),8&n)return c;if("object"===typeof c&&c){if(4&n&&c.__esModule)return c;if(16&n&&"function"===typeof c.then)return c}var f=Object.create(null);a.r(f);var r={};e=e||[null,t({}),t([]),t(t)];for(var d=2&n&&c;"object"==typeof d&&!~e.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((function(e){r[e]=function(){return c[e]}}));return r.default=function(){return c},a.d(f,r),f}}(),a.d=function(e,t){for(var c in t)a.o(t,c)&&!a.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,c){return a.f[c](e,t),t}),[]))},a.u=function(e){return 8939===e?"static/chunks/8939-2c7dd78bd2286b4d.js":3903===e?"static/chunks/3903-97c724332d1a5798.js":4267===e?"static/chunks/4267-b54c540ce3a8eed5.js":3626===e?"static/chunks/3626-717f7ff16ee717f6.js":8091===e?"static/chunks/8091-d7457a988f3f1d54.js":2944===e?"static/chunks/2944-2a9b62dad629aca2.js":"static/chunks/"+e+"."+{177:"07e81c876c150d56",228:"7008583a6edcaf6f",305:"81addcdd22dac87e",370:"52e16b019e72e3e7",402:"d2b366579300ae3b",617:"933158da5fda9b65",673:"ece53c2daf22e93d",758:"4e6dace4695912fa",786:"bda6a234b010d76b",870:"2ed8d4e2260b0131",889:"ae582629b4ddeada",1053:"cadcccb1887d1655",1084:"5b7bb8501d49b84f",1300:"4b32175d5676e8df",1390:"d3320a2772ee1632",1446:"d4716947e754971e",1650:"8909ff4ee9be21d8",1660:"2e69d7651d99fffa",1770:"e9d167a359425734",1873:"a756dbdabb15f510",1920:"c33b94a1a93e947a",2040:"8c1f1efa3891bda8",2119:"33ee19dcc774b7b3",2136:"87902004824e59b3",2314:"0c7ba9cb309bbcae",2365:"e111da64ecd79b2c",2386:"7849afb31fdbcbe9",2406:"fdc2fd9471c9277c",2542:"d87f01354fa8625b",2602:"23ec287cba38919e",2675:"c188080c2b5d4a3d",2750:"64ce3f9e097bda01",3203:"4a03f08cc075a41a",3283:"508ea7a82a17eb6f",3314:"21f4d993f672bac4",3465:"3b01362997e94018",3482:"123b2f3fc81ff758",3509:"3932ae3634ee5b2e",3519:"7b44cdadfa3dccf8",3883:"2fb7f03e2ca3529a",3993:"128027dd7265a783",4144:"ac42c8b1f09df8f9",4163:"1b16f58fd432f4da",4212:"f665078601f914de",4293:"9a6146c4cd92c0ea",4323:"88655b5982d04133",4439:"4f04bf9f401b13af",4511:"c20b329de4a94d30",4732:"abe153cd9e74cf8c",4778:"fe124557ac27707c",4796:"59ffa2aa8de67c8d",4879:"ff6296c6446eb972",4920:"5562dd5144a4a0c6",5122:"c94bd6aa99c27f1e",5134:"8c40f920826939fb",5135:"6541163f583921e6",5372:"1cbe35d74e4ddd0e",5379:"aade0a3e0e516604",5648:"6417f99e99d45d4c",5753:"369aa818f4fa0dae",5815:"d2bce212c3134600",5819:"d24a858591bd5c3c",5879:"1b55d2b462afebf3",6062:"99b0d3c3b2722798",6092:"cb997822d5ad9a36",6121:"3d67c2fae8774daa",6395:"21f59417b457c6b2",6443:"dd7e5cd2e659f21f",6471:"a1b969913a20a449",6665:"9b4fa1f8176c8faf",6692:"4c47b40a842bfe37",6732:"a90326e23dac20d0",6991:"015225d9c5454e6b",7001:"e576736a60e3567b",7047:"7055375b97eebebc",7213:"0c5bd78e1f87e6ff",7315:"6f5ab7ef11af96d8",7365:"f54e467b2f4523d1",7370:"f49ab049acf16289",7421:"06e86f299b78a3d3",7475:"b1546a7ebfa28cbb",7525:"938d02cfd66dc876",7590:"efdde8b2997b09a1",7601:"5a327eee5530fbe2",7663:"b3b1c64004576939",7735:"df129ee8ae364d5e",7741:"177818bb3887216e",7762:"7bae3e40001587ab",7781:"f2e7d91aa07a4804",7917:"04781deb6d0da1e1",7988:"0a5a4bd779cbda3e",8007:"36e212ff50d5c34a",8029:"ca20148827905307",8088:"6b0d80ed9ff6ff22",8142:"fca9502f471ae841",8171:"97a5e3c90df36fc7",8225:"b1ad83c90140af1a",8283:"914dfaa8316d16d7",8393:"ac707cc39cd5aab8",8561:"281bc4ce77b8995a",8770:"719a9f10f1781d66",8910:"0be92050586e05f6",8915:"0a35c35fa8764138",9071:"d812295ab2a73c24",9121:"5c4711a92893fca9",9232:"400b581440faecc1",9296:"b186db185a29360d",9558:"cfa96280a9f9d439",9607:"ff46198deba68fd1",9674:"1c8a004662670f7a",9713:"0ca649eec80739b4",9781:"6915afce38fb4e27",9809:"b5973362b6234d26",9831:"a0808ada0e3f0bcc",9972:"dcde2a016a9a80ee"}[e]+".js"},a.miniCssF=function(e){return"static/css/"+{29:"7c735c05af084bb2",955:"38031c0e461b403f",2365:"19d74602c45ee60b",2888:"091d82c6a3e87800",3126:"50d4ea374f37f0f9",5135:"edb3f793b986286c",5405:"50ef1663cf2c1b27",7735:"ffd83995160971e6",7781:"b92b45b3f2e03f44",8399:"87104b15c089124a",9674:"ed28f196ebbc4ea9"}[e]+".css"},a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";a.l=function(c,n,f,r){if(e[c])e[c].push(n);else{var d,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),i=0;iOwncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Access Tokens

Access tokens are used to allow external, 3rd party tools to perform specific actions on your Owncast server. They should be kept secure and never included in client code, instead they should be kept on a server that you control.
Read more about how to use these tokens, with examples, at our documentation.
NameTokenScopesLast Used
No Data

\ No newline at end of file diff --git a/static/web/admin/actions/index.html b/static/web/admin/actions/index.html index 6bc302116..0a8d7e991 100644 --- a/static/web/admin/actions/index.html +++ b/static/web/admin/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

External Actions

External action URLs are 3rd party UI you can display, embedded, into your Owncast page when a user clicks on a button to launch your action.
Read more about how to use actions, with examples, at our documentation.
NameDescriptionURLIconColorOpens
No Data

\ No newline at end of file diff --git a/static/web/admin/chat/messages/index.html b/static/web/admin/chat/messages/index.html index 846edafc0..99087c626 100644 --- a/static/web/admin/chat/messages/index.html +++ b/static/web/admin/chat/messages/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Chat Messages

Manage the messages from viewers that show up on your stream.

Check multiple messages to change their visibility to:
Time
User
Message
No Data
\ No newline at end of file diff --git a/static/web/admin/chat/users/index.html b/static/web/admin/chat/users/index.html index dfd6d3e5c..7ee6504ef 100644 --- a/static/web/admin/chat/users/index.html +++ b/static/web/admin/chat/users/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

When a stream is active and chat is enabled, connected chat clients will be displayed here.

\ No newline at end of file diff --git a/static/web/admin/config-chat/index.html b/static/web/admin/config-chat/index.html index 582310400..c89128b8d 100644 --- a/static/web/admin/config-chat/index.html +++ b/static/web/admin/config-chat/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-federation/index.html b/static/web/admin/config-federation/index.html index 3cd56b1e2..6619b3dc2 100644 --- a/static/web/admin/config-federation/index.html +++ b/static/web/admin/config-federation/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/config-notify/index.html b/static/web/admin/config-notify/index.html index 814b39422..642a46610 100644 --- a/static/web/admin/config-notify/index.html +++ b/static/web/admin/config-notify/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Notifications

Let your viewers know when you go live by supporting any of the below notification channels. Learn more about live notifications.


The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.

Browser Alerts

Viewers can opt into being notified when you go live with their browser.

Not all browsers support this.

Enable browser notifications

The text to send when you go live.

Twitter

Let your Twitter followers know each time you go live.

Enable Twitter

The text to send when you go live.

Discord

Let your Discord channel know each time you go live.

Create a webhook under Edit Channel / Integrations on your Discord channel and provide it below.

Enable Discord

The webhook assigned to your channel.

The text to send when you go live.

Fediverse Social

Enabling the Fediverse social features will not just alert people to when you go live, but also enable other functionality.

Fediverse social features: Disabled

Configure

Custom

Build your own notifications by using custom webhooks.

Create
\ No newline at end of file diff --git a/static/web/admin/config-public-details/index.html b/static/web/admin/config-public-details/index.html index b8d52b947..db9855489 100644 --- a/static/web/admin/config-public-details/index.html +++ b/static/web/admin/config-public-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

General Settings

The following are displayed on your site to describe your stream and its content. Learn more.

Custom Page Content

Edit the content of your page by using simple Markdown syntax.


Customize your page styling with CSS

Customize the look and feel of your Owncast instance by overriding the CSS styles of various components on the page. Refer to the CSS & Components guide.

Please input plain CSS text, as this will be directly injected onto your page during load.


\ No newline at end of file diff --git a/static/web/admin/config-server-details/index.html b/static/web/admin/config-server-details/index.html index 2e489d6c0..783794660 100644 --- a/static/web/admin/config-server-details/index.html +++ b/static/web/admin/config-server-details/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Server Settings

You should change your stream key from the default and keep it safe. For most people it's likely the other settings will not need to be changed.

\ No newline at end of file diff --git a/static/web/admin/config-social-items/index.html b/static/web/admin/config-social-items/index.html index ad8c9781f..d78845c82 100644 --- a/static/web/admin/config-social-items/index.html +++ b/static/web/admin/config-social-items/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Social Items

\ No newline at end of file diff --git a/static/web/admin/config-storage/index.html b/static/web/admin/config-storage/index.html index fe8a6724b..d1b424ea4 100644 --- a/static/web/admin/config-storage/index.html +++ b/static/web/admin/config-storage/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Storage

Owncast supports optionally using external storage providers to stream your video. Learn more about this by visiting our Storage Documentation.

Configuring this incorrectly will likely cause your video to be unplayable. Double check the documentation for your storage provider on how to configure the bucket you created for Owncast.

Keep in mind this is for live streaming, not for archival, recording or VOD purposes.

\ No newline at end of file diff --git a/static/web/admin/config-video/index.html b/static/web/admin/config-video/index.html index a183c5017..9aec2dbd7 100644 --- a/static/web/admin/config-video/index.html +++ b/static/web/admin/config-video/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Video configuration

Before changing your video configuration visit the video documentation to learn how it impacts your stream performance. The general rule is to start conservatively by having one middle quality stream output variant and experiment with adding more of varied qualities.

Stream output

NameVideo bitrateCPU Usage
No name800 kbpsMedium

Latency Buffer

While it's natural to want to keep your latency as low as possible, you may experience reduced error tolerance and stability the lower you go. The lowest setting is not recommended.

For interactive live streams you may want to experiment with a lower latency, for non-interactive broadcasts you may want to increase it. Read to learn more.

LowestHighest

\ No newline at end of file diff --git a/static/web/admin/federation/actions/index.html b/static/web/admin/federation/actions/index.html index 780cb282e..1ad8e0a0f 100644 --- a/static/web/admin/federation/actions/index.html +++ b/static/web/admin/federation/actions/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Fediverse Actions

Below is a list of actions that were taken by others in response to your posts as well as people who requested to follow you.
ActionFromWhen
No Data
\ No newline at end of file diff --git a/static/web/admin/federation/followers/index.html b/static/web/admin/federation/followers/index.html index adba5a357..143aa381c 100644 --- a/static/web/admin/federation/followers/index.html +++ b/static/web/admin/federation/followers/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

The following accounts get notified when you go live or send a post.

NameURL
Added
Remove
No Data
\ No newline at end of file diff --git a/static/web/admin/hardware-info/index.html b/static/web/admin/hardware-info/index.html index 03f03c083..b0de404c8 100644 --- a/static/web/admin/hardware-info/index.html +++ b/static/web/admin/hardware-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Hardware Info


CPU
0%
Memory
0%
Disk
0%
Loading...
\ No newline at end of file diff --git a/static/web/admin/help/index.html b/static/web/admin/help/index.html index 475d68d2f..7056426ce 100644 --- a/static/web/admin/help/index.html +++ b/static/web/admin/help/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

How can we help you?

Troubleshooting

Fix your problems

Documentation

Read the Docs

Common tasks

I want to configure my owncast instance
Help configuring my broadcasting software
I want to embed my stream into another site
I want to customize my website
I want to tweak my video output
I want to use an external storage provider

Other

I found a bug
If you found a bug, then please let us know
I have a general question
Most general questions are answered in our FAQ or exist in our discussions
I want to build add-ons for Owncast
You can build your own bots, overlays, tools and add-ons with our developer APIs. 
\ No newline at end of file diff --git a/static/web/admin/index.html b/static/web/admin/index.html index 34416f25e..82479ac17 100644 --- a/static/web/admin/index.html +++ b/static/web/admin/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

No stream is active

You should start one.

Use your broadcasting software
Chat is disabled
Chat will continue to be disabled until you begin a live stream.
Find an audience on the Owncast Directory
List yourself in the Owncast Directory and show off your stream. Enable it in settings.
fediverse
Add your Owncast instance to the Fediverse
Enable Owncast social features to have your instance join the Fediverse, allowing people to follow, share and engage with your live stream.

News & Updates from Owncast

\ No newline at end of file diff --git a/static/web/admin/logs/index.html b/static/web/admin/logs/index.html index c54dcdd08..d5d426add 100644 --- a/static/web/admin/logs/index.html +++ b/static/web/admin/logs/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline
\ No newline at end of file diff --git a/static/web/admin/stream-health/index.html b/static/web/admin/stream-health/index.html index faf01b0a6..6cca291bd 100644 --- a/static/web/admin/stream-health/index.html +++ b/static/web/admin/stream-health/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Stream Performance

\ No newline at end of file diff --git a/static/web/admin/upgrade/index.html b/static/web/admin/upgrade/index.html index 46dadf98e..5bbdd4f3d 100644 --- a/static/web/admin/upgrade/index.html +++ b/static/web/admin/upgrade/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Thu Jan 01 1970

Downloads

NameSize
No Data
\ No newline at end of file diff --git a/static/web/admin/viewer-info/index.html b/static/web/admin/viewer-info/index.html index 4338616ab..6d9766838 100644 --- a/static/web/admin/viewer-info/index.html +++ b/static/web/admin/viewer-info/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Viewer Info


Max viewers last stream
0
All-time max viewers
0
User AgentLocation
Watch Time
No Data
\ No newline at end of file diff --git a/static/web/admin/webhooks/index.html b/static/web/admin/webhooks/index.html index 9d7ff5fbc..4fe5b3a53 100644 --- a/static/web/admin/webhooks/index.html +++ b/static/web/admin/webhooks/index.html @@ -1 +1 @@ -Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file +Owncast Admin

What is your stream about today?

What is your stream about today?
Offline

Webhooks

A webhook is a callback made to an external API in response to an event that takes place within Owncast. This can be used to build chat bots or sending automatic notifications that you've started streaming.
Read more about how to use webhooks, with examples, at our documentation.
URLEvents
No Data

\ No newline at end of file diff --git a/static/web/embed/chat/readonly/index.html b/static/web/embed/chat/readonly/index.html index cf3f3920c..aa46c9588 100644 --- a/static/web/embed/chat/readonly/index.html +++ b/static/web/embed/chat/readonly/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/chat/readwrite/index.html b/static/web/embed/chat/readwrite/index.html index ea06dd28e..52d9d5691 100644 --- a/static/web/embed/chat/readwrite/index.html +++ b/static/web/embed/chat/readwrite/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/static/web/embed/video/index.html b/static/web/embed/video/index.html index fb17838f5..115aa32d4 100644 --- a/static/web/embed/video/index.html +++ b/static/web/embed/video/index.html @@ -1 +1 @@ -
This stream is offline. Check back soon!
\ No newline at end of file +
This stream is offline. Check back soon!
\ No newline at end of file diff --git a/static/web/index.html b/static/web/index.html index 034296f30..81e8ebe51 100644 --- a/static/web/index.html +++ b/static/web/index.html @@ -1,4 +1,4 @@
Chat offline
Logo
Preview
\ No newline at end of file +
Chat offline
Logo
Preview
\ No newline at end of file