feffery_utils_components 0.2.0-rc11 → 0.2.0-rc13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +2 -0
  3. package/Project.toml +1 -1
  4. package/README.md +1 -1
  5. package/assets/demo.jpg +0 -0
  6. package/feffery_utils_components/FefferySetFavicon.py +45 -0
  7. package/feffery_utils_components/FefferySetTitle.py +7 -4
  8. package/feffery_utils_components/FefferySliderCaptcha.py +109 -0
  9. package/feffery_utils_components/__init__.py +2 -1
  10. package/feffery_utils_components/_imports_.py +4 -0
  11. package/feffery_utils_components/async-feffery_animated_3d_background_p5.js +1 -1
  12. package/feffery_utils_components/async-feffery_animated_3d_background_three.js +2 -2
  13. package/feffery_utils_components/async-feffery_animated_image.js +1 -1
  14. package/feffery_utils_components/async-feffery_aplayer.js +1 -1
  15. package/feffery_utils_components/async-feffery_auto_animate.js +1 -1
  16. package/feffery_utils_components/async-feffery_auto_fit.js +1 -1
  17. package/feffery_utils_components/async-feffery_captcha.js +1 -1
  18. package/feffery_utils_components/async-feffery_color_pickers.js +1 -1
  19. package/feffery_utils_components/async-feffery_dom2image.js +1 -1
  20. package/feffery_utils_components/async-feffery_dplayer.js +1 -1
  21. package/feffery_utils_components/async-feffery_emoji_picker.js +1 -1
  22. package/feffery_utils_components/async-feffery_excel_preview.js +1 -1
  23. package/feffery_utils_components/async-feffery_extra_spinner.js +1 -1
  24. package/feffery_utils_components/async-feffery_fancy_button.js +1 -1
  25. package/feffery_utils_components/async-feffery_grid.js +1 -1
  26. package/feffery_utils_components/async-feffery_image_cropper.js +1 -1
  27. package/feffery_utils_components/async-feffery_json_viewer.js +1 -1
  28. package/feffery_utils_components/async-feffery_local_large_storage.js +1 -1
  29. package/feffery_utils_components/async-feffery_markdown_editor.js +2 -2
  30. package/feffery_utils_components/async-feffery_motion.js +1 -1
  31. package/feffery_utils_components/async-feffery_music_player.js +1 -1
  32. package/feffery_utils_components/async-feffery_photo_sphere_viewer.js +1 -1
  33. package/feffery_utils_components/async-feffery_resizable.js +1 -1
  34. package/feffery_utils_components/async-feffery_rich_text_editor.js +2 -2
  35. package/feffery_utils_components/async-feffery_rnd.js +1 -1
  36. package/feffery_utils_components/async-feffery_seamless_scroll.js +1 -1
  37. package/feffery_utils_components/async-feffery_shortcut_panel.js +1 -1
  38. package/feffery_utils_components/async-feffery_slider_captcha.js +1 -0
  39. package/feffery_utils_components/async-feffery_slider_captcha.js.LICENSE.txt +1 -0
  40. package/feffery_utils_components/async-feffery_sortable.js +1 -1
  41. package/feffery_utils_components/async-feffery_word_preview.js +1 -1
  42. package/feffery_utils_components/async-fuc-shared.js +2 -2
  43. package/feffery_utils_components/feffery_utils_components.min.js +2 -2
  44. package/feffery_utils_components/metadata.json +298 -1
  45. package/feffery_utils_components/package-info.json +3 -1
  46. package/package.json +3 -1
  47. package/src/lib/components/FefferySetFavicon.react.js +58 -0
  48. package/src/lib/components/FefferySetTitle.react.js +21 -6
  49. package/src/lib/components/FefferySliderCaptcha.react.js +160 -0
  50. package/src/lib/fragments/FefferySliderCaptcha.react.js +102 -0
  51. package/src/lib/index.js +5 -1
  52. package/usage.py +20 -48
@@ -1,4 +1,4 @@
1
- (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[24],{543:function(e,t,n){"use strict";n.r(t),n(753);var E=n(1),D=n.n(E),S=n(60),C=n(22),A=n(590),m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function O(e){function t(e){a&&a(e);var t=c.onCreated;t&&t(e)}function n(e){y(e.getHtml()),l&&l(e);var t=c.onChange;t&&t(e)}function r(e){var t=c.onDestroyed;g(null),t&&t(e)}var o=e.defaultContent,i=void 0===o?[]:o,a=e.onCreated,o=e.defaultHtml,u=void 0===o?"":o,o=e.value,s=void 0===o?"":o,l=e.onChange,o=e.defaultConfig,c=void 0===o?{}:o,o=e.mode,f=void 0===o?"default":o,o=e.style,o=void 0===o?{}:o,e=e.className,d=Object(E.useRef)(null),p=b(Object(E.useState)(null),2),h=p[0],g=p[1],p=b(Object(E.useState)(""),2),v=p[0],y=p[1];return Object(E.useEffect)(function(){if(null!=h&&s!==v)try{h.setHtml(s)}catch(e){console.error(e)}},[s]),Object(E.useEffect)(function(){var e;null==d.current||null!=h||null!=(e=d.current)&&e.getAttribute("data-w-e-textarea")||(e=Object(A.a)({selector:d.current,config:m(m({},c),{onCreated:t,onChange:n,onDestroyed:r}),content:i,html:u||s,mode:f}),g(e))},[h]),D.a.createElement("div",{style:o,ref:d,className:e})}function k(e){var t=e.editor,n=e.defaultConfig,r=void 0===n?{}:n,n=e.mode,o=void 0===n?"default":n,n=e.style,n=void 0===n?{}:n,e=e.className,i=Object(E.useRef)(null);return Object(E.useEffect)(function(){null!=i.current&&null!=t&&A.b({editor:t,selector:i.current,config:r,mode:o})},[t]),D.a.createElement("div",{style:n,ref:i,className:e})}var B=n(86),F=n.n(B),n=n(207);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function T(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){var t,n,r;t=o,n=i[e=e],r=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=a(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){var t,n=e.id,r=e.className,o=e.style,i=e.key,a=e.toolbarClassName,u=e.toolbarStyle,s=e.editorClassName,l=e.editorStyle,c=e.locale,f=e.mode,d=e.htmlValue,p=(e.textValue,e.toolbarConfig),h=e.editorConfig,g=e.uploadImage,v=e.uploadVideo,y=e.successMessage,m=e.errorMessage,b=e.setProps;e.loading_state,e=Object(E.useState)(null),t=2;var w=(e=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){var n;if(e)return"string"==typeof e?_(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],x=e[1];return g.maxFileSize=g.maxFileSize||2097152,v.maxFileSize=v.maxFileSize||10485760,h.onMaxLength=function(e){F.a.error("zh-CN"==c?"已超出最大长度限制":"Maximum length limit exceeded",T({},m))},h.MENU_CONF=h.MENU_CONF||{},h.MENU_CONF.uploadImage=T(T({},g),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){F.a.success("".concat(e.name,"zh-CN"==c?"上传成功!":" upload successful"),T({},y))},onFailed:function(e,t){F.a.error("".concat(e.name,"zh-CN"==c?"上传失败!\n":" upload failed.\n").concat(t.message),T({},m))},onError:function(e,t,n){F.a.error("".concat(e.name,"zh-CN"==c?"上传出错!\n":" upload error.\n").concat(t,"\n").concat(n.message),T({},m))}}),h.MENU_CONF.uploadVideo=T(T({},v),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){F.a.success("".concat(e.name,"zh-CN"==c?"上传成功!":" upload successful"),T({},y))},onFailed:function(e,t){F.a.error("".concat(e.name,"zh-CN"==c?"上传失败!\n":" upload failed.\n").concat(t.message),T({},m))},onError:function(e,t,n){F.a.error("".concat(e.name,"zh-CN"==c?"上传出错!\n":" upload error.\n").concat(t,"\n").concat(n.message),T({},m))}}),Object(E.useEffect)(function(){return Object(A.c)(c),function(){null!=w&&(w.destroy(),x(null))}},[w]),D.a.createElement("div",{id:n,className:Object(C.isString)(r)?r:r?Object(S.a)(r):void 0,style:T({border:"1px solid #ccc",zIndex:9999},o),key:i},D.a.createElement(k,{className:Object(C.isString)(a)?a:a?Object(S.a)(a):void 0,style:T({borderBottom:"1px solid #ccc"},u),mode:f,editor:w,defaultConfig:p}),D.a.createElement(O,{className:Object(C.isString)(s)?s:s?Object(S.a)(s):void 0,style:l,mode:f,defaultConfig:h,value:d,onCreated:x,onChange:function(e){b({htmlValue:e.getHtml(),textValue:e.getText()})}}),D.a.createElement(B.Toaster,null))}(t.default=o).defaultProps=n.b,o.propTypes=n.c},590:function(e,xie,Eie){"use strict";!function(t){Eie.d(xie,"a",function(){return mie}),Eie.d(xie,"b",function(){return bie}),Eie.d(xie,"c",function(){return v6});var je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function O(e){var t={exports:{}};return e(t,t.exports),t.exports}function k(e){return e&&e.Math==Math&&e}function B(e){try{return!!e()}catch(e){return!0}}function F(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function T(e){return Se(De(e),8,-1)}function L(e){if(null==e)throw ke("Can't call method on "+e);return e}function $(e){return Oe(L(e))}function V(e){return ye(e)?e:void 0}function U(e,t){return arguments.length<2?V(Fe[e])||V(ce[e]):Fe[e]&&Fe[e][t]||ce[e]&&ce[e][t]}function W(e,t){return null==(e=e[t])?void 0:He(e)}function G(e){return We(L(e))}function q(e){return"Symbol("+(void 0===e?"":e)+")_"+Xe(++Ke+Ye,36)}function K(e){var t;return qe(Ze,e)&&(Pe||"string"==typeof Ze[e])||(t="Symbol."+e,Pe&&qe(Je,e)?Ze[e]=Je[e]:Ze[e]=(Ne&&Qe?Qe:et)(t)),Ze[e]}function Y(e){return e=function(e,t){if(!Be(e)||Le(e))return e;var n,r,o=W(e,nt);if(o){if(o=we(o,e,t=void 0===t?"default":t),!Be(o)||Le(o))return o;throw tt("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&ye(n=o.toString)&&!Be(r=we(n,o)))return r;if(ye(n=o.valueOf)&&!Be(r=we(n,o)))return r;if("string"!==e&&ye(n=o.toString)&&!Be(r=we(n,o)))return r;throw $e("Can't convert object to primitive value")}(e,"string"),Le(e)?e:e+""}function X(e){return ot?rt.createElement(e):{}}function Z(e,t){return(e=ct[lt(e)])==dt||e!=ft&&(ye(t)?B(t):!!t)}function J(r){function o(e,t,n){if(this instanceof o){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return pe(r,this,arguments)}return o.prototype=r.prototype,o}function Q(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat,c=e.proto,f=s?ce:l?ce[u]:(ce[u]||{}).prototype,d=s?Fe:Fe[u]||Et(Fe,u,{})[u],p=d.prototype;for(n in t)i=!pt(s?n:u+(l?".":"#")+n,e.forced)&&f&&qe(f,n),o=d[n],i&&(a=e.noTargetGet?(a=Dt(f,n))&&a.value:f[n]),r=i&&a?a:t[n],i&&typeof o==typeof r||(i=e.bind&&i?gt(r,ce):e.wrap&&i?J(r):c&&ye(r)?ve(r):r,(e.sham||r&&r.sham||o&&o.sham)&&Et(i,"sham",!0),Et(d,n,i),c&&(qe(Fe,o=u+"Prototype")||Et(Fe,o,{}),Et(Fe[o],n,r),e.real)&&p&&!p[n]&&Et(p,n,r))}function ee(e){return St[e]||(St[e]=q(e))}function te(e,t){return(e=jt(e))<0?Nt(e+t,0):It(e,t)}function ne(u){return function(e,t,n){var r,o=$(e),i=Rt(o),a=te(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function re(e,t){var n,r=$(e),o=0,i=[];for(n in r)!qe(Mt,n)&&qe(r,n)&&Ht(i,n);for(;t.length>o;)!qe(r,n=t[o++])||~zt(i,n)||Ht(i,n);return i}function oe(){}function ie(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t}function ae(e,t,n){(t=Y(t))in e?xt.f(e,t,F(0,n)):e[t]=n}function ue(e,t,n){function r(e){return i&&En(i,"normal",e),new Sn(!0,e)}function o(e){return d?(mt(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=gt(t,f);if(p)i=e;else{if(!(n=wn(e)))throw Dn(Me(e)+" is not iterable");if(void 0!==n&&(fn.Array===n||pn[dn]===n)){for(a=0,u=Rt(e);a<u;a++)if((s=o(e[a]))&&Te(Cn,s))return;return new Sn(!1)}i=function(e,t){t=arguments.length<2?wn(e):t;if(He(t))return mt(we(t,e));throw xn(Me(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=we(l,i)).done;){try{s=o(c.value)}catch(e){En(i,"throw",e)}if("object"==typeof s&&s&&Te(Cn,s))return}new Sn(!1)}function se(e,t){var n,r=2<arguments.length?arguments[2]:void 0,o=Te(_n,this);return Tt?n=Tt(new Fn(void 0),o?kt(this):_n):(n=o?this:en(_n),Et(n,Bn,"Error")),Et(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:On(e)}(t,"")),kn&&Et(n,"stack",function(e,t){if("string"==typeof e)if(ln)for(;t--;)e=on(e,sn,"");else if(cn)return un(rn(an(e,"\n"),t),"\n");return e}(n.stack,1)),o=n,Be(t=r)&&"cause"in t&&Et(o,"cause",t.cause),ue(e,Tn,{that:r=[]}),Et(n,"errors",r),n}var le,ce=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof je&&je)||function(){return this}()||Function("return this")(),e=Function.prototype,fe=e.apply,n=e.bind,de=e.call,pe="object"==typeof Reflect&&Reflect.apply||(n?de.bind(fe):function(){return de.apply(fe,arguments)}),e=Function.prototype,n=e.bind,he=e.call,ge=n&&n.bind(he),ve=n?function(e){return e&&ge(he,e)}:function(e){return e&&function(){return he.apply(e,arguments)}},ye=function(e){return"function"==typeof e},me=!B(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),be=Function.prototype.call,we=be.bind?be.bind(be):function(){return be.apply(be,arguments)},e={}.propertyIsEnumerable,xe=Object.getOwnPropertyDescriptor,Ee={f:xe&&!e.call({1:2},1)?function(e){e=xe(this,e);return!!e&&e.enumerable}:e},De=ve({}.toString),Se=ve("".slice),Ce=ce.Object,Ae=ve("".split),Oe=B(function(){return!Ce("z").propertyIsEnumerable(0)})?function(e){return"String"==T(e)?Ae(e,""):Ce(e)}:Ce,ke=ce.TypeError,Be=function(e){return"object"==typeof e?null!==e:ye(e)},Fe={},Te=ve({}.isPrototypeOf),n=U("navigator","userAgent")||"",e=ce.process,r=ce.Deno,e=e&&e.versions||r&&r.version,r=e&&e.v8,_e=i=!(i=r?0<(o=r.split("."))[0]&&o[0]<4?1:+(o[0]+o[1]):i)&&n&&(!(o=n.match(/Edge\/(\d+)/))||74<=o[1])&&(o=n.match(/Chrome\/(\d+)/))?+o[1]:i,Pe=!!Object.getOwnPropertySymbols&&!B(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_e&&_e<41}),Ne=Pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ie=ce.Object,Le=Ne?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return ye(t)&&Te(t.prototype,Ie(e))},Re=ce.String,Me=function(e){try{return Re(e)}catch(e){return"Object"}},ze=ce.TypeError,He=function(e){if(ye(e))return e;throw ze(Me(e)+" is not a function")},$e=ce.TypeError,Ve=Object.defineProperty,Ue=ce["__core-js_shared__"]||function(t,n){try{Ve(ce,t,{value:n,configurable:!0,writable:!0})}catch(e){ce[t]=n}return n}("__core-js_shared__",{}),e=O(function(e){(e.exports=function(e,t){return Ue[e]||(Ue[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),We=ce.Object,Ge=ve({}.hasOwnProperty),qe=Object.hasOwn||function(e,t){return Ge(G(e),t)},Ke=0,Ye=Math.random(),Xe=ve(1..toString),Ze=e("wks"),Je=ce.Symbol,Qe=Je&&Je.for,et=Ne?Je:Je&&Je.withoutSetter||q,tt=ce.TypeError,nt=K("toPrimitive"),rt=ce.document,ot=Be(rt)&&Be(rt.createElement),it=!me&&!B(function(){return 7!=Object.defineProperty(X("div"),"a",{get:function(){return 7}}).a}),at=Object.getOwnPropertyDescriptor,ut={f:me?at:function(e,t){if(e=$(e),t=Y(t),it)try{return at(e,t)}catch(e){}if(qe(e,t))return F(!we(Ee.f,e,t),e[t])}},st=/#|\.prototype\./,lt=Z.normalize=function(e){return String(e).replace(st,".").toLowerCase()},ct=Z.data={},ft=Z.NATIVE="N",dt=Z.POLYFILL="P",pt=Z,ht=ve(ve.bind),gt=function(e,t){return He(e),void 0===t?e:ht?ht(e,t):function(){return e.apply(t,arguments)}},vt=ce.String,yt=ce.TypeError,mt=function(e){if(Be(e))return e;throw yt(vt(e)+" is not an object")},bt=ce.TypeError,wt=Object.defineProperty,xt={f:me?wt:function(e,t,n){if(mt(e),t=Y(t),mt(n),it)try{return wt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw bt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Et=me?function(e,t,n){return xt.f(e,t,F(1,n))}:function(e,t,n){return e[t]=n,e},Dt=ut.f,St=e("keys"),r=!B(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ct=ee("IE_PROTO"),At=ce.Object,Ot=At.prototype,kt=r?At.getPrototypeOf:function(e){var t,e=G(e);return qe(e,Ct)?e[Ct]:(t=e.constructor,ye(t)&&e instanceof t?t.prototype:e instanceof At?Ot:null)},Bt=ce.String,Ft=ce.TypeError,Tt=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){mt(e);var n=t;if("object"==typeof n||ye(n))return o?r(e,t):e.__proto__=t,e;throw Ft("Can't set "+Bt(n)+" as a prototype")}}():void 0),_t=Math.ceil,Pt=Math.floor,jt=function(e){e=+e;return e!=e||0==e?0:(0<e?Pt:_t)(e)},Nt=Math.max,It=Math.min,Lt=Math.min,Rt=function(e){return 0<(e=e.length)?Lt(jt(e),9007199254740991):0},n={includes:ne(!0),indexOf:ne(!1)},Mt={},zt=n.indexOf,Ht=ve([].push),$t=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=$t.concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(e){return re(e,Vt)}},Wt={f:Object.getOwnPropertySymbols},Gt=ve([].concat),qt=U("Reflect","ownKeys")||function(e){var t=Ut.f(mt(e)),n=Wt.f;return n?Gt(t,n(e)):t},Kt=Object.keys||function(e){return re(e,$t)},Yt=me?Object.defineProperties:function(e,t){mt(e);for(var n,r=$(t),o=Kt(t),i=o.length,a=0;a<i;)xt.f(e,n=o[a++],r[n]);return e},Xt=U("document","documentElement"),Zt=ee("IE_PROTO"),Jt=function(e){return"<script>"+e+"<\/script>"},Qt=function(){try{le=new ActiveXObject("htmlfile")}catch(e){}var e,t;Qt="undefined"==typeof document||document.domain&&le?ie(le):((t=X("iframe")).style.display="none",Xt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F);for(var n=$t.length;n--;)delete Qt.prototype[$t[n]];return Qt()},en=(Mt[Zt]=!0,Object.create||function(e,t){var n;return null!==e?(oe.prototype=mt(e),n=new oe,oe.prototype=null,n[Zt]=e):n=Qt(),void 0===t?n:Yt(n,t)}),tn=ce.Array,nn=Math.max,rn=function(e,t,n){for(var r=Rt(e),o=te(t,r),i=te(void 0===n?r:n,r),a=tn(nn(i-o,0)),u=0;o<i;o++,u++)ae(a,u,e[o]);return a.length=u,a},on=ve("".replace),an=ve("".split),un=ve([].join),o=String(Error("zxcasd").stack),sn=/\n\s*at [^:]*:[^\n]*/,ln=sn.test(o),cn=/@[^\n]*\n/.test(o)&&!/zxcasd/.test(o),fn={},dn=K("iterator"),pn=Array.prototype,i={},hn=(i[K("toStringTag")]="z","[object z]"===String(i)),gn=K("toStringTag"),vn=ce.Object,yn="Arguments"==T(function(){return arguments}()),mn=hn?T:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=vn(e),gn))?t:yn?T(e):"Object"==(t=T(e))&&ye(e.callee)?"Arguments":t},bn=K("iterator"),wn=function(e){if(null!=e)return W(e,bn)||W(e,"@@iterator")||fn[mn(e)]},xn=ce.TypeError,En=function(e,t,n){var r,o;mt(e);try{if(!(r=W(e,"return"))){if("throw"===t)throw n;return n}r=we(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return mt(r),n},Dn=ce.TypeError,Sn=function(e,t){this.stopped=e,this.result=t},Cn=Sn.prototype,An=ce.String,On=function(e){if("Symbol"===mn(e))throw TypeError("Cannot convert a Symbol value to a string");return An(e)},kn=!B(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",F(1,7)),7!==e.stack)}),Bn=K("toStringTag"),Fn=ce.Error,Tn=[].push,_n=((Tt||function(e,t){for(var n=qt(t),r=xt.f,o=ut.f,i=0;i<n.length;i++){var a=n[i];qe(e,a)||r(e,a,o(t,a))}})(se,Fn),se.prototype=en(Fn.prototype,{constructor:F(1,se),message:F(1,""),name:F(1,"AggregateError")})),Pn=(Q({global:!0},{AggregateError:se}),ve(Function.toString));ye(Ue.inspectSource)||(Ue.inspectSource=function(e){return Pn(e)});var jn,Nn,In,Ln,Rn,Mn,zn,Hn,$n=Ue.inspectSource,r=ce.WeakMap,n=ye(r)&&/native code/.test($n(r)),Vn=ce.TypeError,o=ce.WeakMap;zn=n||Ue.state?(jn=Ue.state||(Ue.state=new o),Nn=ve(jn.get),In=ve(jn.has),Ln=ve(jn.set),Rn=function(e,t){if(In(jn,e))throw new Vn("Object already initialized");return t.facade=e,Ln(jn,e,t),t},Mn=function(e){return Nn(jn,e)||{}},function(e){return In(jn,e)}):(Hn=ee("state"),Mt[Hn]=!0,Rn=function(e,t){if(qe(e,Hn))throw new Vn("Object already initialized");return t.facade=e,Et(e,Hn,t),t},Mn=function(e){return qe(e,Hn)?e[Hn]:{}},function(e){return qe(e,Hn)});function Un(e,t,n,r){r&&r.enumerable?e[t]=n:Et(e,t,n)}var i={set:Rn,get:Mn,has:zn,enforce:function(e){return zn(e)?Mn(e):Rn(e,{})},getterFor:function(t){return function(e){if(Be(e)&&(e=Mn(e)).type===t)return e;throw Vn("Incompatible receiver, "+t+" required")}}},r=Function.prototype,n=me&&Object.getOwnPropertyDescriptor,o=qe(r,"name"),o={EXISTS:o,PROPER:o&&"something"===function(){}.name,CONFIGURABLE:o&&(!me||n(r,"name").configurable)},Wn=K("iterator"),n=!1;[].keys&&("next"in(r=[].keys())?(r=kt(kt(r)))!==Object.prototype&&(Jn=r):n=!0);function Gn(e,t,n,r){e&&(n=n?e:e.prototype,qe(n,tr)||er(n,tr,{configurable:!0,value:t}),r)&&!hn&&Et(n,"toString",Qn)}function qn(){return this}function Kn(){return this}function Yn(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!or&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=en(nr,{next:F(1,r)}),Gn(g,s,!1,!0),fn[s]=qn;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[ir]||d["@@iterator"]||o&&d[o],h=!or&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=kt(g.call(new e)))!==Object.prototype&&s.next&&(Gn(s,r,!0,!0),fn[r]=Kn),rr&&"values"==o&&p&&"values"!==p.name&&(f=!0,h=function(){return we(p,this)}),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!or&&!f&&c in d||Un(d,c,l[c]);else Q({target:t,proto:!0,forced:or||f},l);a&&d[ir]!==h&&Un(d,ir,h,{name:o}),fn[t]=h}function Xn(o){return function(e,t){var n,e=On(L(e)),t=jt(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=lr(e,t))<55296||56319<n||t+1===r||(r=lr(e,t+1))<56320||57343<r?o?sr(e,t):n:o?cr(e,t,t+2):r-56320+(n-55296<<10)+65536}}var Zn,Jn=null==Jn||B(function(){var e={};return Jn[Wn].call(e)!==e})?{}:en(Jn),r=(ye(Jn[Wn])||Un(Jn,Wn,function(){return this}),{IteratorPrototype:Jn,BUGGY_SAFARI_ITERATORS:n}),Qn=hn?{}.toString:function(){return"[object "+mn(this)+"]"},er=xt.f,tr=K("toStringTag"),nr=r.IteratorPrototype,rr=o.PROPER,or=r.BUGGY_SAFARI_ITERATORS,ir=K("iterator"),ar=i.set,ur=i.getterFor("Array Iterator"),sr=(Yn(Array,"Array",function(e,t){ar(this,{type:"Array Iterator",target:$(e),index:0,kind:t})},function(){var e=ur(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),fn.Arguments=fn.Array,ve("".charAt)),lr=ve("".charCodeAt),cr=ve("".slice),fr=(Xn(!1),Xn(!0)),dr=i.set,pr=i.getterFor("String Iterator"),n=(Yn(String,"String",function(e){dr(this,{type:"String Iterator",string:On(e),index:0})},function(){var e=pr(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=fr(t,n),e.index+=t.length,{value:t,done:!1})}),Fe.AggregateError),hr=K("toStringTag");for(Zn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var gr=ce[Zn],gr=gr&&gr.prototype;gr&&mn(gr)!==hr&&Et(gr,hr,Zn),fn[Zn]=fn.Array}function vr(e){return e&&e.Math==Math&&e}function yr(e){try{return!!e()}catch(e){return!0}}function mr(e){return Mr(Rr(e),8,-1)}function br(e){if(null==e)throw Vr("Can't call method on "+e);return e}function wr(e){return $r(br(e))}function xr(e,t){return arguments.length<2?(n=Br[e],Ur(n)?n:void 0):Br[e]&&Br[e][t];var n}function Er(e,t){return null==(e=e[t])?void 0:to(e)}function Dr(t,n){try{ro(Br,t,{value:n,configurable:!0,writable:!0})}catch(e){Br[t]=n}return n}function Sr(e){return io(br(e))}function Cr(e){return"Symbol("+(void 0===e?"":e)+")_"+co(++so+lo,36)}function Ar(e){var t;return uo(fo,e)&&(Kr||"string"==typeof fo[e])||(t="Symbol."+e,Kr&&uo(po,e)?fo[e]=po[e]:fo[e]=(Yr&&ho?ho:go)(t)),fo[e]}function Or(e){return wo?bo.createElement(e):{}}var kr=n,Br=vr("object"==typeof globalThis&&globalThis)||vr("object"==typeof window&&window)||vr("object"==typeof self&&self)||vr("object"==typeof je&&je)||function(){return this}()||Function("return this")(),o=!yr(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Fr=Function.prototype.call,Tr=Fr.bind?Fr.bind(Fr):function(){return Fr.apply(Fr,arguments)},r={}.propertyIsEnumerable,_r=Object.getOwnPropertyDescriptor,Pr={f:_r&&!r.call({1:2},1)?function(e){e=_r(this,e);return!!e&&e.enumerable}:r},jr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},n=Function.prototype,r=n.bind,Nr=n.call,Ir=r&&r.bind(Nr),Lr=r?function(e){return e&&Ir(Nr,e)}:function(e){return e&&function(){return Nr.apply(e,arguments)}},Rr=Lr({}.toString),Mr=Lr("".slice),zr=Br.Object,Hr=Lr("".split),$r=yr(function(){return!zr("z").propertyIsEnumerable(0)})?function(e){return"String"==mr(e)?Hr(e,""):zr(e)}:zr,Vr=Br.TypeError,Ur=function(e){return"function"==typeof e},Wr=function(e){return"object"==typeof e?null!==e:Ur(e)},Gr=Lr({}.isPrototypeOf),n=xr("navigator","userAgent")||"",r=Br.process,a=Br.Deno,r=r&&r.versions||a&&a.version,a=r&&r.v8,qr=u=!(u=a?0<(Xo=a.split("."))[0]&&Xo[0]<4?1:+(Xo[0]+Xo[1]):u)&&n&&(!(Xo=n.match(/Edge\/(\d+)/))||74<=Xo[1])&&(Xo=n.match(/Chrome\/(\d+)/))?+Xo[1]:u,Kr=!!Object.getOwnPropertySymbols&&!yr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qr&&qr<41}),Yr=Kr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xr=Br.Object,Zr=Yr?function(e){return"symbol"==typeof e}:function(e){var t=xr("Symbol");return Ur(t)&&Gr(t.prototype,Xr(e))},Jr=Br.String,Qr=function(e){try{return Jr(e)}catch(e){return"Object"}},eo=Br.TypeError,to=function(e){if(Ur(e))return e;throw eo(Qr(e)+" is not a function")},no=Br.TypeError,ro=Object.defineProperty,oo=Br["__core-js_shared__"]||Dr("__core-js_shared__",{}),r=O(function(e){(e.exports=function(e,t){return oo[e]||(oo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),io=Br.Object,ao=Lr({}.hasOwnProperty),uo=Object.hasOwn||function(e,t){return ao(Sr(e),t)},so=0,lo=Math.random(),co=Lr(1..toString),fo=r("wks"),po=Br.Symbol,ho=po&&po.for,go=Yr?po:po&&po.withoutSetter||Cr,vo=Br.TypeError,yo=Ar("toPrimitive"),mo=function(e){e=function(e,t){if(!Wr(e)||Zr(e))return e;var n,r,o=Er(e,yo);if(o){if(o=Tr(o,e,t=void 0===t?"default":t),!Wr(o)||Zr(o))return o;throw vo("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&Ur(n=o.toString)&&!Wr(r=Tr(n,o)))return r;if(Ur(n=o.valueOf)&&!Wr(r=Tr(n,o)))return r;if("string"!==e&&Ur(n=o.toString)&&!Wr(r=Tr(n,o)))return r;throw no("Can't convert object to primitive value")}(e,"string");return Zr(e)?e:e+""},bo=Br.document,wo=Wr(bo)&&Wr(bo.createElement),xo=!o&&!yr(function(){return 7!=Object.defineProperty(Or("div"),"a",{get:function(){return 7}}).a}),Eo=Object.getOwnPropertyDescriptor,Do={f:o?Eo:function(e,t){if(e=wr(e),t=mo(t),xo)try{return Eo(e,t)}catch(e){}if(uo(e,t))return jr(!Tr(Pr.f,e,t),e[t])}},So=Br.String,Co=Br.TypeError,Ao=function(e){if(Wr(e))return e;throw Co(So(e)+" is not an object")},Oo=Br.TypeError,ko=Object.defineProperty,Bo={f:o?ko:function(e,t,n){if(Ao(e),t=mo(t),Ao(n),xo)try{return ko(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Oo("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Fo=o?function(e,t,n){return Bo.f(e,t,jr(1,n))}:function(e,t,n){return e[t]=n,e},To=Lr(Function.toString);Ur(oo.inspectSource)||(oo.inspectSource=function(e){return To(e)});function _o(e){return qo[e]||(qo[e]=Cr(e))}function Po(u){return function(e,t,n){var r,o=wr(e),i=si(o),a=ii(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function jo(e,t){var n,r=wr(e),o=0,i=[];for(n in r)!uo(Ko,n)&&uo(r,n)&&ci(i,n);for(;t.length>o;)!uo(r,n=t[o++])||~li(i,n)||ci(i,n);return i}function No(e,t){for(var n=vi(t),r=Bo.f,o=Do.f,i=0;i<n.length;i++){var a=n[i];uo(e,a)||r(e,a,o(t,a))}}function Io(e,t){return(e=bi[mi(e)])==xi||e!=wi&&(Ur(t)?yr(t):!!t)}function Lo(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?Br:s?Br[a]||Dr(a,{}):(Br[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=Di(n,r))&&i.value:n[r],!Ei(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;No(o,i)}(e.sham||i&&i.sham)&&Fo(o,"sham",!0),Qo(n,r,o,e)}}var Ro,Mo,zo,Ho,$o,Vo,Uo,Wo,Go=oo.inspectSource,a=Br.WeakMap,n=Ur(a)&&/native code/.test(Go(a)),qo=r("keys"),Ko={},Yo=Br.TypeError,Xo=Br.WeakMap,Zo=(Uo=n||oo.state?(Ro=oo.state||(oo.state=new Xo),Mo=Lr(Ro.get),zo=Lr(Ro.has),Ho=Lr(Ro.set),$o=function(e,t){if(zo(Ro,e))throw new Yo("Object already initialized");return t.facade=e,Ho(Ro,e,t),t},Vo=function(e){return Mo(Ro,e)||{}},function(e){return zo(Ro,e)}):(Wo=_o("state"),Ko[Wo]=!0,$o=function(e,t){if(uo(e,Wo))throw new Yo("Object already initialized");return t.facade=e,Fo(e,Wo,t),t},Vo=function(e){return uo(e,Wo)?e[Wo]:{}},function(e){return uo(e,Wo)}),{set:$o,get:Vo,has:Uo,enforce:function(e){return Uo(e)?Vo(e):$o(e,{})},getterFor:function(t){return function(e){if(Wr(e)&&(e=Vo(e)).type===t)return e;throw Yo("Incompatible receiver, "+t+" required")}}}),u=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,n=uo(u,"name"),Jo={EXISTS:n,PROPER:n&&"something"===function(){}.name,CONFIGURABLE:n&&(!o||a(u,"name").configurable)},Qo=O(function(e){var s=Jo.CONFIGURABLE,t=Zo.get,l=Zo.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;Ur(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!uo(n,"name")||s&&n.name!==r)&&Fo(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==Br?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Fo(e,t,n)):a?e[t]=n:Dr(t,n)})(Function.prototype,"toString",function(){return Ur(this)&&t(this).source||Go(this)})}),ei=Math.ceil,ti=Math.floor,ni=function(e){e=+e;return e!=e||0==e?0:(0<e?ti:ei)(e)},ri=Math.max,oi=Math.min,ii=function(e,t){e=ni(e);return e<0?ri(e+t,0):oi(e,t)},ai=Math.min,ui=function(e){return 0<e?ai(ni(e),9007199254740991):0},si=function(e){return ui(e.length)},li=(Po(!0),Po(!1)),ci=Lr([].push),fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=fi.concat("length","prototype"),pi={f:Object.getOwnPropertyNames||function(e){return jo(e,di)}},hi={f:Object.getOwnPropertySymbols},gi=Lr([].concat),vi=xr("Reflect","ownKeys")||function(e){var t=pi.f(Ao(e)),n=hi.f;return n?gi(t,n(e)):t},yi=/#|\.prototype\./,mi=Io.normalize=function(e){return String(e).replace(yi,".").toLowerCase()},bi=Io.data={},wi=Io.NATIVE="N",xi=Io.POLYFILL="P",Ei=Io,Di=Do.f,Xo={};Xo[Ar("toStringTag")]="z";function Si(){var e=Ao(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function Ci(){}function Ai(e){e.write(Mi("")),e.close();var t=e.parentWindow.Object;return e=null,t}var Oi,n="[object z]"===String(Xo),ki=Ar("toStringTag"),Bi=Br.Object,Fi="Arguments"==mr(function(){return arguments}()),Ti=n?mr:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Bi(e),ki))?t:Fi?mr(e):"Object"==(t=mr(e))&&Ur(e.callee)?"Arguments":t},_i=Br.String,Pi=function(e){if("Symbol"===Ti(e))throw TypeError("Cannot convert a Symbol value to a string");return _i(e)},ji=Br.RegExp,a=yr(function(){var e=ji("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),u=a||yr(function(){return!ji("a","y").sticky}),Xo={BROKEN_CARET:a||yr(function(){var e=ji("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:u,UNSUPPORTED_Y:a},Ni=Object.keys||function(e){return jo(e,fi)},Ii=o?Object.defineProperties:function(e,t){Ao(e);for(var n,r=wr(t),o=Ni(t),i=o.length,a=0;a<i;)Bo.f(e,n=o[a++],r[n]);return e},Li=xr("document","documentElement"),Ri=_o("IE_PROTO"),Mi=function(e){return"<script>"+e+"<\/script>"},zi=function(){try{Oi=new ActiveXObject("htmlfile")}catch(e){}var e,t;zi="undefined"==typeof document||document.domain&&Oi?Ai(Oi):((t=Or("iframe")).style.display="none",Li.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Mi("document.F=Object")),e.close(),e.F);for(var n=fi.length;n--;)delete zi.prototype[fi[n]];return zi()};Ko[Ri]=!0;function Hi(o){return function(e,t){var n,e=Pi(br(e)),t=ni(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=ha(e,t))<55296||56319<n||t+1===r||(r=ha(e,t+1))<56320||57343<r?o?pa(e,t):n:o?ga(e,t,t+2):r-56320+(n-55296<<10)+65536}}function $i(e,t){var n=e.exec;if(Ur(n))return null!==(n=Tr(n,e,t))&&Ao(n),n;if("RegExp"===mr(e))return Tr(fa,e,t);throw ya("RegExp#exec called on incompatible receiver")}function Vi(e,t,n){function r(e){return i&&Ha(i,"normal",e),new Va(!0,e)}function o(e){return d?(Ao(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=ja(t,f);if(p)i=e;else{if(!(n=Ma(e)))throw $a(Qr(e)+" is not iterable");if(void 0!==n&&(Na.Array===n||La[Ia]===n)){for(a=0,u=si(e);a<u;a++)if((s=o(e[a]))&&Gr(Ua,s))return;return new Va(!1)}i=function(e,t){t=arguments.length<2?Ma(e):t;if(to(t))return Ao(Tr(t,e));throw za(Qr(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=Tr(l,i)).done;){try{s=o(c.value)}catch(e){Ha(i,"throw",e)}if("object"==typeof s&&s&&Gr(Ua,s))return}new Va(!1)}function Ui(e,t){var n,r=2<arguments.length?arguments[2]:void 0,o=Gr(Ya,this);return Sa?n=Sa(new qa(void 0),o?xa(this):Ya):(n=o?this:Zi(Ya),Fo(n,Ga,"Error")),Fo(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Pi(e)}(t,"")),Wa&&Fo(n,"stack",function(e,t){if("string"==typeof e)if(Ta)for(;t--;)e=Oa(e,Fa,"");else if(_a)return Ba(function(e,t){for(var n,r,o,i=si(e),a=ii(t,i),u=ii(i,i),s=Ca(Aa(u-a,0)),l=0;a<u;a++,l++)n=s,o=l,r=e[a],(o=mo(o))in n?Bo.f(n,o,jr(0,r)):n[o]=r;return s.length=l,s}(ka(e,"\n"),t),"\n");return e}(n.stack,1)),o=n,Wr(t=r)&&"cause"in t&&Fo(o,"cause",t.cause),Vi(e,Ka,{that:r=[]}),Fo(n,"errors",r),n}var Wi,Gi,qi,Ki,Yi,Xi,Zi=Object.create||function(e,t){var n;return null!==e?(Ci.prototype=Ao(e),n=new Ci,Ci.prototype=null,n[Ri]=e):n=zi(),void 0===t?n:Ii(n,t)},Ji=Br.RegExp,u=yr(function(){var e=Ji(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),Qi=Br.RegExp,a=yr(function(){var e=Qi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),ea=Zo.get,ta=r("native-string-replace",String.prototype.replace),na=RegExp.prototype.exec,ra=na,oa=Lr("".charAt),ia=Lr("".indexOf),aa=Lr("".replace),ua=Lr("".slice),sa=(r=/b*/g,Tr(na,s=/a/,"a"),Tr(na,r,"a"),0!==s.lastIndex||0!==r.lastIndex),la=Xo.BROKEN_CARET,ca=void 0!==/()??/.exec("")[1],fa=ra=sa||ca||la||u||a?function(e){var t,n,r,o,i,a,u=this,s=ea(u),e=Pi(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=Tr(ra,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=la&&u.sticky,f=Tr(Si,u),s=u.source,d=0,p=e;if(l&&(f=aa(f,"y",""),-1===ia(f,"g")&&(f+="g"),p=ua(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==oa(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),ca&&(t=new RegExp("^"+s+"$(?!\\s)",f)),sa&&(n=u.lastIndex),r=Tr(na,l?t:u,p),l?r?(r.input=ua(r.input,d),r[0]=ua(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:sa&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),ca&&r&&1<r.length&&Tr(ta,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=Zi(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:ra,da=(Lo({target:"RegExp",proto:!0,forced:/./.exec!==fa},{exec:fa}),Ar("species"),RegExp.prototype),pa=Lr("".charAt),ha=Lr("".charCodeAt),ga=Lr("".slice),s={codeAt:Hi(!1),charAt:Hi(!0)},va=s.charAt,ya=Br.TypeError,Xo=(Yi=Ar(Wi="match"),Xi=!yr(function(){var e={};return e[Yi]=function(){return 7},7!=""[Wi](e)}),r=Xi&&!yr(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[Yi](""),!e}),Xi&&r||(Gi=Lr(/./[Yi]),qi=Yi,Ki=""[Wi],r=[function(e){var t=br(this),n=null==e?void 0:Er(e,qi);return n?Tr(n,e,t):new RegExp(e)[qi](Pi(t))},function(e){var t,n,r,o,i=Ao(this),a=Pi(e),u=(e=i,t=a,o=Lr(Ki),(u=e.exec)===fa||u===da.exec?Xi&&!r?{done:!0,value:Gi(e,t,n)}:{done:!0,value:o(t,e,n)}:{done:!1});if(u.done)return u.value;if(!i.global)return $i(i,a);for(var s,l=i.unicode,c=[],f=i.lastIndex=0;null!==(d=$i(i,a));){var d=Pi(d[0]);""===(c[f]=d)&&(i.lastIndex=(d=a,(s=ui(i.lastIndex))+(l?va(d,s).length:1))),f++}return 0===f?null:c}],Qo(String.prototype,Wi,r[0]),Qo(da,Yi,r[1])),Lo({global:!0},{globalThis:Br}),!yr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ma=_o("IE_PROTO"),ba=Br.Object,wa=ba.prototype,xa=Xo?ba.getPrototypeOf:function(e){var t,e=Sr(e);return uo(e,ma)?e[ma]:(t=e.constructor,Ur(t)&&e instanceof t?t.prototype:e instanceof ba?wa:null)},Ea=Br.String,Da=Br.TypeError,Sa=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=Lr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){Ao(e);var n=t;if("object"==typeof n||Ur(n))return o?r(e,t):e.__proto__=t,e;throw Da("Can't set "+Ea(n)+" as a prototype")}}():void 0),Ca=Br.Array,Aa=Math.max,Oa=Lr("".replace),ka=Lr("".split),Ba=Lr([].join),u=String(Error("zxcasd").stack),Fa=/\n\s*at [^:]*:[^\n]*/,Ta=Fa.test(u),_a=/@[^\n]*\n/.test(u)&&!/zxcasd/.test(u),Pa=Lr(Lr.bind),ja=function(e,t){return to(e),void 0===t?e:Pa?Pa(e,t):function(){return e.apply(t,arguments)}},Na={},Ia=Ar("iterator"),La=Array.prototype,Ra=Ar("iterator"),Ma=function(e){if(null!=e)return Er(e,Ra)||Er(e,"@@iterator")||Na[Ti(e)]},za=Br.TypeError,Ha=function(e,t,n){var r,o;Ao(e);try{if(!(r=Er(e,"return"))){if("throw"===t)throw n;return n}r=Tr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ao(r),n},$a=Br.TypeError,Va=function(e,t){this.stopped=e,this.result=t},Ua=Va.prototype,Wa=!yr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",jr(1,7)),7!==e.stack)}),Ga=Ar("toStringTag"),qa=Br.Error,Ka=[].push,Ya=((Sa||No)(Ui,qa),Ui.prototype=Zi(qa.prototype,{constructor:jr(1,Ui),message:jr(1,""),name:jr(1,"AggregateError")})),Xa=(Lo({global:!0},{AggregateError:Ui}),Ar("unscopables")),Za=Array.prototype;null==Za[Xa]&&Bo.f(Za,Xa,{configurable:!0,value:Zi(null)});function Ja(e){Za[Xa][e]=!0}function Qa(e,t,n){e&&!uo(e=n?e:e.prototype,au)&&iu(e,au,{configurable:!0,value:t})}function eu(){return this}function tu(){return this}function nu(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!fu&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=Zi(uu,{next:jr(1,r)}),Qa(g,s,!1),Na[s]=eu;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[du]||d["@@iterator"]||o&&d[o],h=!fu&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=xa(g.call(new e)))!==Object.prototype&&s.next&&(xa(s)!==cu&&(Sa?Sa(s,cu):Ur(s[du])||Qo(s,du,tu)),Qa(s,r,!0)),su&&"values"==o&&p&&"values"!==p.name&&(lu?Fo(d,"name","values"):(f=!0,h=function(){return Tr(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!fu&&!f&&c in d||Qo(d,c,l[c]);else Lo({target:t,proto:!0,forced:fu||f},l);return d[du]!==h&&Qo(d,du,h,{name:o}),Na[t]=h,l}var ru,ou=Ar("iterator"),a=!1,u=([].keys&&("next"in(r=[].keys())?(Xo=xa(xa(r)))!==Object.prototype&&(ru=Xo):a=!0),null!=ru&&!yr(function(){var e={};return ru[ou].call(e)!==e})||(ru={}),Ur(ru[ou])||Qo(ru,ou,function(){return this}),{IteratorPrototype:ru,BUGGY_SAFARI_ITERATORS:a}),iu=Bo.f,au=Ar("toStringTag"),uu=u.IteratorPrototype,su=Jo.PROPER,lu=Jo.CONFIGURABLE,cu=u.IteratorPrototype,fu=u.BUGGY_SAFARI_ITERATORS,du=Ar("iterator"),pu=Zo.set,hu=Zo.getterFor("Array Iterator"),gu=nu(Array,"Array",function(e,t){pu(this,{type:"Array Iterator",target:wr(e),index:0,kind:t})},function(){var e=hu(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),vu=(Na.Arguments=Na.Array,Ja("keys"),Ja("values"),Ja("entries"),s.charAt),yu=Zo.set,mu=Zo.getterFor("String Iterator");nu(String,"String",function(e){yu(this,{type:"String Iterator",string:Pi(e),index:0})},function(){var e=mu(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=vu(t,n),e.index+=t.length,{value:t,done:!1})});function bu(e,t){if(e){if(e[Eu]!==Su)try{Fo(e,Eu,Su)}catch(t){e[Eu]=Su}if(e[Du]||Fo(e,Du,t),xu[t])for(var n in gu)if(e[n]!==gu[n])try{Fo(e,n,gu[n])}catch(t){e[n]=gu[n]}}}var wu,xu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},r=Or("span").classList,Xo=r&&r.constructor&&r.constructor.prototype,a=Xo===Object.prototype?void 0:Xo,Eu=Ar("iterator"),Du=Ar("toStringTag"),Su=gu.values;for(wu in xu)bu(Br[wu]&&Br[wu].prototype,wu);function Cu(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Au(){void 0===kr&&(window.AggregateError=function(e,t){t=new Error(t);return t.errors=e,t})}bu(a,"DOMTokenList"),void 0===t?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),Cu(),Au()):t&&null!=(u=t.navigator)&&u.userAgent.match("QQBrowser")&&(Cu(),Au());function Ou(){}function ku(e){if(!ye(e))return!1;try{return $u(Ou,Hu,e),!0}catch(e){return!1}}function Bu(e,t){return new(void 0===(n=zu(e=e)&&(n=e.constructor,Gu(n)&&(n===Ku||zu(n.prototype))||Be(n)&&null===(n=n[qu]))?void 0:n)?Ku:n)(0===t?0:t);var n}function Fu(e){var t=Fe.Symbol||(Fe.Symbol={});qe(t,e)||ns(t,e,{value:ts.f(e)})}function Tu(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=G(e),u=Oe(a),s=gt(t,n),l=Rt(u),c=0,t=r||Bu,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:rs(f,o)}else switch(d){case 4:return!1;case 7:rs(f,o)}return y?-1:g||v?v:f}}function _u(e,t){var n=ms[e]=en(cs);return as(n,{type:"Symbol",tag:e,description:t}),me||(n.description=t),n}function Pu(e,t,n){return e===ss&&Pu(bs,t,n),mt(e),t=Y(t),mt(n),(qe(ms,t)?(n.enumerable?(qe(e,is)&&e[is][t]&&(e[is][t]=!1),n=en(n,{enumerable:F(0,!1)})):(qe(e,is)||hs(e,is,F(1,{})),e[is][t]=!0),Ds):hs)(e,t,n)}function ju(t,e){mt(t);var n=$(e),e=Kt(n).concat(Ru(n));return os(e,function(e){me&&!we(Nu,n,e)||Pu(t,e,n[e])}),t}function Nu(e){var e=Y(e),t=we(vs,this,e);return!(this===ss&&qe(ms,e)&&!qe(bs,e))&&(!(t||!qe(this,e)||!qe(ms,e)||qe(this,is)&&this[is][e])||t)}function Iu(e,t){var n,e=$(e),t=Y(t);if(e!==ss||!qe(ms,t)||qe(bs,t))return!(n=ps(e,t))||!qe(ms,t)||qe(e,is)&&e[is][t]||(n.enumerable=!0),n}function Lu(e){var e=gs($(e)),t=[];return os(e,function(e){qe(ms,e)||qe(Mt,e)||ys(t,e)}),t}function Ru(e){var t=e===ss,e=gs(t?bs:$(e)),n=[];return os(e,function(e){!qe(ms,e)||t&&!qe(ss,e)||ys(n,ms[e])}),n}var Mu,zu=Array.isArray||function(e){return"Array"==T(e)},Hu=[],$u=U("Reflect","construct"),Vu=/^\s*(?:class|function)\b/,Uu=ve(Vu.exec),Wu=!Vu.exec(Ou),Gu=!$u||B(function(){var e;return ku(ku.call)||!ku(Object)||!ku(function(){e=!0})||e})?function(e){if(!ye(e))return!1;switch(mn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wu||!!Uu(Vu,$n(e))}:ku,qu=K("species"),Ku=ce.Array,Yu=K("species"),Xu=K("isConcatSpreadable"),Zu=ce.TypeError,s=51<=_e||!B(function(){var e=[];return e[Xu]=!1,e.concat()[0]!==e}),r=51<=_e||!B(function(){var e=[];return(e.constructor={})[Yu]=function(){return{foo:1}},1!==e.concat(Boolean).foo}),Ju=(Q({target:"Array",proto:!0,forced:!s||!r},{concat:function(e){for(var t,n,r,o,i,a=G(this),u=Bu(a,0),s=0,l=-1,c=arguments.length;l<c;l++)if(o=r=-1===l?a:arguments[l],i=void 0,!Be(o)||(void 0!==(i=o[Xu])?!i:!zu(o))){if(9007199254740991<=s)throw Zu("Maximum allowed index exceeded");ae(u,s++,r)}else{if(9007199254740991<s+(n=Rt(r)))throw Zu("Maximum allowed index exceeded");for(t=0;t<n;t++,s++)t in r&&ae(u,s,r[t])}return u.length=s,u}}),Ut.f),Qu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xo={f:function(e){if(!Qu||"Window"!=T(e))return Ju($(e));var t=e;try{return Ju(t)}catch(t){return rn(Qu)}}},es=ve([].slice),ts={f:K},ns=xt.f,rs=ve([].push),os=[Tu(0),Tu(1),Tu(2),Tu(3),Tu(4),Tu(5),Tu(6),Tu(7)][0],is=ee("hidden"),u=K("toPrimitive"),as=i.set,us=i.getterFor("Symbol"),ss=Object.prototype,ls=ce.Symbol,cs=ls&&ls.prototype,fs=ce.TypeError,s=ce.QObject,ds=U("JSON","stringify"),ps=ut.f,hs=xt.f,gs=Xo.f,vs=Ee.f,ys=ve([].push),ms=e("symbols"),bs=e("op-symbols"),ws=e("string-to-symbol-registry"),xs=e("symbol-to-string-registry"),r=e("wks"),Es=!s||!s.prototype||!s.prototype.findChild,Ds=me&&B(function(){return 7!=en(hs({},"a",{get:function(){return hs(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=ps(ss,t);r&&delete ss[t],hs(e,t,n),r&&e!==ss&&hs(ss,t,r)}:hs,e=(Pe||(cs=(ls=function(){if(Te(cs,this))throw fs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?On(arguments[0]):void 0,t=q(e),n=function(e){this===ss&&we(n,bs,e),qe(this,is)&&qe(this[is],t)&&(this[is][t]=!1),Ds(this,t,F(1,e))};return me&&Es&&Ds(ss,t,{configurable:!0,set:n}),_u(t,e)}).prototype,Un(cs,"toString",function(){return us(this).tag}),Un(ls,"withoutSetter",function(e){return _u(q(e),e)}),Ee.f=Nu,xt.f=Pu,ut.f=Iu,Ut.f=Xo.f=Lu,Wt.f=Ru,ts.f=function(e){return _u(K(e),e)},me&&hs(cs,"description",{configurable:!0,get:function(){return us(this).description}})),Q({global:!0,wrap:!0,forced:!Pe,sham:!Pe},{Symbol:ls}),os(Kt(r),function(e){Fu(e)}),Q({target:"Symbol",stat:!0,forced:!Pe},{for:function(e){var t,e=On(e);return qe(ws,e)?ws[e]:(t=ls(e),ws[e]=t,xs[t]=e,t)},keyFor:function(e){if(!Le(e))throw fs(e+" is not a symbol");if(qe(xs,e))return xs[e]},useSetter:function(){Es=!0},useSimple:function(){Es=!1}}),Q({target:"Object",stat:!0,forced:!Pe,sham:!me},{create:function(e,t){return void 0===t?en(e):ju(en(e),t)},defineProperty:Pu,defineProperties:ju,getOwnPropertyDescriptor:Iu}),Q({target:"Object",stat:!0,forced:!Pe},{getOwnPropertyNames:Lu,getOwnPropertySymbols:Ru}),Q({target:"Object",stat:!0,forced:B(function(){Wt.f(1)})},{getOwnPropertySymbols:function(e){return Wt.f(G(e))}}),ds&&(i=!Pe||B(function(){var e=ls();return"[null]"!=ds([e])||"{}"!=ds({a:e})||"{}"!=ds(Object(e))}),Q({target:"JSON",stat:!0,forced:i},{stringify:function(e,t,n){var r=es(arguments),o=t;if((Be(t)||void 0!==e)&&!Le(e))return zu(t)||(t=function(e,t){if(ye(o)&&(t=we(o,this,e,t)),!Le(t))return t}),r[1]=t,pe(ds,null,r)}})),cs[u]||(Mu=cs.valueOf,Un(cs,u,function(e){return we(Mu,this)})),Gn(ls,"Symbol"),Mt[is]=!0,Fu("asyncIterator"),Fu("hasInstance"),Fu("isConcatSpreadable"),Fu("iterator"),Fu("match"),Fu("matchAll"),Fu("replace"),Fu("search"),Fu("species"),Fu("split"),Fu("toPrimitive"),Fu("toStringTag"),Fu("unscopables"),Gn(ce.JSON,"JSON",!0),Fe.Symbol),Ss=(Fu("asyncDispose"),Fu("dispose"),Fu("matcher"),Fu("metadata"),Fu("observable"),Fu("patternMatch"),Fu("replaceAll"),e),Cs=ts.f("iterator"),Xo=(s=O(function(t){function n(e){return t.exports=n="function"==typeof Ss&&"symbol"==typeof Cs?function(e){return typeof e}:function(e){return e&&"function"==typeof Ss&&e.constructor===Ss&&e!==Ss.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0}))&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s,As=Do.f,r=yr(function(){As(1)});function Os(e){return"[object Object]"===Object.prototype.toString.call(e)}function ks(e){return!1!==Os(e)&&(void 0===(e=e.constructor)||!1!==Os(e=e.prototype)&&!1!==e.hasOwnProperty("isPrototypeOf"))}function Bs(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fs(e){return e&&e[fl]}function Ts(t){return t&&(function(){var e;if(t&&"object"==typeof t)return null===(e=Object.getPrototypeOf(t))||(e=Object.hasOwnProperty.call(e,"constructor")&&e.constructor)===Object||"function"==typeof e&&Function.toString.call(e)===dl}()||Array.isArray(t)||t[cl]||t.constructor[cl]||Is(t)||Ls(t))}function _s(n,r,t){void 0===t&&(t=!1),0===Ps(n)?(t?Object.keys:pl)(n).forEach(function(e){t&&"symbol"==typeof e||r(e,n[e],n)}):n.forEach(function(e,t){return r(t,e,n)})}function Ps(e){var t=e[fl];return t?3<t.i?t.i-4:t.i:Array.isArray(e)?1:Is(e)?2:Ls(e)?3:0}function js(e,t){return 2===Ps(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ns(e,t,n){var r=Ps(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Is(e){return al&&e instanceof Map}function Ls(e){return ul&&e instanceof Set}function Rs(e){return e.o||e.t}function Ms(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hl(e);delete t[fl];for(var n=pl(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function zs(e,t){return void 0===t&&(t=!1),$s(e)||Fs(e)||!Ts(e)||(1<Ps(e)&&(e.set=e.add=e.clear=e.delete=Hs),Object.freeze(e),t&&_s(e,function(e,t){return zs(t,!0)},!0)),e}function Hs(){Bs(2)}function $s(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Vs(e){var t=gl[e];return t||Bs(18,e),t}function Us(e,t){t&&(Vs("Patches"),e.u=[],e.s=[],e.v=t)}function Ws(e){Gs(e),e.p.forEach(Ks),e.p=null}function Gs(e){e===il&&(il=e.l)}function qs(e){return il={p:[],l:il,h:e,m:!0,_:0}}function Ks(e){e=e[fl];0===e.i||1===e.i?e.j():e.O=!0}function Ys(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Vs("ES5").S(t,e,r),r?(n[fl].P&&(Ws(t),Bs(4)),Ts(e)&&(e=Xs(t,e),t.l||Js(t,e)),t.u&&Vs("Patches").M(n[fl],e,t.u,t.s)):e=Xs(t,n,[]),Ws(t),t.u&&t.v(t.u,t.s),e!==ll?e:void 0}function Xs(n,r,o){var i,a;return $s(r)?r:(i=r[fl])?i.A!==n?r:i.P?(i.I||(i.I=!0,i.A._--,a=4===i.i||5===i.i?i.o=Ms(i.k):i.o,_s(3===i.i?new Set(a):a,function(e,t){return Zs(n,i,a,e,t,o)}),Js(n,a,!1),o&&n.u&&Vs("Patches").R(i,o,n.u,n.s)),i.o):(Js(n,i.t,!0),i.t):(_s(r,function(e,t){return Zs(n,i,r,e,t,o)},!0),r)}function Zs(e,t,n,r,o,i){if(Fs(o)){i=Xs(e,o,i&&t&&3!==t.i&&!js(t.D,r)?i.concat(r):void 0);if(Ns(n,r,i),!Fs(i))return;e.m=!1}!Ts(o)||$s(o)||!e.h.F&&e._<1||(Xs(e,o),t&&t.A.l)||Js(e,o)}function Js(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&zs(t,n)}function Qs(e,t){var n=e[fl];return(n?Rs(n):e)[t]}function el(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function tl(e){e.P||(e.P=!0,e.l&&tl(e.l))}function nl(e){e.o||(e.o=Ms(e.t))}function rl(e,t,n){var r,o,i=Is(t)?Vs("MapSet").N(t,n):Ls(t)?Vs("MapSet").T(t,n):e.g?(e=t,r=n,i=Array.isArray(e),r={i:i?1:0,A:r?r.A:il,P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},e=r,o=vl,i&&(e=[r],o=yl),i=Proxy.revocable(e,o),e=i.revoke,o=i.proxy,r.k=o,r.j=e,o):Vs("ES5").J(t,n);return(n?n.A:il).p.push(i),i}function ol(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ms(e)}Lo({target:"Object",stat:!0,forced:!o||r,sham:!o},{getOwnPropertyDescriptor:function(e,t){return As(wr(e),t)}}),"object"===(void 0===t?"undefined":Xo(t))&&(i=Object.getOwnPropertyDescriptor(t,"window"),t.window&&!i.set||((t.window=t).requestAnimationFrame=function(){},t.navigator={userAgent:""},t.location={hostname:"0.0.0.0",port:0,protocol:"http:"},t.btoa=function(){},t.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=t.document)&&null==t.document.getElementsByTagName&&(t.document.getElementsByTagName=function(){return[]});var il,u="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),al="undefined"!=typeof Map,ul="undefined"!=typeof Set,sl="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ll=u?Symbol.for("immer-nothing"):((e={})["immer-nothing"]=!0,e),cl=u?Symbol.for("immer-draftable"):"__$immer_draftable",fl=u?Symbol.for("immer-state"):"__$immer_state",dl=""+Object.prototype.constructor,pl="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,hl=Object.getOwnPropertyDescriptors||function(t){var n={};return pl(t).forEach(function(e){n[e]=Object.getOwnPropertyDescriptor(t,e)}),n},gl={},vl={get:function(e,t){var n,r;return t===fl?e:js(n=Rs(e),t)?(r=n[t],!e.I&&Ts(r)&&r===Qs(e.t,t)?(nl(e),e.o[t]=rl(e.A.h,r,e)):r):(r=e,(e=el(n,t))?"value"in e?e.value:null==(e=e.get)?void 0:e.call(r.k):void 0)},has:function(e,t){return t in Rs(e)},ownKeys:function(e){return Reflect.ownKeys(Rs(e))},set:function(e,t,n){var r=el(Rs(e),t);if(null!=r&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var r=Qs(Rs(e),t),o=null==r?void 0:r[fl];if(o&&o.t===n)return e.o[t]=n,!(e.D[t]=!1);if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||js(e.t,t)))return!0;nl(e),tl(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0)},deleteProperty:function(e,t){return void 0!==Qs(e.t,t)||t in e.t?(e.D[t]=!1,nl(e),tl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Rs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Bs(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Bs(12)}},yl={},r=(_s(vl,function(e,t){yl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),yl.deleteProperty=function(e,t){return vl.deleteProperty.call(this,e[0],t)},yl.set=function(e,t,n){return vl.set.call(this,e[0],t,n,e[0])},(s=bl.prototype).createDraft=function(e){Ts(e)||Bs(8),Fs(e)&&(Fs(t=e)||Bs(22,t),e=function o(e){if(!Ts(e))return e;var i,a=e[fl],t=Ps(e);if(a){if(!a.P&&(a.i<4||!Vs("ES5").K(a)))return a.t;a.I=!0,i=ol(e,t),a.I=!1}else i=ol(e,t);return _s(i,function(e,t){var n,r;a&&(n=a.t,r=e,(2===Ps(n)?n.get(r):n[r])===t)||Ns(i,e,o(t))}),3===t?new Set(i):i}(t));var t=qs(this),e=rl(this,e,void 0);return e[fl].C=!0,Gs(t),e},s.finishDraft=function(e,t){e=(e&&e[fl]).A;return Us(e,t),Ys(void 0,e)},s.setAutoFreeze=function(e){this.F=e},s.setUseProxies=function(e){e&&!sl&&Bs(20),this.g=e},s.applyPatches=function(e,t){for(var n=t.length-1;0<=n;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}-1<n&&(t=t.slice(n+1));var o=Vs("Patches").$;return Fs(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},new bl),ml=r.produce;function bl(e){var l=this;this.g=sl,this.F=!0,this.produce=function(e,i,t){var a,u,n;if("function"==typeof e&&"function"!=typeof i)return a=i,i=e,u=l,function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u.produce(e,function(e){return i.call.apply(i,[t,e].concat(r))})};if("function"!=typeof i&&Bs(6),void 0!==t&&"function"!=typeof t&&Bs(7),Ts(e)){var r=qs(l),o=rl(l,e,void 0),s=!0;try{n=i(o),s=!1}finally{(s?Ws:Gs)(r)}return"undefined"!=typeof Promise&&n instanceof Promise?n.then(function(e){return Us(r,t),Ys(e,r)},function(e){throw Ws(r),e}):(Us(r,t),Ys(n,r))}if(!e||"object"!=typeof e)return(n=i(e))===ll?void 0:(void 0===n&&(n=e),l.F&&zs(n,!0),n);Bs(21,e)},this.produceWithPatches=function(o,e){return"function"==typeof o?function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.produceWithPatches(e,function(e){return o.apply(void 0,[e].concat(n))})}:[l.produce(o,e,function(e,t){n=e,r=t}),n,r];var n,r},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}r.produceWithPatches.bind(r),r.setAutoFreeze.bind(r),r.setUseProxies.bind(r),r.applyPatches.bind(r);var wl=r.createDraft.bind(r),xl=r.finishDraft.bind(r);function El(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var Dl=new WeakMap,Sl=new WeakMap,Cl=new WeakMap,Al=new WeakMap,Ol=new WeakMap,kl=new WeakMap;function Bl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Fl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bl(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Tl=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var t=e["path"];return M.levels(t);case"insert_node":var{node:t,path:n}=e;return[...M.levels(n),...H.isText(t)?[]:Array.from(R.nodes(t),e=>{var[,e]=e;return n.concat(e)})];case"merge_node":t=e["path"];return[...M.ancestors(t),M.previous(t)];case"move_node":var{path:t,newPath:r}=e;if(M.equals(t,r))return[];var o,i,a=[],u=[];for(o of M.ancestors(t)){var s=M.transform(o,e);a.push(s)}for(i of M.ancestors(r)){var l=M.transform(i,e);u.push(l)}t=u[u.length-1],r=r[r.length-1],t=t.concat(r);return[...a,...u,t];case"remove_node":r=e["path"];return[...M.ancestors(r)];case"split_node":t=e["path"];return[...M.levels(t),M.next(t)];default:return[]}};function _l(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function Pl(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(Il.test(e))return!1;if(Rl.test(e)){var r=Nl(t,n),[t,r]=Ml(t,r,n);if(Pl(t,r,n))return!0}return!Ll.test(e)}var jl,Nl=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=!n,n=n?zl(e):e,o=jl.None,i=jl.None,a=0,u=null;for(t of n){var s=t.codePointAt(0);if(!s)break;s=Xl(t,s);if([o,i]=r?[i,s]:[s,o],Zl(o,jl.ZWJ)&&Zl(i,jl.ExtPict)&&!ec(r?e.substring(0,a):e.substring(0,e.length-a)))break;if(Zl(o,jl.RI)&&Zl(i,jl.RI)&&!(u=null!==u?!u:!!r||nc(e.substring(0,e.length-a))))break;if(o!==jl.None&&i!==jl.None&&function(t,n){return-1===Jl.findIndex(e=>Zl(t,e[0])&&Zl(n,e[1]))}(o,i))break;a+=t.length}return a||1},Il=/\s/,Ll=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Rl=/['\u2018\u2019]/,Ml=(e,t,n)=>{return n?(n=e.length-t,[e.slice(n,e.length),e.slice(0,n)]):[e.slice(0,t),e.slice(t)]},zl=function*(e){for(var t,n=e.length-1,r=0;r<e.length;r++){var o=e.charAt(n-r);if(56320<=(i=o.charCodeAt(0))&&i<=57343){var i=e.charAt(n-r-1);if(55296<=(t=i.charCodeAt(0))&&t<=56319){yield i+o,r++;continue}}yield o}},Hl=((o=jl=jl||{})[o.None=0]="None",o[o.Extend=1]="Extend",o[o.ZWJ=2]="ZWJ",o[o.RI=4]="RI",o[o.Prepend=8]="Prepend",o[o.SpacingMark=16]="SpacingMark",o[o.L=32]="L",o[o.V=64]="V",o[o.T=128]="T",o[o.LV=256]="LV",o[o.LVT=512]="LVT",o[o.ExtPict=1024]="ExtPict",o[o.Any=2048]="Any",/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/),$l=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Vl=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Ul=/^[\u1100-\u115F\uA960-\uA97C]$/,Wl=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Gl=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ql=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Kl=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Yl=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Xl=(e,t)=>{var n=jl.Any;return-1!==e.search(Hl)&&(n|=jl.Extend),8205===t&&(n|=jl.ZWJ),127462<=t&&t<=127487&&(n|=jl.RI),-1!==e.search($l)&&(n|=jl.Prepend),-1!==e.search(Vl)&&(n|=jl.SpacingMark),-1!==e.search(Ul)&&(n|=jl.L),-1!==e.search(Wl)&&(n|=jl.V),-1!==e.search(Gl)&&(n|=jl.T),-1!==e.search(ql)&&(n|=jl.LV),-1!==e.search(Kl)&&(n|=jl.LVT),-1!==e.search(Yl)&&(n|=jl.ExtPict),n};function Zl(e,t){return 0!=(e&t)}var Jl=[[jl.L,jl.L|jl.V|jl.LV|jl.LVT],[jl.LV|jl.V,jl.V|jl.T],[jl.LVT|jl.T,jl.T],[jl.Any,jl.Extend|jl.ZWJ],[jl.Any,jl.SpacingMark],[jl.Prepend,jl.Any],[jl.ZWJ,jl.ExtPict],[jl.RI,jl.RI]];var Ql=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,ec=e=>-1!==e.search(Ql),tc=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,nc=e=>{e=e.match(tc);return null!==e&&e[0].length/2%2==1},rc=e=>ks(e)&&R.isNodeList(e.children)&&!P.isEditor(e),_={isAncestor:e=>ks(e)&&R.isNodeList(e.children),isElement:rc,isElementList:e=>Array.isArray(e)&&e.every(e=>_.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"type";return rc(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},oc=["text"],ic=["text"];function ac(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function uc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ac(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var sc=new WeakMap,P={above(e){var{voids:t=!1,mode:n="lowest",at:r=e.selection,match:o}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(r){var i,a,u=P.path(e,r);for([i,a]of P.levels(e,{at:u,voids:t,match:o,reverse:"lowest"===n}))if(!H.isText(i)&&!M.equals(u,a))return[i,a]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t={anchor:P.point(e,t,{edge:"end"}),focus:P.end(e,[])},{distance:i=1}=o,a=0;for(r of P.positions(e,uc(uc({},o),{},{at:t}))){if(i<a)break;0!==a&&(n=r),a++}return n},before(e,t){var n,r,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t={anchor:P.start(e,[]),focus:P.point(e,t,{edge:"start"})},{distance:i=1}=o,a=0;for(r of P.positions(e,uc(uc({},o),{},{at:t,reverse:!0}))){if(i<a)break;0!==a&&(n=r),a++}return n},deleteBackward(e){var{unit:t="character"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.deleteBackward(t)},deleteForward(e){var{unit:t="character"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.deleteForward(t)},deleteFragment(e){var{direction:t="forward"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.deleteFragment(t)},edges:(e,t)=>[P.start(e,t),P.end(e,t)],end:(e,t)=>P.point(e,t,{edge:"end"}),first(e,t){t=P.path(e,t,{edge:"start"});return P.node(e,t)},fragment(e,t){t=P.range(e,t);return R.fragment(e,t)},hasBlocks:(t,e)=>e.children.some(e=>P.isBlock(t,e)),hasInlines:(t,e)=>e.children.some(e=>H.isText(e)||P.isInline(t,e)),hasTexts:(e,t)=>t.children.every(e=>H.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>_.isElement(t)&&!e.isInline(t),isEditor(e){var t;return!!ks(e)&&(void 0!==(t=sc.get(e))?t:(t="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||ks(e.marks))&&(null===e.selection||z.isRange(e.selection))&&R.isNodeList(e.children)&&gc.isOperationList(e.operations),sc.set(e,t),t))},isEnd(e,t,n){e=P.end(e,n);return bc.equals(t,e)},isEdge:(e,t,n)=>P.isStart(e,t,n)||P.isEnd(e,t,n),isEmpty(e,t){var n=t["children"],[r]=n;return 0===n.length||1===n.length&&H.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>_.isElement(t)&&e.isInline(t),isNormalizing(e){e=Cl.get(e);return void 0===e||e},isStart(e,t,n){return 0===t.offset&&(e=P.start(e,n),bc.equals(t,e))},isVoid:(e,t)=>_.isElement(t)&&e.isVoid(t),last(e,t){t=P.path(e,t,{edge:"end"});return P.node(e,t)},leaf(e,t){t=P.path(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});return[R.leaf(e,t),t]},*levels(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,i=t["match"];if(null==i&&(i=()=>!0),n){var a,u,s=[],t=P.path(e,n);for([a,u]of R.levels(e,t))if(i(a,u)&&(s.push([a,u]),!o)&&P.isVoid(e,a))break;r&&s.reverse(),yield*s}},marks(t){var e,n,{marks:r,selection:o}=t;return o?r||(z.isExpanded(o)?([r]=P.nodes(t,{match:H.isText}),r?([r]=r,_l(r,oc)):{}):(r=o["anchor"],o=r["path"],[e]=P.leaf(t,o),_l(e=0===r.offset&&(r=P.previous(t,{at:o,match:H.isText}),o=P.above(t,{match:e=>P.isBlock(t,e)}),r)&&o&&([r,n]=r,[,o]=o,M.isAncestor(o,n))?r:e,ic))):null},next(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:t,at:o=e.selection}=t;if(o){var i=P.after(e,o,{voids:r});if(i){var a,[,u]=P.last(e,[]),i=[i.path,u];if(M.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");null==t&&(t=M.isPath(o)?([a]=P.parent(e,o),e=>a.children.includes(e)):()=>!0);var[u]=P.nodes(e,{at:i,match:t,mode:n,voids:r});return u}}},node(e,t){t=P.path(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});return[R.get(e,t),t]},*nodes(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{at:r=t.selection,mode:o="all",universal:i=!1,reverse:a=!1,voids:u=!1}=n,s=n["match"],s=s||(()=>!0);if(r){n=lc.isSpan(r)?(e=r[0],r[1]):(n=P.path(t,r,{edge:"start"}),r=P.path(t,r,{edge:"end"}),e=a?r:n,a?n:r);var l,c,f,d=[];for([c,f]of R.nodes(t,{reverse:a,from:e,to:n,pass:e=>{var[e]=e;return!u&&P.isVoid(t,e)}})){var p,h=l&&0===M.compare(f,l[1]);if("highest"!==o||!h)if(s(c,f))l=("lowest"===o&&h||(p="lowest"===o?l:[c,f])&&(i?d.push(p):yield p),[c,f]);else if(i&&!h&&H.isText(c))return}"lowest"===o&&l&&(i?d.push(l):yield l),i&&(yield*d)}},normalize(a){var{force:e=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},u=e=>Dl.get(e)||[];P.isNormalizing(a)&&(e&&(e=Array.from(R.nodes(a),e=>{var[,e]=e;return e}),Dl.set(a,e)),0!==u(a).length)&&P.withoutNormalizing(a,()=>{for(var e of u(a)){var t,n;R.has(a,e)&&([t,n]=e=P.node(a,e),_.isElement(t))&&0===t.children.length&&a.normalizeNode(e)}for(var r=42*u(a).length,o=0;0!==u(a).length;){if(r<o)throw new Error("\n Could not completely normalize the editor after ".concat(r," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var i=u(a).pop();R.has(a,i)&&(i=P.node(a,i),a.normalizeNode(i)),o++}})},parent(e,t){t=P.path(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}),t=M.parent(t);return P.node(e,t)},path(e,t){var n,{depth:r,edge:o}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return M.isPath(t)&&("start"===o?([,n]=R.first(e,t),t=n):"end"===o&&([,n]=R.last(e,t),t=n)),z.isRange(t)&&(t="start"===o?z.start(t):"end"===o?z.end(t):M.common(t.anchor.path,t.focus.path)),bc.isPoint(t)&&(t=t.path),t=null!=r?t.slice(0,r):t},hasPath:(e,t)=>R.has(e,t),pathRef(t,e){var{affinity:n="forward"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r={current:e,affinity:n,unref(){var e=r["current"];return P.pathRefs(t).delete(r),r.current=null,e}};return P.pathRefs(t).add(r),r},pathRefs(e){var t=Al.get(e);return t||(t=new Set,Al.set(e,t)),t},point(e,t){var{edge:n="start"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(M.isPath(t)){r="end"===n?([,r]=R.last(e,t),r):([,r]=R.first(e,t),r);var r,e=R.get(e,r);if(H.isText(e))return{path:r,offset:"end"===n?e.text.length:0};throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."))}return z.isRange(t)?([r,e]=z.edges(t),"start"===n?r:e):t},pointRef(t,e){var{affinity:n="forward"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r={current:e,affinity:n,unref(){var e=r["current"];return P.pointRefs(t).delete(r),r.current=null,e}};return P.pointRefs(t).add(r),r},pointRefs(e){var t=Ol.get(e);return t||(t=new Set,Ol.set(e,t)),t},*positions(e){var t,n,r,{at:o=e.selection,unit:i="offset",reverse:a=!1,voids:u=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(o){var s,l,c,f=P.range(e,o),[d,p]=z.edges(f),h=a?p:d,g=!1,v="",y=0,m=0,b=0;for([s,l]of P.nodes(e,{at:o,reverse:a,voids:u})){if(_.isElement(s)){if(!u&&e.isVoid(s)){yield P.start(e,l);continue}if(e.isInline(s))continue;P.hasInlines(e,s)&&(c=M.isAncestor(l,p.path)?p:P.end(e,l),w=M.isAncestor(l,d.path)?d:P.start(e,l),v=P.string(e,{anchor:w,focus:c},{voids:u}),g=!0)}if(H.isText(s)){var w=M.equals(l,h.path),b=w?(m=a?h.offset:s.text.length-h.offset,h.offset):(m=s.text.length,a?m:0);for((w||g||"offset"===i)&&(yield{path:l,offset:b},g=!1);;){if(0===y){if(""===v)break;t=v,r=a,y="character"===(n=i)?Nl(t,r):"word"===n?function(e,t){for(var n=1<arguments.length&&void 0!==t&&t,r=0,o=!1;0<e.length;){var i=Nl(e,n),[a,u]=Ml(e,i,n);if(Pl(a,u,n))o=!0;else if(o)break;r+=i,e=u}return r}(t,r):"line"===n||"block"===n?t.length:1,v=Ml(v,y,a)[1]}if(b=a?b-y:b+y,(m-=y)<0){y=-m;break}y=0,yield{path:l,offset:b}}}}}},previous(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:t,at:o=e.selection}=t;if(o){var i=P.before(e,o,{voids:r});if(i){var a,[,u]=P.first(e,[]),i=[i.path,u];if(M.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");null==t&&(t=M.isPath(o)?([a]=P.parent(e,o),e=>a.children.includes(e)):()=>!0);var[u]=P.nodes(e,{reverse:!0,at:i,match:t,mode:n,voids:r});return u}}},range:(e,t,n)=>z.isRange(t)&&!n?t:{anchor:P.start(e,t),focus:P.end(e,n||t)},rangeRef(t,e){var{affinity:n="forward"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r={current:e,affinity:n,unref(){var e=r["current"];return P.rangeRefs(t).delete(r),r.current=null,e}};return P.rangeRefs(t).add(r),r},rangeRefs(e){var t=kl.get(e);return t||(t=new Set,kl.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Cl.set(e,t)},start:(e,t)=>P.point(e,t,{edge:"start"}),string(e,t){var n,r,{voids:o=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=P.range(e,t),[i,a]=z.edges(t),u="";for([n,r]of P.nodes(e,{at:t,match:H.isText,voids:o})){var s=n.text;M.equals(r,a.path)&&(s=s.slice(0,a.offset)),u+=s=M.equals(r,i.path)?s.slice(i.offset):s}return u},unhangRange(t,e){var{voids:n=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},[r,o]=z.edges(e);if(0!==r.offset||0!==o.offset||z.isCollapsed(e))return e;var i,a,e=P.above(t,{at:o,match:e=>P.isBlock(t,e)}),u=e?e[1]:[],e={anchor:P.start(t,[]),focus:o},s=!0;for([i,a]of P.nodes(t,{at:e,match:H.isText,reverse:!0,voids:n}))if(s)s=!1;else if(""!==i.text||M.isBefore(a,u)){o={path:a,offset:i.text.length};break}return{anchor:r,focus:o}},void(t){return P.above(t,uc(uc({},1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),{},{match:e=>P.isVoid(t,e)}))},withoutNormalizing(e,t){var n=P.isNormalizing(e);P.setNormalizing(e,!1);try{t()}finally{P.setNormalizing(e,n)}P.normalize(e)}},lc={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(M.isPath)},cc=["children"],fc=["text"],dc=new WeakMap,R={ancestor(e,t){e=R.get(e,t);if(H.isText(e))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(e));return e},*ancestors(e,t){var n;for(n of M.ancestors(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))yield[R.ancestor(e,n),n]},child(e,t){if(H.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var{reverse:n=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=R.ancestor(e,t),o=r["children"],i=n?o.length-1:0;n?0<=i:i<o.length;)yield[R.child(r,i),t.concat(i)],i=n?i-1:i+1},common(e,t,n){t=M.common(t,n);return[R.get(e,t),t]},descendant(e,t){e=R.get(e,t);if(P.isEditor(e))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(e));return e},*descendants(e){var t,n;for([t,n]of R.nodes(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))0!==n.length&&(yield[t,n])},*elements(e){var t,n;for([t,n]of R.nodes(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))_.isElement(t)&&(yield[t,n])},extractProps:e=>_.isAncestor(e)?_l(e,cc):_l(e,fc),first(e,t){for(var n=t.slice(),r=R.get(e,n);r&&!H.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,a){if(H.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return ml({children:e.children},e=>{var t,n,r,[o,i]=z.edges(a);for([,t]of R.nodes(e,{reverse:!0,pass:e=>{var[,e]=e;return!z.includes(a,e)}}))z.includes(a,t)||(n=R.parent(e,t),r=t[t.length-1],n.children.splice(r,1)),M.equals(t,i.path)&&((n=R.leaf(e,t)).text=n.text.slice(0,i.offset)),M.equals(t,o.path)&&((r=R.leaf(e,t)).text=r.text.slice(o.offset));P.isEditor(e)&&(e.selection=null)}).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(H.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(H.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>H.isText(e)||_.isElement(e)||P.isEditor(e),isNodeList(e){var t;return!!Array.isArray(e)&&(void 0!==(t=dc.get(e))?t:(t=e.every(e=>R.isNode(e)),dc.set(e,t),t))},last(e,t){for(var n=t.slice(),r=R.get(e,n);r&&!H.isText(r)&&0!==r.children.length;){var o=r.children.length-1,r=r.children[o];n.push(o)}return[r,n]},leaf(e,t){e=R.get(e,t);if(H.isText(e))return e;throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(e))},*levels(e,t){var n;for(n of M.levels(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))yield[R.get(e,n),n]},matches:(e,t)=>_.isElement(e)&&_.isElementProps(t)&&_.matches(e,t)||H.isText(e)&&H.isTextProps(t)&&H.matches(e,t),*nodes(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?M.isBefore(u,i):M.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||H.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=M.next(u);if(R.has(e,l)){s=R.get(e,u=l);continue}}r&&0!==u[u.length-1]?(u=M.previous(u),s=R.get(e,u)):(u=M.parent(u),s=R.get(e,u),a.add(s))}else{a.add(s);l=r?s.children.length-1:0;M.isAncestor(u,o)&&(l=o[u.length]),u=u.concat(l),s=R.get(e,u)}},parent(e,t){var n=M.parent(t),e=R.get(e,n);if(H.isText(e))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return e},string:e=>H.isText(e)?e.text:e.children.map(R.string).join(""),*texts(e){var t,n;for([t,n]of R.nodes(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))H.isText(t)&&(yield[t,n])}};function pc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function hc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var gc={isNodeOperation:e=>gc.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!ks(e))return!1;switch(e.type){case"insert_node":case"remove_node":return M.isPath(e.path)&&R.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&M.isPath(e.path);case"merge_node":return"number"==typeof e.position&&M.isPath(e.path)&&ks(e.properties);case"move_node":return M.isPath(e.path)&&M.isPath(e.newPath);case"set_node":return M.isPath(e.path)&&ks(e.properties)&&ks(e.newProperties);case"set_selection":return null===e.properties&&z.isRange(e.newProperties)||null===e.newProperties&&z.isRange(e.properties)||ks(e.properties)&&ks(e.newProperties);case"split_node":return M.isPath(e.path)&&"number"==typeof e.position&&ks(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>gc.isOperation(e)),isSelectionOperation:e=>gc.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>gc.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return hc(hc({},e),{},{type:"remove_node"});case"insert_text":return hc(hc({},e),{},{type:"remove_text"});case"merge_node":return hc(hc({},e),{},{type:"split_node",path:M.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;return M.equals(t,n)?e:M.isSibling(n,t)?hc(hc({},e),{},{path:t,newPath:n}):(t=M.transform(n,e),n=M.transform(M.next(n),e),hc(hc({},e),{},{path:t,newPath:n}));case"remove_node":return hc(hc({},e),{},{type:"insert_node"});case"remove_text":return hc(hc({},e),{},{type:"insert_text"});case"set_node":var{properties:t,newProperties:n}=e;return hc(hc({},e),{},{properties:n,newProperties:t});case"set_selection":var{properties:n,newProperties:t}=e;return hc(hc({},e),{},null==n?{properties:t,newProperties:null}:null==t?{properties:null,newProperties:n}:{properties:t,newProperties:n});case"split_node":return hc(hc({},e),{},{type:"merge_node",path:M.next(e.path)})}}},M={ancestors(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,e=M.levels(e,t);return n?e.slice(1):e.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),e=e[n],t=t[n];return M.equals(r,o)&&t<e},endsAt(e,t){var n=e.length,e=e.slice(0,n),t=t.slice(0,n);return M.equals(e,t)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),e=e[n],t=t[n];return M.equals(r,o)&&e<t},equals:(e,n)=>e.length===n.length&&e.every((e,t)=>e===n[t]),hasPrevious:e=>0<e[e.length-1],isAfter:(e,t)=>1===M.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===M.compare(e,t),isBefore:(e,t)=>-1===M.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===M.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===M.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===M.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===M.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){var n,r;return e.length===t.length&&(n=e.slice(0,-1),r=t.slice(0,-1),e[e.length-1]!==t[t.length-1])&&M.equals(n,r)},levels(e){for(var{reverse:t=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=[],r=0;r<=e.length;r++)n.push(e.slice(0,r));return t&&n.reverse(),n},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(M.isAncestor(t,e)||M.equals(e,t))return e.slice(t.length);throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."))},transform(i,a){var u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return ml(i,e=>{var{affinity:t="forward"}=u;if(i&&0!==(null==i?void 0:i.length)){if(null===e)return null;switch(a.type){case"insert_node":var n=a["path"];(M.equals(n,e)||M.endsBefore(n,e)||M.isAncestor(n,e))&&(e[n.length-1]+=1);break;case"remove_node":n=a["path"];if(M.equals(n,e)||M.isAncestor(n,e))return null;M.endsBefore(n,e)&&--e[n.length-1];break;case"merge_node":var{path:n,position:r}=a;M.equals(n,e)||M.endsBefore(n,e)?--e[n.length-1]:M.isAncestor(n,e)&&(--e[n.length-1],e[n.length]+=r);break;case"split_node":var{path:n,position:r}=a;if(M.equals(n,e)){if("forward"===t)e[e.length-1]+=1;else if("backward"!==t)return null}else M.endsBefore(n,e)?e[n.length-1]+=1:M.isAncestor(n,e)&&i[n.length]>=r&&(e[n.length-1]+=1,e[n.length]-=r);break;case"move_node":var o,{path:n,newPath:r}=a;return M.equals(n,r)?void 0:M.isAncestor(n,e)||M.equals(n,e)?(o=r.slice(),M.endsBefore(n,r)&&n.length<r.length&&--o[n.length-1],o.concat(e.slice(n.length))):void(M.isSibling(n,r)&&(M.isAncestor(r,e)||M.equals(r,e))?M.endsBefore(n,e)?--e[n.length-1]:e[n.length-1]+=1:M.endsBefore(r,e)||M.equals(r,e)||M.isAncestor(r,e)?(M.endsBefore(n,e)&&--e[n.length-1],e[r.length-1]+=1):M.endsBefore(n,e)&&(M.equals(r,e)&&(e[r.length-1]+=1),--e[n.length-1]))}}})}},vc={transform(e,t){var{current:n,affinity:r}=e;null!=n&&(n=M.transform(n,t,{affinity:r}),null==(e.current=n))&&e.unref()}};function yc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function mc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var bc={compare(e,t){var n=M.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===bc.compare(e,t),isBefore:(e,t)=>-1===bc.compare(e,t),equals:(e,t)=>e.offset===t.offset&&M.equals(e.path,t.path),isPoint:e=>ks(e)&&"number"==typeof e.offset&&M.isPath(e.path),transform(e,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return ml(e,e=>{if(null===e)return null;var{affinity:t="forward"}=i,{path:n,offset:r}=e;switch(o.type){case"insert_node":case"move_node":e.path=M.transform(n,o,i);break;case"insert_text":M.equals(o.path,n)&&o.offset<=r&&(e.offset+=o.text.length);break;case"merge_node":M.equals(o.path,n)&&(e.offset+=o.position),e.path=M.transform(n,o,i);break;case"remove_text":M.equals(o.path,n)&&o.offset<=r&&(e.offset-=Math.min(r-o.offset,o.text.length));break;case"remove_node":if(M.equals(o.path,n)||M.isAncestor(o.path,n))return null;e.path=M.transform(n,o,i);break;case"split_node":if(M.equals(o.path,n)){if(o.position===r&&null==t)return null;(o.position<r||o.position===r&&"forward"===t)&&(e.offset-=o.position,e.path=M.transform(n,o,mc(mc({},i),{},{affinity:"forward"})))}else e.path=M.transform(n,o,i)}})}},wc={transform(e,t){var{current:n,affinity:r}=e;null!=n&&(n=bc.transform(n,t,{affinity:r}),null==(e.current=n))&&e.unref()}},xc=["anchor","focus"];function Ec(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}var z={edges(e){var{reverse:t=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{anchor:n,focus:r}=e;return z.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,e]=z.edges(e);return e},equals:(e,t)=>bc.equals(e.anchor,t.anchor)&&bc.equals(e.focus,t.focus),includes(e,t){var n,r,o,i;return z.isRange(t)?!(!z.includes(e,t.anchor)&&!z.includes(e,t.focus))||([n,o]=z.edges(e),[r,i]=z.edges(t),bc.isBefore(n,r)&&bc.isAfter(o,i)):([n,r]=z.edges(e),i=o=!1,i=bc.isPoint(t)?(o=0<=bc.compare(t,n),bc.compare(t,r)<=0):(o=0<=M.compare(t,n.path),M.compare(t,r.path)<=0),o&&i)},intersection(e,t){var n=_l(e,xc),[e,r]=z.edges(e),[t,o]=z.edges(t),t=bc.isBefore(e,t)?t:e,e=bc.isBefore(r,o)?r:o;return bc.isBefore(e,t)?null:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ec(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({anchor:t,focus:e},n)},isBackward(e){var{anchor:e,focus:t}=e;return bc.isAfter(e,t)},isCollapsed(e){var{anchor:e,focus:t}=e;return bc.equals(e,t)},isExpanded:e=>!z.isCollapsed(e),isForward:e=>!z.isBackward(e),isRange:e=>ks(e)&&bc.isPoint(e.anchor)&&bc.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[e]=z.edges(e);return e},transform(e,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return ml(e,e=>{var t,n,r;return null!==e&&({affinity:n="inward"}=i,t="inward"===n?(t=z.isCollapsed(e),z.isForward(e)?(r="forward",t?r:"backward"):(r="backward",t?r:"forward")):"outward"===n?z.isForward(e)?(r="backward","forward"):(r="forward","backward"):r=n,n=bc.transform(e.anchor,o,{affinity:r}),r=bc.transform(e.focus,o,{affinity:t}),n)&&r?(e.anchor=n,void(e.focus=r)):null})}},Dc={transform(e,t){var{current:n,affinity:r}=e;null!=n&&(n=z.transform(n,t,{affinity:r}),null==(e.current=n))&&e.unref()}},Sc=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(ks(r)&&ks(o)){if(!Sc(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Cc=["text"],Ac=["anchor","focus"];function Oc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function kc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var H={equals(e,t){var{loose:n=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};function r(e){return _l(e,Cc)}return Sc(n?r(e):e,n?r(t):t)},isText:e=>ks(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>H.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n,r=[kc({},e)];for(n of t){var o,i=_l(n,Ac),[a,u]=z.edges(n),s=[],l=0;for(o of r){var c,f,d,p=o.text["length"],h=l;l+=p,a.offset<=h&&u.offset>=l?(Object.assign(o,i),s.push(o)):a.offset!==u.offset&&(a.offset===l||u.offset===h)||a.offset>l||u.offset<h||u.offset===h&&0!==h?s.push(o):(p=o,c=d=void 0,u.offset<l&&(f=u.offset-h,c=kc(kc({},p),{},{text:p.text.slice(f)}),p=kc(kc({},p),{},{text:p.text.slice(0,f)})),a.offset>h&&(f=a.offset-h,d=kc(kc({},p),{},{text:p.text.slice(0,f)}),p=kc(kc({},p),{},{text:p.text.slice(f)})),Object.assign(p,i),d&&s.push(d),s.push(p),c&&s.push(c))}r=s}return r}};function Bc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Fc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Tc=["text"],_c=["children"];function Pc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function jc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Xo={insertNodes(f,d){var p=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(f,()=>{var{hanging:e=!1,voids:t=!1,mode:n="lowest"}=p,{at:r,match:o,select:i}=p;if(0!==(d=R.isNode(d)?[d]:d).length){var[a]=d;if(r||(r=f.selection||(0<f.children.length?P.end(f,[]):[0]),i=!0),null==i&&(i=!1),z.isRange(r)&&(e||(r=P.unhangRange(f,r)),r=z.isCollapsed(r)?r.anchor:([,e]=z.edges(r),e=P.pointRef(f,e),j.delete(f,{at:r}),e.unref())),bc.isPoint(r)){null==o&&(o=H.isText(a)?e=>H.isText(e):f.isInline(a)?e=>H.isText(e)||P.isInline(f,e):e=>P.isBlock(f,e));var[e]=P.nodes(f,{at:r.path,match:o,mode:n,voids:t});if(!e)return;var[,a]=e,e=P.pathRef(f,a),a=P.isEnd(f,r,a),o=(j.splitNodes(f,{at:r,match:o,mode:n,voids:t}),e.unref()),r=a?M.next(o):o}var u=M.parent(r),s=r[r.length-1];if(t||!P.void(f,{at:u})){for(var l of d){var c=u.concat(s);s++,f.apply({type:"insert_node",path:c,node:l}),r=M.next(r)}r=M.previous(r),i&&(n=P.end(f,r))&&j.select(f,n)}}})},liftNodes(c){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(c,()=>{var{at:e=c.selection,mode:t="lowest",voids:n=!1}=f,r=f["match"];if(null==r&&(r=M.isPath(e)?Lc(c,e):e=>P.isBlock(c,e)),e){var o,e=P.nodes(c,{at:e,match:r,mode:t,voids:n});for(o of Array.from(e,e=>{var[,e]=e;return P.pathRef(c,e)})){var i=o.unref();if(i.length<2)throw new Error("Cannot lift node at a path [".concat(i,"] because it has a depth of less than `2`."));var a,[u,s]=P.node(c,M.parent(i)),l=i[i.length-1],u=u.children["length"];1===u?(a=M.next(s),j.moveNodes(c,{at:i,to:a,voids:n}),j.removeNodes(c,{at:s,voids:n})):0===l?j.moveNodes(c,{at:i,to:s,voids:n}):l===u-1?(a=M.next(s),j.moveNodes(c,{at:i,to:a,voids:n})):(l=M.next(i),u=M.next(s),j.splitNodes(c,{at:l,voids:n}),j.moveNodes(c,{at:i,to:u,voids:n}))}}})},mergeNodes(p){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(p,()=>{var{match:e,at:t=p.selection}=h,{hanging:n=!1,voids:r=!1,mode:o="lowest"}=h;if(t){null==e&&(e=M.isPath(t)?([i]=P.parent(p,t),e=>i.children.includes(e)):e=>P.isBlock(p,e)),!n&&z.isRange(t)&&(t=P.unhangRange(p,t)),z.isRange(t)&&(z.isCollapsed(t)?t=t.anchor:([,n]=z.edges(t),n=P.pointRef(p,n),j.delete(p,{at:t}),t=n.unref(),null==h.at&&j.select(p,t)));var i,[n]=P.nodes(p,{at:t,match:e,voids:r,mode:o}),t=P.previous(p,{at:t,match:e,voids:r,mode:o});if(n&&t){var[e,o]=n,[n,t]=t;if(0!==o.length&&0!==t.length){var a=M.next(t),u=M.common(o,t),s=M.isSibling(o,t),l=Array.from(P.levels(p,{at:o}),e=>{var[e]=e;return e}).slice(u.length).slice(0,-1),u=P.above(p,{at:o,mode:"highest",match:e=>l.includes(e)&&Nc(p,e)}),u=u&&P.pathRef(p,u[1]);if(H.isText(e)&&H.isText(n))var c=_l(e,Tc),f=n.text.length,d=c;else{if(!_.isElement(e)||!_.isElement(n))throw new Error("Cannot merge the node at path [".concat(o,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(e)," ").concat(JSON.stringify(n)));c=_l(e,_c),f=n.children.length,d=c}s||j.moveNodes(p,{at:o,to:a,voids:r}),u&&j.removeNodes(p,{at:u.current,voids:r}),_.isElement(n)&&P.isEmpty(p,n)||H.isText(n)&&""===n.text&&0!==t[t.length-1]?j.removeNodes(p,{at:t,voids:r}):p.apply({type:"merge_node",path:a,position:f,properties:d}),u&&u.unref()}}}})},moveNodes(l,c){P.withoutNormalizing(l,()=>{var{to:e,at:t=l.selection,mode:n="lowest",voids:r=!1}=c,o=c["match"];if(t){null==o&&(o=M.isPath(t)?Lc(l,t):e=>P.isBlock(l,e));var i,a=P.pathRef(l,e),e=P.nodes(l,{at:t,match:o,mode:n,voids:r});for(i of Array.from(e,e=>{var[,e]=e;return P.pathRef(l,e)})){var u=i.unref(),s=a.current;0!==u.length&&l.apply({type:"move_node",path:u,newPath:s}),a.current&&M.isSibling(s,u)&&M.isAfter(s,u)&&(a.current=M.next(a.current))}a.unref()}})},removeNodes(s){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(s,()=>{var{hanging:e=!1,voids:t=!1,mode:n="lowest"}=l,{at:r=s.selection,match:o}=l;if(r){null==o&&(o=M.isPath(r)?Lc(s,r):e=>P.isBlock(s,e)),!e&&z.isRange(r)&&(r=P.unhangRange(s,r));var i,e=P.nodes(s,{at:r,match:o,mode:n,voids:t});for(i of Array.from(e,e=>{var[,e]=e;return P.pathRef(s,e)})){var a,u=i.unref();u&&([a]=P.node(s,u),s.apply({type:"remove_node",path:u,node:a}))}}})},setNodes(g,v){var y=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(g,()=>{var{match:e,at:t=g.selection}=y,{hanging:n=!1,mode:r="lowest",split:o=!1,voids:i=!1}=y;if(t){if(null==e&&(e=M.isPath(t)?Lc(g,t):e=>P.isBlock(g,e)),!n&&z.isRange(t)&&(t=P.unhangRange(g,t)),o&&z.isRange(t)){if(z.isCollapsed(t)&&0<P.leaf(g,t.anchor)[0].text.length)return;var n=P.rangeRef(g,t,{affinity:"inward"}),[o,a]=z.edges(t),u="lowest"===r?"lowest":"highest",s=P.isEnd(g,a,a.path),a=(j.splitNodes(g,{at:a,match:e,mode:u,voids:i,always:!s}),P.isStart(g,o,o.path));j.splitNodes(g,{at:o,match:e,mode:u,voids:i,always:!a}),t=n.unref(),null==y.at&&j.select(g,t)}for(var[l,c]of P.nodes(g,{at:t,match:e,mode:r,voids:i})){var f={},d={};if(0!==c.length){var p,h=!1;for(p in v)"children"!==p&&"text"!==p&&v[p]!==l[p]&&(h=!0,l.hasOwnProperty(p)&&(f[p]=l[p]),null!=v[p])&&(d[p]=v[p]);h&&g.apply({type:"set_node",path:c,properties:f,newProperties:d})}}}})},splitNodes(y){var m=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(y,()=>{var t,{mode:e="lowest",voids:n=!1}=m,{match:r,at:o=y.selection,height:i=0,always:a=!1}=m;if(null==r&&(r=e=>P.isBlock(y,e)),z.isRange(o)&&(o=Ic(y,o)),M.isPath(o)&&(s=o,f=P.point(y,s),[t]=P.parent(y,s),r=e=>e===t,i=f.path.length-s.length+1,o=f,a=!0),o){var u=P.pointRef(y,o,{affinity:"backward"}),[s]=P.nodes(y,{at:o,match:r,mode:e,voids:n});if(s){var l,c,f=P.void(y,{at:o,mode:"highest"}),r=(!n&&f&&([r,e]=f,_.isElement(r)&&y.isInline(r)&&((f=P.after(y,e))||(r=M.next(e),j.insertNodes(y,{text:""},{at:r,voids:n}),f=P.point(y,r)),o=f,a=!0),i=o.path.length-e.length+1,a=!0),P.pointRef(y,o)),f=o.path.length-i,[,d]=s,e=o.path.slice(0,f),p=0===i?o.offset:o.path[f]+0;for([l,c]of P.levels(y,{at:e,reverse:!0,voids:n})){var h=!1;if(c.length<d.length||0===c.length||!n&&P.isVoid(y,l))break;var g=u.current,v=P.isEnd(y,g,c);!a&&u&&P.isEdge(y,g,c)||(h=!0,g=R.extractProps(l),y.apply({type:"split_node",path:c,position:p,properties:g})),p=c[c.length-1]+(h||v?1:0)}null==m.at&&(s=r.current||P.end(y,[]),j.select(y,s)),u.unref(),r.unref()}}})},unsetNodes(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o={};for(n of t=Array.isArray(t)?t:[t])o[n]=null;j.setNodes(e,o,r)},unwrapNodes(u){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(u,()=>{var{mode:e="lowest",split:n=!1,voids:r=!1}=s,{at:t=u.selection,match:o}=s;if(t){null==o&&(o=M.isPath(t)?Lc(u,t):e=>P.isBlock(u,e)),M.isPath(t)&&(t=P.range(u,t));var i,a=z.isRange(t)?P.rangeRef(u,t):null,t=P.nodes(u,{at:t,match:o,mode:e,voids:r});for(i of Array.from(t,e=>{var[,e]=e;return P.pathRef(u,e)}).reverse())!function(e){var e=e.unref(),[t]=P.node(u,e),e=P.range(u,e);n&&a&&(e=z.intersection(a.current,e)),j.liftNodes(u,{at:e,match:e=>_.isAncestor(t)&&t.children.includes(e),voids:r})}(i);a&&a.unref()}})},wrapNodes(c,f){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(c,()=>{var e,t,n,{mode:r="lowest",split:o=!1,voids:i=!1}=d,{match:a,at:u=c.selection}=d;if(u){null==a&&(a=M.isPath(u)?Lc(c,u):c.isInline(f)?e=>P.isInline(c,e)||H.isText(e):e=>P.isBlock(c,e)),o&&z.isRange(u)&&([o,e]=z.edges(u),t=P.rangeRef(c,u,{affinity:"inward"}),j.splitNodes(c,{at:e,match:a,voids:i}),j.splitNodes(c,{at:o,match:a,voids:i}),u=t.unref(),null==d.at)&&j.select(c,u);for([,n]of Array.from(P.nodes(c,{at:u,match:c.isInline(f)?e=>P.isBlock(c,e):e=>P.isEditor(e),mode:"lowest",voids:i}))){var s,l=z.isRange(u)?z.intersection(u,P.range(c,n)):u;l&&0<(s=Array.from(P.nodes(c,{at:l,match:a,mode:r,voids:i}))).length&&function(){var t,e,[n]=s,[,n]=n,[,r]=s[s.length-1];0===n.length&&0===r.length||(e=M.equals(n,r)?M.parent(n):M.common(n,r),n=P.range(c,n,r),[t]=P.node(c,e),e=e.length+1,r=M.next(r.slice(0,e)),e=jc(jc({},f),{},{children:[]}),j.insertNodes(c,e,{at:r,voids:i}),j.moveNodes(c,{at:n,match:e=>_.isAncestor(t)&&t.children.includes(e),to:r.concat(0),voids:i}))}()}}})}},Nc=(e,t)=>{var n;return _.isElement(t)?!!P.isVoid(e,n=t)||1===n.children.length&&Nc(e,n.children[0]):!P.isEditor(t)},Ic=(e,t)=>{var n;return z.isCollapsed(t)?t.anchor:([,n]=z.edges(t),n=P.pointRef(e,n),j.delete(e,{at:t}),n.unref())},Lc=(e,t)=>{var[n]=P.node(e,t);return e=>e===n};function Rc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Mc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}i={collapse(e){var t,{edge:n="anchor"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e["selection"];r&&("anchor"===n?j.select(e,r.anchor):"focus"===n?j.select(e,r.focus):"start"===n?([t]=z.edges(r),j.select(e,t)):"end"===n&&([,t]=z.edges(r),j.select(e,t)))},deselect(e){var t=e["selection"];t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=e["selection"],{distance:i=1,unit:a="character",reverse:u=!1}=r,{edge:r=null}=r;o&&({anchor:n,focus:t}=o,i={distance:i,unit:a},a={},null!=(r="end"===(r="start"===r?z.isBackward(o)?"focus":"anchor":r)?z.isBackward(o)?"anchor":"focus":r)&&"anchor"!==r||(o=u?P.before(e,n,i):P.after(e,n,i))&&(a.anchor=o),null!=r&&"focus"!==r||(n=u?P.before(e,t,i):P.after(e,t,i))&&(a.focus=n),j.setSelection(e,a))},select(e,t){var n=e["selection"];if(t=P.range(e,t),n)j.setSelection(e,t);else{if(!z.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n,r=e["selection"],{edge:o="both"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};r&&("end"===(o="start"===o?z.isBackward(r)?"focus":"anchor":o)&&(o=z.isBackward(r)?"anchor":"focus"),{anchor:r,focus:n}=r,j.setSelection(e,{["anchor"===o?"anchor":"focus"]:Mc(Mc({},"anchor"===o?r:n),t)}))},setSelection(e,t){var n=e["selection"],r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!bc.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!bc.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);0<Object.keys(r).length&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},e={delete(w){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(w,()=>{var{reverse:e=!1,unit:t="character",distance:n=1,voids:r=!1}=x,{at:o=w.selection,hanging:i=!1}=x;if(o)if(z.isRange(o)&&z.isCollapsed(o)&&(o=o.anchor),bc.isPoint(o)&&(s=P.void(w,{at:o,mode:"highest"}),!r&&s?([,s]=s,o=s):(s={unit:t,distance:n},o={anchor:o,focus:e?P.before(w,o,s)||P.start(w,[]):P.after(w,o,s)||P.end(w,[])},i=!0)),M.isPath(o))j.removeNodes(w,{at:o,voids:r});else if(!z.isCollapsed(o)){i||([,t]=z.edges(o),n=P.end(w,[]),bc.equals(t,n))||(o=P.unhangRange(w,o,{voids:r}));var[a,u]=z.edges(o),s=P.above(w,{match:e=>P.isBlock(w,e),at:a,voids:r}),i=P.above(w,{match:e=>P.isBlock(w,e),at:u,voids:r}),t=s&&i&&!M.equals(s[1],i[1]),n=M.equals(a.path,u.path),l=r?null:P.void(w,{at:a,mode:"highest"}),c=r?null:P.void(w,{at:u,mode:"highest"});l&&(m=P.before(w,a))&&s&&M.isAncestor(s[1],m.path)&&(a=m),c&&(s=P.after(w,u))&&i&&M.isAncestor(i[1],s.path)&&(u=s);var f,d,p=[];for(d of P.nodes(w,{at:o,voids:r})){var[h,g]=d;f&&0===M.compare(g,f)||(!r&&P.isVoid(w,h)||!M.isCommon(g,a.path)&&!M.isCommon(g,u.path))&&(p.push(d),f=g)}var v,y,m=Array.from(p,e=>{var[,e]=e;return P.pathRef(w,e)}),i=P.pointRef(w,a),s=P.pointRef(w,u);n||l||(o=i.current,[l]=P.leaf(w,o),o=o["path"],y=a["offset"],0<(l=l.text.slice(y)).length&&w.apply({type:"remove_text",path:o,offset:y,text:l}));for(v of m){var b=v.unref();j.removeNodes(w,{at:b,voids:r})}c||(o=s.current,[y]=P.leaf(w,o),l=o["path"],m=n?a.offset:0,0<(c=y.text.slice(m,u.offset)).length&&w.apply({type:"remove_text",path:l,offset:m,text:c})),!n&&t&&s.current&&i.current&&j.mergeNodes(w,{at:s.current,hanging:!0,voids:r});o=e?i.unref()||s.unref():s.unref()||i.unref();null==x.at&&o&&j.select(w,o)}})},insertFragment(E,D){var S=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(E,()=>{var{hanging:e=!1,voids:t=!1}=S,{at:n=E.selection}=S;if(D.length&&n){if(z.isRange(n))if(e||(n=P.unhangRange(E,n)),z.isCollapsed(n))n=n.anchor;else{var[,e]=z.edges(n);if(!t&&P.void(E,{at:e}))return;e=P.pointRef(E,e);j.delete(E,{at:n}),n=e.unref()}else M.isPath(n)&&(n=P.start(E,n));if(t||!P.void(E,{at:n})){e=P.above(E,{at:n,match:e=>P.isInline(E,e),mode:"highest",voids:t});e&&([,e]=e,P.isEnd(E,n,e)?n=P.after(E,e):P.isStart(E,n,e)&&(n=P.before(E,e)));var r,[,e]=P.above(E,{match:e=>P.isBlock(E,e),at:n,voids:t}),o=P.isStart(E,n,e),i=P.isEnd(E,n,e),a=o&&i,u=!o||i,s=!i,[,l]=R.first({children:D},[]),[,c]=R.last({children:D},[]),f=[],d=e=>{var[e,t]=e;return!(0===t.length||!a&&(u&&M.isAncestor(t,l)&&_.isElement(e)&&!E.isVoid(e)&&!E.isInline(e)||s&&M.isAncestor(t,c)&&_.isElement(e)&&!E.isVoid(e)&&!E.isInline(e)))};for(r of R.nodes({children:D},{pass:d}))d(r)&&f.push(r);var p,h=[],g=[],v=[],y=!0,m=!1;for([p]of f)(_.isElement(p)&&!E.isInline(p)?(y=!1,m=!0,g):y?h:v).push(p);var[o]=P.nodes(E,{at:n,match:e=>H.isText(e)||P.isInline(E,e),mode:"highest",voids:t}),[,o]=o,b=P.isStart(E,n,o),w=P.isEnd(E,n,o),i=P.pathRef(E,i?M.next(e):e),x=P.pathRef(E,w?M.next(o):o),e=P.pathRef(E,e),n=(j.splitNodes(E,{at:n,match:e=>m?P.isBlock(E,e):H.isText(e)||P.isInline(E,e),mode:m?"lowest":"highest",voids:t}),P.pathRef(E,!b||w?M.next(o):o));j.insertNodes(E,h,{at:n.current,match:e=>H.isText(e)||P.isInline(E,e),mode:"highest",voids:t}),a&&g.length&&j.delete(E,{at:e.unref(),voids:t}),j.insertNodes(E,g,{at:i.current,match:e=>P.isBlock(E,e),mode:"lowest",voids:t}),j.insertNodes(E,v,{at:x.current,match:e=>H.isText(e)||P.isInline(E,e),mode:"highest",voids:t}),S.at||(b=0<v.length?M.previous(x.current):0<g.length?M.previous(i.current):M.previous(n.current),w=P.end(E,b),j.select(E,w)),n.unref(),i.unref(),x.unref()}}})},insertText(r,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(r,()=>{var{voids:e=!1}=i,{at:t=r.selection}=i;if(t){if(M.isPath(t)&&(t=P.range(r,t)),z.isRange(t))if(z.isCollapsed(t))t=t.anchor;else{var n=z.end(t);if(!e&&P.void(r,{at:n}))return;var n=P.pointRef(r,n);j.delete(r,{at:t,voids:e}),t=n.unref(),j.setSelection(r,{anchor:t,focus:t})}!e&&P.void(r,{at:t})||({path:n,offset:e}=t,0<o.length&&r.apply({type:"insert_text",path:n,offset:e,text:o}))}})}};function zc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Hc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var j=Hc(Hc(Hc(Hc({},{transform(e,t){e.children=wl(e.children);var n=e.selection&&wl(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=R.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of z.points(t))t[s]=bc.transform(u,n);break;case"insert_text":var{path:r,offset:i,text:a}=n;if(0!==a.length){o=R.leaf(e,r),r=o.text.slice(0,i),i=o.text.slice(i);if(o.text=r+a+i,t)for(var[l,c]of z.points(t))t[c]=bc.transform(l,n)}break;case"merge_node":var o=n["path"],r=R.get(e,o),a=M.previous(o),i=R.get(e,a),a=R.parent(e,o),f=o[o.length-1];if(H.isText(r)&&H.isText(i))i.text+=r.text;else{if(H.isText(r)||H.isText(i))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(o,"] to nodes of different interfaces: ").concat(r," ").concat(i));i.children.push(...r.children)}if(a.children.splice(f,1),t)for(var[d,p]of z.points(t))t[p]=bc.transform(d,n);break;case"move_node":var{path:o,newPath:i}=n;if(M.isAncestor(o,i))throw new Error("Cannot move a path [".concat(o,"] to new path [").concat(i,"] because the destination is inside itself."));r=R.get(e,o),a=R.parent(e,o),f=o[o.length-1],i=(a.children.splice(f,1),M.transform(o,n)),a=R.get(e,M.parent(i)),f=i[i.length-1];if(a.children.splice(f,0,r),t)for(var[h,g]of z.points(t))t[g]=bc.transform(h,n);break;case"remove_node":var v=n["path"],o=v[v.length-1];if(R.parent(e,v).children.splice(o,1),t)for(var[y,m]of z.points(t)){var b=bc.transform(y,n);if(null!=t&&null!=b)t[m]=b;else{var w,x,E=void 0,D=void 0;for([w,x]of R.texts(e)){if(-1!==M.compare(x,v)){D=[w,x];break}E=[w,x]}m=!1;E&&D&&(m=M.equals(D[1],v)?!M.hasPrevious(D[1]):M.common(E[1],v).length<M.common(D[1],v).length),E&&!m?(y.path=E[1],y.offset=E[0].text.length):D?(y.path=D[1],y.offset=0):t=null}}break;case"remove_text":var{path:i,offset:a,text:f}=n;if(0!==f.length){r=R.leaf(e,i),o=r.text.slice(0,a),i=r.text.slice(a+f.length);if(r.text=o+i,t)for(var[S,C]of z.points(t))t[C]=bc.transform(S,n)}break;case"set_node":var{path:a,properties:f,newProperties:A}=n;if(0===a.length)throw new Error("Cannot set properties on the root node!");var O,k,B=R.get(e,a);for(O in A){if("children"===O||"text"===O)throw new Error('Cannot set the "'.concat(O,'" property of nodes!'));var F=A[O];null==F?delete B[O]:B[O]=F}for(k in f)A.hasOwnProperty(k)||delete B[k];break;case"set_selection":var T=n["newProperties"];if(null==T)t=T;else{if(null==t){if(!z.isRange(T))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(T)," when there is no current selection."));t=Fc({},T)}for(var _ in T){var P=T[_];if(null==P){if("anchor"===_||"focus"===_)throw new Error('Cannot remove the "'.concat(_,'" selection property'));delete t[_]}else t[_]=P}}break;case"split_node":var{path:r,position:o,properties:i}=n;if(0===r.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(r,"] because the root node cannot be split."));var j,N,a=R.get(e,r),f=R.parent(e,r),r=r[r.length-1],o=H.isText(a)?(j=a.text.slice(0,o),N=a.text.slice(o),a.text=j,Fc(Fc({},i),{},{text:N})):(j=a.children.slice(0,o),N=a.children.slice(o),a.children=j,Fc(Fc({},i),{},{children:N}));if(f.children.splice(r+1,0,o),t)for(var[I,L]of z.points(t))t[L]=bc.transform(I,n)}return t})(e,n,t)}finally{e.children=xl(e.children),e.selection=n?Fs(n)?xl(n):n:null}}}),Xo),i),e),$c="[object Map]",Vc="[object Set]",Uc=/^\[object .+?Constructor\]$/,Wc=/^(?:0|[1-9]\d*)$/,u="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",s="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",Xo="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",e="(?:"+u+"|"+s+")?",e="[\\ufe0e\\ufe0f]?"+e+"(?:\\u200d(?:"+[r,Xo,i].join("|")+")[\\ufe0e\\ufe0f]?"+e+")*",r="(?:"+[r+u+"?",u,Xo,i,"[\\ud800-\\udfff]"].join("|")+")",Gc=RegExp(s+"(?="+s+")|"+r+e,"g"),qc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),u="object"==typeof je&&je&&je.Object===Object&&je,Xo="object"==typeof self&&self&&self.Object===Object&&self,i=u||Xo||Function("return this")();var Kc,Yc,s=Function.prototype,Xc=Object.prototype,r=i["__core-js_shared__"],Zc=(e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Jc=s.toString,Qc=Xc.hasOwnProperty,ef=Xc.toString,tf=RegExp("^"+Jc.call(Qc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),u=i.Symbol,nf=u?u.iterator:void 0,rf=Xc.propertyIsEnumerable,of=(Kc=Object.keys,Yc=Object,function(e){return Kc(Yc(e))}),Xo=ff(i,"DataView"),r=ff(i,"Map"),e=ff(i,"Promise"),s=ff(i,"Set"),u=ff(i,"WeakMap"),af=pf(Xo),uf=pf(r),sf=pf(e),lf=pf(s),cf=pf(u);function ff(e,t){e=null==e?void 0:e[t];return!yf(t=e)||Zc&&Zc in t||!(vf(t)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(t)?tf:Uc).test(pf(t))?void 0:e}var df=function(e){return ef.call(e)};function pf(e){if(null!=e){try{return Jc.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Xo&&"[object DataView]"!=df(new Xo(new ArrayBuffer(1)))||r&&df(new r)!=$c||e&&"[object Promise]"!=df(e.resolve())||s&&df(new s)!=Vc||u&&"[object WeakMap]"!=df(new u))&&(df=function(e){var t=ef.call(e),e="[object Object]"==t?e.constructor:void 0,e=e?pf(e):void 0;if(e)switch(e){case af:return"[object DataView]";case uf:return $c;case sf:return"[object Promise]";case lf:return Vc;case cf:return"[object WeakMap]"}return t});var hf=Array.isArray;function gf(e){return null!=e&&"number"==typeof(t=e.length)&&-1<t&&t%1==0&&t<=9007199254740991&&!vf(e);var t}function vf(e){e=yf(e)?ef.call(e):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function yf(e){var t=typeof e;return e&&("object"==t||"function"==t)}function mf(e){return!!e&&"object"==typeof e}function bf(e){if(e){for(var t,n=e,r=function(e){return(gf(e)?function(e){var t,n,r,o,i=hf(e)||mf(t=e)&&gf(t)&&Qc.call(t,"callee")&&(!rf.call(t,"callee")||"[object Arguments]"==ef.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=i.length,u=!!a;for(n in e)!Qc.call(e,n)||u&&("length"==n||(r=n,o=a,(o=null==o?9007199254740991:o)&&("number"==typeof r||Wc.test(r))&&-1<r&&r%1==0&&r<o))||i.push(n);return i}:function(e){if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||Xc))return of(e);var t,n,r=[];for(n in Object(e))Qc.call(e,n)&&"constructor"!=n&&r.push(n);return r})(e)}(e),o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=(t=r[o],n[t]);return a}return[]}function wf(e){if(!e)return[];if(gf(e)){i=e;if("string"==typeof i||!hf(i)&&mf(i)&&"[object String]"==ef.call(i))return i=e,qc.test(i)?i.match(Gc)||[]:i.split("");else{var t=e;var n=void 0;var r=-1,o=t.length;for(n=n||Array(o);++r<o;)n[r]=t[r];return n;return}}var i;if(nf&&e[nf]){for(var a,u=e[nf](),s=[];!(a=u.next()).done;)s.push(a.value);return s}return((i=df(e))==$c?function(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}:i==Vc?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}:bf)(e)}function xf(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Ef(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Object.keys(n).forEach(function(e){void 0===t[e]?t[e]=n[e]:xf(n[e])&&xf(t[e])&&0<Object.keys(n[e]).length&&Ef(t[e],n[e])})}var Df={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Sf(){var e="undefined"!=typeof document?document:{};return Ef(e,Df),e}var Cf={document:Df,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Af(){var e="undefined"!=typeof window?window:{};return Ef(e,Cf),e}function Of(e){return(Of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kf(e,t){return(kf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bf(e,t,n){return(Bf=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(e){}}}()?Reflect.construct:function(e,t,n){var r=[null],t=(r.push.apply(r,t),new(Function.bind.apply(e,r)));return n&&kf(t,n.prototype),t}).apply(null,arguments)}function Ff(e){var n="function"==typeof Map?new Map:void 0;return function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return Bf(e,arguments,Of(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),kf(t,e)}(e)}Tf=Ff(Array),i=Tf,(Xo=Pf).prototype=Object.create(i.prototype),(Xo.prototype.constructor=Xo).__proto__=i;var Tf,_f=Pf;function Pf(e){var t=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e=Tf.call.apply(Tf,[this].concat(e))||this),n=t.__proto__;return Object.defineProperty(t,"__proto__",{get:function(){return n},set:function(e){n.__proto__=e}}),e}function jf(e){var t=[];return(e=void 0===e?[]:e).forEach(function(e){Array.isArray(e)?t.push.apply(t,jf(e)):t.push(e)}),t}function Nf(e,t){return Array.prototype.filter.call(e,t)}function N(e,o){var t=Af(),i=Sf(),n=[];if(!o&&e instanceof _f)return e;if(!e)return new _f(n);if("string"==typeof e){var r=e.trim();if(0<=r.indexOf("<")&&0<=r.indexOf(">")){var a="div",u=(0===r.indexOf("<li")&&(a="ul"),0===r.indexOf("<tr")&&(a="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(a="tr"),0===r.indexOf("<tbody")&&(a="table"),0===r.indexOf("<option")&&(a="select"),i.createElement(a));u.innerHTML=r;for(var s=0;s<u.childNodes.length;s+=1)n.push(u.childNodes[s])}else n=function(e){if("string"!=typeof e)return[e];for(var t=[],n=(o||i).querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return t}(e.trim())}else if(e.nodeType||e===t||e===i)n.push(e);else if(Array.isArray(e)){if(e instanceof _f)return e;n=e}return new _f(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n))}function If(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jf(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){(e=e.classList).add.apply(e,r)}),this}function Lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jf(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){(e=e.classList).remove.apply(e,r)}),this}function Rf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jf(t.map(function(e){return e.split(" ")}));return 0<Nf(this,function(t){return 0<r.filter(function(e){return t.classList.contains(e)}).length}).length}function Mf(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function zf(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Hf(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];0<=i.name.indexOf("data-")&&(n[i.name.split("data-")[1].toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=i.value)}for(t in n)"false"===n[t]?n[t]=!1:"true"===n[t]?n[t]=!0:parseFloat(n[t])===+n[t]&&(n[t]*=1);return n}}function $f(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=0<=e.indexOf(i.options[a].value);else i.value=e}return this}function Vf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),N(t).is(i))a.apply(t,n);else for(var r=N(t).parents(),o=0;o<r.length;o+=1)N(r[o]).is(i)&&a.apply(r[o],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0);for(var l,o=o||!1,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(i)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:a,proxyListener:u}),d.addEventListener(p,u,o)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:a,proxyListener:s}),d.addEventListener(h,s,o)}}return this}function Uf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0);for(var a=a||!1,u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;0<=p;--p){var h=d[p];(i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i||!i)&&(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Wf(){var e=Af();return this[0]===e?e.innerWidth:0<this.length?parseFloat(this.css("width")):null}function Gf(){var e=Af();return this[0]===e?e.innerHeight:0<this.length?parseFloat(this.css("height")):null}function qf(){var e,t,n,r,o,i;return 0<this.length?(i=Af(),r=Sf(),t=(e=this[0]).getBoundingClientRect(),r=r.body,n=e.clientTop||r.clientTop||0,r=e.clientLeft||r.clientLeft||0,o=e===i?i.scrollY:e.scrollTop,i=e===i?i.scrollX:e.scrollLeft,{top:t.top+o-n,left:t.left+i-r}):null}function Kf(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Yf(){for(var e=Af(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Xf(e,t){var n,r=Af();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e)for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}function Zf(n){return n&&this.forEach(function(e,t){n.apply(e,[e,t])}),this}function Jf(e){return N(Nf(this,e))}function Qf(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function ed(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function td(e){var t,n,r=Af(),o=Sf(),i=this[0];if(i&&void 0!==e)if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=N(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0}else{if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof _f)for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0}return!1}function nd(){for(var e=Sf(),t=0;t<arguments.length;t+=1)for(var n=t<0||arguments.length<=t?void 0:arguments[t],r=0;r<this.length;r+=1)if("string"==typeof n){var o=e.createElement("div");for(o.innerHTML=n;o.firstChild;)this[r].appendChild(o.firstChild)}else if(n instanceof _f)for(var i=0;i<n.length;i+=1)this[r].appendChild(n[i]);else this[r].appendChild(n);return this}function rd(e){for(var t,n=Sf(),r=0;r<this.length;r+=1)if("string"==typeof e){var o=n.createElement("div");for(o.innerHTML=e,t=o.childNodes.length-1;0<=t;--t)this[r].insertBefore(o.childNodes[t],this[r].childNodes[0])}else if(e instanceof _f)for(t=0;t<e.length;t+=1)this[r].insertBefore(e[t],this[r].childNodes[0]);else this[r].insertBefore(e,this[r].childNodes[0]);return this}function od(e){for(var t=[],n=0;n<this.length;n+=1)null===this[n].parentNode||e&&!N(this[n].parentNode).is(e)||t.push(this[n].parentNode);return N(t)}function id(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e&&!N(r).is(e)||t.push(r),r=r.parentNode;return N(t)}function ad(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return N(t)}function ud(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!N(r[o]).is(e)||t.push(r[o]);return N(t)}function sd(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ld(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}N.fn=_f.prototype;var cd="resize scroll".split(" ");function fd(o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0!==t[0])return this.on.apply(this,[o].concat(t));for(var r=0;r<this.length;r+=1)cd.indexOf(o)<0&&(o in this[r]?this[r][o]():N(this[r]).trigger(o));return this}}var r=fd("click"),e=fd("focus"),dd=/^(?:0|[1-9]\d*)$/;var pd,hd,gd,vd=Object.prototype,yd=vd.hasOwnProperty,md=vd.toString,bd=vd.propertyIsEnumerable,wd=(pd=Object.keys,hd=Object,function(e){return pd(hd(e))}),xd=(gd=function(e,t){return e&&xd(e,t,Sd)},function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e});var Ed=Array.isArray;function Dd(e){return null!=e&&"number"==typeof(t=e.length)&&-1<t&&t%1==0&&t<=9007199254740991&&(e=typeof(t=e),!("[object Function]"==(e=!t||"object"!=e&&"function"!=e?"":md.call(t))||"[object GeneratorFunction]"==e));var t}function Sd(e){return(Dd(e)?function(e){var t,n,r,o,i,a=Ed(e)||(n=t=e)&&"object"==typeof n&&Dd(n)&&yd.call(t,"callee")&&(!bd.call(t,"callee")||"[object Arguments]"==md.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(r in e)!yd.call(e,r)||s&&("length"==r||(o=r,i=u,(i=null==i?9007199254740991:i)&&("number"==typeof o||dd.test(o))&&-1<o&&o%1==0&&o<i))||a.push(r);return a}:function(e){if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||vd))return wd(e);var t,n,r=[];for(n in Object(e))yd.call(e,n)&&"constructor"!=n&&r.push(n);return r})(e)}function Cd(e){return e}var Ad=function(e,t){return(Ed(e)?function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}:function(e,t){if(null!=e){if(!Dd(e))return gd(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););}return e})(e,"function"==typeof t?t:Cd)};let Od=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function kd(){return jd.Date.now()}var Bd=/^\s+|\s+$/g,Fd=/^[-+]0x[0-9a-f]+$/i,Td=/^0b[01]+$/i,_d=/^0o[0-7]+$/i,Pd=parseInt,s="object"==typeof je&&je&&je.Object===Object&&je,u="object"==typeof self&&self&&self.Object===Object&&self,jd=s||u||Function("return this")(),Nd=Object.prototype.toString,Id=Math.max,Ld=Math.min;function Rd(e){var t=typeof e;return e&&("object"==t||"function"==t)}function Md(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==Nd.call(t))return NaN;if("string"!=typeof(e=Rd(e)?Rd(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(Bd,"");var t=Td.test(e);return t||_d.test(e)?Pd(e.slice(2),t?2:8):Fd.test(e)?NaN:+e}function zd(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");Rd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o);var i,a,u,s,l,c,f=e,d=t,n={leading:r,maxWait:t,trailing:o},p=0,h=!1,g=!1,v=!0;if("function"!=typeof f)throw new TypeError("Expected a function");function y(e){var t=i,n=a;return i=a=void 0,p=e,s=f.apply(n,t)}function m(e){var t=e-c;return void 0===c||d<=t||t<0||g&&u<=e-p}function b(){var e,t=kd();if(m(t))return w(t);l=setTimeout(b,(e=d-(t-c),g?Ld(e,u-(t-p)):e))}function w(e){return l=void 0,v&&i?y(e):(i=a=void 0,s)}function x(){var e=kd(),t=m(e);if(i=arguments,a=this,c=e,t){if(void 0===l)return p=e=c,l=setTimeout(b,d),h?y(e):s;if(g)return l=setTimeout(b,d),y(c)}return void 0===l&&(l=setTimeout(b,d)),s}return d=Md(d)||0,Rd(n)&&(h=!!n.leading,u=(g="maxWait"in n)?Id(Md(n.maxWait)||0,d):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==l&&clearTimeout(l),i=c=a=l=void(p=0)},x.flush=function(){return void 0===l?s:w(kd())},x}const Hd={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function $d(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Vd=Array.isArray;function Ud(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Wd(e){return void 0===e}function Gd(e){return void 0!==e}const qd=$d("",{},[],void 0,void 0);function Kd(e,t){var n=e.key===t.key,r=(null==(r=e.data)?void 0:r.is)===(null==(r=t.data)?void 0:r.is);return e.sel===t.sel&&n&&r}const Yd=["create","update","remove","destroy","pre","post"];function Xd(e,t){const b={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},w=void 0!==t?t:Hd;for(const t of Yd)for(const w of e){const e=w[t];void 0!==e&&b[t].push(e)}function x(e,t){var n,r;let o,i=e.data;if(void 0!==i){const t=null==(n=i.hook)?void 0:n.init;Gd(t)&&(t(e),i=e.data)}var a=e.children,u=e.sel;if("!"===u)Wd(e.text)&&(e.text=""),e.elm=w.createComment(e.text);else if(void 0!==u){const n=u.indexOf("#"),s=u.indexOf(".",n),l=0<n?n:u.length,c=0<s?s:u.length,f=-1!==n||-1!==s?u.slice(0,Math.min(l,c)):u,d=e.elm=Gd(i)&&Gd(o=i.ns)?w.createElementNS(o,f,i):w.createElement(f,i);for(l<c&&d.setAttribute("id",u.slice(l+1,c)),0<s&&d.setAttribute("class",u.slice(c+1).replace(/\./g," ")),o=0;o<b.create.length;++o)b.create[o](qd,e);if(Vd(a))for(o=0;o<a.length;++o){const e=a[o];null!=e&&w.appendChild(d,x(e,t))}else Ud(e.text)&&w.appendChild(d,w.createTextNode(e.text));u=e.data.hook;Gd(u)&&(null!=(r=u.create)&&r.call(u,qd,e),u.insert)&&t.push(e)}else e.elm=w.createTextNode(e.text);return e.elm}function E(e,t,n,r,o,i){for(;r<=o;++r){const o=n[r];null!=o&&w.insertBefore(e,x(o,i),t)}}function D(e,t,n,r){for(;n<=r;++n){var o,i,a=t[n];if(null!=a)if(Gd(a.sel)){(function t(n){var e,r=n.data;if(void 0!==r){null!=(e=null==(r=null==r?void 0:r.hook)?void 0:r.destroy)&&e.call(r,n);for(let e=0;e<b.destroy.length;++e)b.destroy[e](n);if(void 0!==n.children)for(let e=0;e<n.children.length;++e){const b=n.children[e];null!=b&&"string"!=typeof b&&t(b)}}})(a),o=b.remove.length+1,i=function(e,t){return function(){if(0==--t){const t=w.parentNode(e);w.removeChild(t,e)}}}(a.elm,o);for(let e=0;e<b.remove.length;++e)b.remove[e](a,i);const e=null==(o=null==(o=null==a?void 0:a.data)?void 0:o.hook)?void 0:o.remove;Gd(e)?e(a,i):i()}else w.removeChild(e,a.elm)}}function S(t,n,f){var e,r,o=null==(o=n.data)?void 0:o.hook,d=(null!=(d=null==o?void 0:o.prepatch)&&d.call(o,t,n),n.elm=t.elm),p=t.children,h=n.children;if(t!==n){if(void 0!==n.data){for(let e=0;e<b.update.length;++e)b.update[e](t,n);null!=(r=null==(e=n.data.hook)?void 0:e.update)&&r.call(e,t,n)}if(Wd(n.text))if(Gd(p)&&Gd(h)){if(p!==h){var g=d;var v=p;var y=h;var m=f;let e,t,n,r=0,o=0,i=v.length-1,a=v[0],u=v[i],s=y.length-1,l=y[0],c=y[s];for(;r<=i&&o<=s;)null==a?a=v[++r]:null==u?u=v[--i]:null==l?l=y[++o]:null==c?c=y[--s]:Kd(a,l)?(S(a,l,m),a=v[++r],l=y[++o]):Kd(u,c)?(S(u,c,m),u=v[--i],c=y[--s]):Kd(a,c)?(S(a,c,m),w.insertBefore(g,a.elm,w.nextSibling(u.elm)),a=v[++r],c=y[--s]):l=(Kd(u,l)?(S(u,l,m),w.insertBefore(g,u.elm,a.elm),u=v[--i]):Wd(t=(e=void 0===e?function(t,n,r){var o,i={};for(let e=n;e<=r;++e){const n=null==(o=t[e])?void 0:o.key;void 0!==n&&(i[n]=e)}return i}(v,r,i):e)[l.key])||(n=v[t]).sel!==l.sel?w.insertBefore(g,x(l,m),a.elm):(S(n,l,m),v[t]=void 0,w.insertBefore(g,n.elm,a.elm)),y[++o]);(r<=i||o<=s)&&(r>i?E(g,null==y[s+1]?null:y[s+1].elm,y,o,s,m):D(g,v,r,i))}}else Gd(h)?(Gd(t.text)&&w.setTextContent(d,""),E(d,null,h,0,h.length-1,f)):Gd(p)?D(d,p,0,p.length-1):Gd(t.text)&&w.setTextContent(d,"");else t.text!==n.text&&(Gd(p)&&D(d,p,0,p.length-1),w.setTextContent(d,n.text));null!=(r=null==o?void 0:o.postpatch)&&r.call(o,t,n)}}return function(e,t){let n,r,o;var i,a,u,s=[];for(n=0;n<b.pre.length;++n)b.pre[n]();for(void 0===e.sel&&(a=(i=e).id?"#"+i.id:"",u=(u=i.getAttribute("class"))?"."+u.split(" ").join("."):"",e=$d(w.tagName(i).toLowerCase()+a+u,{},[],void 0,i)),Kd(e,t)?S(e,t,s):(r=e.elm,o=w.parentNode(r),x(t,s),null!==o&&(w.insertBefore(o,t.elm,w.nextSibling(r)),D(o,[e],0,0))),n=0;n<s.length;++n)s[n].data.hook.insert(s[n]);for(n=0;n<b.post.length;++n)b.post[n]();return t}}function Zd(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Vd(n)?r=n:Ud(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Vd(t)?r=t:Ud(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Ud(r[i])&&(r[i]=$d(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function t(e,n,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(let e=0;e<n.length;++e){const r=n[e].data;void 0!==r&&t(r,n[e].children,n[e].sel)}}(a,r,e),$d(e,a,r,o,void 0)}function Jd(e,t){let n;var r=t.elm,o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{}){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Qd={create:Jd,update:Jd};function ep(e,t){let n,r;var o=t.elm,i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in a=a||{},i=i||{})i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const tp={create:ep,update:ep},np=/[A-Z]/g;function rp(e,t){var n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if((o||i)&&o!==i){i=i||{};var a=n.dataset;for(r in o=o||{})i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(np,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(np,"-$&").toLowerCase(),i[r]))}}const op={create:rp,update:rp};function ip(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){var n,r,o;n=e.vnode,r=(t=t).type,(o=n.data.on)&&o[r]&&function t(n,r,o){if("function"==typeof n)n.call(r,o,r);else if("object"==typeof n)for(let e=0;e<n.length;e++)t(n[e],r,o)}(o[r],n,t)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const ap={create:ip,update:ip,destroy:ip};function up(e,t){let n,r,o;var i=t.elm,a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{})r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const sp={create:up,update:up},lp="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let cp=!1;function fp(e,t){let n,r;var o=t.elm,i=e.data.style,a=t.data.style;if((i||a)&&i!==a){var a=a||{},u="delayed"in(i=i||{});for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||function(e,t,n){var r;r=function(){e[t]=n},lp(function(){lp(r)})}(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}}const dp={pre:function(){cp=!1},create:fp,update:fp,destroy:function(e){let t,n;var r=e.elm,e=e.data.style;if(e&&(t=e.destroy))for(n in t)r.style[n]=t[n]},remove:function(r,o){var i=r.data.style;if(i&&i.remove){let e;cp||(r.elm.offsetLeft,cp=!0);const l=r.elm;let t=0;var a=i.remove;let n=0;var u=[];for(e in a)u.push(e),l.style[e]=a[e];for(var s=getComputedStyle(l)["transition-property"].split(", ");t<s.length;++t)-1!==u.indexOf(s[t])&&n++;l.addEventListener("transitionend",function(e){e.target===l&&--n,0===n&&o()})}else o()}};function pp(e,t,...n){n=function e(t,n){for(const r of t)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?e(r,n):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?n.push($d(void 0,void 0,void 0,String(r),void 0)):n.push(r));return n}(n,[]);return"function"==typeof e?e(t,n):1===n.length&&!n[0].sel&&n[0].text?Zd(e,t,n[0].text):Zd(e,t,n)}pp=pp||{};function hp(e){return null==gp?void 0:gp[e]}var gp,vp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+i+"]",u="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",l="[a-z\\xdf-\\xf6\\xf8-\\xff]",i="[^\\ud800-\\udfff"+i+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",c="\\ud83c[\\udffb-\\udfff]",f="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="[A-Z\\xc0-\\xd6\\xd8-\\xde]",i="(?:"+l+"|"+i+")",g="(?:"+u+"|"+c+")?",g="[\\ufe0e\\ufe0f]?"+g+"(?:\\u200d(?:"+[f,d,p].join("|")+")[\\ufe0e\\ufe0f]?"+g+")*",v="(?:"+["[\\u2700-\\u27bf]",d,p].join("|")+")"+g,f="(?:"+[f+u+"?",u,d,p,"[\\ud800-\\udfff]"].join("|")+")",mp=RegExp("['’]","g"),bp=RegExp(u,"g"),wp=RegExp(c+"(?="+c+")|"+f+g,"g"),xp=RegExp([h+"?"+l+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[s,h,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[s,h+i,"$"].join("|")+")",h+"?"+i+"+(?:['’](?:d|ll|m|re|s|t|ve))?",h+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d+",v].join("|"),"g"),Ep=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Dp=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,d="object"==typeof je&&je&&je.Object===Object&&je,p="object"==typeof self&&self&&self.Object===Object&&self,u=d||p||Function("return this")();gp={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"};function Sp(e){return Ep.test(e)}var Cp=Object.prototype.toString,c=u.Symbol,f=c?c.prototype:void 0,Ap=f?f.toString:void 0;function Op(e){return null==e?"":"string"==typeof(e=e)?e:"symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==Cp.call(t)?Ap?Ap.call(e):"":"0"==(t=e+"")&&1/e==-1/0?"-0":t;var t}kp=function(e,t,n){return t=t.toLowerCase(),e+(n?Bp(Op(t).toLowerCase()):t)};for(var kp,Bp=function(e){var t=Sp(e=Op(e))?Sp(t=e)?t.match(wp)||[]:t.split(""):void 0,n=t?t[0]:e.charAt(0),e=t?function(e){var t=e.length,n=e,r=1,e=t,o=-1,i=n.length;(e=i<e?i:e)<0&&(e+=i),i=e<(r=r<0?i<-r?0:i+r:r)?0:e-r>>>0,r>>>=0;for(var a=Array(i);++o<i;)a[o]=n[o+r];return a}(t).join(""):e.slice(1);return n.toUpperCase()+e},Fp=function(e){e=((e=Op(e=e))&&e.replace(yp,hp).replace(bp,"")).replace(mp,""),e=Op(e),t=e;for(var t,n=Dp.test(t)?e.match(xp)||[]:e.match(vp)||[],r=kp,o="",i=-1,a=n?n.length:0;++i<a;)o=r(o,n[i],i,n);return o},g="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Tp={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},_p={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:g?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Pp={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},jp=1;jp<20;jp++)Pp["f"+jp]=111+jp;function Np(e,v,t){!v||"byKey"in v||(t=v,v=null);function n(a){return r.some(function(e){var t,n=e,r=a;for(t in n){var o=n[t],i=void 0;if(null!=o&&(null!=(i="key"===t&&null!=r.key?r.key.toLowerCase():"which"===t?91===o&&93===r.which?91:r.which:r[t])||!1!==o)&&i!==o)return!1}return!0})}var r=(e=Array.isArray(e)?e:[e]).map(function(e){var t,n=e,r=v&&v.byKey,o={},e=(n=n.replace("++","+add")).split("+"),i=e.length;for(t in Tp)o[Tp[t]]=!1;var a,u=!0,s=!1,l=void 0;try{for(var c,f=e[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&1<d.length,h=Ip(d=p?d.slice(0,-1):d),g=Tp[h];if(1<d.length&&!g&&!_p[d]&&!Pp[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(r?o.key=h:o.which=(a=Ip(a=d),Pp[a]||a.toUpperCase().charCodeAt(0))),g&&(o[g]=!p||null)}}catch(n){s=!0,l=n}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return o});return null==t?n:n(t)}function Ip(e){return e=e.toLowerCase(),_p[e]||e}function Lp(e,t){return Np(e,{byKey:!0},t)}var Rp=Np,Mp=/^\s+|\s+$/g,zp=/^[-+]0x[0-9a-f]+$/i,Hp=/^0b[01]+$/i,$p=/^0o[0-7]+$/i,Vp=parseInt,l="object"==typeof je&&je&&je.Object===Object&&je,s="object"==typeof self&&self&&self.Object===Object&&self,Up=l||s||Function("return this")(),Wp=Object.prototype.toString,Gp=Math.max,qp=Math.min,Kp=function(){return Up.Date.now()};function Yp(e){var t=typeof e;return e&&("object"==t||"function"==t)}function Xp(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==Wp.call(t))return NaN;if("string"!=typeof(e=Yp(e)?Yp(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(Mp,"");var t=Hp.test(e);return t||$p.test(e)?Vp(e.slice(2),t?2:8):zp.test(e)?NaN:+e}function Zp(r,n,e){var o,i,a,u,s,l,c=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function p(e){var t=o,n=i;return o=i=void 0,c=e,u=r.apply(n,t)}function h(e){var t=e-l;return void 0===l||n<=t||t<0||d&&a<=e-c}function g(){var e,t=Kp();if(h(t))return v(t);s=setTimeout(g,(e=n-(t-l),d?qp(e,a-(t-c)):e))}function v(e){return s=void 0,t&&o?p(e):(o=i=void 0,u)}function y(){var e=Kp(),t=h(e);if(o=arguments,i=this,l=e,t){if(void 0===s)return c=e=l,s=setTimeout(g,n),f?p(e):u;if(d)return s=setTimeout(g,n),p(l)}return void 0===s&&(s=setTimeout(g,n)),u}return n=Xp(n)||0,Yp(e)&&(f=!!e.leading,a=(d="maxWait"in e)?Gp(Xp(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),y.cancel=function(){void 0!==s&&clearTimeout(s),o=l=i=s=void(c=0)},y.flush=function(){return void 0===s?u:v(Kp())},y}var Jp,Qp=O(function(e,t){var x="__lodash_hash_undefined__",E=9007199254740991,S="[object Arguments]",M="[object Boolean]",z="[object Date]",C="[object Function]",H="[object GeneratorFunction]",A="[object Map]",$="[object Number]",O="[object Object]",D="[object Promise]",V="[object RegExp]",k="[object Set]",U="[object String]",W="[object Symbol]",n="[object WeakMap]",G="[object ArrayBuffer]",B="[object DataView]",q="[object Float32Array]",K="[object Float64Array]",Y="[object Int8Array]",X="[object Int16Array]",Z="[object Int32Array]",J="[object Uint8Array]",Q="[object Uint8ClampedArray]",ee="[object Uint16Array]",te="[object Uint32Array]",ne=/\w*$/,re=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,F={},r=(F[S]=F["[object Array]"]=F[G]=F[B]=F[M]=F[z]=F[q]=F[K]=F[Y]=F[X]=F[Z]=F[A]=F[$]=F[O]=F[V]=F[k]=F[U]=F[W]=F[J]=F[Q]=F[ee]=F[te]=!0,F["[object Error]"]=F[C]=F[n]=!1,"object"==typeof je&&je&&je.Object===Object&&je),o="object"==typeof self&&self&&self.Object===Object&&self,r=r||o||Function("return this")(),o=t&&!t.nodeType&&t,t=o&&e&&!e.nodeType&&e,t=t&&t.exports===o;function ie(e,t){return e.set(t[0],t[1]),e}function ae(e,t){return e.add(t),e}function ue(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function se(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function le(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function i(t,n){return function(e){return t(n(e))}}function ce(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var o=Array.prototype,a=Function.prototype,u=Object.prototype,s=r["__core-js_shared__"],fe=(s=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",de=a.toString,T=u.hasOwnProperty,l=u.toString,pe=RegExp("^"+de.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s=t?r.Buffer:void 0,a=r.Symbol,he=r.Uint8Array,ge=i(Object.getPrototypeOf,Object),ve=Object.create,ye=u.propertyIsEnumerable,me=o.splice,t=Object.getOwnPropertySymbols,o=s?s.isBuffer:void 0,be=i(Object.keys,Object),s=b(r,"DataView"),c=b(r,"Map"),f=b(r,"Promise"),d=b(r,"Set"),r=b(r,"WeakMap"),p=b(Object,"create"),we=w(s),xe=w(c),Ee=w(f),De=w(d),Se=w(r),a=a?a.prototype:void 0,Ce=a?a.valueOf:void 0;function h(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function g(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function v(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){this.__data__=new g(e)}function Ae(e,t,n){var r=e[t];T.call(e,t)&&Fe(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function y(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function P(s,e,t,n,r,o,i){var a;if(void 0===(a=n?o?n(s,r,o,i):n(s):a)){if(!L(s))return s;var u,l,c,r=I(s);if(r){if(v=(l=s).length,c=l.constructor(v),v&&"string"==typeof l[0]&&T.call(l,"index")&&(c.index=l.index,c.input=l.input),a=c,!e){var f=s;var d=a;var p=-1,h=f.length;for(d=d||Array(h);++p<h;)d[p]=f[p];return d;return}}else{var g=N(s),v=g==C||g==H;if(_e(s))return l=s,e?l.slice():(c=new l.constructor(l.length),l.copy(c),c);if(g==O||g==S||v&&!o){if(se(s))return o?s:{};if(a="function"==typeof(m=v?{}:s).constructor&&!Be(m)&&L(m=ge(m))?ve(m):{},!e)return m=s,u=(u=a)&&Oe(s,R(s),u),Oe(m,ke(m),u)}else{if(!F[g])return o?s:{};a=function(e,t,n){var r,o,i,a,u=e.constructor;switch(g){case G:return j(e);case M:case z:return new u(+e);case B:return i=e,a=n?j(i.buffer):i.buffer,new i.constructor(a,i.byteOffset,i.byteLength);case q:case K:case Y:case X:case Z:case J:case Q:case ee:case te:return a=e,i=n?j(a.buffer):a.buffer,new a.constructor(i,a.byteOffset,a.length);case A:return o=e,ue(n?t(le(o),!0):le(o),ie,new o.constructor);case $:case U:return new u(e);case V:return(r=new(o=e).constructor(o.source,ne.exec(o))).lastIndex=o.lastIndex,r;case k:return r=e,ue(n?t(ce(r),!0):ce(r),ae,new r.constructor);case W:return Ce?Object(Ce.call(e)):{}}}(s,P,e)}}var y,m=(i=i||new _).get(s);if(m)return m;i.set(s,a);for(var b,w,x=(y=r?y:t?function(){var e=s,t=ke,n=R(e);if(I(e))return n;for(var r=n,o=t(e),i=-1,a=o.length,u=r.length;++i<a;)r[u+i]=o[i];return r}():R(s))||s,E=-1,D=x?x.length:0;++E<D&&!1!==(b=x[E],w=E,y&&(b=s[w=b]),void Ae(a,w,P(b,e,t,n,w,s,i))););}return a}function j(e){var t=new e.constructor(e.byteLength);return new he(t).set(new he(e)),t}function Oe(e,t,n,r){n=n||{};for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Ae(n,a,void 0===u?e[a]:u)}return n}function m(e,t){var n,e=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function b(e,t){e=null==e?void 0:e[t];return!L(t=e)||fe&&fe in t||!(Pe(t)||se(t)?pe:re).test(w(t))?void 0:e}h.prototype.clear=function(){this.__data__=p?p(null):{}},h.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},h.prototype.get=function(e){var t,n=this.__data__;return p?(t=n[e])===x?void 0:t:T.call(n,e)?n[e]:void 0},h.prototype.has=function(e){var t=this.__data__;return p?void 0!==t[e]:T.call(t,e)},h.prototype.set=function(e,t){return this.__data__[e]=p&&void 0===t?x:t,this},g.prototype.clear=function(){this.__data__=[]},g.prototype.delete=function(e){var t=this.__data__,e=y(t,e);return!(e<0||(e==t.length-1?t.pop():me.call(t,e,1),0))},g.prototype.get=function(e){var t=this.__data__,e=y(t,e);return e<0?void 0:t[e][1]},g.prototype.has=function(e){return-1<y(this.__data__,e)},g.prototype.set=function(e,t){var n=this.__data__,r=y(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},v.prototype.clear=function(){this.__data__={hash:new h,map:new(c||g),string:new h}},v.prototype.delete=function(e){return m(this,e).delete(e)},v.prototype.get=function(e){return m(this,e).get(e)},v.prototype.has=function(e){return m(this,e).has(e)},v.prototype.set=function(e,t){return m(this,e).set(e,t),this},_.prototype.clear=function(){this.__data__=new g},_.prototype.delete=function(e){return this.__data__.delete(e)},_.prototype.get=function(e){return this.__data__.get(e)},_.prototype.has=function(e){return this.__data__.has(e)},_.prototype.set=function(e,t){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!c||r.length<199)return r.push([e,t]),this;n=this.__data__=new v(r)}return n.set(e,t),this};var ke=t?i(t,Object):function(){return[]},N=function(e){return l.call(e)};function Be(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||u)}function w(e){if(null!=e){try{return de.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(s&&N(new s(new ArrayBuffer(1)))!=B||c&&N(new c)!=A||f&&N(f.resolve())!=D||d&&N(new d)!=k||r&&N(new r)!=n)&&(N=function(e){var t=l.call(e),e=t==O?e.constructor:void 0,e=e?w(e):void 0;if(e)switch(e){case we:return B;case xe:return A;case Ee:return D;case De:return k;case Se:return n}return t});var I=Array.isArray;function Te(e){return null!=e&&"number"==typeof(t=e.length)&&-1<t&&t%1==0&&t<=E&&!Pe(e);var t}var _e=o||function(){return!1};function Pe(e){e=L(e)?l.call(e):"";return e==C||e==H}function L(e){var t=typeof e;return e&&("object"==t||"function"==t)}function R(e){return(Te(e)?function(e){var t,n,r,o,i,a=I(e)||(n=t=e)&&"object"==typeof n&&Te(n)&&T.call(t,"callee")&&(!ye.call(t,"callee")||l.call(t)==S)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(r in e)!T.call(e,r)||s&&("length"==r||(o=r,i=u,(i=null==i?E:i)&&("number"==typeof o||oe.test(o))&&-1<o&&o%1==0&&o<i))||a.push(r);return a}:function(e){if(!Be(e))return be(e);var t,n=[];for(t in Object(e))T.call(e,t)&&"constructor"!=t&&n.push(t);return n})(e)}e.exports=function(e){return P(e,!0,!0)}});function eh(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}function th(t,n){var r=/\$/g;let o=[t];if(null!=n)for(const t of Object.keys(n))if("_"!==t){let e=n[t];"string"==typeof e&&(e=r[Symbol.replace](e,"$$$$")),o=function(e,t,r){const o=[];return e.forEach(e=>"string"!=typeof e?o.push(e):t[Symbol.split](e).forEach((e,t,n)=>{""!==e&&o.push(e),t<n.length-1&&o.push(r)})),o}(o,new RegExp(`%\\{${t}\\}`,"g"),e)}return o}Jp="__private_0_apply";var nh=class{constructor(e){Object.defineProperty(this,Jp,{value:rh}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(eh(this,Jp)[Jp],this):eh(this,Jp)[Jp](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,!Object.prototype.hasOwnProperty.call(n,e))throw new Error("missing string: "+e);var n=this.locale.strings[e];if("object"!=typeof n)return th(n,t);if(t&&void 0!==t.smart_count)return th(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}};function rh(e){var t;null!=e&&e.strings&&(t=this.locale,this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize)}function oh(){var r={},p=r._fns={};return r.emit=function(e,t,n,r,o,i,a){var u=function(e){for(var t=p[e]||[],n=e.indexOf(":"),r=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],o=Object.keys(p),i=0,a=o.length;i<a;i++){var u=o[i];if("*"===u&&(t=t.concat(p[u])),2===r.length&&r[0]===u){t=t.concat(p[u]);break}}return t}(e);if(u.length)for(var s=e,l=u,c=[t,n,r,o,i,a],f=0,d=l.length;f<d&&l[f];f++)l[f].event=s,l[f].apply(l[f],c)},r.on=function(e,t){p[e]||(p[e]=[]),p[e].push(t)},r.once=function(t,n){this.on(t,function e(){n.apply(this,arguments),r.off(t,e)})},r.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},r}let ih={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}["urlAlphabet"],ah=e=>crypto.getRandomValues(new Uint8Array(e)),uh=(r,o,i)=>{let a=(2<<Math.log(r.length-1)/Math.LN2)-1,u=-~(1.6*a*o/r.length);return()=>{let n="";for(;;){let e=i(u),t=u;for(;t--;)if((n+=r[e[t]&a]||"").length===o)return n}}};function sh(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t,n=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];return(e=n?-e:e)<1?(n?"-":"")+e+" B":(t=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1),e=Number(e/Math.pow(1024,t)),r=r[t],10<=e||e%1==0?(n?"-":"")+e.toFixed(0)+" "+r:(n?"-":"")+e.toFixed(1)+" "+r)}i={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>uh(e,t,ah),customRandom:uh,urlAlphabet:ih,random:ah};function lh(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}lh.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var ch=/[\/\+\.]/,fh="__private_0_publish";class dh{constructor(){Object.defineProperty(this,fh,{value:ph}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){var t={...this.state},n={...this.state,...e};this.state=n,function(e){if(Object.prototype.hasOwnProperty.call(e,"__private_0_publish"))return e;throw new TypeError("attempted to use private field on non-instance")}(this)[fh](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function ph(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}dh.VERSION="2.0.3";function hh(e){var t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}var gh={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function vh(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+e.charCodeAt(0).toString(32),"/"))+t}function yh(e){return e<10?"0"+e:e.toString()}function mh(){var e=new Date;return`${yh(e.getHours())}:${yh(e.getMinutes())}:`+yh(e.getSeconds())}var h={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${mh()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${mh()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${mh()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${mh()}]`,...t)}}},bh={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},v=i;function y(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var wh=0;function xh(e){return"__private_"+wh+++"_"+e}const Eh=v["nanoid"],{justErrorsLogger:Dh,debugLogger:Sh}=h;class Ch extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Ah extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Oh=xh("plugins"),kh=xh("storeUnsubscribe"),Bh=xh("emitter"),Fh=xh("preProcessors"),Th=xh("uploaders"),_h=xh("postProcessors"),Ph=xh("checkRestrictions"),jh=xh("checkMinNumberOfFiles"),Nh=xh("checkRequiredMetaFieldsOnFile"),Ih=xh("checkRequiredMetaFields"),Lh=xh("showOrLogErrorAndThrow"),Rh=xh("assertNewUploadAllowed"),Mh=xh("checkAndCreateFileStateObject"),zh=xh("startIfAutoProceed"),Hh=xh("addListeners"),$h=xh("updateOnlineStatus"),Vh=xh("createUpload"),Uh=xh("getUpload"),Wh=xh("removeUpload"),Gh=xh("runUpload"),d=Symbol.for("uppy test: getPlugins"),p=Symbol.for("uppy test: createUpload");class qh{constructor(e){Object.defineProperty(this,Gh,{value:a0}),Object.defineProperty(this,Wh,{value:i0}),Object.defineProperty(this,Uh,{value:o0}),Object.defineProperty(this,Vh,{value:r0}),Object.defineProperty(this,Hh,{value:n0}),Object.defineProperty(this,zh,{value:t0}),Object.defineProperty(this,Mh,{value:e0}),Object.defineProperty(this,Rh,{value:Qh}),Object.defineProperty(this,Lh,{value:Jh}),Object.defineProperty(this,Ih,{value:Zh}),Object.defineProperty(this,Nh,{value:Xh}),Object.defineProperty(this,jh,{value:Yh}),Object.defineProperty(this,Ph,{value:Kh}),Object.defineProperty(this,Oh,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,kh,{writable:!0,value:void 0}),Object.defineProperty(this,Bh,{writable:!0,value:oh()}),Object.defineProperty(this,Fh,{writable:!0,value:new Set}),Object.defineProperty(this,Th,{writable:!0,value:new Set}),Object.defineProperty(this,_h,{writable:!0,value:new Set}),Object.defineProperty(this,$h,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=bh;var t,n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new dh,logger:Dh,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Sh),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=zd(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:!(t=null==t?"undefined"!=typeof navigator?navigator.userAgent:null:t)||!(t=/Edge\/(\d+\.\d+)/.exec(t))||([t,n]=t[1].split("."),t=parseInt(t,10),n=parseInt(n,10),t<15)||15===t&&n<15063||18<t||18===t&&18218<=n,individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),y(this,kh)[kh]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),y(this,Hh)[Hh]()}emit(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];y(this,Bh)[Bh].emit(e,...n)}on(e,t){return y(this,Bh)[Bh].on(e,t),this}once(e,t){return y(this,Bh)[Bh].once(e,t),this}off(e,t){return y(this,Bh)[Bh].off(e,t),this}updateAll(t){this.iteratePlugins(e=>{e.update(t)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){var e=new nh([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const n={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},o={};Object.keys(r).forEach(e=>{var t={...r[e]};t.progress={...t.progress,...n},o[e]=t}),this.setState({files:o,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){y(this,Fh)[Fh].add(e)}removePreProcessor(e){return y(this,Fh)[Fh].delete(e)}addPostProcessor(e){y(this,_h)[_h].add(e)}removePostProcessor(e){return y(this,_h)[_h].delete(e)}addUploader(e){y(this,Th)[Th].add(e)}removeUploader(e){return y(this,Th)[Th].delete(e)}setMeta(t){const e={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(e=>{n[e]={...n[e],meta:{...n[e].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:e,files:n})}setFileMeta(e,t){var n={...this.getState().files};n[e]?(t={...n[e].meta,...t},n[e]={...n[e],meta:t},this.setState({files:n})):this.log("Was trying to set metadata for a file that has been removed: ",e)}getFile(e){return this.getState().files[e]}getFiles(){var e=this.getState()["files"];return Object.values(e)}getObjectOfFilesPerState(){var{files:e,totalProgress:t,error:n}=this.getState(),e=Object.values(e),r=e.filter(e=>{e=e.progress;return!e.uploadComplete&&e.uploadStarted}),o=e.filter(e=>!e.progress.uploadStarted),i=e.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),a=e.filter(e=>e.progress.uploadStarted),u=e.filter(e=>e.isPaused),s=e.filter(e=>e.progress.uploadComplete),l=e.filter(e=>e.error),c=r.filter(e=>!e.isPaused),f=e.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:i,uploadStartedFiles:a,pausedFiles:u,completeFiles:s,erroredFiles:l,inProgressFiles:r,inProgressNotPausedFiles:c,processingFiles:f,isUploadStarted:0<a.length,isAllComplete:100===t&&s.length===e.length&&0===f.length,isAllErrored:!!n&&l.length===e.length,isAllPaused:0!==r.length&&u.length===r.length,isUploadInProgress:0<r.length,isSomeGhost:e.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return y(this,Ph)[Ph](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){var t=this.getState()["files"];return!(!t[e]||t[e].isGhost)}addFile(e){y(this,Rh)[Rh](e);var t=this.getState()["files"];let n=y(this,Mh)[Mh](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, `+n.id)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: `+n.type),y(this,zh)[zh](),n.id}addFiles(n){y(this,Rh)[Rh]();const r={...this.getState().files},o=[],e=[];for(let t=0;t<n.length;t++)try{let e=y(this,Mh)[Mh](r,n[t]);r[e.id]&&r[e.id].isGhost&&(e={...r[e.id],data:n[t].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${e.name}, `+e.id)),r[e.id]=e,o.push(e)}catch(n){n.isRestriction||e.push(n)}if(this.setState({files:r}),o.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",o),5<o.length?this.log(`Added batch of ${o.length} files`):Object.keys(o).forEach(e=>{this.log(`Added file: ${o[e].name}
1
+ (window.webpackJsonpfeffery_utils_components=window.webpackJsonpfeffery_utils_components||[]).push([[24],{545:function(e,t,n){"use strict";n.r(t),n(757);var E=n(1),D=n.n(E),S=n(60),C=n(22),A=n(593),m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function O(e){function t(e){a&&a(e);var t=c.onCreated;t&&t(e)}function n(e){y(e.getHtml()),l&&l(e);var t=c.onChange;t&&t(e)}function r(e){var t=c.onDestroyed;g(null),t&&t(e)}var o=e.defaultContent,i=void 0===o?[]:o,a=e.onCreated,o=e.defaultHtml,u=void 0===o?"":o,o=e.value,s=void 0===o?"":o,l=e.onChange,o=e.defaultConfig,c=void 0===o?{}:o,o=e.mode,f=void 0===o?"default":o,o=e.style,o=void 0===o?{}:o,e=e.className,d=Object(E.useRef)(null),p=b(Object(E.useState)(null),2),h=p[0],g=p[1],p=b(Object(E.useState)(""),2),v=p[0],y=p[1];return Object(E.useEffect)(function(){if(null!=h&&s!==v)try{h.setHtml(s)}catch(e){console.error(e)}},[s]),Object(E.useEffect)(function(){var e;null==d.current||null!=h||null!=(e=d.current)&&e.getAttribute("data-w-e-textarea")||(e=Object(A.a)({selector:d.current,config:m(m({},c),{onCreated:t,onChange:n,onDestroyed:r}),content:i,html:u||s,mode:f}),g(e))},[h]),D.a.createElement("div",{style:o,ref:d,className:e})}function k(e){var t=e.editor,n=e.defaultConfig,r=void 0===n?{}:n,n=e.mode,o=void 0===n?"default":n,n=e.style,n=void 0===n?{}:n,e=e.className,i=Object(E.useRef)(null);return Object(E.useEffect)(function(){null!=i.current&&null!=t&&A.b({editor:t,selector:i.current,config:r,mode:o})},[t]),D.a.createElement("div",{style:n,ref:i,className:e})}var B=n(86),F=n.n(B),n=n(207);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function T(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){var t,n,r;t=o,n=i[e=e],r=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!=a(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),(e="symbol"==a(r)?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))})}return o}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e){var t,n=e.id,r=e.className,o=e.style,i=e.key,a=e.toolbarClassName,u=e.toolbarStyle,s=e.editorClassName,l=e.editorStyle,c=e.locale,f=e.mode,d=e.htmlValue,p=(e.textValue,e.toolbarConfig),h=e.editorConfig,g=e.uploadImage,v=e.uploadVideo,y=e.successMessage,m=e.errorMessage,b=e.setProps;e.loading_state,e=Object(E.useState)(null),t=2;var w=(e=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(e,t)||function(e,t){var n;if(e)return"string"==typeof e?_(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],x=e[1];return g.maxFileSize=g.maxFileSize||2097152,v.maxFileSize=v.maxFileSize||10485760,h.onMaxLength=function(e){F.a.error("zh-CN"==c?"已超出最大长度限制":"Maximum length limit exceeded",T({},m))},h.MENU_CONF=h.MENU_CONF||{},h.MENU_CONF.uploadImage=T(T({},g),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){F.a.success("".concat(e.name,"zh-CN"==c?"上传成功!":" upload successful"),T({},y))},onFailed:function(e,t){F.a.error("".concat(e.name,"zh-CN"==c?"上传失败!\n":" upload failed.\n").concat(t.message),T({},m))},onError:function(e,t,n){F.a.error("".concat(e.name,"zh-CN"==c?"上传出错!\n":" upload error.\n").concat(t,"\n").concat(n.message),T({},m))}}),h.MENU_CONF.uploadVideo=T(T({},v),{},{onBeforeUpload:function(e){return e},onProgress:function(e){console.log("progress",e)},onSuccess:function(e,t){F.a.success("".concat(e.name,"zh-CN"==c?"上传成功!":" upload successful"),T({},y))},onFailed:function(e,t){F.a.error("".concat(e.name,"zh-CN"==c?"上传失败!\n":" upload failed.\n").concat(t.message),T({},m))},onError:function(e,t,n){F.a.error("".concat(e.name,"zh-CN"==c?"上传出错!\n":" upload error.\n").concat(t,"\n").concat(n.message),T({},m))}}),Object(E.useEffect)(function(){return Object(A.c)(c),function(){null!=w&&(w.destroy(),x(null))}},[w]),D.a.createElement("div",{id:n,className:Object(C.isString)(r)?r:r?Object(S.a)(r):void 0,style:T({border:"1px solid #ccc",zIndex:9999},o),key:i},D.a.createElement(k,{className:Object(C.isString)(a)?a:a?Object(S.a)(a):void 0,style:T({borderBottom:"1px solid #ccc"},u),mode:f,editor:w,defaultConfig:p}),D.a.createElement(O,{className:Object(C.isString)(s)?s:s?Object(S.a)(s):void 0,style:l,mode:f,defaultConfig:h,value:d,onCreated:x,onChange:function(e){b({htmlValue:e.getHtml(),textValue:e.getText()})}}),D.a.createElement(B.Toaster,null))}(t.default=o).defaultProps=n.b,o.propTypes=n.c},593:function(e,xie,Eie){"use strict";!function(t){Eie.d(xie,"a",function(){return mie}),Eie.d(xie,"b",function(){return bie}),Eie.d(xie,"c",function(){return v6});var je="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function O(e){var t={exports:{}};return e(t,t.exports),t.exports}function k(e){return e&&e.Math==Math&&e}function B(e){try{return!!e()}catch(e){return!0}}function F(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function T(e){return Se(De(e),8,-1)}function L(e){if(null==e)throw ke("Can't call method on "+e);return e}function $(e){return Oe(L(e))}function V(e){return ye(e)?e:void 0}function U(e,t){return arguments.length<2?V(Fe[e])||V(ce[e]):Fe[e]&&Fe[e][t]||ce[e]&&ce[e][t]}function W(e,t){return null==(e=e[t])?void 0:He(e)}function G(e){return We(L(e))}function q(e){return"Symbol("+(void 0===e?"":e)+")_"+Xe(++Ke+Ye,36)}function K(e){var t;return qe(Ze,e)&&(Pe||"string"==typeof Ze[e])||(t="Symbol."+e,Pe&&qe(Je,e)?Ze[e]=Je[e]:Ze[e]=(Ne&&Qe?Qe:et)(t)),Ze[e]}function Y(e){return e=function(e,t){if(!Be(e)||Le(e))return e;var n,r,o=W(e,nt);if(o){if(o=we(o,e,t=void 0===t?"default":t),!Be(o)||Le(o))return o;throw tt("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&ye(n=o.toString)&&!Be(r=we(n,o)))return r;if(ye(n=o.valueOf)&&!Be(r=we(n,o)))return r;if("string"!==e&&ye(n=o.toString)&&!Be(r=we(n,o)))return r;throw $e("Can't convert object to primitive value")}(e,"string"),Le(e)?e:e+""}function X(e){return ot?rt.createElement(e):{}}function Z(e,t){return(e=ct[lt(e)])==dt||e!=ft&&(ye(t)?B(t):!!t)}function J(r){function o(e,t,n){if(this instanceof o){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return pe(r,this,arguments)}return o.prototype=r.prototype,o}function Q(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat,c=e.proto,f=s?ce:l?ce[u]:(ce[u]||{}).prototype,d=s?Fe:Fe[u]||Et(Fe,u,{})[u],p=d.prototype;for(n in t)i=!pt(s?n:u+(l?".":"#")+n,e.forced)&&f&&qe(f,n),o=d[n],i&&(a=e.noTargetGet?(a=Dt(f,n))&&a.value:f[n]),r=i&&a?a:t[n],i&&typeof o==typeof r||(i=e.bind&&i?gt(r,ce):e.wrap&&i?J(r):c&&ye(r)?ve(r):r,(e.sham||r&&r.sham||o&&o.sham)&&Et(i,"sham",!0),Et(d,n,i),c&&(qe(Fe,o=u+"Prototype")||Et(Fe,o,{}),Et(Fe[o],n,r),e.real)&&p&&!p[n]&&Et(p,n,r))}function ee(e){return St[e]||(St[e]=q(e))}function te(e,t){return(e=jt(e))<0?Nt(e+t,0):It(e,t)}function ne(u){return function(e,t,n){var r,o=$(e),i=Rt(o),a=te(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function re(e,t){var n,r=$(e),o=0,i=[];for(n in r)!qe(Mt,n)&&qe(r,n)&&Ht(i,n);for(;t.length>o;)!qe(r,n=t[o++])||~zt(i,n)||Ht(i,n);return i}function oe(){}function ie(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t}function ae(e,t,n){(t=Y(t))in e?xt.f(e,t,F(0,n)):e[t]=n}function ue(e,t,n){function r(e){return i&&En(i,"normal",e),new Sn(!0,e)}function o(e){return d?(mt(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=gt(t,f);if(p)i=e;else{if(!(n=wn(e)))throw Dn(Me(e)+" is not iterable");if(void 0!==n&&(fn.Array===n||pn[dn]===n)){for(a=0,u=Rt(e);a<u;a++)if((s=o(e[a]))&&Te(Cn,s))return;return new Sn(!1)}i=function(e,t){t=arguments.length<2?wn(e):t;if(He(t))return mt(we(t,e));throw xn(Me(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=we(l,i)).done;){try{s=o(c.value)}catch(e){En(i,"throw",e)}if("object"==typeof s&&s&&Te(Cn,s))return}new Sn(!1)}function se(e,t){var n,r=2<arguments.length?arguments[2]:void 0,o=Te(_n,this);return Tt?n=Tt(new Fn(void 0),o?kt(this):_n):(n=o?this:en(_n),Et(n,Bn,"Error")),Et(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:On(e)}(t,"")),kn&&Et(n,"stack",function(e,t){if("string"==typeof e)if(ln)for(;t--;)e=on(e,sn,"");else if(cn)return un(rn(an(e,"\n"),t),"\n");return e}(n.stack,1)),o=n,Be(t=r)&&"cause"in t&&Et(o,"cause",t.cause),ue(e,Tn,{that:r=[]}),Et(n,"errors",r),n}var le,ce=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof je&&je)||function(){return this}()||Function("return this")(),e=Function.prototype,fe=e.apply,n=e.bind,de=e.call,pe="object"==typeof Reflect&&Reflect.apply||(n?de.bind(fe):function(){return de.apply(fe,arguments)}),e=Function.prototype,n=e.bind,he=e.call,ge=n&&n.bind(he),ve=n?function(e){return e&&ge(he,e)}:function(e){return e&&function(){return he.apply(e,arguments)}},ye=function(e){return"function"==typeof e},me=!B(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),be=Function.prototype.call,we=be.bind?be.bind(be):function(){return be.apply(be,arguments)},e={}.propertyIsEnumerable,xe=Object.getOwnPropertyDescriptor,Ee={f:xe&&!e.call({1:2},1)?function(e){e=xe(this,e);return!!e&&e.enumerable}:e},De=ve({}.toString),Se=ve("".slice),Ce=ce.Object,Ae=ve("".split),Oe=B(function(){return!Ce("z").propertyIsEnumerable(0)})?function(e){return"String"==T(e)?Ae(e,""):Ce(e)}:Ce,ke=ce.TypeError,Be=function(e){return"object"==typeof e?null!==e:ye(e)},Fe={},Te=ve({}.isPrototypeOf),n=U("navigator","userAgent")||"",e=ce.process,r=ce.Deno,e=e&&e.versions||r&&r.version,r=e&&e.v8,_e=i=!(i=r?0<(o=r.split("."))[0]&&o[0]<4?1:+(o[0]+o[1]):i)&&n&&(!(o=n.match(/Edge\/(\d+)/))||74<=o[1])&&(o=n.match(/Chrome\/(\d+)/))?+o[1]:i,Pe=!!Object.getOwnPropertySymbols&&!B(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_e&&_e<41}),Ne=Pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ie=ce.Object,Le=Ne?function(e){return"symbol"==typeof e}:function(e){var t=U("Symbol");return ye(t)&&Te(t.prototype,Ie(e))},Re=ce.String,Me=function(e){try{return Re(e)}catch(e){return"Object"}},ze=ce.TypeError,He=function(e){if(ye(e))return e;throw ze(Me(e)+" is not a function")},$e=ce.TypeError,Ve=Object.defineProperty,Ue=ce["__core-js_shared__"]||function(t,n){try{Ve(ce,t,{value:n,configurable:!0,writable:!0})}catch(e){ce[t]=n}return n}("__core-js_shared__",{}),e=O(function(e){(e.exports=function(e,t){return Ue[e]||(Ue[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),We=ce.Object,Ge=ve({}.hasOwnProperty),qe=Object.hasOwn||function(e,t){return Ge(G(e),t)},Ke=0,Ye=Math.random(),Xe=ve(1..toString),Ze=e("wks"),Je=ce.Symbol,Qe=Je&&Je.for,et=Ne?Je:Je&&Je.withoutSetter||q,tt=ce.TypeError,nt=K("toPrimitive"),rt=ce.document,ot=Be(rt)&&Be(rt.createElement),it=!me&&!B(function(){return 7!=Object.defineProperty(X("div"),"a",{get:function(){return 7}}).a}),at=Object.getOwnPropertyDescriptor,ut={f:me?at:function(e,t){if(e=$(e),t=Y(t),it)try{return at(e,t)}catch(e){}if(qe(e,t))return F(!we(Ee.f,e,t),e[t])}},st=/#|\.prototype\./,lt=Z.normalize=function(e){return String(e).replace(st,".").toLowerCase()},ct=Z.data={},ft=Z.NATIVE="N",dt=Z.POLYFILL="P",pt=Z,ht=ve(ve.bind),gt=function(e,t){return He(e),void 0===t?e:ht?ht(e,t):function(){return e.apply(t,arguments)}},vt=ce.String,yt=ce.TypeError,mt=function(e){if(Be(e))return e;throw yt(vt(e)+" is not an object")},bt=ce.TypeError,wt=Object.defineProperty,xt={f:me?wt:function(e,t,n){if(mt(e),t=Y(t),mt(n),it)try{return wt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw bt("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Et=me?function(e,t,n){return xt.f(e,t,F(1,n))}:function(e,t,n){return e[t]=n,e},Dt=ut.f,St=e("keys"),r=!B(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ct=ee("IE_PROTO"),At=ce.Object,Ot=At.prototype,kt=r?At.getPrototypeOf:function(e){var t,e=G(e);return qe(e,Ct)?e[Ct]:(t=e.constructor,ye(t)&&e instanceof t?t.prototype:e instanceof At?Ot:null)},Bt=ce.String,Ft=ce.TypeError,Tt=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){mt(e);var n=t;if("object"==typeof n||ye(n))return o?r(e,t):e.__proto__=t,e;throw Ft("Can't set "+Bt(n)+" as a prototype")}}():void 0),_t=Math.ceil,Pt=Math.floor,jt=function(e){e=+e;return e!=e||0==e?0:(0<e?Pt:_t)(e)},Nt=Math.max,It=Math.min,Lt=Math.min,Rt=function(e){return 0<(e=e.length)?Lt(jt(e),9007199254740991):0},n={includes:ne(!0),indexOf:ne(!1)},Mt={},zt=n.indexOf,Ht=ve([].push),$t=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=$t.concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(e){return re(e,Vt)}},Wt={f:Object.getOwnPropertySymbols},Gt=ve([].concat),qt=U("Reflect","ownKeys")||function(e){var t=Ut.f(mt(e)),n=Wt.f;return n?Gt(t,n(e)):t},Kt=Object.keys||function(e){return re(e,$t)},Yt=me?Object.defineProperties:function(e,t){mt(e);for(var n,r=$(t),o=Kt(t),i=o.length,a=0;a<i;)xt.f(e,n=o[a++],r[n]);return e},Xt=U("document","documentElement"),Zt=ee("IE_PROTO"),Jt=function(e){return"<script>"+e+"<\/script>"},Qt=function(){try{le=new ActiveXObject("htmlfile")}catch(e){}var e,t;Qt="undefined"==typeof document||document.domain&&le?ie(le):((t=X("iframe")).style.display="none",Xt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F);for(var n=$t.length;n--;)delete Qt.prototype[$t[n]];return Qt()},en=(Mt[Zt]=!0,Object.create||function(e,t){var n;return null!==e?(oe.prototype=mt(e),n=new oe,oe.prototype=null,n[Zt]=e):n=Qt(),void 0===t?n:Yt(n,t)}),tn=ce.Array,nn=Math.max,rn=function(e,t,n){for(var r=Rt(e),o=te(t,r),i=te(void 0===n?r:n,r),a=tn(nn(i-o,0)),u=0;o<i;o++,u++)ae(a,u,e[o]);return a.length=u,a},on=ve("".replace),an=ve("".split),un=ve([].join),o=String(Error("zxcasd").stack),sn=/\n\s*at [^:]*:[^\n]*/,ln=sn.test(o),cn=/@[^\n]*\n/.test(o)&&!/zxcasd/.test(o),fn={},dn=K("iterator"),pn=Array.prototype,i={},hn=(i[K("toStringTag")]="z","[object z]"===String(i)),gn=K("toStringTag"),vn=ce.Object,yn="Arguments"==T(function(){return arguments}()),mn=hn?T:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=vn(e),gn))?t:yn?T(e):"Object"==(t=T(e))&&ye(e.callee)?"Arguments":t},bn=K("iterator"),wn=function(e){if(null!=e)return W(e,bn)||W(e,"@@iterator")||fn[mn(e)]},xn=ce.TypeError,En=function(e,t,n){var r,o;mt(e);try{if(!(r=W(e,"return"))){if("throw"===t)throw n;return n}r=we(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return mt(r),n},Dn=ce.TypeError,Sn=function(e,t){this.stopped=e,this.result=t},Cn=Sn.prototype,An=ce.String,On=function(e){if("Symbol"===mn(e))throw TypeError("Cannot convert a Symbol value to a string");return An(e)},kn=!B(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",F(1,7)),7!==e.stack)}),Bn=K("toStringTag"),Fn=ce.Error,Tn=[].push,_n=((Tt||function(e,t){for(var n=qt(t),r=xt.f,o=ut.f,i=0;i<n.length;i++){var a=n[i];qe(e,a)||r(e,a,o(t,a))}})(se,Fn),se.prototype=en(Fn.prototype,{constructor:F(1,se),message:F(1,""),name:F(1,"AggregateError")})),Pn=(Q({global:!0},{AggregateError:se}),ve(Function.toString));ye(Ue.inspectSource)||(Ue.inspectSource=function(e){return Pn(e)});var jn,Nn,In,Ln,Rn,Mn,zn,Hn,$n=Ue.inspectSource,r=ce.WeakMap,n=ye(r)&&/native code/.test($n(r)),Vn=ce.TypeError,o=ce.WeakMap;zn=n||Ue.state?(jn=Ue.state||(Ue.state=new o),Nn=ve(jn.get),In=ve(jn.has),Ln=ve(jn.set),Rn=function(e,t){if(In(jn,e))throw new Vn("Object already initialized");return t.facade=e,Ln(jn,e,t),t},Mn=function(e){return Nn(jn,e)||{}},function(e){return In(jn,e)}):(Hn=ee("state"),Mt[Hn]=!0,Rn=function(e,t){if(qe(e,Hn))throw new Vn("Object already initialized");return t.facade=e,Et(e,Hn,t),t},Mn=function(e){return qe(e,Hn)?e[Hn]:{}},function(e){return qe(e,Hn)});function Un(e,t,n,r){r&&r.enumerable?e[t]=n:Et(e,t,n)}var i={set:Rn,get:Mn,has:zn,enforce:function(e){return zn(e)?Mn(e):Rn(e,{})},getterFor:function(t){return function(e){if(Be(e)&&(e=Mn(e)).type===t)return e;throw Vn("Incompatible receiver, "+t+" required")}}},r=Function.prototype,n=me&&Object.getOwnPropertyDescriptor,o=qe(r,"name"),o={EXISTS:o,PROPER:o&&"something"===function(){}.name,CONFIGURABLE:o&&(!me||n(r,"name").configurable)},Wn=K("iterator"),n=!1;[].keys&&("next"in(r=[].keys())?(r=kt(kt(r)))!==Object.prototype&&(Jn=r):n=!0);function Gn(e,t,n,r){e&&(n=n?e:e.prototype,qe(n,tr)||er(n,tr,{configurable:!0,value:t}),r)&&!hn&&Et(n,"toString",Qn)}function qn(){return this}function Kn(){return this}function Yn(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!or&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=en(nr,{next:F(1,r)}),Gn(g,s,!1,!0),fn[s]=qn;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[ir]||d["@@iterator"]||o&&d[o],h=!or&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=kt(g.call(new e)))!==Object.prototype&&s.next&&(Gn(s,r,!0,!0),fn[r]=Kn),rr&&"values"==o&&p&&"values"!==p.name&&(f=!0,h=function(){return we(p,this)}),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!or&&!f&&c in d||Un(d,c,l[c]);else Q({target:t,proto:!0,forced:or||f},l);a&&d[ir]!==h&&Un(d,ir,h,{name:o}),fn[t]=h}function Xn(o){return function(e,t){var n,e=On(L(e)),t=jt(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=lr(e,t))<55296||56319<n||t+1===r||(r=lr(e,t+1))<56320||57343<r?o?sr(e,t):n:o?cr(e,t,t+2):r-56320+(n-55296<<10)+65536}}var Zn,Jn=null==Jn||B(function(){var e={};return Jn[Wn].call(e)!==e})?{}:en(Jn),r=(ye(Jn[Wn])||Un(Jn,Wn,function(){return this}),{IteratorPrototype:Jn,BUGGY_SAFARI_ITERATORS:n}),Qn=hn?{}.toString:function(){return"[object "+mn(this)+"]"},er=xt.f,tr=K("toStringTag"),nr=r.IteratorPrototype,rr=o.PROPER,or=r.BUGGY_SAFARI_ITERATORS,ir=K("iterator"),ar=i.set,ur=i.getterFor("Array Iterator"),sr=(Yn(Array,"Array",function(e,t){ar(this,{type:"Array Iterator",target:$(e),index:0,kind:t})},function(){var e=ur(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),fn.Arguments=fn.Array,ve("".charAt)),lr=ve("".charCodeAt),cr=ve("".slice),fr=(Xn(!1),Xn(!0)),dr=i.set,pr=i.getterFor("String Iterator"),n=(Yn(String,"String",function(e){dr(this,{type:"String Iterator",string:On(e),index:0})},function(){var e=pr(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=fr(t,n),e.index+=t.length,{value:t,done:!1})}),Fe.AggregateError),hr=K("toStringTag");for(Zn in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var gr=ce[Zn],gr=gr&&gr.prototype;gr&&mn(gr)!==hr&&Et(gr,hr,Zn),fn[Zn]=fn.Array}function vr(e){return e&&e.Math==Math&&e}function yr(e){try{return!!e()}catch(e){return!0}}function mr(e){return Mr(Rr(e),8,-1)}function br(e){if(null==e)throw Vr("Can't call method on "+e);return e}function wr(e){return $r(br(e))}function xr(e,t){return arguments.length<2?(n=Br[e],Ur(n)?n:void 0):Br[e]&&Br[e][t];var n}function Er(e,t){return null==(e=e[t])?void 0:to(e)}function Dr(t,n){try{ro(Br,t,{value:n,configurable:!0,writable:!0})}catch(e){Br[t]=n}return n}function Sr(e){return io(br(e))}function Cr(e){return"Symbol("+(void 0===e?"":e)+")_"+co(++so+lo,36)}function Ar(e){var t;return uo(fo,e)&&(Kr||"string"==typeof fo[e])||(t="Symbol."+e,Kr&&uo(po,e)?fo[e]=po[e]:fo[e]=(Yr&&ho?ho:go)(t)),fo[e]}function Or(e){return wo?bo.createElement(e):{}}var kr=n,Br=vr("object"==typeof globalThis&&globalThis)||vr("object"==typeof window&&window)||vr("object"==typeof self&&self)||vr("object"==typeof je&&je)||function(){return this}()||Function("return this")(),o=!yr(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Fr=Function.prototype.call,Tr=Fr.bind?Fr.bind(Fr):function(){return Fr.apply(Fr,arguments)},r={}.propertyIsEnumerable,_r=Object.getOwnPropertyDescriptor,Pr={f:_r&&!r.call({1:2},1)?function(e){e=_r(this,e);return!!e&&e.enumerable}:r},jr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},n=Function.prototype,r=n.bind,Nr=n.call,Ir=r&&r.bind(Nr),Lr=r?function(e){return e&&Ir(Nr,e)}:function(e){return e&&function(){return Nr.apply(e,arguments)}},Rr=Lr({}.toString),Mr=Lr("".slice),zr=Br.Object,Hr=Lr("".split),$r=yr(function(){return!zr("z").propertyIsEnumerable(0)})?function(e){return"String"==mr(e)?Hr(e,""):zr(e)}:zr,Vr=Br.TypeError,Ur=function(e){return"function"==typeof e},Wr=function(e){return"object"==typeof e?null!==e:Ur(e)},Gr=Lr({}.isPrototypeOf),n=xr("navigator","userAgent")||"",r=Br.process,a=Br.Deno,r=r&&r.versions||a&&a.version,a=r&&r.v8,qr=u=!(u=a?0<(Xo=a.split("."))[0]&&Xo[0]<4?1:+(Xo[0]+Xo[1]):u)&&n&&(!(Xo=n.match(/Edge\/(\d+)/))||74<=Xo[1])&&(Xo=n.match(/Chrome\/(\d+)/))?+Xo[1]:u,Kr=!!Object.getOwnPropertySymbols&&!yr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qr&&qr<41}),Yr=Kr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xr=Br.Object,Zr=Yr?function(e){return"symbol"==typeof e}:function(e){var t=xr("Symbol");return Ur(t)&&Gr(t.prototype,Xr(e))},Jr=Br.String,Qr=function(e){try{return Jr(e)}catch(e){return"Object"}},eo=Br.TypeError,to=function(e){if(Ur(e))return e;throw eo(Qr(e)+" is not a function")},no=Br.TypeError,ro=Object.defineProperty,oo=Br["__core-js_shared__"]||Dr("__core-js_shared__",{}),r=O(function(e){(e.exports=function(e,t){return oo[e]||(oo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),io=Br.Object,ao=Lr({}.hasOwnProperty),uo=Object.hasOwn||function(e,t){return ao(Sr(e),t)},so=0,lo=Math.random(),co=Lr(1..toString),fo=r("wks"),po=Br.Symbol,ho=po&&po.for,go=Yr?po:po&&po.withoutSetter||Cr,vo=Br.TypeError,yo=Ar("toPrimitive"),mo=function(e){e=function(e,t){if(!Wr(e)||Zr(e))return e;var n,r,o=Er(e,yo);if(o){if(o=Tr(o,e,t=void 0===t?"default":t),!Wr(o)||Zr(o))return o;throw vo("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&Ur(n=o.toString)&&!Wr(r=Tr(n,o)))return r;if(Ur(n=o.valueOf)&&!Wr(r=Tr(n,o)))return r;if("string"!==e&&Ur(n=o.toString)&&!Wr(r=Tr(n,o)))return r;throw no("Can't convert object to primitive value")}(e,"string");return Zr(e)?e:e+""},bo=Br.document,wo=Wr(bo)&&Wr(bo.createElement),xo=!o&&!yr(function(){return 7!=Object.defineProperty(Or("div"),"a",{get:function(){return 7}}).a}),Eo=Object.getOwnPropertyDescriptor,Do={f:o?Eo:function(e,t){if(e=wr(e),t=mo(t),xo)try{return Eo(e,t)}catch(e){}if(uo(e,t))return jr(!Tr(Pr.f,e,t),e[t])}},So=Br.String,Co=Br.TypeError,Ao=function(e){if(Wr(e))return e;throw Co(So(e)+" is not an object")},Oo=Br.TypeError,ko=Object.defineProperty,Bo={f:o?ko:function(e,t,n){if(Ao(e),t=mo(t),Ao(n),xo)try{return ko(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Oo("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Fo=o?function(e,t,n){return Bo.f(e,t,jr(1,n))}:function(e,t,n){return e[t]=n,e},To=Lr(Function.toString);Ur(oo.inspectSource)||(oo.inspectSource=function(e){return To(e)});function _o(e){return qo[e]||(qo[e]=Cr(e))}function Po(u){return function(e,t,n){var r,o=wr(e),i=si(o),a=ii(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function jo(e,t){var n,r=wr(e),o=0,i=[];for(n in r)!uo(Ko,n)&&uo(r,n)&&ci(i,n);for(;t.length>o;)!uo(r,n=t[o++])||~li(i,n)||ci(i,n);return i}function No(e,t){for(var n=vi(t),r=Bo.f,o=Do.f,i=0;i<n.length;i++){var a=n[i];uo(e,a)||r(e,a,o(t,a))}}function Io(e,t){return(e=bi[mi(e)])==xi||e!=wi&&(Ur(t)?yr(t):!!t)}function Lo(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?Br:s?Br[a]||Dr(a,{}):(Br[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=Di(n,r))&&i.value:n[r],!Ei(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;No(o,i)}(e.sham||i&&i.sham)&&Fo(o,"sham",!0),Qo(n,r,o,e)}}var Ro,Mo,zo,Ho,$o,Vo,Uo,Wo,Go=oo.inspectSource,a=Br.WeakMap,n=Ur(a)&&/native code/.test(Go(a)),qo=r("keys"),Ko={},Yo=Br.TypeError,Xo=Br.WeakMap,Zo=(Uo=n||oo.state?(Ro=oo.state||(oo.state=new Xo),Mo=Lr(Ro.get),zo=Lr(Ro.has),Ho=Lr(Ro.set),$o=function(e,t){if(zo(Ro,e))throw new Yo("Object already initialized");return t.facade=e,Ho(Ro,e,t),t},Vo=function(e){return Mo(Ro,e)||{}},function(e){return zo(Ro,e)}):(Wo=_o("state"),Ko[Wo]=!0,$o=function(e,t){if(uo(e,Wo))throw new Yo("Object already initialized");return t.facade=e,Fo(e,Wo,t),t},Vo=function(e){return uo(e,Wo)?e[Wo]:{}},function(e){return uo(e,Wo)}),{set:$o,get:Vo,has:Uo,enforce:function(e){return Uo(e)?Vo(e):$o(e,{})},getterFor:function(t){return function(e){if(Wr(e)&&(e=Vo(e)).type===t)return e;throw Yo("Incompatible receiver, "+t+" required")}}}),u=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,n=uo(u,"name"),Jo={EXISTS:n,PROPER:n&&"something"===function(){}.name,CONFIGURABLE:n&&(!o||a(u,"name").configurable)},Qo=O(function(e){var s=Jo.CONFIGURABLE,t=Zo.get,l=Zo.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;Ur(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!uo(n,"name")||s&&n.name!==r)&&Fo(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==Br?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Fo(e,t,n)):a?e[t]=n:Dr(t,n)})(Function.prototype,"toString",function(){return Ur(this)&&t(this).source||Go(this)})}),ei=Math.ceil,ti=Math.floor,ni=function(e){e=+e;return e!=e||0==e?0:(0<e?ti:ei)(e)},ri=Math.max,oi=Math.min,ii=function(e,t){e=ni(e);return e<0?ri(e+t,0):oi(e,t)},ai=Math.min,ui=function(e){return 0<e?ai(ni(e),9007199254740991):0},si=function(e){return ui(e.length)},li=(Po(!0),Po(!1)),ci=Lr([].push),fi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],di=fi.concat("length","prototype"),pi={f:Object.getOwnPropertyNames||function(e){return jo(e,di)}},hi={f:Object.getOwnPropertySymbols},gi=Lr([].concat),vi=xr("Reflect","ownKeys")||function(e){var t=pi.f(Ao(e)),n=hi.f;return n?gi(t,n(e)):t},yi=/#|\.prototype\./,mi=Io.normalize=function(e){return String(e).replace(yi,".").toLowerCase()},bi=Io.data={},wi=Io.NATIVE="N",xi=Io.POLYFILL="P",Ei=Io,Di=Do.f,Xo={};Xo[Ar("toStringTag")]="z";function Si(){var e=Ao(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function Ci(){}function Ai(e){e.write(Mi("")),e.close();var t=e.parentWindow.Object;return e=null,t}var Oi,n="[object z]"===String(Xo),ki=Ar("toStringTag"),Bi=Br.Object,Fi="Arguments"==mr(function(){return arguments}()),Ti=n?mr:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Bi(e),ki))?t:Fi?mr(e):"Object"==(t=mr(e))&&Ur(e.callee)?"Arguments":t},_i=Br.String,Pi=function(e){if("Symbol"===Ti(e))throw TypeError("Cannot convert a Symbol value to a string");return _i(e)},ji=Br.RegExp,a=yr(function(){var e=ji("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),u=a||yr(function(){return!ji("a","y").sticky}),Xo={BROKEN_CARET:a||yr(function(){var e=ji("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:u,UNSUPPORTED_Y:a},Ni=Object.keys||function(e){return jo(e,fi)},Ii=o?Object.defineProperties:function(e,t){Ao(e);for(var n,r=wr(t),o=Ni(t),i=o.length,a=0;a<i;)Bo.f(e,n=o[a++],r[n]);return e},Li=xr("document","documentElement"),Ri=_o("IE_PROTO"),Mi=function(e){return"<script>"+e+"<\/script>"},zi=function(){try{Oi=new ActiveXObject("htmlfile")}catch(e){}var e,t;zi="undefined"==typeof document||document.domain&&Oi?Ai(Oi):((t=Or("iframe")).style.display="none",Li.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Mi("document.F=Object")),e.close(),e.F);for(var n=fi.length;n--;)delete zi.prototype[fi[n]];return zi()};Ko[Ri]=!0;function Hi(o){return function(e,t){var n,e=Pi(br(e)),t=ni(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=ha(e,t))<55296||56319<n||t+1===r||(r=ha(e,t+1))<56320||57343<r?o?pa(e,t):n:o?ga(e,t,t+2):r-56320+(n-55296<<10)+65536}}function $i(e,t){var n=e.exec;if(Ur(n))return null!==(n=Tr(n,e,t))&&Ao(n),n;if("RegExp"===mr(e))return Tr(fa,e,t);throw ya("RegExp#exec called on incompatible receiver")}function Vi(e,t,n){function r(e){return i&&Ha(i,"normal",e),new Va(!0,e)}function o(e){return d?(Ao(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=ja(t,f);if(p)i=e;else{if(!(n=Ma(e)))throw $a(Qr(e)+" is not iterable");if(void 0!==n&&(Na.Array===n||La[Ia]===n)){for(a=0,u=si(e);a<u;a++)if((s=o(e[a]))&&Gr(Ua,s))return;return new Va(!1)}i=function(e,t){t=arguments.length<2?Ma(e):t;if(to(t))return Ao(Tr(t,e));throw za(Qr(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=Tr(l,i)).done;){try{s=o(c.value)}catch(e){Ha(i,"throw",e)}if("object"==typeof s&&s&&Gr(Ua,s))return}new Va(!1)}function Ui(e,t){var n,r=2<arguments.length?arguments[2]:void 0,o=Gr(Ya,this);return Sa?n=Sa(new qa(void 0),o?xa(this):Ya):(n=o?this:Zi(Ya),Fo(n,Ga,"Error")),Fo(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Pi(e)}(t,"")),Wa&&Fo(n,"stack",function(e,t){if("string"==typeof e)if(Ta)for(;t--;)e=Oa(e,Fa,"");else if(_a)return Ba(function(e,t){for(var n,r,o,i=si(e),a=ii(t,i),u=ii(i,i),s=Ca(Aa(u-a,0)),l=0;a<u;a++,l++)n=s,o=l,r=e[a],(o=mo(o))in n?Bo.f(n,o,jr(0,r)):n[o]=r;return s.length=l,s}(ka(e,"\n"),t),"\n");return e}(n.stack,1)),o=n,Wr(t=r)&&"cause"in t&&Fo(o,"cause",t.cause),Vi(e,Ka,{that:r=[]}),Fo(n,"errors",r),n}var Wi,Gi,qi,Ki,Yi,Xi,Zi=Object.create||function(e,t){var n;return null!==e?(Ci.prototype=Ao(e),n=new Ci,Ci.prototype=null,n[Ri]=e):n=zi(),void 0===t?n:Ii(n,t)},Ji=Br.RegExp,u=yr(function(){var e=Ji(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),Qi=Br.RegExp,a=yr(function(){var e=Qi("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),ea=Zo.get,ta=r("native-string-replace",String.prototype.replace),na=RegExp.prototype.exec,ra=na,oa=Lr("".charAt),ia=Lr("".indexOf),aa=Lr("".replace),ua=Lr("".slice),sa=(r=/b*/g,Tr(na,s=/a/,"a"),Tr(na,r,"a"),0!==s.lastIndex||0!==r.lastIndex),la=Xo.BROKEN_CARET,ca=void 0!==/()??/.exec("")[1],fa=ra=sa||ca||la||u||a?function(e){var t,n,r,o,i,a,u=this,s=ea(u),e=Pi(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=Tr(ra,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=la&&u.sticky,f=Tr(Si,u),s=u.source,d=0,p=e;if(l&&(f=aa(f,"y",""),-1===ia(f,"g")&&(f+="g"),p=ua(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==oa(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),ca&&(t=new RegExp("^"+s+"$(?!\\s)",f)),sa&&(n=u.lastIndex),r=Tr(na,l?t:u,p),l?r?(r.input=ua(r.input,d),r[0]=ua(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:sa&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),ca&&r&&1<r.length&&Tr(ta,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=Zi(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:ra,da=(Lo({target:"RegExp",proto:!0,forced:/./.exec!==fa},{exec:fa}),Ar("species"),RegExp.prototype),pa=Lr("".charAt),ha=Lr("".charCodeAt),ga=Lr("".slice),s={codeAt:Hi(!1),charAt:Hi(!0)},va=s.charAt,ya=Br.TypeError,Xo=(Yi=Ar(Wi="match"),Xi=!yr(function(){var e={};return e[Yi]=function(){return 7},7!=""[Wi](e)}),r=Xi&&!yr(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[Yi](""),!e}),Xi&&r||(Gi=Lr(/./[Yi]),qi=Yi,Ki=""[Wi],r=[function(e){var t=br(this),n=null==e?void 0:Er(e,qi);return n?Tr(n,e,t):new RegExp(e)[qi](Pi(t))},function(e){var t,n,r,o,i=Ao(this),a=Pi(e),u=(e=i,t=a,o=Lr(Ki),(u=e.exec)===fa||u===da.exec?Xi&&!r?{done:!0,value:Gi(e,t,n)}:{done:!0,value:o(t,e,n)}:{done:!1});if(u.done)return u.value;if(!i.global)return $i(i,a);for(var s,l=i.unicode,c=[],f=i.lastIndex=0;null!==(d=$i(i,a));){var d=Pi(d[0]);""===(c[f]=d)&&(i.lastIndex=(d=a,(s=ui(i.lastIndex))+(l?va(d,s).length:1))),f++}return 0===f?null:c}],Qo(String.prototype,Wi,r[0]),Qo(da,Yi,r[1])),Lo({global:!0},{globalThis:Br}),!yr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ma=_o("IE_PROTO"),ba=Br.Object,wa=ba.prototype,xa=Xo?ba.getPrototypeOf:function(e){var t,e=Sr(e);return uo(e,ma)?e[ma]:(t=e.constructor,Ur(t)&&e instanceof t?t.prototype:e instanceof ba?wa:null)},Ea=Br.String,Da=Br.TypeError,Sa=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=Lr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){Ao(e);var n=t;if("object"==typeof n||Ur(n))return o?r(e,t):e.__proto__=t,e;throw Da("Can't set "+Ea(n)+" as a prototype")}}():void 0),Ca=Br.Array,Aa=Math.max,Oa=Lr("".replace),ka=Lr("".split),Ba=Lr([].join),u=String(Error("zxcasd").stack),Fa=/\n\s*at [^:]*:[^\n]*/,Ta=Fa.test(u),_a=/@[^\n]*\n/.test(u)&&!/zxcasd/.test(u),Pa=Lr(Lr.bind),ja=function(e,t){return to(e),void 0===t?e:Pa?Pa(e,t):function(){return e.apply(t,arguments)}},Na={},Ia=Ar("iterator"),La=Array.prototype,Ra=Ar("iterator"),Ma=function(e){if(null!=e)return Er(e,Ra)||Er(e,"@@iterator")||Na[Ti(e)]},za=Br.TypeError,Ha=function(e,t,n){var r,o;Ao(e);try{if(!(r=Er(e,"return"))){if("throw"===t)throw n;return n}r=Tr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ao(r),n},$a=Br.TypeError,Va=function(e,t){this.stopped=e,this.result=t},Ua=Va.prototype,Wa=!yr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",jr(1,7)),7!==e.stack)}),Ga=Ar("toStringTag"),qa=Br.Error,Ka=[].push,Ya=((Sa||No)(Ui,qa),Ui.prototype=Zi(qa.prototype,{constructor:jr(1,Ui),message:jr(1,""),name:jr(1,"AggregateError")})),Xa=(Lo({global:!0},{AggregateError:Ui}),Ar("unscopables")),Za=Array.prototype;null==Za[Xa]&&Bo.f(Za,Xa,{configurable:!0,value:Zi(null)});function Ja(e){Za[Xa][e]=!0}function Qa(e,t,n){e&&!uo(e=n?e:e.prototype,au)&&iu(e,au,{configurable:!0,value:t})}function eu(){return this}function tu(){return this}function nu(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!fu&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=Zi(uu,{next:jr(1,r)}),Qa(g,s,!1),Na[s]=eu;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[du]||d["@@iterator"]||o&&d[o],h=!fu&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=xa(g.call(new e)))!==Object.prototype&&s.next&&(xa(s)!==cu&&(Sa?Sa(s,cu):Ur(s[du])||Qo(s,du,tu)),Qa(s,r,!0)),su&&"values"==o&&p&&"values"!==p.name&&(lu?Fo(d,"name","values"):(f=!0,h=function(){return Tr(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!fu&&!f&&c in d||Qo(d,c,l[c]);else Lo({target:t,proto:!0,forced:fu||f},l);return d[du]!==h&&Qo(d,du,h,{name:o}),Na[t]=h,l}var ru,ou=Ar("iterator"),a=!1,u=([].keys&&("next"in(r=[].keys())?(Xo=xa(xa(r)))!==Object.prototype&&(ru=Xo):a=!0),null!=ru&&!yr(function(){var e={};return ru[ou].call(e)!==e})||(ru={}),Ur(ru[ou])||Qo(ru,ou,function(){return this}),{IteratorPrototype:ru,BUGGY_SAFARI_ITERATORS:a}),iu=Bo.f,au=Ar("toStringTag"),uu=u.IteratorPrototype,su=Jo.PROPER,lu=Jo.CONFIGURABLE,cu=u.IteratorPrototype,fu=u.BUGGY_SAFARI_ITERATORS,du=Ar("iterator"),pu=Zo.set,hu=Zo.getterFor("Array Iterator"),gu=nu(Array,"Array",function(e,t){pu(this,{type:"Array Iterator",target:wr(e),index:0,kind:t})},function(){var e=hu(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),vu=(Na.Arguments=Na.Array,Ja("keys"),Ja("values"),Ja("entries"),s.charAt),yu=Zo.set,mu=Zo.getterFor("String Iterator");nu(String,"String",function(e){yu(this,{type:"String Iterator",string:Pi(e),index:0})},function(){var e=mu(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=vu(t,n),e.index+=t.length,{value:t,done:!1})});function bu(e,t){if(e){if(e[Eu]!==Su)try{Fo(e,Eu,Su)}catch(t){e[Eu]=Su}if(e[Du]||Fo(e,Du,t),xu[t])for(var n in gu)if(e[n]!==gu[n])try{Fo(e,n,gu[n])}catch(t){e[n]=gu[n]}}}var wu,xu={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},r=Or("span").classList,Xo=r&&r.constructor&&r.constructor.prototype,a=Xo===Object.prototype?void 0:Xo,Eu=Ar("iterator"),Du=Ar("toStringTag"),Su=gu.values;for(wu in xu)bu(Br[wu]&&Br[wu].prototype,wu);function Cu(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Au(){void 0===kr&&(window.AggregateError=function(e,t){t=new Error(t);return t.errors=e,t})}bu(a,"DOMTokenList"),void 0===t?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),Cu(),Au()):t&&null!=(u=t.navigator)&&u.userAgent.match("QQBrowser")&&(Cu(),Au());function Ou(){}function ku(e){if(!ye(e))return!1;try{return $u(Ou,Hu,e),!0}catch(e){return!1}}function Bu(e,t){return new(void 0===(n=zu(e=e)&&(n=e.constructor,Gu(n)&&(n===Ku||zu(n.prototype))||Be(n)&&null===(n=n[qu]))?void 0:n)?Ku:n)(0===t?0:t);var n}function Fu(e){var t=Fe.Symbol||(Fe.Symbol={});qe(t,e)||ns(t,e,{value:ts.f(e)})}function Tu(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=G(e),u=Oe(a),s=gt(t,n),l=Rt(u),c=0,t=r||Bu,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:rs(f,o)}else switch(d){case 4:return!1;case 7:rs(f,o)}return y?-1:g||v?v:f}}function _u(e,t){var n=ms[e]=en(cs);return as(n,{type:"Symbol",tag:e,description:t}),me||(n.description=t),n}function Pu(e,t,n){return e===ss&&Pu(bs,t,n),mt(e),t=Y(t),mt(n),(qe(ms,t)?(n.enumerable?(qe(e,is)&&e[is][t]&&(e[is][t]=!1),n=en(n,{enumerable:F(0,!1)})):(qe(e,is)||hs(e,is,F(1,{})),e[is][t]=!0),Ds):hs)(e,t,n)}function ju(t,e){mt(t);var n=$(e),e=Kt(n).concat(Ru(n));return os(e,function(e){me&&!we(Nu,n,e)||Pu(t,e,n[e])}),t}function Nu(e){var e=Y(e),t=we(vs,this,e);return!(this===ss&&qe(ms,e)&&!qe(bs,e))&&(!(t||!qe(this,e)||!qe(ms,e)||qe(this,is)&&this[is][e])||t)}function Iu(e,t){var n,e=$(e),t=Y(t);if(e!==ss||!qe(ms,t)||qe(bs,t))return!(n=ps(e,t))||!qe(ms,t)||qe(e,is)&&e[is][t]||(n.enumerable=!0),n}function Lu(e){var e=gs($(e)),t=[];return os(e,function(e){qe(ms,e)||qe(Mt,e)||ys(t,e)}),t}function Ru(e){var t=e===ss,e=gs(t?bs:$(e)),n=[];return os(e,function(e){!qe(ms,e)||t&&!qe(ss,e)||ys(n,ms[e])}),n}var Mu,zu=Array.isArray||function(e){return"Array"==T(e)},Hu=[],$u=U("Reflect","construct"),Vu=/^\s*(?:class|function)\b/,Uu=ve(Vu.exec),Wu=!Vu.exec(Ou),Gu=!$u||B(function(){var e;return ku(ku.call)||!ku(Object)||!ku(function(){e=!0})||e})?function(e){if(!ye(e))return!1;switch(mn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wu||!!Uu(Vu,$n(e))}:ku,qu=K("species"),Ku=ce.Array,Yu=K("species"),Xu=K("isConcatSpreadable"),Zu=ce.TypeError,s=51<=_e||!B(function(){var e=[];return e[Xu]=!1,e.concat()[0]!==e}),r=51<=_e||!B(function(){var e=[];return(e.constructor={})[Yu]=function(){return{foo:1}},1!==e.concat(Boolean).foo}),Ju=(Q({target:"Array",proto:!0,forced:!s||!r},{concat:function(e){for(var t,n,r,o,i,a=G(this),u=Bu(a,0),s=0,l=-1,c=arguments.length;l<c;l++)if(o=r=-1===l?a:arguments[l],i=void 0,!Be(o)||(void 0!==(i=o[Xu])?!i:!zu(o))){if(9007199254740991<=s)throw Zu("Maximum allowed index exceeded");ae(u,s++,r)}else{if(9007199254740991<s+(n=Rt(r)))throw Zu("Maximum allowed index exceeded");for(t=0;t<n;t++,s++)t in r&&ae(u,s,r[t])}return u.length=s,u}}),Ut.f),Qu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xo={f:function(e){if(!Qu||"Window"!=T(e))return Ju($(e));var t=e;try{return Ju(t)}catch(t){return rn(Qu)}}},es=ve([].slice),ts={f:K},ns=xt.f,rs=ve([].push),os=[Tu(0),Tu(1),Tu(2),Tu(3),Tu(4),Tu(5),Tu(6),Tu(7)][0],is=ee("hidden"),u=K("toPrimitive"),as=i.set,us=i.getterFor("Symbol"),ss=Object.prototype,ls=ce.Symbol,cs=ls&&ls.prototype,fs=ce.TypeError,s=ce.QObject,ds=U("JSON","stringify"),ps=ut.f,hs=xt.f,gs=Xo.f,vs=Ee.f,ys=ve([].push),ms=e("symbols"),bs=e("op-symbols"),ws=e("string-to-symbol-registry"),xs=e("symbol-to-string-registry"),r=e("wks"),Es=!s||!s.prototype||!s.prototype.findChild,Ds=me&&B(function(){return 7!=en(hs({},"a",{get:function(){return hs(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=ps(ss,t);r&&delete ss[t],hs(e,t,n),r&&e!==ss&&hs(ss,t,r)}:hs,e=(Pe||(cs=(ls=function(){if(Te(cs,this))throw fs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?On(arguments[0]):void 0,t=q(e),n=function(e){this===ss&&we(n,bs,e),qe(this,is)&&qe(this[is],t)&&(this[is][t]=!1),Ds(this,t,F(1,e))};return me&&Es&&Ds(ss,t,{configurable:!0,set:n}),_u(t,e)}).prototype,Un(cs,"toString",function(){return us(this).tag}),Un(ls,"withoutSetter",function(e){return _u(q(e),e)}),Ee.f=Nu,xt.f=Pu,ut.f=Iu,Ut.f=Xo.f=Lu,Wt.f=Ru,ts.f=function(e){return _u(K(e),e)},me&&hs(cs,"description",{configurable:!0,get:function(){return us(this).description}})),Q({global:!0,wrap:!0,forced:!Pe,sham:!Pe},{Symbol:ls}),os(Kt(r),function(e){Fu(e)}),Q({target:"Symbol",stat:!0,forced:!Pe},{for:function(e){var t,e=On(e);return qe(ws,e)?ws[e]:(t=ls(e),ws[e]=t,xs[t]=e,t)},keyFor:function(e){if(!Le(e))throw fs(e+" is not a symbol");if(qe(xs,e))return xs[e]},useSetter:function(){Es=!0},useSimple:function(){Es=!1}}),Q({target:"Object",stat:!0,forced:!Pe,sham:!me},{create:function(e,t){return void 0===t?en(e):ju(en(e),t)},defineProperty:Pu,defineProperties:ju,getOwnPropertyDescriptor:Iu}),Q({target:"Object",stat:!0,forced:!Pe},{getOwnPropertyNames:Lu,getOwnPropertySymbols:Ru}),Q({target:"Object",stat:!0,forced:B(function(){Wt.f(1)})},{getOwnPropertySymbols:function(e){return Wt.f(G(e))}}),ds&&(i=!Pe||B(function(){var e=ls();return"[null]"!=ds([e])||"{}"!=ds({a:e})||"{}"!=ds(Object(e))}),Q({target:"JSON",stat:!0,forced:i},{stringify:function(e,t,n){var r=es(arguments),o=t;if((Be(t)||void 0!==e)&&!Le(e))return zu(t)||(t=function(e,t){if(ye(o)&&(t=we(o,this,e,t)),!Le(t))return t}),r[1]=t,pe(ds,null,r)}})),cs[u]||(Mu=cs.valueOf,Un(cs,u,function(e){return we(Mu,this)})),Gn(ls,"Symbol"),Mt[is]=!0,Fu("asyncIterator"),Fu("hasInstance"),Fu("isConcatSpreadable"),Fu("iterator"),Fu("match"),Fu("matchAll"),Fu("replace"),Fu("search"),Fu("species"),Fu("split"),Fu("toPrimitive"),Fu("toStringTag"),Fu("unscopables"),Gn(ce.JSON,"JSON",!0),Fe.Symbol),Ss=(Fu("asyncDispose"),Fu("dispose"),Fu("matcher"),Fu("metadata"),Fu("observable"),Fu("patternMatch"),Fu("replaceAll"),e),Cs=ts.f("iterator"),Xo=(s=O(function(t){function n(e){return t.exports=n="function"==typeof Ss&&"symbol"==typeof Cs?function(e){return typeof e}:function(e){return e&&"function"==typeof Ss&&e.constructor===Ss&&e!==Ss.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0}))&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s,As=Do.f,r=yr(function(){As(1)});function Os(e){return"[object Object]"===Object.prototype.toString.call(e)}function ks(e){return!1!==Os(e)&&(void 0===(e=e.constructor)||!1!==Os(e=e.prototype)&&!1!==e.hasOwnProperty("isPrototypeOf"))}function Bs(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fs(e){return e&&e[fl]}function Ts(t){return t&&(function(){var e;if(t&&"object"==typeof t)return null===(e=Object.getPrototypeOf(t))||(e=Object.hasOwnProperty.call(e,"constructor")&&e.constructor)===Object||"function"==typeof e&&Function.toString.call(e)===dl}()||Array.isArray(t)||t[cl]||t.constructor[cl]||Is(t)||Ls(t))}function _s(n,r,t){void 0===t&&(t=!1),0===Ps(n)?(t?Object.keys:pl)(n).forEach(function(e){t&&"symbol"==typeof e||r(e,n[e],n)}):n.forEach(function(e,t){return r(t,e,n)})}function Ps(e){var t=e[fl];return t?3<t.i?t.i-4:t.i:Array.isArray(e)?1:Is(e)?2:Ls(e)?3:0}function js(e,t){return 2===Ps(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ns(e,t,n){var r=Ps(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Is(e){return al&&e instanceof Map}function Ls(e){return ul&&e instanceof Set}function Rs(e){return e.o||e.t}function Ms(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hl(e);delete t[fl];for(var n=pl(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function zs(e,t){return void 0===t&&(t=!1),$s(e)||Fs(e)||!Ts(e)||(1<Ps(e)&&(e.set=e.add=e.clear=e.delete=Hs),Object.freeze(e),t&&_s(e,function(e,t){return zs(t,!0)},!0)),e}function Hs(){Bs(2)}function $s(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Vs(e){var t=gl[e];return t||Bs(18,e),t}function Us(e,t){t&&(Vs("Patches"),e.u=[],e.s=[],e.v=t)}function Ws(e){Gs(e),e.p.forEach(Ks),e.p=null}function Gs(e){e===il&&(il=e.l)}function qs(e){return il={p:[],l:il,h:e,m:!0,_:0}}function Ks(e){e=e[fl];0===e.i||1===e.i?e.j():e.O=!0}function Ys(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Vs("ES5").S(t,e,r),r?(n[fl].P&&(Ws(t),Bs(4)),Ts(e)&&(e=Xs(t,e),t.l||Js(t,e)),t.u&&Vs("Patches").M(n[fl],e,t.u,t.s)):e=Xs(t,n,[]),Ws(t),t.u&&t.v(t.u,t.s),e!==ll?e:void 0}function Xs(n,r,o){var i,a;return $s(r)?r:(i=r[fl])?i.A!==n?r:i.P?(i.I||(i.I=!0,i.A._--,a=4===i.i||5===i.i?i.o=Ms(i.k):i.o,_s(3===i.i?new Set(a):a,function(e,t){return Zs(n,i,a,e,t,o)}),Js(n,a,!1),o&&n.u&&Vs("Patches").R(i,o,n.u,n.s)),i.o):(Js(n,i.t,!0),i.t):(_s(r,function(e,t){return Zs(n,i,r,e,t,o)},!0),r)}function Zs(e,t,n,r,o,i){if(Fs(o)){i=Xs(e,o,i&&t&&3!==t.i&&!js(t.D,r)?i.concat(r):void 0);if(Ns(n,r,i),!Fs(i))return;e.m=!1}!Ts(o)||$s(o)||!e.h.F&&e._<1||(Xs(e,o),t&&t.A.l)||Js(e,o)}function Js(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&zs(t,n)}function Qs(e,t){var n=e[fl];return(n?Rs(n):e)[t]}function el(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function tl(e){e.P||(e.P=!0,e.l&&tl(e.l))}function nl(e){e.o||(e.o=Ms(e.t))}function rl(e,t,n){var r,o,i=Is(t)?Vs("MapSet").N(t,n):Ls(t)?Vs("MapSet").T(t,n):e.g?(e=t,r=n,i=Array.isArray(e),r={i:i?1:0,A:r?r.A:il,P:!1,I:!1,D:{},l:r,t:e,k:null,o:null,j:null,C:!1},e=r,o=vl,i&&(e=[r],o=yl),i=Proxy.revocable(e,o),e=i.revoke,o=i.proxy,r.k=o,r.j=e,o):Vs("ES5").J(t,n);return(n?n.A:il).p.push(i),i}function ol(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ms(e)}Lo({target:"Object",stat:!0,forced:!o||r,sham:!o},{getOwnPropertyDescriptor:function(e,t){return As(wr(e),t)}}),"object"===(void 0===t?"undefined":Xo(t))&&(i=Object.getOwnPropertyDescriptor(t,"window"),t.window&&!i.set||((t.window=t).requestAnimationFrame=function(){},t.navigator={userAgent:""},t.location={hostname:"0.0.0.0",port:0,protocol:"http:"},t.btoa=function(){},t.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=t.document)&&null==t.document.getElementsByTagName&&(t.document.getElementsByTagName=function(){return[]});var il,u="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),al="undefined"!=typeof Map,ul="undefined"!=typeof Set,sl="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ll=u?Symbol.for("immer-nothing"):((e={})["immer-nothing"]=!0,e),cl=u?Symbol.for("immer-draftable"):"__$immer_draftable",fl=u?Symbol.for("immer-state"):"__$immer_state",dl=""+Object.prototype.constructor,pl="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,hl=Object.getOwnPropertyDescriptors||function(t){var n={};return pl(t).forEach(function(e){n[e]=Object.getOwnPropertyDescriptor(t,e)}),n},gl={},vl={get:function(e,t){var n,r;return t===fl?e:js(n=Rs(e),t)?(r=n[t],!e.I&&Ts(r)&&r===Qs(e.t,t)?(nl(e),e.o[t]=rl(e.A.h,r,e)):r):(r=e,(e=el(n,t))?"value"in e?e.value:null==(e=e.get)?void 0:e.call(r.k):void 0)},has:function(e,t){return t in Rs(e)},ownKeys:function(e){return Reflect.ownKeys(Rs(e))},set:function(e,t,n){var r=el(Rs(e),t);if(null!=r&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var r=Qs(Rs(e),t),o=null==r?void 0:r[fl];if(o&&o.t===n)return e.o[t]=n,!(e.D[t]=!1);if((n===r?0!==n||1/n==1/r:n!=n&&r!=r)&&(void 0!==n||js(e.t,t)))return!0;nl(e),tl(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0)},deleteProperty:function(e,t){return void 0!==Qs(e.t,t)||t in e.t?(e.D[t]=!1,nl(e),tl(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Rs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Bs(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Bs(12)}},yl={},r=(_s(vl,function(e,t){yl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),yl.deleteProperty=function(e,t){return vl.deleteProperty.call(this,e[0],t)},yl.set=function(e,t,n){return vl.set.call(this,e[0],t,n,e[0])},(s=bl.prototype).createDraft=function(e){Ts(e)||Bs(8),Fs(e)&&(Fs(t=e)||Bs(22,t),e=function o(e){if(!Ts(e))return e;var i,a=e[fl],t=Ps(e);if(a){if(!a.P&&(a.i<4||!Vs("ES5").K(a)))return a.t;a.I=!0,i=ol(e,t),a.I=!1}else i=ol(e,t);return _s(i,function(e,t){var n,r;a&&(n=a.t,r=e,(2===Ps(n)?n.get(r):n[r])===t)||Ns(i,e,o(t))}),3===t?new Set(i):i}(t));var t=qs(this),e=rl(this,e,void 0);return e[fl].C=!0,Gs(t),e},s.finishDraft=function(e,t){e=(e&&e[fl]).A;return Us(e,t),Ys(void 0,e)},s.setAutoFreeze=function(e){this.F=e},s.setUseProxies=function(e){e&&!sl&&Bs(20),this.g=e},s.applyPatches=function(e,t){for(var n=t.length-1;0<=n;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}-1<n&&(t=t.slice(n+1));var o=Vs("Patches").$;return Fs(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},new bl),ml=r.produce;function bl(e){var l=this;this.g=sl,this.F=!0,this.produce=function(e,i,t){var a,u,n;if("function"==typeof e&&"function"!=typeof i)return a=i,i=e,u=l,function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return u.produce(e,function(e){return i.call.apply(i,[t,e].concat(r))})};if("function"!=typeof i&&Bs(6),void 0!==t&&"function"!=typeof t&&Bs(7),Ts(e)){var r=qs(l),o=rl(l,e,void 0),s=!0;try{n=i(o),s=!1}finally{(s?Ws:Gs)(r)}return"undefined"!=typeof Promise&&n instanceof Promise?n.then(function(e){return Us(r,t),Ys(e,r)},function(e){throw Ws(r),e}):(Us(r,t),Ys(n,r))}if(!e||"object"!=typeof e)return(n=i(e))===ll?void 0:(void 0===n&&(n=e),l.F&&zs(n,!0),n);Bs(21,e)},this.produceWithPatches=function(o,e){return"function"==typeof o?function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.produceWithPatches(e,function(e){return o.apply(void 0,[e].concat(n))})}:[l.produce(o,e,function(e,t){n=e,r=t}),n,r];var n,r},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}r.produceWithPatches.bind(r),r.setAutoFreeze.bind(r),r.setUseProxies.bind(r),r.applyPatches.bind(r);var wl=r.createDraft.bind(r),xl=r.finishDraft.bind(r);function El(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}var Dl=new WeakMap,Sl=new WeakMap,Cl=new WeakMap,Al=new WeakMap,Ol=new WeakMap,kl=new WeakMap;function Bl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Fl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bl(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Tl=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var t=e["path"];return M.levels(t);case"insert_node":var{node:t,path:n}=e;return[...M.levels(n),...H.isText(t)?[]:Array.from(R.nodes(t),e=>{var[,e]=e;return n.concat(e)})];case"merge_node":t=e["path"];return[...M.ancestors(t),M.previous(t)];case"move_node":var{path:t,newPath:r}=e;if(M.equals(t,r))return[];var o,i,a=[],u=[];for(o of M.ancestors(t)){var s=M.transform(o,e);a.push(s)}for(i of M.ancestors(r)){var l=M.transform(i,e);u.push(l)}t=u[u.length-1],r=r[r.length-1],t=t.concat(r);return[...a,...u,t];case"remove_node":r=e["path"];return[...M.ancestors(r)];case"split_node":t=e["path"];return[...M.levels(t),M.next(t)];default:return[]}};function _l(e,t){if(null==e)return{};var n,r=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function Pl(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(Il.test(e))return!1;if(Rl.test(e)){var r=Nl(t,n),[t,r]=Ml(t,r,n);if(Pl(t,r,n))return!0}return!Ll.test(e)}var jl,Nl=function(e){var t,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=!n,n=n?zl(e):e,o=jl.None,i=jl.None,a=0,u=null;for(t of n){var s=t.codePointAt(0);if(!s)break;s=Xl(t,s);if([o,i]=r?[i,s]:[s,o],Zl(o,jl.ZWJ)&&Zl(i,jl.ExtPict)&&!ec(r?e.substring(0,a):e.substring(0,e.length-a)))break;if(Zl(o,jl.RI)&&Zl(i,jl.RI)&&!(u=null!==u?!u:!!r||nc(e.substring(0,e.length-a))))break;if(o!==jl.None&&i!==jl.None&&function(t,n){return-1===Jl.findIndex(e=>Zl(t,e[0])&&Zl(n,e[1]))}(o,i))break;a+=t.length}return a||1},Il=/\s/,Ll=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Rl=/['\u2018\u2019]/,Ml=(e,t,n)=>{return n?(n=e.length-t,[e.slice(n,e.length),e.slice(0,n)]):[e.slice(0,t),e.slice(t)]},zl=function*(e){for(var t,n=e.length-1,r=0;r<e.length;r++){var o=e.charAt(n-r);if(56320<=(i=o.charCodeAt(0))&&i<=57343){var i=e.charAt(n-r-1);if(55296<=(t=i.charCodeAt(0))&&t<=56319){yield i+o,r++;continue}}yield o}},Hl=((o=jl=jl||{})[o.None=0]="None",o[o.Extend=1]="Extend",o[o.ZWJ=2]="ZWJ",o[o.RI=4]="RI",o[o.Prepend=8]="Prepend",o[o.SpacingMark=16]="SpacingMark",o[o.L=32]="L",o[o.V=64]="V",o[o.T=128]="T",o[o.LV=256]="LV",o[o.LVT=512]="LVT",o[o.ExtPict=1024]="ExtPict",o[o.Any=2048]="Any",/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/),$l=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Vl=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Ul=/^[\u1100-\u115F\uA960-\uA97C]$/,Wl=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Gl=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ql=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Kl=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Yl=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Xl=(e,t)=>{var n=jl.Any;return-1!==e.search(Hl)&&(n|=jl.Extend),8205===t&&(n|=jl.ZWJ),127462<=t&&t<=127487&&(n|=jl.RI),-1!==e.search($l)&&(n|=jl.Prepend),-1!==e.search(Vl)&&(n|=jl.SpacingMark),-1!==e.search(Ul)&&(n|=jl.L),-1!==e.search(Wl)&&(n|=jl.V),-1!==e.search(Gl)&&(n|=jl.T),-1!==e.search(ql)&&(n|=jl.LV),-1!==e.search(Kl)&&(n|=jl.LVT),-1!==e.search(Yl)&&(n|=jl.ExtPict),n};function Zl(e,t){return 0!=(e&t)}var Jl=[[jl.L,jl.L|jl.V|jl.LV|jl.LVT],[jl.LV|jl.V,jl.V|jl.T],[jl.LVT|jl.T,jl.T],[jl.Any,jl.Extend|jl.ZWJ],[jl.Any,jl.SpacingMark],[jl.Prepend,jl.Any],[jl.ZWJ,jl.ExtPict],[jl.RI,jl.RI]];var Ql=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,ec=e=>-1!==e.search(Ql),tc=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,nc=e=>{e=e.match(tc);return null!==e&&e[0].length/2%2==1},rc=e=>ks(e)&&R.isNodeList(e.children)&&!P.isEditor(e),_={isAncestor:e=>ks(e)&&R.isNodeList(e.children),isElement:rc,isElementList:e=>Array.isArray(e)&&e.every(e=>_.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"type";return rc(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},oc=["text"],ic=["text"];function ac(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function uc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ac(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var sc=new WeakMap,P={above(e){var{voids:t=!1,mode:n="lowest",at:r=e.selection,match:o}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(r){var i,a,u=P.path(e,r);for([i,a]of P.levels(e,{at:u,voids:t,match:o,reverse:"lowest"===n}))if(!H.isText(i)&&!M.equals(u,a))return[i,a]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t={anchor:P.point(e,t,{edge:"end"}),focus:P.end(e,[])},{distance:i=1}=o,a=0;for(r of P.positions(e,uc(uc({},o),{},{at:t}))){if(i<a)break;0!==a&&(n=r),a++}return n},before(e,t){var n,r,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t={anchor:P.start(e,[]),focus:P.point(e,t,{edge:"start"})},{distance:i=1}=o,a=0;for(r of P.positions(e,uc(uc({},o),{},{at:t,reverse:!0}))){if(i<a)break;0!==a&&(n=r),a++}return n},deleteBackward(e){var{unit:t="character"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.deleteBackward(t)},deleteForward(e){var{unit:t="character"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.deleteForward(t)},deleteFragment(e){var{direction:t="forward"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.deleteFragment(t)},edges:(e,t)=>[P.start(e,t),P.end(e,t)],end:(e,t)=>P.point(e,t,{edge:"end"}),first(e,t){t=P.path(e,t,{edge:"start"});return P.node(e,t)},fragment(e,t){t=P.range(e,t);return R.fragment(e,t)},hasBlocks:(t,e)=>e.children.some(e=>P.isBlock(t,e)),hasInlines:(t,e)=>e.children.some(e=>H.isText(e)||P.isInline(t,e)),hasTexts:(e,t)=>t.children.every(e=>H.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>_.isElement(t)&&!e.isInline(t),isEditor(e){var t;return!!ks(e)&&(void 0!==(t=sc.get(e))?t:(t="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||ks(e.marks))&&(null===e.selection||z.isRange(e.selection))&&R.isNodeList(e.children)&&gc.isOperationList(e.operations),sc.set(e,t),t))},isEnd(e,t,n){e=P.end(e,n);return bc.equals(t,e)},isEdge:(e,t,n)=>P.isStart(e,t,n)||P.isEnd(e,t,n),isEmpty(e,t){var n=t["children"],[r]=n;return 0===n.length||1===n.length&&H.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>_.isElement(t)&&e.isInline(t),isNormalizing(e){e=Cl.get(e);return void 0===e||e},isStart(e,t,n){return 0===t.offset&&(e=P.start(e,n),bc.equals(t,e))},isVoid:(e,t)=>_.isElement(t)&&e.isVoid(t),last(e,t){t=P.path(e,t,{edge:"end"});return P.node(e,t)},leaf(e,t){t=P.path(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});return[R.leaf(e,t),t]},*levels(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,i=t["match"];if(null==i&&(i=()=>!0),n){var a,u,s=[],t=P.path(e,n);for([a,u]of R.levels(e,t))if(i(a,u)&&(s.push([a,u]),!o)&&P.isVoid(e,a))break;r&&s.reverse(),yield*s}},marks(t){var e,n,{marks:r,selection:o}=t;return o?r||(z.isExpanded(o)?([r]=P.nodes(t,{match:H.isText}),r?([r]=r,_l(r,oc)):{}):(r=o["anchor"],o=r["path"],[e]=P.leaf(t,o),_l(e=0===r.offset&&(r=P.previous(t,{at:o,match:H.isText}),o=P.above(t,{match:e=>P.isBlock(t,e)}),r)&&o&&([r,n]=r,[,o]=o,M.isAncestor(o,n))?r:e,ic))):null},next(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:t,at:o=e.selection}=t;if(o){var i=P.after(e,o,{voids:r});if(i){var a,[,u]=P.last(e,[]),i=[i.path,u];if(M.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");null==t&&(t=M.isPath(o)?([a]=P.parent(e,o),e=>a.children.includes(e)):()=>!0);var[u]=P.nodes(e,{at:i,match:t,mode:n,voids:r});return u}}},node(e,t){t=P.path(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});return[R.get(e,t),t]},*nodes(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{at:r=t.selection,mode:o="all",universal:i=!1,reverse:a=!1,voids:u=!1}=n,s=n["match"],s=s||(()=>!0);if(r){n=lc.isSpan(r)?(e=r[0],r[1]):(n=P.path(t,r,{edge:"start"}),r=P.path(t,r,{edge:"end"}),e=a?r:n,a?n:r);var l,c,f,d=[];for([c,f]of R.nodes(t,{reverse:a,from:e,to:n,pass:e=>{var[e]=e;return!u&&P.isVoid(t,e)}})){var p,h=l&&0===M.compare(f,l[1]);if("highest"!==o||!h)if(s(c,f))l=("lowest"===o&&h||(p="lowest"===o?l:[c,f])&&(i?d.push(p):yield p),[c,f]);else if(i&&!h&&H.isText(c))return}"lowest"===o&&l&&(i?d.push(l):yield l),i&&(yield*d)}},normalize(a){var{force:e=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},u=e=>Dl.get(e)||[];P.isNormalizing(a)&&(e&&(e=Array.from(R.nodes(a),e=>{var[,e]=e;return e}),Dl.set(a,e)),0!==u(a).length)&&P.withoutNormalizing(a,()=>{for(var e of u(a)){var t,n;R.has(a,e)&&([t,n]=e=P.node(a,e),_.isElement(t))&&0===t.children.length&&a.normalizeNode(e)}for(var r=42*u(a).length,o=0;0!==u(a).length;){if(r<o)throw new Error("\n Could not completely normalize the editor after ".concat(r," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var i=u(a).pop();R.has(a,i)&&(i=P.node(a,i),a.normalizeNode(i)),o++}})},parent(e,t){t=P.path(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}),t=M.parent(t);return P.node(e,t)},path(e,t){var n,{depth:r,edge:o}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return M.isPath(t)&&("start"===o?([,n]=R.first(e,t),t=n):"end"===o&&([,n]=R.last(e,t),t=n)),z.isRange(t)&&(t="start"===o?z.start(t):"end"===o?z.end(t):M.common(t.anchor.path,t.focus.path)),bc.isPoint(t)&&(t=t.path),t=null!=r?t.slice(0,r):t},hasPath:(e,t)=>R.has(e,t),pathRef(t,e){var{affinity:n="forward"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r={current:e,affinity:n,unref(){var e=r["current"];return P.pathRefs(t).delete(r),r.current=null,e}};return P.pathRefs(t).add(r),r},pathRefs(e){var t=Al.get(e);return t||(t=new Set,Al.set(e,t)),t},point(e,t){var{edge:n="start"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(M.isPath(t)){r="end"===n?([,r]=R.last(e,t),r):([,r]=R.first(e,t),r);var r,e=R.get(e,r);if(H.isText(e))return{path:r,offset:"end"===n?e.text.length:0};throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."))}return z.isRange(t)?([r,e]=z.edges(t),"start"===n?r:e):t},pointRef(t,e){var{affinity:n="forward"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r={current:e,affinity:n,unref(){var e=r["current"];return P.pointRefs(t).delete(r),r.current=null,e}};return P.pointRefs(t).add(r),r},pointRefs(e){var t=Ol.get(e);return t||(t=new Set,Ol.set(e,t)),t},*positions(e){var t,n,r,{at:o=e.selection,unit:i="offset",reverse:a=!1,voids:u=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(o){var s,l,c,f=P.range(e,o),[d,p]=z.edges(f),h=a?p:d,g=!1,v="",y=0,m=0,b=0;for([s,l]of P.nodes(e,{at:o,reverse:a,voids:u})){if(_.isElement(s)){if(!u&&e.isVoid(s)){yield P.start(e,l);continue}if(e.isInline(s))continue;P.hasInlines(e,s)&&(c=M.isAncestor(l,p.path)?p:P.end(e,l),w=M.isAncestor(l,d.path)?d:P.start(e,l),v=P.string(e,{anchor:w,focus:c},{voids:u}),g=!0)}if(H.isText(s)){var w=M.equals(l,h.path),b=w?(m=a?h.offset:s.text.length-h.offset,h.offset):(m=s.text.length,a?m:0);for((w||g||"offset"===i)&&(yield{path:l,offset:b},g=!1);;){if(0===y){if(""===v)break;t=v,r=a,y="character"===(n=i)?Nl(t,r):"word"===n?function(e,t){for(var n=1<arguments.length&&void 0!==t&&t,r=0,o=!1;0<e.length;){var i=Nl(e,n),[a,u]=Ml(e,i,n);if(Pl(a,u,n))o=!0;else if(o)break;r+=i,e=u}return r}(t,r):"line"===n||"block"===n?t.length:1,v=Ml(v,y,a)[1]}if(b=a?b-y:b+y,(m-=y)<0){y=-m;break}y=0,yield{path:l,offset:b}}}}}},previous(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:t,at:o=e.selection}=t;if(o){var i=P.before(e,o,{voids:r});if(i){var a,[,u]=P.first(e,[]),i=[i.path,u];if(M.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");null==t&&(t=M.isPath(o)?([a]=P.parent(e,o),e=>a.children.includes(e)):()=>!0);var[u]=P.nodes(e,{reverse:!0,at:i,match:t,mode:n,voids:r});return u}}},range:(e,t,n)=>z.isRange(t)&&!n?t:{anchor:P.start(e,t),focus:P.end(e,n||t)},rangeRef(t,e){var{affinity:n="forward"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r={current:e,affinity:n,unref(){var e=r["current"];return P.rangeRefs(t).delete(r),r.current=null,e}};return P.rangeRefs(t).add(r),r},rangeRefs(e){var t=kl.get(e);return t||(t=new Set,kl.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Cl.set(e,t)},start:(e,t)=>P.point(e,t,{edge:"start"}),string(e,t){var n,r,{voids:o=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=P.range(e,t),[i,a]=z.edges(t),u="";for([n,r]of P.nodes(e,{at:t,match:H.isText,voids:o})){var s=n.text;M.equals(r,a.path)&&(s=s.slice(0,a.offset)),u+=s=M.equals(r,i.path)?s.slice(i.offset):s}return u},unhangRange(t,e){var{voids:n=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},[r,o]=z.edges(e);if(0!==r.offset||0!==o.offset||z.isCollapsed(e))return e;var i,a,e=P.above(t,{at:o,match:e=>P.isBlock(t,e)}),u=e?e[1]:[],e={anchor:P.start(t,[]),focus:o},s=!0;for([i,a]of P.nodes(t,{at:e,match:H.isText,reverse:!0,voids:n}))if(s)s=!1;else if(""!==i.text||M.isBefore(a,u)){o={path:a,offset:i.text.length};break}return{anchor:r,focus:o}},void(t){return P.above(t,uc(uc({},1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),{},{match:e=>P.isVoid(t,e)}))},withoutNormalizing(e,t){var n=P.isNormalizing(e);P.setNormalizing(e,!1);try{t()}finally{P.setNormalizing(e,n)}P.normalize(e)}},lc={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(M.isPath)},cc=["children"],fc=["text"],dc=new WeakMap,R={ancestor(e,t){e=R.get(e,t);if(H.isText(e))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(e));return e},*ancestors(e,t){var n;for(n of M.ancestors(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))yield[R.ancestor(e,n),n]},child(e,t){if(H.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var{reverse:n=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=R.ancestor(e,t),o=r["children"],i=n?o.length-1:0;n?0<=i:i<o.length;)yield[R.child(r,i),t.concat(i)],i=n?i-1:i+1},common(e,t,n){t=M.common(t,n);return[R.get(e,t),t]},descendant(e,t){e=R.get(e,t);if(P.isEditor(e))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(e));return e},*descendants(e){var t,n;for([t,n]of R.nodes(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))0!==n.length&&(yield[t,n])},*elements(e){var t,n;for([t,n]of R.nodes(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))_.isElement(t)&&(yield[t,n])},extractProps:e=>_.isAncestor(e)?_l(e,cc):_l(e,fc),first(e,t){for(var n=t.slice(),r=R.get(e,n);r&&!H.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,a){if(H.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return ml({children:e.children},e=>{var t,n,r,[o,i]=z.edges(a);for([,t]of R.nodes(e,{reverse:!0,pass:e=>{var[,e]=e;return!z.includes(a,e)}}))z.includes(a,t)||(n=R.parent(e,t),r=t[t.length-1],n.children.splice(r,1)),M.equals(t,i.path)&&((n=R.leaf(e,t)).text=n.text.slice(0,i.offset)),M.equals(t,o.path)&&((r=R.leaf(e,t)).text=r.text.slice(o.offset));P.isEditor(e)&&(e.selection=null)}).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(H.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(H.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>H.isText(e)||_.isElement(e)||P.isEditor(e),isNodeList(e){var t;return!!Array.isArray(e)&&(void 0!==(t=dc.get(e))?t:(t=e.every(e=>R.isNode(e)),dc.set(e,t),t))},last(e,t){for(var n=t.slice(),r=R.get(e,n);r&&!H.isText(r)&&0!==r.children.length;){var o=r.children.length-1,r=r.children[o];n.push(o)}return[r,n]},leaf(e,t){e=R.get(e,t);if(H.isText(e))return e;throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(e))},*levels(e,t){var n;for(n of M.levels(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))yield[R.get(e,n),n]},matches:(e,t)=>_.isElement(e)&&_.isElementProps(t)&&_.matches(e,t)||H.isText(e)&&H.isTextProps(t)&&H.matches(e,t),*nodes(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?M.isBefore(u,i):M.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||H.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=M.next(u);if(R.has(e,l)){s=R.get(e,u=l);continue}}r&&0!==u[u.length-1]?(u=M.previous(u),s=R.get(e,u)):(u=M.parent(u),s=R.get(e,u),a.add(s))}else{a.add(s);l=r?s.children.length-1:0;M.isAncestor(u,o)&&(l=o[u.length]),u=u.concat(l),s=R.get(e,u)}},parent(e,t){var n=M.parent(t),e=R.get(e,n);if(H.isText(e))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return e},string:e=>H.isText(e)?e.text:e.children.map(R.string).join(""),*texts(e){var t,n;for([t,n]of R.nodes(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}))H.isText(t)&&(yield[t,n])}};function pc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function hc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var gc={isNodeOperation:e=>gc.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!ks(e))return!1;switch(e.type){case"insert_node":case"remove_node":return M.isPath(e.path)&&R.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&M.isPath(e.path);case"merge_node":return"number"==typeof e.position&&M.isPath(e.path)&&ks(e.properties);case"move_node":return M.isPath(e.path)&&M.isPath(e.newPath);case"set_node":return M.isPath(e.path)&&ks(e.properties)&&ks(e.newProperties);case"set_selection":return null===e.properties&&z.isRange(e.newProperties)||null===e.newProperties&&z.isRange(e.properties)||ks(e.properties)&&ks(e.newProperties);case"split_node":return M.isPath(e.path)&&"number"==typeof e.position&&ks(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>gc.isOperation(e)),isSelectionOperation:e=>gc.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>gc.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return hc(hc({},e),{},{type:"remove_node"});case"insert_text":return hc(hc({},e),{},{type:"remove_text"});case"merge_node":return hc(hc({},e),{},{type:"split_node",path:M.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;return M.equals(t,n)?e:M.isSibling(n,t)?hc(hc({},e),{},{path:t,newPath:n}):(t=M.transform(n,e),n=M.transform(M.next(n),e),hc(hc({},e),{},{path:t,newPath:n}));case"remove_node":return hc(hc({},e),{},{type:"insert_node"});case"remove_text":return hc(hc({},e),{},{type:"insert_text"});case"set_node":var{properties:t,newProperties:n}=e;return hc(hc({},e),{},{properties:n,newProperties:t});case"set_selection":var{properties:n,newProperties:t}=e;return hc(hc({},e),{},null==n?{properties:t,newProperties:null}:null==t?{properties:null,newProperties:n}:{properties:t,newProperties:n});case"split_node":return hc(hc({},e),{},{type:"merge_node",path:M.next(e.path)})}}},M={ancestors(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,e=M.levels(e,t);return n?e.slice(1):e.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),e=e[n],t=t[n];return M.equals(r,o)&&t<e},endsAt(e,t){var n=e.length,e=e.slice(0,n),t=t.slice(0,n);return M.equals(e,t)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),e=e[n],t=t[n];return M.equals(r,o)&&e<t},equals:(e,n)=>e.length===n.length&&e.every((e,t)=>e===n[t]),hasPrevious:e=>0<e[e.length-1],isAfter:(e,t)=>1===M.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===M.compare(e,t),isBefore:(e,t)=>-1===M.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===M.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===M.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===M.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===M.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){var n,r;return e.length===t.length&&(n=e.slice(0,-1),r=t.slice(0,-1),e[e.length-1]!==t[t.length-1])&&M.equals(n,r)},levels(e){for(var{reverse:t=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=[],r=0;r<=e.length;r++)n.push(e.slice(0,r));return t&&n.reverse(),n},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(M.isAncestor(t,e)||M.equals(e,t))return e.slice(t.length);throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."))},transform(i,a){var u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return ml(i,e=>{var{affinity:t="forward"}=u;if(i&&0!==(null==i?void 0:i.length)){if(null===e)return null;switch(a.type){case"insert_node":var n=a["path"];(M.equals(n,e)||M.endsBefore(n,e)||M.isAncestor(n,e))&&(e[n.length-1]+=1);break;case"remove_node":n=a["path"];if(M.equals(n,e)||M.isAncestor(n,e))return null;M.endsBefore(n,e)&&--e[n.length-1];break;case"merge_node":var{path:n,position:r}=a;M.equals(n,e)||M.endsBefore(n,e)?--e[n.length-1]:M.isAncestor(n,e)&&(--e[n.length-1],e[n.length]+=r);break;case"split_node":var{path:n,position:r}=a;if(M.equals(n,e)){if("forward"===t)e[e.length-1]+=1;else if("backward"!==t)return null}else M.endsBefore(n,e)?e[n.length-1]+=1:M.isAncestor(n,e)&&i[n.length]>=r&&(e[n.length-1]+=1,e[n.length]-=r);break;case"move_node":var o,{path:n,newPath:r}=a;return M.equals(n,r)?void 0:M.isAncestor(n,e)||M.equals(n,e)?(o=r.slice(),M.endsBefore(n,r)&&n.length<r.length&&--o[n.length-1],o.concat(e.slice(n.length))):void(M.isSibling(n,r)&&(M.isAncestor(r,e)||M.equals(r,e))?M.endsBefore(n,e)?--e[n.length-1]:e[n.length-1]+=1:M.endsBefore(r,e)||M.equals(r,e)||M.isAncestor(r,e)?(M.endsBefore(n,e)&&--e[n.length-1],e[r.length-1]+=1):M.endsBefore(n,e)&&(M.equals(r,e)&&(e[r.length-1]+=1),--e[n.length-1]))}}})}},vc={transform(e,t){var{current:n,affinity:r}=e;null!=n&&(n=M.transform(n,t,{affinity:r}),null==(e.current=n))&&e.unref()}};function yc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function mc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var bc={compare(e,t){var n=M.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===bc.compare(e,t),isBefore:(e,t)=>-1===bc.compare(e,t),equals:(e,t)=>e.offset===t.offset&&M.equals(e.path,t.path),isPoint:e=>ks(e)&&"number"==typeof e.offset&&M.isPath(e.path),transform(e,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return ml(e,e=>{if(null===e)return null;var{affinity:t="forward"}=i,{path:n,offset:r}=e;switch(o.type){case"insert_node":case"move_node":e.path=M.transform(n,o,i);break;case"insert_text":M.equals(o.path,n)&&o.offset<=r&&(e.offset+=o.text.length);break;case"merge_node":M.equals(o.path,n)&&(e.offset+=o.position),e.path=M.transform(n,o,i);break;case"remove_text":M.equals(o.path,n)&&o.offset<=r&&(e.offset-=Math.min(r-o.offset,o.text.length));break;case"remove_node":if(M.equals(o.path,n)||M.isAncestor(o.path,n))return null;e.path=M.transform(n,o,i);break;case"split_node":if(M.equals(o.path,n)){if(o.position===r&&null==t)return null;(o.position<r||o.position===r&&"forward"===t)&&(e.offset-=o.position,e.path=M.transform(n,o,mc(mc({},i),{},{affinity:"forward"})))}else e.path=M.transform(n,o,i)}})}},wc={transform(e,t){var{current:n,affinity:r}=e;null!=n&&(n=bc.transform(n,t,{affinity:r}),null==(e.current=n))&&e.unref()}},xc=["anchor","focus"];function Ec(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}var z={edges(e){var{reverse:t=!1}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{anchor:n,focus:r}=e;return z.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,e]=z.edges(e);return e},equals:(e,t)=>bc.equals(e.anchor,t.anchor)&&bc.equals(e.focus,t.focus),includes(e,t){var n,r,o,i;return z.isRange(t)?!(!z.includes(e,t.anchor)&&!z.includes(e,t.focus))||([n,o]=z.edges(e),[r,i]=z.edges(t),bc.isBefore(n,r)&&bc.isAfter(o,i)):([n,r]=z.edges(e),i=o=!1,i=bc.isPoint(t)?(o=0<=bc.compare(t,n),bc.compare(t,r)<=0):(o=0<=M.compare(t,n.path),M.compare(t,r.path)<=0),o&&i)},intersection(e,t){var n=_l(e,xc),[e,r]=z.edges(e),[t,o]=z.edges(t),t=bc.isBefore(e,t)?t:e,e=bc.isBefore(r,o)?r:o;return bc.isBefore(e,t)?null:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ec(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({anchor:t,focus:e},n)},isBackward(e){var{anchor:e,focus:t}=e;return bc.isAfter(e,t)},isCollapsed(e){var{anchor:e,focus:t}=e;return bc.equals(e,t)},isExpanded:e=>!z.isCollapsed(e),isForward:e=>!z.isBackward(e),isRange:e=>ks(e)&&bc.isPoint(e.anchor)&&bc.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[e]=z.edges(e);return e},transform(e,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return ml(e,e=>{var t,n,r;return null!==e&&({affinity:n="inward"}=i,t="inward"===n?(t=z.isCollapsed(e),z.isForward(e)?(r="forward",t?r:"backward"):(r="backward",t?r:"forward")):"outward"===n?z.isForward(e)?(r="backward","forward"):(r="forward","backward"):r=n,n=bc.transform(e.anchor,o,{affinity:r}),r=bc.transform(e.focus,o,{affinity:t}),n)&&r?(e.anchor=n,void(e.focus=r)):null})}},Dc={transform(e,t){var{current:n,affinity:r}=e;null!=n&&(n=z.transform(n,t,{affinity:r}),null==(e.current=n))&&e.unref()}},Sc=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(ks(r)&&ks(o)){if(!Sc(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Cc=["text"],Ac=["anchor","focus"];function Oc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function kc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var H={equals(e,t){var{loose:n=!1}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};function r(e){return _l(e,Cc)}return Sc(n?r(e):e,n?r(t):t)},isText:e=>ks(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>H.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n,r=[kc({},e)];for(n of t){var o,i=_l(n,Ac),[a,u]=z.edges(n),s=[],l=0;for(o of r){var c,f,d,p=o.text["length"],h=l;l+=p,a.offset<=h&&u.offset>=l?(Object.assign(o,i),s.push(o)):a.offset!==u.offset&&(a.offset===l||u.offset===h)||a.offset>l||u.offset<h||u.offset===h&&0!==h?s.push(o):(p=o,c=d=void 0,u.offset<l&&(f=u.offset-h,c=kc(kc({},p),{},{text:p.text.slice(f)}),p=kc(kc({},p),{},{text:p.text.slice(0,f)})),a.offset>h&&(f=a.offset-h,d=kc(kc({},p),{},{text:p.text.slice(0,f)}),p=kc(kc({},p),{},{text:p.text.slice(f)})),Object.assign(p,i),d&&s.push(d),s.push(p),c&&s.push(c))}r=s}return r}};function Bc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Fc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Tc=["text"],_c=["children"];function Pc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function jc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Xo={insertNodes(f,d){var p=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(f,()=>{var{hanging:e=!1,voids:t=!1,mode:n="lowest"}=p,{at:r,match:o,select:i}=p;if(0!==(d=R.isNode(d)?[d]:d).length){var[a]=d;if(r||(r=f.selection||(0<f.children.length?P.end(f,[]):[0]),i=!0),null==i&&(i=!1),z.isRange(r)&&(e||(r=P.unhangRange(f,r)),r=z.isCollapsed(r)?r.anchor:([,e]=z.edges(r),e=P.pointRef(f,e),j.delete(f,{at:r}),e.unref())),bc.isPoint(r)){null==o&&(o=H.isText(a)?e=>H.isText(e):f.isInline(a)?e=>H.isText(e)||P.isInline(f,e):e=>P.isBlock(f,e));var[e]=P.nodes(f,{at:r.path,match:o,mode:n,voids:t});if(!e)return;var[,a]=e,e=P.pathRef(f,a),a=P.isEnd(f,r,a),o=(j.splitNodes(f,{at:r,match:o,mode:n,voids:t}),e.unref()),r=a?M.next(o):o}var u=M.parent(r),s=r[r.length-1];if(t||!P.void(f,{at:u})){for(var l of d){var c=u.concat(s);s++,f.apply({type:"insert_node",path:c,node:l}),r=M.next(r)}r=M.previous(r),i&&(n=P.end(f,r))&&j.select(f,n)}}})},liftNodes(c){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(c,()=>{var{at:e=c.selection,mode:t="lowest",voids:n=!1}=f,r=f["match"];if(null==r&&(r=M.isPath(e)?Lc(c,e):e=>P.isBlock(c,e)),e){var o,e=P.nodes(c,{at:e,match:r,mode:t,voids:n});for(o of Array.from(e,e=>{var[,e]=e;return P.pathRef(c,e)})){var i=o.unref();if(i.length<2)throw new Error("Cannot lift node at a path [".concat(i,"] because it has a depth of less than `2`."));var a,[u,s]=P.node(c,M.parent(i)),l=i[i.length-1],u=u.children["length"];1===u?(a=M.next(s),j.moveNodes(c,{at:i,to:a,voids:n}),j.removeNodes(c,{at:s,voids:n})):0===l?j.moveNodes(c,{at:i,to:s,voids:n}):l===u-1?(a=M.next(s),j.moveNodes(c,{at:i,to:a,voids:n})):(l=M.next(i),u=M.next(s),j.splitNodes(c,{at:l,voids:n}),j.moveNodes(c,{at:i,to:u,voids:n}))}}})},mergeNodes(p){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(p,()=>{var{match:e,at:t=p.selection}=h,{hanging:n=!1,voids:r=!1,mode:o="lowest"}=h;if(t){null==e&&(e=M.isPath(t)?([i]=P.parent(p,t),e=>i.children.includes(e)):e=>P.isBlock(p,e)),!n&&z.isRange(t)&&(t=P.unhangRange(p,t)),z.isRange(t)&&(z.isCollapsed(t)?t=t.anchor:([,n]=z.edges(t),n=P.pointRef(p,n),j.delete(p,{at:t}),t=n.unref(),null==h.at&&j.select(p,t)));var i,[n]=P.nodes(p,{at:t,match:e,voids:r,mode:o}),t=P.previous(p,{at:t,match:e,voids:r,mode:o});if(n&&t){var[e,o]=n,[n,t]=t;if(0!==o.length&&0!==t.length){var a=M.next(t),u=M.common(o,t),s=M.isSibling(o,t),l=Array.from(P.levels(p,{at:o}),e=>{var[e]=e;return e}).slice(u.length).slice(0,-1),u=P.above(p,{at:o,mode:"highest",match:e=>l.includes(e)&&Nc(p,e)}),u=u&&P.pathRef(p,u[1]);if(H.isText(e)&&H.isText(n))var c=_l(e,Tc),f=n.text.length,d=c;else{if(!_.isElement(e)||!_.isElement(n))throw new Error("Cannot merge the node at path [".concat(o,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(e)," ").concat(JSON.stringify(n)));c=_l(e,_c),f=n.children.length,d=c}s||j.moveNodes(p,{at:o,to:a,voids:r}),u&&j.removeNodes(p,{at:u.current,voids:r}),_.isElement(n)&&P.isEmpty(p,n)||H.isText(n)&&""===n.text&&0!==t[t.length-1]?j.removeNodes(p,{at:t,voids:r}):p.apply({type:"merge_node",path:a,position:f,properties:d}),u&&u.unref()}}}})},moveNodes(l,c){P.withoutNormalizing(l,()=>{var{to:e,at:t=l.selection,mode:n="lowest",voids:r=!1}=c,o=c["match"];if(t){null==o&&(o=M.isPath(t)?Lc(l,t):e=>P.isBlock(l,e));var i,a=P.pathRef(l,e),e=P.nodes(l,{at:t,match:o,mode:n,voids:r});for(i of Array.from(e,e=>{var[,e]=e;return P.pathRef(l,e)})){var u=i.unref(),s=a.current;0!==u.length&&l.apply({type:"move_node",path:u,newPath:s}),a.current&&M.isSibling(s,u)&&M.isAfter(s,u)&&(a.current=M.next(a.current))}a.unref()}})},removeNodes(s){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(s,()=>{var{hanging:e=!1,voids:t=!1,mode:n="lowest"}=l,{at:r=s.selection,match:o}=l;if(r){null==o&&(o=M.isPath(r)?Lc(s,r):e=>P.isBlock(s,e)),!e&&z.isRange(r)&&(r=P.unhangRange(s,r));var i,e=P.nodes(s,{at:r,match:o,mode:n,voids:t});for(i of Array.from(e,e=>{var[,e]=e;return P.pathRef(s,e)})){var a,u=i.unref();u&&([a]=P.node(s,u),s.apply({type:"remove_node",path:u,node:a}))}}})},setNodes(g,v){var y=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(g,()=>{var{match:e,at:t=g.selection}=y,{hanging:n=!1,mode:r="lowest",split:o=!1,voids:i=!1}=y;if(t){if(null==e&&(e=M.isPath(t)?Lc(g,t):e=>P.isBlock(g,e)),!n&&z.isRange(t)&&(t=P.unhangRange(g,t)),o&&z.isRange(t)){if(z.isCollapsed(t)&&0<P.leaf(g,t.anchor)[0].text.length)return;var n=P.rangeRef(g,t,{affinity:"inward"}),[o,a]=z.edges(t),u="lowest"===r?"lowest":"highest",s=P.isEnd(g,a,a.path),a=(j.splitNodes(g,{at:a,match:e,mode:u,voids:i,always:!s}),P.isStart(g,o,o.path));j.splitNodes(g,{at:o,match:e,mode:u,voids:i,always:!a}),t=n.unref(),null==y.at&&j.select(g,t)}for(var[l,c]of P.nodes(g,{at:t,match:e,mode:r,voids:i})){var f={},d={};if(0!==c.length){var p,h=!1;for(p in v)"children"!==p&&"text"!==p&&v[p]!==l[p]&&(h=!0,l.hasOwnProperty(p)&&(f[p]=l[p]),null!=v[p])&&(d[p]=v[p]);h&&g.apply({type:"set_node",path:c,properties:f,newProperties:d})}}}})},splitNodes(y){var m=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(y,()=>{var t,{mode:e="lowest",voids:n=!1}=m,{match:r,at:o=y.selection,height:i=0,always:a=!1}=m;if(null==r&&(r=e=>P.isBlock(y,e)),z.isRange(o)&&(o=Ic(y,o)),M.isPath(o)&&(s=o,f=P.point(y,s),[t]=P.parent(y,s),r=e=>e===t,i=f.path.length-s.length+1,o=f,a=!0),o){var u=P.pointRef(y,o,{affinity:"backward"}),[s]=P.nodes(y,{at:o,match:r,mode:e,voids:n});if(s){var l,c,f=P.void(y,{at:o,mode:"highest"}),r=(!n&&f&&([r,e]=f,_.isElement(r)&&y.isInline(r)&&((f=P.after(y,e))||(r=M.next(e),j.insertNodes(y,{text:""},{at:r,voids:n}),f=P.point(y,r)),o=f,a=!0),i=o.path.length-e.length+1,a=!0),P.pointRef(y,o)),f=o.path.length-i,[,d]=s,e=o.path.slice(0,f),p=0===i?o.offset:o.path[f]+0;for([l,c]of P.levels(y,{at:e,reverse:!0,voids:n})){var h=!1;if(c.length<d.length||0===c.length||!n&&P.isVoid(y,l))break;var g=u.current,v=P.isEnd(y,g,c);!a&&u&&P.isEdge(y,g,c)||(h=!0,g=R.extractProps(l),y.apply({type:"split_node",path:c,position:p,properties:g})),p=c[c.length-1]+(h||v?1:0)}null==m.at&&(s=r.current||P.end(y,[]),j.select(y,s)),u.unref(),r.unref()}}})},unsetNodes(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o={};for(n of t=Array.isArray(t)?t:[t])o[n]=null;j.setNodes(e,o,r)},unwrapNodes(u){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(u,()=>{var{mode:e="lowest",split:n=!1,voids:r=!1}=s,{at:t=u.selection,match:o}=s;if(t){null==o&&(o=M.isPath(t)?Lc(u,t):e=>P.isBlock(u,e)),M.isPath(t)&&(t=P.range(u,t));var i,a=z.isRange(t)?P.rangeRef(u,t):null,t=P.nodes(u,{at:t,match:o,mode:e,voids:r});for(i of Array.from(t,e=>{var[,e]=e;return P.pathRef(u,e)}).reverse())!function(e){var e=e.unref(),[t]=P.node(u,e),e=P.range(u,e);n&&a&&(e=z.intersection(a.current,e)),j.liftNodes(u,{at:e,match:e=>_.isAncestor(t)&&t.children.includes(e),voids:r})}(i);a&&a.unref()}})},wrapNodes(c,f){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(c,()=>{var e,t,n,{mode:r="lowest",split:o=!1,voids:i=!1}=d,{match:a,at:u=c.selection}=d;if(u){null==a&&(a=M.isPath(u)?Lc(c,u):c.isInline(f)?e=>P.isInline(c,e)||H.isText(e):e=>P.isBlock(c,e)),o&&z.isRange(u)&&([o,e]=z.edges(u),t=P.rangeRef(c,u,{affinity:"inward"}),j.splitNodes(c,{at:e,match:a,voids:i}),j.splitNodes(c,{at:o,match:a,voids:i}),u=t.unref(),null==d.at)&&j.select(c,u);for([,n]of Array.from(P.nodes(c,{at:u,match:c.isInline(f)?e=>P.isBlock(c,e):e=>P.isEditor(e),mode:"lowest",voids:i}))){var s,l=z.isRange(u)?z.intersection(u,P.range(c,n)):u;l&&0<(s=Array.from(P.nodes(c,{at:l,match:a,mode:r,voids:i}))).length&&function(){var t,e,[n]=s,[,n]=n,[,r]=s[s.length-1];0===n.length&&0===r.length||(e=M.equals(n,r)?M.parent(n):M.common(n,r),n=P.range(c,n,r),[t]=P.node(c,e),e=e.length+1,r=M.next(r.slice(0,e)),e=jc(jc({},f),{},{children:[]}),j.insertNodes(c,e,{at:r,voids:i}),j.moveNodes(c,{at:n,match:e=>_.isAncestor(t)&&t.children.includes(e),to:r.concat(0),voids:i}))}()}}})}},Nc=(e,t)=>{var n;return _.isElement(t)?!!P.isVoid(e,n=t)||1===n.children.length&&Nc(e,n.children[0]):!P.isEditor(t)},Ic=(e,t)=>{var n;return z.isCollapsed(t)?t.anchor:([,n]=z.edges(t),n=P.pointRef(e,n),j.delete(e,{at:t}),n.unref())},Lc=(e,t)=>{var[n]=P.node(e,t);return e=>e===n};function Rc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Mc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}i={collapse(e){var t,{edge:n="anchor"}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e["selection"];r&&("anchor"===n?j.select(e,r.anchor):"focus"===n?j.select(e,r.focus):"start"===n?([t]=z.edges(r),j.select(e,t)):"end"===n&&([,t]=z.edges(r),j.select(e,t)))},deselect(e){var t=e["selection"];t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t,n,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=e["selection"],{distance:i=1,unit:a="character",reverse:u=!1}=r,{edge:r=null}=r;o&&({anchor:n,focus:t}=o,i={distance:i,unit:a},a={},null!=(r="end"===(r="start"===r?z.isBackward(o)?"focus":"anchor":r)?z.isBackward(o)?"anchor":"focus":r)&&"anchor"!==r||(o=u?P.before(e,n,i):P.after(e,n,i))&&(a.anchor=o),null!=r&&"focus"!==r||(n=u?P.before(e,t,i):P.after(e,t,i))&&(a.focus=n),j.setSelection(e,a))},select(e,t){var n=e["selection"];if(t=P.range(e,t),n)j.setSelection(e,t);else{if(!z.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n,r=e["selection"],{edge:o="both"}=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};r&&("end"===(o="start"===o?z.isBackward(r)?"focus":"anchor":o)&&(o=z.isBackward(r)?"anchor":"focus"),{anchor:r,focus:n}=r,j.setSelection(e,{["anchor"===o?"anchor":"focus"]:Mc(Mc({},"anchor"===o?r:n),t)}))},setSelection(e,t){var n=e["selection"],r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!bc.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!bc.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);0<Object.keys(r).length&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},e={delete(w){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};P.withoutNormalizing(w,()=>{var{reverse:e=!1,unit:t="character",distance:n=1,voids:r=!1}=x,{at:o=w.selection,hanging:i=!1}=x;if(o)if(z.isRange(o)&&z.isCollapsed(o)&&(o=o.anchor),bc.isPoint(o)&&(s=P.void(w,{at:o,mode:"highest"}),!r&&s?([,s]=s,o=s):(s={unit:t,distance:n},o={anchor:o,focus:e?P.before(w,o,s)||P.start(w,[]):P.after(w,o,s)||P.end(w,[])},i=!0)),M.isPath(o))j.removeNodes(w,{at:o,voids:r});else if(!z.isCollapsed(o)){i||([,t]=z.edges(o),n=P.end(w,[]),bc.equals(t,n))||(o=P.unhangRange(w,o,{voids:r}));var[a,u]=z.edges(o),s=P.above(w,{match:e=>P.isBlock(w,e),at:a,voids:r}),i=P.above(w,{match:e=>P.isBlock(w,e),at:u,voids:r}),t=s&&i&&!M.equals(s[1],i[1]),n=M.equals(a.path,u.path),l=r?null:P.void(w,{at:a,mode:"highest"}),c=r?null:P.void(w,{at:u,mode:"highest"});l&&(m=P.before(w,a))&&s&&M.isAncestor(s[1],m.path)&&(a=m),c&&(s=P.after(w,u))&&i&&M.isAncestor(i[1],s.path)&&(u=s);var f,d,p=[];for(d of P.nodes(w,{at:o,voids:r})){var[h,g]=d;f&&0===M.compare(g,f)||(!r&&P.isVoid(w,h)||!M.isCommon(g,a.path)&&!M.isCommon(g,u.path))&&(p.push(d),f=g)}var v,y,m=Array.from(p,e=>{var[,e]=e;return P.pathRef(w,e)}),i=P.pointRef(w,a),s=P.pointRef(w,u);n||l||(o=i.current,[l]=P.leaf(w,o),o=o["path"],y=a["offset"],0<(l=l.text.slice(y)).length&&w.apply({type:"remove_text",path:o,offset:y,text:l}));for(v of m){var b=v.unref();j.removeNodes(w,{at:b,voids:r})}c||(o=s.current,[y]=P.leaf(w,o),l=o["path"],m=n?a.offset:0,0<(c=y.text.slice(m,u.offset)).length&&w.apply({type:"remove_text",path:l,offset:m,text:c})),!n&&t&&s.current&&i.current&&j.mergeNodes(w,{at:s.current,hanging:!0,voids:r});o=e?i.unref()||s.unref():s.unref()||i.unref();null==x.at&&o&&j.select(w,o)}})},insertFragment(E,D){var S=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(E,()=>{var{hanging:e=!1,voids:t=!1}=S,{at:n=E.selection}=S;if(D.length&&n){if(z.isRange(n))if(e||(n=P.unhangRange(E,n)),z.isCollapsed(n))n=n.anchor;else{var[,e]=z.edges(n);if(!t&&P.void(E,{at:e}))return;e=P.pointRef(E,e);j.delete(E,{at:n}),n=e.unref()}else M.isPath(n)&&(n=P.start(E,n));if(t||!P.void(E,{at:n})){e=P.above(E,{at:n,match:e=>P.isInline(E,e),mode:"highest",voids:t});e&&([,e]=e,P.isEnd(E,n,e)?n=P.after(E,e):P.isStart(E,n,e)&&(n=P.before(E,e)));var r,[,e]=P.above(E,{match:e=>P.isBlock(E,e),at:n,voids:t}),o=P.isStart(E,n,e),i=P.isEnd(E,n,e),a=o&&i,u=!o||i,s=!i,[,l]=R.first({children:D},[]),[,c]=R.last({children:D},[]),f=[],d=e=>{var[e,t]=e;return!(0===t.length||!a&&(u&&M.isAncestor(t,l)&&_.isElement(e)&&!E.isVoid(e)&&!E.isInline(e)||s&&M.isAncestor(t,c)&&_.isElement(e)&&!E.isVoid(e)&&!E.isInline(e)))};for(r of R.nodes({children:D},{pass:d}))d(r)&&f.push(r);var p,h=[],g=[],v=[],y=!0,m=!1;for([p]of f)(_.isElement(p)&&!E.isInline(p)?(y=!1,m=!0,g):y?h:v).push(p);var[o]=P.nodes(E,{at:n,match:e=>H.isText(e)||P.isInline(E,e),mode:"highest",voids:t}),[,o]=o,b=P.isStart(E,n,o),w=P.isEnd(E,n,o),i=P.pathRef(E,i?M.next(e):e),x=P.pathRef(E,w?M.next(o):o),e=P.pathRef(E,e),n=(j.splitNodes(E,{at:n,match:e=>m?P.isBlock(E,e):H.isText(e)||P.isInline(E,e),mode:m?"lowest":"highest",voids:t}),P.pathRef(E,!b||w?M.next(o):o));j.insertNodes(E,h,{at:n.current,match:e=>H.isText(e)||P.isInline(E,e),mode:"highest",voids:t}),a&&g.length&&j.delete(E,{at:e.unref(),voids:t}),j.insertNodes(E,g,{at:i.current,match:e=>P.isBlock(E,e),mode:"lowest",voids:t}),j.insertNodes(E,v,{at:x.current,match:e=>H.isText(e)||P.isInline(E,e),mode:"highest",voids:t}),S.at||(b=0<v.length?M.previous(x.current):0<g.length?M.previous(i.current):M.previous(n.current),w=P.end(E,b),j.select(E,w)),n.unref(),i.unref(),x.unref()}}})},insertText(r,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};P.withoutNormalizing(r,()=>{var{voids:e=!1}=i,{at:t=r.selection}=i;if(t){if(M.isPath(t)&&(t=P.range(r,t)),z.isRange(t))if(z.isCollapsed(t))t=t.anchor;else{var n=z.end(t);if(!e&&P.void(r,{at:n}))return;var n=P.pointRef(r,n);j.delete(r,{at:t,voids:e}),t=n.unref(),j.setSelection(r,{anchor:t,focus:t})}!e&&P.void(r,{at:t})||({path:n,offset:e}=t,0<o.length&&r.apply({type:"insert_text",path:n,offset:e,text:o}))}})}};function zc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Hc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zc(Object(n),!0).forEach(function(e){El(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var j=Hc(Hc(Hc(Hc({},{transform(e,t){e.children=wl(e.children);var n=e.selection&&wl(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=R.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of z.points(t))t[s]=bc.transform(u,n);break;case"insert_text":var{path:r,offset:i,text:a}=n;if(0!==a.length){o=R.leaf(e,r),r=o.text.slice(0,i),i=o.text.slice(i);if(o.text=r+a+i,t)for(var[l,c]of z.points(t))t[c]=bc.transform(l,n)}break;case"merge_node":var o=n["path"],r=R.get(e,o),a=M.previous(o),i=R.get(e,a),a=R.parent(e,o),f=o[o.length-1];if(H.isText(r)&&H.isText(i))i.text+=r.text;else{if(H.isText(r)||H.isText(i))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(o,"] to nodes of different interfaces: ").concat(r," ").concat(i));i.children.push(...r.children)}if(a.children.splice(f,1),t)for(var[d,p]of z.points(t))t[p]=bc.transform(d,n);break;case"move_node":var{path:o,newPath:i}=n;if(M.isAncestor(o,i))throw new Error("Cannot move a path [".concat(o,"] to new path [").concat(i,"] because the destination is inside itself."));r=R.get(e,o),a=R.parent(e,o),f=o[o.length-1],i=(a.children.splice(f,1),M.transform(o,n)),a=R.get(e,M.parent(i)),f=i[i.length-1];if(a.children.splice(f,0,r),t)for(var[h,g]of z.points(t))t[g]=bc.transform(h,n);break;case"remove_node":var v=n["path"],o=v[v.length-1];if(R.parent(e,v).children.splice(o,1),t)for(var[y,m]of z.points(t)){var b=bc.transform(y,n);if(null!=t&&null!=b)t[m]=b;else{var w,x,E=void 0,D=void 0;for([w,x]of R.texts(e)){if(-1!==M.compare(x,v)){D=[w,x];break}E=[w,x]}m=!1;E&&D&&(m=M.equals(D[1],v)?!M.hasPrevious(D[1]):M.common(E[1],v).length<M.common(D[1],v).length),E&&!m?(y.path=E[1],y.offset=E[0].text.length):D?(y.path=D[1],y.offset=0):t=null}}break;case"remove_text":var{path:i,offset:a,text:f}=n;if(0!==f.length){r=R.leaf(e,i),o=r.text.slice(0,a),i=r.text.slice(a+f.length);if(r.text=o+i,t)for(var[S,C]of z.points(t))t[C]=bc.transform(S,n)}break;case"set_node":var{path:a,properties:f,newProperties:A}=n;if(0===a.length)throw new Error("Cannot set properties on the root node!");var O,k,B=R.get(e,a);for(O in A){if("children"===O||"text"===O)throw new Error('Cannot set the "'.concat(O,'" property of nodes!'));var F=A[O];null==F?delete B[O]:B[O]=F}for(k in f)A.hasOwnProperty(k)||delete B[k];break;case"set_selection":var T=n["newProperties"];if(null==T)t=T;else{if(null==t){if(!z.isRange(T))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(T)," when there is no current selection."));t=Fc({},T)}for(var _ in T){var P=T[_];if(null==P){if("anchor"===_||"focus"===_)throw new Error('Cannot remove the "'.concat(_,'" selection property'));delete t[_]}else t[_]=P}}break;case"split_node":var{path:r,position:o,properties:i}=n;if(0===r.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(r,"] because the root node cannot be split."));var j,N,a=R.get(e,r),f=R.parent(e,r),r=r[r.length-1],o=H.isText(a)?(j=a.text.slice(0,o),N=a.text.slice(o),a.text=j,Fc(Fc({},i),{},{text:N})):(j=a.children.slice(0,o),N=a.children.slice(o),a.children=j,Fc(Fc({},i),{},{children:N}));if(f.children.splice(r+1,0,o),t)for(var[I,L]of z.points(t))t[L]=bc.transform(I,n)}return t})(e,n,t)}finally{e.children=xl(e.children),e.selection=n?Fs(n)?xl(n):n:null}}}),Xo),i),e),$c="[object Map]",Vc="[object Set]",Uc=/^\[object .+?Constructor\]$/,Wc=/^(?:0|[1-9]\d*)$/,u="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",s="\\ud83c[\\udffb-\\udfff]",r="[^\\ud800-\\udfff]",Xo="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",e="(?:"+u+"|"+s+")?",e="[\\ufe0e\\ufe0f]?"+e+"(?:\\u200d(?:"+[r,Xo,i].join("|")+")[\\ufe0e\\ufe0f]?"+e+")*",r="(?:"+[r+u+"?",u,Xo,i,"[\\ud800-\\udfff]"].join("|")+")",Gc=RegExp(s+"(?="+s+")|"+r+e,"g"),qc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),u="object"==typeof je&&je&&je.Object===Object&&je,Xo="object"==typeof self&&self&&self.Object===Object&&self,i=u||Xo||Function("return this")();var Kc,Yc,s=Function.prototype,Xc=Object.prototype,r=i["__core-js_shared__"],Zc=(e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Jc=s.toString,Qc=Xc.hasOwnProperty,ef=Xc.toString,tf=RegExp("^"+Jc.call(Qc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),u=i.Symbol,nf=u?u.iterator:void 0,rf=Xc.propertyIsEnumerable,of=(Kc=Object.keys,Yc=Object,function(e){return Kc(Yc(e))}),Xo=ff(i,"DataView"),r=ff(i,"Map"),e=ff(i,"Promise"),s=ff(i,"Set"),u=ff(i,"WeakMap"),af=pf(Xo),uf=pf(r),sf=pf(e),lf=pf(s),cf=pf(u);function ff(e,t){e=null==e?void 0:e[t];return!yf(t=e)||Zc&&Zc in t||!(vf(t)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(t)?tf:Uc).test(pf(t))?void 0:e}var df=function(e){return ef.call(e)};function pf(e){if(null!=e){try{return Jc.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Xo&&"[object DataView]"!=df(new Xo(new ArrayBuffer(1)))||r&&df(new r)!=$c||e&&"[object Promise]"!=df(e.resolve())||s&&df(new s)!=Vc||u&&"[object WeakMap]"!=df(new u))&&(df=function(e){var t=ef.call(e),e="[object Object]"==t?e.constructor:void 0,e=e?pf(e):void 0;if(e)switch(e){case af:return"[object DataView]";case uf:return $c;case sf:return"[object Promise]";case lf:return Vc;case cf:return"[object WeakMap]"}return t});var hf=Array.isArray;function gf(e){return null!=e&&"number"==typeof(t=e.length)&&-1<t&&t%1==0&&t<=9007199254740991&&!vf(e);var t}function vf(e){e=yf(e)?ef.call(e):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function yf(e){var t=typeof e;return e&&("object"==t||"function"==t)}function mf(e){return!!e&&"object"==typeof e}function bf(e){if(e){for(var t,n=e,r=function(e){return(gf(e)?function(e){var t,n,r,o,i=hf(e)||mf(t=e)&&gf(t)&&Qc.call(t,"callee")&&(!rf.call(t,"callee")||"[object Arguments]"==ef.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=i.length,u=!!a;for(n in e)!Qc.call(e,n)||u&&("length"==n||(r=n,o=a,(o=null==o?9007199254740991:o)&&("number"==typeof r||Wc.test(r))&&-1<r&&r%1==0&&r<o))||i.push(n);return i}:function(e){if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||Xc))return of(e);var t,n,r=[];for(n in Object(e))Qc.call(e,n)&&"constructor"!=n&&r.push(n);return r})(e)}(e),o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=(t=r[o],n[t]);return a}return[]}function wf(e){if(!e)return[];if(gf(e)){i=e;if("string"==typeof i||!hf(i)&&mf(i)&&"[object String]"==ef.call(i))return i=e,qc.test(i)?i.match(Gc)||[]:i.split("");else{var t=e;var n=void 0;var r=-1,o=t.length;for(n=n||Array(o);++r<o;)n[r]=t[r];return n;return}}var i;if(nf&&e[nf]){for(var a,u=e[nf](),s=[];!(a=u.next()).done;)s.push(a.value);return s}return((i=df(e))==$c?function(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}:i==Vc?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}:bf)(e)}function xf(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Ef(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Object.keys(n).forEach(function(e){void 0===t[e]?t[e]=n[e]:xf(n[e])&&xf(t[e])&&0<Object.keys(n[e]).length&&Ef(t[e],n[e])})}var Df={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Sf(){var e="undefined"!=typeof document?document:{};return Ef(e,Df),e}var Cf={document:Df,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Af(){var e="undefined"!=typeof window?window:{};return Ef(e,Cf),e}function Of(e){return(Of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kf(e,t){return(kf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bf(e,t,n){return(Bf=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(e){}}}()?Reflect.construct:function(e,t,n){var r=[null],t=(r.push.apply(r,t),new(Function.bind.apply(e,r)));return n&&kf(t,n.prototype),t}).apply(null,arguments)}function Ff(e){var n="function"==typeof Map?new Map:void 0;return function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return Bf(e,arguments,Of(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),kf(t,e)}(e)}Tf=Ff(Array),i=Tf,(Xo=Pf).prototype=Object.create(i.prototype),(Xo.prototype.constructor=Xo).__proto__=i;var Tf,_f=Pf;function Pf(e){var t=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e=Tf.call.apply(Tf,[this].concat(e))||this),n=t.__proto__;return Object.defineProperty(t,"__proto__",{get:function(){return n},set:function(e){n.__proto__=e}}),e}function jf(e){var t=[];return(e=void 0===e?[]:e).forEach(function(e){Array.isArray(e)?t.push.apply(t,jf(e)):t.push(e)}),t}function Nf(e,t){return Array.prototype.filter.call(e,t)}function N(e,o){var t=Af(),i=Sf(),n=[];if(!o&&e instanceof _f)return e;if(!e)return new _f(n);if("string"==typeof e){var r=e.trim();if(0<=r.indexOf("<")&&0<=r.indexOf(">")){var a="div",u=(0===r.indexOf("<li")&&(a="ul"),0===r.indexOf("<tr")&&(a="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(a="tr"),0===r.indexOf("<tbody")&&(a="table"),0===r.indexOf("<option")&&(a="select"),i.createElement(a));u.innerHTML=r;for(var s=0;s<u.childNodes.length;s+=1)n.push(u.childNodes[s])}else n=function(e){if("string"!=typeof e)return[e];for(var t=[],n=(o||i).querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return t}(e.trim())}else if(e.nodeType||e===t||e===i)n.push(e);else if(Array.isArray(e)){if(e instanceof _f)return e;n=e}return new _f(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n))}function If(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jf(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){(e=e.classList).add.apply(e,r)}),this}function Lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jf(t.map(function(e){return e.split(" ")}));return this.forEach(function(e){(e=e.classList).remove.apply(e,r)}),this}function Rf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jf(t.map(function(e){return e.split(" ")}));return 0<Nf(this,function(t){return 0<r.filter(function(e){return t.classList.contains(e)}).length}).length}function Mf(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function zf(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Hf(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];0<=i.name.indexOf("data-")&&(n[i.name.split("data-")[1].toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=i.value)}for(t in n)"false"===n[t]?n[t]=!1:"true"===n[t]?n[t]=!0:parseFloat(n[t])===+n[t]&&(n[t]*=1);return n}}function $f(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=0<=e.indexOf(i.options[a].value);else i.value=e}return this}function Vf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),N(t).is(i))a.apply(t,n);else for(var r=N(t).parents(),o=0;o<r.length;o+=1)N(r[o]).is(i)&&a.apply(r[o],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}"function"==typeof t[1]&&(r=t[0],a=t[1],o=t[2],i=void 0);for(var l,o=o||!1,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(i)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:a,proxyListener:u}),d.addEventListener(p,u,o)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:a,proxyListener:s}),d.addEventListener(h,s,o)}}return this}function Uf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0);for(var a=a||!1,u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;0<=p;--p){var h=d[p];(i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i||!i)&&(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Wf(){var e=Af();return this[0]===e?e.innerWidth:0<this.length?parseFloat(this.css("width")):null}function Gf(){var e=Af();return this[0]===e?e.innerHeight:0<this.length?parseFloat(this.css("height")):null}function qf(){var e,t,n,r,o,i;return 0<this.length?(i=Af(),r=Sf(),t=(e=this[0]).getBoundingClientRect(),r=r.body,n=e.clientTop||r.clientTop||0,r=e.clientLeft||r.clientLeft||0,o=e===i?i.scrollY:e.scrollTop,i=e===i?i.scrollX:e.scrollLeft,{top:t.top+o-n,left:t.left+i-r}):null}function Kf(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Yf(){for(var e=Af(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function Xf(e,t){var n,r=Af();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e)for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}function Zf(n){return n&&this.forEach(function(e,t){n.apply(e,[e,t])}),this}function Jf(e){return N(Nf(this,e))}function Qf(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function ed(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function td(e){var t,n,r=Af(),o=Sf(),i=this[0];if(i&&void 0!==e)if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=N(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0}else{if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof _f)for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0}return!1}function nd(){for(var e=Sf(),t=0;t<arguments.length;t+=1)for(var n=t<0||arguments.length<=t?void 0:arguments[t],r=0;r<this.length;r+=1)if("string"==typeof n){var o=e.createElement("div");for(o.innerHTML=n;o.firstChild;)this[r].appendChild(o.firstChild)}else if(n instanceof _f)for(var i=0;i<n.length;i+=1)this[r].appendChild(n[i]);else this[r].appendChild(n);return this}function rd(e){for(var t,n=Sf(),r=0;r<this.length;r+=1)if("string"==typeof e){var o=n.createElement("div");for(o.innerHTML=e,t=o.childNodes.length-1;0<=t;--t)this[r].insertBefore(o.childNodes[t],this[r].childNodes[0])}else if(e instanceof _f)for(t=0;t<e.length;t+=1)this[r].insertBefore(e[t],this[r].childNodes[0]);else this[r].insertBefore(e,this[r].childNodes[0]);return this}function od(e){for(var t=[],n=0;n<this.length;n+=1)null===this[n].parentNode||e&&!N(this[n].parentNode).is(e)||t.push(this[n].parentNode);return N(t)}function id(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e&&!N(r).is(e)||t.push(r),r=r.parentNode;return N(t)}function ad(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return N(t)}function ud(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!N(r[o]).is(e)||t.push(r[o]);return N(t)}function sd(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ld(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}N.fn=_f.prototype;var cd="resize scroll".split(" ");function fd(o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0!==t[0])return this.on.apply(this,[o].concat(t));for(var r=0;r<this.length;r+=1)cd.indexOf(o)<0&&(o in this[r]?this[r][o]():N(this[r]).trigger(o));return this}}var r=fd("click"),e=fd("focus"),dd=/^(?:0|[1-9]\d*)$/;var pd,hd,gd,vd=Object.prototype,yd=vd.hasOwnProperty,md=vd.toString,bd=vd.propertyIsEnumerable,wd=(pd=Object.keys,hd=Object,function(e){return pd(hd(e))}),xd=(gd=function(e,t){return e&&xd(e,t,Sd)},function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e});var Ed=Array.isArray;function Dd(e){return null!=e&&"number"==typeof(t=e.length)&&-1<t&&t%1==0&&t<=9007199254740991&&(e=typeof(t=e),!("[object Function]"==(e=!t||"object"!=e&&"function"!=e?"":md.call(t))||"[object GeneratorFunction]"==e));var t}function Sd(e){return(Dd(e)?function(e){var t,n,r,o,i,a=Ed(e)||(n=t=e)&&"object"==typeof n&&Dd(n)&&yd.call(t,"callee")&&(!bd.call(t,"callee")||"[object Arguments]"==md.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(r in e)!yd.call(e,r)||s&&("length"==r||(o=r,i=u,(i=null==i?9007199254740991:i)&&("number"==typeof o||dd.test(o))&&-1<o&&o%1==0&&o<i))||a.push(r);return a}:function(e){if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||vd))return wd(e);var t,n,r=[];for(n in Object(e))yd.call(e,n)&&"constructor"!=n&&r.push(n);return r})(e)}function Cd(e){return e}var Ad=function(e,t){return(Ed(e)?function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}:function(e,t){if(null!=e){if(!Dd(e))return gd(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););}return e})(e,"function"==typeof t?t:Cd)};let Od=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function kd(){return jd.Date.now()}var Bd=/^\s+|\s+$/g,Fd=/^[-+]0x[0-9a-f]+$/i,Td=/^0b[01]+$/i,_d=/^0o[0-7]+$/i,Pd=parseInt,s="object"==typeof je&&je&&je.Object===Object&&je,u="object"==typeof self&&self&&self.Object===Object&&self,jd=s||u||Function("return this")(),Nd=Object.prototype.toString,Id=Math.max,Ld=Math.min;function Rd(e){var t=typeof e;return e&&("object"==t||"function"==t)}function Md(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==Nd.call(t))return NaN;if("string"!=typeof(e=Rd(e)?Rd(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(Bd,"");var t=Td.test(e);return t||_d.test(e)?Pd(e.slice(2),t?2:8):Fd.test(e)?NaN:+e}function zd(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");Rd(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o);var i,a,u,s,l,c,f=e,d=t,n={leading:r,maxWait:t,trailing:o},p=0,h=!1,g=!1,v=!0;if("function"!=typeof f)throw new TypeError("Expected a function");function y(e){var t=i,n=a;return i=a=void 0,p=e,s=f.apply(n,t)}function m(e){var t=e-c;return void 0===c||d<=t||t<0||g&&u<=e-p}function b(){var e,t=kd();if(m(t))return w(t);l=setTimeout(b,(e=d-(t-c),g?Ld(e,u-(t-p)):e))}function w(e){return l=void 0,v&&i?y(e):(i=a=void 0,s)}function x(){var e=kd(),t=m(e);if(i=arguments,a=this,c=e,t){if(void 0===l)return p=e=c,l=setTimeout(b,d),h?y(e):s;if(g)return l=setTimeout(b,d),y(c)}return void 0===l&&(l=setTimeout(b,d)),s}return d=Md(d)||0,Rd(n)&&(h=!!n.leading,u=(g="maxWait"in n)?Id(Md(n.maxWait)||0,d):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==l&&clearTimeout(l),i=c=a=l=void(p=0)},x.flush=function(){return void 0===l?s:w(kd())},x}const Hd={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function $d(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Vd=Array.isArray;function Ud(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Wd(e){return void 0===e}function Gd(e){return void 0!==e}const qd=$d("",{},[],void 0,void 0);function Kd(e,t){var n=e.key===t.key,r=(null==(r=e.data)?void 0:r.is)===(null==(r=t.data)?void 0:r.is);return e.sel===t.sel&&n&&r}const Yd=["create","update","remove","destroy","pre","post"];function Xd(e,t){const b={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},w=void 0!==t?t:Hd;for(const t of Yd)for(const w of e){const e=w[t];void 0!==e&&b[t].push(e)}function x(e,t){var n,r;let o,i=e.data;if(void 0!==i){const t=null==(n=i.hook)?void 0:n.init;Gd(t)&&(t(e),i=e.data)}var a=e.children,u=e.sel;if("!"===u)Wd(e.text)&&(e.text=""),e.elm=w.createComment(e.text);else if(void 0!==u){const n=u.indexOf("#"),s=u.indexOf(".",n),l=0<n?n:u.length,c=0<s?s:u.length,f=-1!==n||-1!==s?u.slice(0,Math.min(l,c)):u,d=e.elm=Gd(i)&&Gd(o=i.ns)?w.createElementNS(o,f,i):w.createElement(f,i);for(l<c&&d.setAttribute("id",u.slice(l+1,c)),0<s&&d.setAttribute("class",u.slice(c+1).replace(/\./g," ")),o=0;o<b.create.length;++o)b.create[o](qd,e);if(Vd(a))for(o=0;o<a.length;++o){const e=a[o];null!=e&&w.appendChild(d,x(e,t))}else Ud(e.text)&&w.appendChild(d,w.createTextNode(e.text));u=e.data.hook;Gd(u)&&(null!=(r=u.create)&&r.call(u,qd,e),u.insert)&&t.push(e)}else e.elm=w.createTextNode(e.text);return e.elm}function E(e,t,n,r,o,i){for(;r<=o;++r){const o=n[r];null!=o&&w.insertBefore(e,x(o,i),t)}}function D(e,t,n,r){for(;n<=r;++n){var o,i,a=t[n];if(null!=a)if(Gd(a.sel)){(function t(n){var e,r=n.data;if(void 0!==r){null!=(e=null==(r=null==r?void 0:r.hook)?void 0:r.destroy)&&e.call(r,n);for(let e=0;e<b.destroy.length;++e)b.destroy[e](n);if(void 0!==n.children)for(let e=0;e<n.children.length;++e){const b=n.children[e];null!=b&&"string"!=typeof b&&t(b)}}})(a),o=b.remove.length+1,i=function(e,t){return function(){if(0==--t){const t=w.parentNode(e);w.removeChild(t,e)}}}(a.elm,o);for(let e=0;e<b.remove.length;++e)b.remove[e](a,i);const e=null==(o=null==(o=null==a?void 0:a.data)?void 0:o.hook)?void 0:o.remove;Gd(e)?e(a,i):i()}else w.removeChild(e,a.elm)}}function S(t,n,f){var e,r,o=null==(o=n.data)?void 0:o.hook,d=(null!=(d=null==o?void 0:o.prepatch)&&d.call(o,t,n),n.elm=t.elm),p=t.children,h=n.children;if(t!==n){if(void 0!==n.data){for(let e=0;e<b.update.length;++e)b.update[e](t,n);null!=(r=null==(e=n.data.hook)?void 0:e.update)&&r.call(e,t,n)}if(Wd(n.text))if(Gd(p)&&Gd(h)){if(p!==h){var g=d;var v=p;var y=h;var m=f;let e,t,n,r=0,o=0,i=v.length-1,a=v[0],u=v[i],s=y.length-1,l=y[0],c=y[s];for(;r<=i&&o<=s;)null==a?a=v[++r]:null==u?u=v[--i]:null==l?l=y[++o]:null==c?c=y[--s]:Kd(a,l)?(S(a,l,m),a=v[++r],l=y[++o]):Kd(u,c)?(S(u,c,m),u=v[--i],c=y[--s]):Kd(a,c)?(S(a,c,m),w.insertBefore(g,a.elm,w.nextSibling(u.elm)),a=v[++r],c=y[--s]):l=(Kd(u,l)?(S(u,l,m),w.insertBefore(g,u.elm,a.elm),u=v[--i]):Wd(t=(e=void 0===e?function(t,n,r){var o,i={};for(let e=n;e<=r;++e){const n=null==(o=t[e])?void 0:o.key;void 0!==n&&(i[n]=e)}return i}(v,r,i):e)[l.key])||(n=v[t]).sel!==l.sel?w.insertBefore(g,x(l,m),a.elm):(S(n,l,m),v[t]=void 0,w.insertBefore(g,n.elm,a.elm)),y[++o]);(r<=i||o<=s)&&(r>i?E(g,null==y[s+1]?null:y[s+1].elm,y,o,s,m):D(g,v,r,i))}}else Gd(h)?(Gd(t.text)&&w.setTextContent(d,""),E(d,null,h,0,h.length-1,f)):Gd(p)?D(d,p,0,p.length-1):Gd(t.text)&&w.setTextContent(d,"");else t.text!==n.text&&(Gd(p)&&D(d,p,0,p.length-1),w.setTextContent(d,n.text));null!=(r=null==o?void 0:o.postpatch)&&r.call(o,t,n)}}return function(e,t){let n,r,o;var i,a,u,s=[];for(n=0;n<b.pre.length;++n)b.pre[n]();for(void 0===e.sel&&(a=(i=e).id?"#"+i.id:"",u=(u=i.getAttribute("class"))?"."+u.split(" ").join("."):"",e=$d(w.tagName(i).toLowerCase()+a+u,{},[],void 0,i)),Kd(e,t)?S(e,t,s):(r=e.elm,o=w.parentNode(r),x(t,s),null!==o&&(w.insertBefore(o,t.elm,w.nextSibling(r)),D(o,[e],0,0))),n=0;n<s.length;++n)s[n].data.hook.insert(s[n]);for(n=0;n<b.post.length;++n)b.post[n]();return t}}function Zd(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Vd(n)?r=n:Ud(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(Vd(t)?r=t:Ud(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Ud(r[i])&&(r[i]=$d(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function t(e,n,r){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==r&&void 0!==n)for(let e=0;e<n.length;++e){const r=n[e].data;void 0!==r&&t(r,n[e].children,n[e].sel)}}(a,r,e),$d(e,a,r,o,void 0)}function Jd(e,t){let n;var r=t.elm,o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{}){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Qd={create:Jd,update:Jd};function ep(e,t){let n,r;var o=t.elm,i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in a=a||{},i=i||{})i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const tp={create:ep,update:ep},np=/[A-Z]/g;function rp(e,t){var n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if((o||i)&&o!==i){i=i||{};var a=n.dataset;for(r in o=o||{})i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(np,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(np,"-$&").toLowerCase(),i[r]))}}const op={create:rp,update:rp};function ip(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){var n,r,o;n=e.vnode,r=(t=t).type,(o=n.data.on)&&o[r]&&function t(n,r,o){if("function"==typeof n)n.call(r,o,r);else if("object"==typeof n)for(let e=0;e<n.length;e++)t(n[e],r,o)}(o[r],n,t)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const ap={create:ip,update:ip,destroy:ip};function up(e,t){let n,r,o;var i=t.elm,a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{})r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const sp={create:up,update:up},lp="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let cp=!1;function fp(e,t){let n,r;var o=t.elm,i=e.data.style,a=t.data.style;if((i||a)&&i!==a){var a=a||{},u="delayed"in(i=i||{});for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||function(e,t,n){var r;r=function(){e[t]=n},lp(function(){lp(r)})}(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}}const dp={pre:function(){cp=!1},create:fp,update:fp,destroy:function(e){let t,n;var r=e.elm,e=e.data.style;if(e&&(t=e.destroy))for(n in t)r.style[n]=t[n]},remove:function(r,o){var i=r.data.style;if(i&&i.remove){let e;cp||(r.elm.offsetLeft,cp=!0);const l=r.elm;let t=0;var a=i.remove;let n=0;var u=[];for(e in a)u.push(e),l.style[e]=a[e];for(var s=getComputedStyle(l)["transition-property"].split(", ");t<s.length;++t)-1!==u.indexOf(s[t])&&n++;l.addEventListener("transitionend",function(e){e.target===l&&--n,0===n&&o()})}else o()}};function pp(e,t,...n){n=function e(t,n){for(const r of t)null!=r&&!1!==r&&""!==r&&(Array.isArray(r)?e(r,n):"string"==typeof r||"number"==typeof r||"boolean"==typeof r?n.push($d(void 0,void 0,void 0,String(r),void 0)):n.push(r));return n}(n,[]);return"function"==typeof e?e(t,n):1===n.length&&!n[0].sel&&n[0].text?Zd(e,t,n[0].text):Zd(e,t,n)}pp=pp||{};function hp(e){return null==gp?void 0:gp[e]}var gp,vp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+i+"]",u="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",l="[a-z\\xdf-\\xf6\\xf8-\\xff]",i="[^\\ud800-\\udfff"+i+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",c="\\ud83c[\\udffb-\\udfff]",f="[^\\ud800-\\udfff]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="[A-Z\\xc0-\\xd6\\xd8-\\xde]",i="(?:"+l+"|"+i+")",g="(?:"+u+"|"+c+")?",g="[\\ufe0e\\ufe0f]?"+g+"(?:\\u200d(?:"+[f,d,p].join("|")+")[\\ufe0e\\ufe0f]?"+g+")*",v="(?:"+["[\\u2700-\\u27bf]",d,p].join("|")+")"+g,f="(?:"+[f+u+"?",u,d,p,"[\\ud800-\\udfff]"].join("|")+")",mp=RegExp("['’]","g"),bp=RegExp(u,"g"),wp=RegExp(c+"(?="+c+")|"+f+g,"g"),xp=RegExp([h+"?"+l+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[s,h,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[s,h+i,"$"].join("|")+")",h+"?"+i+"+(?:['’](?:d|ll|m|re|s|t|ve))?",h+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d+",v].join("|"),"g"),Ep=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Dp=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,d="object"==typeof je&&je&&je.Object===Object&&je,p="object"==typeof self&&self&&self.Object===Object&&self,u=d||p||Function("return this")();gp={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"};function Sp(e){return Ep.test(e)}var Cp=Object.prototype.toString,c=u.Symbol,f=c?c.prototype:void 0,Ap=f?f.toString:void 0;function Op(e){return null==e?"":"string"==typeof(e=e)?e:"symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==Cp.call(t)?Ap?Ap.call(e):"":"0"==(t=e+"")&&1/e==-1/0?"-0":t;var t}kp=function(e,t,n){return t=t.toLowerCase(),e+(n?Bp(Op(t).toLowerCase()):t)};for(var kp,Bp=function(e){var t=Sp(e=Op(e))?Sp(t=e)?t.match(wp)||[]:t.split(""):void 0,n=t?t[0]:e.charAt(0),e=t?function(e){var t=e.length,n=e,r=1,e=t,o=-1,i=n.length;(e=i<e?i:e)<0&&(e+=i),i=e<(r=r<0?i<-r?0:i+r:r)?0:e-r>>>0,r>>>=0;for(var a=Array(i);++o<i;)a[o]=n[o+r];return a}(t).join(""):e.slice(1);return n.toUpperCase()+e},Fp=function(e){e=((e=Op(e=e))&&e.replace(yp,hp).replace(bp,"")).replace(mp,""),e=Op(e),t=e;for(var t,n=Dp.test(t)?e.match(xp)||[]:e.match(vp)||[],r=kp,o="",i=-1,a=n?n.length:0;++i<a;)o=r(o,n[i],i,n);return o},g="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Tp={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},_p={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:g?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Pp={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},jp=1;jp<20;jp++)Pp["f"+jp]=111+jp;function Np(e,v,t){!v||"byKey"in v||(t=v,v=null);function n(a){return r.some(function(e){var t,n=e,r=a;for(t in n){var o=n[t],i=void 0;if(null!=o&&(null!=(i="key"===t&&null!=r.key?r.key.toLowerCase():"which"===t?91===o&&93===r.which?91:r.which:r[t])||!1!==o)&&i!==o)return!1}return!0})}var r=(e=Array.isArray(e)?e:[e]).map(function(e){var t,n=e,r=v&&v.byKey,o={},e=(n=n.replace("++","+add")).split("+"),i=e.length;for(t in Tp)o[Tp[t]]=!1;var a,u=!0,s=!1,l=void 0;try{for(var c,f=e[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&1<d.length,h=Ip(d=p?d.slice(0,-1):d),g=Tp[h];if(1<d.length&&!g&&!_p[d]&&!Pp[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(r?o.key=h:o.which=(a=Ip(a=d),Pp[a]||a.toUpperCase().charCodeAt(0))),g&&(o[g]=!p||null)}}catch(n){s=!0,l=n}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return o});return null==t?n:n(t)}function Ip(e){return e=e.toLowerCase(),_p[e]||e}function Lp(e,t){return Np(e,{byKey:!0},t)}var Rp=Np,Mp=/^\s+|\s+$/g,zp=/^[-+]0x[0-9a-f]+$/i,Hp=/^0b[01]+$/i,$p=/^0o[0-7]+$/i,Vp=parseInt,l="object"==typeof je&&je&&je.Object===Object&&je,s="object"==typeof self&&self&&self.Object===Object&&self,Up=l||s||Function("return this")(),Wp=Object.prototype.toString,Gp=Math.max,qp=Math.min,Kp=function(){return Up.Date.now()};function Yp(e){var t=typeof e;return e&&("object"==t||"function"==t)}function Xp(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==Wp.call(t))return NaN;if("string"!=typeof(e=Yp(e)?Yp(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=e.replace(Mp,"");var t=Hp.test(e);return t||$p.test(e)?Vp(e.slice(2),t?2:8):zp.test(e)?NaN:+e}function Zp(r,n,e){var o,i,a,u,s,l,c=0,f=!1,d=!1,t=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function p(e){var t=o,n=i;return o=i=void 0,c=e,u=r.apply(n,t)}function h(e){var t=e-l;return void 0===l||n<=t||t<0||d&&a<=e-c}function g(){var e,t=Kp();if(h(t))return v(t);s=setTimeout(g,(e=n-(t-l),d?qp(e,a-(t-c)):e))}function v(e){return s=void 0,t&&o?p(e):(o=i=void 0,u)}function y(){var e=Kp(),t=h(e);if(o=arguments,i=this,l=e,t){if(void 0===s)return c=e=l,s=setTimeout(g,n),f?p(e):u;if(d)return s=setTimeout(g,n),p(l)}return void 0===s&&(s=setTimeout(g,n)),u}return n=Xp(n)||0,Yp(e)&&(f=!!e.leading,a=(d="maxWait"in e)?Gp(Xp(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),y.cancel=function(){void 0!==s&&clearTimeout(s),o=l=i=s=void(c=0)},y.flush=function(){return void 0===s?u:v(Kp())},y}var Jp,Qp=O(function(e,t){var x="__lodash_hash_undefined__",E=9007199254740991,S="[object Arguments]",M="[object Boolean]",z="[object Date]",C="[object Function]",H="[object GeneratorFunction]",A="[object Map]",$="[object Number]",O="[object Object]",D="[object Promise]",V="[object RegExp]",k="[object Set]",U="[object String]",W="[object Symbol]",n="[object WeakMap]",G="[object ArrayBuffer]",B="[object DataView]",q="[object Float32Array]",K="[object Float64Array]",Y="[object Int8Array]",X="[object Int16Array]",Z="[object Int32Array]",J="[object Uint8Array]",Q="[object Uint8ClampedArray]",ee="[object Uint16Array]",te="[object Uint32Array]",ne=/\w*$/,re=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,F={},r=(F[S]=F["[object Array]"]=F[G]=F[B]=F[M]=F[z]=F[q]=F[K]=F[Y]=F[X]=F[Z]=F[A]=F[$]=F[O]=F[V]=F[k]=F[U]=F[W]=F[J]=F[Q]=F[ee]=F[te]=!0,F["[object Error]"]=F[C]=F[n]=!1,"object"==typeof je&&je&&je.Object===Object&&je),o="object"==typeof self&&self&&self.Object===Object&&self,r=r||o||Function("return this")(),o=t&&!t.nodeType&&t,t=o&&e&&!e.nodeType&&e,t=t&&t.exports===o;function ie(e,t){return e.set(t[0],t[1]),e}function ae(e,t){return e.add(t),e}function ue(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function se(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function le(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function i(t,n){return function(e){return t(n(e))}}function ce(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var o=Array.prototype,a=Function.prototype,u=Object.prototype,s=r["__core-js_shared__"],fe=(s=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",de=a.toString,T=u.hasOwnProperty,l=u.toString,pe=RegExp("^"+de.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s=t?r.Buffer:void 0,a=r.Symbol,he=r.Uint8Array,ge=i(Object.getPrototypeOf,Object),ve=Object.create,ye=u.propertyIsEnumerable,me=o.splice,t=Object.getOwnPropertySymbols,o=s?s.isBuffer:void 0,be=i(Object.keys,Object),s=b(r,"DataView"),c=b(r,"Map"),f=b(r,"Promise"),d=b(r,"Set"),r=b(r,"WeakMap"),p=b(Object,"create"),we=w(s),xe=w(c),Ee=w(f),De=w(d),Se=w(r),a=a?a.prototype:void 0,Ce=a?a.valueOf:void 0;function h(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function g(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function v(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){this.__data__=new g(e)}function Ae(e,t,n){var r=e[t];T.call(e,t)&&Fe(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function y(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function P(s,e,t,n,r,o,i){var a;if(void 0===(a=n?o?n(s,r,o,i):n(s):a)){if(!L(s))return s;var u,l,c,r=I(s);if(r){if(v=(l=s).length,c=l.constructor(v),v&&"string"==typeof l[0]&&T.call(l,"index")&&(c.index=l.index,c.input=l.input),a=c,!e){var f=s;var d=a;var p=-1,h=f.length;for(d=d||Array(h);++p<h;)d[p]=f[p];return d;return}}else{var g=N(s),v=g==C||g==H;if(_e(s))return l=s,e?l.slice():(c=new l.constructor(l.length),l.copy(c),c);if(g==O||g==S||v&&!o){if(se(s))return o?s:{};if(a="function"==typeof(m=v?{}:s).constructor&&!Be(m)&&L(m=ge(m))?ve(m):{},!e)return m=s,u=(u=a)&&Oe(s,R(s),u),Oe(m,ke(m),u)}else{if(!F[g])return o?s:{};a=function(e,t,n){var r,o,i,a,u=e.constructor;switch(g){case G:return j(e);case M:case z:return new u(+e);case B:return i=e,a=n?j(i.buffer):i.buffer,new i.constructor(a,i.byteOffset,i.byteLength);case q:case K:case Y:case X:case Z:case J:case Q:case ee:case te:return a=e,i=n?j(a.buffer):a.buffer,new a.constructor(i,a.byteOffset,a.length);case A:return o=e,ue(n?t(le(o),!0):le(o),ie,new o.constructor);case $:case U:return new u(e);case V:return(r=new(o=e).constructor(o.source,ne.exec(o))).lastIndex=o.lastIndex,r;case k:return r=e,ue(n?t(ce(r),!0):ce(r),ae,new r.constructor);case W:return Ce?Object(Ce.call(e)):{}}}(s,P,e)}}var y,m=(i=i||new _).get(s);if(m)return m;i.set(s,a);for(var b,w,x=(y=r?y:t?function(){var e=s,t=ke,n=R(e);if(I(e))return n;for(var r=n,o=t(e),i=-1,a=o.length,u=r.length;++i<a;)r[u+i]=o[i];return r}():R(s))||s,E=-1,D=x?x.length:0;++E<D&&!1!==(b=x[E],w=E,y&&(b=s[w=b]),void Ae(a,w,P(b,e,t,n,w,s,i))););}return a}function j(e){var t=new e.constructor(e.byteLength);return new he(t).set(new he(e)),t}function Oe(e,t,n,r){n=n||{};for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;Ae(n,a,void 0===u?e[a]:u)}return n}function m(e,t){var n,e=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function b(e,t){e=null==e?void 0:e[t];return!L(t=e)||fe&&fe in t||!(Pe(t)||se(t)?pe:re).test(w(t))?void 0:e}h.prototype.clear=function(){this.__data__=p?p(null):{}},h.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},h.prototype.get=function(e){var t,n=this.__data__;return p?(t=n[e])===x?void 0:t:T.call(n,e)?n[e]:void 0},h.prototype.has=function(e){var t=this.__data__;return p?void 0!==t[e]:T.call(t,e)},h.prototype.set=function(e,t){return this.__data__[e]=p&&void 0===t?x:t,this},g.prototype.clear=function(){this.__data__=[]},g.prototype.delete=function(e){var t=this.__data__,e=y(t,e);return!(e<0||(e==t.length-1?t.pop():me.call(t,e,1),0))},g.prototype.get=function(e){var t=this.__data__,e=y(t,e);return e<0?void 0:t[e][1]},g.prototype.has=function(e){return-1<y(this.__data__,e)},g.prototype.set=function(e,t){var n=this.__data__,r=y(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},v.prototype.clear=function(){this.__data__={hash:new h,map:new(c||g),string:new h}},v.prototype.delete=function(e){return m(this,e).delete(e)},v.prototype.get=function(e){return m(this,e).get(e)},v.prototype.has=function(e){return m(this,e).has(e)},v.prototype.set=function(e,t){return m(this,e).set(e,t),this},_.prototype.clear=function(){this.__data__=new g},_.prototype.delete=function(e){return this.__data__.delete(e)},_.prototype.get=function(e){return this.__data__.get(e)},_.prototype.has=function(e){return this.__data__.has(e)},_.prototype.set=function(e,t){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!c||r.length<199)return r.push([e,t]),this;n=this.__data__=new v(r)}return n.set(e,t),this};var ke=t?i(t,Object):function(){return[]},N=function(e){return l.call(e)};function Be(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||u)}function w(e){if(null!=e){try{return de.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(s&&N(new s(new ArrayBuffer(1)))!=B||c&&N(new c)!=A||f&&N(f.resolve())!=D||d&&N(new d)!=k||r&&N(new r)!=n)&&(N=function(e){var t=l.call(e),e=t==O?e.constructor:void 0,e=e?w(e):void 0;if(e)switch(e){case we:return B;case xe:return A;case Ee:return D;case De:return k;case Se:return n}return t});var I=Array.isArray;function Te(e){return null!=e&&"number"==typeof(t=e.length)&&-1<t&&t%1==0&&t<=E&&!Pe(e);var t}var _e=o||function(){return!1};function Pe(e){e=L(e)?l.call(e):"";return e==C||e==H}function L(e){var t=typeof e;return e&&("object"==t||"function"==t)}function R(e){return(Te(e)?function(e){var t,n,r,o,i,a=I(e)||(n=t=e)&&"object"==typeof n&&Te(n)&&T.call(t,"callee")&&(!ye.call(t,"callee")||l.call(t)==S)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(r in e)!T.call(e,r)||s&&("length"==r||(o=r,i=u,(i=null==i?E:i)&&("number"==typeof o||oe.test(o))&&-1<o&&o%1==0&&o<i))||a.push(r);return a}:function(e){if(!Be(e))return be(e);var t,n=[];for(t in Object(e))T.call(e,t)&&"constructor"!=t&&n.push(t);return n})(e)}e.exports=function(e){return P(e,!0,!0)}});function eh(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}function th(t,n){var r=/\$/g;let o=[t];if(null!=n)for(const t of Object.keys(n))if("_"!==t){let e=n[t];"string"==typeof e&&(e=r[Symbol.replace](e,"$$$$")),o=function(e,t,r){const o=[];return e.forEach(e=>"string"!=typeof e?o.push(e):t[Symbol.split](e).forEach((e,t,n)=>{""!==e&&o.push(e),t<n.length-1&&o.push(r)})),o}(o,new RegExp(`%\\{${t}\\}`,"g"),e)}return o}Jp="__private_0_apply";var nh=class{constructor(e){Object.defineProperty(this,Jp,{value:rh}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(eh(this,Jp)[Jp],this):eh(this,Jp)[Jp](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,!Object.prototype.hasOwnProperty.call(n,e))throw new Error("missing string: "+e);var n=this.locale.strings[e];if("object"!=typeof n)return th(n,t);if(t&&void 0!==t.smart_count)return th(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}};function rh(e){var t;null!=e&&e.strings&&(t=this.locale,this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize)}function oh(){var r={},p=r._fns={};return r.emit=function(e,t,n,r,o,i,a){var u=function(e){for(var t=p[e]||[],n=e.indexOf(":"),r=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],o=Object.keys(p),i=0,a=o.length;i<a;i++){var u=o[i];if("*"===u&&(t=t.concat(p[u])),2===r.length&&r[0]===u){t=t.concat(p[u]);break}}return t}(e);if(u.length)for(var s=e,l=u,c=[t,n,r,o,i,a],f=0,d=l.length;f<d&&l[f];f++)l[f].event=s,l[f].apply(l[f],c)},r.on=function(e,t){p[e]||(p[e]=[]),p[e].push(t)},r.once=function(t,n){this.on(t,function e(){n.apply(this,arguments),r.off(t,e)})},r.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},r}let ih={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}["urlAlphabet"],ah=e=>crypto.getRandomValues(new Uint8Array(e)),uh=(r,o,i)=>{let a=(2<<Math.log(r.length-1)/Math.LN2)-1,u=-~(1.6*a*o/r.length);return()=>{let n="";for(;;){let e=i(u),t=u;for(;t--;)if((n+=r[e[t]&a]||"").length===o)return n}}};function sh(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t,n=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];return(e=n?-e:e)<1?(n?"-":"")+e+" B":(t=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1),e=Number(e/Math.pow(1024,t)),r=r[t],10<=e||e%1==0?(n?"-":"")+e.toFixed(0)+" "+r:(n?"-":"")+e.toFixed(1)+" "+r)}i={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){var r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>uh(e,t,ah),customRandom:uh,urlAlphabet:ih,random:ah};function lh(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}lh.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var ch=/[\/\+\.]/,fh="__private_0_publish";class dh{constructor(){Object.defineProperty(this,fh,{value:ph}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){var t={...this.state},n={...this.state,...e};this.state=n,function(e){if(Object.prototype.hasOwnProperty.call(e,"__private_0_publish"))return e;throw new TypeError("attempted to use private field on non-instance")}(this)[fh](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function ph(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}dh.VERSION="2.0.3";function hh(e){var t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}var gh={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function vh(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+e.charCodeAt(0).toString(32),"/"))+t}function yh(e){return e<10?"0"+e:e.toString()}function mh(){var e=new Date;return`${yh(e.getHours())}:${yh(e.getMinutes())}:`+yh(e.getSeconds())}var h={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${mh()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${mh()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${mh()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${mh()}]`,...t)}}},bh={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},v=i;function y(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var wh=0;function xh(e){return"__private_"+wh+++"_"+e}const Eh=v["nanoid"],{justErrorsLogger:Dh,debugLogger:Sh}=h;class Ch extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class Ah extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Oh=xh("plugins"),kh=xh("storeUnsubscribe"),Bh=xh("emitter"),Fh=xh("preProcessors"),Th=xh("uploaders"),_h=xh("postProcessors"),Ph=xh("checkRestrictions"),jh=xh("checkMinNumberOfFiles"),Nh=xh("checkRequiredMetaFieldsOnFile"),Ih=xh("checkRequiredMetaFields"),Lh=xh("showOrLogErrorAndThrow"),Rh=xh("assertNewUploadAllowed"),Mh=xh("checkAndCreateFileStateObject"),zh=xh("startIfAutoProceed"),Hh=xh("addListeners"),$h=xh("updateOnlineStatus"),Vh=xh("createUpload"),Uh=xh("getUpload"),Wh=xh("removeUpload"),Gh=xh("runUpload"),d=Symbol.for("uppy test: getPlugins"),p=Symbol.for("uppy test: createUpload");class qh{constructor(e){Object.defineProperty(this,Gh,{value:a0}),Object.defineProperty(this,Wh,{value:i0}),Object.defineProperty(this,Uh,{value:o0}),Object.defineProperty(this,Vh,{value:r0}),Object.defineProperty(this,Hh,{value:n0}),Object.defineProperty(this,zh,{value:t0}),Object.defineProperty(this,Mh,{value:e0}),Object.defineProperty(this,Rh,{value:Qh}),Object.defineProperty(this,Lh,{value:Jh}),Object.defineProperty(this,Ih,{value:Zh}),Object.defineProperty(this,Nh,{value:Xh}),Object.defineProperty(this,jh,{value:Yh}),Object.defineProperty(this,Ph,{value:Kh}),Object.defineProperty(this,Oh,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,kh,{writable:!0,value:void 0}),Object.defineProperty(this,Bh,{writable:!0,value:oh()}),Object.defineProperty(this,Fh,{writable:!0,value:new Set}),Object.defineProperty(this,Th,{writable:!0,value:new Set}),Object.defineProperty(this,_h,{writable:!0,value:new Set}),Object.defineProperty(this,$h,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=bh;var t,n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new dh,logger:Dh,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Sh),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=zd(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:!(t=null==t?"undefined"!=typeof navigator?navigator.userAgent:null:t)||!(t=/Edge\/(\d+\.\d+)/.exec(t))||([t,n]=t[1].split("."),t=parseInt(t,10),n=parseInt(n,10),t<15)||15===t&&n<15063||18<t||18===t&&18218<=n,individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),y(this,kh)[kh]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),y(this,Hh)[Hh]()}emit(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];y(this,Bh)[Bh].emit(e,...n)}on(e,t){return y(this,Bh)[Bh].on(e,t),this}once(e,t){return y(this,Bh)[Bh].once(e,t),this}off(e,t){return y(this,Bh)[Bh].off(e,t),this}updateAll(t){this.iteratePlugins(e=>{e.update(t)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){var e=new nh([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const n={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},o={};Object.keys(r).forEach(e=>{var t={...r[e]};t.progress={...t.progress,...n},o[e]=t}),this.setState({files:o,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){y(this,Fh)[Fh].add(e)}removePreProcessor(e){return y(this,Fh)[Fh].delete(e)}addPostProcessor(e){y(this,_h)[_h].add(e)}removePostProcessor(e){return y(this,_h)[_h].delete(e)}addUploader(e){y(this,Th)[Th].add(e)}removeUploader(e){return y(this,Th)[Th].delete(e)}setMeta(t){const e={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(e=>{n[e]={...n[e],meta:{...n[e].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:e,files:n})}setFileMeta(e,t){var n={...this.getState().files};n[e]?(t={...n[e].meta,...t},n[e]={...n[e],meta:t},this.setState({files:n})):this.log("Was trying to set metadata for a file that has been removed: ",e)}getFile(e){return this.getState().files[e]}getFiles(){var e=this.getState()["files"];return Object.values(e)}getObjectOfFilesPerState(){var{files:e,totalProgress:t,error:n}=this.getState(),e=Object.values(e),r=e.filter(e=>{e=e.progress;return!e.uploadComplete&&e.uploadStarted}),o=e.filter(e=>!e.progress.uploadStarted),i=e.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),a=e.filter(e=>e.progress.uploadStarted),u=e.filter(e=>e.isPaused),s=e.filter(e=>e.progress.uploadComplete),l=e.filter(e=>e.error),c=r.filter(e=>!e.isPaused),f=e.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:i,uploadStartedFiles:a,pausedFiles:u,completeFiles:s,erroredFiles:l,inProgressFiles:r,inProgressNotPausedFiles:c,processingFiles:f,isUploadStarted:0<a.length,isAllComplete:100===t&&s.length===e.length&&0===f.length,isAllErrored:!!n&&l.length===e.length,isAllPaused:0!==r.length&&u.length===r.length,isUploadInProgress:0<r.length,isSomeGhost:e.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return y(this,Ph)[Ph](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){var t=this.getState()["files"];return!(!t[e]||t[e].isGhost)}addFile(e){y(this,Rh)[Rh](e);var t=this.getState()["files"];let n=y(this,Mh)[Mh](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, `+n.id)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: `+n.type),y(this,zh)[zh](),n.id}addFiles(n){y(this,Rh)[Rh]();const r={...this.getState().files},o=[],e=[];for(let t=0;t<n.length;t++)try{let e=y(this,Mh)[Mh](r,n[t]);r[e.id]&&r[e.id].isGhost&&(e={...r[e.id],data:n[t].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${e.name}, `+e.id)),r[e.id]=e,o.push(e)}catch(n){n.isRestriction||e.push(n)}if(this.setState({files:r}),o.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",o),5<o.length?this.log(`Added batch of ${o.length} files`):Object.keys(o).forEach(e=>{this.log(`Added file: ${o[e].name}
2
2
  id: ${o[e].id}
3
3
  type: `+o[e].type)}),0<o.length&&y(this,zh)[zh](),0<e.length){let t="Multiple errors occurred while adding files:\n";if(e.forEach(e=>{t+="\n * "+e.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:e.length}),details:t},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(e,t);{const r=new Error(t);throw r.errors=e,r}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete o[e])}),Object.keys(i).forEach(e=>{var t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]});e={currentUploads:i,files:o},0===Object.keys(o).length&&(e.allowNewUpload=!0,e.error=null,e.recoveredState=null),this.setState(e),this.calculateTotalProgress(),e=Object.keys(a);e.forEach(e=>{this.emit("file-removed",a[e],t)}),5<e.length?this.log(`Removed ${e.length} files`):this.log("Removed files: "+e.join(", "))}removeFile(e,t){this.removeFiles([e],t=void 0===t?null:t)}pauseResume(e){var t;if(this.getState().capabilities.resumableUploads&&!this.getFile(e).uploadComplete)return t=!this.getFile(e).isPaused,this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const n={...this.getState().files};Object.keys(n).filter(e=>!n[e].progress.uploadComplete&&n[e].progress.uploadStarted).forEach(e=>{var t={...n[e],isPaused:!0};n[e]=t}),this.setState({files:n}),this.emit("pause-all")}resumeAll(){const n={...this.getState().files};Object.keys(n).filter(e=>!n[e].progress.uploadComplete&&n[e].progress.uploadStarted).forEach(e=>{var t={...n[e],isPaused:!1,error:null};n[e]=t}),this.setState({files:n}),this.emit("resume-all")}retryAll(){const n={...this.getState().files},e=Object.keys(n).filter(e=>n[e].error);var t;return e.forEach(e=>{var t={...n[e],isPaused:!1,error:null};n[e]=t}),this.setState({files:n,error:null}),this.emit("retry-all",e),0===e.length?Promise.resolve({successful:[],failed:[]}):(t=y(this,Vh)[Vh](e,{forceAllowNewUpload:!0}),y(this,Gh)[Gh](t))}cancelAll(){this.emit("cancel-all");var e=this.getState()["files"],e=Object.keys(e);e.length&&this.removeFiles(e,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);e=y(this,Vh)[Vh]([e],{forceAllowNewUpload:!0});return y(this,Gh)[Gh](e)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){var n;this.getFile(e.id)?(n=Number.isFinite(t.bytesTotal)&&0<t.bytesTotal,this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()):this.log("Not setting progress for a file that has been removed: "+e.id)}calculateTotalProgress(){var e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)this.emit("progress",0),this.setState({totalProgress:0});else{const r=e.filter(e=>null!=e.progress.bytesTotal),o=e.filter(e=>null==e.progress.bytesTotal);if(0===r.length){const r=100*e.length,t=o.reduce((e,t)=>e+t.progress.percentage,0),i=Math.round(t/r*100);void this.setState({totalProgress:i})}else{let e=r.reduce((e,t)=>e+t.progress.bytesTotal,0);const i=e/r.length;e+=i*o.length;let t=0,n=(r.forEach(e=>{t+=e.progress.bytesUploaded}),o.forEach(e=>{t+=i*(e.progress.percentage||0)/100}),0===e?0:Math.round(t/e*100));100<n&&(n=100),this.setState({totalProgress:n}),this.emit("progress",n)}}}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);var t=new e(this,t),n=t.id;if(!n)throw new Error("Your plugin must have an id");if(!t.type)throw new Error("Your plugin must have a type");var r=this.getPlugin(n);if(r){const e=`Already found a plugin named '${r.id}'. Tried to use: '${n}'.
4
- Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${n} v`+e.VERSION),t.type in y(this,Oh)[Oh]?y(this,Oh)[Oh][t.type].push(t):y(this,Oh)[Oh][t.type]=[t],t.install(),this}getPlugin(t){for(const n of Object.values(y(this,Oh)[Oh])){var e=n.find(e=>e.id===t);if(null!=e)return e}}[d](e){return y(this,Oh)[Oh][e]}iteratePlugins(e){Object.values(y(this,Oh)[Oh]).flat(1).forEach(e)}removePlugin(t){this.log("Removing plugin "+t.id),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();var e=y(this,Oh)[Oh][t.type],n=e.findIndex(e=>e.id===t.id),e=(-1!==n&&e.splice(n,1),{plugins:{...this.getState().plugins,[t.id]:void 0}});this.setState(e)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),y(this,kh)[kh](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",y(this,$h)[$h]),window.removeEventListener("offline",y(this,$h)[$h]))}hideInfo(){var e=this.getState()["info"];this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);var r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){var n=this.opts["logger"];switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?y(this,Gh)[Gh](e):(y(this,Wh)[Wh](e),Promise.reject(new Error("Nonexistent upload")))}[p](){return y(this,Vh)[Vh](...arguments)}addResultData(e,t){var n;y(this,Uh)[Uh](e)?(n=this.getState().currentUploads,t={...n[e],result:{...n[e].result,...t}},this.setState({currentUploads:{...n,[e]:t}})):this.log("Not setting result for an upload that has been removed: "+e)}upload(){null!=(e=y(this,Oh)[Oh].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let o=this.getState()["files"];var e=this.opts.onBeforeUpload(o);return!1===e?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(e&&"object"==typeof e&&(o=e,this.setState({files:o})),Promise.resolve().then(()=>{y(this,jh)[jh](o),y(this,Ih)[Ih](o)}).catch(e=>{y(this,Lh)[Lh](e)}).then(()=>{const e=this.getState()["currentUploads"],n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(o).forEach(e=>{var t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});var t=y(this,Vh)[Vh](r);return y(this,Gh)[Gh](t)}).catch(e=>{y(this,Lh)[Lh](e,{showInformer:!1})}))}}function Kh(r,e){void 0===e&&(e=this.getFiles());var{maxFileSize:t,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new Ch(""+this.i18n("youCanOnlyUploadX",{smart_count:i}));if(a&&!a.some(e=>{return-1<e.indexOf("/")?!!r.type&&(n=r.type.replace(/;.*?$/,""),e?t(e.split(";")[0]):t):!("."!==e[0]||!r.extension)&&r.extension.toLowerCase()===e.substr(1).toLowerCase();function t(e){t=n,e=new lh(e,ch);var t=void 0!==t?e.match(t):e;return t&&2<=t.length}var n})){const r=a.join(", ");throw new Ch(this.i18n("youCanOnlyUploadFileTypes",{types:r}))}if(o&&null!=r.size){let t=0;if(t+=r.size,e.forEach(e=>{t+=e.size}),t>o)throw new Ch(this.i18n("exceedsSize",{size:sh(o),file:r.name}))}if(t&&null!=r.size&&r.size>t)throw new Ch(this.i18n("exceedsSize",{size:sh(t),file:r.name}));if(n&&null!=r.size&&r.size<n)throw new Ch(this.i18n("inferiorSize",{size:sh(n)}))}function Yh(e){var t=this.opts.restrictions["minNumberOfFiles"];if(Object.keys(e).length<t)throw new Ch(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}function Xh(t){const n=this.opts.restrictions["requiredMetaFields"],r=Object.prototype["hasOwnProperty"],o=[],i=[];for(let e=0;e<n.length;e++)if(!r.call(t.meta,n[e])||""===t.meta[n[e]]){const r=new Ch(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name}));o.push(r),i.push(n[e]),y(this,Lh)[Lh](r,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:i}),o}function Zh(e){e=Object.keys(e).flatMap(e=>{e=this.getFile(e);return y(this,Nh)[Nh](e)});if(e.length)throw new Ah(e,""+this.i18n("missingRequiredMetaField"))}function Jh(e,t){var{showInformer:t=!0,file:n=null,throwErr:r=!0}=void 0===t?{}:t,o="object"==typeof e?e.message:e,i="object"==typeof e&&e.details?e.details:"";let a=o;if(i&&(a+=" "+i),e.isRestriction?(this.log(a),this.emit("restriction-failed",n,e)):this.log(a,"error"),t&&this.info({message:o,details:i},"error",this.opts.infoTimeout),r)throw"object"==typeof e?e:new Error(e)}function Qh(e){var t=this.getState()["allowNewUpload"];!1===t&&y(this,Lh)[Lh](new Ch(this.i18n("noMoreFilesAllowed")),{file:e})}function e0(t,e){var n=e.type||((n=e.name?null==(n=hh(e.name).extension)?void 0:n.toLowerCase():null)&&n in gh?gh[n]:"application/octet-stream"),r=(r=n,e.name||("image"===r.split("/")[0]?r.split("/")[0]+"."+r.split("/")[1]:"noname")),o=hh(r).extension,i=Boolean(e.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+vh(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+vh(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const t=new Ch(this.i18n("noDuplicates",{fileName:r}));y(this,Lh)[Lh](t,{file:e})}var u=e.meta||{},s=(u.name=r,u.type=n,Number.isFinite(e.data.size)?e.data.size:null);let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};a=this.opts.onBeforeFileAdded(l,t);!1===a?y(this,Lh)[Lh](new Ch("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):"object"==typeof a&&null!==a&&(l=a);try{const e=Object.keys(t).map(e=>t[e]);y(this,Ph)[Ph](l,e)}catch(t){y(this,Lh)[Lh](t,{file:l})}return l}function t0(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function n0(){const r=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" "+e.details),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",r),this.on("upload-error",(e,t,n)=>{if(r(t,e,n),"object"==typeof t&&t.message){const r=new Error(t.message);r.details=t.message,t.details&&(r.details+=" "+t.details),r.message=this.i18n("failedToUpload",{file:e.name}),y(this,Lh)[Lh](r,{throwErr:!1})}else y(this,Lh)[Lh](t,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{var n;this.getFile(e.id)?(n=this.getFile(e.id).progress,this.setFileState(e.id,{progress:{...n,postprocess:0<y(this,_h)[_h].size?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{var t;this.getFile(e.id)?((t={...this.getState().files})[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{var t;this.getFile(e.id)?((t={...this.getState().files})[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&y(this,Nh)[Nh](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",y(this,$h)[$h]),window.addEventListener("offline",y(this,$h)[$h]),setTimeout(y(this,$h)[$h],3e3))}function r0(e,t){var{forceAllowNewUpload:t=!1}=t=void 0===t?{}:t,{allowNewUpload:n,currentUploads:r}=this.getState();if(n||t)return n=Eh(),this.emit("upload",{id:n,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...r,[n]:{fileIDs:e,step:0,result:{}}}}),n;throw new Error("Cannot create a new upload: already uploading.")}function o0(e){var t=this.getState()["currentUploads"];return t[e]}function i0(e){var t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function a0(t){let n=this.getState()["currentUploads"],r=n[t];const o=r.step||0,i=[...y(this,Fh)[Fh],...y(this,Th)[Th],...y(this,_h)[_h]];try{for(let e=o;e<i.length&&r;e++){const o=i[e],a={...r,step:e};this.setState({currentUploads:{...n,[t]:a}}),await o(a.fileIDs,t),n=this.getState().currentUploads,r=n[t]}}catch(n){throw this.emit("error",n),y(this,Wh)[Wh](t),n}if(r){r.fileIDs.forEach(e=>{e=this.getFile(e);e&&e.progress.postprocess&&this.emit("postprocess-complete",e)});const o=r.fileIDs.map(e=>this.getFile(e)),i=o.filter(e=>!e.error),e=o.filter(e=>e.error);await this.addResultData(t,{successful:i,failed:e,uploadID:t}),n=this.getState().currentUploads,r=n[t]}let e;return r&&(e=r.result,this.emit("complete",e),y(this,Wh)[Wh](t)),null==e&&this.log("Not setting result for an upload that has been removed: "+t),e}qh.VERSION="2.1.3";u=qh,c=O(function(e,t){var x,E,i,n,r,o,a,u,D={},b=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function S(e,t){for(var n in t)e[n]=t[n];return e}function C(e){var t=e.parentNode;t&&t.removeChild(e)}function l(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(2<arguments.length&&(a.children=3<arguments.length?x.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return w(e,a,r,o,null)}function w(e,t,n,r,o){e={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++i:o};return null==o&&null!=E.vnode&&E.vnode(e),e}function A(e){return e.children}function O(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function c(e){(e.__d||(e.__d=!0,!r.push(e))||f.__r++)&&a===E.debounceRendering||((a=E.debounceRendering)||o)(f)}function f(){for(var e;f.__r=r.length;)e=r.sort(function(e,t){return e.__v.__b-t.__v.__b}),r=[],e.some(function(e){var t,n,r,o,i;e.__d&&(o=(r=(e=e).__v).__e,i=e.__P)&&(t=[],(n=S({},r)).__v=r.__v+1,_(i,r,n,e.__n,void 0!==i.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?k(r):o,r.__h),g(t,r),r.__e!=o)&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)})}function B(e,t,n,r,o,i,a,u,s,l){var c,f,d,p,h,g,v,y=r&&r.__k||b,m=y.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(p=n.__k[c]=null==(p=t[c])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?w(null,p,null,null,p):Array.isArray(p)?w(A,{children:p},null,null,null):0<p.__b?w(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(d=y[c])||d&&p.key==d.key&&p.type===d.type)y[c]=void 0;else for(f=0;f<m;f++){if((d=y[f])&&p.key==d.key&&p.type===d.type){y[f]=void 0;break}d=null}_(e,p,d=d||D,o,i,a,u,s,l),h=p.__e,(f=p.ref)&&d.ref!=f&&(v=v||[],d.ref&&v.push(d.ref,null,p),v.push(f,p.__c||h,p)),null!=h?(null==g&&(g=h),"function"==typeof p.type&&p.__k===d.__k?p.__d=s=function e(t,n,r){for(var o,i=t.__k,a=0;i&&a<i.length;a++)(o=i[a])&&(o.__=t,n="function"==typeof o.type?e(o,n,r):F(r,o,o,i,o.__e,n));return n}(p,s,e):s=F(e,p,d,y,h,s),"function"==typeof n.type&&(n.__d=s)):s&&d.__e==s&&s.parentNode!=e&&(s=k(d))}for(n.__e=g,c=m;c--;)null!=y[c]&&("function"==typeof n.type&&null!=y[c].__e&&y[c].__e==n.__d&&(n.__d=k(r,c+1)),function e(t,n,r){var o,i;if(E.unmount&&E.unmount(t),!(o=t.ref)||o.current&&o.current!==t.__e||P(o,null,n),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){E.__e(t,n)}o.base=o.__P=null}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&e(o[i],n,"function"!=typeof t.type);r||null==t.__e||C(t.__e),t.__e=t.__d=void 0}(y[c],y[c]));if(v)for(c=0;c<v.length;c++)P(v[c],v[++c],v[++c])}function F(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function d(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||s.test(t)?n:n+"px"}function T(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||d(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||d(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=(t.toLowerCase()in e?t.toLowerCase():t).slice(2),e.l||(e.l={}),(e.l[t+i]=n)?r||e.addEventListener(t,i?h:p,i):e.removeEventListener(t,i?h:p,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"!=typeof n&&(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function p(e){this.l[e.type+!1](E.event?E.event(e):e)}function h(e){this.l[e.type+!0](E.event?E.event(e):e)}function _(e,t,n,r,o,i,a,u,s){var l,c,f,d,p,h,g,v,y,m,b,w=t.type;if(void 0===t.constructor){null!=n.__h&&(s=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=E.__b)&&l(t);try{e:if("function"==typeof w){if(v=t.props,y=(l=w.contextType)&&r[l.__c],m=l?y?y.props.value:l.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:("prototype"in w&&w.prototype.render?t.__c=c=new w(v,m):(t.__c=c=new O(v,m),c.constructor=w,c.render=j),y&&y.sub(c),c.props=v,c.state||(c.state={}),c.context=m,c.__n=r,f=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=w.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=S({},c.__s)),S(c.__s,w.getDerivedStateFromProps(v,c.__s))),d=c.props,p=c.state,f)null==w.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==w.getDerivedStateFromProps&&v!==d&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,m),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,m)||t.__v===n.__v){c.props=v,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),(c.__v=t).__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(v,c.__s,m),null!=c.componentDidUpdate&&c.__h.push(function(){c.componentDidUpdate(d,p,h)})}c.context=m,c.props=v,c.state=c.__s,(l=E.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=S(S({},r),c.getChildContext())),f||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(d,p)),b=null!=l&&l.type===A&&null==l.key?l.props.children:l,B(e,Array.isArray(b)?b:[b],t,n,r,o,i,a,u,s),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),g&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,u){var s,l,c,f=n.props,d=t.props,p=t.type,h=0;if("svg"===p&&(o=!0),null!=i)for(;h<i.length;h++)if((s=i[h])&&"setAttribute"in s==!!p&&(p?s.localName===p:3===s.nodeType)){e=s,i[h]=null;break}if(null==e){if(null===p)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,u=!1}if(null===p)f===d||u&&e.data===d||(e.data=d);else{if(i=i&&x.call(e.childNodes),l=(f=n.props||D).dangerouslySetInnerHTML,c=d.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},h=0;h<e.attributes.length;h++)f[e.attributes[h].name]=e.attributes[h].value;!c&&!l||c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||"")}if(function(e,t,n,r,o){for(var i in n)"children"===i||"key"===i||i in t||T(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||T(e,i,t[i],n[i],r)}(e,d,f,o,u),c)t.__k=[];else if(h=t.props.children,B(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==p,i,a,i?i[0]:n.__k&&k(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&C(i[h]);u||("value"in d&&void 0!==(h=d.value)&&(h!==f.value||h!==e.value||"progress"===p&&!h)&&T(e,"value",h,f.value,!1),"checked"in d&&void 0!==(h=d.checked)&&h!==e.checked&&T(e,"checked",h,f.checked,!1))}return e}(n.__e,t,n,r,o,i,a,s);(l=E.diffed)&&l(t)}catch(e){t.__v=null,!s&&null==i||(t.__e=u,t.__h=!!s,i[i.indexOf(u)]=null),E.__e(e,t,n)}}}function g(e,t){E.__c&&E.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){E.__e(e,t.__v)}})}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){E.__e(e,n)}}function j(e,t,n){return this.constructor(e,n)}function v(e,t,n){var r,o,i;E.__&&E.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],_(t,e=(!r&&n||t).__k=l(A,null,[e]),o||D,D,void 0!==t.ownerSVGElement,!r&&n?[n]:!o&&t.firstChild?x.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),g(i,e)}x=b.slice,E={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},i=0,n=function(e){return null!=e&&void 0===e.constructor},O.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state);(e="function"==typeof e?e(S({},n),this.props):e)&&S(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),c(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),c(this))},O.prototype.render=A,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f.__r=0,u=0,t.Component=O,t.Fragment=A,t.cloneElement=function(e,t,n){var r,o,i,a=S({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];return 2<arguments.length&&(a.children=3<arguments.length?x.call(arguments,2):n),w(e.type,a,r||e.key,o||e.ref,null)},t.createContext=function(e,r){e={__c:r="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,t;return this.getChildContext||(n=[],((t={})[r]=this).getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(c)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return e.Provider.__=e.Consumer.contextType=e},t.createElement=l,t.createRef=function(){return{current:null}},t.h=l,t.hydrate=function e(t,n){v(t,n,e)},t.isValidElement=n,t.options=E,t.render=v,t.toChildArray=function t(e,n){return n=n||[],null!=e&&"boolean"!=typeof e&&(Array.isArray(e)?e.some(function(e){t(e,n)}):n.push(e)),n}}),f=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){var e=this.uppy.getState()["plugins"];return e[this.id]||{}}setPluginState(e){var t=this.uppy.getState()["plugins"];this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){var e=new nh([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function u0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}const s0=c["render"];var l0="__private_0_updateUI";var g=h["debugLogger"],c0=u,l=class wie extends f{constructor(){super(...arguments),Object.defineProperty(this,l0,{writable:!0,value:void 0})}mount(e,t){var n=t.id,r=(i=e,void 0===r&&(r=document),"string"==typeof i?r.querySelector(i):(null==i?void 0:i.nodeType)===Node.ELEMENT_NODE?i:null);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return u0(this,l0)[l0]=function(r){let o=null,i;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i=t,o=o||Promise.resolve().then(()=>(o=null,r(...i)))}}(e=>{this.uppy.getPlugin(this.id)&&(s0(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),s0(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof wie)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return o=e,!1})}if(o)return this.uppy.log(`Installing ${n} to `+o.id),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing "+n);var i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&null!=(t=(n=u0(this,l0))[l0])&&t.call(n,e)}unmount(){var e;this.isTargetDOMEl&&null!=(e=this.el)&&e.remove(),this.onUnmount()}onMount(){}onUnmount(){}},s=f,i=g;c0.Uppy=u,c0.UIPlugin=l,c0.BasePlugin=s,c0.debugLogger=i;class f0 extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}function d0(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new p0(e)})}var p0=f0;class h0 extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var g0,v0,y0,m0=h0;function b0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var w0=0;function x0(e){return"__private_"+w0+++"_"+e}async function E0(t){if(401===t.status)throw new m0;var n=t.json();if(t.status<200||300<t.status){let e=`Failed request with status: ${t.status}. `+t.statusText;try{const t=await n;e=t.message?e+" message: "+t.message:e,e=t.requestId?e+" request-Id: "+t.requestId:e}finally{throw new Error(e)}}return n}g0=x0("getPostResponseFunc"),v0=x0("getUrl"),y0=x0("errorHandler"),p=d=class t{constructor(e,t){Object.defineProperty(this,y0,{value:S0}),Object.defineProperty(this,v0,{value:D0}),Object.defineProperty(this,g0,{writable:!0,value:t=>e=>t?e:this.onReceiveResponse(e)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){var e=this.uppy.getState()["companion"],t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){var e=this.opts.companionHeaders||{};return Promise.resolve({...t.defaultHeaders,...e})}onReceiveResponse(e){var t=this.uppy.getState().companion||{},n=this.opts.companionUrl,r=e["headers"];return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(b0(this,v0)[v0](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header "+e),delete n[e])}),n})}get(t,e){return this.preflightAndHeaders(t).then(e=>d0(b0(this,v0)[v0](t),{method:"get",headers:e,credentials:this.opts.companionCookiesRule||"same-origin"})).then(b0(this,g0)[g0](e)).then(E0).catch(b0(this,y0)[y0]("get",t))}post(t,n,e){return this.preflightAndHeaders(t).then(e=>d0(b0(this,v0)[v0](t),{method:"post",headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(b0(this,g0)[g0](e)).then(E0).catch(b0(this,y0)[y0]("post",t))}delete(t,n,e){return this.preflightAndHeaders(t).then(e=>d0(this.hostname+"/"+t,{method:"delete",headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(b0(this,g0)[g0](e)).then(E0).catch(b0(this,y0)[y0]("delete",t))}},d.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+(d.VERSION="2.0.4")};c=p;function D0(e){return/^(https?:|)\/\//.test(e)?e:this.hostname+"/"+e}function S0(n,r){return e=>{var t;if(null==e||!e.isAuthError){const t=new Error(`Could not ${n} `+b0(this,v0)[v0](r));t.cause=e,e=t}return Promise.reject(e)}}var C0,A0,O0,k0,B0,F0={setItem:(t,n)=>new Promise(e=>{localStorage.setItem(t,n),e()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})};function T0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var _0=0;function P0(e){return"__private_"+_0+++"_"+e}C0=P0("queued"),A0=P0("emitter"),O0=P0("isOpen"),k0=P0("socket"),B0=P0("handleMessage"),h=Symbol.for("uppy test: getSocket"),g=Symbol.for("uppy test: getQueued");var j0,N0,u={RequestClient:c,Provider:class extends c{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{var[e,t]=e,n={};return t&&(n["uppy-auth-token"]=t),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}})}onReceiveResponse(e){e=super.onReceiveResponse(e);var t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?`+new URLSearchParams(e)}fileUrl(e){return`${this.hostname}/${this.id}/get/`+e}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(this.id+"/list/"+(e||""))}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{var[e]=e;return e})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||F0}},SearchProvider:class extends c{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/`+e}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=`+encodeURIComponent(e)+t)}},Socket:class{constructor(e){Object.defineProperty(this,C0,{writable:!0,value:[]}),Object.defineProperty(this,A0,{writable:!0,value:oh()}),Object.defineProperty(this,O0,{writable:!0,value:!1}),Object.defineProperty(this,k0,{writable:!0,value:void 0}),Object.defineProperty(this,B0,{writable:!0,value:e=>{try{var t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),(this.opts=e)&&!1===e.autoOpen||this.open()}get isOpen(){return T0(this,O0)[O0]}[h](){return T0(this,k0)[k0]}[g](){return T0(this,C0)[C0]}open(){T0(this,k0)[k0]=new WebSocket(this.opts.target),T0(this,k0)[k0].onopen=()=>{for(T0(this,O0)[O0]=!0;0<T0(this,C0)[C0].length&&T0(this,O0)[O0];){var e=T0(this,C0)[C0].shift();this.send(e.action,e.payload)}},T0(this,k0)[k0].onclose=()=>{T0(this,O0)[O0]=!1},T0(this,k0)[k0].onmessage=T0(this,B0)[B0]}close(){var e;null!=(e=T0(this,k0)[k0])&&e.close()}send(e,t){T0(this,O0)[O0]?T0(this,k0)[k0].send(JSON.stringify({action:e,payload:t})):T0(this,C0)[C0].push({action:e,payload:t})}on(e,t){T0(this,A0)[A0].on(e,t)}emit(e,t){T0(this,A0)[A0].emit(e,t)}once(e,t){T0(this,A0)[A0].once(e,t)}}},I0=zd(function(e,t,n){var{progress:t,bytesUploaded:r,bytesTotal:o}=t;t&&(e.uppy.log("Upload progress: "+t),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:r,bytesTotal:o}))},300,{leading:!0,trailing:!0});function L0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var R0=0;function M0(e){return"__private_"+R0+++"_"+e}j0=M0("emitter"),N0=M0("events");var z0=class{constructor(e){Object.defineProperty(this,j0,{writable:!0,value:void 0}),Object.defineProperty(this,N0,{writable:!0,value:[]}),L0(this,j0)[j0]=e}on(e,t){return L0(this,N0)[N0].push([e,t]),L0(this,j0)[j0].on(e,t)}remove(){for(var[e,t]of L0(this,N0)[N0].splice(0))L0(this,j0)[j0].off(e,t)}};function H0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var $0=0;function V0(e){return"__private_"+$0+++"_"+e}var U0=V0("aliveTimer"),W0=V0("isDone"),G0=V0("onTimedOut"),q0=V0("timeout"),K0=class{constructor(e,t){Object.defineProperty(this,U0,{writable:!0,value:void 0}),Object.defineProperty(this,W0,{writable:!0,value:!1}),Object.defineProperty(this,G0,{writable:!0,value:void 0}),Object.defineProperty(this,q0,{writable:!0,value:void 0}),H0(this,q0)[q0]=e,H0(this,G0)[G0]=t}progress(){H0(this,W0)[W0]||0<H0(this,q0)[q0]&&(clearTimeout(H0(this,U0)[U0]),H0(this,U0)[U0]=setTimeout(H0(this,G0)[G0],H0(this,q0)[q0]))}done(){H0(this,W0)[W0]||(clearTimeout(H0(this,U0)[U0]),H0(this,U0)[U0]=null,H0(this,W0)[W0]=!0)}};function Y0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var X0=0;function Z0(e){return"__private_"+X0+++"_"+e}var J0=Z0("activeRequests"),Q0=Z0("queuedHandlers"),eg=Z0("call"),tg=Z0("queueNext"),ng=Z0("next"),rg=Z0("queue"),og=Z0("dequeue");function ig(e){Y0(this,J0)[J0]+=1;let t,n=!1;try{t=e()}catch(e){throw--Y0(this,J0)[J0],e}return{abort:()=>{n||(n=!0,--Y0(this,J0)[J0],t(),Y0(this,tg)[tg]())},done:()=>{n||(n=!0,--Y0(this,J0)[J0],Y0(this,tg)[tg]())}}}function ag(){queueMicrotask(()=>Y0(this,ng)[ng]())}function ug(){var e,t;Y0(this,J0)[J0]>=this.limit||0!==Y0(this,Q0)[Q0].length&&(e=Y0(this,Q0)[Q0].shift(),t=Y0(this,eg)[eg](e.fn),e.abort=t.abort,e.done=t.done)}function sg(e,t){const n={fn:e,priority:(t=void 0===t?{}:t).priority||0,abort:()=>{Y0(this,og)[og](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Y0(this,Q0)[Q0].findIndex(e=>n.priority>e.priority);return-1===r?Y0(this,Q0)[Q0].push(n):Y0(this,Q0)[Q0].splice(r,0,n),n}function lg(e){e=Y0(this,Q0)[Q0].indexOf(e);-1!==e&&Y0(this,Q0)[Q0].splice(e,1)}function cg(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}var l={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,og,{value:lg}),Object.defineProperty(this,rg,{value:sg}),Object.defineProperty(this,ng,{value:ug}),Object.defineProperty(this,tg,{value:ag}),Object.defineProperty(this,eg,{value:ig}),Object.defineProperty(this,J0,{writable:!0,value:0}),Object.defineProperty(this,Q0,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Y0(this,J0)[J0]<this.limit?Y0(this,eg)[eg](e):Y0(this,rg)[rg](e,t)}wrapPromiseFunction(u,s){var l=this;return function(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];let a;var n=new Promise((r,o)=>{a=l.run(()=>{let t,n;try{n=Promise.resolve(u(...i))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?o(t):(a.done(),r(e))},e=>{t?o(t):(a.done(),o(e))}),()=>{t=new Error("Cancelled")}},s)});return n.abort=()=>{a.abort()},n}}},internalRateLimitedQueue:Symbol("__queue")},fg={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const dg=v["nanoid"],{Provider:pg,RequestClient:hg,Socket:gg}=u,{RateLimitedQueue:vg,internalRateLimitedQueue:yg}=l;function mg(e,t){let n=t;return(n="string"==typeof(n=n||new Error("Upload error"))?new Error(n):n)instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),cg(e)?n=new p0(n,e):n.request=e,n}function bg(e){return e.data.slice(0,e.data.size,e.meta.type)}i=s=class extends f{constructor(n,e){super(n,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=fg;var t={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(e){let t={};try{t=JSON.parse(e)}catch(e){n.log(e)}return t},getResponseError(e,t){let n=new Error("Upload error");return n=cg(t)?new p0(n,t):n},validateStatus:e=>200<=e&&e<300};if(this.opts={...t,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),yg in this.opts?this.requests=this.opts[yg]:this.requests=new vg(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){var t=this.uppy.getState().xhrUpload,n=this.opts["headers"],r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(t,n,e){(Array.isArray(e.metaFields)?e.metaFields:Object.keys(n)).forEach(e=>{t.append(e,n[e])})}createFormDataUpload(e,t){var n=new FormData,r=(this.addMetadata(n,e.meta,t),bg(e));return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const r=new FormData,n=this.uppy.getState()["meta"];return this.addMetadata(r,n,t),e.forEach(e=>{var t=this.getOptions(e),n=bg(e);e.name?r.append(t.fieldName,n,e.name):r.append(t.fieldName,n)}),r}upload(l,e,t){const c=this.getOptions(l);return this.uppy.log(`uploading ${e} of `+t),new Promise((r,o)=>{this.uppy.emit("upload-started",l);const e=c.formData?this.createFormDataUpload(l,c):l.data,i=new XMLHttpRequest,a=(this.uploaderEvents[l.id]=new z0(this.uppy),new K0(c.timeout,()=>{i.abort(),s.done();var e=new Error(this.i18n("timedOut",{seconds:Math.ceil(c.timeout/1e3)}));this.uppy.emit("upload-error",l,e),o(e)})),u=dg(),s=(i.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${u} started`)}),i.upload.addEventListener("progress",e=>{this.uppy.log(`[XHRUpload] ${u} progress: ${e.loaded} / `+e.total),a.progress(),e.lengthComputable&&this.uppy.emit("upload-progress",l,{uploader:this,bytesUploaded:e.loaded,bytesTotal:e.total})}),i.addEventListener("load",e=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[l.id]&&(this.uploaderEvents[l.id].remove(),this.uploaderEvents[l.id]=null),c.validateStatus(e.target.status,i.responseText,i)){const o=c.getResponseData(i.responseText,i),a=o[c.responseUrlFieldName],u={status:e.target.status,body:o,uploadURL:a};return this.uppy.emit("upload-success",l,u),a&&this.uppy.log(`Download ${l.name} from `+a),r(l)}var t=c.getResponseData(i.responseText,i),n=mg(i,c.getResponseError(i.responseText,i)),e={status:e.target.status,body:t};return this.uppy.emit("upload-error",l,n,e),o(n)}),i.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[l.id]&&(this.uploaderEvents[l.id].remove(),this.uploaderEvents[l.id]=null);var e=mg(i,c.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",l,e),o(e)}),i.open(c.method.toUpperCase(),c.endpoint,!0),i.withCredentials=c.withCredentials,""!==c.responseType&&(i.responseType=c.responseType),this.requests.run(()=>{this.uppy.emit("upload-started",l);const t=this.getOptions(l);return Object.keys(t.headers).forEach(e=>{i.setRequestHeader(e,t.headers[e])}),i.send(e),()=>{a.done(),i.abort()}}));this.onFileRemove(l.id,()=>{s.abort(),o(new Error("File removed"))}),this.onCancelAll(l.id,()=>{s.abort(),o(new Error("Upload cancelled"))})})}uploadRemote(s){const l=this.getOptions(s);return new Promise((a,u)=>{this.uppy.emit("upload-started",s);const t={};(Array.isArray(l.metaFields)?l.metaFields:Object.keys(s.meta)).forEach(e=>{t[e]=s.meta[e]}),new(s.remote.providerOptions.provider?pg:hg)(this.uppy,s.remote.providerOptions).post(s.remote.url,{...s.remote.body,endpoint:l.endpoint,size:s.data.size,fieldname:l.fieldName,metadata:t,httpMethod:l.method,useFormData:l.formData,headers:l.headers}).then(e=>{const t=e["token"],n=(e=s.remote.companionUrl,o=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1],`${/^http:\/\//i.test(e)?"ws":"wss"}://`+o),r=new gg({target:n+"/api/"+t,autoOpen:!1});var o;this.uploaderEvents[s.id]=new z0(this.uppy),this.onFileRemove(s.id,()=>{r.send("cancel",{}),i.abort(),a(`upload ${s.id} was removed`)}),this.onCancelAll(s.id,()=>{r.send("cancel",{}),i.abort(),a(`upload ${s.id} was canceled`)}),this.onRetry(s.id,()=>{r.send("pause",{}),r.send("resume",{})}),this.onRetryAll(s.id,()=>{r.send("pause",{}),r.send("resume",{})}),r.on("progress",e=>I0(this,e,s)),r.on("success",e=>{var t=l.getResponseData(e.response.responseText,e.response),n=t[l.responseUrlFieldName],e={status:e.response.status,body:t,uploadURL:n};return this.uppy.emit("upload-success",s,e),i.done(),this.uploaderEvents[s.id]&&(this.uploaderEvents[s.id].remove(),this.uploaderEvents[s.id]=null),a()}),r.on("error",e=>{var t=e.response,t=t?l.getResponseError(t.responseText,t):Object.assign(new Error(e.error.message),{cause:e.error});this.uppy.emit("upload-error",s,t),i.done(),this.uploaderEvents[s.id]&&(this.uploaderEvents[s.id].remove(),this.uploaderEvents[s.id]=null),u(t)});const i=this.requests.run(()=>(r.open(),s.isPaused&&r.send("pause",{}),()=>r.close()))}).catch(e=>{this.uppy.emit("upload-error",s,e),u(e)})})}uploadBundle(l){return new Promise((n,r)=>{const e=this.opts["endpoint"],t=this.opts["method"],o=this.uppy.getState().xhrUpload,i=this.createBundledUpload(l,{...this.opts,...o||{}}),a=new XMLHttpRequest,u=new K0(this.opts.timeout,()=>{a.abort();var e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));s(e),r(e)}),s=t=>{l.forEach(e=>{this.uppy.emit("upload-error",e,t)})};a.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),a.upload.addEventListener("progress",t=>{u.progress(),t.lengthComputable&&l.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),a.addEventListener("load",e=>{if(u.done(),this.opts.validateStatus(e.target.status,a.responseText,a)){const r=this.opts.getResponseData(a.responseText,a),t={status:e.target.status,body:r};return l.forEach(e=>{this.uppy.emit("upload-success",e,t)}),n()}const t=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return t.request=a,s(t),r(t)}),a.addEventListener("error",()=>{u.done();var e=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return s(e),r(e)}),this.uppy.on("cancel-all",()=>{u.done(),a.abort()}),a.open(t.toUpperCase(),e,!0),a.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(a.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{a.setRequestHeader(e,this.opts.headers[e])}),a.send(i),l.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(r){{var e=r.map((e,t)=>{var t=parseInt(t,10)+1,n=r.length;return e.error?Promise.reject(new Error(e.error)):e.isRemote?this.uploadRemote(e,t,n):this.upload(e,t,n)});const o=[],i=[];function t(e){o.push(e)}function n(e){i.push(e)}return Promise.all(e.map(e=>e.then(t,n))).then(()=>({successful:o,failed:i}))}}onFileRemove(t,n){this.uploaderEvents[t].on("file-removed",e=>{t===e.id&&n(e.id)})}onRetry(t,n){this.uploaderEvents[t].on("upload-retry",e=>{t===e&&n()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[yg]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");e=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(e.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){var e;this.opts.bundle&&(e=this.uppy.getState()["capabilities"],this.uppy.setState({capabilities:{...e,individualCancellation:!1}})),this.uppy.addUploader(this.handleUpload)}uninstall(){var e;this.opts.bundle&&(e=this.uppy.getState()["capabilities"],this.uppy.setState({capabilities:{...e,individualCancellation:!0}})),this.uppy.removeUploader(this.handleUpload)}},s.VERSION="2.0.6";var wg=i,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function xg(e){var t={exports:{}};return e(t,t.exports),t.exports}function Eg(e){return e&&e.Math==Math&&e}function Dg(t,n){try{Pg(m,t,{value:n,configurable:!0,writable:!0})}catch(e){m[t]=n}return n}function Sg(e){if(null==e)throw Lg("Can't call method on "+e);return e}function Cg(e){return Rg(Sg(e))}function Ag(e){return"Symbol("+(void 0===e?"":e)+")_"+Vg(++Hg+$g,36)}function Og(e,t){return arguments.length<2?(n=m[e],Ug(n)?n:void 0):m[e]&&m[e][t];var n}function kg(e){try{return!!e()}catch(e){return!0}}function Bg(e){var t;return zg(Kg,e)&&(Gg||"string"==typeof Kg[e])||(t="Symbol."+e,Gg&&zg(Yg,e)?Kg[e]=Yg[e]:Kg[e]=(qg&&Xg?Xg:Zg)(t)),Kg[e]}function Fg(e){return tv?ev.createElement(e):{}}function Tg(e){return e=function(e,t){if(!Qg(e)||cv(e))return e;var n,r,o=gv(e,mv);if(o){if(o=uv(o,e,t=void 0===t?"default":t),!Qg(o)||cv(o))return o;throw yv("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&Ug(n=o.toString)&&!Qg(r=uv(n,o)))return r;if(Ug(n=o.valueOf)&&!Qg(r=uv(n,o)))return r;if("string"!==e&&Ug(n=o.toString)&&!Qg(r=uv(n,o)))return r;throw vv("Can't convert object to primitive value")}(e,"string"),cv(e)?e:e+""}function _g(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}var m=Eg("object"==typeof globalThis&&globalThis)||Eg("object"==typeof window&&window)||Eg("object"==typeof self&&self)||Eg("object"==typeof d&&d)||function(){return this}()||Function("return this")(),Pg=Object.defineProperty,jg=m["__core-js_shared__"]||Dg("__core-js_shared__",{}),p=xg(function(e){(e.exports=function(e,t){return jg[e]||(jg[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),c=Function.prototype,h=c.bind,Ng=c.call,Ig=h&&h.bind(Ng),b=h?function(e){return e&&Ig(Ng,e)}:function(e){return e&&function(){return Ng.apply(e,arguments)}},Lg=m.TypeError,Rg=m.Object,Mg=b({}.hasOwnProperty),zg=Object.hasOwn||function(e,t){return Mg(Cg(e),t)},Hg=0,$g=Math.random(),Vg=b(1..toString),Ug=function(e){return"function"==typeof e},g=Og("navigator","userAgent")||"",v=m.process,u=m.Deno,l=v&&v.versions||u&&u.version,f=l&&l.v8,Wg=o1=!(o1=f?0<(r1=f.split("."))[0]&&r1[0]<4?1:+(r1[0]+r1[1]):o1)&&g&&(!(r1=g.match(/Edge\/(\d+)/))||74<=r1[1])&&(r1=g.match(/Chrome\/(\d+)/))?+r1[1]:o1,Gg=!!Object.getOwnPropertySymbols&&!kg(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Wg&&Wg<41}),qg=Gg&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kg=p("wks"),Yg=m.Symbol,Xg=Yg&&Yg.for,Zg=qg?Yg:Yg&&Yg.withoutSetter||Ag,s={},i=(s[Bg("toStringTag")]="z","[object z]"===String(s)),Jg=!kg(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Qg=function(e){return"object"==typeof e?null!==e:Ug(e)},ev=m.document,tv=Qg(ev)&&Qg(ev.createElement),nv=!Jg&&!kg(function(){return 7!=Object.defineProperty(Fg("div"),"a",{get:function(){return 7}}).a}),rv=m.String,ov=m.TypeError,iv=function(e){if(Qg(e))return e;throw ov(rv(e)+" is not an object")},av=Function.prototype.call,uv=av.bind?av.bind(av):function(){return av.apply(av,arguments)},sv=b({}.isPrototypeOf),lv=m.Object,cv=qg?function(e){return"symbol"==typeof e}:function(e){var t=Og("Symbol");return Ug(t)&&sv(t.prototype,lv(e))},fv=m.String,dv=function(e){try{return fv(e)}catch(e){return"Object"}},pv=m.TypeError,hv=function(e){if(Ug(e))return e;throw pv(dv(e)+" is not a function")},gv=function(e,t){e=e[t];return null==e?void 0:hv(e)},vv=m.TypeError,yv=m.TypeError,mv=Bg("toPrimitive"),bv=m.TypeError,wv=Object.defineProperty,xv={f:Jg?wv:function(e,t,n){if(iv(e),t=Tg(t),iv(n),nv)try{return wv(e,t,n)}catch(e){}if("get"in n||"set"in n)throw bv("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ev=Jg?function(e,t,n){return xv.f(e,t,_g(1,n))}:function(e,t,n){return e[t]=n,e},Dv=b(Function.toString);Ug(jg.inspectSource)||(jg.inspectSource=function(e){return Dv(e)});function Sv(e){return Vv[e]||(Vv[e]=Ag(e))}function Cv(e,t){return hv(e),void 0===t?e:i1?i1(e,t):function(){return e.apply(t,arguments)}}function Av(e){return p1(e.length)}function Ov(){}function kv(e){if(!Ug(e))return!1;try{return v1(Ov,g1,e),!0}catch(e){return!1}}function Bv(e,t){return new(void 0===(n=h1(e=e)&&(n=e.constructor,w1(n)&&(n===E1||h1(n.prototype))||Qg(n)&&null===(n=n[x1]))?void 0:n)?E1:n)(0===t?0:t);var n}function Fv(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=Cg(e),u=s1(a),s=Cv(t,n),l=Av(u),c=0,t=r||Bv,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:D1(f,o)}else switch(d){case 4:return!1;case 7:D1(f,o)}return y?-1:g||v?v:f}}function Tv(e,t){var n=[][e];return!!n&&kg(function(){n.call(null,t||function(){throw 1},1)})}function _v(t){if(t&&t.forEach!==C1)try{Ev(t,"forEach",C1)}catch(e){t.forEach=C1}}var Pv,jv,Nv,Iv,Lv,Rv,Mv,zv,Hv,$v=jg.inspectSource,d=m.WeakMap,c=Ug(d)&&/native code/.test($v(d)),Vv=p("keys"),Uv={},Wv=m.TypeError,h=m.WeakMap,Gv=(Mv=c||jg.state?(Pv=jg.state||(jg.state=new h),jv=b(Pv.get),Nv=b(Pv.has),Iv=b(Pv.set),Lv=function(e,t){if(Nv(Pv,e))throw new Wv("Object already initialized");return t.facade=e,Iv(Pv,e,t),t},Rv=function(e){return jv(Pv,e)||{}},function(e){return Nv(Pv,e)}):(zv=Sv("state"),Uv[zv]=!0,Lv=function(e,t){if(zg(e,zv))throw new Wv("Object already initialized");return t.facade=e,Ev(e,zv,t),t},Rv=function(e){return zg(e,zv)?e[zv]:{}},function(e){return zg(e,zv)}),{set:Lv,get:Rv,has:Mv,enforce:function(e){return Mv(e)?Rv(e):Lv(e,{})},getterFor:function(t){return function(e){if(Qg(e)&&(e=Rv(e)).type===t)return e;throw Wv("Incompatible receiver, "+t+" required")}}}),v=Function.prototype,u=Jg&&Object.getOwnPropertyDescriptor,l=zg(v,"name"),qv={EXISTS:l,PROPER:l&&"something"===function(){}.name,CONFIGURABLE:l&&(!Jg||u(v,"name").configurable)},Kv=xg(function(e){var s=qv.CONFIGURABLE,t=Gv.get,l=Gv.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;Ug(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zg(n,"name")||s&&n.name!==r)&&Ev(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==m?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Ev(e,t,n)):a?e[t]=n:Dg(t,n)})(Function.prototype,"toString",function(){return Ug(this)&&t(this).source||$v(this)})}),Yv=b({}.toString),Xv=b("".slice),Zv=function(e){return Xv(Yv(e),8,-1)},Jv=Bg("toStringTag"),Qv=m.Object,e1="Arguments"==Zv(function(){return arguments}()),t1=i?Zv:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Qv(e),Jv))?t:e1?Zv(e):"Object"==(t=Zv(e))&&Ug(e.callee)?"Arguments":t},n1=(i||Kv(Object.prototype,"toString",i?{}.toString:function(){return"[object "+t1(this)+"]"},{unsafe:!0}),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),f=Fg("span").classList,r1=f&&f.constructor&&f.constructor.prototype,o1=r1===Object.prototype?void 0:r1,i1=b(b.bind),a1=m.Object,u1=b("".split),s1=kg(function(){return!a1("z").propertyIsEnumerable(0)})?function(e){return"String"==Zv(e)?u1(e,""):a1(e)}:a1,l1=Math.ceil,c1=Math.floor,f1=function(e){e=+e;return e!=e||0==e?0:(0<e?c1:l1)(e)},d1=Math.min,p1=function(e){return 0<e?d1(f1(e),9007199254740991):0},h1=Array.isArray||function(e){return"Array"==Zv(e)},g1=[],v1=Og("Reflect","construct"),y1=/^\s*(?:class|function)\b/,m1=b(y1.exec),b1=!y1.exec(Ov),w1=!v1||kg(function(){var e;return kv(kv.call)||!kv(Object)||!kv(function(){e=!0})||e})?function(e){if(!Ug(e))return!1;switch(t1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return b1||!!m1(y1,$v(e))}:kv,x1=Bg("species"),E1=m.Array,D1=b([].push),s={forEach:Fv(0),map:Fv(1),filter:Fv(2),some:Fv(3),every:Fv(4),find:Fv(5),findIndex:Fv(6),filterReject:Fv(7)},S1=s.forEach,C1=Tv("forEach")?[].forEach:function(e){return S1(this,e,1<arguments.length?arguments[1]:void 0)};for(Hv in n1)n1[Hv]&&_v(m[Hv]&&m[Hv].prototype);_v(o1);function A1(e){return s1(Sg(e))}function O1(e,t){return(e=f1(e))<0?I1(e+t,0):L1(e,t)}function k1(u){return function(e,t,n){var r,o=A1(e),i=Av(o),a=O1(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function B1(e,t){var n,r=A1(e),o=0,i=[];for(n in r)!zg(Uv,n)&&zg(r,n)&&M1(i,n);for(;t.length>o;)!zg(r,n=t[o++])||~R1(i,n)||M1(i,n);return i}function F1(e,t){return(e=K1[q1(e)])==X1||e!=Y1&&(Ug(t)?kg(t):!!t)}function T1(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?m:s?m[a]||Dg(a,{}):(m[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=J1(n,r))&&i.value:n[r],!Z1(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=W1(c),d=xv.f,p=N1.f,h=0;h<f.length;h++){var g=f[h];zg(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&Ev(o,"sham",!0),Kv(n,r,o,e)}}var d={}.propertyIsEnumerable,_1=Object.getOwnPropertyDescriptor,P1={f:_1&&!d.call({1:2},1)?function(e){e=_1(this,e);return!!e&&e.enumerable}:d},j1=Object.getOwnPropertyDescriptor,N1={f:Jg?j1:function(e,t){if(e=A1(e),t=Tg(t),nv)try{return j1(e,t)}catch(e){}if(zg(e,t))return _g(!uv(P1.f,e,t),e[t])}},I1=Math.max,L1=Math.min,h={includes:k1(!0),indexOf:k1(!1)},R1=h.indexOf,M1=b([].push),z1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H1=z1.concat("length","prototype"),$1={f:Object.getOwnPropertyNames||function(e){return B1(e,H1)}},V1={f:Object.getOwnPropertySymbols},U1=b([].concat),W1=Og("Reflect","ownKeys")||function(e){var t=$1.f(iv(e)),n=V1.f;return n?U1(t,n(e)):t},G1=/#|\.prototype\./,q1=F1.normalize=function(e){return String(e).replace(G1,".").toLowerCase()},K1=F1.data={},Y1=F1.NATIVE="N",X1=F1.POLYFILL="P",Z1=F1,J1=N1.f,Q1=Object.keys||function(e){return B1(e,z1)},l=kg(function(){Q1(1)});function ey(e){return"[object Object]"===Object.prototype.toString.call(e)}T1({target:"Object",stat:!0,forced:l},{keys:function(e){return Q1(Cg(e))}});function ty(){var e=iv(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}var ny=function(e){return!1!==ey(t=e)&&(void 0===(t=t.constructor)||!1!==ey(t=t.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||gc.isOperationList(e.redos[0]))&&(0===e.undos.length||gc.isOperationList(e.undos[0]));var t},ry=new WeakMap,oy=new WeakMap,iy={isHistoryEditor:e=>ny(e.history)&&P.isEditor(e),isMerging:e=>oy.get(e),isSaving:e=>ry.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=iy.isMerging(e);oy.set(e,!1),t(),oy.set(e,n)},withoutSaving(e,t){var n=iy.isSaving(e);ry.set(e,!1),t(),ry.set(e,n)}},ay=m.String,uy=function(e){if("Symbol"===t1(e))throw TypeError("Cannot convert a Symbol value to a string");return ay(e)},u=qv.PROPER,sy=RegExp.prototype,ly=sy.toString,cy=b(ty),v=kg(function(){return"/a/b"!=ly.call({source:"a",flags:"b"})}),i=u&&"toString"!=ly.name;(v||i)&&Kv(RegExp.prototype,"toString",function(){var e=iv(this),t=uy(e.source),n=e.flags;return"/"+t+"/"+uy(void 0!==n||!sv(sy,e)||"flags"in sy?n:cy(e))},{unsafe:!0});function fy(){}function dy(e){e.write(Cy("")),e.close();var t=e.parentWindow.Object;return e=null,t}function py(e){By[ky][e]=!0}function hy(e){if(_y(e))throw Py("The method doesn't accept regular expressions");return e}function gy(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[jy]=!1,"/./"[t](n)}catch(t){}}return!1}function vy(e,t,n){var r,o;iv(e);try{if(!(r=gv(e,"return"))){if("throw"===t)throw n;return}r=uv(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;iv(r)}function yy(e){return void 0!==e&&(Ry.Array===e||zy[My]===e)}function my(e,t,n){(t=Tg(t))in e?xv.f(e,t,_g(0,n)):e[t]=n}function by(e){if(null!=e)return gv(e,Hy)||gv(e,"@@iterator")||Ry[t1(e)]}function wy(e,t){if(t=arguments.length<2?by(e):t,hv(t))return iv(uv(t,e));throw $y(dv(e)+" is not iterable")}var xy,Ey=Jg?Object.defineProperties:function(e,t){iv(e);for(var n,r=A1(t),o=Q1(t),i=o.length,a=0;a<i;)xv.f(e,n=o[a++],r[n]);return e},Dy=Og("document","documentElement"),Sy=Sv("IE_PROTO"),Cy=function(e){return"<script>"+e+"<\/script>"},Ay=function(){try{xy=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ay="undefined"==typeof document||document.domain&&xy?dy(xy):((t=Fg("iframe")).style.display="none",Dy.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Cy("document.F=Object")),e.close(),e.F);for(var n=z1.length;n--;)delete Ay.prototype[z1[n]];return Ay()},Oy=(Uv[Sy]=!0,Object.create||function(e,t){var n;return null!==e?(fy.prototype=iv(e),n=new fy,fy.prototype=null,n[Sy]=e):n=Ay(),void 0===t?n:Ey(n,t)}),ky=Bg("unscopables"),By=Array.prototype,Fy=(null==By[ky]&&xv.f(By,ky,{configurable:!0,value:Oy(null)}),h.includes),Ty=(T1({target:"Array",proto:!0},{includes:function(e){return Fy(this,e,1<arguments.length?arguments[1]:void 0)}}),py("includes"),Bg("match")),_y=function(e){var t;return Qg(e)&&(void 0!==(t=e[Ty])?!!t:"RegExp"==Zv(e))},Py=m.TypeError,jy=Bg("match"),Ny=b("".indexOf),Iy=(T1({target:"String",proto:!0,forced:!gy("includes")},{includes:function(e){return!!~Ny(uy(Sg(this)),uy(hy(e)),1<arguments.length?arguments[1]:void 0)}}),/"/g),Ly=b("".replace),Ry=(T1({target:"String",proto:!0,forced:kg(function(){var e="".anchor('"');return e!==e.toLowerCase()||3<e.split('"').length})},{anchor:function(e){return e=e,t=uy(Sg(this)),n="<a",(n+=' name="'+Ly(uy(e),Iy,"&quot;")+'"')+">"+t+"</a>";var t,n}}),{}),My=Bg("iterator"),zy=Array.prototype,Hy=Bg("iterator"),$y=m.TypeError,Vy=m.Array,Uy=Bg("iterator"),Wy=!1;try{var Gy=0,qy={next:function(){return{done:!!Gy++}},return:function(){Wy=!0}};qy[Uy]=function(){return this},Array.from(qy,function(){throw 2})}catch(Z2){}function Ky(e,t){if(!t&&!Wy)return!1;var n=!1;try{var r={};r[Uy]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}f=!Ky(function(e){Array.from(e)});T1({target:"Array",stat:!0,forced:f},{from:function(e){var t=Cg(e),e=w1(this),n=arguments.length,r=1<n?arguments[1]:void 0,o=void 0!==r;o&&(r=Cv(r,2<n?arguments[2]:void 0));var i,a,u,s,l,c,n=by(t),f=0;if(!n||this==Vy&&yy(n))for(i=Av(t),a=e?new this(i):Vy(i);f<i;f++)c=o?r(t[f],f):t[f],my(a,f,c);else for(l=(s=wy(t,n)).next,a=e?new this:[];!(u=uv(l,s)).done;f++)c=o?function(e,t,n,r){try{return r?t(iv(n)[0],n[1]):t(n)}catch(t){vy(e,"throw",t)}}(s,r,[u.value,f],!0):u.value,my(a,f,c);return a.length=f,a}});function Yy(o){return function(e,t){var n,e=uy(Sg(e)),t=f1(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=nm(e,t))<55296||56319<n||t+1===r||(r=nm(e,t+1))<56320||57343<r?o?tm(e,t):n:o?rm(e,t,t+2):r-56320+(n-55296<<10)+65536}}function Xy(e,t,n){e&&!zg(e=n?e:e.prototype,cm)&&lm(e,cm,{configurable:!0,value:t})}function Zy(){return this}function Jy(){return this}function Qy(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!mm&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=Oy(fm,{next:_g(1,r)}),Xy(g,s,!1),Ry[s]=Zy;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[bm]||d["@@iterator"]||o&&d[o],h=!mm&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=um(g.call(new e)))!==Object.prototype&&s.next&&(um(s)!==ym&&(hm?hm(s,ym):Ug(s[bm])||Kv(s,bm,Jy)),Xy(s,r,!0)),gm&&"values"==o&&p&&"values"!==p.name&&(vm?Ev(d,"name","values"):(f=!0,h=function(){return uv(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!mm&&!f&&c in d||Kv(d,c,l[c]);else T1({target:t,proto:!0,forced:mm||f},l);return d[bm]!==h&&Kv(d,bm,h,{name:o}),Ry[t]=h,l}var em,tm=b("".charAt),nm=b("".charCodeAt),rm=b("".slice),r1={codeAt:Yy(!1),charAt:Yy(!0)},d=!kg(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),om=Sv("IE_PROTO"),im=m.Object,am=im.prototype,um=d?im.getPrototypeOf:function(e){var t,e=Cg(e);return zg(e,om)?e[om]:(t=e.constructor,Ug(t)&&e instanceof t?t.prototype:e instanceof im?am:null)},sm=Bg("iterator"),l=!1,i=([].keys&&("next"in(u=[].keys())?(v=um(um(u)))!==Object.prototype&&(em=v):l=!0),null!=em&&!kg(function(){var e={};return em[sm].call(e)!==e})||(em={}),Ug(em[sm])||Kv(em,sm,function(){return this}),{IteratorPrototype:em,BUGGY_SAFARI_ITERATORS:l}),lm=xv.f,cm=Bg("toStringTag"),fm=i.IteratorPrototype,dm=m.String,pm=m.TypeError,hm=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){iv(e);var n=t;if("object"==typeof n||Ug(n))return o?r(e,t):e.__proto__=t,e;throw pm("Can't set "+dm(n)+" as a prototype")}}():void 0),gm=qv.PROPER,vm=qv.CONFIGURABLE,ym=i.IteratorPrototype,mm=i.BUGGY_SAFARI_ITERATORS,bm=Bg("iterator"),wm=r1.charAt,xm=Gv.set,Em=Gv.getterFor("String Iterator");Qy(String,"String",function(e){xm(this,{type:"String Iterator",string:uy(e),index:0})},function(){var e=Em(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=wm(t,n),e.index+=t.length,{value:t,done:!1})});function Dm(t){return 51<=Wg||!kg(function(){var e=[];return(e.constructor={})[Tm]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Sm(n,e,t,r){var a,o=Bg(n),u=!kg(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!kg(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[Qm]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=b(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=b(e),i=t.exec;return i===Ym||i===eb.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),Kv(String.prototype,n,i[0]),Kv(eb,o,i[1])),r&&Ev(eb[o],"sham",!0)}function Cm(e,t,n){return t+(n?tb(e,t).length:1)}function Am(e,t){var n=e.exec;if(Ug(n))return null!==(n=uv(n,e,t))&&iv(n),n;if("RegExp"===Zv(e))return uv(Ym,e,t);throw sb("RegExp#exec called on incompatible receiver")}var h=N1.f,Om=b("".endsWith),km=b("".slice),Bm=Math.min,qy=gy("endsWith"),d=!(qy||!(f=h(String.prototype,"endsWith"))||f.writable),Fm=(T1({target:"String",proto:!0,forced:!d&&!qy},{endsWith:function(e){var t=uy(Sg(this)),n=(hy(e),1<arguments.length?arguments[1]:void 0),r=t.length,n=void 0===n?r:Bm(p1(n),r),r=uy(e);return Om?Om(t,r,n):km(t,n-r.length,n)===r}}),b([].join)),u=s1!=Object,v=Tv("join",","),Tm=(T1({target:"Array",proto:!0,forced:u||!v},{join:function(e){return Fm(A1(this),void 0===e?",":e)}}),Bg("species")),_m=s.map,l=Dm("map"),Pm=(T1({target:"Array",proto:!0,forced:!l},{map:function(e){return _m(this,e,1<arguments.length?arguments[1]:void 0)}}),m.RegExp),i=kg(function(){var e=Pm("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),h=i||kg(function(){return!Pm("a","y").sticky}),f={BROKEN_CARET:i||kg(function(){var e=Pm("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:h,UNSUPPORTED_Y:i},jm=m.RegExp,Nm=kg(function(){var e=jm(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),Im=m.RegExp,Lm=kg(function(){var e=Im("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Rm=Gv.get,Mm=p("native-string-replace",String.prototype.replace),zm=RegExp.prototype.exec,Hm=zm,$m=b("".charAt),Vm=b("".indexOf),Um=b("".replace),Wm=b("".slice),Gm=(d=/b*/g,uv(zm,qy=/a/,"a"),uv(zm,d,"a"),0!==qy.lastIndex||0!==d.lastIndex),qm=f.BROKEN_CARET,Km=void 0!==/()??/.exec("")[1],Ym=Hm=Gm||Km||qm||Nm||Lm?function(e){var t,n,r,o,i,a,u=this,s=Rm(u),e=uy(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=uv(Hm,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=qm&&u.sticky,f=uv(ty,u),s=u.source,d=0,p=e;if(l&&(f=Um(f,"y",""),-1===Vm(f,"g")&&(f+="g"),p=Wm(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==$m(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),Km&&(t=new RegExp("^"+s+"$(?!\\s)",f)),Gm&&(n=u.lastIndex),r=uv(zm,l?t:u,p),l?r?(r.input=Wm(r.input,d),r[0]=Wm(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:Gm&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),Km&&r&&1<r.length&&uv(Mm,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=Oy(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:Hm,u=(T1({target:"RegExp",proto:!0,forced:/./.exec!==Ym},{exec:Ym}),Function.prototype),Xm=u.apply,v=u.bind,Zm=u.call,Jm="object"==typeof Reflect&&Reflect.apply||(v?Zm.bind(Xm):function(){return Zm.apply(Xm,arguments)}),Qm=Bg("species"),eb=RegExp.prototype,tb=r1.charAt,nb=Math.floor,rb=b("".charAt),ob=b("".replace),ib=b("".slice),ab=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ub=/\$([$&'`]|\d{1,2})/g,sb=m.TypeError,lb=Bg("replace"),cb=Math.max,fb=Math.min,db=b([].concat),pb=b([].push),hb=b("".indexOf),gb=b("".slice),l="$0"==="a".replace(/./,"$0"),vb=!!/./[lb]&&""===/./[lb]("a","$0"),yb=(Sm("replace",function(e,b,w){var x=vb?"$":"$0";return[function(e,t){var n=Sg(this),r=null==e?void 0:gv(e,lb);return r?uv(r,e,n,t):uv(b,uy(n),e,t)},function(e,t){var n=iv(this),r=uy(e);if("string"==typeof t&&-1===hb(t,x)&&-1===hb(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=Ug(t),a=(i||(t=uy(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=Am(n,r);if(null===s)break;if(pb(u,s),!a)break;""===uy(s[0])&&(n.lastIndex=Cm(r,p1(n.lastIndex),o))}for(var l,c="",f=0,d=0;d<u.length;d++){for(var p=uy((s=u[d])[0]),h=cb(fb(f1(s.index),r.length),0),g=[],v=1;v<s.length;v++)pb(g,void 0===(l=s[v])?l:String(l));var y=s.groups,m=i?(m=db([p],g,h,r),void 0!==y&&pb(m,y),uy(Jm(t,void 0,m))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=ub;return void 0!==l&&(l=Cg(l),t=ab),ob(e,t,function(e,t){var n;switch(rb(t,0)){case"$":return"$";case"&":return i;case"`":return ib(a,0,u);case"'":return ib(a,c);case"<":n=l[ib(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=nb(o/10))&&r<=f?void 0===s[r-1]?rb(t,1):s[r-1]+rb(t,1):e;n=s[o-1]}return void 0===n?"":n})}(p,r,h,g,y,t);f<=h&&(c+=gb(r,f,h)+m,f=h+p.length)}return c+gb(r,f)}]},!!kg(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!l||vb),function(e,t){return(yb=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)});function mb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}yb(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var bb=function(){return(bb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function wb(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xb(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Eb(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function Db(){this.id=""+Pb++}function Sb(e,t,n){for(var r in t)Kv(e,r,t[r],n);return e}function Cb(e,t,n){for(var r=Av(e),o=O1(t,r),i=O1(void 0===n?r:n,r),a=Lb(Rb(i-o,0)),u=0;o<i;o++,u++)my(a,u,e[o]);return a.length=u,a}function Ab(e,t){this.stopped=e,this.result=t}function Ob(e,t,n){function r(e){return i&&vy(i,"normal",e),new Ab(!0,e)}function o(e){return d?(iv(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Cv(t,f);if(p)i=e;else{if(!(n=by(e)))throw qb(dv(e)+" is not iterable");if(yy(n)){for(a=0,u=Av(e);a<u;a++)if((s=o(e[a]))&&sv(Kb,s))return;return}i=wy(e,n)}for(l=i.next;!(c=uv(l,i)).done;){try{s=o(c.value)}catch(e){vy(i,"throw",e)}if("object"==typeof s&&s&&sv(Kb,s))return}}function kb(e,t){if(!sv(t,e))throw Yb("Incorrect invocation")}function Bb(e,t,n){function r(e){var n=b(p[e]);Kv(p,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(c&&!Qg(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return c&&!Qg(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(c&&!Qg(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}var o,i,a,u,s,l=-1!==e.indexOf("Map"),c=-1!==e.indexOf("Weak"),f=l?"set":"add",d=m[e],p=d&&d.prototype,h=d,g={};return Z1(e,!Ug(d)||!(c||p.forEach&&!kg(function(){(new d).entries().next()})))?(h=n.getConstructor(t,e,l,f),Gb.enable()):Z1(e,!0)&&(i=(o=new h)[f](c?{}:-0,1)!=o,a=kg(function(){o.has(1)}),u=Ky(function(e){new d(e)}),s=!c&&kg(function(){for(var e=new d,t=5;t--;)e[f](t,t);return!e.has(-0)}),u||(((h=t(function(e,t){kb(e,p);e=Xb(new d,e,h);return null!=t&&Ob(t,e[f],{that:e,AS_ENTRIES:l}),e})).prototype=p).constructor=h),(a||s)&&(r("delete"),r("has"),l)&&r("get"),(s||i)&&r(f),c)&&p.clear&&delete p.clear,T1({global:!0,forced:(g[e]=h)!=d},g),Xy(h,e),c||n.setStrong(h,e,l),h}function Fb(e){return e.frozen||(e.frozen=new Tb)}function Tb(){this.entries=[]}function _b(e,t){return e2(e.entries,function(e){return e[0]===t})}var Pb=0,jb=Gv.set,Nb=Gv.getterFor("Array Iterator"),Ib=Qy(Array,"Array",function(e,t){jb(this,{type:"Array Iterator",target:A1(e),index:0,kind:t})},function(){var e=Nb(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Lb=(Ry.Arguments=Ry.Array,py("keys"),py("values"),py("entries"),m.Array),Rb=Math.max,Mb=$1.f,zb="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hb={f:function(e){if(!zb||"Window"!=Zv(e))return Mb(A1(e));var t=e;try{return Mb(t)}catch(t){return Cb(zb)}}},$b=kg(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),Vb=Object.isExtensible,Ub=kg(function(){Vb(1)})||$b?function(e){return!!Qg(e)&&(!$b||"ArrayBuffer"!=Zv(e))&&(!Vb||Vb(e))}:Vb,Wb=!kg(function(){return Object.isExtensible(Object.preventExtensions({}))}),Gb=xg(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=xv.f,r=!1,a=Ag("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=$1.f,i=b([].splice),e={};e[a]=1,o(e).length&&($1.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},T1({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hb.f}))},fastKey:function(e,t){if(!Qg(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!zg(e,a)){if(!Ub(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!zg(e,a)){if(!Ub(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return Wb&&r&&Ub(e)&&!zg(e,a)&&n(e),e}};Uv[a]=!0}),qb=m.TypeError,Kb=Ab.prototype,Yb=m.TypeError,Xb=function(e,t,n){return hm&&Ug(t=t.constructor)&&t!==n&&Qg(t=t.prototype)&&t!==n.prototype&&hm(e,t),e},Zb=Gb.getWeakData,Jb=Gv.set,Qb=Gv.getterFor,e2=s.find,t2=s.findIndex,n2=b([].splice),r2=0;Tb.prototype={get:function(e){e=_b(this,e);if(e)return e[1]},has:function(e){return!!_b(this,e)},set:function(e,t){var n=_b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=t2(this.entries,function(e){return e[0]===t});return~e&&n2(this.entries,e,1),!!~e}};function o2(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}function i2(e,t){if(e){if(e[p2]!==g2)try{Ev(e,p2,g2)}catch(t){e[p2]=g2}if(e[h2]||Ev(e,h2,t),n1[t])for(var n in Ib)if(e[n]!==Ib[n])try{Ev(e,n,Ib[n])}catch(t){e[n]=Ib[n]}}}var a2,u2,s2,l2,c2,f2,h={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=Zb(iv(t),!0);return!0===o?Fb(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){kb(e,a),Jb(e,{type:n,id:r2++,frozen:void 0}),null!=t&&Ob(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=Qb(n);return Sb(a,{delete:function(e){var t,n=u(this);return!!Qg(e)&&(!0===(t=Zb(e))?Fb(n).delete(e):t&&zg(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!Qg(e)&&(!0===(t=Zb(e))?Fb(n).has(e):t&&zg(t,n.id))}}),Sb(a,r?{get:function(e){var t,n=u(this);if(Qg(e))return!0===(t=Zb(e))?Fb(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},d2=Gv.enforce,i=!m.ActiveXObject&&"ActiveXObject"in m,p=Bb("WeakMap",o2,h),p2=(c&&i&&(a2=h.getConstructor(o2,"WeakMap",!0),Gb.enable(),d=p.prototype,u2=b(d.delete),s2=b(d.has),l2=b(d.get),c2=b(d.set),Sb(d,{delete:function(e){var t;return Qg(e)&&!Ub(e)?((t=d2(this)).frozen||(t.frozen=new a2),u2(this,e)||t.frozen.delete(e)):u2(this,e)},has:function(e){var t;return Qg(e)&&!Ub(e)?((t=d2(this)).frozen||(t.frozen=new a2),s2(this,e)||t.frozen.has(e)):s2(this,e)},get:function(e){var t;return!Qg(e)||Ub(e)||((t=d2(this)).frozen||(t.frozen=new a2),s2(this,e))?l2(this,e):t.frozen.get(e)},set:function(e,t){var n;return!Qg(e)||Ub(e)||((n=d2(this)).frozen||(n.frozen=new a2),s2(this,e))?c2(this,e,t):n.frozen.set(e,t),this}})),Bg("iterator")),h2=Bg("toStringTag"),g2=Ib.values;for(f2 in n1)i2(m[f2]&&m[f2].prototype,f2);i2(o1,"DOMTokenList");var v2=new WeakMap,y2=new WeakMap,m2=new WeakMap,b2=new WeakMap,w2=new WeakMap,x2=new WeakMap,E2=new WeakMap,D2=new WeakMap,S2=new WeakMap,C2=new WeakMap,A2=new WeakMap,O2=new WeakMap,k2=new WeakMap,B2=new WeakMap,F2=new WeakMap,T2=new WeakMap,_2=new WeakMap,P2=new WeakMap,j2=new WeakMap,N2=new WeakMap,I2=new WeakMap,L2=new WeakMap,R2=new WeakMap,M2=new WeakMap,z2=new WeakMap,H2=s.find,$2=!0;"find"in[]&&Array(1).find(function(){$2=!1}),T1({target:"Array",proto:!0,forced:$2},{find:function(e){return H2(this,e,1<arguments.length?arguments[1]:void 0)}}),py("find"),T1({global:!0},{globalThis:m});const V2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];N.fn.css=Xf,N.fn.append=nd,N.fn.addClass=If,N.fn.removeClass=Lf,N.fn.hasClass=Rf,N.fn.on=Vf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.removeAttr=zf,N.fn.hide=Kf,N.fn.show=Yf,N.fn.offset=qf,N.fn.width=Wf,N.fn.height=Gf,N.fn.parent=od,N.fn.parents=id,N.fn.is=td,N.fn.dataset=Hf,N.fn.val=$f,N.fn.text=ed,N.fn.html=Qf,N.fn.children=ud,N.fn.remove=sd,N.fn.find=ad,N.fn.each=Zf,N.fn.empty=ld;function U2(e){return W2(e)&&1===e.nodeType}function W2(e){var t=J2(e);return!!t&&e instanceof t.Node}function G2(e){var t=e&&e.anchorNode&&J2(e.anchorNode);return!!t&&e instanceof t.Selection}function q2(e){return W2(e)&&3===e.nodeType}function K2(e){var t;return null!=(t=window.document.getElementById(e))?t:(null==(t=null==(t=window.document.activeElement)?void 0:t.shadowRoot)?void 0:t.getElementById(e))||null}function Y2(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(W2(r=i)&&8===r.nodeType||U2(i)&&0===i.childNodes.length||U2(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]}var X2,Z2,J2=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null};function Q2(e){return 0===e.length||(e=e[0]).nodeType!==X2.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Z2=X2=X2||{})[Z2.ELEMENT_NODE=1]="ELEMENT_NODE",Z2[Z2.TEXT_NODE=3]="TEXT_NODE",Z2[Z2.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Z2[Z2.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Z2[Z2.COMMENT_NODE=8]="COMMENT_NODE",Z2[Z2.DOCUMENT_NODE=9]="DOCUMENT_NODE",Z2[Z2.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Z2[Z2.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;function ew(t){return function(e){e=uy(Sg(e));return 1&t&&(e=dw(e,pw,"")),e=2&t?dw(e,hw,""):e}}var tw,nw="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),rw="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ow=("undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),"undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent)),u="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),v="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),iw="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),aw=("undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),!v&&!u&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges),I={getWindow:function(e){e=I2.get(e);if(e)return e;throw new Error("Unable to find a host window element for this editor")},findKey:function(e,t){var n=N2.get(t);return n||(n=new Db,N2.set(t,n)),n},setNewKey:function(e){var t=new Db;N2.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=F2.get(r);if(null==o){if(P.isEditor(r))return n;break}var i=B2.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){var t;return e.isDestroyed?window.document:((t=(e=I.toDOMNode(e,e)).getRootNode())instanceof Document||t instanceof ShadowRoot)&&null!=t.getSelection?t:e.ownerDocument},getParentNode:function(e,t){return F2.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=I.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){t=[I.findPath(e,t)[0]];return R.get(e,t)},toDOMNode:function(e,t){if(e=P.isEditor(t)?T2.get(e):(e=I.findKey(e,t),P2.get(e)))return e;throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t))},hasDOMNode:function(e,t,n){var r,n=(n=void 0===n?{}:n).editable,n=void 0!==n&&n,o=I.toDOMNode(e,e);try{r=U2(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===o&&(!n||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=z.isBackward(t),n=I.toDOMPoint(e,n),t=z.isCollapsed(t)?n:I.toDOMPoint(e,r),r=I.getWindow(e).document.createRange(),e=xb(o?t:n,2),i=e[0],e=e[1],o=xb(o?n:t,2),n=o[0],t=o[1],o=!!(U2(i)?i:i.parentElement).getAttribute("data-slate-zero-width"),a=!!(U2(n)?n:n.parentElement).getAttribute("data-slate-zero-width");return r.setStart(i,o?1:e),r.setEnd(n,a?1:t),r},toDOMPoint:function(e,t){var n,r,o,i=xb(P.node(e,t.path),1)[0],i=I.toDOMNode(e,i),i=(P.void(e,{at:t})&&(t={path:t.path,offset:0}),Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]"))),a=0;try{for(var u=wb(i),s=u.next();!s.done;s=u.next()){var l=s.value,c=l.childNodes[0];if(null!=c&&null!=c.textContent){var f=c.textContent.length,d=l.getAttribute("data-slate-length"),p=a+(null==d?f:parseInt(d,10));if(t.offset<=p){o=[c,Math.min(f,Math.max(0,t.offset-a))];break}a=p}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o)return o;throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t))},toSlateNode:function(e,t){var t=U2(t)?t:t.parentElement,n=(t=t&&!t.hasAttribute("data-slate-node")?t.closest("[data-slate-node]"):t)?_2.get(t):null;if(n)return n;throw new Error("Cannot resolve a Slate node from DOM node: "+t)},findEventRange:function(e,t){var n=(t="nativeEvent"in t?t.nativeEvent:t).clientX,r=t.clientY,o=t.target;if(null!=n&&null!=r){var i,a=I.toSlateNode(e,t.target),u=I.findPath(e,a);if(P.isVoid(e,a)){o=o.getBoundingClientRect(),a=e.isInline(a)?n-o.left<o.left+o.width-n:r-o.top<o.top+o.height-r,o=P.point(e,u,{edge:a?"start":"end"}),u=a?P.before(e,o):P.after(e,o);if(u)return P.range(e,u)}a=this.getWindow(e).document;if(a.caretRangeFromPoint?i=a.caretRangeFromPoint(n,r):(o=a.caretPositionFromPoint(n,r))&&((i=a.createRange()).setStart(o.offsetNode,o.offset),i.setEnd(o.offsetNode,o.offset)),i)return I.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}throw new Error("Cannot resolve a Slate range from a DOM event: "+t)},toSlateRange:function(e,t,n){var r,o,i,a=n.exactMatch,n=n.suppressThrow;if((G2(t)?t.anchorNode:t.startContainer)&&(i=G2(t)?(u=t.anchorNode,s=t.anchorOffset,r=t.focusNode,o=t.focusOffset,iw&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(u=t.startContainer,s=t.startOffset,r=t.endContainer,o=t.endOffset,t.collapsed)),null==u||null==r||null==s||null==o)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var u,s,t=I.toSlatePoint(e,[u,s],{exactMatch:a,suppressThrow:n});return t&&(u=i?t:I.toSlatePoint(e,[r,o],{exactMatch:a,suppressThrow:n}))?z.isExpanded(s={anchor:t,focus:u})&&z.isForward(s)&&U2(r)&&P.void(e,{at:s.focus,mode:"highest"})?P.unhangRange(e,s,{voids:!0}):s:null},toSlatePoint:function(e,i,t){var n,r,o,a,u=t.exactMatch,t=t.suppressThrow,u=xb(u?i:function(){var e,t=xb(i,2),n=t[0],t=t[1];if(U2(n)&&n.childNodes.length){var r=t===n.childNodes.length;for(n=(e=xb(Y2(n,r?t-1:t,r?"backward":"forward"),2))[0],r=e[1]<t;U2(n)&&n.childNodes.length;)var o=r?n.childNodes.length-1:0,n=xb(Y2(n,o,r?"backward":"forward"),1)[0];t=r&&null!=n.textContent?n.textContent.length:0}return[n,t]}(),2),s=u[0],u=u[1],l=s.parentNode,c=null,f=0;if(l&&(n=l.closest('[data-slate-void="true"]'),o=null,(r=l.closest("[data-slate-leaf]"))?(c=r.closest('[data-slate-node="text"]'),(a=I.getWindow(e).document.createRange()).setStart(c,0),a.setEnd(s,u),s=a.cloneContents(),Eb(Eb([],xb(wf(s.querySelectorAll("[data-slate-zero-width]")))),xb(wf(s.querySelectorAll("[contenteditable=false]")))).forEach(function(e){e.parentNode.removeChild(e)}),f=s.textContent.length,o=c):n&&((r=n.querySelector("[data-slate-leaf]"))?(c=r.closest('[data-slate-node="text"]'),f=(o=r).textContent.length,o.querySelectorAll("[data-slate-zero-width]").forEach(function(e){f-=e.textContent.length})):f=1),o)&&f===o.textContent.length&&(l.hasAttribute("data-slate-zero-width")||rw&&null!=(u=o.textContent)&&u.endsWith("\n"))&&f--,c)return a=I.toSlateNode(e,c),{path:I.findPath(e,a),offset:f};if(t)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+i)},hasRange:function(e,t){var n=t.anchor,t=t.focus;return P.hasPath(e,n.path)&&P.hasPath(e,t.path)},getNodeType:function(e){return _.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return R.string(e)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=P.nodes(e,{universal:!0});try{for(var i=wb(o),a=i.next();!a.done;a=i.next()){var u=xb(a.value,1)[0];_.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,e=xb(P.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==e?null:e[0]},getSelectedTextNode:function(e){e=xb(P.nodes(e,{match:function(e){return H.isText(e)},universal:!0}),1)[0];return null==e?null:e[0]},isNodeSelected:function(e,t){e=xb(P.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=e&&xb(e,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(P.isEnd(e,n.anchor,t)||P.isEnd(e,n.focus,t))},getTextarea:function(e){e=v2.get(e);if(null==e)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(e){return b2.get(e)||null},getHoverbar:function(e){return x2.get(e)||null},normalizeContent:function(n){n.children.forEach(function(e,t){n.normalizeNode([e,[t]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,t=t.onMaxLength;return"number"!=typeof n||n<=0?1/0:((n=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length)<=0&&t&&t(e),n)},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=I.getTextarea(t).$textArea,i=null==i?void 0:i[0].childNodes;if(i)try{for(var a=wb(Array.from(i)),u=a.next();!u.done;u=a.next()){var s=u.value;if(3!==s.nodeType)break;s.remove()}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}i=P.nodes(t,{match:function(e){return!(!_.isElement(e)||t.isInline(e))},universal:!0});try{for(var l=wb(i),c=l.next();!c.done;c=l.next()){var f,d=c.value;null!=d&&(f=d[0],function e(t,n){if(!(t instanceof HTMLElement&&"true"===t.dataset.slateVoid))for(var r=t.childNodes,o=r.length;o--;){var i=r[o],a=i.nodeType;3==a?n(i,t):1!=a&&9!=a&&11!=a||e(i,n)}}(I.toDOMNode(t,f),function(e,t){var n=N(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}},isLastNode:function(e,t){e=e.children||[];return e[e.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=P.nodes(t,{match:function(e){return t.isVoid(e)}}),o=0;try{for(var i=wb(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return 0<o},isSelectedEmptyParagraph:function(e){var t=e.selection;return null!=t&&!z.isExpanded(t)&&null!==(t=I.getSelectedNodeByType(e,"paragraph"))&&1===(e=t.children).length&&(""===e[0].text||void 0)},isEmptyPath:function(e,t){e=P.node(e,t);return null!=e&&1===(t=xb(e,1)[0].children).length&&""===t[0].text}},uw=1,sw={},lw={},cw=s.filter,r1=Dm("filter"),fw=(T1({target:"Array",proto:!0,forced:!r1},{filter:function(e){return cw(this,e,1<arguments.length?arguments[1]:void 0)}}),"\t\n\v\f\r                 \u2028\u2029\ufeff"),dw=b("".replace),l="["+fw+"]",pw=RegExp("^"+l+l+"*"),hw=RegExp(l+l+"*$"),c={start:ew(1),end:ew(2),trim:ew(3)},gw=qv.PROPER,vw=c.trim,yw=(T1({target:"String",proto:!0,forced:(tw="trim",kg(function(){return fw.trim()||"​…᠎"!=="​…᠎".trim()||gw&&fw.trim.name!==tw}))},{trim:function(){return vw(this)}}),[]),mw={};function bw(e,t,n){n=n.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}function ww(e){var e=Og(e),t=xv.f;Jg&&e&&!e[Sw]&&t(e,Sw,{configurable:!0,get:function(){return this}})}function xw(e,t){var n,e=iv(e).constructor;if(void 0===e||null==(n=iv(e)[Aw]))return t;if(w1(e=n))return e;throw Cw(dv(e)+" is not a constructor")}var Ew,Dw,i=m.Promise,Sw=Bg("species"),Cw=m.TypeError,Aw=Bg("species"),Ow=b([].slice),h=/(?:ipad|iphone|ipod).*applewebkit/i.test(g),kw="process"==Zv(m.process),p=m.setImmediate,d=m.clearImmediate,Bw=m.process,Fw=m.Dispatch,Tw=m.Function,o1=m.MessageChannel,_w=m.String,Pw=0,jw={};try{Ew=m.location}catch(Z2){}function Nw(e){return function(){Rw(e)}}function Iw(e){Rw(e.data)}function Lw(e){m.postMessage(_w(e),Ew.protocol+"//"+Ew.host)}var Rw=function(e){var t;zg(jw,e)&&(t=jw[e],delete jw[e],t())};p&&d||(p=function(e){var t=Ow(arguments,1);return jw[++Pw]=function(){Jm(Ug(e)?e:Tw(e),void 0,t)},Dw(Pw),Pw},d=function(e){delete jw[e]},kw?Dw=function(e){Bw.nextTick(Nw(e))}:Fw&&Fw.now?Dw=function(e){Fw.now(Nw(e))}:o1&&!h?(u=(v=new o1).port2,v.port1.onmessage=Iw,Dw=Cv(u.postMessage,u)):m.addEventListener&&Ug(m.postMessage)&&!m.importScripts&&Ew&&"file:"!==Ew.protocol&&!kg(Lw)?(Dw=Lw,m.addEventListener("message",Iw,!1)):Dw="onreadystatechange"in Fg("script")?function(e){Dy.appendChild(Fg("script")).onreadystatechange=function(){Dy.removeChild(this),Rw(e)}}:function(e){setTimeout(Nw(e),0)});var Mw,zw,Hw,$w,Vw,Uw,Ww,s={set:p,clear:d},r1=/ipad|iphone|ipod/i.test(g)&&void 0!==m.Pebble,l=/web0s(?!.*chrome)/i.test(g),c=N1.f,Gw=s.set,o1=m.MutationObserver||m.WebKitMutationObserver,v=m.document,qw=m.process,u=m.Promise,p=c(m,"queueMicrotask"),d=p&&p.value;d||(Mw=function(){var e,t;for(kw&&(e=qw.domain)&&e.exit();zw;){t=zw.fn,zw=zw.next;try{t()}catch(e){throw zw?$w():Hw=void 0,e}}Hw=void 0,e&&e.enter()},$w=h||kw||l||!o1||!v?!r1&&u&&u.resolve?((g=u.resolve(void 0)).constructor=u,Ww=Cv(g.then,g),function(){Ww(Mw)}):kw?function(){qw.nextTick(Mw)}:(Gw=Cv(Gw,m),function(){Gw(Mw)}):(Vw=!0,Uw=v.createTextNode(""),new o1(Mw).observe(Uw,{characterData:!0}),function(){Uw.data=Vw=!Vw}));function Kw(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=hv(n),this.reject=hv(r)}var Yw,Xw,Zw,Jw,Qw=d||function(e){e={fn:e,next:void 0};Hw&&(Hw.next=e),zw||(zw=e,$w()),Hw=e},e4={f:function(e){return new Kw(e)}},t4=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},n4="object"==typeof window,r4=s.set,o4=Bg("species"),i4="Promise",a4=Gv.getterFor(i4),u4=Gv.set,s4=Gv.getterFor(i4),c=i&&i.prototype,l4=i,c4=c,f4=m.TypeError,d4=m.document,p4=m.process,h4=e4.f,g4=h4,v4=!!(d4&&d4.createEvent&&m.dispatchEvent),y4=Ug(m.PromiseRejectionEvent),m4=!1,p=Z1(i4,function(){var e,t=$v(l4),n=t!==String(l4);return!n&&66===Wg||!(51<=Wg&&/native code/.test(t))&&(t=function(e){e(function(){},function(){})},((e=new l4(function(e){e(1)})).constructor={})[o4]=t,!(m4=e.then(function(){})instanceof t)||!n&&n4&&!y4)}),h=p||!Ky(function(e){l4.all(e).catch(function(){})}),b4=function(e){var t;return!(!Qg(e)||!Ug(t=e.then))&&t},w4=function(d,p){var h;d.notified||(d.notified=!0,h=d.reactions,Qw(function(){for(var r,e=d.value,t=1==d.state,n=0;h.length>n;){var o,i,a,u=h[n++],s=t?u.ok:u.fail,l=u.resolve,c=u.reject,f=u.domain;try{s?(t||(2===d.rejection&&function(t){uv(r4,m,function(){var e=t.facade;kw?p4.emit("rejectionHandled",e):x4("rejectionhandled",e,t.value)})}(d),d.rejection=1),!0===s?o=e:(f&&f.enter(),o=s(e),f&&(f.exit(),a=!0)),o===u.promise?c(f4("Promise-chain cycle")):(i=b4(o))?uv(i,o,l,c):l(o)):c(e)}catch(e){f&&!a&&f.exit(),c(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&(r=d,uv(r4,m,function(){var e,t=r.facade,n=r.value;if(E4(r)&&(e=t4(function(){kw?p4.emit("unhandledRejection",n,t):x4("unhandledrejection",t,n)}),r.rejection=kw||E4(r)?2:1,e.error))throw e.value}))}))},x4=function(e,t,n){var r;v4?((r=d4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),m.dispatchEvent(r)):r={promise:t,reason:n},!y4&&(t=m["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){var n=m.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},E4=function(e){return 1!==e.rejection&&!e.parent},D4=function(t,n,r){return function(e){t(n,e,r)}},S4=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,w4(e,!0))},C4=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw f4("Promise can't be resolved itself");var r=b4(e);r?Qw(function(){var t={done:!1};try{uv(r,e,D4(C4,t,n),D4(S4,t,n))}catch(e){S4(t,e,n)}}):(n.value=e,n.state=1,w4(n,!1))}catch(e){S4({done:!1},e,n)}}};if(p&&(c4=(l4=function(e){kb(this,c4),hv(e),uv(Yw,this);var t=a4(this);try{e(D4(C4,t),D4(S4,t))}catch(e){S4(t,e)}}).prototype,(Yw=function(e){u4(this,{type:i4,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Sb(c4,{then:function(e,t){var n=s4(this),r=n.reactions,o=h4(xw(this,l4));return o.ok=!Ug(e)||e,o.fail=Ug(t)&&t,o.domain=kw?p4.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&w4(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Xw=function(){var e=new Yw,t=a4(e);this.promise=e,this.resolve=D4(C4,t),this.reject=D4(S4,t)},e4.f=h4=function(e){return e===l4||e===Zw?new Xw:g4(e)},Ug(i))&&c!==Object.prototype){Jw=c.then,m4||(Kv(c,"then",function(e,t){var n=this;return new l4(function(e,t){uv(Jw,n,e,t)}).then(e,t)},{unsafe:!0}),Kv(c,"catch",c4.catch,{unsafe:!0}));try{delete c.constructor}catch(Z2){}hm&&hm(c,c4)}T1({global:!0,wrap:!0,forced:p},{Promise:l4}),Xy(l4,i4,!1),ww(i4),Zw=Og(i4),T1({target:i4,stat:!0,forced:p},{reject:function(e){var t=h4(this);return uv(t.reject,void 0,e),t.promise}}),T1({target:i4,stat:!0,forced:p},{resolve:function(e){return e=e,iv(t=this),Qg(e)&&e.constructor===t?e:((0,(t=e4.f(t)).resolve)(e),t.promise);var t}}),T1({target:i4,stat:!0,forced:h},{all:function(e){var u=this,t=h4(u),s=t.resolve,l=t.reject,n=t4(function(){var r=hv(u.resolve),o=[],i=0,a=1;Ob(e,function(e){var t=i++,n=!1;a++,uv(r,u,e).then(function(e){n||(n=!0,o[t]=e,--a)||s(o)},l)}),--a||s(o)});return n.error&&l(n.value),t.promise},race:function(e){var n=this,r=h4(n),o=r.reject,t=t4(function(){var t=hv(n.resolve);Ob(e,function(e){uv(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}});var A4=f.UNSUPPORTED_Y,O4=Math.min,k4=[].push,B4=b(/./.exec),F4=b(k4),T4=b("".slice);function _4(e){Promise.resolve().then(e)}function P4(e){return"w-e-element-"+e}Sm("split",function(o,h,g){var v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=uy(Sg(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!_y(e))return uv(h,n,e,r);for(var o,i,a,u=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,l=new RegExp(e.source,t+"g");(o=uv(Ym,l,n))&&!((i=l.lastIndex)>s&&(F4(u,T4(n,s,o.index)),1<o.length&&o.index<n.length&&Jm(k4,u,Cb(o,1)),a=o[0].length,s=i,r<=u.length));)l.lastIndex===o.index&&l.lastIndex++;return s===n.length?!a&&B4(l,"")||F4(u,""):F4(u,T4(n,s)),r<u.length?Cb(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:uv(h,this,e,t)}:h;return[function(e,t){var n=Sg(this),r=null==e?void 0:gv(e,o);return r?uv(r,e,n,t):uv(v,uy(n),e,t)},function(e,t){var n=iv(this),r=uy(e),e=g(v,n,r,t,v!==h);if(e.done)return e.value;var e=xw(n,RegExp),o=n.unicode,i=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(A4?"g":"y"),a=new e(A4?"^(?:"+n.source+")":n,i),u=void 0===t?4294967295:t>>>0;if(0==u)return[];if(0===r.length)return null===Am(a,r)?[r]:[];for(var s=0,l=0,c=[];l<r.length;){a.lastIndex=A4?0:l;var f,d=Am(a,A4?T4(r,l):r);if(null===d||(f=O4(p1(a.lastIndex+(A4?l:0)),r.length))===s)l=Cm(r,l,o);else{if(F4(c,T4(r,s,l)),c.length===u)return c;for(var p=1;p<=d.length-1;p++)if(F4(c,d[p]),c.length===u)return c;l=s=f}}return F4(c,T4(r,s)),c}]},!!kg(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),A4);function j4(e,t){return t=(t.top+t.bottom)/2,e.top<=t&&e.bottom>=t}var N4=function(e,t,n){t=I.toDOMRange(e,t).getBoundingClientRect(),e=I.toDOMRange(e,n).getBoundingClientRect();return j4(t,e)&&j4(e,t)},I4=["span","b","strong","i","em","s","strike","u","font","sub","sup"],L4=[],R4=[],M4={},z4=xv.f,l=$1.f,H4=Gv.enforce,$4=Bg("match"),V4=m.RegExp,U4=V4.prototype,W4=m.SyntaxError,G4=b(ty),q4=b(U4.exec),K4=b("".charAt),Y4=b("".replace),X4=b("".indexOf),Z4=b("".slice),J4=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Q4=/a/g,ex=/a/g,r1=new V4(Q4)!==Q4,tx=f.MISSED_STICKY,nx=f.UNSUPPORTED_Y,u=Jg&&(!r1||tx||Nm||Lm||kg(function(){return ex[$4]=!1,V4(Q4)!=Q4||V4(ex)==ex||"/a/i"!=V4(Q4,"i")}));if(Z1("RegExp",u)){for(var rx=function(e,t){var n,r,o=sv(U4,this),i=_y(e),a=void 0===t,u=[],s=e;if(!o&&i&&a&&e.constructor===rx)return e;if((i||sv(U4,e))&&(e=e.source,a)&&(t="flags"in s?s.flags:G4(s)),e=void 0===e?"":uy(e),t=void 0===t?"":uy(t),s=e,i=t=Nm&&"dotAll"in Q4&&(n=!!t&&-1<X4(t,"s"))?Y4(t,/s/g,""):t,tx&&"sticky"in Q4&&(r=!!t&&-1<X4(t,"y"))&&nx&&(t=Y4(t,/y/g,"")),Lm&&(e=(a=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=K4(e,r)))t+=K4(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:q4(J4,Z4(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||zg(a,c))throw new W4("Invalid capture group name");a[c]=!0,s=!(i[i.length]=[c,l]),c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],u=a[1]),a=Xb(V4(e,t),o?this:U4,rx),(n||r||u.length)&&(t=H4(a),n&&(t.dotAll=!0,t.raw=rx(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=K4(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+K4(e,++r);return o}(e),i)),r&&(t.sticky=!0),u.length)&&(t.groups=u),e!==s)try{Ev(a,"source",""===s?"(?:)":s)}catch(e){}return a},ox=l(V4),ix=0;ox.length>ix;)!function(t){t in rx||z4(rx,t,{configurable:!0,get:function(){return V4[t]},set:function(e){V4[t]=e}})}(ox[ix++]);(U4.constructor=rx).prototype=U4,Kv(m,"RegExp",rx)}ww("RegExp");var ax=new RegExp(String.fromCharCode(160),"g");function ux(e){return e.replace(ax," ")}function sx(e,t){var n=e.length;if(n){e=e[n-1];if(H.isText(e)){n=Object.keys(e);if(1===n.length&&"text"===n[0])return e.text=e.text+t,!0}}return!1}function lx(e,t,n){return{type:"paragraph",children:[{text:N(e).text().replace(/\s+/gm," ")}]}}function cx(n,r){o=r,i=[],null==(t=n).attr("data-w-e-is-void")&&(1===(t=t[0].childNodes).length&&"BR"===t[0].nodeName?i.push({text:""}):t.forEach(function(e){var t;e.nodeType!==X2.ELEMENT_NODE?e.nodeType!==X2.TEXT_NODE||""===(t=e.textContent||"").trim()&&0<=t.indexOf("\n")||t&&(t=ux(t),sx(i,t)||i.push({text:t})):"BR"===e.nodeName?sx(i,"\n")||i.push({text:"\n"}):(t=dx(N(e),o),Array.isArray(t)?t.forEach(function(e){return i.push(e)}):i.push(t))}));var o,i,e=i,t=function(e){for(var t in M4)if(e[0].matches(t))return M4[t];return lx}(n)(n[0],e,r);return(t=Array.isArray(t)?t:[t]).forEach(function(t){P.isVoid(r,t)||(0===e.length&&(t.children=[{text:n.text().replace(/\s+/gm," ")}]),R4.forEach(function(e){t=e(n[0],t,r)}))}),t}function fx(t,n){0===t.parents("pre").length&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var e=t[0].textContent||"",r={text:ux(e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return R4.forEach(function(e){r=e(t[0],r,n)}),r}function dx(n,e){L4.forEach(function(e){var t=e.selector,e=e.preParseHtml;n[0].matches(t)&&(n=N(e(n[0])))});var t=Q2(n);return("span"===t?n.attr("data-w-e-type")?cx:fx:"code"===t?"pre"===Q2(n.parent())?cx:fx:I4.includes(t)?fx:cx)(n,e)}function px(e,t,n){var r=N(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function hx(t,e){var n=[],e=N("<div>"+(e=0!==(e=""===(e=void 0===e?"":e)?"<p><br></p>":e).indexOf("<")?e.split(/\n/).map(function(e){return"<p>"+e+"</p>"}).join(""):e)+"</div>");return Array.from(e.children()).forEach(function(e){e=dx(N(e),t);Array.isArray(e)?e.forEach(function(e){return n.push(e)}):n.push(e)}),n}var gx=xv.f,vx=Gb.fastKey,yx=Gv.set,mx=Gv.getterFor,bx=(Bb("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,n,r,o){function i(e,t,n){var r,o=s(e),i=a(e,t);return i?i.value=n:(o.last=i={index:r=vx(t,!0),key:t,value:n,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),Jg?o.size++:e.size++,"F"!==r&&(o.index[r]=i)),e}function a(e,t){var n,e=s(e),r=vx(t);if("F"!==r)return e.index[r];for(n=e.first;n;n=n.next)if(n.key==t)return n}var e=e(function(e,t){kb(e,u),yx(e,{type:n,index:Oy(null),first:void 0,last:void 0,size:0}),Jg||(e.size=0),null!=t&&Ob(t,e[o],{that:e,AS_ENTRIES:r})}),u=e.prototype,s=mx(n);return Sb(u,{clear:function(){for(var e=s(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Jg?e.size=0:this.size=0},delete:function(e){var t,n,r=s(this),e=a(this,e);return e&&(t=e.next,n=e.previous,delete r.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first==e&&(r.first=t),r.last==e&&(r.last=n),Jg?r.size--:this.size--),!!e},forEach:function(e){for(var t,n=s(this),r=Cv(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!a(this,e)}}),Sb(u,r?{get:function(e){e=a(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),Jg&&gx(u,"size",{get:function(){return s(this).size}}),e},setStrong:function(e,t,n){var r=t+" Iterator",o=mx(t),i=mx(r);Qy(e,t,function(e,t){yx(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:e.target=void 0,done:!0}},n?"entries":"values",!n,!0),ww(t)}}),new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]));function wx(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):j.insertNodes(e,t,{mode:"highest"})}function xx(e){return null!=e}function Ex(e){return!!function(e){if("function"==typeof e&&hasOwnProperty.call(e,"length")){try{if("number"!=typeof e.length)return;if("function"!=typeof e.call)return;if("function"!=typeof e.apply)return}catch(e){return}var t=e;if(xx(t)&&hasOwnProperty.call(Ox,typeof t))try{return!(t.constructor&&t.constructor.prototype===t)}catch(t){}return!void 0}}(e)&&!kx.test(Bx.call(e))}function Dx(e){return null!=e}function Sx(e){var o=Nx(null);return jx.call(arguments,function(e){if(Dx(e)){var t,n=Object(e),r=o;for(t in n)r[t]=n[t]}}),o}function Cx(e){if("function"!=typeof e)throw new TypeError(e+" is not a function")}var Ax=function(e){var l=e,c=l.insertText;return l.insertFragment,l.setFragmentData=function(e){var t=l.selection;if(t){var n,r,o=xb(z.edges(t),2),i=o[0],o=o[1],i=P.void(l,{at:i.path}),o=P.void(l,{at:o.path});if(!z.isCollapsed(t)||i)return n=(t=I.toDOMRange(l,t)).cloneContents(),r=n.childNodes[0],n.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(r=e)}),o&&(o=xb(o,1)[0],t=t.cloneRange(),o=I.toDOMNode(l,o),t.setEndAfter(o),n=t.cloneContents()),i&&(r=n.querySelector("[data-slate-spacer]")),Array.from(n.querySelectorAll("[data-slate-zero-width]")).forEach(function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),q2(r)&&((o=r.ownerDocument.createElement("span")).style.whiteSpace="pre",o.appendChild(r),n.appendChild(o),r=o),t=l.getFragment(),i=JSON.stringify(t),o=window.btoa(encodeURIComponent(i)),r.setAttribute("data-slate-fragment",o),e.setData("application/x-slate-fragment",o),(t=n.ownerDocument.createElement("div")).appendChild(n),t.setAttribute("hidden","true"),n.ownerDocument.body.appendChild(t),e.setData("text/html",t.innerHTML),e.setData("text/plain",function e(t){var n,r="";if(q2(t)&&t.nodeValue)return t.nodeValue;if(U2(t)){try{for(var o=wb(Array.from(t.childNodes)),i=o.next();!i.done;i=o.next())r+=e(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}var a=getComputedStyle(t).getPropertyValue("display");"block"!==a&&"list"!==a&&"table-row"!==a&&"BR"!==t.tagName||(r+="\n")}return r}(t)),n.ownerDocument.body.removeChild(t),e}},l.insertData=function(e){var t,n,r=e.getData("application/x-slate-fragment");if(r){r=decodeURIComponent(window.atob(r)),r=JSON.parse(r);l.insertFragment(r)}else{var r=e.getData("text/plain"),o=e.getData("text/html");if(o)l.dangerouslyInsertHtml(o);else if(r){var o=r.split(/\r\n|\r|\n/),i=!1;try{for(var a=wb(o),u=a.next();!u.done;u=a.next()){var s=u.value;i&&j.splitNodes(l,{always:!0}),c(s),i=!0}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}}},l},Ox={object:!0,function:!0,undefined:!0},kx=/^\s*class[\s{/}]/,Bx=Function.prototype.toString,Fx=Object.keys,Tx=function(){try{return Object.keys("primitive"),1}catch(e){}}()?Object.keys:function(e){return Fx(Dx(e)?Object(e):e)},_x=Math.max,Px="function"==typeof(g=Object.assign)&&(g(g={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),g.foo+g.bar+g.trzy==="razdwatrzy")?Object.assign:function(t,n){var r,e,o,i=_x(arguments.length,2);for(t=Object(function(e){if(Dx(e))return e;throw new TypeError("Cannot use null or undefined")}(t)),o=function(e){try{t[e]=n[e]}catch(e){r=r||e}},e=1;e<i;++e)Tx(n=arguments[e]).forEach(o);if(void 0!==r)throw r;return t},jx=Array.prototype.forEach,Nx=Object.create,v="razdwatrzy",Ix=String.prototype.indexOf,Lx="function"==typeof v.contains&&!0===v.contains("dwa")&&!1===v.contains("foo")?String.prototype.contains:function(e){return-1<Ix.call(this,e,arguments[1])},Rx=xg(function(e){(e.exports=function(e,t){var n,r,o,i;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],xx(e)?(n=Lx.call(e,"c"),r=Lx.call(e,"e"),o=Lx.call(e,"w")):r=!(n=o=!0),e={value:t,configurable:n,enumerable:r,writable:o},i?Px(Sx(i),e):e}).gs=function(e,t,n){var r,o;return"string"!=typeof e?(o=n,n=t,t=e,e=null):o=arguments[3],xx(t)?Ex(t)?xx(n)?Ex(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,e=xx(e)?(r=Lx.call(e,"c"),Lx.call(e,"e")):!(r=!0),t={get:t,set:n,configurable:r,enumerable:e},o?Px(Sx(o),t):t}}),Mx=xg(function(e,t){var o,a=Function.prototype.apply,u=Function.prototype.call,r=Object.create,i=Object.defineProperty,n=Object.defineProperties,s=Object.prototype.hasOwnProperty,l={configurable:!0,enumerable:!1,writable:!0},c=function(e,t){var n,r;return Cx(t),o.call(r=this,e,n=function(){f.call(r,e,n),a.call(t,this,arguments)}),n.__eeOnceListener__=t,this},f=function(e,t){var n,r,o,i;if(Cx(t),s.call(this,"__ee__")&&(n=this.__ee__)[e])if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},d=function(e){var t,n,r,o,i;if(s.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)a.call(r,this,i)}else switch(arguments.length){case 1:u.call(o,this);break;case 2:u.call(o,this,arguments[1]);break;case 3:u.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];a.call(o,this,i)}},p={on:o=function(e,t){var n;return Cx(t),s.call(this,"__ee__")?n=this.__ee__:(n=l.value=r(null),i(this,"__ee__",l),l.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:c,off:f,emit:d},h={on:Rx(o),once:Rx(c),off:Rx(f),emit:Rx(d)},g=n({},h);e.exports=t=function(e){return null==e?r(g):n(Object(e),h)},t.methods=p});function zx(e){var t=M2.get(e);return null==t&&(t=Mx(),M2.set(e,t)),t}var Hx=new WeakMap;function $x(e,t){var n=Hx.get(e);null==n&&(n=new Set,Hx.set(e,n)),n.add(t)}function Vx(e){var e=I.getTextarea(e).$textAreaContainer,t=e.width(),n=e.height(),e=e.offset();return{top:e.top,left:e.left,width:t,height:n}}function Ux(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=Vx(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,r=r.height,e=I.toDOMRange(e,n).getClientRects()[0];if(null==e)return t;e.width;n=e.height,t={},o=e.top-o,e=e.left-i;return a/2<e?t.right=5+(a-e)+"px":t.left=5+e+"px",r/2<o?t.bottom=5+(r-o)+"px":t.top=(i=(i=o+n)<0?0:i)+5+"px",t}function Wx(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=_.isElement(t)&&e.isVoid(t),i=_.isElement(t)&&e.isInline(t),a=j2.get(t);if(null==a)return r;var t=a.getBoundingClientRect(),u=t.top,s=t.left,l=t.height,t=t.width,c=(o&&null!=(c=function(){var e=[];e.push(a);for(var t=0;0<e.length;){var n=e.pop();if(null==n)break;if(1e4<++t)break;var r=n.nodeName;if(1===n.nodeType){r=r.toLowerCase();if(V2.includes(r)||"iframe"===r||"video"===r)return n;var o=n.children||[],r=o.length;if(r)for(var i=r-1;0<=i;i--)e.push(o[i])}}return null}())&&(u=(c=c.getBoundingClientRect()).top,l=c.height),Vx(e));if(null==c)return r;var f,e=c.top,r=c.left,d=c.width,c=c.height,p={},u=u-e,e=s-r;if("bar"===n)return p.left=e+"px",40<u?p.bottom=c-u+5+"px":p.top=u+l+5+"px",p;if("modal"===n)return o?i?(d-t)/2<e?p.right=d-e+5+"px":p.left=e+t+5+"px":p.left="20px":p.left=e+"px",o?((f=u)<0&&(f=0),p.top=f+"px"):(c-l)/2<u?p.bottom=c-u+5+"px":((f=u+l)<0&&(f=0),p.top=f+5+"px"),p;throw new Error("type '"+n+"' is invalid")}function Gx(c,f){_4(function(){var e,t,n,r,o,i,a,u,s,l=Vx(c);null!=l&&(s=l.top,o=l.left,t=l.width,l=l.height,u=(n=f.offset()).top,n=n.left,r=f.width(),a=f.height(),s=u-s,o=n-o,0<=(i=f.attr("style")).indexOf("top")&&0<(e=s+a-l)&&(s=f.css("top"),a=parseInt(s.toString())-e,f.css("top",(a=a<0?0:a)+"px")),0<=i.indexOf("bottom")&&u<0&&(l=f.css("bottom"),s=parseInt(l.toString())-Math.abs(u),f.css("bottom",s+"px")),0<=i.indexOf("left")&&0<(e=o+r-t)&&(a=f.css("left"),l=parseInt(a.toString())-e,f.css("left",(l=l<0?0:l)+"px")),0<=i.indexOf("right"))&&n<0&&(u=f.css("right"),s=parseInt(u.toString())-Math.abs(n),f.css("right",s+"px"))})}var o1=Dm("slice"),qx=Bg("species"),Kx=m.Array,Yx=Math.max,d=(T1({target:"Array",proto:!0,forced:!o1},{slice:function(e,t){var n,r,o,i=A1(this),a=Av(i),u=O1(e,a),s=O1(void 0===t?a:t,a);if(h1(i)&&(n=i.constructor,(n=w1(n)&&(n===Kx||h1(n.prototype))||Qg(n)&&null===(n=n[qx])?void 0:n)===Kx||void 0===n))return Ow(i,u,s);for(r=new(void 0===n?Kx:n)(Yx(s-u,0)),o=0;u<s;u++,o++)u in i&&my(r,o,i[u]);return r.length=o,r}}),N1.f),Xx=b("".startsWith),Zx=b("".slice),Jx=Math.min,s=gy("startsWith"),c=!(s||!(i=d(String.prototype,"startsWith"))||i.writable),Qx=(T1({target:"String",proto:!0,forced:!c&&!s},{startsWith:function(e){var t=uy(Sg(this)),n=(hy(e),p1(Jx(1<arguments.length?arguments[1]:void 0,t.length))),e=uy(e);return Xx?Xx(t,e,n):Zx(t,n,n+e.length)===e}}),Object.assign),eE=Object.defineProperty,tE=b([].concat),p=!Qx||kg(function(){var e,t,n,r;return Jg&&1!==Qx({b:1},Qx(eE({},"a",{enumerable:!0,get:function(){eE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=Qx({},e)[n])||Q1(Qx({},t)).join("")!=r})?function(e,t){for(var n=Cg(e),r=arguments.length,o=1,i=V1.f,a=P1.f;o<r;)for(var u,s=s1(arguments[o++]),l=i?tE(Q1(s),i(s)):Q1(s),c=l.length,f=0;f<c;)u=l[f++],Jg&&!uv(a,s,u)||(n[u]=s[u]);return n}:Qx,nE=(T1({target:"Object",stat:!0,forced:Object.assign!==p},{assign:p}),["props","attrs","style","dataset","on","hook"]),rE=[],oE={};function iE(e,t,n){return pp(n.isInline(e)?"span":"div",null,t)}function aE(e,t){return pp("span",{"data-slate-string":!0},(t=void 0===t?!1:t)?e+"\n":e)}function uE(e,t){return pp("span",{"data-slate-zero-width":(t=void 0===t?!1:t)?"n":"z","data-slate-length":e=void 0===e?0:e},"\ufeff",t?pp("br",null):null)}function sE(e,n){var t=e.$scroll,r="w-e-textarea-"+e.id,o=n.getConfig(),i=o.readOnly,o=o.autoFocus,i=Zd("div#"+r,{props:{contentEditable:!(void 0!==i&&i)}}),a=n.children||[],a=(i.children=a.map(function(e,t){e=function n(e,t,r,o){if(B2.set(e,t),F2.set(e,r),_.isElement(e))return l=e,c=o,g=I.findKey(c,l),t=c.isInline(l),v=P.isVoid(c,l),y=P4(g.id),m={id:y,key:g.id,"data-slate-node":"element","data-slate-inline":t},b=l.type,x=void 0===(x=l.children)?[]:x,b=oE[b]||iE,x=v?null:x.map(function(e,t){return n(e,t,l,c)}),b=b(l,x,c),v&&(m["data-slate-void"]=!0,x=t?"span":"div",f=xb(R.texts(l),1),f=xb(f[0],1)[0],w=pp(x,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},n(f,0,l,c)),b=pp(x,{style:{position:"relative"}},b,w),B2.set(f,0),F2.set(f,l)),null==b.data&&(b.data={}),Object.assign(b.data,m),v||t||(d=l,h=p=b,rE.forEach(function(e){h=e(d,p)}),b=h),_4(function(){var e=K2(y);null!=e&&(P2.set(g,e),j2.set(l,e),_2.set(e,l))}),b;var i=e,u=r,s=o;if(null==i.text)throw new Error("Current node is not slate Text "+JSON.stringify(i));var a=I.findKey(s,i);if(null==(x=s.getConfig().decorate))throw new Error("Can not get config.decorate");var l,c,f,d,p,h,g,v,y,m,b,w=I.findPath(s,i),x=x([i,w]),E=H.decorations(i,x),w=E.map(function(a,e){var t,n,e=function(e,t,n,r){void 0===e&&(e=!1);var o=a.text,i=I.findPath(r,t),i=M.parent(i);if(P.isEditor(n))throw new Error("Text node "+JSON.stringify(t)+" parent is Editor");return r.isVoid(n)?uE(R.string(n).length):""!==o||n.children[n.children.length-1]!==t||r.isInline(n)||""!==P.string(r,i)?""===o?uE():e&&"\n"===o.slice(-1)?aE(o,!0):aE(o):uE(0,!0)}(e===E.length-1,i,u,s);return pp("span",{"data-slate-leaf":!0},(t=a,n=e,rE.forEach(function(e){n=e(t,n)}),n))}),D="w-e-text-"+a.id,x=pp("span",{"data-slate-node":"text",id:D,key:a.id},w);return _4(function(){var e=K2(D);null!=e&&(P2.set(a,e),j2.set(i,e),_2.set(e,i))}),x}(e,t,n,n);return function t(i){var e=i.data,a=void 0===e?{}:e,e=i.children,e=void 0===e?[]:e;Object.keys(a).forEach(function(e){var t,n,r,o=a[e];"key"!==e?nE.includes(e)||(e.startsWith("data-")?(r=e.slice(5),r=Fp(r),t=i,(n={})[r]=o,r=n,null==t.data&&(t.data={}),null==(t=t.data).dataset&&(t.dataset={}),Object.assign(t.dataset,r)):(n=i,(t={})[e]=o,r=t,null==n.data&&(n.data={}),null==(n=n.data).props&&(n.props={}),Object.assign(n.props,r)),delete a[e]):i.key=o}),0<e.length&&e.forEach(function(e){"string"!=typeof e&&t(e)})}(e),e}),A2.get(e));if(a=null==a?!0:a){var u=N('<div\n id="'+r+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>');t.append(u),u=(e.$textArea=u)[0],(s=Xd([tp,sp,dp,op,ap,Qd]))(u,i),A2.set(e,!1),O2.set(e,s)}else{var t=k2.get(e),s=O2.get(e);if(null==t||null==s)return;u=t.elm,s(t,i)}null==u&&null==(u=K2(r))||((a?o:n.isFocused())&&u.focus({preventScroll:!0}),a&&(s=J2(u))&&I2.set(n,s),T2.set(n,u),j2.set(n,u),_2.set(u,n),k2.set(e,i))}function lE(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function cE(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function fE(e,t){var n;if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)return cE((n=getComputedStyle(e,null)).overflowY,t)||cE(n.overflowX,t)||(t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(n=e))&&(t.clientHeight<n.scrollHeight||t.clientWidth<n.scrollWidth)}function dE(e,t,n,r,o,i,a,u){return i<e&&t<a||e<i&&a<t?0:i<=e&&u<=n||t<=a&&n<=u?i-e-r:t<a&&u<n||i<e&&n<u?a-t+o:0}function pE(e,t){var n=window,I=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,L=t.skipOverflowHiddenElements,R="function"==typeof i?i:function(e){return e!==i};if(!lE(e))throw new TypeError("Invalid target");for(var M=document.scrollingElement||document.documentElement,a=[],u=e;lE(u)&&R(u);){if((u=u.parentElement)===M){a.push(u);break}null!=u&&u===document.body&&fE(u)&&!fE(document.documentElement)||null!=u&&fE(u,L)&&a.push(u)}for(var s=n.visualViewport?n.visualViewport.width:innerWidth,l=n.visualViewport?n.visualViewport.height:innerHeight,c=window.scrollX||pageXOffset,f=window.scrollY||pageYOffset,t=e.getBoundingClientRect(),d=t.height,p=t.width,h=t.top,g=t.right,v=t.bottom,y=t.left,m="start"===r||"nearest"===r?h:"end"===r?v:h+d/2,b="center"===o?y+p/2:"end"===o?g:y,w=[],x=0;x<a.length;x++){var E=a[x],D=E.getBoundingClientRect(),S=D.height,C=D.width,A=D.top,z=D.right,O=D.bottom,D=D.left;if("if-needed"===I&&0<=h&&0<=y&&v<=l&&g<=s&&A<=h&&v<=O&&D<=y&&g<=z)return w;var k=getComputedStyle(E),B=parseInt(k.borderLeftWidth,10),F=parseInt(k.borderTopWidth,10),T=parseInt(k.borderRightWidth,10),k=parseInt(k.borderBottomWidth,10),_=0,P=0,j="offsetWidth"in E?E.offsetWidth-E.clientWidth-B-T:0,N="offsetHeight"in E?E.offsetHeight-E.clientHeight-F-k:0;M===E?(_="start"===r?m:"end"===r?m-l:"nearest"===r?dE(f,f+l,l,F,k,f+m,f+m+d,d):m-l/2,P="start"===o?b:"center"===o?b-s/2:"end"===o?b-s:dE(c,c+s,s,B,T,c+b,c+b+p,p),_=Math.max(0,_+f),P=Math.max(0,P+c)):(_="start"===r?m-A-F:"end"===r?m-O+k+N:"nearest"===r?dE(A,O,S,F,k+N,m,m+d,d):m-(A+S/2)+N/2,P="start"===o?b-D-B:"center"===o?b-(D+C/2)+j/2:"end"===o?b-z+T+j:dE(D,z,C,B,T+j,b,b+p,p),O=E.scrollLeft,m+=(F=E.scrollTop)-(_=Math.max(0,Math.min(F+_,E.scrollHeight-S+N))),b+=O-(P=Math.max(0,Math.min(O+P,E.scrollWidth-C+j)))),w.push({el:E,top:_,left:P})}return w}function hE(e){return e===Object(e)&&0!==Object.keys(e).length}function gE(e,t){return W2(t)&&I.hasDOMNode(e,t,{editable:!0})}function vE(e,t){return!e.getConfig().readOnly&&(t=yE(e,t)&&I.toSlateNode(e,t),P.isVoid(e,t))}function yE(e,t){return W2(t)&&I.hasDOMNode(e,t)}function mE(e,t,n){void 0===n&&(n=!1);var r,o,i=t.selection,a=t.getConfig(),u=I.findDocumentOrShadowRoot(t).getSelection();if(u&&(!e.isComposing||n)&&t.isFocused()){var n="None"!==u.type;if(i||n){var s,l=T2.get(t),c=!1;if(l.contains(u.anchorNode)&&l.contains(u.focusNode)&&(c=!0),n&&c&&i){n=I.toSlateRange(t,u,{exactMatch:!0,suppressThrow:!0});if(n&&z.equals(n,i)){var f,d,c=!0;if(c=z.isCollapsed(i)&&(n=u.anchorNode,f=u.anchorOffset,n===l)&&(n=void 0,(n=(d=l.childNodes)[f])&&n.matches("table")&&(c=!1),n=d[f-1])&&n.matches("table")?!1:c)return}}!i||I.hasRange(t,i)?(e.isUpdatingSelection=!0,(s=i&&I.toDOMRange(t,i))?(z.isBackward(i)?u.setBaseAndExtent(s.endContainer,s.endOffset,s.startContainer,s.startOffset):u.setBaseAndExtent(s.startContainer,s.startOffset,s.endContainer,s.endOffset),(d=s.startContainer.parentElement).closest("[data-slate-spacer]")||(d.getBoundingClientRect=s.getBoundingClientRect.bind(s),f=document.body,n=d,c={scrollMode:"if-needed",boundary:a.scroll?l.parentElement:f,block:"end",behavior:"smooth"},i=!n.ownerDocument.documentElement.contains(n),hE(c)&&"function"==typeof c.behavior?c.behavior(i?[]:pE(n,c)):i||(c=!1===(i=c)?{block:"end",inline:"nearest"}:hE(i)?i:{block:"start",inline:"nearest"},i=pE(n,c),void 0===(r=c.behavior)&&(r="auto"),o="scrollBehavior"in document.body.style,i.forEach(function(e){var t=e.el,n=e.top,e=e.left;t.scroll&&o?t.scroll({top:n,left:e,behavior:r}):(t.scrollTop=n,t.scrollLeft=e)})),delete d.getBoundingClientRect)):u.removeAllRanges(),setTimeout(function(){s&&rw&&l.focus(),e.isUpdatingSelection=!1})):t.selection=I.toSlateRange(t,u,{exactMatch:!1,suppressThrow:!1})}}}function bE(e){var t=EE[e],n=DE[e],e=SE[e],r=t&&Lp(t),o=n&&Lp(n),i=e&&Lp(e);return function(e){return!(!r||!r(e))||!!(nw&&o&&o(e))||!(nw||!i||!i(e))}}var wE=new WeakMap,xE=new WeakMap,EE={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},DE={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},SE={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},CE={isBold:bE("bold"),isCompose:bE("compose"),isMoveBackward:bE("moveBackward"),isMoveForward:bE("moveForward"),isDeleteBackward:bE("deleteBackward"),isDeleteForward:bE("deleteForward"),isDeleteLineBackward:bE("deleteLineBackward"),isDeleteLineForward:bE("deleteLineForward"),isDeleteWordBackward:bE("deleteWordBackward"),isDeleteWordForward:bE("deleteWordForward"),isExtendBackward:bE("extendBackward"),isExtendForward:bE("extendForward"),isExtendLineBackward:bE("extendLineBackward"),isExtendLineForward:bE("extendLineForward"),isItalic:bE("italic"),isMoveLineBackward:bE("moveLineBackward"),isMoveLineForward:bE("moveLineForward"),isMoveWordBackward:bE("moveWordBackward"),isMoveWordForward:bE("moveWordForward"),isRedo:bE("redo"),isSplitBlock:bE("splitBlock"),isTransposeCharacter:bE("transposeCharacter"),isUndo:bE("undo"),isTab:bE("tab"),isSelectAll:bE("selectAll")};function AE(e){e.preventDefault()}var OE={beforeinput:function(e,t,n){var r=n.getConfig().readOnly;if(aw&&!r&&gE(n,e.target)){var r=n.selection,o=e.inputType,i=e.dataTransfer||e.data||void 0;if("insertCompositionText"!==o&&"deleteCompositionText"!==o)if(e.preventDefault(),o.startsWith("delete")&&!o.startsWith("deleteBy")||(e=xb(e.getTargetRanges(),1)[0])&&(e=I.toSlateRange(n,e,{exactMatch:!1,suppressThrow:!1}),r&&z.equals(r,e)||j.select(n,e)),r&&z.isExpanded(r)&&o.startsWith("delete")){e=o.endsWith("Backward")?"backward":"forward";P.deleteFragment(n,{direction:e})}else switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":P.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":P.deleteForward(n);break;case"deleteContentBackward":P.deleteBackward(n);break;case"deleteEntireSoftLine":P.deleteBackward(n,{unit:"line"}),P.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":P.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":P.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":P.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":P.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":P.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":P.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":P.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromPaste"===o&&!z2.get(n)||(i instanceof DataTransfer?n.insertData(i):"string"==typeof i&&P.insertText(n,i))}}},blur:function(e,t,n){var r=t.isUpdatingSelection,t=t.latestElement;if(!n.getConfig().readOnly&&!r&&gE(n,e.target)){r=I.findDocumentOrShadowRoot(n);if(t!==r.activeElement){t=e.relatedTarget;if(!(t===I.toDOMNode(n,n)||U2(t)&&t.hasAttribute("data-slate-spacer"))){if(null!=t&&W2(t)&&I.hasDOMNode(n,t)){e=I.toSlateNode(n,t);if(_.isElement(e)&&!n.isVoid(e))return}ow&&null!=(t=r.getSelection())&&t.removeAllRanges(),L2.delete(n)}}}},focus:function(e,t,n){var r=I.toDOMNode(n,n),o=I.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,rw&&e.target!==r?r.focus():L2.set(n,!0)},click:function(e,t,n){var r,o;!n.getConfig().readOnly&&yE(n,e.target)&&W2(e.target)&&(e=I.toSlateNode(n,e.target),r=I.findPath(n,e),P.hasPath(n,r))&&R.get(n,r)===e&&(e=P.start(n,r),r=P.end(n,r),o=P.void(n,{at:e}),r=P.void(n,{at:r}),o)&&r&&M.equals(o[1],r[1])&&(o=P.range(n,e),j.select(n,o))},compositionstart:function(e,t,n){var r;gE(n,e.target)&&((e=n.selection)&&z.isExpanded(e)&&(P.deleteFragment(n),Promise.resolve().then(function(){mE(t,n,!0)})),e&&z.isCollapsed(e)&&(r=(e=I.toDOMRange(n,e).startContainer).textContent||"",wE.set(n,r),xE.set(n,e)),t.isComposing=!0,r=t,(e=n).getConfig().placeholder)&&e.isEmpty()&&r.showPlaceholder&&(null!=(e=r.$placeholder)&&e.hide(),r.showPlaceholder=!1)},compositionend:function(e,t,n){if(gE(n,e.target)){t.isComposing=!1;var r=n.selection;if(null!=r){(iw||rw)&&I.cleanExposedTexNodeInSelectionBlock(n);for(var o=z.isBackward(r)?r.focus:r.anchor,i=xb(P.node(n,[o.path[0]]),1)[0],a=0;a<o.path.length;a++){var u=xb(P.node(n,o.path.slice(0,a+1)),1)[0];if(_.isElement(u)&&((ow||rw)&&"link"===u.type||"code"===u.type)){I.setNewKey(i);break}}var s,e=e.data;e&&(n.getConfig().maxLength&&(s=I.getLeftLengthOfMaxLength(n))<e.length?(I.toDOMRange(n,r).startContainer.textContent=wE.get(n)||"",0<s&&P.insertText(n,e.slice(0,s)),t.changeViewState()):P.insertText(n,e),ow||setTimeout(function(){var e,t=n.selection;null!=t&&null!=(e=xE.get(n))&&I.toDOMRange(n,t).startContainer!==e&&(e.textContent=wE.get(n)||"")}))}}},compositionupdate:function(e,t,n){gE(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&gE(n,e.target)){var o,i=n,a=e,t=(t=b2.get(i))&&t.getMenus(),u=(u=x2.get(i))&&u.getMenus(),s=bb(bb({},t),u);for(o in s){var l=s[o],c=l.hotkey;c&&Rp(c,a)&&!l.isDisabled(i)&&(c=l.getValue(i),l.exec(i,c))}CE.isTab(e)?(AE(e),n.handleTab()):CE.isRedo(e)?(AE(e),"function"==typeof n.redo&&n.redo()):CE.isUndo(e)?(AE(e),"function"==typeof n.undo&&n.undo()):CE.isMoveLineBackward(e)?(AE(e),j.move(n,{unit:"line",reverse:!0})):CE.isMoveLineForward(e)?(AE(e),j.move(n,{unit:"line"})):CE.isExtendLineBackward(e)?(AE(e),j.move(n,{unit:"line",edge:"focus",reverse:!0})):CE.isExtendLineForward(e)?(AE(e),j.move(n,{unit:"line",edge:"focus"})):CE.isMoveBackward(e)?(AE(e),r&&z.isCollapsed(r)?j.move(n,{reverse:!0}):j.collapse(n,{edge:"start"})):CE.isMoveForward(e)?(AE(e),r&&z.isCollapsed(r)?j.move(n):j.collapse(n,{edge:"end"})):CE.isMoveWordBackward(e)?(AE(e),r&&z.isExpanded(r)&&j.collapse(n,{edge:"focus"}),j.move(n,{unit:"word",reverse:!0})):CE.isMoveWordForward(e)?(AE(e),r&&z.isExpanded(r)&&j.collapse(n,{edge:"focus"}),j.move(n,{unit:"word"})):CE.isSelectAll(e)?(AE(e),n.selectAll()):aw?(iw||ow)&&r&&(CE.isDeleteBackward(e)||CE.isDeleteForward(e))&&z.isCollapsed(r)&&(t=R.parent(n,r.anchor.path),_.isElement(t))&&P.isVoid(n,t)&&P.isInline(n,t)&&(e.preventDefault(),j.delete(n,{unit:"block"})):CE.isBold(e)||CE.isItalic(e)||CE.isTransposeCharacter(e)?AE(e):CE.isSplitBlock(e)?(AE(e),P.insertBreak(n)):CE.isDeleteBackward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"backward"}):P.deleteBackward(n)):CE.isDeleteForward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"forward"}):P.deleteForward(n)):CE.isDeleteLineBackward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"backward"}):P.deleteBackward(n,{unit:"line"})):CE.isDeleteLineForward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"forward"}):P.deleteForward(n,{unit:"line"})):CE.isDeleteWordBackward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"backward"}):P.deleteBackward(n,{unit:"word"})):CE.isDeleteWordForward(e)&&(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"forward"}):P.deleteForward(n,{unit:"word"}))}},keypress:function(e,t,n){aw||n.getConfig().readOnly||!gE(n,e.target)||(e.preventDefault(),e=e.key,P.insertText(n,e))},copy:function(e,t,n){gE(n,e.target)&&(e.preventDefault(),null!=(e=e.clipboardData))&&n.setFragmentData(e)},cut:function(e,t,n){var r=n.selection;!n.getConfig().readOnly&&gE(n,e.target)&&(e.preventDefault(),null!=(e=e.clipboardData))&&(n.setFragmentData(e),r)&&(z.isExpanded(r)?P.deleteFragment(n):(e=R.parent(n,r.anchor.path),P.isVoid(n,e)&&j.delete(n)))},paste:function(e,t,n){z2.set(n,!0);var r;!n.getConfig().readOnly&&gE(n,e.target)&&((r=n.getConfig().customPaste)&&!1===r(n,e)?z2.set(n,!1):(!aw||(r=e).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length)&&(e.preventDefault(),null!=(r=e.clipboardData))&&n.insertData(r))},dragover:function(e,t,n){var r;yE(n,e.target)&&(r=I.toSlateNode(n,e.target),P.isVoid(n,r))&&e.preventDefault()},dragstart:function(e,t,n){var r,o;yE(n,e.target)&&!n.getConfig().readOnly&&(r=I.toSlateNode(n,e.target),o=I.findPath(n,r),(P.isVoid(n,r)||P.void(n,{at:o,voids:!0}))&&(r=P.range(n,o),j.select(n,r)),null!=(o=e.dataTransfer))&&(t.isDraggingInternally=!0,n.setFragmentData(o))},dragend:function(e,t,n){n.getConfig().readOnly||t.isDraggingInternally&&yE(n,e.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r,o=e.dataTransfer;n.getConfig().readOnly||!yE(n,e.target)||null==o||aw&&ow&&0<o.files.length||(e.preventDefault(),r=n.selection,e=I.findEventRange(n,e),j.select(n,e),t.isDraggingInternally&&(r&&j.delete(n,{at:r}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused())||n.focus()}},kE=1,BE=(Object.defineProperty(FE.prototype,"editorInstance",{get:function(){var e=y2.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),FE.prototype.bindEvent=function(){var n=this,r=this.$textArea,e=this.$scroll,o=this.editorInstance;null!=r&&(Ad(OE,function(t,e){r.on(e,function(e){t(e,n,o)})}),o.getConfig().scroll)&&(e.css("overflow-y","auto"),e.on("scroll",zd(function(){o.emit("scroll")},100)))},FE.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout(function(){return o&&o(t)}):null!=e.latestEditorSelection&&null==t.selection&&setTimeout(function(){return r&&r(t)}),e.latestEditorSelection=t.selection})},FE.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;t&&(e=t-I.getLeftLengthOfMaxLength(e),this.$maxLengthInfo[0].innerHTML=e+"/"+t)},FE.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),100<=e&&setTimeout(function(){t.hide(),t.css("width","0"),t.show()},1e3)},FE.prototype.changeViewState=function(){var e=this,t=this.editorInstance;sE(this,t),function(e,t){var n=t.getConfig().placeholder;if(n){t=t.isEmpty();if(t&&!e.showPlaceholder&&!e.isComposing)return null==e.$placeholder&&(n=N('<div class="w-e-text-placeholder">'+n+"</div>"),e.$textAreaContainer.append(n),e.$placeholder=n),e.$placeholder.show(),e.showPlaceholder=!0;!t&&e.showPlaceholder&&(null!=(n=e.$placeholder)&&n.hide(),e.showPlaceholder=!1)}}(this,t),_4(function(){mE(e,t)})},FE.prototype.destroy=function(){this.$textAreaContainer.remove()},FE);function FE(e){var i=this,t=(this.id=kE++,this.$textArea=null,this.$progressBar=N('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=N('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=zd(function(){var e=i.editorInstance,t=(o=i).isComposing,n=o.isUpdatingSelection,r=o.isDraggingInternally;if(!(e.getConfig().readOnly||t||n||r)){t=I.findDocumentOrShadowRoot(e),n=t.activeElement,r=I.toDOMNode(e,e),t=t.getSelection();if(n===r?(o.latestElement=n,L2.set(e,!0)):L2.delete(e),!t)return void j.deselect(e);var r=t.anchorNode,o=t.focusNode,n=gE(e,r)||vE(e,r),r=gE(e,o)||vE(e,o);n&&r?(o=I.toSlateRange(e,t,{exactMatch:!1,suppressThrow:!1}),j.select(e,o)):j.deselect(e)}},100),N(e));if(0===t.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=t;var r=N('<div class="w-e-text-container"></div>'),e=(r.append(this.$progressBar),r.append(this.$maxLengthInfo),t.append(r),N('<div class="w-e-scroll"></div>'));r.append(e),this.$scroll=e,this.$textAreaContainer=r,_4(function(){var e=i.editorInstance,t=I.getWindow(e),n=(t.document.addEventListener("selectionchange",i.onDOMSelectionChange),e.on("destroyed",function(){t.document.removeEventListener("selectionchange",i.onDOMSelectionChange)}),r.on("click",function(){return e.hidePanelOrModal()}),e.on("change",i.changeViewState.bind(i)),e.getConfig().onChange);n&&e.on("change",function(){return n(e)}),i.onFocusAndOnBlur(),e.on("change",i.changeMaxLengthInfo.bind(i)),i.bindEvent()})}function TE(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");e=e.children();e.length&&TE(e)}function _E(){return N('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function PE(){return N('<div class="w-e-bar-divider"></div>')}function jE(e,t,n,r,o){void 0===o&&(o=!1),t&&(r=r&&r.replace("mod",nw?"cmd":"ctrl"),o?r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right")):(e.attr("data-tooltip",r?n+"\n"+r:n),e.addClass("w-e-menu-tooltip-v5")))}Sm("match",function(r,u,s){return[function(e){var t=Sg(this),n=null==e?void 0:gv(e,r);return n?uv(n,e,t):new RegExp(e)[r](uy(t))},function(e){var t=iv(this),n=uy(e),e=s(u,t,n);if(e.done)return e.value;if(!t.global)return Am(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=Am(t,n));){var a=uy(a[0]);""===(o[i]=a)&&(t.lastIndex=Cm(n,p1(t.lastIndex),r)),i++}return 0===i?null:o}]});KE.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(e){e.preventDefault(),s3(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},KE.prototype.exec=function(){var e=s3(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},KE.prototype.setActive=function(){var e=s3(this),t=this.$button;this.menu.isActive(e)?t.addClass("active"):t.removeClass("active")},KE.prototype.setDisabled=function(){var e=s3(this),t=this.$button,n=this.menu.isDisabled(e);null!=e.selection&&!e.isDisabled()||(n=!0);(n=this.menu.alwaysEnable?!1:n)?t.addClass("disabled"):t.removeClass("disabled"),this.disabled=n},KE.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()};var NE,IE,LE,RE,h=KE,ME=(mb(qE,RE=h),qE.prototype.onButtonClick=function(){},qE),f=(GE.prototype.record=function(e){var t=D2.get(e);null==t&&(t=new Set,D2.set(e,t)),t.add(this),S2.set(this,e)},GE.prototype.renderContent=function(e){var t=this.$elem,e=(t.empty(),t.append(e),this.genSelfElem());e&&t.append(e)},GE.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},GE.prototype.show=function(){var e;!this.isShow&&(this.showTime=Date.now(),this.$elem.show(),this.isShow=!0,e=S2.get(this))&&e.emit("modalOrPanelShow",this)},GE.prototype.hide=function(){var e;this.isShow&&!(Date.now()-this.showTime<200)&&(this.$elem.hide(),this.isShow=!1,e=S2.get(this))&&e.emit("modalOrPanelHide")},GE),zE=(mb(WE,LE=f),WE.prototype.genSelfElem=function(){return null},WE),HE=(mb(UE,IE=h),UE.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},UE.prototype.handleDropPanel=function(){var e,t,n,r=this.menu;null!=r.getPanelContentElem&&(t=s3(this),null==this.dropPanel?(e=new zE(t),n=r.getPanelContentElem(t),e.renderContent(n),e.appendTo(this.$elem),e.show(),this.dropPanel=e):(e=this.dropPanel).isShow?e.hide():(n=r.getPanelContentElem(t),e.renderContent(n),e.show()),(r=this.dropPanel).isShow)&&((t=this.$elem).offset().left-(n=t.parents(".w-e-bar")).offset().left>=n.width()/2?r.$elem.css({left:"none",right:"0"}):r.$elem.css({left:"0",right:"none"}))},UE),$E=(mb(VE,NE=f),VE.prototype.genSelfElem=function(){var e=this,t=N('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=S2.get(this);return t.on("click",function(){e.hide(),null!=n&&n.restoreSelection()}),t},VE.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},VE);function VE(t,e){void 0===e&&(e=0);var n=NE.call(this,t)||this,e=(n.type="modal",n.$elem=N('<div class="w-e-modal"></div>'),n.width=0,e&&(n.width=e),n.$elem);return e.on("click",function(e){return e.stopPropagation()}),e.on("keyup",function(e){"Escape"===e.code&&(n.hide(),t.restoreSelection())}),n}function UE(e,t,n){e=IE.call(this,e,t,n=void 0===n?!1:n)||this;return e.dropPanel=null,(e.menu=t).showDropPanel&&(n=_E(),e.$button.append(n)),e}function WE(e){e=LE.call(this,e)||this;return e.type="dropPanel",e.$elem=N('<div class="w-e-drop-panel"></div>'),e}function GE(e){this.isShow=!1,this.showTime=0,this.record(e)}function qE(e,t,n){return RE.call(this,e,t,n=void 0===n?!1:n)||this}function KE(e,t,n){var r=this,o=(void 0===n&&(n=!1),this.$elem=N('<div class="w-e-bar-item"></div>'),this.$button=N('<button type="button"></button>'),this.disabled=!1,(this.menu=t).tag),i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a,o=t.title,u=t.hotkey,u=void 0===u?"":u,t=t.iconSvg,t=void 0===t?"":t,s=this.$button;t?(TE(a=N(t)),s.append(a)):s.text(o),jE(s,t,o,u,n),n&&t&&s.append(N('<span class="title">'+o+"</span>")),i&&s.css("width",i+"px"),s.attr("data-menu-key",e),this.$elem.append(s),_4(function(){return r.init()})}function YE(e,t,n){var r=N('<label class="babel-container"></label>'),e=(r.append("<span>"+e+"</span>"),N('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">'));return r.append(e),[r[0],e[0]]}function XE(e,t){var n=N('<div class="button-container"></div>'),e=N('<button type="button" id="'+e+'">'+t+"</button>");return n.append(e),[n[0],e[0]]}mb(u3,JE=h),u3.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},u3.prototype.getPosition=function(){var e=s3(this),t=this.menu.getModalPositionNode(e);return _.isElement(t)?Wx(e,t,"modal"):Ux(e)},u3.prototype.handleModal=function(){var e,t=s3(this),n=this.menu;null==this.modal?(e=new $E(t,n.modalWidth),this.renderAndShowModal(e,!0),this.modal=e):(e=this.modal).isShow?e.hide():this.renderAndShowModal(e,!1)},u3.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n,r,o=s3(this),i=this.menu;null!=i.getModalContentElem&&(n=I.getTextarea(o),r=((null==(r=I.getToolbar(o))?void 0:r.getConfig())||{}).modalAppendToBody,i=i.getModalContentElem(o),e.renderContent(i),r?e.setStyle({left:"0",right:"0"}):(i=this.getPosition(),e.setStyle(i)),t&&(r?e.appendTo(this.$body):e.appendTo(n.$textAreaContainer)),e.show(),r||Gx(o,e.$elem),setTimeout(function(){o.blur()}))};var ZE,JE,QE=u3,e3=(mb(a3,ZE=f),a3.prototype.renderList=function(e){var t=this.$elem,i=(t.empty(),N("<ul></ul>"));e.forEach(function(e){var t=e.value,n=e.text,r=e.selected,e=e.styleForRenderMenuList,o=N('<li data-value="'+t+'"></li>');e&&o.css(e),r&&(e=N('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>'),o.append(e),o.addClass("selected")),o.append(N('<span data-value="'+t+'">'+n+"</span>")),o.attr("title",n),i.append(o)}),t.append(i)},a3.prototype.genSelfElem=function(){return null},a3),t3=(i3.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(e){e.preventDefault(),s3(t).hidePanelOrModal(),t.trigger()})},i3.prototype.trigger=function(){var e,t,n,r=this,o=s3(this);o.isDisabled()||this.disabled||(e=this.menu,null==this.selectList?(this.selectList=new e3(o,e.selectPanelWidth),t=this.selectList,n=e.getOptions(o),t.renderList(n),t.appendTo(this.$elem),t.show(),t.$elem.on("click","li",function(e){var t=e.target;null!=t&&(e.preventDefault(),e=N(t).attr("data-value"),r.onChange(e))})):(t=this.selectList).isShow?t.hide():(n=e.getOptions(o),t.renderList(n),t.show()))},i3.prototype.onChange=function(e){var t=s3(this),n=this.menu;n.exec&&n.exec(t,e)},i3.prototype.setSelectedValue=function(){var e=s3(this),t=this.menu,n=t.getValue(e),t=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),e=this.$button,n=_E();e.empty(),e.text(t),e.append(n)},i3.prototype.setDisabled=function(){var e=s3(this),t=this.menu.isDisabled(e),n=this.$button;(t=null!=e.selection&&!e.isDisabled()?t:!0)?n.addClass("disabled"):n.removeClass("disabled"),this.disabled=t},i3.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},i3),n3=(o3.prototype.appendBarItem=function(e){e=e.$elem;this.$container.append(e)},o3.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},o3.prototype.createObserver=function(){var r=this,o=this.$container,i=this.$button,a=new MutationObserver(function(){var t,e=o.find("button"),n=e.length;0!==n&&(t=0,e.each(function(e){N(e).hasClass("disabled")&&t++}),a.disconnect(),t===n?i.addClass("disabled"):i.removeClass("disabled"),r.observe(a))});return a},o3),r3=new WeakMap;function o3(e){this.$elem=N('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=N('<div class="w-e-bar-item-menus-container"></div>'),this.$button=N('<button type="button"></button>');var t=e.key,n=e.iconSvg,e=e.title,r=this.$elem,o=this.$button,n=(n?(TE(n=N(n)),o.append(n)):o.text(e),o.attr("data-menu-key",t),_E()),e=(o.append(n),r.append(o),this.$container),t=(r.append(e),this.createObserver());this.observe(t)}function i3(e,t,n){var r=this,o=(void 0===n&&(n=!1),this.$elem=N('<div class="w-e-bar-item"></div>'),this.$button=N('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null,t.tag),i=t.title,a=t.width,u=t.iconSvg,u=void 0===u?"":u,s=t.hotkey,s=void 0===s?"":s;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");o=this.$button;a&&o.css("width",a+"px"),o.attr("data-menu-key",e),jE(o,u,i,s,n),this.$elem.append(o),this.menu=t,_4(function(){return r.init()})}function a3(e,t){e=ZE.call(this,e)||this;return e.type="selectList",e.$elem=N('<div class="w-e-select-list"></div>'),t&&e.$elem.css("width",t+"px"),e.$elem.on("click",function(e){e.stopPropagation()}),e}function u3(e,t,n){e=JE.call(this,e,t,n=void 0===n?!1:n)||this;return e.$body=N("body"),e.modal=null,e.menu=t,e}function s3(e){e=E2.get(e);if(null==e)throw new Error("Can not get editor instance");return e}function l3(e,t,n){void 0===n&&(n=!1);var r=r3.get(t);if(!r){var o,i,a=t.tag;if("button"===a&&(o=t.showDropPanel,i=t.showModal,r=new(o?HE:i?QE:ME)(e,t,n)),null==(r="select"===a?new t3(e,t,n):r))throw new Error("Invalid tag in menu "+JSON.stringify(t));r3.set(t,r)}return r}function c3(t,e){var n=t.selection;return null!=n&&!z.isCollapsed(n)&&!I.getSelectedElems(t).some(function(e){return!!t.isVoid(e)||(e=e.type,!!["pre","code","table"].includes(e))||void 0})&&!!H.isText(e)}d3.prototype.getMenus=function(){return this.menus},d3.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},d3.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;(t=n&&360<=n&&n-e[0].getBoundingClientRect().bottom<360?!0:t)?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},d3.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},d3.prototype.changeItemsState=function(){var e=this;_4(function(){e.hoverbarItems.forEach(function(e){e.changeMenuState()})})},d3.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach(function(e){"|"!==e?t.registerSingleItem(e):(e=PE(),n.append(e))})},d3.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=lw[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}o=l3(e,r);this.hoverbarItems.push(o),E2.set(o,t),this.$elem.append(o.$elem)},d3.prototype.setPosition=function(e){var t,n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),_.isElement(e))t=Wx(n,e,"bar");else{if(!H.isText(e))throw new Error("hoverbar.setPosition error, current selected node is not elem nor text");t=Ux(n)}r.css(t),Gx(n,r)},d3.prototype.getSelectedNodeAndMenuKeys=function(){var o=this.getEditorInstance();if(null==o.selection)return null;var e,i=this.getHoverbarKeysConf(),a=null,u=[];for(e in i)if("break"===function(n){var e=i[n],t=e.match,e=e.menuKeys,e=void 0===e?[]:e,r=t||function(e,t){return I.checkNodeType(t,n)},t=xb(P.nodes(o,{match:function(e){return r(o,e)},universal:!0}),1)[0];if(null!=t)return a=t[0],u=e,"break"}(e))break;return null==a||0===u.length?null:{node:a,menuKeys:u}},d3.prototype.getEditorInstance=function(){var e=w2.get(this);if(null==e)throw new Error("Can not get editor instance");return e},d3.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,e=void 0===e?{}:e,t=e.text;return t&&null==t.match&&(t.match=c3),e},d3.prototype.isSamePath=function(e,t){return null!=e&&null!=t&&(e=I.findPath(null,e),t=I.findPath(null,t),M.equals(e,t))},d3.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null};var f3=d3;function d3(){var r=this;this.$elem=N('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Zp(function(){var e=r.isShow,t=r.getSelectedNodeAndMenuKeys()||{},n=t.node,n=void 0===n?null:n,t=t.menuKeys,t=void 0===t?[]:t;null!=n&&r.changeItemsState(),n&&_.isElement(n)&&e&&r.isSamePath(n,r.prevSelectedNode)||(r.hideAndClean(),null!=n&&(r.registerItems(t),r.setPosition(n),r.show()),r.prevSelectedNode=n)},200),_4(function(){var e=r.getEditorInstance(),t=r.$elem,t=(t.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),I.getTextarea(e).$textAreaContainer.append(t),e.on("change",r.changeHoverbarState),r.hideAndClean.bind(r));e.on("scroll",t),e.on("fullScreen",t),e.on("unFullScreen",t)})}function p3(e){var o,n,r,i,a,u,s,t,C,l,c,A,f,d,p,h,g,v,y,m=e.selector,m=void 0===m?"":m,b=e.config,b=void 0===b?{}:b,w=e.content,x=e.html,e=e.plugins,e=void 0===e?[]:e,E=((p=Ax(d={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var t of P.pathRefs(d))vc.transform(t,e);for(var n of P.pointRefs(d))wc.transform(n,e);for(var r of P.rangeRefs(d))Dc.transform(r,e);var o,i,a=new Set,u=[],s=e=>{var t;e&&(t=e.join(","),a.has(t)||(a.add(t),u.push(e)))},l=Dl.get(d)||[],c=Tl(e);for(o of l)s(M.transform(o,e));for(i of c)s(i);Dl.set(d,u),j.transform(d,e),d.operations.push(e),P.normalize(d),"set_selection"===e.type&&(d.marks=null),Sl.get(d)||(Sl.set(d,!0),Promise.resolve().then(()=>{Sl.set(d,!1),d.onChange(),d.operations=[]}))},addMark:(e,t)=>{var n=d["selection"];n&&(z.isExpanded(n)?j.setNodes(d,{[e]:t},{match:H.isText,split:!0}):(n=Fl(Fl({},P.marks(d)||{}),{},{[e]:t}),d.marks=n,Sl.get(d)||d.onChange()))},deleteBackward:e=>{var t=d["selection"];t&&z.isCollapsed(t)&&j.delete(d,{unit:e,reverse:!0})},deleteForward:e=>{var t=d["selection"];t&&z.isCollapsed(t)&&j.delete(d,{unit:e})},deleteFragment:e=>{var t=d["selection"];t&&z.isExpanded(t)&&j.delete(d,{reverse:"backward"===e})},getFragment:()=>{var e=d["selection"];return e?R.fragment(d,e):[]},insertBreak:()=>{j.splitNodes(d,{always:!0})},insertFragment:e=>{j.insertFragment(d,e)},insertNode:e=>{j.insertNodes(d,e)},insertText:e=>{var{selection:t,marks:n}=d;t&&(n?(t=Fl({text:e},n),j.insertNodes(d,t)):j.insertText(d,e),d.marks=null)},normalizeNode:e=>{var[t,n]=e;if(!H.isText(t))if(_.isElement(t)&&0===t.children.length)j.insertNodes(d,{text:""},{at:n.concat(0),voids:!0});else for(var r=!P.isEditor(t)&&_.isElement(t)&&(d.isInline(t)||0===t.children.length||H.isText(t.children[0])||d.isInline(t.children[0])),o=0,i=0;i<t.children.length;i++,o++){var a,u,s=R.get(d,n);H.isText(s)||(a=t.children[i],s=s.children[o-1],u=i===t.children.length-1,(H.isText(a)||_.isElement(a)&&d.isInline(a))!==r?(j.removeNodes(d,{at:n.concat(o),voids:!0}),o--):_.isElement(a)?d.isInline(a)&&(null!=s&&H.isText(s)?u&&(j.insertNodes(d,{text:""},{at:n.concat(o+1),voids:!0}),o++):(j.insertNodes(d,{text:""},{at:n.concat(o),voids:!0}),o++)):null!=s&&H.isText(s)&&(H.equals(a,s,{loose:!0})?(j.mergeNodes(d,{at:n.concat(o),voids:!0}),o--):""===s.text?(j.removeNodes(d,{at:n.concat(o-1),voids:!0}),o--):""===a.text&&(j.removeNodes(d,{at:n.concat(o),voids:!0}),o--)))}},removeMark:e=>{var t=d["selection"];t&&(z.isExpanded(t)?j.unsetNodes(d,e,{match:H.isText,split:!0}):(delete(t=Fl({},P.marks(d)||{}))[e],d.marks=t,Sl.get(d)||d.onChange()))}})).id="wangEditor-"+uw++,p.isDestroyed=!1,p.isFullScreen=!1,p.focus=function(e){I.toDOMNode(p,p).focus({preventScroll:!0}),L2.set(p,!0),e?(e=P.end(p,[]),j.select(p,e)):(e=R2.get(p))?j.select(p,e):j.select(p,P.start(p,[]))},p.isFocused=function(){return!!L2.get(p)},p.blur=function(){I.toDOMNode(p,p).blur(),j.deselect(p),L2.set(p,!1)},p.updateView=function(){I.getTextarea(p).changeViewState();var e=I.getToolbar(p),e=(e&&e.changeToolbarState(),I.getHoverbar(p));e&&e.changeHoverbarState()},p.destroy=function(){var e;p.isDestroyed||((e=I.getTextarea(p)).destroy(),v2.delete(p),y2.delete(e),(e=I.getToolbar(p))&&(e.destroy(),b2.delete(p),m2.delete(e)),(e=I.getHoverbar(p))&&(e.destroy(),x2.delete(p),w2.delete(e)),p.isDestroyed=!0,p.emit("destroyed"))},p.scrollToElem=function(e){var t,n,r,o,i;p.getConfig().scroll?0!==(o=N("#"+e)).length&&(n=o[0],I.hasDOMNode(p,n)?(i=(r=I.getTextarea(p)).$textAreaContainer,r=r.$scroll,o=o.offset().top,i=i.offset().top,r[0].scrollBy({top:o-i,behavior:"smooth"})):(t="Element (found by id is '"+e+"') is not in editor DOM",t+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",console.error(t,n))):(t="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能",t+="\nYou has disabled editor scroll, please do this yourself",console.warn(t))},p.showProgressBar=function(e){e<1||I.getTextarea(p).changeProgress(e)},p.hidePanelOrModal=function(){var e=D2.get(p);null!=e&&e.forEach(function(e){return e.hide()})},p.enable=function(){p.getConfig().readOnly=!1,p.updateView()},p.disable=function(){p.getConfig().readOnly=!0,p.updateView()},p.isDisabled=function(){return p.getConfig().readOnly},p.toDOMNode=function(e){return I.toDOMNode(p,e)},p.fullScreen=function(){if(!p.isFullScreen){var e=null,t=I.getToolbar(p),t=(t&&(e=t.$box),I.getTextarea(p).$box.parent());if(e&&e.parent()[0]!==t[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");t.addClass("w-e-full-screen-container");e=t.css("z-index");t.attr("data-z-index",e.toString()),p.isFullScreen=!0,p.emit("fullScreen")}},p.unFullScreen=function(){var e;p.isFullScreen&&(e=I.getTextarea(p).$box.parent(),setTimeout(function(){e.removeClass("w-e-full-screen-container"),p.isFullScreen=!1,p.emit("unFullScreen")},200))},p.getEditableContainer=function(){return I.getTextarea(p).$textAreaContainer[0]},(h=p).getAllMenuKeys=function(){var e,t=[];for(e in lw)t.push(e);return t},h.getConfig=function(){var e=C2.get(h);if(null==e)throw new Error("Can not get editor config");return e},h.getMenuConfig=function(e){var t=h.getConfig().MENU_CONF;return(void 0===t?{}:t)[e]||{}},h.alert=function(e,t){void 0===t&&(t="info");var n=h.getConfig().customAlert;n&&n(e,t)},l=(C=t=h).onChange,c=C.insertText,A=C.apply,f=C.deleteBackward,C.insertText=function(e){C.getConfig().readOnly||c(e)},C.apply=function(e){var t,n,r,o,i,a,u,s,l=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var c=wb(P.levels(C,{at:e.path})),f=c.next();!f.done;f=c.next()){var d=xb(f.value,2),p=d[0],h=d[1],g=I.findKey(C,p);l.push([h,g])}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var v=wb(P.levels(C,{at:M.parent(e.path)})),y=v.next();!y.done;y=v.next()){var m=xb(y.value,2),p=m[0],h=m[1],g=I.findKey(C,p);l.push([h,g])}}catch(e){r={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}break;case"move_node":try{for(var b=wb(P.levels(C,{at:M.common(M.parent(e.path),M.parent(e.newPath))})),w=b.next();!w.done;w=b.next()){var x=xb(w.value,2);p=x[0],h=x[1],g=I.findKey(C,p),l.push([h,g])}}catch(e){i={error:e}}finally{try{w&&!w.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}}A(e);try{for(var E=wb(l),D=E.next();!D.done;D=E.next()){var S=xb(D.value,2);h=S[0],g=S[1],p=xb(P.node(C,h),1)[0],N2.set(p,g)}}catch(e){u={error:e}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}},C.deleteBackward=function(e){if("line"!==e)return f(e);t.selection&&z.isCollapsed(t.selection)&&(e=P.above(t,{match:function(e){return P.isBlock(t,e)},at:t.selection}))&&(e=xb(e,2)[1],e=P.range(t,e,t.selection.anchor),e=function(e,t){var n=P.range(e,z.end(t)),r=Array.from(P.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(N4(e,P.range(e,r[o]),n))return P.range(e,r[o],n);if(r.length<2)return P.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)N4(e,P.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return P.range(e,r[i],n)}(C,e),z.isCollapsed(e)||j.delete(t,{at:e}))},C.onChange=function(){var e=C.selection;null!=e&&R2.set(C,e),C.emit("change"),l()},C.handleTab=function(){C.insertText(" ")},C.getHtml=function(){var e=C.children;return(void 0===e?[]:e).map(function(e){return function t(e,n){if(_.isElement(e))return u=n,o=void 0===(o=(a=e).type)?"":o,s=void 0===(s=a.children)?[]:s,i=P.isVoid(u,a),l="",i||(l=s.map(function(e){return t(e,u)}).join("")),s=(mw[o]||bw)(a,l,u),c="",c="string"==typeof s?s:s.html||"",i||yw.forEach(function(e){return c=e(a,c)}),"string"!=typeof s&&(o=s.prefix,l=s.suffix,(i=void 0===o?"":o)&&(c=i+c),s=void 0===l?"":l)&&(c+=s),c;var r=e,o=n,i=r.text;if(null==i)throw new Error("Current node is not slate Text "+JSON.stringify(r));var a,u,o,s,i,l,c,f=(f=i).replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;");if((i=I.getParentsNodes(o,r).some(function(e){return"pre"===I.getNodeType(e)}))||(f=f.replace(/\r\n|\r|\n/g,"<br>")),""===(f=i?f.replace(/&nbsp;/g," "):f)){o=I.getParentNode(null,r);if(!o||0!==o.children.length)return f;f="<br>"}return yw.forEach(function(e){return f=e(r,f)}),f}(e,C)}).join("")},C.getText=function(){var e=C.children;return(void 0===e?[]:e).map(function(e){return R.string(e)}).join("\n")},C.getSelectionText=function(){var e=C.selection;return null==e?"":P.string(t,e)},C.getElemsByType=function(e,t){void 0===t&&(t=!1);var n,r,o=[],i=P.nodes(C,{at:[],universal:!0});try{for(var a=wb(i),u=a.next();!u.done;u=a.next()){var s,l=xb(u.value,1)[0];_.isElement(l)&&(t?0<=l.type.indexOf(e):l.type===e)&&(s=P4(I.findKey(C,l).id),o.push(bb(bb({},l),{id:s})))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},C.getElemsByTypePrefix=function(e){return C.getElemsByType(e,!0)},C.isEmpty=function(){var e=C.children,e=void 0===e?[]:e;if(!(1<e.length)){e=e[0];if(null==e)return!0;if(_.isElement(e)&&"paragraph"===e.type){e=e.children,e=void 0===e?[]:e;if(1<e.length)return!1;e=e[0];if(null==e)return!0;if(H.isText(e)&&""===e.text)return!0}}return!1},C.clear=function(){j.delete(C,{at:{anchor:P.start(C,[]),focus:P.end(C,[])}}),0===C.children.length&&j.insertNodes(C,[{type:"paragraph",children:[{text:""}]}])},C.getParentNode=function(e){return I.getParentNode(C,e)},C.dangerouslyInsertHtml=function(e,t){var n,r,o,u;void 0===t&&(t=!1),(e=void 0===e?"":e)&&((n=document.createElement("div")).innerHTML=e,0!==(e=(e=Array.from(n.childNodes)).filter(function(e){var t=e.nodeType,e=e.nodeName;return t===X2.TEXT_NODE||t===X2.ELEMENT_NODE&&!bx.has(e.toLowerCase())})).length)&&null!=(r=C.selection)&&(o=null,I.isSelectedEmptyParagraph(C)&&!t&&(o=[r.focus.path[0]]),n.setAttribute("hidden","true"),document.body.appendChild(n),u=0,e.forEach(function(e){var t=e.nodeType,n=e.nodeName,r=e.textContent,r=void 0===r?"":r;if(t!==X2.TEXT_NODE)if("BR"!==n){var o=e,i=!1;if(I4.includes(n.toLowerCase()))i=!0;else for(var a in M4)if(o.matches(a)){i=!0;break}i?(t=dx(N(o),C),Array.isArray(t)?t.forEach(function(e){return wx(C,e)}):wx(C,t),u++,I.isSelectedVoidNode(C)&&C.move(1)):(e=window.getComputedStyle(o).display,I.isSelectedEmptyParagraph(C)||e.indexOf("inline")<0&&C.insertBreak(),C.dangerouslyInsertHtml(o.innerHTML,!0))}else C.insertText("\n");else r&&r.trim()&&C.insertNode({text:r})}),u&&o&&I.isEmptyPath(C,o)&&j.removeNodes(C,{at:o}),n.remove())},C.setHtml=function(e){void 0===e&&(e="");var t=C.isDisabled(),n=C.isFocused(),r=JSON.stringify(C.selection),o=(C.enable(),C.focus(),C.clear(),hx(C,e));if(j.insertFragment(C,o),n||(C.deselect(),C.blur()),t&&(C.deselect(),C.disable()),C.isFocused())try{C.select(JSON.parse(r))}catch(e){C.select(P.start(C,[]))}},(s=u=C).select=function(e){j.select(s,e)},s.deselect=function(){var e=s.selection,t=I.findDocumentOrShadowRoot(s).getSelection();t&&0<t.rangeCount&&t.removeAllRanges(),e&&j.deselect(u)},s.move=function(e,t){void 0===t&&(t=!1),!e||e<0||j.move(u,{distance:e,unit:"character",reverse:t})},s.moveReverse=function(e){s.move(e,!0)},s.restoreSelection=function(){var e=R2.get(s);null!=e&&(s.focus(),j.select(s,e))},s.getSelectionPosition=function(){return Ux(s)},s.getNodePosition=function(e){return Wx(s,e)},s.isSelectedAll=function(){var e,t,n,r=s.selection;return null!=r&&(e=(r=xb(z.edges(r),2))[0],r=r[1],t=(n=xb(P.edges(s,[]),2))[0],n=n[1],!(!bc.equals(e,t)||!bc.equals(r,n)))},s.selectAll=function(){var e=P.start(s,[]),t=P.end(s,[]);j.select(s,{anchor:e,focus:t})},(g=s).on=function(e,t){var n,r=zx(g);r.on(e,t),"destroyed"===e&&$x(g,t),"destroyed"!==e&&(r.on("destroyed",n=function(){return r.off(e,t)}),$x(g,n))},g.once=function(e,t){zx(g).once(e,t)},g.off=function(e,t){zx(g).off(e,t)},g.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=zx(g);r.emit.apply(r,Eb([e],xb(t))),"destroyed"===e&&(e=g,(Hx.get(e)||new Set).forEach(function(e){return r.off("destroyed",e)}),e=g,Hx.set(e,new Set))},n=(o=g).insertText,r=o.insertNode,i=o.insertFragment,a=o.dangerouslyInsertHtml,o.insertText=function(e){var t;o.getConfig().maxLength?(t=I.getLeftLengthOfMaxLength(o))<=0||(t<e.length?n(e.slice(0,t)):n(e)):n(e)},o.insertNode=function(e){var t;o.getConfig().maxLength&&((t=I.getLeftLengthOfMaxLength(o))<=0||t<R.string(e).length)||r(e)},o.insertFragment=function(e){var t;o.getConfig().maxLength?1!==e.length?e.forEach(function(e){o.insertNode(e)}):(t=e[0],I.getLeftLengthOfMaxLength(o)<R.string(t).length||i(e)):i(e)},o.dangerouslyInsertHtml=function(e,t){var n,r;void 0===t&&(t=!1),!(e=void 0===e?"":e)||o.getConfig().maxLength&&((n=I.getLeftLengthOfMaxLength(o))<=0||((r=document.createElement("div")).innerHTML=e,n<Array.from(r.childNodes).reduce(function(e,t){var n=t.nodeType,r=t.nodeName;return!t||n!==X2.TEXT_NODE&&(n!==X2.ELEMENT_NODE||bx.has(r.toLowerCase()))?e:e+(t.textContent||"")},"").length))||a(e,t)},y=(v=o).apply,v.history={undos:[],redos:[]},v.redo=()=>{var t,e=v["history"],n=e["redos"];0<n.length&&(t=n[n.length-1],iy.withoutSaving(v,()=>{P.withoutNormalizing(v,()=>{for(var e of t)v.apply(e)})}),e.redos.pop(),e.undos.push(t))},v.undo=()=>{var t,e=v["history"],n=e["undos"];0<n.length&&(t=n[n.length-1],iy.withoutSaving(v,()=>{P.withoutNormalizing(v,()=>{var e;for(e of t.map(gc.inverse).reverse())v.apply(e)})}),e.redos.push(t),e.undos.pop())},v.apply=e=>{var{operations:t,history:n}=v,r=n["undos"],o=r[r.length-1],i=o&&o[o.length-1],a=!(!i||"set_selection"!==e.type||"set_selection"!==i.type),u=iy.isSaving(v),s=iy.isMerging(v);if(u=null==u?"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties:u){for(null==s&&(s=null!=o&&(0!==t.length||(u=i,"set_selection"===(t=e).type)||!(!u||"insert_text"!==t.type||"insert_text"!==u.type||t.offset!==u.offset+u.text.length||!M.equals(t.path,u.path))||!(!u||"remove_text"!==t.type||"remove_text"!==u.type||t.offset+t.text.length!==u.offset||!M.equals(t.path,u.path))||a)),o&&s?(a&&o.pop(),o.push(e)):r.push([e]);100<r.length;)r.shift();"set_selection"!==e.type&&(n.redos=[])}y(e)},v);if(m&&px(E,"data-w-e-textarea",m))throw new Error("Repeated create editor by selector '"+m+"'");void 0===(b=b)&&(b={}),B=Qp(sw),D={},k=b.MENU_CONF,S=void 0===k?{}:k,Ad(B,function(e,t){D[t]=bb(bb({},e),S[t]||{})}),delete b.MENU_CONF;var D,S,O,k=bb({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:D,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},b),B=(C2.set(E,k),k.hoverbarKeys),b=void 0===B?{}:B,F=(e.forEach(function(e){E=e(E)}),null!=x&&(E.children=hx(E,x)),w&&w.length&&(E.children=w),0===E.children.length&&(E.children=[{type:"paragraph",children:[{text:""}]}]),I.normalizeContent(E),m?(O=new BE(m),v2.set(E,O),y2.set(O,E),O.changeViewState(),B=void _4(function(){var e=O.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}),0<Object.keys(b).length&&(B=new f3,w2.set(B,E),x2.set(E,B)),E.on("change",function(){E.hidePanelOrModal()}),E.on("scroll",function(){E.hidePanelOrModal()})):E.children.forEach(function(e,t){return function n(r,e,t,o){B2.set(r,e),F2.set(r,t),_.isElement(r)&&((void 0===(e=r.children)?[]:e).forEach(function(e,t){return n(e,t,r,o)}),P.isVoid(o,r))&&(t=xb(R.texts(r),1),e=xb(t[0],1)[0],B2.set(e,0),F2.set(e,r))}(e,t,E,E)}),k.onCreated),T=k.onDestroyed;return F&&E.on("created",function(){return F(E)}),T&&E.on("destroyed",function(){return T(E)}),_4(function(){return E.emit("created")}),E}var r1=Dm("splice"),h3=m.TypeError,g3=Math.max,v3=Math.min,y3=(T1({target:"Array",proto:!0,forced:!r1},{splice:function(e,t){var n,r,o,i,a,u,s=Cg(this),l=Av(s),c=O1(e,l),e=arguments.length;if(0===e?n=r=0:r=1===e?(n=0,l-c):(n=e-2,v3(g3(f1(t),0),l-c)),9007199254740991<l+n-r)throw h3("Maximum allowed length exceeded");for(o=Bv(s,r),i=0;i<r;i++)(a=c+i)in s&&my(o,i,s[a]);if(n<(o.length=r)){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;l-r+n<i;i--)delete s[i-1]}else if(r<n)for(i=l-r;c<i;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}}),x3.prototype.getMenus=function(){return this.menus},x3.prototype.getConfig=function(){return this.config},x3.prototype.registerItems=function(){var n=this,r="",o=this.$toolbar,e=this.config,t=e.toolbarKeys,i=e.insertKeys,a=void 0===i?{index:0,keys:[]}:i,i=e.excludeKeys,u=void 0===i?[]:i,s=Qp(void 0===t?[]:t),e=(0<a.keys.length&&("string"==typeof a.keys&&(a.keys=[a.keys]),a.keys.forEach(function(e,t){s.splice(a.index+t,0,e)})),s.filter(function(e){if("string"==typeof e){if(u.includes(e))return!1}else if(u.includes(e.key))return!1;return!0})),l=e.length;e.forEach(function(e,t){if("|"===e)return 0===t||t+1===l||"|"===r?void 0:(t=PE(),o.append(t),void(r=e));r="string"==typeof e?(n.registerSingleItem(e,n),e):(n.registerGroup(e),"group")})},x3.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=new n3(e),e=e.menuKeys,e=void 0===e?[]:e,o=this.config.excludeKeys,i=void 0===o?[]:o;e.forEach(function(e){i.includes(e)||t.registerSingleItem(e,r)}),n.append(r.$elem)},x3.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof n3,o=this.menus,i=o[e];if(null==i){var a=lw[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");a=l3(e,i,r);this.toolbarItems.push(a),E2.set(a,n),r?t.appendBarItem(a):t.$toolbar.append(a.$elem)},x3.prototype.getEditorInstance=function(){var e=m2.get(this);if(null==e)throw new Error("Can not get editor instance");return e},x3.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},x3),u=qv.EXISTS,l=xv.f,g=Function.prototype,m3=b(g.toString),b3=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,w3=b(b3.exec);function x3(e,t){var n=this,t=(this.$toolbar=N('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zp(function(){n.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t,N(e));if(0===t.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=t;e=this.$toolbar;e.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),t.append(e),_4(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}function E3(e){var n,r,t=e.server,t=void 0===t?"":t,o=e.fieldName,o=void 0===o?"":o,i=e.maxFileSize,i=void 0===i?10485760:i,a=e.maxNumberOfFiles,a=void 0===a?100:a,u=e.meta,u=void 0===u?{}:u,s=e.metaWithUrl,s=void 0!==s&&s,l=e.headers,l=void 0===l?{}:l,c=e.withCredentials,c=void 0!==c&&c,f=e.timeout,f=void 0===f?1e4:f,d=e.onBeforeUpload,d=void 0===d?function(e){return e}:d,p=e.onSuccess,h=void 0===p?function(e,t){}:p,p=e.onError,g=void 0===p?function(e,t,n){console.error(e.name+" upload error",t,n)}:p,p=e.onProgress,v=void 0===p?function(e){}:p;if(!t)throw new Error("Cannot get upload server address\n没有配置上传地址");if(o)return e=t,s&&(p=u,t=xb(e.split("#"),2),s=t[0],t=t[1],n=[],Ad(p,function(e,t){n.push(t+"="+e)}),p=n.join("&"),s=0<s.indexOf("?")?s+"&"+p:s+"?"+p,e=t?s+"#"+t:s),(r=new c0({onBeforeUpload:d,restrictions:{maxFileSize:i,maxNumberOfFiles:a},meta:u}).use(wg,{endpoint:e,headers:l,formData:!0,fieldName:o,bundle:!0,withCredentials:c,timeout:f})).on("upload-success",function(e,t){t=t.body,t=void 0===t?{}:t;try{h(e,t)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}r.removeFile(e.id)}),r.on("progress",function(e){e<1||v(e)}),r.on("upload-error",function(e,t,n){try{g(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}r.removeFile(e.id)}),r.on("restriction-failed",function(e,t){try{g(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}r.removeFile(e.id)}),r;throw new Error("Cannot get fieldName\n没有配置 fieldName")}function D3(e){return(D3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S3(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?Object(arguments[e]):{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&t.push.apply(t,Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),t.forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function C3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O3(e,t,n){t&&A3(e.prototype,t),n&&A3(e,n)}function k3(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B3(e,t){if(t&&("object"===D3(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k3(e)}function F3(e){return(F3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T3(e,t){return(T3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _3(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T3(e,t)}Jg&&!u&&l(g,"name",{configurable:!0,get:function(){try{return w3(b3,m3(this))[1]}catch(e){return""}}});var P3={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},j3=(O3(L3,[{key:"init",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||P3,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(e){return new L3(this.logger,S3({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),new L3),N3=(O3(I3,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),I3);function I3(){C3(this,I3),this.observers={}}function L3(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};C3(this,L3),this.init(e,t)}function R3(){var n,r,e=new Promise(function(e,t){n=e,r=t});return e.resolve=n,e.reject=r,e}function M3(e){return null==e?"":""+e}function z3(e,t,n){function r(e){return e&&-1<e.indexOf("###")?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");1<i.length;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function H3(e,t,n){e=z3(e,t,Object);e.obj[e.k]=n}function $3(e,t){e=z3(e,t),t=e.obj,e=e.k;if(t)return t[e]}function V3(e,t,n){e=$3(e,n);return void 0!==e?e:$3(t,n)}function U3(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var W3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function G3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return W3[e]}):e}var q3="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&-1<window.navigator.userAgent.indexOf("MSIE");_3(Q3,N3),O3(Q3,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){e=this.options.ns.indexOf(e);-1<e&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=(void 0!==r.keySeparator?r:this.options).keySeparator,r=(void 0!==r.ignoreJSONStructure?r:this.options).ignoreJSONStructure,i=[e,t],i=(n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),-1<e.indexOf(".")&&(i=e.split(".")),$3(this.data,i));return i||!r||"string"!=typeof n?i:function e(t,n,r){var o=2<arguments.length&&void 0!==r?r:".";if(t){if(t[n])return t[n];for(var i=n.split(o),a=t,u=0;u<i.length;++u){if(!a)return;if("string"==typeof a[i[u]]&&u+1<i.length)return;if(void 0===a[i[u]]){for(var s,l=2,c=i.slice(u,u+l).join(o),f=a[c];void 0===f&&i.length>u+l;)l++,f=a[c=i.slice(u,u+l).join(o)];return void 0===f?void 0:"string"==typeof f?f:c&&"string"==typeof f[c]?f[c]:(s=i.slice(u+l).join(o))?e(f,s,o):void 0}a=a[i[u]]}return a}}(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator,a=(void 0===i&&(i="."),[e,t]);n&&(a=a.concat(i?n.split(i):n)),-1<e.indexOf(".")&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),H3(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t],u=(-1<e.indexOf(".")&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),$3(this.data,a)||{});r?function e(t,n,r){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o])}(u,n,o):u=S3({},u,n),H3(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t=t||this.options.defaultNS,"v1"===this.options.compatibilityAPI?S3({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]);var K3=Q3,Y3={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}},X3={},Z3=(_3(J3,N3),O3(J3,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){return null!=e&&(e=this.resolve(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}))&&void 0!==e.res}},{key:"extractFromKey",value:function(e,t){var n=(void 0!==t.nsSeparator?t:this.options).nsSeparator,r=(void 0!==t.keySeparator?t:this.options).keySeparator,t=t.ns||this.options.defaultNS;if((n=void 0===n?":":n)&&-1<e.indexOf(n)){var o=e.match(this.interpolator.nestingRegexp);if(o&&0<o.length)return{key:e,namespaces:t};o=e.split(n);(n!==r||n===r&&-1<this.options.ns.indexOf(o[0]))&&(t=o.shift()),e=o.join(r)}return{key:e,namespaces:t="string"==typeof t?[t]:t}}},{key:"translate",value:function(e,r,t){var o=this;if(r=(r="object"!==D3(r)&&this.options.overloadTranslationOptionHandler?this.options.overloadTranslationOptionHandler(arguments):r)||{},null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=(void 0!==r.keySeparator?r:this.options).keySeparator,i=this.extractFromKey(e[e.length-1],r),a=i.key,u=i.namespaces,s=u[u.length-1],i=r.lng||this.language,l=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(i&&"cimode"===i.toLowerCase())return l?(l=r.nsSeparator||this.options.nsSeparator,s+l+a):a;var l=this.resolve(e,r),c=l&&l.res,f=l&&l.usedKey||a,d=l&&l.exactUsedKey||a,p=Object.prototype.toString.apply(c),h=(void 0!==r.joinArrays?r:this.options).joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&c&&("string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!=typeof h||"[object Array]"!==p)){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,c,S3({},r,{ns:u})):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(n){var v,y,m="[object Array]"===p,b=m?[]:{},w=m?d:f;for(v in c)Object.prototype.hasOwnProperty.call(c,v)&&(y="".concat(w).concat(n).concat(v),b[v]=this.translate(y,S3({},r,{joinArrays:!1,ns:u})),b[v]===y)&&(b[v]=c[v]);c=b}}else if(g&&"string"==typeof h&&"[object Array]"===p)c=(c=c.join(h))&&this.extendTranslation(c,e,r,t);else{var m=!1,d=!1,f=void 0!==r.count&&"string"!=typeof r.count,g=J3.hasDefaultValue(r),p=f?this.pluralResolver.getSuffix(i,r.count):"",x=r["defaultValue".concat(p)]||r.defaultValue;!this.isValidLookup(c)&&g&&(m=!0,c=x),this.isValidLookup(c)||(d=!0,c=a);var E=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&d?void 0:c,D=g&&x!==c&&this.options.updateMissing;if(d||m||D){this.logger.log(D?"updateKey":"missingKey",i,s,a,D?x:c),n&&(h=this.resolve(a,S3({},r,{keySeparator:!1})))&&h.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");var S=[],C=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&C&&C[0])for(var A=0;A<C.length;A++)S.push(C[A]);else"all"===this.options.saveMissingTo?S=this.languageUtils.toResolveHierarchy(r.lng||this.language):S.push(r.lng||this.language);var O=function(e,t,n){o.options.missingKeyHandler?o.options.missingKeyHandler(e,s,t,D?n:E,D,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,s,t,D?n:E,D,r),o.emit("missingKey",e,s,t,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&f?S.forEach(function(t){o.pluralResolver.getSuffixes(t).forEach(function(e){O([t],a+e,r["defaultValue".concat(e)]||x)})}):O(S,a,x))}c=this.extendTranslation(c,e,r,l,t),d&&c===a&&this.options.appendNamespaceToMissingKey&&(c="".concat(s,":").concat(a)),(d||m)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(c))}return c}},{key:"extendTranslation",value:function(e,r,o,t,i){var n,a=this,u=(this.i18nFormat&&this.i18nFormat.parse?e=this.i18nFormat.parse(e,o,t.usedLng,t.usedNS,t.usedKey,{resolved:t}):o.skipInterpolation||(o.interpolation&&this.interpolator.init(S3({},o,{interpolation:S3({},this.options.interpolation,o.interpolation)})),(u=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables)&&(s=(s=e.match(this.interpolator.nestingRegexp))&&s.length),n=o.replace&&"string"!=typeof o.replace?o.replace:o,this.options.interpolation.defaultVariables&&(n=S3({},this.options.interpolation.defaultVariables,n)),e=this.interpolator.interpolate(e,n,o.lng||this.language,o),u&&s<((n=e.match(this.interpolator.nestingRegexp))&&n.length)&&(o.nest=!1),!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i&&i[0]===t[0]&&!o.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(t[0]," in key: ").concat(r[0])),null):a.translate.apply(a,t.concat([r]))},o)),o.interpolation&&this.interpolator.reset()),o.postProcess||this.options.postProcess),s="string"==typeof u?[u]:u;return e=null!=e&&s&&s.length&&!1!==o.applyPostProcessor?Y3.handle(s,e,r,this.options&&this.options.postProcessPassResolved?S3({i18nResolved:t},o):o,this):e}},{key:"resolve",value:function(e){var l,n,c,f,r,d=this,p=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(e="string"==typeof e?[e]:e).forEach(function(e){var a,u,s,t;d.isValidLookup(l)||(e=d.extractFromKey(e,p),a=e.key,n=a,e=e.namespaces,d.options.fallbackNS&&(e=e.concat(d.options.fallbackNS)),u=void 0!==p.count&&"string"!=typeof p.count,s=void 0!==p.context&&("string"==typeof p.context||"number"==typeof p.context)&&""!==p.context,t=p.lngs||d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng),e.forEach(function(i){d.isValidLookup(l)||(r=i,!X3["".concat(t[0],"-").concat(i)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(r)&&(X3["".concat(t[0],"-").concat(i)]=!0,d.logger.warn('key "'.concat(n,'" for languages "').concat(t.join(", "),'" won\'t get resolved as namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),t.forEach(function(e){if(!d.isValidLookup(l)){f=e;var t,n,r=a,o=[r];for(d.i18nFormat&&d.i18nFormat.addLookupKeys?d.i18nFormat.addLookupKeys(o,a,e,i,p):(u&&(t=d.pluralResolver.getSuffix(e,p.count)),u&&s&&o.push(r+t),s&&o.push(r+="".concat(d.options.contextSeparator).concat(p.context)),u&&o.push(r+=t));n=o.pop();)d.isValidLookup(l)||(c=n,l=d.getResource(e,i,n,p))}}))}))}),{res:l,usedKey:n,exactUsedKey:c,usedLng:f,usedNS:r}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return(this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat:this.resourceStore).getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t,n="defaultValue";for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,n.length)&&void 0!==e[t])return!0;return!1}}]),J3);function J3(e){var t,n,r,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return C3(this,J3),t=B3(this,F3(J3).call(this)),q3&&N3.call(k3(t)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=e,o=k3(t),n.forEach(function(e){r[e]&&(o[e]=r[e])}),t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=j3.create("translator"),t}function Q3(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return C3(this,Q3),t=B3(this,F3(Q3).call(this)),q3&&N3.call(k3(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}function e6(e){return e.charAt(0).toUpperCase()+e.slice(1)}O3(o6,[{key:"getScriptPartFromCode",value:function(e){return!e||e.indexOf("-")<0||2===(e=e.split("-")).length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){return!e||e.indexOf("-")<0?e:(e=e.split("-"),this.formatLanguageCode(e[0]))}},{key:"formatLanguageCode",value:function(e){var t,n;return"string"==typeof e&&-1<e.indexOf("-")?(t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-"),this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),-1<t.indexOf(n[1].toLowerCase())&&(n[1]=e6(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),-1<t.indexOf(n[1].toLowerCase())&&(n[1]=e6(n[1].toLowerCase())),-1<t.indexOf(n[2].toLowerCase()))&&(n[2]=e6(n[2].toLowerCase())),n.join("-")):this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return"languageOnly"!==this.options.load&&!this.options.nonExplicitSupportedLngs||(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||-1<this.supportedLngs.indexOf(e)}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(e){n||(e=r.formatLanguageCode(e),r.options.supportedLngs&&!r.isSupportedCode(e))||(n=e)}),!n&&this.options.supportedLngs&&e.forEach(function(e){if(!n){var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find(function(e){if(0===e.indexOf(t))return e})}}),n=n||this.getFallbackCodes(this.options.fallbackLng)[0]):null}},{key:"getFallbackCodes",value:function(e,t){return e?("string"==typeof(e="function"==typeof e?e(t):e)&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e)?e:t?e[t]||e[this.getScriptPartFromCode(t)]||e[this.formatLanguageCode(t)]||e[this.getLanguagePartFromCode(t)]||e.default||[]:e.default||[]):[]}},{key:"toResolveHierarchy",value:function(e,t){function n(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))}var r=this,t=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return"string"==typeof e&&-1<e.indexOf("-")?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),t.forEach(function(e){o.indexOf(e)<0&&n(r.formatLanguageCode(e))}),o}}]);var t6=o6,n6=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],r6={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||10<e)&&e%10==0?2:3)}};function o6(e){C3(this,o6),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j3.create("languageUtils")}O3(c6,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){e=this.getRule(e);return e&&1<e.numbers.length}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(t){var n=this,e=this.getRule(t);return e?e.numbers.map(function(e){return n.getSuffix(t,e)}):[]}},{key:"getSuffix",value:function(e,t){var n,r,o=this,i=this.getRule(e);return i?(t=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),n=i.numbers[t],this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===n?n="plural":1===n&&(n="")),r=function(){return o.options.prepend&&n.toString()?o.options.prepend+n.toString():n.toString()},"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?"_plural_".concat(n.toString()):r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?r():this.options.prepend&&t.toString()?this.options.prepend+t.toString():t.toString()):(this.logger.warn("no plural rule found for: ".concat(e)),"")}}]);var i6=c6,a6=(O3(l6,[{key:"init",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(e.interpolation||(e.interpolation={escapeValue:!0}),e.interpolation);this.escape=void 0!==e.escape?e.escape:G3,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?U3(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?U3(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator||e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=!this.unescapePrefix&&e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?U3(e.nestingPrefix):e.nestingPrefixEscaped||U3("$t("),this.nestingSuffix=e.nestingSuffix?U3(e.nestingSuffix):e.nestingSuffixEscaped||U3(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator||e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces||1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix),e=(this.regexp=new RegExp(e,"g"),"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),e=(this.regexpUnescape=new RegExp(e,"g"),"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix));this.nestingRegexp=new RegExp(e,"g")}},{key:"interpolate",value:function(r,o,i,a){var u,s,l,c=this,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function t(e){return e.replace(/\$/g,"$$$$")}this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t},{regex:this.regexp,safeValue:function(e){return c.escapeValue?t(c.escape(e)):t(e)}}].forEach(function(e){for(l=0;u=e.regex.exec(r);){if(void 0===(t=u[1].trim(),n=void 0,s=t.indexOf(c.formatSeparator)<0?(n=V3(o,f,t),c.alwaysFormat?c.format(n,void 0,i,S3({},a,o,{interpolationkey:t})):n):(t=(n=t.split(c.formatSeparator)).shift().trim(),n=n.join(c.formatSeparator).trim(),c.format(V3(o,f,t),n,i,S3({},a,o,{interpolationkey:t})))))if("function"==typeof d){n=d(r,u,a);s="string"==typeof n?n:""}else{if(p){s=u[0];continue}c.logger.warn("missed to pass in variable ".concat(u[1]," for interpolating ").concat(r)),s=""}else"string"==typeof s||c.useRawValueToEscape||(s=M3(s));t=e.safeValue(s);if(r=r.replace(u[0],t),p?(e.regex.lastIndex+=t.length,e.regex.lastIndex-=u[0].length):e.regex.lastIndex=0,++l>=c.maxReplaces)break}var t,n}),r}},{key:"nest",value:function(e,t){var n,r=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=S3({},o);function a(e,t){var n=this.nestingOptionsSeparator;if(!(e.indexOf(n)<0)){var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,i)).replace(/'/g,'"');try{i=JSON.parse(o),t&&(i=S3({},t,i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}delete i.defaultValue}return e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var u,s=[],l=!1;if(-1===n[0].indexOf(this.formatSeparator)||/{.*}/.test(n[1])||(u=n[1].split(this.formatSeparator).map(function(e){return e.trim()}),n[1]=u.shift(),s=u,l=!0),(u=t(a.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof u)return u;(u="string"!=typeof u?M3(u):u)||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),u=""),l&&(u=s.reduce(function(e,t){return r.format(e,t,o.lng,S3({},o,{interpolationkey:n[1].trim()}))},u.trim())),e=e.replace(n[0],u),this.regexp.lastIndex=0}return e}}]),l6),u6=(_3(s6,N3),O3(s6,[{key:"queueLoad",value:function(e,t,o,n){var i=this,a=[],u=[],s=[],l=[];return e.forEach(function(n){var r=!0;t.forEach(function(e){var t="".concat(n,"|").concat(e);!o.reload&&i.store.hasResourceBundle(n,e)?i.state[t]=2:i.state[t]<0||(1===i.state[t]?u.indexOf(t)<0&&u.push(t):(i.state[t]=1,r=!1,u.indexOf(t)<0&&u.push(t),a.indexOf(t)<0&&a.push(t),l.indexOf(e)<0&&l.push(e)))}),r||s.push(n)}),(a.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:n}),{toLoad:a,pending:u,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(u,s,e){var t=u.split("|"),l=t[0],c=t[1],f=(s&&this.emit("failedLoading",l,c,s),e&&this.store.addResourceBundle(l,c,e),this.state[u]=s?-1:2,{});this.queue.forEach(function(e){t=e.loaded,n=c,t=z3(t,[l],Object),r=t.obj,t=t.k,r[t]=r[t]||[],r[t].push(n);for(var t,n,r,o=e.pending,i=u,a=o.indexOf(i);-1!==a;)o.splice(a,1),a=o.indexOf(i);s&&e.errors.push(s),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){f[t]||(f[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){f[t].indexOf(e)<0&&f[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(n,r,o){var i=this,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,u=4<arguments.length&&void 0!==arguments[4]?arguments[4]:350,s=5<arguments.length?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(e,t){e&&t&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(e,t)}):s(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=3<arguments.length?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e));e=this.queueLoad(e,t="string"==typeof t?[t]:t,r,o);if(!e.toLoad.length)return e.pending.length||o(),null;e.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(n){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=n.split("|"),i=e[0],a=e[1];this.read(i,a,"read",void 0,void 0,function(e,t){e&&r.logger.warn("".concat(o,"loading namespace ").concat(a," for language ").concat(i," failed"),e),!e&&t&&r.logger.log("".concat(o,"loaded namespace ").concat(a," for language ").concat(i),t),r.loaded(n,e,t)})}},{key:"saveMissing",value:function(e,t,n,r,o){var i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,S3({},i,{isUpdate:o})),e)&&e[0]&&this.store.addResource(e[0],t,n,r)}}]),s6);function s6(e,t,n){var r,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return C3(this,s6),r=B3(this,F3(s6).call(this)),q3&&N3.call(k3(r)),r.backend=e,r.store=t,r.services=n,r.languageUtils=n.languageUtils,r.options=o,r.logger=j3.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(n,o.backend,o),r}function l6(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};C3(this,l6),this.logger=j3.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}function c6(e){var n,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};C3(this,c6),this.languageUtils=e,this.options=t,this.logger=j3.create("pluralResolver"),this.rules=(n={},n6.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:r6[t.fc]}})}),n)}function f6(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function d6(){}_3(h6,N3),O3(h6,[{key:"init",value:function(){var e,o=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}"function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=S3({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t,n={};return"object"===D3(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"!==D3(e[2])&&"object"!==D3(e[3])||(t=e[3]||e[2],Object.keys(t).forEach(function(e){n[e]=t[e]})),n},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,f6(t)),this.format=this.options.interpolation.format,n=n||d6,this.options.isClone||(this.modules.logger?j3.init(r(this.modules.logger),this.options):j3.init(null,this.options),t=new t6(this.options),this.store=new K3(this.options.resources,this.options),(e=this.services).logger=j3,e.resourceStore=this.store,e.languageUtils=t,e.pluralResolver=new i6(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e.interpolator=new a6(this.options),e.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},e.backendConnector=new u6(r(this.modules.backend),e.resourceStore,e,this.options),e.backendConnector.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),this.modules.languageDetector&&(e.languageDetector=r(this.modules.languageDetector),e.languageDetector.init(e,this.options.detection,this.options)),this.modules.i18nFormat&&(e.i18nFormat=r(this.modules.i18nFormat),e.i18nFormat.init)&&e.i18nFormat.init(this),this.translator=new Z3(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),this.modules.external.forEach(function(e){e.init&&e.init(o)})),!this.options.fallbackLng||this.services.languageDetector||this.options.lng||0<(t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng)).length&&"dev"!==t[0]&&(this.options.lng=t[0]),this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments)}});function i(){function e(e,t){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),a.resolve(t),n(e,t)}if(o.languages&&"v1"!==o.options.compatibilityAPI&&!o.isInitialized)return e(null,o.t.bind(o));o.changeLanguage(o.options.lng,e)}["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments),o}});var a=R3();return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),a}},{key:"loadResources",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:d6,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],e=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};r?e(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e),this.options.preload&&this.options.preload.forEach(e),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=R3();return e=e||this.languages,t=t||this.options.ns,n=n||d6,this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(e.type)return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Y3.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this;throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()")}},{key:"changeLanguage",value:function(t,r){function e(e){var n="string"==typeof(e=t||e||!o.services.languageDetector?e:[])?e:o.services.languageUtils.getBestMatchFromCodes(e);n&&(o.language||(o.language=n,o.languages=o.services.languageUtils.toResolveHierarchy(n)),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector)&&o.services.languageDetector.cacheUserLanguage(n),o.loadResources(n,function(e){var t;e=e,(t=n)?(o.language=t,o.languages=o.services.languageUtils.toResolveHierarchy(t),o.translator.changeLanguage(t),o.isLanguageChangingTo=void 0,o.emit("languageChanged",t),o.logger.log("languageChanged",t)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(e,function(){return o.t.apply(o,arguments)})})}var o=this,i=(this.isLanguageChangingTo=t,R3());this.emit("languageChanging",t);return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(e):e(t):e(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,a){function u(e,t){var n;if("object"!==D3(t)){for(var r=arguments.length,o=new Array(2<r?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n=s.options.overloadTranslationOptionHandler([e,t].concat(o))}else n=S3({},t);return n.lng=n.lng||u.lng,n.lngs=n.lngs||u.lngs,n.ns=n.ns||u.ns,t=s.options.keySeparator||".",t=a?"".concat(a).concat(t).concat(e):e,s.t(t,n)}var s=this;return"string"==typeof e?u.lng=e:u.lngs=e,u.ns=t,u.keyPrefix=a,u}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;function a(e,t){return-1===(e=n.services.backendConnector.state["".concat(e,"|").concat(t)])||2===e}if(t.precheck){t=t.precheck(this,a);if(void 0!==t)return t}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=R3();return this.options.ns?((e="string"==typeof e?[e]:e).forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=R3(),r=this.options.preload||[],e=(e="string"==typeof e?[e]:e).filter(function(e){return r.indexOf(e)<0});return e.length?(this.options.preload=r.concat(e),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language))||0<=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?"rtl":"ltr"}},{key:"createInstance",value:function(){return new h6(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},1<arguments.length?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:d6,e=S3({},this.options,e,{isClone:!0}),o=new h6(e);return["store","services","language"].forEach(function(e){o[e]=t[e]}),o.services=S3({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Z3(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(e,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]);var p6=new h6;function h6(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;if(C3(this,h6),e=B3(this,F3(h6).call(this)),q3&&N3.call(k3(e)),e.options=f6(t),e.services={},e.logger=j3,e.modules={external:[]},n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),B3(e,k3(e));setTimeout(function(){e.init(t,n)},0)}return e}function g6(e,t){p6.addResourceBundle(e,"translation",t,!0,!0)}function v6(e){p6.changeLanguage(e)}p6.init({lng:"zh-CN",resources:{}});var w=p6.t.bind(p6);g6("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),g6("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});function y6(){}function m6(e){if(!Ur(e))return!1;try{return A6(y6,C6,e),!0}catch(e){return!1}}function b6(e,t){return new(void 0===(n=S6(e=e)&&(n=e.constructor,F6(n)&&(n===_6||S6(n.prototype))||Wr(n)&&null===(n=n[T6]))?void 0:n)?_6:n)(0===t?0:t);var n}function w6(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=Sr(e),u=$r(a),s=ja(t,n),l=si(u),c=0,t=r||b6,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:P6(f,o)}else switch(d){case 4:return!1;case 7:P6(f,o)}return y?-1:g||v?v:f}}function x6(t){if(t&&t.forEach!==N6)try{Fo(t,"forEach",N6)}catch(e){t.forEach=N6}}n||Qo(Object.prototype,"toString",n?{}.toString:function(){return"[object "+Ti(this)+"]"},{unsafe:!0});var E6,D6,S6=Array.isArray||function(e){return"Array"==mr(e)},C6=[],A6=xr("Reflect","construct"),O6=/^\s*(?:class|function)\b/,k6=Lr(O6.exec),B6=!O6.exec(y6),F6=!A6||yr(function(){var e;return m6(m6.call)||!m6(Object)||!m6(function(){e=!0})||e})?function(e){if(!Ur(e))return!1;switch(Ti(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return B6||!!k6(O6,Go(e))}:m6,T6=Ar("species"),_6=Br.Array,P6=Lr([].push),j6=[w6(0),w6(1),w6(2),w6(3),w6(4),w6(5),w6(6),w6(7)][0],N6=(E6=[].forEach)&&yr(function(){E6.call(null,function(){throw 1},1)})?[].forEach:function(e){return j6(this,e,1<arguments.length?arguments[1]:void 0)};for(D6 in xu)xu[D6]&&x6(Br[D6]&&Br[D6].prototype);x6(a),g6("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),g6("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});v={type:"paragraph",renderElem:function(e,t,n){return pp("p",null,t)}},o1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function I6(e){var t={exports:{}};return e(t,t.exports),t.exports}function L6(e){return e&&e.Math==Math&&e}function R6(e){try{return!!e()}catch(e){return!0}}function M6(e){return i5(o5(e),8,-1)}function z6(e){if(null==e)throw l5("Can't call method on "+e);return e}function H6(e){return s5(z6(e))}function $6(e,t){return arguments.length<2?(n=Y6[e],c5(n)?n:void 0):Y6[e]&&Y6[e][t];var n}function V6(e,t){return null==(e=e[t])?void 0:x5(e)}function U6(t,n){try{D5(Y6,t,{value:n,configurable:!0,writable:!0})}catch(e){Y6[t]=n}return n}function W6(e){return C5(z6(e))}function G6(e){return"Symbol("+(void 0===e?"":e)+")_"+F5(++k5+B5,36)}function q6(e){var t;return O5(T5,e)&&(h5||"string"==typeof T5[e])||(t="Symbol."+e,h5&&O5(_5,e)?T5[e]=_5[e]:T5[e]=(g5&&P5?P5:j5)(t)),T5[e]}function K6(e){return M5?R5.createElement(e):{}}var Y6=L6("object"==typeof globalThis&&globalThis)||L6("object"==typeof window&&window)||L6("object"==typeof self&&self)||L6("object"==typeof o1&&o1)||function(){return this}()||Function("return this")(),X6=!R6(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Z6=Function.prototype.call,J6=Z6.bind?Z6.bind(Z6):function(){return Z6.apply(Z6,arguments)},d={}.propertyIsEnumerable,Q6=Object.getOwnPropertyDescriptor,e5={f:Q6&&!d.call({1:2},1)?function(e){e=Q6(this,e);return!!e&&e.enumerable}:d},t5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i=Function.prototype,c=i.bind,n5=i.call,r5=c&&c.bind(n5),x=c?function(e){return e&&r5(n5,e)}:function(e){return e&&function(){return n5.apply(e,arguments)}},o5=x({}.toString),i5=x("".slice),a5=Y6.Object,u5=x("".split),s5=R6(function(){return!a5("z").propertyIsEnumerable(0)})?function(e){return"String"==M6(e)?u5(e,""):a5(e)}:a5,l5=Y6.TypeError,c5=function(e){return"function"==typeof e},f5=function(e){return"object"==typeof e?null!==e:c5(e)},d5=x({}.isPrototypeOf),s=$6("navigator","userAgent")||"",p=Y6.process,h=Y6.Deno,f=p&&p.versions||h&&h.version,r1=f&&f.v8,p5=jD=!(jD=r1?0<(vD=r1.split("."))[0]&&vD[0]<4?1:+(vD[0]+vD[1]):jD)&&s&&(!(vD=s.match(/Edge\/(\d+)/))||74<=vD[1])&&(vD=s.match(/Chrome\/(\d+)/))?+vD[1]:jD,h5=!!Object.getOwnPropertySymbols&&!R6(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&p5&&p5<41}),g5=h5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,v5=Y6.Object,y5=g5?function(e){return"symbol"==typeof e}:function(e){var t=$6("Symbol");return c5(t)&&d5(t.prototype,v5(e))},m5=Y6.String,b5=function(e){try{return m5(e)}catch(e){return"Object"}},w5=Y6.TypeError,x5=function(e){if(c5(e))return e;throw w5(b5(e)+" is not a function")},E5=Y6.TypeError,D5=Object.defineProperty,S5=Y6["__core-js_shared__"]||U6("__core-js_shared__",{}),u=I6(function(e){(e.exports=function(e,t){return S5[e]||(S5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),C5=Y6.Object,A5=x({}.hasOwnProperty),O5=Object.hasOwn||function(e,t){return A5(W6(e),t)},k5=0,B5=Math.random(),F5=x(1..toString),T5=u("wks"),_5=Y6.Symbol,P5=_5&&_5.for,j5=g5?_5:_5&&_5.withoutSetter||G6,N5=Y6.TypeError,I5=q6("toPrimitive"),L5=function(e){e=function(e,t){if(!f5(e)||y5(e))return e;var n,r,o=V6(e,I5);if(o){if(o=J6(o,e,t=void 0===t?"default":t),!f5(o)||y5(o))return o;throw N5("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&c5(n=o.toString)&&!f5(r=J6(n,o)))return r;if(c5(n=o.valueOf)&&!f5(r=J6(n,o)))return r;if("string"!==e&&c5(n=o.toString)&&!f5(r=J6(n,o)))return r;throw E5("Can't convert object to primitive value")}(e,"string");return y5(e)?e:e+""},R5=Y6.document,M5=f5(R5)&&f5(R5.createElement),z5=!X6&&!R6(function(){return 7!=Object.defineProperty(K6("div"),"a",{get:function(){return 7}}).a}),H5=Object.getOwnPropertyDescriptor,$5={f:X6?H5:function(e,t){if(e=H6(e),t=L5(t),z5)try{return H5(e,t)}catch(e){}if(O5(e,t))return t5(!J6(e5.f,e,t),e[t])}},V5=Y6.String,U5=Y6.TypeError,W5=function(e){if(f5(e))return e;throw U5(V5(e)+" is not an object")},G5=Y6.TypeError,q5=Object.defineProperty,K5={f:X6?q5:function(e,t,n){if(W5(e),t=L5(t),W5(n),z5)try{return q5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw G5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Y5=X6?function(e,t,n){return K5.f(e,t,t5(1,n))}:function(e,t,n){return e[t]=n,e},X5=x(Function.toString);c5(S5.inspectSource)||(S5.inspectSource=function(e){return X5(e)});function Z5(e){return m8[e]||(m8[e]=G6(e))}function J5(e,t){return(e=A8(e))<0?O8(e+t,0):k8(e,t)}function Q5(e){return F8(e.length)}function e8(u){return function(e,t,n){var r,o=H6(e),i=Q5(o),a=J5(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function t8(e,t){var n,r=H6(e),o=0,i=[];for(n in r)!O5(b8,n)&&O5(r,n)&&_8(i,n);for(;t.length>o;)!O5(r,n=t[o++])||~T8(i,n)||_8(i,n);return i}function n8(e,t){return(e=H8[z8(e)])==V8||e!=$8&&(c5(t)?R6(t):!!t)}function r8(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?Y6:s?Y6[a]||U6(a,{}):(Y6[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=W8(n,r))&&i.value:n[r],!U8(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=R8(c),d=K5.f,p=$5.f,h=0;h<f.length;h++){var g=f[h];O5(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&Y5(o,"sham",!0),D8(n,r,o,e)}}function o8(){}function i8(e){if(!c5(e))return!1;try{return Q8(o8,J8,e),!0}catch(e){return!1}}function a8(e,t){return new(void 0===(n=q8(e=e)&&(n=e.constructor,rD(n)&&(n===iD||q8(n.prototype))||f5(n)&&null===(n=n[oD]))?void 0:n)?iD:n)(0===t?0:t);var n}function u8(h){var g=1==h,v=2==h,y=3==h,m=4==h,b=6==h,w=7==h,x=5==h||b;return function(e,t,n,r){for(var o,i,a,u,s=W6(e),l=s5(s),c=(u=n,x5(a=t),void 0===u?a:G8?G8(a,u):function(){return a.apply(u,arguments)}),f=Q5(l),d=0,n=r||a8,p=g?n(e,f):v||w?n(e,0):void 0;d<f;d++)if((x||d in l)&&(i=c(o=l[d],d,s),h))if(g)p[d]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return d;case 2:aD(p,o)}else switch(h){case 4:return!1;case 7:aD(p,o)}return b?-1:y||m?m:p}}function s8(t){return 51<=p5||!R6(function(){var e=[];return(e.constructor={})[uD]=function(){return{foo:1}},1!==e[t](Boolean).foo})}var l8,c8,f8,d8,p8,h8,g8,v8,y8=S5.inspectSource,l=Y6.WeakMap,g=c5(l)&&/native code/.test(y8(l)),m8=u("keys"),b8={},w8=Y6.TypeError,n=Y6.WeakMap,x8=(g8=g||S5.state?(l8=S5.state||(S5.state=new n),c8=x(l8.get),f8=x(l8.has),d8=x(l8.set),p8=function(e,t){if(f8(l8,e))throw new w8("Object already initialized");return t.facade=e,d8(l8,e,t),t},h8=function(e){return c8(l8,e)||{}},function(e){return f8(l8,e)}):(v8=Z5("state"),b8[v8]=!0,p8=function(e,t){if(O5(e,v8))throw new w8("Object already initialized");return t.facade=e,Y5(e,v8,t),t},h8=function(e){return O5(e,v8)?e[v8]:{}},function(e){return O5(e,v8)}),{set:p8,get:h8,has:g8,enforce:function(e){return g8(e)?h8(e):p8(e,{})},getterFor:function(t){return function(e){if(f5(e)&&(e=h8(e)).type===t)return e;throw w8("Incompatible receiver, "+t+" required")}}}),a=Function.prototype,d=X6&&Object.getOwnPropertyDescriptor,i=O5(a,"name"),E8={EXISTS:i,PROPER:i&&"something"===function(){}.name,CONFIGURABLE:i&&(!X6||d(a,"name").configurable)},D8=I6(function(e){var s=E8.CONFIGURABLE,t=x8.get,l=x8.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;c5(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!O5(n,"name")||s&&n.name!==r)&&Y5(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==Y6?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Y5(e,t,n)):a?e[t]=n:U6(t,n)})(Function.prototype,"toString",function(){return c5(this)&&t(this).source||y8(this)})}),S8=Math.ceil,C8=Math.floor,A8=function(e){e=+e;return e!=e||0==e?0:(0<e?C8:S8)(e)},O8=Math.max,k8=Math.min,B8=Math.min,F8=function(e){return 0<e?B8(A8(e),9007199254740991):0},c={includes:e8(!0),indexOf:e8(!1)},T8=c.indexOf,_8=x([].push),P8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],j8=P8.concat("length","prototype"),N8={f:Object.getOwnPropertyNames||function(e){return t8(e,j8)}},I8={f:Object.getOwnPropertySymbols},L8=x([].concat),R8=$6("Reflect","ownKeys")||function(e){var t=N8.f(W5(e)),n=I8.f;return n?L8(t,n(e)):t},M8=/#|\.prototype\./,z8=n8.normalize=function(e){return String(e).replace(M8,".").toLowerCase()},H8=n8.data={},$8=n8.NATIVE="N",V8=n8.POLYFILL="P",U8=n8,W8=$5.f,G8=x(x.bind),q8=Array.isArray||function(e){return"Array"==M6(e)},p={},h=(p[q6("toStringTag")]="z","[object z]"===String(p)),K8=q6("toStringTag"),Y8=Y6.Object,X8="Arguments"==M6(function(){return arguments}()),Z8=h?M6:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Y8(e),K8))?t:X8?M6(e):"Object"==(t=M6(e))&&c5(e.callee)?"Arguments":t},J8=[],Q8=$6("Reflect","construct"),eD=/^\s*(?:class|function)\b/,tD=x(eD.exec),nD=!eD.exec(o8),rD=!Q8||R6(function(){var e;return i8(i8.call)||!i8(Object)||!i8(function(){e=!0})||e})?function(e){if(!c5(e))return!1;switch(Z8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nD||!!tD(eD,y8(e))}:i8,oD=q6("species"),iD=Y6.Array,aD=x([].push),f={forEach:u8(0),map:u8(1),filter:u8(2),some:u8(3),every:u8(4),find:u8(5),findIndex:u8(6),filterReject:u8(7)},uD=q6("species"),sD=f.filter;r8({target:"Array",proto:!0,forced:!s8("filter")},{filter:function(e){return sD(this,e,1<arguments.length?arguments[1]:void 0)}}),h||D8(Object.prototype,"toString",h?{}.toString:function(){return"[object "+Z8(this)+"]"},{unsafe:!0});function lD(e){if("Symbol"===Z8(e))throw TypeError("Cannot convert a Symbol value to a string");return hD(e)}function cD(){var e=W5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function fD(){}function dD(e){e.write(xD("")),e.close();var t=e.parentWindow.Object;return e=null,t}var pD,hD=Y6.String,gD=Y6.RegExp,r1=R6(function(){var e=gD("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),s=r1||R6(function(){return!gD("a","y").sticky}),vD={BROKEN_CARET:r1||R6(function(){var e=gD("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:s,UNSUPPORTED_Y:r1},yD=Object.keys||function(e){return t8(e,P8)},mD=X6?Object.defineProperties:function(e,t){W5(e);for(var n,r=H6(t),o=yD(t),i=o.length,a=0;a<i;)K5.f(e,n=o[a++],r[n]);return e},bD=$6("document","documentElement"),wD=Z5("IE_PROTO"),xD=function(e){return"<script>"+e+"<\/script>"},ED=function(){try{pD=new ActiveXObject("htmlfile")}catch(e){}var e,t;ED="undefined"==typeof document||document.domain&&pD?dD(pD):((t=K6("iframe")).style.display="none",bD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xD("document.F=Object")),e.close(),e.F);for(var n=P8.length;n--;)delete ED.prototype[P8[n]];return ED()};b8[wD]=!0;function DD(n,e,t,r){var a,o=q6(n),u=!R6(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!R6(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[ZD]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=x(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=x(e),i=t.exec;return i===qD||i===JD.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),D8(String.prototype,n,i[0]),D8(JD,o,i[1])),r&&Y5(JD[o],"sham",!0)}function SD(o){return function(e,t){var n,e=lD(z6(e)),t=A8(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=eS(e,t))<55296||56319<n||t+1===r||(r=eS(e,t+1))<56320||57343<r?o?QD(e,t):n:o?tS(e,t,t+2):r-56320+(n-55296<<10)+65536}}function CD(e,t,n){return t+(n?nS(e,t).length:1)}function AD(e,t){var n=e.exec;if(c5(n))return null!==(n=J6(n,e,t))&&W5(n),n;if("RegExp"===M6(e))return J6(qD,e,t);throw lS("RegExp#exec called on incompatible receiver")}function OD(e){bS[mS][e]=!0}function kD(e){var t;return f5(e)&&(void 0!==(t=e[ES])?!!t:"RegExp"==M6(e))}function BD(e,t,n){(t=L5(t))in e?K5.f(e,t,t5(0,n)):e[t]=n}function FD(e,t,n){for(var r=Q5(e),o=J5(t,r),i=J5(void 0===n?r:n,r),a=CS(AS(i-o,0)),u=0;o<i;o++,u++)BD(a,u,e[o]);return a.length=u,a}function TD(t){return function(e){e=lD(z6(e));return 1&t&&(e=jS(e,NS,"")),e=2&t?jS(e,IS,""):e}}var _D=Object.create||function(e,t){var n;return null!==e?(fD.prototype=W5(e),n=new fD,fD.prototype=null,n[wD]=e):n=ED(),void 0===t?n:mD(n,t)},PD=Y6.RegExp,jD=R6(function(){var e=PD(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),ND=Y6.RegExp,l=R6(function(){var e=ND("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),ID=x8.get,LD=u("native-string-replace",String.prototype.replace),RD=RegExp.prototype.exec,MD=RD,zD=x("".charAt),HD=x("".indexOf),$D=x("".replace),VD=x("".slice),UD=(g=/b*/g,J6(RD,n=/a/,"a"),J6(RD,g,"a"),0!==n.lastIndex||0!==g.lastIndex),WD=vD.BROKEN_CARET,GD=void 0!==/()??/.exec("")[1],qD=MD=UD||GD||WD||jD||l?function(e){var t,n,r,o,i,a,u=this,s=ID(u),e=lD(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=J6(MD,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=WD&&u.sticky,f=J6(cD,u),s=u.source,d=0,p=e;if(l&&(f=$D(f,"y",""),-1===HD(f,"g")&&(f+="g"),p=VD(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==zD(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),GD&&(t=new RegExp("^"+s+"$(?!\\s)",f)),UD&&(n=u.lastIndex),r=J6(RD,l?t:u,p),l?r?(r.input=VD(r.input,d),r[0]=VD(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:UD&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),GD&&r&&1<r.length&&J6(LD,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=_D(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:MD,i=(r8({target:"RegExp",proto:!0,forced:/./.exec!==qD},{exec:qD}),Function.prototype),KD=i.apply,d=i.bind,YD=i.call,XD="object"==typeof Reflect&&Reflect.apply||(d?YD.bind(KD):function(){return YD.apply(KD,arguments)}),ZD=q6("species"),JD=RegExp.prototype,QD=x("".charAt),eS=x("".charCodeAt),tS=x("".slice),nS=(SD(!1),SD(!0)),rS=Math.floor,oS=x("".charAt),iS=x("".replace),aS=x("".slice),uS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sS=/\$([$&'`]|\d{1,2})/g,lS=Y6.TypeError,cS=q6("replace"),fS=Math.max,dS=Math.min,pS=x([].concat),hS=x([].push),gS=x("".indexOf),vS=x("".slice),a="$0"==="a".replace(/./,"$0"),yS=!!/./[cS]&&""===/./[cS]("a","$0"),mS=(DD("replace",function(e,b,w){var x=yS?"$":"$0";return[function(e,t){var n=z6(this),r=null==e?void 0:V6(e,cS);return r?J6(r,e,n,t):J6(b,lD(n),e,t)},function(e,t){var n=W5(this),r=lD(e);if("string"==typeof t&&-1===gS(t,x)&&-1===gS(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=c5(t),a=(i||(t=lD(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=AD(n,r);if(null===s)break;if(hS(u,s),!a)break;""===lD(s[0])&&(n.lastIndex=CD(r,F8(n.lastIndex),o))}for(var l,c="",f=0,d=0;d<u.length;d++){for(var p=lD((s=u[d])[0]),h=fS(dS(A8(s.index),r.length),0),g=[],v=1;v<s.length;v++)hS(g,void 0===(l=s[v])?l:String(l));var y=s.groups,m=i?(m=pS([p],g,h,r),void 0!==y&&hS(m,y),lD(XD(t,void 0,m))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=sS;return void 0!==l&&(l=W6(l),t=uS),iS(e,t,function(e,t){var n;switch(oS(t,0)){case"$":return"$";case"&":return i;case"`":return aS(a,0,u);case"'":return aS(a,c);case"<":n=l[aS(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=rS(o/10))&&r<=f?void 0===s[r-1]?oS(t,1):s[r-1]+oS(t,1):e;n=s[o-1]}return void 0===n?"":n})}(p,r,h,g,y,t);f<=h&&(c+=vS(r,f,h)+m,f=h+p.length)}return c+vS(r,f)}]},!!R6(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!a||yS),q6("unscopables")),bS=Array.prototype,wS=(null==bS[mS]&&K5.f(bS,mS,{configurable:!0,value:_D(null)}),f.find),xS=!0,ES=("find"in[]&&Array(1).find(function(){xS=!1}),r8({target:"Array",proto:!0,forced:xS},{find:function(e){return wS(this,e,1<arguments.length?arguments[1]:void 0)}}),OD("find"),q6("match")),DS=Y6.TypeError,SS=q6("species"),CS=Y6.Array,AS=Math.max,OS=vD.UNSUPPORTED_Y,kS=Math.min,BS=[].push,FS=x(/./.exec),TS=x(BS),_S=x("".slice),PS=(DD("split",function(o,h,g){var v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=lD(z6(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!kD(e))return J6(h,n,e,r);for(var o,i,a,u=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,l=new RegExp(e.source,t+"g");(o=J6(qD,l,n))&&!((i=l.lastIndex)>s&&(TS(u,_S(n,s,o.index)),1<o.length&&o.index<n.length&&XD(BS,u,FD(o,1)),a=o[0].length,s=i,r<=u.length));)l.lastIndex===o.index&&l.lastIndex++;return s===n.length?!a&&FS(l,"")||TS(u,""):TS(u,_S(n,s)),r<u.length?FD(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:J6(h,this,e,t)}:h;return[function(e,t){var n=z6(this),r=null==e?void 0:V6(e,o);return r?J6(r,e,n,t):J6(v,lD(n),e,t)},function(e,t){var r=W5(this),n=lD(e),e=g(v,r,n,t,v!==h);if(e.done)return e.value;var e=function(e){var t,n=W5(r).constructor;if(void 0===n||null==(t=W5(n)[SS]))return e;n=t;if(rD(n))return n;throw DS(b5(n)+" is not a constructor")}(RegExp),o=r.unicode,i=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(OS?"g":"y"),a=new e(OS?"^(?:"+r.source+")":r,i),u=void 0===t?4294967295:t>>>0;if(0==u)return[];if(0===n.length)return null===AD(a,n)?[n]:[];for(var s=0,l=0,c=[];l<n.length;){a.lastIndex=OS?0:l;var f,d=AD(a,OS?_S(n,l):n);if(null===d||(f=kS(F8(a.lastIndex+(OS?l:0)),n.length))===s)l=CD(n,l,o);else{if(TS(c,_S(n,s,l)),c.length===u)return c;for(var p=1;p<=d.length-1;p++)if(TS(c,d[p]),c.length===u)return c;l=s=f}}return TS(c,_S(n,s)),c}]},!!R6(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),OS),"\t\n\v\f\r                 \u2028\u2029\ufeff"),jS=x("".replace),p="["+PS+"]",NS=RegExp("^"+p+p+"*"),IS=RegExp(p+p+"*$"),h={start:TD(1),end:TD(2),trim:TD(3)},LS=E8.PROPER,RS=h.trim;function MS(e){return 0===N("<div>"+e+"</div>").children().filter(function(e){return"BR"!==e.tagName}).length}function zS(e){return 0===e.length?"":e[0].outerHTML}function HS(e){return e.length?e[0].tagName.toLowerCase():""}function $S(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];a&&(a=a.split(":"))[0].trim()===t&&(n=a[1].trim())}return n}r8({target:"String",proto:!0,forced:R6(function(){return PS.trim()||"​…᠎"!=="​…᠎".trim()||LS&&"trim"!==PS.trim.name})},{trim:function(){return RS(this)}}),r8({global:!0},{globalThis:Y6}),N.fn.css=Xf,N.fn.append=nd,N.fn.prepend=rd,N.fn.addClass=If,N.fn.removeClass=Lf,N.fn.hasClass=Rf,N.fn.on=Vf,N.fn.off=Uf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.removeAttr=zf,N.fn.hide=Kf,N.fn.show=Yf,N.fn.parents=id,N.fn.dataset=Hf,N.fn.val=$f,N.fn.text=ed,N.fn.html=Qf,N.fn.children=ud,N.fn.remove=sd,N.fn.find=ad,N.fn.width=Wf,N.fn.height=Gf,N.fn.filter=Jf,N.fn.empty=ld;var VS=function(e,t){return(VS=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function US(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}VS(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var WS=function(){return(WS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function GS(e,a,u,s){return new(u=u||Promise)(function(n,t){function r(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof u?t:new u(function(e){e(t)})).then(r,o)}i((s=s.apply(e,a||[])).next())})}function qS(r,o){var i,a,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(u=2&t[0]?a.return:t[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,t[1])).done)return u;switch(a=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,a=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!((u=0<(u=s.trys).length&&u[u.length-1])||6!==t[0]&&2!==t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3]))s.label=t[1];else if(6===t[0]&&s.label<u[1])s.label=u[1],u=t;else{if(!(u&&s.label<u[2])){u[2]&&s.ops.pop(),s.trys.pop();continue}s.label=u[2],s.ops.push(t)}}t=o.call(r,s)}catch(e){t=[6,e],a=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function KS(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function YS(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function XS(t){var e=YS(P.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1)[0];if(null!=e){var e=e[0];if(_.isElement(e))if("paragraph"!==e.type)if(""===R.string(e))return e=e.children,H.isText((void 0===e?[]:e)[0])&&(j.setNodes(t,{type:"paragraph"}),1)}}function ZS(e,t,n,r){var e=lD(z6(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+eC(lD(r),QS,"&quot;")+'"'),o+">"+e+"</"+t+">"}function JS(t){return R6(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length})}var s={renderElems:[v],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return{type:"paragraph",children:t=0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length?[{text:e.text().replace(/\s+/gm," ")}]:t}}}],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward,r=(e.insertText,e.insertBreak,e);return r.deleteBackward=function(e){XS(r)||t(e)},r.deleteForward=function(e){XS(r)||n(e)},r}},QS=/"/g,eC=x("".replace);function tC(e,t){var n=e.bold,r=e.italic,o=e.underline;return n&&(t="<strong>"+t+"</strong>"),e.code&&(t="<code>"+t+"</code>"),r&&(t="<em>"+t+"</em>"),o&&(t="<u>"+t+"</u>"),e.through&&(t="<s>"+t+"</s>"),e.sub&&(t="<sub>"+t+"</sub>"),t=e.sup?"<sup>"+t+"</sup>":t}function nC(e,t){return 0!==e.length&&(e[0].matches(t)||0<e.find(t).length)}r8({target:"String",proto:!0,forced:JS("bold")},{bold:function(){return ZS(this,"b","","")}}),r8({target:"String",proto:!0,forced:JS("italics")},{italics:function(){return ZS(this,"i","","")}}),r8({target:"String",proto:!0,forced:JS("sub")},{sub:function(){return ZS(this,"sub","","")}}),r8({target:"String",proto:!0,forced:JS("sup")},{sup:function(){return ZS(this,"sup","","")}});function rC(e,t){var n=[][e];return!!n&&R6(function(){n.call(null,t||function(){throw 1},1)})}function oC(t){if(t&&t.forEach!==sC)try{Y5(t,"forEach",sC)}catch(e){t.forEach=sC}}var iC,aC={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},r1=K6("span").classList,u=r1&&r1.constructor&&r1.constructor.prototype,n=u===Object.prototype?void 0:u,uC=f.forEach,sC=rC("forEach")?[].forEach:function(e){return uC(this,e,1<arguments.length?arguments[1]:void 0)};for(iC in aC)aC[iC]&&oC(Y6[iC]&&Y6[iC].prototype);function lC(t){return null==t.selection||!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0]}oC(n),r8({target:"Object",stat:!0,forced:R6(function(){yD(1)})},{keys:function(e){return yD(W6(e))}});NC.prototype.getValue=function(e){var t=this.mark,n=P.marks(e);return n?n[t]:!!YS(P.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},NC.prototype.isActive=function(e){return!!this.getValue(e)},NC.prototype.isDisabled=function(e){return lC(e,this.mark)},NC.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach(function(e){return t.removeMark(e)}))};var cC,fC,dC,pC,hC,gC,vC,g=NC,yC='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',mC='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',bC=(US(jC,vC=g),jC),wC=(US(PC,gC=g),PC),xC=(US(_C,hC=g),_C),EC=(US(TC,pC=g),TC),DC=(US(FC,dC=g),FC),SC=(US(BC,fC=g),BC),CC=(US(kC,cC=g),kC),AC=(OC.prototype.getValue=function(e){return""},OC.prototype.isActive=function(e){return!1},OC.prototype.isDisabled=lC,OC.prototype.exec=function(e,t){var n,r,o=P.nodes(e,{match:function(e){return H.isText(e)},universal:!0});try{for(var i=KS(o),a=i.next();!a.done;a=i.next())!function(t,e){Object.keys(e).forEach(function(e){"text"!==e&&P.removeMark(t,e)})}(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},OC),jD={renderStyle:function(e,t){var n=e.bold,r=e.italic,o=e.underline,i=e.code,a=e.through,u=e.sub,e=e.sup;return n&&(t=pp("strong",null,t)),i&&(t=pp("code",null,t)),r&&(t=pp("em",null,t)),o&&(t=pp("u",null,t)),a&&(t=pp("s",null,t)),u&&(t=pp("sub",null,t)),t=e?pp("sup",null,t):t},menus:[{key:"bold",factory:function(){return new bC}},{key:"underline",factory:function(){return new DC}},{key:"italic",factory:function(){return new xC}},{key:"through",factory:function(){return new EC}},{key:"code",factory:function(){return new wC}},{key:"sub",factory:function(){return new SC}},{key:"sup",factory:function(){return new CC}},{key:"clearStyle",factory:function(){return new AC}}],styleToHtml:function(e,t){var n;return H.isText(e)?MS(t)?tC(e,t):"br"===HS(n=N(t))?tC(e,"<br>"):(e=tC(e,e=n.html()),n.html(e),zS(n)):t},parseStyleHtml:function(e,t,n){var r,e=N(e);return H.isText(t)?(r=t,nC(e,"b,strong")&&(r.bold=!0),nC(e,"i,em")&&(r.italic=!0),nC(e,"u")&&(r.underline=!0),nC(e,"s,strike")&&(r.through=!0),nC(e,"sub")&&(r.sub=!0),nC(e,"sup")&&(r.sup=!0),nC(e,"code")&&(r.code=!0),r):t}};function OC(){this.title=w("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}function kC(){var e=null!==cC&&cC.apply(this,arguments)||this;return e.mark="sup",e.marksNeedToRemove=["sub"],e.title=w("textStyle.sup"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',e.hotkey="",e}function BC(){var e=null!==fC&&fC.apply(this,arguments)||this;return e.mark="sub",e.marksNeedToRemove=["sup"],e.title=w("textStyle.sub"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',e.hotkey="",e}function FC(){var e=null!==dC&&dC.apply(this,arguments)||this;return e.mark="underline",e.title=w("textStyle.underline"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',e.hotkey="mod+u",e}function TC(){var e=null!==pC&&pC.apply(this,arguments)||this;return e.mark="through",e.title=w("textStyle.through"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',e.hotkey="mod+shift+x",e}function _C(){var e=null!==hC&&hC.apply(this,arguments)||this;return e.mark="italic",e.title=w("textStyle.italic"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',e.hotkey="mod+i",e}function PC(){var e=null!==gC&&gC.apply(this,arguments)||this;return e.mark="code",e.title=w("textStyle.code"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',e.hotkey="mod+e",e}function jC(){var e=null!==vC&&vC.apply(this,arguments)||this;return e.mark="bold",e.title=w("textStyle.bold"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',e.hotkey="mod+b",e}function NC(){this.marksNeedToRemove=[],this.tag="button"}function IC(r){return function(e,t,n){return pp("h"+r,null,t)}}var l={type:"header1",renderElem:IC(1)},i={type:"header2",renderElem:IC(2)},d={type:"header3",renderElem:IC(3)},a={type:"header4",renderElem:IC(4)},vD={type:"header5",renderElem:IC(5)},p=E8.PROPER,LC=RegExp.prototype,RC=LC.toString,MC=x(cD),h=R6(function(){return"/a/b"!=RC.call({source:"a",flags:"b"})}),v=p&&"toString"!=RC.name;(h||v)&&D8(RegExp.prototype,"toString",function(){var e=W5(this),t=lD(e.source),n=e.flags;return"/"+t+"/"+lD(void 0!==n||!d5(LC,e)||"flags"in LC?n:MC(e))},{unsafe:!0});function zC(e){if(kD(e))throw $C("The method doesn't accept regular expressions");return e}function HC(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[VC]=!1,"/./"[t](n)}catch(t){}}return!1}var $C=Y6.TypeError,VC=q6("match"),r1=$5.f,UC=x("".startsWith),WC=x("".slice),GC=Math.min,u=HC("startsWith");function qC(e){var e=YS(P.nodes(e,{match:function(e){return I.getNodeType(e).startsWith("header")},universal:!0}),1)[0];return null==e?"paragraph":(e=YS(e,1)[0],I.getNodeType(e))}function KC(e){return null==e.selection||!YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function YC(e,t){t&&j.setNodes(e,{type:t})}r8({target:"String",proto:!0,forced:!(!u&&(n=r1(String.prototype,"startsWith"))&&!n.writable||u)},{startsWith:function(e){var t=lD(z6(this)),n=(zC(e),F8(GC(1<arguments.length?arguments[1]:void 0,t.length))),e=lD(e);return UC?UC(t,e,n):WC(t,n,n+e.length)===e}});p7.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:w("header.text")}],n=this.getValue(e).toString();return t.forEach(function(e){e.value===n?e.selected=!0:delete e.selected}),t},p7.prototype.isActive=function(e){return!1},p7.prototype.getValue=qC,p7.prototype.isDisabled=KC,p7.prototype.exec=function(e,t){YC(e,t.toString())};var XC,ZC,JC,QC,e7,t7=p7,g=(d7.prototype.getValue=qC,d7.prototype.isActive=function(e){return this.getValue(e)===this.type},d7.prototype.isDisabled=KC,d7.prototype.exec=function(e,t){var n=this.type;YC(e,t===n?"paragraph":n)},d7),n7=(US(f7,e7=g),f7),r7=(US(c7,QC=g),c7),o7=(US(l7,JC=g),l7),i7=(US(s7,ZC=g),s7),a7=(US(u7,XC=g),u7);function u7(){var e=null!==XC&&XC.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}function s7(){var e=null!==ZC&&ZC.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}function l7(){var e=null!==JC&&JC.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}function c7(){var e=null!==QC&&QC.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}function f7(){var e=null!==e7&&e7.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}function d7(){this.tag="button"}function p7(){this.title=w("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}function h7(n){return function(e,t){return"<h"+n+">"+t+"</h"+n+">"}}function g7(r){return function(e,t,n){e=N(e);return 0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),{type:"header"+r,children:t}}}var p={renderElems:[l,i,d,a,vD],elemsToHtml:[{type:"header1",elemToHtml:h7(1)},{type:"header2",elemToHtml:h7(2)},{type:"header3",elemToHtml:h7(3)},{type:"header4",elemToHtml:h7(4)},{type:"header5",elemToHtml:h7(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:g7(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:g7(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:g7(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:g7(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:g7(5)}],menus:[{key:"headerSelect",factory:function(){return new t7}},{key:"header1",factory:function(){return new n7}},{key:"header2",factory:function(){return new r7}},{key:"header3",factory:function(){return new o7}},{key:"header4",factory:function(){return new i7}},{key:"header5",factory:function(){return new a7}}],editorPlugin:function(t){var n=t.insertBreak,r=(t.insertNode,t);return r.insertBreak=function(){var e=YS(P.nodes(r,{match:function(e){return I.getNodeType(e).startsWith("header")},universal:!0}),1)[0];e&&I.isSelectionAtLineEnd(t,e[1])?j.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):n()},r}},v7=Object.assign,y7=Object.defineProperty,m7=x([].concat),h=!v7||R6(function(){var e,t,n,r;return X6&&1!==v7({b:1},v7(y7({},"a",{enumerable:!0,get:function(){y7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=v7({},e)[n])||yD(v7({},t)).join("")!=r})?function(e,t){for(var n=W6(e),r=arguments.length,o=1,i=I8.f,a=e5.f;o<r;)for(var u,s=s5(arguments[o++]),l=i?m7(yD(s),i(s)):yD(s),c=l.length,f=0;f<c;)u=l[f++],X6&&!J6(a,s,u)||(n[u]=s[u]);return n}:v7;function b7(e,t){null==e.data&&(e.data={});e=e.data;null==e.style&&(e.style={}),Object.assign(e.style,t)}r8({target:"Object",stat:!0,forced:Object.assign!==h},{assign:h});var w7,x7,v={selector:"font",preParseHtml:function(e){var t=N(e);return"font"!==HS(t)?e:((e=t.attr("color")||"")&&(t.removeAttr("color"),t.css("color",e)),t[0])}},r1=(F7.prototype.exec=function(e,t){},F7.prototype.getValue=function(e){var t=this.mark,e=P.marks(e);return e&&e[t]?e[t]:""},F7.prototype.isActive=function(e){return!!this.getValue(e)},F7.prototype.isDisabled=function(t){return null==t.selection||!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0]},F7.prototype.getPanelContentElem=function(n){var r=this.mark,o=(null==this.$content&&((e=N('<ul class="w-e-panel-content-color"></ul>')).on("click","li",function(e){var t=e.target;null!=t&&(e.preventDefault(),null!=n.selection)&&("0"===(e=N(t).attr("data-value"))?P.removeMark(n,r):P.addMark(n,r,e))}),this.$content=e),this.$content);if(null==o)return document.createElement("ul");o.empty();var i=this.getValue(n),e=n.getMenuConfig(r).colors,e=((void 0===e?[]:e).forEach(function(e){var t=N('<div class="color-block" data-value="'+e+'"></div>'),n=(t.css("background-color",e),N('<li data-value="'+e+'"></li>'));i===e&&n.addClass("active"),n.append(t),o.append(n)}),""),e=("color"===r&&(e=w("color.default")),N('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+(e="bgColor"===r?w("color.clear"):e)+"\n </li>\n "));return o.prepend(e),o[0]},F7),E7=(US(B7,x7=r1),B7),D7=(US(k7,w7=r1),k7),n=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],u={renderStyle:function(e,t){var n=e.color,e=e.bgColor;return n&&b7(t,{color:n}),e&&b7(t,{backgroundColor:e}),t},styleToHtml:function(e,t){var n,r;return H.isText(e)&&(r=e.color,e=e.bgColor,r||e)?(!MS(t)&&"span"===HS(n=N(t))||(n=N("<span>"+t+"</span>")),r&&n.css("color",r),e&&n.css("background-color",e),zS(n)):t},preParseHtml:[v],parseStyleHtml:function(e,t,n){var r,o,e=N(e);return H.isText(t)?(r=t,(o=$S(e,"color"))&&(r.color=o),(o=(o=$S(e,"background-color"))||$S(e,"background"))&&(r.bgColor=o),r):t},menus:[{key:"color",factory:function(){return new E7},config:{colors:n}},{key:"bgColor",factory:function(){return new D7},config:{colors:n}}]},S7=/^(?:\w+:)?\/\/(\S+)$/,C7=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,A7=/^[^\s\.]+\.\S{2,}$/,O7=c.includes;function k7(){var e=null!==w7&&w7.apply(this,arguments)||this;return e.title=w("color.bgColor"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',e.mark="bgColor",e}function B7(){var e=null!==x7&&x7.apply(this,arguments)||this;return e.title=w("color.color"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',e.mark="color",e}function F7(){this.tag="button",this.showDropPanel=!0,this.$content=null}function T7(e){return(e=void 0===e?"r":e)+"-"+Od()}function _7(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function P7(n,r,o,i){return GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).checkLink)?[4,t(o,i)]:[3,2];case 1:if("string"==typeof(t=e.sent()))return r.alert(t,"error"),[2,!1];if(null==t)return[2,!1];e.label=2;case 2:return[2,!0]}})})}function j7(n,r,o){return GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).parseLinkUrl)?[4,t(o)]:[3,2];case 1:return[2,e.sent()];case 2:return[2,o]}})})}function N7(n){return null==n.selection||!!I.getSelectedElems(n).some(function(e){var t=e.type;return!!n.isVoid(e)||!!["pre","code","link"].includes(t)||void 0})}function I7(e,t){return{type:"link",url:_7(e),children:t?[{text:t}]:[]}}function L7(o,i,a){GS(this,void 0,void 0,function(){var t,n,r;return qS(this,function(e){switch(e.label){case 0:return!a||(i=i||a,o.restoreSelection(),N7(o))?[2]:[4,P7("insertLink",o,i,a)];case 1:return e.sent()?[4,j7("insertLink",o,a)]:[2];case 2:return t=e.sent(),null!=(n=o.selection)&&(z.isCollapsed(n)?(o.insertText(" "),r=I7(t,i),j.insertNodes(o,r),o.insertFragment([{text:" "}])):P.string(o,n)!==i?(o.deleteFragment(),r=I7(t,i),j.insertNodes(o,r)):(r=I7(t),j.wrapNodes(o,r,{split:!0}),j.collapse(o,{edge:"end"}))),[2]}})})}r8({target:"Array",proto:!0},{includes:function(e){return O7(this,e,1<arguments.length?arguments[1]:void 0)}}),OD("includes");g={type:"link",renderElem:function(e,t,n){var r=e.url,e=e.target;return pp("a",{href:r,target:void 0===e?"_blank":e},t)}},l={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return 0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),{type:"link",url:e.attr("href")||"",target:e.attr("target")||"",children:t}}};function R7(){return T7("w-e-insert-link")}z7.prototype.getValue=function(e){return""},z7.prototype.isActive=function(e){return!1},z7.prototype.exec=function(e,t){},z7.prototype.isDisabled=N7,z7.prototype.getModalPositionNode=function(e){return null},z7.prototype.getModalContentElem=function(n){var r,e=n.selection,o=this.textInputId,i=this.urlInputId,t=this.buttonId,a=YS(YE(w("link.text"),o),2),u=a[0],s=N(a[1]),a=YS(YE(w("link.url"),i),2),l=a[0],a=N(a[1]),c=YS(XE(t,w("common.ok")),1)[0],t=(null==this.$content&&((r=N("<div></div>")).on("click","#"+t,function(e){e.preventDefault();var e=r.find("#"+o).val(),t=r.find("#"+i).val();L7(n,e,t),n.hidePanelOrModal()}),this.$content=r),this.$content);return t.empty(),t.append(u),t.append(l),t.append(c),null==e||z.isCollapsed(e)?s.val(""):(u=P.string(n,e),s.val(u)),a.val(""),setTimeout(function(){s.focus()}),t[0]};var M7=z7;function z7(){this.title=w("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=R7(),this.urlInputId=R7(),this.buttonId=R7()}function H7(){return T7("w-e-update-link")}function $7(e,t,n){return 0===t?n:t%2==1?$7(e,t-1,n*e):$7(e*e,t/2,n)}function V7(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Q7(o/1e7)}function U7(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=Q7(r/t),r=r%t*1e7}function W7(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=J7(e[n]),r=""===r?t:r+e9("0",7-t.length)+t);return r}i9.prototype.getSelectedLinkElem=function(e){e=I.getSelectedNodeByType(e,"link");return null==e?null:e},i9.prototype.getValue=function(e){e=this.getSelectedLinkElem(e);return e&&e.url||""},i9.prototype.isActive=function(e){return!1},i9.prototype.exec=function(e,t){},i9.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},i9.prototype.getModalPositionNode=function(e){return I.getSelectedNodeByType(e,"link")},i9.prototype.getModalContentElem=function(n){var r,o=this.urlInputId,e=this.buttonId,t=YS(YE(w("link.url"),o),2),i=t[0],a=N(t[1]),t=YS(XE(e,w("common.ok")),1)[0],e=(null==this.$content&&((r=N("<div></div>")).on("click","button",function(e){e.preventDefault(),n.restoreSelection();var e=I.getSelectedNodeByType(n,"link"),e=e?R.string(e):"",t=r.find("#"+o).val();!function(n,r,o){GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return o?[4,P7("editLink",n,r,o)]:[2];case 1:return e.sent()?[4,j7("editLink",n,o)]:[2];case 2:return t=e.sent(),t={url:_7(t)},j.setNodes(n,t,{match:function(e){return I.checkNodeType(e,"link")}}),[2]}})})}(n,e,t),n.hidePanelOrModal()}),this.$content=r),this.$content),i=(e.empty(),e.append(i),e.append(t),this.getValue(n));return a.val(i),setTimeout(function(){a.focus()}),e[0]};var G7=i9,q7=(o9.prototype.getValue=function(e){return""},o9.prototype.isActive=function(e){return!1},o9.prototype.isDisabled=function(e){return null==e.selection||null==I.getSelectedNodeByType(e,"link")},o9.prototype.exec=function(e,t){this.isDisabled(e)||j.unwrapNodes(e,{match:function(e){return I.checkNodeType(e,"link")}})},o9),K7=(r9.prototype.getSelectedLinkElem=function(e){e=I.getSelectedNodeByType(e,"link");return null==e?null:e},r9.prototype.getValue=function(e){e=this.getSelectedLinkElem(e);return e&&e.url||""},r9.prototype.isActive=function(e){return!1},r9.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},r9.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},r9),i={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},d={renderElems:[g],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e.url,e=e.target;return'<a href="'+n+'" target="'+(void 0===e?"_blank":e)+'">'+t+"</a>"}}],parseElemsHtml:[l],menus:[{key:"insertLink",factory:function(){return new M7},config:i},{key:"editLink",factory:function(){return new G7},config:i},{key:"unLink",factory:function(){return new q7}},{key:"viewLink",factory:function(){return new K7}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode,o=(e.insertNode,e.insertText,e);return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");!function(e){if("string"==typeof e){var e=e.match(S7);if(e)return(e=e[1])&&(C7.test(e)||A7.test(e))}}(t)?n(e):N7(o)||null!=(e=o.selection)&&(e=P.string(o,e),L7(o,e,t))},o.normalizeNode=function(e){var e=YS(e,2),t=e[0],e=e[1];return"link"===I.getNodeType(t)&&""===R.string(t)?j.removeNodes(o,{at:e}):r([t,e])},o}},Y7=x(1..valueOf),X7=Y6.RangeError,Z7=Y6.RangeError,J7=Y6.String,Q7=Math.floor,e9=x(function(e){var t=lD(z6(this)),n="",r=A8(e);if(r<0||r==1/0)throw X7("Wrong number of repetitions");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),t9=x("".slice),n9=x(1..toFixed);function r9(){this.title=w("link.view"),this.iconSvg=mC,this.tag="button"}function o9(){this.title=w("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}function i9(){this.title=w("link.edit"),this.iconSvg=yC,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=H7(),this.buttonId=H7()}function a9(e,t){return"w-e-image-container-"+I.findKey(e,t).id}r8({target:"Number",proto:!0,forced:R6(function(){return"0.000"!==n9(8e-5,3)||"1"!==n9(.9,0)||"1.25"!==n9(1.255,2)||"1000000000000000128"!==n9(0xde0b6b3a7640080,0)})||!R6(function(){n9({})})},{toFixed:function(e){var t,n,r,o=Y7(this),e=A8(e),i=[0,0,0,0,0,0],a="",u="0";if(e<0||20<e)throw Z7("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return J7(o);if(o<0&&(a="-",o=-o),1e-21<o)if(r=(t=function(){for(var e=0,t=o*$7(2,69,1);4096<=t;)e+=12,t/=4096;for(;2<=t;)e+=1,t/=2;return e}()-69)<0?o*$7(2,-t,1):o/$7(2,t,1),r*=4503599627370496,0<(t=52-t)){for(V7(i,0,r),n=e;7<=n;)V7(i,1e7,0),n-=7;for(V7(i,$7(10,n,1),0),n=t-1;23<=n;)U7(i,1<<23),n-=23;U7(i,1<<n),V7(i,1,1),U7(i,2),u=W7(i)}else V7(i,0,r),V7(i,1<<-t,0),u=W7(i)+e9("0",e);return 0<e?a+((r=u.length)<=e?"0."+e9("0",e-r)+u:t9(u,0,r-e)+"."+t9(u,r-e)):a+u}});a={type:"image",renderElem:function(e,t,n){var r,o,i,a,u,s,l,c,f,d,p=e.src,h=e.alt,h=void 0===h?"":h,g=e.href,g=void 0===g?"":g,v=e.style,v=void 0===v?{}:v,y=v.width,y=void 0===y?"":y,v=v.height,v=void 0===v?"":v,m=I.isNodeSelected(n,e),b={},b=(y&&(b.width="100%"),v&&(b.height="100%"),pp("img",{style:b,src:p,alt:h,"data-href":g})),p=n.isDisabled();return m&&!p?(r=n,o=e,h=b,g={width:y,height:v},i=N("body"),a=a9(r,o),m=g.width,g=g.height,l=s=u=0,c=!1,f=null,d=zd(function(e){e.preventDefault();var e=e.clientX,e=s+(c?u-e:e-u),t=l*(e/s);null==f||e<=15||t<=15||(f.css("width",e+"px"),f.css("height",t+"px"))},100),p={},m&&(p.width=m),g&&(p.height=g),pp("div",{id:a,style:p,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=N(e.target);if(t.hasClass("w-e-image-dragger")){e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(c=!0);t=e.clientX;if(f=function(){var e=N("#"+a);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t,0===(t=f.find("img")).length)throw new Error("Cannot find image elem");s=t.width(),l=t.height(),i.on("mousemove",d),i.on("mouseup",w),(t=I.getHoverbar(r))&&t.hideAndClean()}}}},h,pp("div",{className:"w-e-image-dragger left-top"}),pp("div",{className:"w-e-image-dragger right-top"}),pp("div",{className:"w-e-image-dragger left-bottom"}),pp("div",{className:"w-e-image-dragger right-bottom"}))):(m=n,g=e,p=b,n=(h={width:y,height:v}).width,h=h.height,e={},n&&(e.width=n),h&&(e.height=h),pp("div",{id:a9(m,g),style:e,className:"w-e-image-container"},p));function w(e){var t,n;i.off("mousemove",d),null!=f&&(n=f.width().toFixed(2),t=f.height().toFixed(2),n={style:WS(WS({},o.style),{width:n+"px",height:t+"px"})},j.setNodes(r,n,{at:I.findPath(r,o)}),i.off("mouseup",w))}}},vD={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var e=N(e),r=e.attr("data-href")||"",r=decodeURIComponent(r);return{type:"image",src:e.attr("src")||"",alt:e.attr("alt")||"",href:r,style:{width:$S(e,"width"),height:$S(e,"height")},children:[{text:""}]}}};function u9(n,r,o,i,a){return void 0===i&&(i=""),void 0===a&&(a=""),GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).checkImage)?[4,t(o,i,a)]:[3,2];case 1:if("string"==typeof(t=e.sent()))return r.alert(t,"error"),[2,!1];if(null==t)return[2,!1];e.label=2;case 2:return[2,!0]}})})}function s9(n,r,o){return GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).parseImageSrc)?[4,t(o)]:[3,2];case 1:return[2,e.sent()];case 2:return[2,o]}})})}function l9(r,o,i,a){return void 0===i&&(i=""),void 0===a&&(a=""),GS(this,void 0,void 0,function(){var t,n;return qS(this,function(e){switch(e.label){case 0:return[4,u9("insertImage",r,o,i,a)];case 1:return e.sent()?[4,s9("insertImage",r,o)]:[2];case 2:return t=e.sent(),t={type:"image",src:_7(t),href:a,alt:i,style:{},children:[{text:""}]},null===r.selection&&r.restoreSelection(),I.getSelectedNodeByType(r,"image")&&r.move(1),!c9(r)&&(j.insertNodes(r,t),n=r.getMenuConfig("insertImage").onInsertedImage)&&n(t),[2]}})})}function c9(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!YS(P.nodes(n,{match:function(e){var t=I.getNodeType(e);return"code"===t||"pre"===t||"link"===t||"list-item"===t||!!t.startsWith("header")||"blockquote"===t||!!P.isVoid(n,e)},universal:!0}),1)[0]}function f9(){return T7("w-e-insert-image")}g9.prototype.getValue=function(e){return""},g9.prototype.isActive=function(e){return!1},g9.prototype.exec=function(e,t){},g9.prototype.isDisabled=c9,g9.prototype.getModalPositionNode=function(e){return null},g9.prototype.getModalContentElem=function(r){var o,i=this,a=this.srcInputId,u=this.altInputId,s=this.hrefInputId,e=this.buttonId,t=YS(YE(w("image.src"),a),2),n=t[0],l=N(t[1]),t=YS(YE(w("image.desc"),u),2),c=t[0],t=N(t[1]),f=YS(YE(w("image.link"),s),2),d=f[0],f=N(f[1]),p=YS(XE(e,w("common.ok")),1)[0],e=(null==this.$content&&((o=N("<div></div>")).on("click","#"+e,function(e){e.preventDefault();var e=o.find("#"+a).val().trim(),t=o.find("#"+u).val().trim(),n=o.find("#"+s).val().trim();i.insertImage(r,e,t,n),r.hidePanelOrModal()}),this.$content=o),this.$content);return e.empty(),e.append(n),e.append(c),e.append(d),e.append(p),l.val(""),t.val(""),f.val(""),setTimeout(function(){l.focus()}),e[0]},g9.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||l9(e,t,n,r))};var d9=g9,p9=(h9.prototype.getValue=function(e){return""},h9.prototype.isActive=function(e){return!1},h9.prototype.isDisabled=function(e){return null==e.selection||null==I.getSelectedNodeByType(e,"image")},h9.prototype.exec=function(e,t){this.isDisabled(e)||j.removeNodes(e,{match:function(e){return I.checkNodeType(e,"image")}})},h9);function h9(){this.title=w("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}function g9(){this.title=w("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=f9(),this.altInputId=f9(),this.hrefInputId=f9(),this.buttonId=f9()}function v9(){return T7("w-e-edit-image")}R9.prototype.getValue=function(e){return""},R9.prototype.getImageNode=function(e){return I.getSelectedNodeByType(e,"image")},R9.prototype.isActive=function(e){return!1},R9.prototype.exec=function(e,t){},R9.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"image")},R9.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},R9.prototype.getModalContentElem=function(r){var o=this,i=this.srcInputId,a=this.altInputId,u=this.hrefInputId,e=this.buttonId,t=this.getImageNode(r);if(null==t)throw new Error("Not found selected image node");var s,n=YS(YE(w("image.src"),i),2),l=n[0],c=N(n[1]),n=YS(YE(w("image.desc"),a),2),f=n[0],n=N(n[1]),d=YS(YE(w("image.link"),u),2),p=d[0],d=N(d[1]),h=YS(XE(e,w("common.ok")),1)[0],e=(null==this.$content&&((s=N("<div></div>")).on("click","#"+e,function(e){e.preventDefault();var e=s.find("#"+i).val(),t=s.find("#"+a).val(),n=s.find("#"+u).val();o.updateImage(r,e,t,n),r.hidePanelOrModal()}),this.$content=s),this.$content);e.empty(),e.append(l),e.append(f),e.append(p),e.append(h);l=t.src,f=t.alt,p=void 0===f?"":f,h=t.href,f=void 0===h?"":h;return c.val(l),n.val(p),d.val(f),setTimeout(function(){c.focus()}),e[0]},R9.prototype.updateImage=function(e,t,n,r,s){void 0===n&&(n=""),void 0===r&&(r=""),void 0===s&&(s={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(r,o,i,a,u){void 0===i&&(i=""),void 0===a&&(a=""),void 0===s&&(u={}),GS(this,void 0,void 0,function(){var t,n;return qS(this,function(e){switch(e.label){case 0:return[4,u9("editImage",r,o,i,a)];case 1:return e.sent()?[4,s9("editImage",r,o)]:[2];case 2:return n=e.sent(),null!=(t=I.getSelectedNodeByType(r,"image"))&&(t=t.style,n={src:n,alt:i,href:a,style:WS(WS({},void 0===t?{}:t),u)},j.setNodes(r,n,{match:function(e){return I.checkNodeType(e,"image")}}),t=I.getSelectedNodeByType(r,"image"),n=r.getMenuConfig("editImage").onUpdatedImage)&&n(t),[2]}})})}(e,t,n,r,s))};var y9,m9,b9,w9=R9,x9=(L9.prototype.getValue=function(e){e=I.getSelectedNodeByType(e,"image");return e&&e.href||""},L9.prototype.isActive=function(e){return!1},L9.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},L9.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},L9),h=(I9.prototype.getValue=function(e){return""},I9.prototype.isActive=function(e){return!1},I9.prototype.getSelectedNode=function(e){return I.getSelectedNodeByType(e,"image")},I9.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},I9.prototype.exec=function(e,t){var n,r;this.isDisabled(e)||null!=(r=this.getSelectedNode(e))&&((n=I.getHoverbar(e))&&n.hideAndClean(),n=r.style,r={style:WS(WS({},void 0===n?{}:n),{width:this.value,height:""})},j.setNodes(e,r,{match:function(e){return I.checkNodeType(e,"image")}}))},I9),E9=(US(N9,b9=h),N9),D9=(US(j9,m9=h),j9),S9=(US(P9,y9=h),P9),v={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},n={renderElems:[a],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e.src,r=e.alt,o=e.href,e=e.style,e=void 0===e?{}:e,i=e.width,i=void 0===i?"":i,e=e.height,e=void 0===e?"":e,a="";return i&&(a+="width: "+i+";"),e&&(a+="height: "+e+";"),'<img src="'+n+'" alt="'+(void 0===r?"":r)+'" data-href="'+(void 0===o?"":o)+'" style="'+a+'"/>'}}],parseElemsHtml:[vD],menus:[{key:"insertImage",factory:function(){return new d9},config:v},{key:"deleteImage",factory:function(){return new p9}},{key:"editImage",factory:function(){return new w9},config:v},{key:"viewImageLink",factory:function(){return new x9}},{key:"imageWidth30",factory:function(){return new E9}},{key:"imageWidth50",factory:function(){return new D9}},{key:"imageWidth100",factory:function(){return new S9}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;return e.isInline=function(e){return"image"===e.type||t(e)},e.isVoid=function(e){return"image"===e.type||n(e)},e}},c={type:"todo",renderElem:function(n,e,r){var t=!1;return r.isDisabled()&&(t=!0),pp("div",{style:{margin:"5px 0"}},pp("span",{contentEditable:!1,style:{marginRight:"0.5em"}},pp("input",{type:"checkbox",checked:n.checked,disabled:t,on:{change:function(e){var t=I.findPath(r,n),e={checked:e.target.checked};j.setNodes(r,e,{at:t})}}})),pp("span",null,e))}},C9=(_9.prototype.getValue=function(e){return""},_9.prototype.isActive=function(e){return!!I.getSelectedNodeByType(e,"todo")},_9.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!(!P.isVoid(t,e)||!P.isBlock(t,e))||(e=e.type,!!["pre","table","list-item"].includes(e))||void 0})},_9.prototype.exec=function(e,t){var n=this.isActive(e);j.setNodes(e,{type:n?"paragraph":"todo"})},_9),g={renderElems:[c],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var e=N(e).find("li"),t=N('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return t.append(n),e.children()[0].remove(),t[0].innerHTML=t[0].innerHTML+e[0].innerHTML,t[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var e=N(e),r=(0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),!1);return{type:"todo",checked:r=null!=e.find('input[type="checkbox"]').attr("checked")?!0:r,children:t}}}],menus:[{key:"todo",factory:function(){return new C9}}],editorPlugin:function(n){var r=n.deleteBackward,e=n;return e.deleteBackward=function(e){var t=n.selection;if(t&&z.isCollapsed(t)){t=I.getSelectedNodeByType(n,"todo");if(t&&0===R.string(t).length)return void j.setNodes(n,{type:"paragraph"},{mode:"highest"})}r(e)},e}},l={type:"blockquote",renderElem:function(e,t,n){return pp("blockquote",null,t)}},i={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return{type:"blockquote",children:t=0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length?[{text:e.text().replace(/\s+/gm," ")}]:t}}},A9=(T9.prototype.getValue=function(e){return""},T9.prototype.isActive=function(e){return!!I.getSelectedNodeByType(e,"blockquote")},T9.prototype.isDisabled=function(e){return null==e.selection||!YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||"blockquote"===e},universal:!0,mode:"highest"}),1)[0]},T9.prototype.exec=function(e,t){var n;this.isDisabled(e)||(n=this.isActive(e)?"paragraph":"blockquote",j.setNodes(e,{type:n},{mode:"highest"}))},T9),h={key:"blockquote",factory:function(){return new A9}},O9=x([].slice),a=s8("slice"),k9=q6("species"),B9=Y6.Array,F9=Math.max;function T9(){this.title=w("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}function _9(){this.title=w("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}function P9(){var e=null!==y9&&y9.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}function j9(){var e=null!==m9&&m9.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}function N9(){var e=null!==b9&&b9.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}function I9(){this.tag="button"}function L9(){this.title=w("image.viewLink"),this.iconSvg=mC,this.tag="button"}function R9(){this.title=w("image.edit"),this.iconSvg=yC,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=v9(),this.altInputId=v9(),this.hrefInputId=v9(),this.buttonId=v9()}r8({target:"Array",proto:!0,forced:!a},{slice:function(e,t){var n,r,o,i=H6(this),a=Q5(i),u=J5(e,a),s=J5(void 0===t?a:t,a);if(q8(i)&&(n=i.constructor,(n=rD(n)&&(n===B9||q8(n.prototype))||f5(n)&&null===(n=n[k9])?void 0:n)===B9||void 0===n))return O9(i,u,s);for(r=new(void 0===n?B9:n)(F9(s-u,0)),o=0;u<s;u++,o++)u in i&&BD(r,o,i[u]);return r.length=o,r}});var vD={renderElems:[l],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[i],menus:[h],editorPlugin:function(r){var o=r.insertBreak,i=r.insertText,a=r;return a.insertBreak=function(){var e=a.selection;if(null==e)return o();var t=YS(P.nodes(r,{match:function(e){return I.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!t)return o();var t=t[0],n=I.findPath(r,t),n=P.end(r,n);if(bc.equals(n,e.focus)){n=R.string(t);if(n&&"\n"===n.slice(-1))return r.deleteBackward("character"),void j.insertNodes(a,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}i("\n")},a}},M9=($9.prototype.exec=function(e,t){},$9.prototype.getValue=function(e){return""},$9.prototype.isActive=function(e){return!1},$9.prototype.isDisabled=function(t){return null==t.selection||!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0]},$9.prototype.getPanelContentElem=function(n){null==this.$content&&((e=N('<ul class="w-e-panel-content-emotion"></ul>')).on("click","li",function(e){var t=e.target;null!=t&&(e.preventDefault(),e=N(t).text(),n.insertText(e))}),this.$content=e);var t=this.$content;if(null==t)return document.createElement("ul");t.empty();var e=n.getMenuConfig("emotion").emotions;return(void 0===e?[]:e).forEach(function(e){e=N("<li>"+e+"</li>");t.append(e)}),t[0]},$9),v={menus:[{key:"emotion",factory:function(){return new M9},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},z9={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},c={selector:"font",preParseHtml:function(e){var t=N(e);return"font"!==HS(t)?e:((e=t.attr("size")||"")&&(t.removeAttr("size"),t.css("font-size",z9[e])),(e=t.attr("face")||"")&&(t.removeAttr("face"),t.css("font-family",e)),t[0])}},H9=x("".indexOf);function $9(){this.title=w("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}r8({target:"String",proto:!0,forced:!HC("includes")},{includes:function(e){return!!~H9(lD(z6(this)),lD(zC(e)),1<arguments.length?arguments[1]:void 0)}});function V9(e){return e&&e.Math==Math&&e}function U9(e){try{return!!e()}catch(e){return!0}}function W9(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function G9(e){return OA(AA(e),8,-1)}function q9(e){if(null==e)throw TA("Can't call method on "+e);return e}function K9(e){return FA(q9(e))}function Y9(e){return"object"==typeof e?null!==e:wA(e)}function X9(e){return wA(e)?e:void 0}function Z9(e,t){return arguments.length<2?X9(_A[e])||X9(pA[e]):_A[e]&&_A[e][t]||pA[e]&&pA[e][t]}function J9(e){return WA(q9(e))}function Q9(e){return"Symbol("+(void 0===e?"":e)+")_"+XA(++KA+YA,36)}function eA(e){var t;return qA(ZA,e)&&(NA||"string"==typeof ZA[e])||(t="Symbol."+e,NA&&qA(JA,e)?ZA[e]=JA[e]:ZA[e]=(IA&&QA?QA:eO)(t)),ZA[e]}function tA(e){return e=function(e,t){if(!Y9(e)||RA(e))return e;var n,r,o=null==(o=e[nO])?void 0:HA(o);if(o){if(o=DA(o,e,t=void 0===t?"default":t),!Y9(o)||RA(o))return o;throw tO("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&wA(n=o.toString)&&!Y9(r=DA(n,o)))return r;if(wA(n=o.valueOf)&&!Y9(r=DA(n,o)))return r;if("string"!==e&&wA(n=o.toString)&&!Y9(r=DA(n,o)))return r;throw $A("Can't convert object to primitive value")}(e,"string"),RA(e)?e:e+""}function nA(e){return oO?rO.createElement(e):{}}function rA(e,t){return(e=lO[sO(e)])==fO||e!=cO&&(wA(t)?U9(t):!!t)}function oA(e,t){return HA(e),void 0===t?e:pO?pO(e,t):function(){return e.apply(t,arguments)}}function iA(e){if(Y9(e))return e;throw gO(hO(e)+" is not an object")}function aA(r){function o(e,t,n){if(this instanceof o){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return vA(r,this,arguments)}return o.prototype=r.prototype,o}function uA(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat,c=e.proto,f=s?pA:l?pA[u]:(pA[u]||{}).prototype,d=s?_A:_A[u]||bO(_A,u,{})[u],p=d.prototype;for(n in t)i=!dO(s?n:u+(l?".":"#")+n,e.forced)&&f&&qA(f,n),o=d[n],i&&(a=e.noTargetGet?(a=wO(f,n))&&a.value:f[n]),r=i&&a?a:t[n],i&&typeof o==typeof r||(i=e.bind&&i?oA(r,pA):e.wrap&&i?aA(r):c&&wA(r)?bA(r):r,(e.sham||r&&r.sham||o&&o.sham)&&bO(i,"sham",!0),bO(d,n,i),c&&(qA(_A,o=u+"Prototype")||bO(_A,o,{}),bO(_A[o],n,r),e.real)&&p&&!p[n]&&bO(p,n,r))}function sA(e){return 0<(e=e.length)?CO(SO(e),9007199254740991):0}function lA(e,t,n){(t=tA(t))in e?mO.f(e,t,W9(0,n)):e[t]=n}function cA(){}function fA(e){if(!wA(e))return!1;try{return jO(cA,PO,e),!0}catch(e){return!1}}function dA(e,t){return new(void 0===(n=xO(e=e)&&(n=e.constructor,RO(n)&&(n===zO||xO(n.prototype))||Y9(n)&&null===(n=n[MO]))?void 0:n)?zO:n)(0===t?0:t);var n}var pA=V9("object"==typeof globalThis&&globalThis)||V9("object"==typeof window&&window)||V9("object"==typeof self&&self)||V9("object"==typeof o1&&o1)||function(){return this}()||Function("return this")(),a=Function.prototype,hA=a.apply,l=a.bind,gA=a.call,vA="object"==typeof Reflect&&Reflect.apply||(l?gA.bind(hA):function(){return gA.apply(hA,arguments)}),i=Function.prototype,h=i.bind,yA=i.call,mA=h&&h.bind(yA),bA=h?function(e){return e&&mA(yA,e)}:function(e){return e&&function(){return yA.apply(e,arguments)}},wA=function(e){return"function"==typeof e},xA=!U9(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),EA=Function.prototype.call,DA=EA.bind?EA.bind(EA):function(){return EA.apply(EA,arguments)},o1={}.propertyIsEnumerable,SA=Object.getOwnPropertyDescriptor,CA={f:SA&&!o1.call({1:2},1)?function(e){e=SA(this,e);return!!e&&e.enumerable}:o1},AA=bA({}.toString),OA=bA("".slice),kA=pA.Object,BA=bA("".split),FA=U9(function(){return!kA("z").propertyIsEnumerable(0)})?function(e){return"String"==G9(e)?BA(e,""):kA(e)}:kA,TA=pA.TypeError,_A={},PA=bA({}.isPrototypeOf),a=Z9("navigator","userAgent")||"",l=pA.process,i=pA.Deno,h=l&&l.versions||i&&i.version,o1=h&&h.v8,jA=E=!(E=o1?0<(tk=o1.split("."))[0]&&tk[0]<4?1:+(tk[0]+tk[1]):E)&&a&&(!(tk=a.match(/Edge\/(\d+)/))||74<=tk[1])&&(tk=a.match(/Chrome\/(\d+)/))?+tk[1]:E,NA=!!Object.getOwnPropertySymbols&&!U9(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jA&&jA<41}),IA=NA&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,LA=pA.Object,RA=IA?function(e){return"symbol"==typeof e}:function(e){var t=Z9("Symbol");return wA(t)&&PA(t.prototype,LA(e))},MA=pA.String,zA=pA.TypeError,HA=function(e){if(wA(e))return e;throw zA(function(e){try{return MA(e)}catch(e){return"Object"}}(e)+" is not a function")},$A=pA.TypeError,VA=Object.defineProperty,UA=pA["__core-js_shared__"]||function(t,n){try{VA(pA,t,{value:n,configurable:!0,writable:!0})}catch(e){pA[t]=n}return n}("__core-js_shared__",{}),l=I6(function(e){(e.exports=function(e,t){return UA[e]||(UA[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),WA=pA.Object,GA=bA({}.hasOwnProperty),qA=Object.hasOwn||function(e,t){return GA(J9(e),t)},KA=0,YA=Math.random(),XA=bA(1..toString),ZA=l("wks"),JA=pA.Symbol,QA=JA&&JA.for,eO=IA?JA:JA&&JA.withoutSetter||Q9,tO=pA.TypeError,nO=eA("toPrimitive"),rO=pA.document,oO=Y9(rO)&&Y9(rO.createElement),iO=!xA&&!U9(function(){return 7!=Object.defineProperty(nA("div"),"a",{get:function(){return 7}}).a}),aO=Object.getOwnPropertyDescriptor,i={f:xA?aO:function(e,t){if(e=K9(e),t=tA(t),iO)try{return aO(e,t)}catch(e){}if(qA(e,t))return W9(!DA(CA.f,e,t),e[t])}},uO=/#|\.prototype\./,sO=rA.normalize=function(e){return String(e).replace(uO,".").toLowerCase()},lO=rA.data={},cO=rA.NATIVE="N",fO=rA.POLYFILL="P",dO=rA,pO=bA(bA.bind),hO=pA.String,gO=pA.TypeError,vO=pA.TypeError,yO=Object.defineProperty,mO={f:xA?yO:function(e,t,n){if(iA(e),t=tA(t),iA(n),iO)try{return yO(e,t,n)}catch(e){}if("get"in n||"set"in n)throw vO("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bO=xA?function(e,t,n){return mO.f(e,t,W9(1,n))}:function(e,t,n){return e[t]=n,e},wO=i.f,xO=Array.isArray||function(e){return"Array"==G9(e)},EO=Math.ceil,DO=Math.floor,SO=function(e){e=+e;return e!=e||0==e?0:(0<e?DO:EO)(e)},CO=Math.min,h={},AO=(h[eA("toStringTag")]="z","[object z]"===String(h)),OO=eA("toStringTag"),kO=pA.Object,BO="Arguments"==G9(function(){return arguments}()),FO=AO?G9:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=kO(e),OO))?t:BO?G9(e):"Object"==(t=G9(e))&&wA(e.callee)?"Arguments":t},TO=bA(Function.toString),_O=(wA(UA.inspectSource)||(UA.inspectSource=function(e){return TO(e)}),UA.inspectSource),PO=[],jO=Z9("Reflect","construct"),NO=/^\s*(?:class|function)\b/,IO=bA(NO.exec),LO=!NO.exec(cA),RO=!jO||U9(function(){var e;return fA(fA.call)||!fA(Object)||!fA(function(){e=!0})||e})?function(e){if(!wA(e))return!1;switch(FO(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LO||!!IO(NO,_O(e))}:fA,MO=eA("species"),zO=pA.Array,HO=eA("species"),$O=eA("isConcatSpreadable"),VO=pA.TypeError,o1=51<=jA||!U9(function(){var e=[];return e[$O]=!1,e.concat()[0]!==e}),a=51<=jA||!U9(function(){var e=[];return(e.constructor={})[HO]=function(){return{foo:1}},1!==e.concat(Boolean).foo});uA({target:"Array",proto:!0,forced:!o1||!a},{concat:function(e){for(var t,n,r,o,i,a=J9(this),u=dA(a,0),s=0,l=-1,c=arguments.length;l<c;l++)if(o=r=-1===l?a:arguments[l],i=void 0,!Y9(o)||(void 0!==(i=o[$O])?!i:!xO(o))){if(9007199254740991<=s)throw VO("Maximum allowed index exceeded");lA(u,s++,r)}else{if(9007199254740991<s+(n=sA(r)))throw VO("Maximum allowed index exceeded");for(t=0;t<n;t++,s++)t in r&&lA(u,s,r[t])}return u.length=s,u}});function UO(e){if("Symbol"===FO(e))throw TypeError("Cannot convert a Symbol value to a string");return JO(e)}function WO(e,t){return(e=SO(e))<0?QO(e+t,0):ek(e,t)}function GO(u){return function(e,t,n){var r,o=K9(e),i=sA(o),a=WO(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function qO(e,t){var n,r=K9(e),o=0,i=[];for(n in r)!qA(nk,n)&&qA(r,n)&&ok(i,n);for(;t.length>o;)!qA(r,n=t[o++])||~rk(i,n)||ok(i,n);return i}function KO(e){return lk[e]||(lk[e]=Q9(e))}function YO(){}function XO(e){e.write(fk("")),e.close();var t=e.parentWindow.Object;return e=null,t}var ZO,JO=pA.String,QO=Math.max,ek=Math.min,tk={includes:GO(!0),indexOf:GO(!1)},nk={},rk=tk.indexOf,ok=bA([].push),ik=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ak=Object.keys||function(e){return qO(e,ik)},uk=xA?Object.defineProperties:function(e,t){iA(e);for(var n,r=K9(t),o=ak(t),i=o.length,a=0;a<i;)mO.f(e,n=o[a++],r[n]);return e},sk=Z9("document","documentElement"),lk=l("keys"),ck=KO("IE_PROTO"),fk=function(e){return"<script>"+e+"<\/script>"},dk=function(){try{ZO=new ActiveXObject("htmlfile")}catch(e){}var e,t;dk="undefined"==typeof document||document.domain&&ZO?XO(ZO):((t=nA("iframe")).style.display="none",sk.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(fk("document.F=Object")),e.close(),e.F);for(var n=ik.length;n--;)delete dk.prototype[ik[n]];return dk()};nk[ck]=!0;function pk(e,t,n,r){r&&r.enumerable?e[t]=n:bO(e,t,n)}function hk(e){var t=_A.Symbol||(_A.Symbol={});qA(t,e)||$k(t,e,{value:Hk.f(e)})}function gk(e,t,n,r){e&&(n=n?e:e.prototype,qA(n,Wk)||Uk(n,Wk,{configurable:!0,value:t}),r)&&!AO&&bO(n,"toString",Vk)}function vk(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=J9(e),u=FA(a),s=oA(t,n),l=sA(u),c=0,t=r||dA,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:qk(f,o)}else switch(d){case 4:return!1;case 7:qk(f,o)}return y?-1:g||v?v:f}}function yk(e,t){var n=sB[e]=Pk(eB);return Xk(n,{type:"Symbol",tag:e,description:t}),xA||(n.description=t),n}function mk(e,t,n){return e===Jk&&mk(lB,t,n),iA(e),t=tA(t),iA(n),(qA(sB,t)?(n.enumerable?(qA(e,Yk)&&e[Yk][t]&&(e[Yk][t]=!1),n=Pk(n,{enumerable:W9(0,!1)})):(qA(e,Yk)||oB(e,Yk,W9(1,{})),e[Yk][t]=!0),pB):oB)(e,t,n)}function bk(t,e){iA(t);var n=K9(e),e=ak(n).concat(Dk(n));return Kk(e,function(e){xA&&!DA(wk,n,e)||mk(t,e,n[e])}),t}function wk(e){var e=tA(e),t=DA(aB,this,e);return!(this===Jk&&qA(sB,e)&&!qA(lB,e))&&(!(t||!qA(this,e)||!qA(sB,e)||qA(this,Yk)&&this[Yk][e])||t)}function xk(e,t){var n,e=K9(e),t=tA(t);if(e!==Jk||!qA(sB,t)||qA(lB,t))return!(n=rB(e,t))||!qA(sB,t)||qA(e,Yk)&&e[Yk][t]||(n.enumerable=!0),n}function Ek(e){var e=iB(K9(e)),t=[];return Kk(e,function(e){qA(sB,e)||qA(nk,e)||uB(t,e)}),t}function Dk(e){var t=e===Jk,e=iB(t?lB:K9(e)),n=[];return Kk(e,function(e){!qA(sB,e)||t&&!qA(Jk,e)||uB(n,sB[e])}),n}var Sk,Ck,Ak,Ok,kk,Bk,Fk,Tk,_k,Pk=Object.create||function(e,t){var n;return null!==e?(YO.prototype=iA(e),n=new YO,YO.prototype=null,n[ck]=e):n=dk(),void 0===t?n:uk(n,t)},jk=ik.concat("length","prototype"),E={f:Object.getOwnPropertyNames||function(e){return qO(e,jk)}},Nk=pA.Array,Ik=Math.max,Lk=E.f,Rk="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h={f:function(e){if(!Rk||"Window"!=G9(e))return Lk(K9(e));var t=e;try{return Lk(t)}catch(t){for(var n=Rk,e=sA(n),r=WO(void 0,e),o=WO(e,e),i=Nk(Ik(o-r,0)),a=0;r<o;r++,a++)lA(i,a,n[r]);return i.length=a,i}}},Mk={f:Object.getOwnPropertySymbols},zk=bA([].slice),Hk={f:eA},$k=mO.f,Vk=AO?{}.toString:function(){return"[object "+FO(this)+"]"},Uk=mO.f,Wk=eA("toStringTag"),o1=pA.WeakMap,a=wA(o1)&&/native code/.test(_O(o1)),Gk=pA.TypeError,tk=pA.WeakMap,o1=(Fk=a||UA.state?(Sk=UA.state||(UA.state=new tk),Ck=bA(Sk.get),Ak=bA(Sk.has),Ok=bA(Sk.set),kk=function(e,t){if(Ak(Sk,e))throw new Gk("Object already initialized");return t.facade=e,Ok(Sk,e,t),t},Bk=function(e){return Ck(Sk,e)||{}},function(e){return Ak(Sk,e)}):(Tk=KO("state"),nk[Tk]=!0,kk=function(e,t){if(qA(e,Tk))throw new Gk("Object already initialized");return t.facade=e,bO(e,Tk,t),t},Bk=function(e){return qA(e,Tk)?e[Tk]:{}},function(e){return qA(e,Tk)}),{set:kk,get:Bk,has:Fk,enforce:function(e){return Fk(e)?Bk(e):kk(e,{})},getterFor:function(t){return function(e){if(Y9(e)&&(e=Bk(e)).type===t)return e;throw Gk("Incompatible receiver, "+t+" required")}}}),qk=bA([].push),Kk=[vk(0),vk(1),vk(2),vk(3),vk(4),vk(5),vk(6),vk(7)][0],Yk=KO("hidden"),a=eA("toPrimitive"),Xk=o1.set,Zk=o1.getterFor("Symbol"),Jk=Object.prototype,Qk=pA.Symbol,eB=Qk&&Qk.prototype,tB=pA.TypeError,tk=pA.QObject,nB=Z9("JSON","stringify"),rB=i.f,oB=mO.f,iB=h.f,aB=CA.f,uB=bA([].push),sB=l("symbols"),lB=l("op-symbols"),cB=l("string-to-symbol-registry"),fB=l("symbol-to-string-registry"),l=l("wks"),dB=!tk||!tk.prototype||!tk.prototype.findChild,pB=xA&&U9(function(){return 7!=Pk(oB({},"a",{get:function(){return oB(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=rB(Jk,t);r&&delete Jk[t],oB(e,t,n),r&&e!==Jk&&oB(Jk,t,r)}:oB;NA||(eB=(Qk=function(){if(PA(eB,this))throw tB("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?UO(arguments[0]):void 0,t=Q9(e),n=function(e){this===Jk&&DA(n,lB,e),qA(this,Yk)&&qA(this[Yk],t)&&(this[Yk][t]=!1),pB(this,t,W9(1,e))};return xA&&dB&&pB(Jk,t,{configurable:!0,set:n}),yk(t,e)}).prototype,pk(eB,"toString",function(){return Zk(this).tag}),pk(Qk,"withoutSetter",function(e){return yk(Q9(e),e)}),CA.f=wk,mO.f=mk,i.f=xk,E.f=h.f=Ek,Mk.f=Dk,Hk.f=function(e){return yk(eA(e),e)},xA&&oB(eB,"description",{configurable:!0,get:function(){return Zk(this).description}})),uA({global:!0,wrap:!0,forced:!NA,sham:!NA},{Symbol:Qk}),Kk(ak(l),function(e){hk(e)}),uA({target:"Symbol",stat:!0,forced:!NA},{for:function(e){var t,e=UO(e);return qA(cB,e)?cB[e]:(t=Qk(e),cB[e]=t,fB[t]=e,t)},keyFor:function(e){if(!RA(e))throw tB(e+" is not a symbol");if(qA(fB,e))return fB[e]},useSetter:function(){dB=!0},useSimple:function(){dB=!1}}),uA({target:"Object",stat:!0,forced:!NA,sham:!xA},{create:function(e,t){return void 0===t?Pk(e):bk(Pk(e),t)},defineProperty:mk,defineProperties:bk,getOwnPropertyDescriptor:xk}),uA({target:"Object",stat:!0,forced:!NA},{getOwnPropertyNames:Ek,getOwnPropertySymbols:Dk}),uA({target:"Object",stat:!0,forced:U9(function(){Mk.f(1)})},{getOwnPropertySymbols:function(e){return Mk.f(J9(e))}}),nB&&(tk=!NA||U9(function(){var e=Qk();return"[null]"!=nB([e])||"{}"!=nB({a:e})||"{}"!=nB(Object(e))}),uA({target:"JSON",stat:!0,forced:tk},{stringify:function(e,t,n){var r=zk(arguments),o=t;if((Y9(t)||void 0!==e)&&!RA(e))return xO(t)||(t=function(e,t){if(wA(o)&&(t=DA(o,this,e,t)),!RA(t))return t}),r[1]=t,vA(nB,null,r)}})),eB[a]||(_k=eB.valueOf,pk(eB,a,function(e){return DA(_k,this)})),gk(Qk,"Symbol"),nk[Yk]=!0,hk("asyncIterator"),hk("hasInstance"),hk("isConcatSpreadable"),hk("iterator"),hk("match"),hk("matchAll"),hk("replace"),hk("search"),hk("species"),hk("split"),hk("toPrimitive"),hk("toStringTag"),hk("unscopables"),gk(pA.JSON,"JSON",!0);var i=_A.Symbol,E=Function.prototype,h=xA&&Object.getOwnPropertyDescriptor,l=qA(E,"name"),tk={EXISTS:l,PROPER:l&&"something"===function(){}.name,CONFIGURABLE:l&&(!xA||h(E,"name").configurable)},a=!U9(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hB=KO("IE_PROTO"),gB=pA.Object,vB=gB.prototype,yB=a?gB.getPrototypeOf:function(e){var t,e=J9(e);return qA(e,hB)?e[hB]:(t=e.constructor,wA(t)&&e instanceof t?t.prototype:e instanceof gB?vB:null)},mB=eA("iterator"),l=!1;[].keys&&("next"in(h=[].keys())?(E=yB(yB(h)))!==Object.prototype&&(bB=E):l=!0);var bB=null==bB||U9(function(){var e={};return bB[mB].call(e)!==e})?{}:Pk(bB),a=(wA(bB[mB])||pk(bB,mB,function(){return this}),{IteratorPrototype:bB,BUGGY_SAFARI_ITERATORS:l}),wB=a.IteratorPrototype;if((pA.String,pA.TypeError,!Object.setPrototypeOf)&&"__proto__"in{})try{bA(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)({},[])}catch(e){}function xB(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!SB&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=Pk(wB,{next:W9(1,r)}),gk(g,s,!1,!0);var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[CB]||d["@@iterator"]||o&&d[o],h=!SB&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=yB(g.call(new e)))!==Object.prototype&&s.next&&(gk(s,r,!0,!0),r,0),DB&&"values"==o&&p&&"values"!==p.name&&(f=!0,h=function(){return DA(p,this)}),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!SB&&!f&&c in d||pk(d,c,l[c]);else uA({target:t,proto:!0,forced:SB||f},l);a&&d[CB]!==h&&pk(d,CB,h,{name:o})}var EB,DB=tk.PROPER,SB=a.BUGGY_SAFARI_ITERATORS,CB=eA("iterator"),AB=o1.set,OB=o1.getterFor("Array Iterator"),kB=(xB(Array,"Array",function(e,t){AB(this,{type:"Array Iterator",target:K9(e),index:0,kind:t})},function(){var e=OB(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),eA("toStringTag"));for(EB in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var BB=pA[EB],BB=BB&&BB.prototype;BB&&FO(BB)!==kB&&bO(BB,kB,EB),EB,0}function FB(o){return function(e,t){var n,e=UO(q9(e)),t=SO(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=HB(e,t))<55296||56319<n||t+1===r||(r=HB(e,t+1))<56320||57343<r?o?zB(e,t):n:o?$B(e,t,t+2):r-56320+(n-55296<<10)+65536}}var TB,_B,PB,jB,NB,IB,LB,RB,h=i,MB=(hk("asyncDispose"),hk("dispose"),hk("matcher"),hk("metadata"),hk("observable"),hk("patternMatch"),hk("replaceAll"),h),zB=bA("".charAt),HB=bA("".charCodeAt),$B=bA("".slice),VB=(FB(!1),FB(!0)),UB=o1.set,WB=o1.getterFor("String Iterator"),GB=(xB(String,"String",function(e){UB(this,{type:"String Iterator",string:UO(e),index:0})},function(){var e=WB(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=VB(t,n),e.index+=t.length,{value:t,done:!1})}),Hk.f("iterator")),qB=(E=I6(function(t){function n(e){return t.exports=n="function"==typeof MB&&"symbol"==typeof GB?function(e){return typeof e}:function(e){return e&&"function"==typeof MB&&e.constructor===MB&&e!==MB.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0}))&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E,l=E8.EXISTS,tk=K5.f,a=Function.prototype,KB=x(a.toString),YB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,XB=x(YB.exec),i=(X6&&!l&&tk(a,"name",{configurable:!0,get:function(){try{return XB(YB,KB(this))[1]}catch(e){return""}}}),SF.prototype.isActive=function(e){return!1},SF.prototype.getValue=function(e){var t=this.mark,e=P.marks(e);return e&&e[t]?e[t]:""},SF.prototype.isDisabled=function(t){return null==t.selection||(this.mark,!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0])},SF.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},SF),ZB=(US(DF,RB=i),DF.prototype.getOptions=function(e){var n=[],t=e.getMenuConfig(this.mark).fontSizeList,t=void 0===t?[]:t,r=(n.push({text:w("fontSize.default"),value:""}),t.forEach(function(e){var t;"string"==typeof e?n.push({text:e,value:e}):"object"===qB(e)&&(t=e.name,e=e.value,n.push({text:t,value:e}))}),this.getValue(e));return n.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),n},DF),JB=(US(EF,LB=i),EF.prototype.getOptions=function(e){var n=[],t=e.getMenuConfig(this.mark).fontFamilyList,t=void 0===t?[]:t,r=(n.push({text:w("fontFamily.default"),value:""}),t.forEach(function(e){var t;"string"==typeof e?n.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}}):"object"===qB(e)&&(t=e.name,e=e.value,n.push({text:t,value:e,styleForRenderMenuList:{"font-family":e}}))}),this.getValue(e));return n.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),n},EF),h={renderStyle:function(e,t){var n=e.fontSize,e=e.fontFamily;return n&&b7(t,{fontSize:n}),e&&b7(t,{fontFamily:e}),t},styleToHtml:function(e,t){var n,r;return H.isText(e)&&(r=e.fontSize,e=e.fontFamily,r||e)?(!MS(t)&&"span"===HS(n=N(t))||(n=N("<span>"+t+"</span>")),r&&n.css("font-size",r),e&&n.css("font-family",e),zS(n)):t},preParseHtml:[c],parseStyleHtml:function(e,t,n){var r,o,i,a,e=N(e);return H.isText(t)?(r=t,a=void 0===(a=n.getMenuConfig("fontSize").fontSizeList)?[]:a,o=$S(e,"font-size"),a=a.find(function(e){return e.value&&e.value===o})||a.includes(o),o&&a&&(r.fontSize=o),n=void 0===(a=n.getMenuConfig("fontFamily").fontFamilyList)?[]:a,i=$S(e,"font-family").replace(/"/g,""),a=n.find(function(e){return e.value&&e.value===i})||n.includes(i),i&&a&&(r.fontFamily=i),r):t},menus:[{key:"fontSize",factory:function(){return new ZB},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new JB},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},o1={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var e=N(e),t=$S(e,"padding-left");return/\dem/.test(t)&&e.css("text-indent","2em"),/\dpx/.test(t)&&parseInt(t,10)%32==0&&e.css("text-indent","2em"),e[0]}},E=(xF.prototype.getValue=function(e){e=YS(P.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null!=e&&YS(e,1)[0].indent||""},xF.prototype.isActive=function(e){return!1},xF.prototype.getMatchNode=function(e){e=YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},xF),QB=(US(wF,IB=E),wF.prototype.isDisabled=function(e){e=this.getMatchNode(e);return null==e||!e.indent},wF.prototype.exec=function(e,t){j.setNodes(e,{indent:null},{match:function(e){return _.isElement(e)}})},wF),eF=(US(bF,NB=E),bF.prototype.isDisabled=function(e){e=this.getMatchNode(e);return null==e||!!e.indent},bF.prototype.exec=function(e,t){j.setNodes(e,{indent:"2em"},{match:function(e){return _.isElement(e)},mode:"highest"})},bF),l={renderStyle:function(e,t){var n;return _.isElement(e)?(n=t,(e=e.indent)&&b7(n,{textIndent:e}),n):t},styleToHtml:function(e,t){var n;return _.isElement(e)&&(e=e.indent)?((n=N(t)).css("text-indent",e),zS(n)):t},preParseHtml:[o1],parseStyleHtml:function(e,t,n){var r,o,e=N(e);return _.isElement(t)?(r=t,e=$S(e,"text-indent"),o=parseInt(e,10),e&&0<o&&(r.indent=e),r):t},menus:[{key:"indent",factory:function(){return new eF}},{key:"delIndent",factory:function(){return new QB}}]},tk=(mF.prototype.getValue=function(e){return""},mF.prototype.isActive=function(e){return!1},mF.prototype.getMatchNode=function(e){e=YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||"blockquote"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},mF.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!(!P.isVoid(t,e)||!P.isBlock(t,e))||(e=e.type,!!["pre","code"].includes(e))||void 0})},mF),tF=(US(yF,jB=tk),yF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"left"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},yF),nF=(US(vF,PB=tk),vF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"right"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},vF),rF=(US(gF,_B=tk),gF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"center"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},gF),oF=(US(hF,TB=tk),hF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"justify"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},hF),a={renderStyle:function(e,t){var n;return _.isElement(e)?(n=t,(e=e.textAlign)&&b7(n,{textAlign:e}),n):t},styleToHtml:function(e,t){var n;return _.isElement(e)&&(e=e.textAlign)?((n=N(t)).css("text-align",e),zS(n)):t},parseStyleHtml:function(e,t,n){var r,e=N(e);return _.isElement(t)?(r=t,(e=$S(e,"text-align"))&&(r.textAlign=e),r):t},menus:[{key:"justifyLeft",factory:function(){return new tF}},{key:"justifyRight",factory:function(){return new nF}},{key:"justifyCenter",factory:function(){return new rF}},{key:"justifyJustify",factory:function(){return new oF}}]},iF=(pF.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,n=void 0===n?[]:n,r=(t.push({text:w("lineHeight.default"),value:""}),n.forEach(function(e){t.push({text:e,value:e})}),this.getValue(e));return t.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),t},pF.prototype.getMatchNode=function(e){e=YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return!!e.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(e)},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},pF.prototype.isActive=function(e){return!1},pF.prototype.getValue=function(e){e=this.getMatchNode(e);return null!=e&&_.isElement(e)&&e.lineHeight||""},pF.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},pF.prototype.exec=function(e,t){j.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},pF),i={renderStyle:function(e,t){var n;return _.isElement(e)?(n=t,(e=e.lineHeight)&&b7(n,{lineHeight:e}),n):t},styleToHtml:function(e,t){var n;return _.isElement(e)&&(e=e.lineHeight)?((n=N(t)).css("line-height",e),zS(n)):t},parseStyleHtml:function(e,t,n){var r,e=N(e);return _.isElement(t)?(r=t,n=void 0===(n=n.getMenuConfig("lineHeight").lineHeightList)?[]:n,(e=$S(e,"line-height"))&&n.includes(e)&&(r.lineHeight=e),r):t},menus:[{key:"lineHeight",factory:function(){return new iF},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},aF=(dF.prototype.getValue=function(e){return""},dF.prototype.isActive=function(e){return!1},dF.prototype.isDisabled=function(e){return null==e.selection},dF.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},dF),uF=(fF.prototype.getValue=function(e){return""},fF.prototype.isActive=function(e){return!1},fF.prototype.isDisabled=function(e){return null==e.selection},fF.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},fF),c={menus:[{key:"redo",factory:function(){return new aF}},{key:"undo",factory:function(){return new uF}}]},E={type:"divider",renderElem:function(e,t,n){return Zd("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:I.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Zd("hr")])}},sF=(cF.prototype.getValue=function(e){return""},cF.prototype.isActive=function(e){return!1},cF.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!!t.isVoid(e)||"table"===(e=I.getNodeType(e))||"pre"===e||void 0})},cF.prototype.exec=function(e,t){j.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},cF),o1={renderElems:[E],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new sF}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var e=YS(e,2),t=e[0],e=e[1];if("divider"!==I.getNodeType(t))return n([t,e]);I.isLastNode(r,t)&&j.insertNodes(r,I.genEmptyParagraph(),{at:[e[0]+1]})},r}},lF=f.map;function cF(){this.title=w("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}function fF(){this.title=w("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}function dF(){this.title=w("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}function pF(){this.title=w("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}function hF(){var e=null!==TB&&TB.apply(this,arguments)||this;return e.title=w("justify.justify"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',e}function gF(){var e=null!==_B&&_B.apply(this,arguments)||this;return e.title=w("justify.center"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}function vF(){var e=null!==PB&&PB.apply(this,arguments)||this;return e.title=w("justify.right"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}function yF(){var e=null!==jB&&jB.apply(this,arguments)||this;return e.title=w("justify.left"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}function mF(){this.tag="button"}function bF(){var e=null!==NB&&NB.apply(this,arguments)||this;return e.title=w("indent.increase"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',e}function wF(){var e=null!==IB&&IB.apply(this,arguments)||this;return e.title=w("indent.decrease"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',e}function xF(){this.tag="button"}function EF(){var e=null!==LB&&LB.apply(this,arguments)||this;return e.title=w("fontFamily.title"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',e.mark="fontFamily",e.selectPanelWidth=150,e}function DF(){var e=null!==RB&&RB.apply(this,arguments)||this;return e.title=w("fontSize.title"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',e.mark="fontSize",e}function SF(){this.tag="select",this.width=80}r8({target:"Array",proto:!0,forced:!s8("map")},{map:function(e){return lF(this,e,1<arguments.length?arguments[1]:void 0)}});var CF=x([].join),E=s5!=Object,f=rC("join",","),AF=(r8({target:"Array",proto:!0,forced:E||!f},{join:function(e){return CF(H6(this),void 0===e?",":e)}}),OF.prototype.getSelectCodeElem=function(e){var t=I.getSelectedNodeByType(e,"code");return null==t||null==(e=I.getParentNode(e,t))||"pre"!==I.getNodeType(e)?null:t},OF.prototype.getValue=function(e){e=this.getSelectCodeElem(e);return null!=e&&e.language||""},OF.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},OF.prototype.isDisabled=function(t){var e;return null==t.selection||!!(e=I.getSelectedElems(t)).some(function(e){return t.isVoid(e)})||!e.some(function(e){e=I.getNodeType(e);if("pre"===e||"paragraph"===e)return!0})},OF.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},OF.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);null!=t&&(t=R.string(t),j.removeNodes(e,{mode:"highest"}),t=t.split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}}),j.insertNodes(e,t,{mode:"highest"}))},OF.prototype.changeToCodeBlock=function(t,e){var n,r,o=[],i=P.nodes(t,{match:function(e){return t.children.includes(e)},universal:!0});try{for(var a=KS(i),u=a.next();!u.done;u=a.next()){var s=YS(u.value,1)[0];s&&o.push(R.string(s))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}j.removeNodes(t,{mode:"highest"});i={type:"pre",children:[{type:"code",language:e,children:[{text:o.join("\n")}]}]};j.insertNodes(t,i,{mode:"highest"})},OF),E={key:"codeBlock",factory:function(){return new AF}};function OF(){this.title=w("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}r8({target:"String",proto:!0,forced:JS("anchor")},{anchor:function(e){return ZS(this,"a","name",e)}}),DD("match",function(r,u,s){return[function(e){var t=z6(this),n=null==e?void 0:V6(e,r);return n?J6(n,e,t):new RegExp(e)[r](lD(t))},function(e){var t=W5(this),n=lD(e),e=s(u,t,n);if(e.done)return e.value;if(!t.global)return AD(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=AD(t,n));){var a=lD(a[0]);""===(o[i]=a)&&(t.lastIndex=CD(n,F8(t.lastIndex),r)),i++}return 0===i?null:o}]});var f={menus:[E],editorPlugin:function(e){var n=e.insertBreak,r=e.normalizeNode,o=e.insertData,i=(e.insertNode,e);return i.insertBreak=function(){var e=I.getSelectedNodeByType(i,"code");if(null!=e){e=null==(t=i.selection)||(e=R.string(e),t=t.anchor.offset,0===(t=(e=e.slice(0,t).split("\n")).length))?"":e[t-1];if(e){var t=e.match(/^\s+/);if(null!=t&&null!=t[0])return e=t[0],void i.insertText("\n"+e)}i.insertText("\n")}else n()},i.normalizeNode=function(e){var e=YS(e,2),t=e[0],e=e[1],n=I.getNodeType(t);return"code"===n&&e.length<=1&&j.setNodes(i,{type:"paragraph"},{at:e}),"pre"===n&&(I.isLastNode(i,t)&&j.insertNodes(i,I.genEmptyParagraph(),{at:[e[0]+1]}),"code"!==I.getNodeType(t.children[0]))&&(j.unwrapNodes(i),j.setNodes(i,{type:"paragraph"},{mode:"highest"})),r([t,e])},i.insertData=function(e){var t;null!=I.getSelectedNodeByType(i,"code")?(t=e.getData("text/plain"),P.insertText(i,t)):o(e)},i},renderElems:[{type:"pre",renderElem:function(e,t,n){return pp("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return pp("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t,n=N(e);return"code"!==HS(n)||0===(t=n.find("xmp")).length?e:(e=t.text(),t.remove(),n.text(e),n[0])}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:N(e)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return{type:"pre",children:(t=0===(t=t.filter(function(e){return"code"===I.getNodeType(e)})).length?[{type:"code",language:"",children:[{text:e[0].textContent||""}]}]:t).filter(function(e){return"code"===I.getNodeType(e)})}}}]},kF=(TF.prototype.getValue=function(e){return""},TF.prototype.isActive=function(e){return e.isFullScreen},TF.prototype.isDisabled=function(e){return!1},TF.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},TF),E={menus:[{key:"fullScreen",factory:function(){return new kF}}]},BF=(FF.prototype.getValue=function(e){return""},FF.prototype.isActive=function(e){return!1},FF.prototype.isDisabled=function(e){e=e.selection;return null==e||!!z.isExpanded(e)},FF.prototype.exec=function(e,t){var n=e.selection;null!=n&&(n=[n.anchor.path[0]],j.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:n}),e.select(P.start(e,n)))},FF),jD=[jD,u,h,l,a,i,n,o1,v,d,f,vD,p,s,g,c,E,{menus:[{key:"enter",factory:function(){return new BF}}]}];function FF(){this.title=w("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}function TF(){this.title=w("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}g6("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),g6("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function _F(e){var t={exports:{}};return e(t,t.exports),t.exports}function PF(e){return e&&e.Math==Math&&e}function jF(e){try{return!!e()}catch(e){return!0}}function NF(e){return rT(nT(e),8,-1)}function IF(e){return aT(sT(e))}function LF(e){return dT(sT(e))}function RF(e){return"Symbol("+(void 0===e?"":e)+")_"+yT(++gT+vT,36)}function MF(e,t){return arguments.length<2?(n=JF[e],mT(n)?n:void 0):JF[e]&&JF[e][t];var n}function zF(e){var t;return hT(ET,e)&&(wT||"string"==typeof ET[e])||(t="Symbol."+e,wT&&hT(DT,e)?ET[e]=DT[e]:ET[e]=(xT&&ST?ST:CT)(t)),ET[e]}function HF(e){return TT?FT.createElement(e):{}}function $F(e){return e=function(e,t){if(!AT(e)||LT(e))return e;var n,r,o=$T(e,WT);if(o){if(o=jT(o,e,t=void 0===t?"default":t),!AT(o)||LT(o))return o;throw UT("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&mT(n=o.toString)&&!AT(r=jT(n,o)))return r;if(mT(n=o.valueOf)&&!AT(r=jT(n,o)))return r;if("string"!==e&&mT(n=o.toString)&&!AT(r=jT(n,o)))return r;throw VT("Can't convert object to primitive value")}(e,"string"),LT(e)?e:e+""}function VF(e,t){return(e=ZT(e))<0?JT(e+t,0):QT(e,t)}function UF(e){return t_(e.length)}function WF(u){return function(e,t,n){var r,o=IF(e),i=UF(o),a=VF(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function GF(e,t){var n,r=IF(e),o=0,i=[];for(n in r)!hT(n_,n)&&hT(r,n)&&o_(i,n);for(;t.length>o;)!hT(r,n=t[o++])||~r_(i,n)||o_(i,n);return i}function qF(e){return l_[e]||(l_[e]=RF(e))}function KF(){}function YF(e){e.write(f_("")),e.close();var t=e.parentWindow.Object;return e=null,t}function XF(e){g_[h_][e]=!0}var ZF,JF=PF("object"==typeof globalThis&&globalThis)||PF("object"==typeof window&&window)||PF("object"==typeof self&&self)||PF("object"==typeof u&&u)||function(){return this}()||Function("return this")(),h=Function.prototype,l=h.bind,QF=h.call,eT=l&&l.bind(QF),tT=l?function(e){return e&&eT(QF,e)}:function(e){return e&&function(){return QF.apply(e,arguments)}},nT=tT({}.toString),rT=tT("".slice),oT=JF.Object,iT=tT("".split),aT=jF(function(){return!oT("z").propertyIsEnumerable(0)})?function(e){return"String"==NF(e)?iT(e,""):oT(e)}:oT,uT=JF.TypeError,sT=function(e){if(null==e)throw uT("Can't call method on "+e);return e},lT=Object.defineProperty,cT=function(t,n){try{lT(JF,t,{value:n,configurable:!0,writable:!0})}catch(e){JF[t]=n}return n},fT=JF["__core-js_shared__"]||cT("__core-js_shared__",{}),a=_F(function(e){(e.exports=function(e,t){return fT[e]||(fT[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dT=JF.Object,pT=tT({}.hasOwnProperty),hT=Object.hasOwn||function(e,t){return pT(LF(e),t)},gT=0,vT=Math.random(),yT=tT(1..toString),mT=function(e){return"function"==typeof e},i=MF("navigator","userAgent")||"",n=JF.process,o1=JF.Deno,v=n&&n.versions||o1&&o1.version,d=v&&v.v8,bT=D=!(D=d?0<(TP=d.split("."))[0]&&TP[0]<4?1:+(TP[0]+TP[1]):D)&&i&&(!(TP=i.match(/Edge\/(\d+)/))||74<=TP[1])&&(TP=i.match(/Chrome\/(\d+)/))?+TP[1]:D,wT=!!Object.getOwnPropertySymbols&&!jF(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bT&&bT<41}),xT=wT&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ET=a("wks"),DT=JF.Symbol,ST=DT&&DT.for,CT=xT?DT:DT&&DT.withoutSetter||RF,AT=function(e){return"object"==typeof e?null!==e:mT(e)},OT=JF.String,kT=JF.TypeError,BT=function(e){if(AT(e))return e;throw kT(OT(e)+" is not an object")},f=!jF(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),FT=JF.document,TT=AT(FT)&&AT(FT.createElement),_T=!f&&!jF(function(){return 7!=Object.defineProperty(HF("div"),"a",{get:function(){return 7}}).a}),PT=Function.prototype.call,jT=PT.bind?PT.bind(PT):function(){return PT.apply(PT,arguments)},NT=tT({}.isPrototypeOf),IT=JF.Object,LT=xT?function(e){return"symbol"==typeof e}:function(e){var t=MF("Symbol");return mT(t)&&NT(t.prototype,IT(e))},RT=JF.String,MT=function(e){try{return RT(e)}catch(e){return"Object"}},zT=JF.TypeError,HT=function(e){if(mT(e))return e;throw zT(MT(e)+" is not a function")},$T=function(e,t){e=e[t];return null==e?void 0:HT(e)},VT=JF.TypeError,UT=JF.TypeError,WT=zF("toPrimitive"),GT=JF.TypeError,qT=Object.defineProperty,KT={f:f?qT:function(e,t,n){if(BT(e),t=$F(t),BT(n),_T)try{return qT(e,t,n)}catch(e){}if("get"in n||"set"in n)throw GT("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},YT=Math.ceil,XT=Math.floor,ZT=function(e){e=+e;return e!=e||0==e?0:(0<e?XT:YT)(e)},JT=Math.max,QT=Math.min,e_=Math.min,t_=function(e){return 0<e?e_(ZT(e),9007199254740991):0},vD={includes:WF(!0),indexOf:WF(!1)},n_={},r_=vD.indexOf,o_=tT([].push),i_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a_=Object.keys||function(e){return GF(e,i_)},u_=f?Object.defineProperties:function(e,t){BT(e);for(var n,r=IF(t),o=a_(t),i=o.length,a=0;a<i;)KT.f(e,n=o[a++],r[n]);return e},s_=MF("document","documentElement"),l_=a("keys"),c_=qF("IE_PROTO"),f_=function(e){return"<script>"+e+"<\/script>"},d_=function(){try{ZF=new ActiveXObject("htmlfile")}catch(e){}var e,t;d_="undefined"==typeof document||document.domain&&ZF?YF(ZF):((t=HF("iframe")).style.display="none",s_.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f_("document.F=Object")),e.close(),e.F);for(var n=i_.length;n--;)delete d_.prototype[i_[n]];return d_()},p_=(n_[c_]=!0,Object.create||function(e,t){var n;return null!==e?(KF.prototype=BT(e),n=new KF,KF.prototype=null,n[c_]=e):n=d_(),void 0===t?n:u_(n,t)}),h_=zF("unscopables"),g_=Array.prototype,v_=(null==g_[h_]&&KT.f(g_,h_,{configurable:!0,value:p_(null)}),{}),y_=tT(Function.toString);mT(fT.inspectSource)||(fT.inspectSource=function(e){return y_(e)});function m_(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}var b_,w_,x_,E_,D_,S_,C_,A_,O_=fT.inspectSource,p=JF.WeakMap,s=mT(p)&&/native code/.test(O_(p)),k_=f?function(e,t,n){return KT.f(e,t,m_(1,n))}:function(e,t,n){return e[t]=n,e},B_=JF.TypeError,g=JF.WeakMap;C_=s||fT.state?(b_=fT.state||(fT.state=new g),w_=tT(b_.get),x_=tT(b_.has),E_=tT(b_.set),D_=function(e,t){if(x_(b_,e))throw new B_("Object already initialized");return t.facade=e,E_(b_,e,t),t},S_=function(e){return w_(b_,e)||{}},function(e){return x_(b_,e)}):(A_=qF("state"),n_[A_]=!0,D_=function(e,t){if(hT(e,A_))throw new B_("Object already initialized");return t.facade=e,k_(e,A_,t),t},S_=function(e){return hT(e,A_)?e[A_]:{}},function(e){return hT(e,A_)});function F_(e,t){return(e=uP[aP(e)])==lP||e!=sP&&(mT(t)?jF(t):!!t)}function T_(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?JF:s?JF[a]||cT(a,{}):(JF[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=fP(n,r))&&i.value:n[r],!cP(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;oP(o,i)}(e.sham||i&&i.sham)&&k_(o,"sham",!0),J_(n,r,o,e)}}function __(e,t,n){e&&!hT(e=n?e:e.prototype,mP)&&yP(e,mP,{configurable:!0,value:t})}function P_(){return this}function j_(){return this}function N_(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!AP&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=p_(bP,{next:m_(1,r)}),__(g,s,!1),v_[s]=P_;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[OP]||d["@@iterator"]||o&&d[o],h=!AP&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=gP(g.call(new e)))!==Object.prototype&&s.next&&(gP(s)!==CP&&(EP?EP(s,CP):mT(s[OP])||J_(s,OP,j_)),__(s,r,!0)),DP&&"values"==o&&p&&"values"!==p.name&&(SP?k_(d,"name","values"):(f=!0,h=function(){return jT(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!AP&&!f&&c in d||J_(d,c,l[c]);else T_({target:t,proto:!0,forced:AP||f},l);return d[OP]!==h&&J_(d,OP,h,{name:o}),v_[t]=h,l}function I_(e){if("Symbol"===NP(e))throw TypeError("Cannot convert a Symbol value to a string");return IP(e)}function L_(o){return function(e,t){var n,e=I_(sT(e)),t=ZT(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=RP(e,t))<55296||56319<n||t+1===r||(r=RP(e,t+1))<56320||57343<r?o?LP(e,t):n:o?MP(e,t,t+2):r-56320+(n-55296<<10)+65536}}function R_(e,t,n){for(var r in t)J_(e,r,t[r],n)}function M_(e,t){return HT(e),void 0===t?e:JP?JP(e,t):function(){return e.apply(t,arguments)}}function z_(e){if(null!=e)return $T(e,tj)||$T(e,"@@iterator")||v_[NP(e)]}function H_(e,t,n){var r,o;BT(e);try{if(!(r=$T(e,"return"))){if("throw"===t)throw n;return}r=jT(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;BT(r)}function $_(e,t){this.stopped=e,this.result=t}function V_(e,t,n){function r(e){return i&&H_(i,"normal",e),new $_(!0,e)}function o(e){return d?(BT(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=M_(t,f);if(p)i=e;else{if(!(n=z_(e)))throw rj(MT(e)+" is not iterable");if(void 0!==n&&(v_.Array===n||ej[QP]===n)){for(a=0,u=UF(e);a<u;a++)if((s=o(e[a]))&&NT(oj,s))return;return}i=function(e,t){t=arguments.length<2?z_(e):t;if(HT(t))return BT(jT(t,e));throw nj(MT(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=jT(l,i)).done;){try{s=o(c.value)}catch(e){H_(i,"throw",e)}if("object"==typeof s&&s&&NT(oj,s))return}}function U_(e,t){if(!NT(t,e))throw ij("Incorrect invocation")}var W_,G_={set:D_,get:S_,has:C_,enforce:function(e){return C_(e)?S_(e):D_(e,{})},getterFor:function(t){return function(e){if(AT(e)&&(e=S_(e)).type===t)return e;throw B_("Incompatible receiver, "+t+" required")}}},c={}.propertyIsEnumerable,q_=Object.getOwnPropertyDescriptor,K_={f:q_&&!c.call({1:2},1)?function(e){e=q_(this,e);return!!e&&e.enumerable}:c},Y_=Object.getOwnPropertyDescriptor,X_={f:f?Y_:function(e,t){if(e=IF(e),t=$F(t),_T)try{return Y_(e,t)}catch(e){}if(hT(e,t))return m_(!jT(K_.f,e,t),e[t])}},E=Function.prototype,u=f&&Object.getOwnPropertyDescriptor,h=hT(E,"name"),Z_={EXISTS:h,PROPER:h&&"something"===function(){}.name,CONFIGURABLE:h&&(!f||u(E,"name").configurable)},J_=_F(function(e){var s=Z_.CONFIGURABLE,t=G_.get,l=G_.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;mT(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hT(n,"name")||s&&n.name!==r)&&k_(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==JF?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:k_(e,t,n)):a?e[t]=n:cT(t,n)})(Function.prototype,"toString",function(){return mT(this)&&t(this).source||O_(this)})}),Q_=i_.concat("length","prototype"),eP={f:Object.getOwnPropertyNames||function(e){return GF(e,Q_)}},tP={f:Object.getOwnPropertySymbols},nP=tT([].concat),rP=MF("Reflect","ownKeys")||function(e){var t=eP.f(BT(e)),n=tP.f;return n?nP(t,n(e)):t},oP=function(e,t){for(var n=rP(t),r=KT.f,o=X_.f,i=0;i<n.length;i++){var a=n[i];hT(e,a)||r(e,a,o(t,a))}},iP=/#|\.prototype\./,aP=F_.normalize=function(e){return String(e).replace(iP,".").toLowerCase()},uP=F_.data={},sP=F_.NATIVE="N",lP=F_.POLYFILL="P",cP=F_,fP=X_.f,l=!jF(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dP=qF("IE_PROTO"),pP=JF.Object,hP=pP.prototype,gP=l?pP.getPrototypeOf:function(e){var t,e=LF(e);return hT(e,dP)?e[dP]:(t=e.constructor,mT(t)&&e instanceof t?t.prototype:e instanceof pP?hP:null)},vP=zF("iterator"),n=!1,d=([].keys&&("next"in(o1=[].keys())?(v=gP(gP(o1)))!==Object.prototype&&(W_=v):n=!0),null!=W_&&!jF(function(){var e={};return W_[vP].call(e)!==e})||(W_={}),mT(W_[vP])||J_(W_,vP,function(){return this}),{IteratorPrototype:W_,BUGGY_SAFARI_ITERATORS:n}),yP=KT.f,mP=zF("toStringTag"),bP=d.IteratorPrototype,wP=JF.String,xP=JF.TypeError,EP=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=tT(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){BT(e);var n=t;if("object"==typeof n||mT(n))return o?r(e,t):e.__proto__=t,e;throw xP("Can't set "+wP(n)+" as a prototype")}}():void 0),DP=Z_.PROPER,SP=Z_.CONFIGURABLE,CP=d.IteratorPrototype,AP=d.BUGGY_SAFARI_ITERATORS,OP=zF("iterator"),kP=G_.set,BP=G_.getterFor("Array Iterator"),FP=N_(Array,"Array",function(e,t){kP(this,{type:"Array Iterator",target:IF(e),index:0,kind:t})},function(){var e=BP(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),i=(v_.Arguments=v_.Array,XF("keys"),XF("values"),XF("entries"),{}),TP=(i[zF("toStringTag")]="z","[object z]"===String(i)),_P=zF("toStringTag"),PP=JF.Object,jP="Arguments"==NF(function(){return arguments}()),NP=TP?NF:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=PP(e),_P))?t:jP?NF(e):"Object"==(t=NF(e))&&mT(e.callee)?"Arguments":t},IP=(TP||J_(Object.prototype,"toString",TP?{}.toString:function(){return"[object "+NP(this)+"]"},{unsafe:!0}),JF.String),LP=tT("".charAt),RP=tT("".charCodeAt),MP=tT("".slice),D={codeAt:L_(!1),charAt:L_(!0)},zP=D.charAt,HP=G_.set,$P=G_.getterFor("String Iterator"),VP=(N_(String,"String",function(e){HP(this,{type:"String Iterator",string:I_(e),index:0})},function(){var e=$P(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=zP(t,n),e.index+=t.length,{value:t,done:!1})}),JF.Array),UP=Math.max,WP=eP.f,GP="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qP={f:function(e){if(!GP||"Window"!=NF(e))return WP(IF(e));var t=e;try{return WP(t)}catch(t){for(var n,r,o,i=GP,e=UF(i),a=VF(void 0,e),u=VF(e,e),s=VP(UP(u-a,0)),l=0;a<u;a++,l++)n=s,o=l,r=i[a],(o=$F(o))in n?KT.f(n,o,m_(0,r)):n[o]=r;return s.length=l,s}}},KP=jF(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),YP=Object.isExtensible,XP=jF(function(){YP(1)})||KP?function(e){return!!AT(e)&&(!KP||"ArrayBuffer"!=NF(e))&&(!YP||YP(e))}:YP,ZP=!jF(function(){return Object.isExtensible(Object.preventExtensions({}))}),p=_F(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=KT.f,r=!1,a=RF("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=eP.f,i=tT([].splice),e={};e[a]=1,o(e).length&&(eP.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},T_({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qP.f}))},fastKey:function(e,t){if(!AT(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hT(e,a)){if(!XP(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!hT(e,a)){if(!XP(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return ZP&&r&&XP(e)&&!hT(e,a)&&n(e),e}};n_[a]=!0}),JP=tT(tT.bind),QP=zF("iterator"),ej=Array.prototype,tj=zF("iterator"),nj=JF.TypeError,rj=JF.TypeError,oj=$_.prototype,ij=JF.TypeError,aj=zF("iterator"),uj=!1;try{var sj=0,lj={next:function(){return{done:!!sj++}},return:function(){uj=!0}};lj[aj]=function(){return this},Array.from(lj,function(){throw 2})}catch(Fs){}function cj(){}function fj(e){if(!mT(e))return!1;try{return bj(cj,mj,e),!0}catch(e){return!1}}function dj(e,t){return new(void 0===(n=yj(e=e)&&(n=e.constructor,Dj(n)&&(n===Cj||yj(n.prototype))||AT(n)&&null===(n=n[Sj]))?void 0:n)?Cj:n)(0===t?0:t);var n}function pj(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=LF(e),u=aT(a),s=M_(t,n),l=UF(u),c=0,t=r||dj,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:Aj(f,o)}else switch(d){case 4:return!1;case 7:Aj(f,o)}return y?-1:g||v?v:f}}function hj(e){return e.frozen||(e.frozen=new gj)}function gj(){this.entries=[]}function vj(e,t){return Fj(e.entries,function(e){return e[0]===t})}var yj=Array.isArray||function(e){return"Array"==NF(e)},mj=[],bj=MF("Reflect","construct"),wj=/^\s*(?:class|function)\b/,xj=tT(wj.exec),Ej=!wj.exec(cj),Dj=!bj||jF(function(){var e;return fj(fj.call)||!fj(Object)||!fj(function(){e=!0})||e})?function(e){if(!mT(e))return!1;switch(NP(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ej||!!xj(wj,O_(e))}:fj,Sj=zF("species"),Cj=JF.Array,Aj=tT([].push),g={forEach:pj(0),map:pj(1),filter:pj(2),some:pj(3),every:pj(4),find:pj(5),findIndex:pj(6),filterReject:pj(7)},Oj=p.getWeakData,kj=G_.set,Bj=G_.getterFor,Fj=g.find,Tj=g.findIndex,_j=tT([].splice),Pj=0;gj.prototype={get:function(e){e=vj(this,e);if(e)return e[1]},has:function(e){return!!vj(this,e)},set:function(e,t){var n=vj(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=Tj(this.entries,function(e){return e[0]===t});return~e&&_j(this.entries,e,1),!!~e}};function jj(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}var Nj,Ij,Lj,Rj,Mj,zj,Hj,$j,Vj,Uj,Wj,Gj,c={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=Oj(BT(t),!0);return!0===o?hj(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){U_(e,a),kj(e,{type:n,id:Pj++,frozen:void 0}),null!=t&&V_(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=Bj(n);return R_(a,{delete:function(e){var t,n=u(this);return!!AT(e)&&(!0===(t=Oj(e))?hj(n).delete(e):t&&hT(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!AT(e)&&(!0===(t=Oj(e))?hj(n).has(e):t&&hT(t,n.id))}}),R_(a,r?{get:function(e){var t,n=u(this);if(AT(e))return!0===(t=Oj(e))?hj(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},qj=G_.enforce,h=!JF.ActiveXObject&&"ActiveXObject"in JF,i=(f=jj,u=c,Lj=-1!==(E="WeakMap").indexOf("Map"),Rj=-1!==E.indexOf("Weak"),Mj=Lj?"set":"add",zj=JF[E],Hj=zj&&zj.prototype,l={},cP(E,!mT($j=zj)||!(Rj||Hj.forEach&&!jF(function(){(new zj).entries().next()})))?($j=u.getConstructor(f,E,Lj,Mj),p.enable()):cP(E,!0)&&(o1=(Ij=new $j)[Mj](Rj?{}:-0,1)!=Ij,v=jF(function(){Ij.has(1)}),n=function(){if(!uj)return!1;var e=!1;try{var t={};t[aj]=function(){return{next:function(){return{done:e=!0}}}},new zj(t)}catch(e){}return e}(),d=!Rj&&jF(function(){for(var e=new zj,t=5;t--;)e[Mj](t,t);return!e.has(-0)}),n||((($j=f(function(e,t){U_(e,Hj);n=new zj,r=$j,EP&&mT(e=e.constructor)&&e!==r&&AT(e=e.prototype)&&e!==r.prototype&&EP(n,e);var n,r=n;return null!=t&&V_(t,r[Mj],{that:r,AS_ENTRIES:Lj}),r})).prototype=Hj).constructor=$j),(v||d)&&(Kj("delete"),Kj("has"),Lj)&&Kj("get"),(d||o1)&&Kj(Mj),Rj)&&Hj.clear&&delete Hj.clear,T_({global:!0,forced:(l[E]=$j)!=zj},l),__($j,E),Rj||u.setStrong($j,E,Lj),$j);function Kj(e){var n=tT(Hj[e]);J_(Hj,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(Rj&&!AT(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return Rj&&!AT(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(Rj&&!AT(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}s&&h&&(Nj=c.getConstructor(jj,"WeakMap",!0),p.enable(),TP=i.prototype,Vj=tT(TP.delete),Uj=tT(TP.has),Wj=tT(TP.get),Gj=tT(TP.set),R_(TP,{delete:function(e){var t;return AT(e)&&!XP(e)?((t=qj(this)).frozen||(t.frozen=new Nj),Vj(this,e)||t.frozen.delete(e)):Vj(this,e)},has:function(e){var t;return AT(e)&&!XP(e)?((t=qj(this)).frozen||(t.frozen=new Nj),Uj(this,e)||t.frozen.has(e)):Uj(this,e)},get:function(e){var t;return!AT(e)||XP(e)||((t=qj(this)).frozen||(t.frozen=new Nj),Uj(this,e))?Wj(this,e):t.frozen.get(e)},set:function(e,t){var n;return!AT(e)||XP(e)||((n=qj(this)).frozen||(n.frozen=new Nj),Uj(this,e))?Gj(this,e,t):n.frozen.set(e,t),this}}));function Yj(e,t){if(e){if(e[Jj]!==eN)try{k_(e,Jj,eN)}catch(t){e[Jj]=eN}if(e[Qj]||k_(e,Qj,t),Zj[t])for(var n in FP)if(e[n]!==FP[n])try{k_(e,n,FP[n])}catch(t){e[n]=FP[n]}}}var Xj,Zj={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lj=HF("span").classList,n=lj&&lj.constructor&&lj.constructor.prototype,f=n===Object.prototype?void 0:n,Jj=zF("iterator"),Qj=zF("toStringTag"),eN=FP.values;for(Xj in Zj)Yj(JF[Xj]&&JF[Xj].prototype,Xj);Yj(f,"DOMTokenList");var tN=new WeakMap,v={type:"list-item",renderElem:function(f,e,t){tN.set(f,t);var n=f.level,r=void 0===n?0:n,n=f.ordered,o={margin:"5px 0 5px "+20*r+"px"},i="";return i=void 0!==n&&n?function(e){var t=f.type,n=f.level,r=void 0===n?0:n,n=f.ordered,o=void 0!==n&&n;if(!o)return-1;var i=1,a=I.findPath(e,f);if(0===a[0])return 1;for(;0<a[0];){var u=M.previous(a),s=P.node(e,u);if(null==s)break;var s=s[0],l=s.level,l=void 0===l?0:l,c=s.type,s=s.ordered;if(c!==t)break;if(l<r)break;if(l===r){if(s!==o)break;i++}a=u}return i}(t)+".":function(){var e="";switch(void 0===r?0:r){case 0:e="•";break;case 1:e="◦";break;default:e="▪"}return e}(),pp("div",{style:o},pp("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(){var e,t=f.children||[],n=t.length;if(0===n)return"";for(var r=0;r<n&&!e;r++){var o=t[r];H.isText(o)&&(e=o)}return null!=e&&e.color||""}()},"data-w-e-reserve":!0},i),pp("span",null,e))}},nN=function(e,t){return(nN=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function rN(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nN(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function oN(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function iN(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function aN(t){return P.nodes(t,{at:t.selection||void 0,match:function(e){return 1===I.findPath(t,e).length}})}var uN=vD.includes;T_({target:"Array",proto:!0},{includes:function(e){return uN(this,e,1<arguments.length?arguments[1]:void 0)}}),XF("includes");function sN(){var e=BT(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}var lN,cN,fN=JF.RegExp,d=jF(function(){var e=fN("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),o1=d||jF(function(){return!fN("a","y").sticky}),l={BROKEN_CARET:d||jF(function(){var e=fN("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:o1,UNSUPPORTED_Y:d},dN=JF.RegExp,u=jF(function(){var e=dN(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),pN=JF.RegExp,E=jF(function(){var e=pN("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),hN=G_.get,gN=a("native-string-replace",String.prototype.replace),vN=RegExp.prototype.exec,yN=vN,mN=tT("".charAt),bN=tT("".indexOf),wN=tT("".replace),xN=tT("".slice),EN=(s=/b*/g,jT(vN,h=/a/,"a"),jT(vN,s,"a"),0!==h.lastIndex||0!==s.lastIndex),DN=l.BROKEN_CARET,SN=void 0!==/()??/.exec("")[1],CN=yN=EN||SN||DN||u||E?function(e){var t,n,r,o,i,a,u=this,s=hN(u),e=I_(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=jT(yN,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=DN&&u.sticky,f=jT(sN,u),s=u.source,d=0,p=e;if(l&&(f=wN(f,"y",""),-1===bN(f,"g")&&(f+="g"),p=xN(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==mN(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),SN&&(t=new RegExp("^"+s+"$(?!\\s)",f)),EN&&(n=u.lastIndex),r=jT(vN,l?t:u,p),l?r?(r.input=xN(r.input,d),r[0]=xN(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:EN&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),SN&&r&&1<r.length&&jT(gN,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=p_(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:yN,c=(T_({target:"RegExp",proto:!0,forced:/./.exec!==CN},{exec:CN}),PN.prototype.getListNode=function(e){var t=this.type;return I.getSelectedNodeByType(e,t)},PN.prototype.getValue=function(e){return""},PN.prototype.isActive=function(e){var e=this.getListNode(e);return null!=e&&(void 0!==(e=e.ordered)&&e)===this.ordered},PN.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!(!P.isVoid(t,e)||!P.isBlock(t,e))||(e=e.type,!!["pre","code","table"].includes(e))||void 0})},PN.prototype.exec=function(e,t){this.isActive(e)?j.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):j.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},PN),AN=(rN(_N,cN=c),_N),ON=(rN(TN,lN=c),TN),p={key:"bulletedList",factory:function(){return new AN}},i={key:"numberedList",factory:function(){return new ON}},kN=[],TP={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=(o=e,null==(l=tN.get(o))?0:(s=o.type,c=void 0!==(c=o.ordered)&&c,f=void 0===(f=o.level)?0:f,0===(o=I.findPath(l,o))[0]?f+1:(o=M.previous(o),(l=P.node(l,o))?(o=iN(l,1)[0],I.getNodeType(o)!==s?f+1:(l=o.ordered,(o=void 0===(s=o.level)?0:s)<f?f-o:f<o||o!==f||(void 0!==l&&l)===c?0:1)):0)));if(0<a)for(var u=0;u<a;u++)n+="<"+i+">",kN.push(i);s=e;var s,l,c,f,d=null==(o=tN.get(s))?0:(f=s.type,l=void 0!==(l=s.ordered)&&l,c=void 0===(c=s.level)?0:c,(s=I.findPath(o,s))[0]===o.children.length-1?c+1:(s=M.next(s),(o=P.node(o,s))?(s=iN(o,1)[0],I.getNodeType(s)!==f?c+1:(o=s.ordered,(s=void 0===(f=s.level)?0:f)<c?c-s:c<s||s!==c||(void 0!==o&&o)===l?0:1)):0));if(0<d)for(u=0;u<d;u++)r+="</"+kN.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},BN=zF("species"),FN=g.filter,lj=51<=bT||!jF(function(){var e=[];return(e.constructor={})[BN]=function(){return{foo:1}},1!==e.filter(Boolean).foo});function TN(){var e=null!==lN&&lN.apply(this,arguments)||this;return e.ordered=!0,e.title=w("listModule.orderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',e}function _N(){var e=null!==cN&&cN.apply(this,arguments)||this;return e.ordered=!1,e.title=w("listModule.unOrderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',e}function PN(){this.type="list-item",this.tag="button"}T_({target:"Array",proto:!0,forced:!lj},{filter:function(e){return FN(this,e,1<arguments.length?arguments[1]:void 0)}});function jN(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&M_(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],0<i&&yj(s))l=UF(s),c=jN(e,t,s,l,c,i-1)-1;else{if(9007199254740991<=c)throw aI("Exceed the acceptable array length");e[c]=s}c++}f++}return c}var NN,IN,LN,RN,MN,zN,n=Function.prototype,HN=n.apply,f=n.bind,$N=n.call,VN="object"==typeof Reflect&&Reflect.apply||(f?$N.bind(HN):function(){return $N.apply(HN,arguments)}),UN=(zF("species"),RegExp.prototype),WN=D.charAt,GN=Math.floor,qN=tT("".charAt),KN=tT("".replace),YN=tT("".slice),XN=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ZN=/\$([$&'`]|\d{1,2})/g,JN=JF.TypeError,QN=zF("replace"),eI=Math.max,tI=Math.min,nI=tT([].concat),rI=tT([].push),oI=tT("".indexOf),iI=tT("".slice),vD="$0"==="a".replace(/./,"$0"),o1=!!/./[QN]&&""===/./[QN]("a","$0"),aI=(NN="replace",d=!!jF(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!vD||o1,MN=zF(NN),zN=!jF(function(){var e={};return e[MN]=function(){return 7},7!=""[NN](e)}),a=zN&&!jF(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[MN](""),!e}),zN&&a&&!d||(IN=tT(/./[MN]),LN=""[NN],RN=o1?"$":"$0",a=[function(e,t){var n=sT(this),r=null==e?void 0:$T(e,QN);return r?jT(r,e,n,t):jT(LN,I_(n),e,t)},function(e,t){var n,r,o,i,a=BT(this),u=I_(e);if("string"==typeof t&&-1===oI(t,RN)&&-1===oI(t,"$<")){e=a,n=u,r=t,i=tT(LN);var s=(s=e.exec)===CN||s===UN.exec?zN&&!o?{done:!0,value:IN(e,n,r)}:{done:!0,value:i(n,e,r)}:{done:!1};if(s.done)return s.value}var l,c=mT(t),f=(c||(t=I_(t)),a.global);f&&(l=a.unicode,a.lastIndex=0);for(var d,p,h=[];;){var g=function(e,t){var n=e.exec;if(mT(n))return null!==(n=jT(n,e,t))&&BT(n),n;if("RegExp"===NF(e))return jT(CN,e,t);throw JN("RegExp#exec called on incompatible receiver")}(a,u);if(null===g)break;if(rI(h,g),!f)break;""===I_(g[0])&&(a.lastIndex=(d=u,(p=t_(a.lastIndex))+(l?WN(d,p).length:1)))}for(var v,y="",m=0,b=0;b<h.length;b++){for(var w=I_((g=h[b])[0]),x=eI(tI(ZT(g.index),u.length),0),E=[],D=1;D<g.length;D++)rI(E,void 0===(v=g[D])?v:String(v));var S=g.groups,C=c?(C=nI([w],E,x,u),void 0!==S&&rI(C,S),I_(VN(t,void 0,C))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=ZN;return void 0!==l&&(l=LF(l),t=XN),KN(e,t,function(e,t){var n;switch(qN(t,0)){case"$":return"$";case"&":return i;case"`":return YN(a,0,u);case"'":return YN(a,c);case"<":n=l[YN(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=GN(o/10))&&r<=f?void 0===s[r-1]?qN(t,1):s[r-1]+qN(t,1):e;n=s[o-1]}return void 0===n?"":n})}(w,u,x,E,S,t);m<=x&&(y+=iI(u,m,x)+C,m=x+w.length)}return y+iI(u,m)}],J_(String.prototype,NN,a[0]),J_(UN,MN,a[1])),JF.TypeError),uI=jN;function sI(e){return e.length?e[0].tagName.toLowerCase():""}T_({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=LF(this),n=UF(t),r=dj(t,0);return r.length=uI(r,t,t,n,0,void 0===e?1:ZT(e)),r}}),XF("flat"),T_({global:!0},{globalThis:JF}),N.fn.append=nd,N.fn.attr=Mf,N.fn.parent=od;var h={renderElems:[v],editorPlugin:function(e){var r=e.deleteBackward,y=e.handleTab,o=e.normalizeNode,m=e;return m.deleteBackward=function(e){var t,n=m.selection;null==n||z.isExpanded(n)||null==(t=I.getSelectedNodeByType(m,"list-item"))||0!==n.focus.offset?r(e):0<(e=void 0===(n=t.level)?0:n)?j.setNodes(m,{level:e-1}):j.setNodes(m,{type:"paragraph",ordered:void 0,level:void 0})},m.handleTab=function(){var e,t,n,r,o=m.selection;if(null!=o){if(z.isCollapsed(o)){var i=I.getSelectedNodeByType(m,"list-item");if(null==i)return void y();if(0===o.focus.offset)return i=i.level,void j.setNodes(m,{level:(v=void 0===i?0:i)+1})}if(z.isExpanded(o)){var a=0,u=!1;try{for(var s=oN(aN(m)),l=s.next();!l.done;l=s.next()){var c=iN(l.value,1)[0];"list-item"===I.getNodeType(c)?a++:u=!0}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}if(u||a<=1)y();else try{for(var f=oN(aN(m)),d=f.next();!d.done;d=f.next()){var p=iN(d.value,2),h=(c=p[0],p[1]),g=c.level,v=void 0===g?0:g;j.setNodes(m,{level:v+1},{at:h})}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}else y()}else y()},m.normalizeNode=function(e){var e=iN(e,2),t=e[0],e=e[1],n=I.getNodeType(t);return"bulleted-list"!==n&&"numbered-list"!==n||j.unwrapNodes(m,{at:e}),o([t,e])},m},menus:[p,i],elemsToHtml:[TP],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);return 0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",ordered:"ol"===sI(r.parent()),level:function(){for(var e=0,t=r.parent(),n=sI(t);"ul"===n||"ol"===n;)n=sI(t=t.parent()),e++;return e-1}(),children:t}}}]},lI=O(function(e,t){var r="__lodash_hash_undefined__",I=9007199254740991,f="[object Arguments]",d="[object Array]",L="[object Boolean]",R="[object Date]",M="[object Error]",z="[object Function]",p="[object Map]",H="[object Number]",h="[object Object]",$="[object Promise]",V="[object RegExp]",g="[object Set]",U="[object String]",n="[object WeakMap]",W="[object ArrayBuffer]",v="[object DataView]",G=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,o={},i=(o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o[f]=o[d]=o[W]=o[L]=o[v]=o[R]=o[M]=o[z]=o[p]=o[H]=o[h]=o[V]=o[g]=o[U]=o[n]=!1,"object"==typeof je&&je&&je.Object===Object&&je),a="object"==typeof self&&self&&self.Object===Object&&self,a=i||a||Function("return this")(),t=t&&!t.nodeType&&t,u=t&&e&&!e.nodeType&&e,u=u&&u.exports===t,s=u&&i.process,t=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}(),i=t&&t.isTypedArray;function K(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var X,Z,t=Array.prototype,l=Function.prototype,c=Object.prototype,y=a["__core-js_shared__"],J=l.toString,m=c.hasOwnProperty,Q=(l=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",ee=c.toString,te=RegExp("^"+J.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=u?a.Buffer:void 0,l=a.Symbol,ne=a.Uint8Array,re=c.propertyIsEnumerable,oe=t.splice,b=l?l.toStringTag:void 0,ie=Object.getOwnPropertySymbols,u=y?y.isBuffer:void 0,ae=(X=Object.keys,Z=Object,function(e){return X(Z(e))}),t=T(a,"DataView"),w=T(a,"Map"),y=T(a,"Promise"),x=T(a,"Set"),a=T(a,"WeakMap"),E=T(Object,"create"),ue=P(t),se=P(w),le=P(y),ce=P(x),fe=P(a),l=l?l.prototype:void 0,de=l?l.valueOf:void 0;function D(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function A(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new C;++t<n;)this.add(e[t])}function O(e){e=this.__data__=new S(e);this.size=e.size}function k(e,t){for(var n=e.length;n--;)if(me(e[n][0],t))return n;return-1}function B(e){{if(null==e)return void 0===e?"[object Undefined]":"[object Null]";if(b&&b in Object(e)){var t=e,n=m.call(t,b),r=t[b];try{var o=!(t[b]=void 0)}catch(t){}var i=ee.call(t);return o&&(n?t[b]=r:delete t[b]),i}return ee.call(e)}}function pe(e){return N(e)&&B(e)==f}function he(e,t,n,r,o){return e===t||(null==e||null==t||!N(e)&&!N(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=j(e),u=j(t),s=a?d:_(e),u=u?d:_(t),l=(s=s==f?h:s)==h,c=(u=u==f?h:u)==h,u=s==u;if(u&&we(e)){if(!we(t))return!1;l=!(a=!0)}if(u&&!l)return i=i||new O,(a||Ce(e)?ge:function(e,t,n,r,o,i){switch(s){case v:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case W:return!(e.byteLength!=t.byteLength||!o(new ne(e),new ne(t)));case L:case R:case H:return me(+e,+t);case M:return e.name==t.name&&e.message==t.message;case V:case U:return e==t+"";case p:var a=K;case g:a=a||Y;if(e.size!=t.size&&!(1&n))return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);u=ge(a(e),a(t),n,r,o,i);return i.delete(e),u;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1})(e,t,n,r,o,i);if(!(1&n)){a=l&&m.call(e,"__wrapped__"),l=c&&m.call(t,"__wrapped__");if(a||l)return o(a?e.value():e,l?t.value():t,n,r,i=i||new O)}return!!u&&function(e,t,n,r,o,i){var a=1&n,u=ve(e),s=u.length;if(s!=ve(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:m.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p,h=a;++l<s;){var g,v=e[c=u[l]],y=t[c];if(!(void 0===(g=r?a?r(y,v,c,t,e,i):r(v,y,c,e,t,i):g)?v===y||o(v,y,n,r,i):g)){d=!1;break}h=h||"constructor"==c}return d&&!h&&(f=e.constructor)!=(p=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof f&&f instanceof f&&"function"==typeof p&&p instanceof p)&&(d=!1),i.delete(e),i.delete(t),d}(e,t,n,r,o,i=i||new O)}(e,t,n,r,he,o))}function ge(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&u<s))return!1;s=i.get(e);if(s&&i.get(t))return s==t;var l=-1,c=!0,f=2&n?new A:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var d,p=e[l],h=t[l];if(void 0!==(d=r?a?r(h,p,l,t,e,i):r(p,h,l,e,t,i):d)){if(d)continue;c=!1;break}if(f){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return 1}(t,function(e,t){return!f.has(t)&&(p===e||o(p,e,n,r,i))&&f.push(t)})){c=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){c=!1;break}}return i.delete(e),i.delete(t),c}function ve(e){var t=ye,n=Ae(e);if(j(e))return n;for(var r=n,o=t(e),i=-1,a=o.length,u=r.length;++i<a;)r[u+i]=o[i];return r}function F(e,t){var n,e=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function T(e,t){e=null==e?void 0:e[t];return!De(t=e)||Q&&Q in t||!(xe(t)?te:G).test(P(t))?void 0:e}D.prototype.clear=function(){this.__data__=E?E(null):{},this.size=0},D.prototype.delete=function(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e},D.prototype.get=function(e){var t,n=this.__data__;return E?(t=n[e])===r?void 0:t:m.call(n,e)?n[e]:void 0},D.prototype.has=function(e){var t=this.__data__;return E?void 0!==t[e]:m.call(t,e)},D.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=E&&void 0===t?r:t,this},S.prototype.clear=function(){this.__data__=[],this.size=0},S.prototype.delete=function(e){var t=this.__data__,e=k(t,e);return!(e<0||(e==t.length-1?t.pop():oe.call(t,e,1),--this.size,0))},S.prototype.get=function(e){var t=this.__data__,e=k(t,e);return e<0?void 0:t[e][1]},S.prototype.has=function(e){return-1<k(this.__data__,e)},S.prototype.set=function(e,t){var n=this.__data__,r=k(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},C.prototype.clear=function(){this.size=0,this.__data__={hash:new D,map:new(w||S),string:new D}},C.prototype.delete=function(e){e=F(this,e).delete(e);return this.size-=e?1:0,e},C.prototype.get=function(e){return F(this,e).get(e)},C.prototype.has=function(e){return F(this,e).has(e)},C.prototype.set=function(e,t){var n=F(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},A.prototype.add=A.prototype.push=function(e){return this.__data__.set(e,r),this},A.prototype.has=function(e){return this.__data__.has(e)},O.prototype.clear=function(){this.__data__=new S,this.size=0},O.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},O.prototype.get=function(e){return this.__data__.get(e)},O.prototype.has=function(e){return this.__data__.has(e)},O.prototype.set=function(e,t){var n=this.__data__;if(n instanceof S){var r=n.__data__;if(!w||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new C(r)}return n.set(e,t),this.size=n.size,this};var ye=ie?function(e){if(null==e)return[];e=Object(e);for(var t=ie(e),n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];re.call(e,a)&&(i[o++]=a)}return i}:function(){return[]},_=B;function P(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function me(e,t){return e===t||e!=e&&t!=t}(t&&_(new t(new ArrayBuffer(1)))!=v||w&&_(new w)!=p||y&&_(y.resolve())!=$||x&&_(new x)!=g||a&&_(new a)!=n)&&(_=function(e){var t=B(e),e=t==h?e.constructor:void 0,e=e?P(e):"";if(e)switch(e){case ue:return v;case se:return p;case le:return $;case ce:return g;case fe:return n}return t});var be=pe(function(){return arguments}())?pe:function(e){return N(e)&&m.call(e,"callee")&&!re.call(e,"callee")},j=Array.isArray,we=u||function(){return!1};function xe(e){if(De(e))return(e=B(e))==z||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ee(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=I}function De(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function N(e){return null!=e&&"object"==typeof e}var Se,Ce=i?(Se=i,function(e){return Se(e)}):function(e){return N(e)&&Ee(e.length)&&!!o[B(e)]};function Ae(e){return(null!=e&&Ee(e.length)&&!xe(e)?function(e){var t,n,r,o=j(e),i=!o&&be(e),a=!o&&!i&&we(e),u=!o&&!i&&!a&&Ce(e),s=o||i||a||u,l=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=l.length;for(t in e)!m.call(e,t)||s&&("length"==t||a&&("offset"==t||"parent"==t)||u&&("buffer"==t||"byteLength"==t||"byteOffset"==t)||(n=t,r=c,(r=null==r?I:r)&&("number"==typeof n||q.test(n))&&-1<n&&n%1==0&&n<r))||l.push(t);return l}:function(e){if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||c))return ae(e);var t,n,r=[];for(n in Object(e))m.call(e,n)&&"constructor"!=n&&r.push(n);return r})(e)}e.exports=function(e,t){return he(e,t)}}),s=(g6("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),g6("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{});function cI(e){var t={exports:{}};return e(t,t.exports),t.exports}function fI(e){return e&&e.Math==Math&&e}function dI(e){try{return!!e()}catch(e){return!0}}function pI(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function hI(e){return jI(PI(e),8,-1)}function gI(e){if(null==e)throw RI("Can't call method on "+e);return e}function vI(e){return LI(gI(e))}function yI(e,t){return arguments.length<2?(n=CI[e],MI(n)?n:void 0):CI[e]&&CI[e][t];var n}function mI(e,t){return null==(e=e[t])?void 0:XI(e)}function bI(t,n){try{JI(CI,t,{value:n,configurable:!0,writable:!0})}catch(e){CI[t]=n}return n}function wI(e){return eL(gI(e))}function xI(e){return"Symbol("+(void 0===e?"":e)+")_"+iL(++rL+oL,36)}function EI(e){var t;return nL(aL,e)&&(VI||"string"==typeof aL[e])||(t="Symbol."+e,VI&&nL(uL,e)?aL[e]=uL[e]:aL[e]=(UI&&sL?sL:lL)(t)),aL[e]}function DI(e){return e=function(e,t){if(!zI(e)||GI(e))return e;var n,r,o=mI(e,fL);if(o){if(o=OI(o,e,t=void 0===t?"default":t),!zI(o)||GI(o))return o;throw cL("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&MI(n=o.toString)&&!zI(r=OI(n,o)))return r;if(MI(n=o.valueOf)&&!zI(r=OI(n,o)))return r;if("string"!==e&&MI(n=o.toString)&&!zI(r=OI(n,o)))return r;throw ZI("Can't convert object to primitive value")}(e,"string"),GI(e)?e:e+""}function SI(e){return pL?dL.createElement(e):{}}var CI=fI("object"==typeof globalThis&&globalThis)||fI("object"==typeof window&&window)||fI("object"==typeof self&&self)||fI("object"==typeof s&&s)||function(){return this}()||Function("return this")(),l=!dI(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),AI=Function.prototype.call,OI=AI.bind?AI.bind(AI):function(){return AI.apply(AI,arguments)},u={}.propertyIsEnumerable,kI=Object.getOwnPropertyDescriptor,BI={f:kI&&!u.call({1:2},1)?function(e){e=kI(this,e);return!!e&&e.enumerable}:u},E=Function.prototype,c=E.bind,FI=E.call,TI=c&&c.bind(FI),_I=c?function(e){return e&&TI(FI,e)}:function(e){return e&&function(){return FI.apply(e,arguments)}},PI=_I({}.toString),jI=_I("".slice),NI=CI.Object,II=_I("".split),LI=dI(function(){return!NI("z").propertyIsEnumerable(0)})?function(e){return"String"==hI(e)?II(e,""):NI(e)}:NI,RI=CI.TypeError,MI=function(e){return"function"==typeof e},zI=function(e){return"object"==typeof e?null!==e:MI(e)},HI=_I({}.isPrototypeOf),g=yI("navigator","userAgent")||"",lj=CI.process,n=CI.Deno,f=lj&&lj.versions||n&&n.version,D=f&&f.v8,$I=S=!(S=D?0<(wM=D.split("."))[0]&&wM[0]<4?1:+(wM[0]+wM[1]):S)&&g&&(!(wM=g.match(/Edge\/(\d+)/))||74<=wM[1])&&(wM=g.match(/Chrome\/(\d+)/))?+wM[1]:S,VI=!!Object.getOwnPropertySymbols&&!dI(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$I&&$I<41}),UI=VI&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,WI=CI.Object,GI=UI?function(e){return"symbol"==typeof e}:function(e){var t=yI("Symbol");return MI(t)&&HI(t.prototype,WI(e))},qI=CI.String,KI=function(e){try{return qI(e)}catch(e){return"Object"}},YI=CI.TypeError,XI=function(e){if(MI(e))return e;throw YI(KI(e)+" is not a function")},ZI=CI.TypeError,JI=Object.defineProperty,QI=CI["__core-js_shared__"]||bI("__core-js_shared__",{}),vD=cI(function(e){(e.exports=function(e,t){return QI[e]||(QI[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),eL=CI.Object,tL=_I({}.hasOwnProperty),nL=Object.hasOwn||function(e,t){return tL(wI(e),t)},rL=0,oL=Math.random(),iL=_I(1..toString),aL=vD("wks"),uL=CI.Symbol,sL=uL&&uL.for,lL=UI?uL:uL&&uL.withoutSetter||xI,cL=CI.TypeError,fL=EI("toPrimitive"),dL=CI.document,pL=zI(dL)&&zI(dL.createElement),hL=!l&&!dI(function(){return 7!=Object.defineProperty(SI("div"),"a",{get:function(){return 7}}).a}),gL=Object.getOwnPropertyDescriptor,vL={f:l?gL:function(e,t){if(e=vI(e),t=DI(t),hL)try{return gL(e,t)}catch(e){}if(nL(e,t))return pI(!OI(BI.f,e,t),e[t])}},yL=CI.String,mL=CI.TypeError,bL=function(e){if(zI(e))return e;throw mL(yL(e)+" is not an object")},wL=CI.TypeError,xL=Object.defineProperty,EL={f:l?xL:function(e,t,n){if(bL(e),t=DI(t),bL(n),hL)try{return xL(e,t,n)}catch(e){}if("get"in n||"set"in n)throw wL("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},DL=l?function(e,t,n){return EL.f(e,t,pI(1,n))}:function(e,t,n){return e[t]=n,e},SL=_I(Function.toString);MI(QI.inspectSource)||(QI.inspectSource=function(e){return SL(e)});function CL(e){return $L[e]||($L[e]=xI(e))}function AL(e,t){return(e=XL(e))<0?ZL(e+t,0):JL(e,t)}function OL(e){return eR(e.length)}function kL(u){return function(e,t,n){var r,o=vI(e),i=OL(o),a=AL(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function BL(e,t){var n,r=vI(e),o=0,i=[];for(n in r)!nL(VL,n)&&nL(r,n)&&nR(i,n);for(;t.length>o;)!nL(r,n=t[o++])||~tR(i,n)||nR(i,n);return i}function FL(e,t){return(e=fR[cR(e)])==pR||e!=dR&&(MI(t)?dI(t):!!t)}function TL(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?CI:s?CI[a]||bI(a,{}):(CI[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=gR(n,r))&&i.value:n[r],!hR(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=sR(c),d=EL.f,p=vL.f,h=0;h<f.length;h++){var g=f[h];nL(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&DL(o,"sham",!0),qL(n,r,o,e)}}function _L(e){if("Symbol"===bR(e))throw TypeError("Cannot convert a Symbol value to a string");return wR(e)}var PL,jL,NL,IL,LL,RL,ML,zL,HL=QI.inspectSource,d=CI.WeakMap,o1=MI(d)&&/native code/.test(HL(d)),$L=vD("keys"),VL={},UL=CI.TypeError,a=CI.WeakMap,WL=(ML=o1||QI.state?(PL=QI.state||(QI.state=new a),jL=_I(PL.get),NL=_I(PL.has),IL=_I(PL.set),LL=function(e,t){if(NL(PL,e))throw new UL("Object already initialized");return t.facade=e,IL(PL,e,t),t},RL=function(e){return jL(PL,e)||{}},function(e){return NL(PL,e)}):(zL=CL("state"),VL[zL]=!0,LL=function(e,t){if(nL(e,zL))throw new UL("Object already initialized");return t.facade=e,DL(e,zL,t),t},RL=function(e){return nL(e,zL)?e[zL]:{}},function(e){return nL(e,zL)}),{set:LL,get:RL,has:ML,enforce:function(e){return ML(e)?RL(e):LL(e,{})},getterFor:function(t){return function(e){if(zI(e)&&(e=RL(e)).type===t)return e;throw UL("Incompatible receiver, "+t+" required")}}}),v=Function.prototype,p=l&&Object.getOwnPropertyDescriptor,i=nL(v,"name"),GL={EXISTS:i,PROPER:i&&"something"===function(){}.name,CONFIGURABLE:i&&(!l||p(v,"name").configurable)},qL=cI(function(e){var s=GL.CONFIGURABLE,t=WL.get,l=WL.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;MI(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nL(n,"name")||s&&n.name!==r)&&DL(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==CI?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:DL(e,t,n)):a?e[t]=n:bI(t,n)})(Function.prototype,"toString",function(){return MI(this)&&t(this).source||HL(this)})}),KL=Math.ceil,YL=Math.floor,XL=function(e){e=+e;return e!=e||0==e?0:(0<e?YL:KL)(e)},ZL=Math.max,JL=Math.min,QL=Math.min,eR=function(e){return 0<e?QL(XL(e),9007199254740991):0},tR=(kL(!0),kL(!1)),nR=_I([].push),rR=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oR=rR.concat("length","prototype"),iR={f:Object.getOwnPropertyNames||function(e){return BL(e,oR)}},aR={f:Object.getOwnPropertySymbols},uR=_I([].concat),sR=yI("Reflect","ownKeys")||function(e){var t=iR.f(bL(e)),n=aR.f;return n?uR(t,n(e)):t},lR=/#|\.prototype\./,cR=FL.normalize=function(e){return String(e).replace(lR,".").toLowerCase()},fR=FL.data={},dR=FL.NATIVE="N",pR=FL.POLYFILL="P",hR=FL,gR=vL.f,TP={},s=(TP[EI("toStringTag")]="z","[object z]"===String(TP)),vR=EI("toStringTag"),yR=CI.Object,mR="Arguments"==hI(function(){return arguments}()),bR=s?hI:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=yR(e),vR))?t:mR?hI(e):"Object"==(t=hI(e))&&MI(e.callee)?"Arguments":t},wR=CI.String,xR=/"/g,ER=_I("".replace);TL({target:"String",proto:!0,forced:dI(function(){var e="".anchor('"');return e!==e.toLowerCase()||3<e.split('"').length})},{anchor:function(e){return e=e,t=_L(gI(this)),n="<a",(n+=' name="'+ER(_L(e),xR,"&quot;")+'"')+">"+t+"</a>";var t,n}});function DR(){var e=bL(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function SR(){}function CR(e){e.write(_R("")),e.close();var t=e.parentWindow.Object;return e=null,t}var AR,OR=CI.RegExp,u=dI(function(){var e=OR("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),E=u||dI(function(){return!OR("a","y").sticky}),c={BROKEN_CARET:u||dI(function(){var e=OR("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:E,UNSUPPORTED_Y:u},kR=Object.keys||function(e){return BL(e,rR)},BR=l?Object.defineProperties:function(e,t){bL(e);for(var n,r=vI(t),o=kR(t),i=o.length,a=0;a<i;)EL.f(e,n=o[a++],r[n]);return e},FR=yI("document","documentElement"),TR=CL("IE_PROTO"),_R=function(e){return"<script>"+e+"<\/script>"},PR=function(){try{AR=new ActiveXObject("htmlfile")}catch(e){}var e,t;PR="undefined"==typeof document||document.domain&&AR?CR(AR):((t=SI("iframe")).style.display="none",FR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_R("document.F=Object")),e.close(),e.F);for(var n=rR.length;n--;)delete PR.prototype[rR[n]];return PR()};VL[TR]=!0;function jR(){}function NR(e){if(!MI(e))return!1;try{return tM(jR,eM,e),!0}catch(e){return!1}}function IR(e,t,n){(t=DI(t))in e?EL.f(e,t,pI(0,n)):e[t]=n}function LR(t){return 51<=$I||!dI(function(){var e=[];return(e.constructor={})[aM]=function(){return{foo:1}},1!==e[t](Boolean).foo})}var RR=Object.create||function(e,t){var n;return null!==e?(SR.prototype=bL(e),n=new SR,SR.prototype=null,n[TR]=e):n=PR(),void 0===t?n:BR(n,t)},MR=CI.RegExp,lj=dI(function(){var e=MR(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),zR=CI.RegExp,n=dI(function(){var e=zR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),HR=WL.get,$R=vD("native-string-replace",String.prototype.replace),VR=RegExp.prototype.exec,UR=VR,WR=_I("".charAt),GR=_I("".indexOf),qR=_I("".replace),KR=_I("".slice),YR=(f=/b*/g,OI(VR,D=/a/,"a"),OI(VR,f,"a"),0!==D.lastIndex||0!==f.lastIndex),XR=c.BROKEN_CARET,ZR=void 0!==/()??/.exec("")[1],JR=UR=YR||ZR||XR||lj||n?function(e){var t,n,r,o,i,a,u=this,s=HR(u),e=_L(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=OI(UR,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=XR&&u.sticky,f=OI(DR,u),s=u.source,d=0,p=e;if(l&&(f=qR(f,"y",""),-1===GR(f,"g")&&(f+="g"),p=KR(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==WR(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),ZR&&(t=new RegExp("^"+s+"$(?!\\s)",f)),YR&&(n=u.lastIndex),r=OI(VR,l?t:u,p),l?r?(r.input=KR(r.input,d),r[0]=KR(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:YR&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),ZR&&r&&1<r.length&&OI($R,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=RR(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:UR,QR=(TL({target:"RegExp",proto:!0,forced:/./.exec!==JR},{exec:JR}),Array.isArray||function(e){return"Array"==hI(e)}),eM=[],tM=yI("Reflect","construct"),nM=/^\s*(?:class|function)\b/,rM=_I(nM.exec),oM=!nM.exec(jR),iM=!tM||dI(function(){var e;return NR(NR.call)||!NR(Object)||!NR(function(){e=!0})||e})?function(e){if(!MI(e))return!1;switch(bR(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oM||!!rM(nM,HL(e))}:NR,aM=EI("species"),uM=_I([].slice),g=LR("slice"),sM=EI("species"),lM=CI.Array,cM=Math.max;function fM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function dM(e){var t=e.selection;if(null!=t){var n=fM(P.nodes(e,{match:function(e){return I.checkNodeType(e,"table-cell")}}),1)[0];if(n){n=fM(n,2)[1],e=P.start(e,n);if(bc.equals(t.anchor,e))return 1}}}function pM(e,t){var n,r,t=P.nodes(e,{at:t,match:function(e){return"table"===I.getNodeType(e)}}),o=!1;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),a=i.next();!a.done;a=i.next())a.value,o=!0}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}TL({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,r,o,i=vI(this),a=OL(i),u=AL(e,a),s=AL(void 0===t?a:t,a);if(QR(i)&&(n=i.constructor,(n=iM(n)&&(n===lM||QR(n.prototype))||zI(n)&&null===(n=n[sM])?void 0:n)===lM||void 0===n))return uM(i,u,s);for(r=new(void 0===n?lM:n)(cM(s-u,0)),o=0;u<s;u++,o++)u in i&&IR(r,o,i[u]);return r.length=o,r}});function hM(e,t){return new(void 0===(n=QR(e=e)&&(n=e.constructor,iM(n)&&(n===mM||QR(n.prototype))||zI(n)&&null===(n=n[yM]))?void 0:n)?mM:n)(0===t?0:t);var n}function gM(h){var g=1==h,v=2==h,y=3==h,m=4==h,b=6==h,w=7==h,x=5==h||b;return function(e,t,n,r){for(var o,i,a,u,s=wI(e),l=LI(s),c=(u=n,XI(a=t),void 0===u?a:vM?vM(a,u):function(){return a.apply(u,arguments)}),f=OL(l),d=0,n=r||hM,p=g?n(e,f):v||w?n(e,0):void 0;d<f;d++)if((x||d in l)&&(i=c(o=l[d],d,s),h))if(g)p[d]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return d;case 2:bM(p,o)}else switch(h){case 4:return!1;case 7:bM(p,o)}return b?-1:y||m?m:p}}var vM=_I(_I.bind),yM=EI("species"),mM=CI.Array,bM=_I([].push),wM={forEach:gM(0),map:gM(1),filter:gM(2),some:gM(3),every:gM(4),find:gM(5),findIndex:gM(6),filterReject:gM(7)},xM=wM.map;function EM(e){e=e.children||[];return 0!==e.length&&(e[0]||{}).children||[]}function DM(e){return EM(e).every(function(e){return!!e.isHeader})}TL({target:"Array",proto:!0,forced:!LR("map")},{map:function(e){return xM(this,e,1<arguments.length?arguments[1]:void 0)}}),s||qL(Object.prototype,"toString",s?{}.toString:function(){return"[object "+bR(this)+"]"},{unsafe:!0});function SM(n,e,t,r){var a,o=EI(n),u=!dI(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!dI(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[MM]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=_I(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=_I(e),i=t.exec;return i===JR||i===zM.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),qL(String.prototype,n,i[0]),qL(zM,o,i[1])),r&&DL(zM[o],"sham",!0)}function CM(o){return function(e,t){var n,e=_L(gI(e)),t=XL(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=WM(e,t))<55296||56319<n||t+1===r||(r=WM(e,t+1))<56320||57343<r?o?UM(e,t):n:o?GM(e,t,t+2):r-56320+(n-55296<<10)+65536}}function AM(e,t,n){return t+(n?qM(e,t).length:1)}function OM(e,t,n){for(var r=OL(e),o=AL(t,r),i=AL(void 0===n?r:n,r),a=KM(YM(i-o,0)),u=0;o<i;o++,u++)IR(a,u,e[o]);return a.length=u,a}function kM(e,t){var n=e.exec;if(MI(n))return null!==(n=OI(n,e,t))&&bL(n),n;if("RegExp"===hI(e))return OI(JR,e,t);throw XM("RegExp#exec called on incompatible receiver")}function BM(t){return function(e){e=_L(gI(e));return 1&t&&(e=oz(e,iz,"")),e=2&t?oz(e,az,""):e}}var FM,S=GL.PROPER,TM=RegExp.prototype,_M=TM.toString,PM=_I(DR),d=dI(function(){return"/a/b"!=_M.call({source:"a",flags:"b"})}),o1=S&&"toString"!=_M.name,a=((d||o1)&&qL(RegExp.prototype,"toString",function(){var e=bL(this),t=_L(e.source),n=e.flags;return"/"+t+"/"+_L(void 0!==n||!HI(TM,e)||"flags"in TM?n:PM(e))},{unsafe:!0}),EI("unscopables")),i=Array.prototype,jM=(null==i[a]&&EL.f(i,a,{configurable:!0,value:RR(null)}),wM.find),NM=!0,p=("find"in[]&&Array(1).find(function(){NM=!1}),TL({target:"Array",proto:!0,forced:NM},{find:function(e){return jM(this,e,1<arguments.length?arguments[1]:void 0)}}),i[a].find=!0,Function.prototype),IM=p.apply,v=p.bind,LM=p.call,RM="object"==typeof Reflect&&Reflect.apply||(v?LM.bind(IM):function(){return LM.apply(IM,arguments)}),MM=EI("species"),zM=RegExp.prototype,HM=EI("match"),$M=CI.TypeError,VM=EI("species"),UM=_I("".charAt),WM=_I("".charCodeAt),GM=_I("".slice),qM=(CM(!1),CM(!0)),KM=CI.Array,YM=Math.max,XM=CI.TypeError,ZM=c.UNSUPPORTED_Y,JM=Math.min,QM=[].push,ez=_I(/./.exec),tz=_I(QM),nz=_I("".slice),rz=(SM("split",function(o,h,g){var v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=_L(gI(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!zI(t=e)||!(void 0!==(s=t[HM])?s:"RegExp"==hI(t)))return OI(h,n,e,r);for(var o,i,a,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,s+"g");(o=OI(JR,c,n))&&!((i=c.lastIndex)>l&&(tz(u,nz(n,l,o.index)),1<o.length&&o.index<n.length&&RM(QM,u,OM(o,1)),a=o[0].length,l=i,r<=u.length));)c.lastIndex===o.index&&c.lastIndex++;return l===n.length?!a&&ez(c,"")||tz(u,""):tz(u,nz(n,l)),r<u.length?OM(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:OI(h,this,e,t)}:h;return[function(e,t){var n=gI(this),r=null==e?void 0:mI(e,o);return r?OI(r,e,n,t):OI(v,_L(n),e,t)},function(e,t){var r=bL(this),n=_L(e),e=g(v,r,n,t,v!==h);if(e.done)return e.value;var e=function(e){var t,n=bL(r).constructor;if(void 0===n||null==(t=bL(n)[VM]))return e;n=t;if(iM(n))return n;throw $M(KI(n)+" is not a constructor")}(RegExp),o=r.unicode,i=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(ZM?"g":"y"),a=new e(ZM?"^(?:"+r.source+")":r,i),u=void 0===t?4294967295:t>>>0;if(0==u)return[];if(0===n.length)return null===kM(a,n)?[n]:[];for(var s=0,l=0,c=[];l<n.length;){a.lastIndex=ZM?0:l;var f,d=kM(a,ZM?nz(n,l):n);if(null===d||(f=JM(eR(a.lastIndex+(ZM?l:0)),n.length))===s)l=AM(n,l,o);else{if(tz(c,nz(n,s,l)),c.length===u)return c;for(var p=1;p<=d.length-1;p++)if(tz(c,d[p]),c.length===u)return c;l=s=f}}return tz(c,nz(n,s)),c}]},!!dI(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),ZM),"\t\n\v\f\r                 \u2028\u2029\ufeff"),oz=_I("".replace),TP="["+rz+"]",iz=RegExp("^"+TP+TP+"*"),az=RegExp(TP+TP+"*$"),E={start:BM(1),end:BM(2),trim:BM(3)},uz=GL.PROPER,sz=E.trim;function lz(e){return e.length?e[0].tagName.toLowerCase():""}TL({target:"String",proto:!0,forced:(FM="trim",dI(function(){return rz.trim()||"​…᠎"!=="​…᠎".trim()||uz&&rz.trim.name!==FM}))},{trim:function(){return sz(this)}}),TL({global:!0},{globalThis:CI}),N.fn.append=nd,N.fn.on=Vf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.val=$f,N.fn.html=Qf,N.fn.dataset=Hf,N.fn.addClass=If,N.fn.removeClass=Lf,N.fn.children=ud,N.fn.each=Zf,N.fn.find=ad;var cz=!1,fz=0,dz=0,pz=null,hz=null,gz=N("body");function vz(e){cz=!1,pz=hz=null,gz.off("mousemove",wz),gz.off("mouseup",vz)}gz.on("mousedown",function(e){var t=e.target;"TH"!==t.tagName&&"TD"!==t.tagName||"col-resize"!==t.style.cursor||(t.style.cursor="auto",e.preventDefault(),cz=!0,e=e.clientX,fz=e,e=t.getBoundingClientRect().width,dz=e,gz.on("mousemove",wz),gz.on("mouseup",vz))});function yz(t){if(t&&t.forEach!==$z)try{DL(t,"forEach",$z)}catch(e){t.forEach=$z}}var mz,bz,wz=zd(function(e){cz&&null!=hz&&null!=pz&&(e.preventDefault(),e=e.clientX,e=dz+(e-fz),(e=Math.floor(100*e)/100)<30&&(e=30),j.setNodes(hz,{width:e.toString()},{at:pz}))},100),u={type:"table",renderElem:function(r,e,o){a=r;var t,n,i=!((u=o).isDisabled()||null!=(n=u.selection)&&!z.isCollapsed(n)&&(t=n.anchor,n=n.focus,a=I.findPath(u,a),i=P.start(u,a),u=P.end(u,a),a=bc.compare(t,u)<=0&&0<=bc.compare(t,i),u=bc.compare(n,u)<=0&&0<=bc.compare(n,i),!(a&&u&&M.equals(t.path.slice(0,3),n.path.slice(0,3))))),a=r.width,u=void 0===a?"auto":a;return pp("div",{className:"table-container","data-selected":I.isNodeSelected(o,r),on:{mousedown:function(e){var t,n;"DIV"===e.target.tagName&&e.preventDefault(),o.isDisabled()||(e=I.findPath(o,r),t=P.start(o,e),null!=(n=o.selection)&&n.anchor.path[0]===e[0])||o.select(t)}}},pp("table",{width:u,contentEditable:i},pp("colgroup",null,EM(r).map(function(e){e=e.width;return pp("col",{width:void 0===e?"auto":e})})),pp("tbody",null,e)))}},l={type:"table-row",renderElem:function(e,t,n){return pp("tr",null,t)}},vD={type:"table-cell",renderElem:function(u,e,s){r=s,t=u;var t,n=null!=(n=I.getParentNode(r,t))&&null!=(r=I.getParentNode(r,n))&&EM(r).some(function(e){return e===t}),r=u.colSpan,r=void 0===r?1:r,o=u.rowSpan,o=void 0===o?1:o,i=u.isHeader;return n?pp(void 0!==i&&i?"th":"td",{colSpan:r,rowSpan:o,style:{borderRightWidth:"3px"},on:{mousemove:zd(function(e){var t,n,r,o,i,a=this.elm;null!=a&&(t=(o=a.getBoundingClientRect()).left,n=o.width,r=o.top,o=o.height,i=e.clientX,e=e.clientY,cz||(t+n-5<i&&i<t+n&&r<e&&e<r+o?(a.style.cursor="col-resize",hz=s,pz=I.findPath(s,u)):cz||(a.style.cursor="auto",pz=hz=null)))},100)}},e):pp("td",{colSpan:r,rowSpan:o},e)}},D={selector:"table",preParseHtml:function(e){var t,n=N(e);return"table"!==lz(n)||0===(t=n.find("tbody")).length?e:(e=n.find("tr"),n.append(e),t.remove(),n[0])}},xz=wM.filter,Ez=(TL({target:"Array",proto:!0,forced:!LR("filter")},{filter:function(e){return xz(this,e,1<arguments.length?arguments[1]:void 0)}}),Math.floor),Dz=_I("".charAt),Sz=_I("".replace),Cz=_I("".slice),Az=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oz=/\$([$&'`]|\d{1,2})/g,kz=EI("replace"),Bz=Math.max,Fz=Math.min,Tz=_I([].concat),_z=_I([].push),Pz=_I("".indexOf),jz=_I("".slice),f="$0"==="a".replace(/./,"$0"),Nz=!!/./[kz]&&""===/./[kz]("a","$0"),lj=(SM("replace",function(e,b,w){var x=Nz?"$":"$0";return[function(e,t){var n=gI(this),r=null==e?void 0:mI(e,kz);return r?OI(r,e,n,t):OI(b,_L(n),e,t)},function(e,t){var n=bL(this),r=_L(e);if("string"==typeof t&&-1===Pz(t,x)&&-1===Pz(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=MI(t),a=(i||(t=_L(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=kM(n,r);if(null===s)break;if(_z(u,s),!a)break;""===_L(s[0])&&(n.lastIndex=AM(r,eR(n.lastIndex),o))}for(var l,c="",f=0,d=0;d<u.length;d++){for(var p=_L((s=u[d])[0]),h=Bz(Fz(XL(s.index),r.length),0),g=[],v=1;v<s.length;v++)_z(g,void 0===(l=s[v])?l:String(l));var y=s.groups,m=i?(m=Tz([p],g,h,r),void 0!==y&&_z(m,y),_L(RM(t,void 0,m))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=Oz;return void 0!==l&&(l=wI(l),t=Az),Sz(e,t,function(e,t){var n;switch(Dz(t,0)){case"$":return"$";case"&":return i;case"`":return Cz(a,0,u);case"'":return Cz(a,c);case"<":n=l[Cz(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=Ez(o/10))&&r<=f?void 0===s[r-1]?Dz(t,1):s[r-1]+Dz(t,1):e;n=s[o-1]}return void 0===n?"":n})}(p,r,h,g,y,t);f<=h&&(c+=jz(r,f,h)+m,f=h+p.length)}return c+jz(r,f)}]},!!dI(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!f||Nz),{selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var e=N(e),r=(0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),parseInt(e.attr("colSpan")||"1")),o=parseInt(e.attr("rowSpan")||"1"),i=e.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===lz(e),colSpan:r,rowSpan:o,width:i,children:t}}}),n={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(e){return"table-cell"===I.getNodeType(e)})}}},g={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=N(e),e="auto";return"100%"===function(){for(var e="",t=(i.attr("style")||"").split(";"),n=t.length,r=0;r<n;r++){var o=t[r];o&&"width"===(o=o.split(":"))[0].trim()&&(e=o[1].trim())}return e}()&&(e="100%"),{type:"table",width:e="100%"===i.attr("width")?"100%":e,children:t.filter(function(e){return"table-row"===I.getNodeType(e)})}}},Iz=(Gz.prototype.getValue=function(e){return""},Gz.prototype.isActive=function(e){return!1},Gz.prototype.exec=function(e,t){},Gz.prototype.isDisabled=function(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!I.getSelectedElems(n).some(function(e){var t=I.getNodeType(e);return"pre"===t||"table"===t||"list-item"===t||!!n.isVoid(e)})},Gz.prototype.getPanelContentElem=function(n){var r=this;if(this.$content)return this.$content[0];for(var e=N('<div class="w-e-panel-content-table"></div>'),t=N("<span>0 &times; 0</span>"),i=N("<table></table>"),o=0;o<10;o++){for(var a=N("<tr></tr>"),u=0;u<10;u++){var s=N("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",o.toString()),a.append(s),s.on("mouseenter",function(e){var r,o,e=e.target;null!=e&&(e=N(e).dataset(),r=e.x,o=e.y,t[0].innerHTML=r+1+" &times; "+(o+1),i.children().each(function(e){N(e).children().each(function(e){var e=N(e),t=e.dataset(),n=t.x,t=t.y;n<=r&&t<=o?e.addClass("active"):e.removeClass("active")})}))}),s.on("click",function(e){e.preventDefault();var t,e=e.target;null!=e&&(t=(e=N(e).dataset()).x,e=e.y,r.insertTable(n,e+1,t+1))})}i.append(a)}return e.append(i),e.append(t),(this.$content=e)[0]},Gz.prototype.insertTable=function(e,t,n){var t=parseInt(t,10),n=parseInt(n,10);t&&n&&!(t<=0||n<=0)&&(I.isSelectedEmptyParagraph(e)&&j.removeNodes(e,{mode:"highest"}),t=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(t,n),j.insertNodes(e,t,{mode:"highest"}))},Gz),Lz=(Wz.prototype.getValue=function(e){return""},Wz.prototype.isActive=function(e){return!1},Wz.prototype.isDisabled=function(e){return null==e.selection||null==I.getSelectedNodeByType(e,"table")},Wz.prototype.exec=function(e,t){this.isDisabled(e)||j.removeNodes(e,{mode:"highest"})},Wz),Rz=(Uz.prototype.getValue=function(e){return""},Uz.prototype.isActive=function(e){return!1},Uz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},Uz.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=fM(P.nodes(e,{match:function(e){return I.checkNodeType(e,"table-cell")},universal:!0}),1),n=fM(n[0],2),r=n[0],n=n[1],r=I.getParentNode(e,r),o=(null==r?void 0:r.children.length)||0;if(0!==o){for(var i={type:"table-row",children:[]},a=0;a<o;a++)i.children.push({type:"table-cell",children:[{text:""}]});r=M.parent(n),n=M.next(r);j.insertNodes(e,i,{at:n})}}},Uz),Mz=(Vz.prototype.getValue=function(e){return""},Vz.prototype.isActive=function(e){return!1},Vz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table-row")},Vz.prototype.exec=function(e,t){var n,r;this.isDisabled(e)||(n=fM(P.nodes(e,{match:function(e){return I.checkNodeType(e,"table-row")},universal:!0}),1),r=(n=fM(n[0],2))[0],n=n[1],((null==(r=I.getParentNode(e,r))?void 0:r.children.length)||0)<=1?j.removeNodes(e,{mode:"highest"}):j.removeNodes(e,{at:n}))},Vz),zz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},s=SI("span").classList,S=s&&s.constructor&&s.constructor.prototype,d=S===Object.prototype?void 0:S,Hz=wM.forEach,$z=(mz=[].forEach)&&dI(function(){mz.call(null,function(){throw 1},1)})?[].forEach:function(e){return Hz(this,e,1<arguments.length?arguments[1]:void 0)};function Vz(){this.title=w("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}function Uz(){this.title=w("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}function Wz(){this.title=w("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}function Gz(){this.title=w("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}for(bz in zz)zz[bz]&&yz(CI[bz]&&CI[bz].prototype);yz(d);eH.prototype.getValue=function(e){return""},eH.prototype.isActive=function(e){return!1},eH.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},eH.prototype.exec=function(r,e){var t,o,n,i;this.isDisabled(r)||(n=fM(P.nodes(r,{match:function(e){return I.checkNodeType(e,"table-cell")},universal:!0}),1),t=(n=fM(n[0],2))[0],o=n[1],null!=(n=I.getParentNode(r,t))&&null!=(i=I.getParentNode(r,n))&&(i.children||[]).forEach(function(e,n){_.isElement(e)&&(e.children||[]).forEach(function(e){var t,e=I.findPath(r,e);e.length===o.length&&lI(e.slice(-1),o.slice(-1))&&(t={type:"table-cell",children:[{text:""}]},0===n&&DM(i)&&(t.isHeader=!0),j.insertNodes(r,t,{at:e}))})}))};var qz=eH,Kz=(Qz.prototype.getValue=function(e){return""},Qz.prototype.isActive=function(e){return!1},Qz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table-cell")},Qz.prototype.exec=function(t,e){var n,r,o;this.isDisabled(t)||(r=fM(P.nodes(t,{match:function(e){return I.checkNodeType(e,"table-cell")},universal:!0}),1),o=(r=fM(r[0],2))[0],n=r[1],o=(null==(r=I.getParentNode(t,o))?void 0:r.children.length)||0,!r||o<=1?j.removeNodes(t,{mode:"highest"}):null!=(o=I.getParentNode(t,r))&&(o.children||[]).forEach(function(e){_.isElement(e)&&(e.children||[]).forEach(function(e){e=I.findPath(t,e);e.length===n.length&&lI(e.slice(-1),n.slice(-1))&&j.removeNodes(t,{at:e})})}))},Qz),Yz=(Jz.prototype.getValue=function(e){e=I.getSelectedNodeByType(e,"table");return null!=e&&DM(e)},Jz.prototype.isActive=function(e){return!!this.getValue(e)},Jz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},Jz.prototype.exec=function(t,e){var n;this.isDisabled(t)||(n=!e,null!=(e=I.getSelectedNodeByType(t,"table"))&&EM(e).forEach(function(e){return j.setNodes(t,{isHeader:n},{at:I.findPath(t,e)})}))},Jz),Xz=(Zz.prototype.getValue=function(e){e=I.getSelectedNodeByType(e,"table");return null!=e&&"100%"===e.width},Zz.prototype.isActive=function(e){return!!this.getValue(e)},Zz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},Zz.prototype.exec=function(e,t){this.isDisabled(e)||j.setNodes(e,{width:t?"auto":"100%"},{mode:"highest"})},Zz),o1={renderElems:[u,l,vD],elemsToHtml:[{type:"table",elemToHtml:function(e,t){e=e.width;return'<table style="width: '+(void 0===e?"auto":e)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e.colSpan,r=e.rowSpan,o=e.isHeader,e=e.width,o=void 0!==o&&o?"th":"td";return"<"+o+' colSpan="'+(void 0===n?1:n)+'" rowSpan="'+(void 0===r?1:r)+'" width="'+(void 0===e?"auto":e)+'">'+t+"</"+o+">"}}],preParseHtml:[D],parseElemsHtml:[lj,n,g],menus:[{key:"insertTable",factory:function(){return new Iz}},{key:"deleteTable",factory:function(){return new Lz}},{key:"insertTableRow",factory:function(){return new Rz}},{key:"deleteTableRow",factory:function(){return new Mz}},{key:"insertTableCol",factory:function(){return new qz}},{key:"deleteTableCol",factory:function(){return new Kz}},{key:"tableHeader",factory:function(){return new Yz}},{key:"tableFullWidth",factory:function(){return new Xz}}],editorPlugin:function(n){var e=n.insertBreak,r=n.deleteBackward,t=n.deleteForward,o=n.normalizeNode,i=n.insertData,a=n.handleTab,u=n.selectAll,s=n;return s.insertBreak=function(){null==I.getSelectedNodeByType(s,"table")?e():s.insertText("\n")},s.deleteBackward=function(e){if(!dM(s)){var t=s.selection;if(t){var n=P.before(s,t);if(n){n=pM(s,n),t=pM(s,t);if(n&&!t)return}}r(e)}},s.handleTab=function(){var e,t;I.getSelectedNodeByType(s,"table")?(e=P.above(n),I.checkNodeType(e[0],"table-cell")&&j.select(n,e[1]),(e=P.next(n))?(e[0]&&e[0].text&&(e=null!=(t=P.above(n,{at:e[1]}))?t:e),j.select(n,e[1])):(e=(t=s.children||[]).length,I.checkNodeType(t[e-1],"table")&&(t=I.genEmptyParagraph(),j.insertNodes(s,t,{at:[e]}),s.handleTab()))):a()},s.deleteForward=function(e){dM(s)||t(e)},s.normalizeNode=function(e){var e=fM(e,2),t=e[0],e=e[1];if("table"!==I.getNodeType(t))return o([t,e]);I.isLastNode(s,t)&&(t=I.genEmptyParagraph(),j.insertNodes(s,t,{at:[e[0]+1]}))},s.insertData=function(e){var t;null==I.getSelectedNodeByType(s,"table")||"\n"===(t=e.getData("text/plain"))||/<img[^>]+>/.test(e.getData("text/html"))?i(e):P.insertText(s,t)},s.selectAll=function(){var e,t,n=s.selection;null!=n&&null!=(e=I.getSelectedNodeByType(s,"table-cell"))&&(t=n.anchor,n=n.focus,M.equals(t.path.slice(0,3),n.path.slice(0,3)))&&0!==R.string(e).length?(t=I.findPath(s,e),n={anchor:P.start(s,t),focus:P.end(s,t)},s.select(n)):u()},s}};function Zz(){this.title=w("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}function Jz(){this.title=w("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}function Qz(){this.title=w("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}function eH(){this.title=w("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}g6("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),g6("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var tH=function(){return(tH=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function nH(e,a,u,s){return new(u=u||Promise)(function(n,t){function r(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof u?t:new u(function(e){e(t)})).then(r,o)}i((s=s.apply(e,a||[])).next())})}function rH(r,o){var i,a,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(u=2&t[0]?a.return:t[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,t[1])).done)return u;switch(a=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,a=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!((u=0<(u=s.trys).length&&u[u.length-1])||6!==t[0]&&2!==t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3]))s.label=t[1];else if(6===t[0]&&s.label<u[1])s.label=u[1],u=t;else{if(!(u&&s.label<u[2])){u[2]&&s.ops.pop(),s.trys.pop();continue}s.label=u[2],s.ops.push(t)}}t=o.call(r,s)}catch(e){t=[6,e],a=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function oH(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function iH(e){var t={exports:{}};return e(t,t.exports),t.exports}function aH(e){return e&&e.Math==Math&&e}function uH(e){try{return!!e()}catch(e){return!0}}function sH(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function lH(e){return OH(AH(e),8,-1)}function cH(e){if(null==e)throw TH("Can't call method on "+e);return e}function fH(e){return FH(cH(e))}function dH(e,t){return arguments.length<2?(n=C[e],_H(n)?n:void 0):C[e]&&C[e][t];var n}function pH(t,n){try{GH(C,t,{value:n,configurable:!0,writable:!0})}catch(e){C[t]=n}return n}function hH(e){return KH(cH(e))}function gH(e){return"Symbol("+(void 0===e?"":e)+")_"+QH(++ZH+JH,36)}function vH(e){var t;return XH(e$,e)&&(IH||"string"==typeof e$[e])||(t="Symbol."+e,IH&&XH(t$,e)?e$[e]=t$[e]:e$[e]=(LH&&n$?n$:r$)(t)),e$[e]}function yH(e){return e=function(e,t){if(!PH(e)||MH(e))return e;var n,r,o=UH(e,i$);if(o){if(o=wH(o,e,t=void 0===t?"default":t),!PH(o)||MH(o))return o;throw o$("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&_H(n=o.toString)&&!PH(r=wH(n,o)))return r;if(_H(n=o.valueOf)&&!PH(r=wH(n,o)))return r;if("string"!==e&&_H(n=o.toString)&&!PH(r=wH(n,o)))return r;throw WH("Can't convert object to primitive value")}(e,"string"),MH(e)?e:e+""}function mH(e){return u$?a$.createElement(e):{}}var C=aH("object"==typeof globalThis&&globalThis)||aH("object"==typeof window&&window)||aH("object"==typeof self&&self)||aH("object"==typeof i&&i)||function(){return this}()||Function("return this")(),a=!uH(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),bH=Function.prototype.call,wH=bH.bind?bH.bind(bH):function(){return bH.apply(bH,arguments)},p={}.propertyIsEnumerable,xH=Object.getOwnPropertyDescriptor,EH={f:xH&&!p.call({1:2},1)?function(e){e=xH(this,e);return!!e&&e.enumerable}:p},v=Function.prototype,c=v.bind,DH=v.call,SH=c&&c.bind(DH),CH=c?function(e){return e&&SH(DH,e)}:function(e){return e&&function(){return DH.apply(e,arguments)}},AH=CH({}.toString),OH=CH("".slice),kH=C.Object,BH=CH("".split),FH=uH(function(){return!kH("z").propertyIsEnumerable(0)})?function(e){return"String"==lH(e)?BH(e,""):kH(e)}:kH,TH=C.TypeError,_H=function(e){return"function"==typeof e},PH=function(e){return"object"==typeof e?null!==e:_H(e)},jH=CH({}.isPrototypeOf),TP=dH("navigator","userAgent")||"",E=C.process,f=C.Deno,s=E&&E.versions||f&&f.version,S=s&&s.v8,NH=pU=!(pU=S?0<(fU=S.split("."))[0]&&fU[0]<4?1:+(fU[0]+fU[1]):pU)&&TP&&(!(fU=TP.match(/Edge\/(\d+)/))||74<=fU[1])&&(fU=TP.match(/Chrome\/(\d+)/))?+fU[1]:pU,IH=!!Object.getOwnPropertySymbols&&!uH(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&NH&&NH<41}),LH=IH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,RH=C.Object,MH=LH?function(e){return"symbol"==typeof e}:function(e){var t=dH("Symbol");return _H(t)&&jH(t.prototype,RH(e))},zH=C.String,HH=function(e){try{return zH(e)}catch(e){return"Object"}},$H=C.TypeError,VH=function(e){if(_H(e))return e;throw $H(HH(e)+" is not a function")},UH=function(e,t){e=e[t];return null==e?void 0:VH(e)},WH=C.TypeError,GH=Object.defineProperty,qH=C["__core-js_shared__"]||pH("__core-js_shared__",{}),wM=iH(function(e){(e.exports=function(e,t){return qH[e]||(qH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),KH=C.Object,YH=CH({}.hasOwnProperty),XH=Object.hasOwn||function(e,t){return YH(hH(e),t)},ZH=0,JH=Math.random(),QH=CH(1..toString),e$=wM("wks"),t$=C.Symbol,n$=t$&&t$.for,r$=LH?t$:t$&&t$.withoutSetter||gH,o$=C.TypeError,i$=vH("toPrimitive"),a$=C.document,u$=PH(a$)&&PH(a$.createElement),s$=!a&&!uH(function(){return 7!=Object.defineProperty(mH("div"),"a",{get:function(){return 7}}).a}),l$=Object.getOwnPropertyDescriptor,c$={f:a?l$:function(e,t){if(e=fH(e),t=yH(t),s$)try{return l$(e,t)}catch(e){}if(XH(e,t))return sH(!wH(EH.f,e,t),e[t])}},f$=C.String,d$=C.TypeError,p$=function(e){if(PH(e))return e;throw d$(f$(e)+" is not an object")},h$=C.TypeError,g$=Object.defineProperty,v$={f:a?g$:function(e,t,n){if(p$(e),t=yH(t),p$(n),s$)try{return g$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw h$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},y$=a?function(e,t,n){return v$.f(e,t,sH(1,n))}:function(e,t,n){return e[t]=n,e},m$=CH(Function.toString);_H(qH.inspectSource)||(qH.inspectSource=function(e){return m$(e)});function b$(e){return L$[e]||(L$[e]=gH(e))}function w$(e,t){return(e=W$(e))<0?G$(e+t,0):q$(e,t)}function x$(e){return Y$(e.length)}function E$(u){return function(e,t,n){var r,o=fH(e),i=x$(o),a=w$(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function D$(e,t){var n,r=fH(e),o=0,i=[];for(n in r)!XH(R$,n)&&XH(r,n)&&Z$(i,n);for(;t.length>o;)!XH(r,n=t[o++])||~X$(i,n)||Z$(i,n);return i}function S$(e,t){return(e=aV[iV(e)])==sV||e!=uV&&(_H(t)?uH(t):!!t)}function C$(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?C:s?C[a]||pH(a,{}):(C[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=cV(n,r))&&i.value:n[r],!lV(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=rV(c),d=v$.f,p=c$.f,h=0;h<f.length;h++){var g=f[h];XH(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&y$(o,"sham",!0),$$(n,r,o,e)}}function A$(e){if("Symbol"===hV(e))throw TypeError("Cannot convert a Symbol value to a string");return gV(e)}function O$(t){return function(e){e=A$(cH(e));return 1&t&&(e=yV(e,mV,"")),e=2&t?yV(e,bV,""):e}}var k$,B$,F$,T$,_$,P$,j$,N$,I$=qH.inspectSource,d=C.WeakMap,u=_H(d)&&/native code/.test(I$(d)),L$=wM("keys"),R$={},M$=C.TypeError,l=C.WeakMap,z$=(j$=u||qH.state?(k$=qH.state||(qH.state=new l),B$=CH(k$.get),F$=CH(k$.has),T$=CH(k$.set),_$=function(e,t){if(F$(k$,e))throw new M$("Object already initialized");return t.facade=e,T$(k$,e,t),t},P$=function(e){return B$(k$,e)||{}},function(e){return F$(k$,e)}):(N$=b$("state"),R$[N$]=!0,_$=function(e,t){if(XH(e,N$))throw new M$("Object already initialized");return t.facade=e,y$(e,N$,t),t},P$=function(e){return XH(e,N$)?e[N$]:{}},function(e){return XH(e,N$)}),{set:_$,get:P$,has:j$,enforce:function(e){return j$(e)?P$(e):_$(e,{})},getterFor:function(t){return function(e){if(PH(e)&&(e=P$(e)).type===t)return e;throw M$("Incompatible receiver, "+t+" required")}}}),vD=Function.prototype,D=a&&Object.getOwnPropertyDescriptor,lj=XH(vD,"name"),H$={EXISTS:lj,PROPER:lj&&"something"===function(){}.name,CONFIGURABLE:lj&&(!a||D(vD,"name").configurable)},$$=iH(function(e){var s=H$.CONFIGURABLE,t=z$.get,l=z$.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;_H(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!XH(n,"name")||s&&n.name!==r)&&y$(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==C?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:y$(e,t,n)):a?e[t]=n:pH(t,n)})(Function.prototype,"toString",function(){return _H(this)&&t(this).source||I$(this)})}),V$=Math.ceil,U$=Math.floor,W$=function(e){e=+e;return e!=e||0==e?0:(0<e?U$:V$)(e)},G$=Math.max,q$=Math.min,K$=Math.min,Y$=function(e){return 0<e?K$(W$(e),9007199254740991):0},n={includes:E$(!0),indexOf:E$(!1)},X$=n.indexOf,Z$=CH([].push),J$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Q$=J$.concat("length","prototype"),eV={f:Object.getOwnPropertyNames||function(e){return D$(e,Q$)}},tV={f:Object.getOwnPropertySymbols},nV=CH([].concat),rV=dH("Reflect","ownKeys")||function(e){var t=eV.f(p$(e)),n=tV.f;return n?nV(t,n(e)):t},oV=/#|\.prototype\./,iV=S$.normalize=function(e){return String(e).replace(oV,".").toLowerCase()},aV=S$.data={},uV=S$.NATIVE="N",sV=S$.POLYFILL="P",lV=S$,cV=c$.f,g={},i=(g[vH("toStringTag")]="z","[object z]"===String(g)),fV=vH("toStringTag"),dV=C.Object,pV="Arguments"==lH(function(){return arguments}()),hV=i?lH:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=dV(e),fV))?t:pV?lH(e):"Object"==(t=lH(e))&&_H(e.callee)?"Arguments":t},gV=C.String,vV="\t\n\v\f\r                 \u2028\u2029\ufeff",yV=CH("".replace),p="["+vV+"]",mV=RegExp("^"+p+p+"*"),bV=RegExp(p+p+"*$"),v={start:O$(1),end:O$(2),trim:O$(3)},wV=H$.PROPER,xV=v.trim;function EV(e){return e.length?e[0].tagName.toLowerCase():""}function DV(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");e=N(e);return e.attr("width",t),e.attr("height",n),e[0].outerHTML}C$({target:"String",proto:!0,forced:uH(function(){return vV.trim()||"​…᠎"!=="​…᠎".trim()||wV&&"trim"!==vV.trim.name})},{trim:function(){return xV(this)}}),C$({global:!0},{globalThis:C}),N.fn.append=nd,N.fn.on=Vf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.val=$f,N.fn.html=Qf,N.fn.parent=od,N.fn.hasClass=Rf,N.fn.empty=ld;function SV(){}function CV(e){e.write(LV("")),e.close();var t=e.parentWindow.Object;return e=null,t}function AV(e){HV[zV][e]=!0}function OV(e,t){return VH(e),void 0===t?e:VV?VV(e,t):function(){return e.apply(t,arguments)}}function kV(){}function BV(e){if(!_H(e))return!1;try{return GV(kV,WV,e),!0}catch(e){return!1}}function FV(e,t){return new(void 0===(n=UV(e=e)&&(n=e.constructor,XV(n)&&(n===JV||UV(n.prototype))||PH(n)&&null===(n=n[ZV]))?void 0:n)?JV:n)(0===t?0:t);var n}function TV(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=hH(e),u=FH(a),s=OV(t,n),l=x$(u),c=0,t=r||FV,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:QV(f,o)}else switch(d){case 4:return!1;case 7:QV(f,o)}return y?-1:g||v?v:f}}var _V,c={type:"video",renderElem:function(e,t,n){var r=e.src,r=void 0===r?"":r,o=e.poster,o=void 0===o?"":o,i=e.width,i=void 0===i?"auto":i,a=e.height,a=void 0===a?"auto":a,n=I.isNodeSelected(n,e),o=0===r.trim().indexOf("<iframe ")?pp("div",{className:"w-e-textarea-video-container","data-selected":n?"true":"",innerHTML:DV(r,i,a)}):(e=pp("video",{poster:o,controls:!0},pp("source",{src:r,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频"),"auto"!==i&&(e.data.width=i),"auto"!==a&&(e.data.height=a),pp("div",{className:"w-e-textarea-video-container","data-selected":n?"true":""},e));return Zd("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},o)}},E={type:"video",elemToHtml:function(e,t){var n=e.src,n=void 0===n?"":n,r=e.poster,r=void 0===r?"":r,o=e.width,o=void 0===o?"auto":o,e=e.height,e=void 0===e?"auto":e,i='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===n.trim().indexOf("<iframe ")?i+=DV(n,o,e):i+='<video poster="'+r+'" controls="true" width="'+o+'" height="'+e+'"><source src="'+n+'" type="video/mp4"/></video>',i+"\n</div>"}},PV=Object.keys||function(e){return D$(e,J$)},jV=a?Object.defineProperties:function(e,t){p$(e);for(var n,r=fH(t),o=PV(t),i=o.length,a=0;a<i;)v$.f(e,n=o[a++],r[n]);return e},NV=dH("document","documentElement"),IV=b$("IE_PROTO"),LV=function(e){return"<script>"+e+"<\/script>"},RV=function(){try{_V=new ActiveXObject("htmlfile")}catch(e){}var e,t;RV="undefined"==typeof document||document.domain&&_V?CV(_V):((t=mH("iframe")).style.display="none",NV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(LV("document.F=Object")),e.close(),e.F);for(var n=J$.length;n--;)delete RV.prototype[J$[n]];return RV()},MV=(R$[IV]=!0,Object.create||function(e,t){var n;return null!==e?(SV.prototype=p$(e),n=new SV,SV.prototype=null,n[IV]=e):n=RV(),void 0===t?n:jV(n,t)}),zV=vH("unscopables"),HV=Array.prototype,$V=(null==HV[zV]&&v$.f(HV,zV,{configurable:!0,value:MV(null)}),n.includes),f=(C$({target:"Array",proto:!0},{includes:function(e){return $V(this,e,1<arguments.length?arguments[1]:void 0)}}),AV("includes"),{selector:"iframe,video,p",preParseHtml:function(e){var e=N(e),t=e,n=("p"===EV(e)&&1===(e=e.children()).length&&(n=(e=e[0]).tagName.toLowerCase(),["iframe","video"].includes(n))&&(t=N(e)),EV(t));return("iframe"!==n&&"video"!==n||"video"===t.parent().attr("data-w-e-type")?t:((e=N('<div data-w-e-type="video" data-w-e-is-void></div>')).append(t),e))[0]}}),VV=CH(CH.bind),UV=Array.isArray||function(e){return"Array"==lH(e)},WV=[],GV=dH("Reflect","construct"),qV=/^\s*(?:class|function)\b/,KV=CH(qV.exec),YV=!qV.exec(kV),XV=!GV||uH(function(){var e;return BV(BV.call)||!BV(Object)||!BV(function(){e=!0})||e})?function(e){if(!_H(e))return!1;switch(hV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return YV||!!KV(qV,I$(e))}:BV,ZV=vH("species"),JV=C.Array,QV=CH([].push),s={forEach:TV(0),map:TV(1),filter:TV(2),some:TV(3),every:TV(4),find:TV(5),findIndex:TV(6),filterReject:TV(7)},eU=s.find,tU=!0,S=("find"in[]&&Array(1).find(function(){tU=!1}),C$({target:"Array",proto:!0,forced:tU},{find:function(e){return eU(this,e,1<arguments.length?arguments[1]:void 0)}}),AV("find"),i?{}.toString:function(){return"[object "+hV(this)+"]"});function nU(e,t,n,r){return{type:"video",src:e,poster:t=void 0===t?"":t,width:n=void 0===n?"auto":n,height:r=void 0===r?"auto":r,children:[{text:""}]}}i||$$(Object.prototype,"toString",S,{unsafe:!0});function rU(){var e=p$(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function oU(o){return function(e,t){var n,e=A$(cH(e)),t=W$(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=PU(e,t))<55296||56319<n||t+1===r||(r=PU(e,t+1))<56320||57343<r?o?_U(e,t):n:o?jU(e,t,t+2):r-56320+(n-55296<<10)+65536}}var iU,aU,uU,sU,lU,cU,fU={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var e=N(e),r="",o="auto",i="auto",a=e.find("iframe");return 0<a.length?(o=a.attr("width")||"auto",i=a.attr("height")||"auto",nU(r=a[0].outerHTML,"",o,i)):((r=(a=e.find("video")).attr("src")||"")||0<a.length&&(r=a.find("source").attr("src")||""),o=a.attr("width")||"auto",i=a.attr("height")||"auto",nU(r,a.attr("poster")||"",o,i))}},dU=C.RegExp,pU=uH(function(){var e=dU("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),d=pU||uH(function(){return!dU("a","y").sticky}),l={BROKEN_CARET:pU||uH(function(){var e=dU("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:d,UNSUPPORTED_Y:pU},hU=C.RegExp,lj=uH(function(){var e=hU(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),gU=C.RegExp,D=uH(function(){var e=gU("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),vU=z$.get,yU=wM("native-string-replace",String.prototype.replace),mU=RegExp.prototype.exec,bU=mU,wU=CH("".charAt),xU=CH("".indexOf),EU=CH("".replace),DU=CH("".slice),SU=(vD=/b*/g,wH(mU,g=/a/,"a"),wH(mU,vD,"a"),0!==g.lastIndex||0!==vD.lastIndex),CU=l.BROKEN_CARET,AU=void 0!==/()??/.exec("")[1],OU=bU=SU||AU||CU||lj||D?function(e){var t,n,r,o,i,a,u=this,s=vU(u),e=A$(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=wH(bU,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=CU&&u.sticky,f=wH(rU,u),s=u.source,d=0,p=e;if(l&&(f=EU(f,"y",""),-1===xU(f,"g")&&(f+="g"),p=DU(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==wU(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),AU&&(t=new RegExp("^"+s+"$(?!\\s)",f)),SU&&(n=u.lastIndex),r=wH(mU,l?t:u,p),l?r?(r.input=DU(r.input,d),r[0]=DU(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:SU&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),AU&&r&&1<r.length&&wH(yU,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=MV(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:bU,p=(C$({target:"RegExp",proto:!0,forced:/./.exec!==OU},{exec:OU}),Function.prototype),kU=p.apply,v=p.bind,BU=p.call,FU="object"==typeof Reflect&&Reflect.apply||(v?BU.bind(kU):function(){return BU.apply(kU,arguments)}),TU=(vH("species"),RegExp.prototype),_U=CH("".charAt),PU=CH("".charCodeAt),jU=CH("".slice),e={codeAt:oU(!1),charAt:oU(!0)},NU=e.charAt,IU=Math.floor,LU=CH("".charAt),RU=CH("".replace),MU=CH("".slice),zU=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HU=/\$([$&'`]|\d{1,2})/g,$U=C.TypeError,VU=vH("replace"),UU=Math.max,WU=Math.min,GU=CH([].concat),qU=CH([].push),KU=CH("".indexOf),YU=CH("".slice),n="$0"==="a".replace(/./,"$0"),i=!!/./[VU]&&""===/./[VU]("a","$0");function XU(e){return(e=void 0===e?"r":e)+"-"+Od()}iU="replace",S=!!uH(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!n||i,lU=vH(iU),cU=!uH(function(){var e={};return e[lU]=function(){return 7},7!=""[iU](e)}),d=cU&&!uH(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[lU](""),!e}),cU&&d&&!S||(aU=CH(/./[lU]),uU=""[iU],sU=i?"$":"$0",d=[function(e,t){var n=cH(this),r=null==e?void 0:UH(e,VU);return r?wH(r,e,n,t):wH(uU,A$(n),e,t)},function(e,t){var n,r,o,i,a=p$(this),u=A$(e);if("string"==typeof t&&-1===KU(t,sU)&&-1===KU(t,"$<")){e=a,n=u,r=t,i=CH(uU);var s=(s=e.exec)===OU||s===TU.exec?cU&&!o?{done:!0,value:aU(e,n,r)}:{done:!0,value:i(n,e,r)}:{done:!1};if(s.done)return s.value}var l,c=_H(t),f=(c||(t=A$(t)),a.global);f&&(l=a.unicode,a.lastIndex=0);for(var d,p,h=[];;){var g=function(e,t){var n=e.exec;if(_H(n))return null!==(n=wH(n,e,t))&&p$(n),n;if("RegExp"===lH(e))return wH(OU,e,t);throw $U("RegExp#exec called on incompatible receiver")}(a,u);if(null===g)break;if(qU(h,g),!f)break;""===A$(g[0])&&(a.lastIndex=(d=u,(p=Y$(a.lastIndex))+(l?NU(d,p).length:1)))}for(var v,y="",m=0,b=0;b<h.length;b++){for(var w=A$((g=h[b])[0]),x=UU(WU(W$(g.index),u.length),0),E=[],D=1;D<g.length;D++)qU(E,void 0===(v=g[D])?v:String(v));var S=g.groups,C=c?(C=GU([w],E,x,u),void 0!==S&&qU(C,S),A$(FU(t,void 0,C))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=HU;return void 0!==l&&(l=hH(l),t=zU),RU(e,t,function(e,t){var n;switch(LU(t,0)){case"$":return"$";case"&":return i;case"`":return MU(a,0,u);case"'":return MU(a,c);case"<":n=l[MU(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=IU(o/10))&&r<=f?void 0===s[r-1]?LU(t,1):s[r-1]+LU(t,1):e;n=s[o-1]}return void 0===n?"":n})}(w,u,x,E,S,t);m<=x&&(y+=YU(u,m,x)+C,m=x+w.length)}return y+YU(u,m)}],$$(String.prototype,iU,d[0]),$$(TU,lU,d[1]));function ZU(e,t,n){for(var r in t)$$(e,r,t[r],n);return e}function JU(e,t,n){e&&!XH(e=n?e:e.prototype,sW)&&uW(e,sW,{configurable:!0,value:t})}function QU(e,t){if(!jH(t,e))throw lW("Incorrect invocation")}function eW(e){if(null!=e)return UH(e,pW)||UH(e,"@@iterator")||cW[hV(e)]}function tW(e,t,n){var r,o;p$(e);try{if(!(r=UH(e,"return"))){if("throw"===t)throw n;return}r=wH(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;p$(r)}function nW(e,t){this.stopped=e,this.result=t}function rW(e,t,n){function r(e){return i&&tW(i,"normal",e),new nW(!0,e)}function o(e){return d?(p$(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=OV(t,f);if(p)i=e;else{if(!(n=eW(e)))throw gW(HH(e)+" is not iterable");if(void 0!==n&&(cW.Array===n||dW[fW]===n)){for(a=0,u=x$(e);a<u;a++)if((s=o(e[a]))&&jH(vW,s))return;return}i=function(e,t){t=arguments.length<2?eW(e):t;if(VH(t))return p$(wH(t,e));throw hW(HH(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=wH(l,i)).done;){try{s=o(c.value)}catch(e){tW(i,"throw",e)}if("object"==typeof s&&s&&jH(vW,s))return}}var pU=C.Promise,oW=C.String,iW=C.TypeError,aW=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=CH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){p$(e);var n=t;if("object"==typeof n||_H(n))return o?r(e,t):e.__proto__=t,e;throw iW("Can't set "+oW(n)+" as a prototype")}}():void 0),uW=v$.f,sW=vH("toStringTag"),wM=vH("species"),lW=C.TypeError,cW={},fW=vH("iterator"),dW=Array.prototype,pW=vH("iterator"),hW=C.TypeError,gW=C.TypeError,vW=nW.prototype,yW=vH("iterator"),mW=!1;try{var bW=0,wW={next:function(){return{done:!!bW++}},return:function(){mW=!0}};wW[yW]=function(){return this},Array.from(wW,function(){throw 2})}catch(Fs){}function xW(e,t){if(!t&&!mW)return!1;var n=!1;try{var r={};r[yW]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}var EW,DW,SW=C.TypeError,CW=vH("species"),AW=CH([].slice),g=/(?:ipad|iphone|ipod).*applewebkit/i.test(TP),OW="process"==lH(C.process),vD=C.setImmediate,l=C.clearImmediate,kW=C.process,BW=C.Dispatch,FW=C.Function,lj=C.MessageChannel,TW=C.String,_W=0,PW={};try{EW=C.location}catch(Fs){}function jW(e){return function(){LW(e)}}function NW(e){LW(e.data)}function IW(e){C.postMessage(TW(e),EW.protocol+"//"+EW.host)}var LW=function(e){var t;XH(PW,e)&&(t=PW[e],delete PW[e],t())};vD&&l||(vD=function(e){var t=AW(arguments,1);return PW[++_W]=function(){FU(_H(e)?e:FW(e),void 0,t)},DW(_W),_W},l=function(e){delete PW[e]},OW?DW=function(e){kW.nextTick(jW(e))}:BW&&BW.now?DW=function(e){BW.now(jW(e))}:lj&&!g?(p=(D=new lj).port2,D.port1.onmessage=NW,DW=OV(p.postMessage,p)):C.addEventListener&&_H(C.postMessage)&&!C.importScripts&&EW&&"file:"!==EW.protocol&&!uH(IW)?(DW=IW,C.addEventListener("message",NW,!1)):DW="onreadystatechange"in mH("script")?function(e){NV.appendChild(mH("script")).onreadystatechange=function(){NV.removeChild(this),LW(e)}}:function(e){setTimeout(jW(e),0)});var RW,MW,zW,HW,$W,VW,UW,v={set:vD,clear:l},n=/ipad|iphone|ipod/i.test(TP)&&void 0!==C.Pebble,S=/web0s(?!.*chrome)/i.test(TP),i=c$.f,WW=v.set,d=C.MutationObserver||C.WebKitMutationObserver,wW=C.document,GW=C.process,lj=C.Promise,D=i(C,"queueMicrotask"),p=D&&D.value;p||(RW=function(){var e,t;for(OW&&(e=GW.domain)&&e.exit();MW;){t=MW.fn,MW=MW.next;try{t()}catch(e){throw MW?HW():zW=void 0,e}}zW=void 0,e&&e.enter()},HW=g||OW||S||!d||!wW?!n&&lj&&lj.resolve?((vD=lj.resolve(void 0)).constructor=lj,UW=OV(vD.then,vD),function(){UW(RW)}):OW?function(){GW.nextTick(RW)}:(WW=OV(WW,C),function(){WW(RW)}):($W=!0,VW=wW.createTextNode(""),new d(RW).observe(VW,{characterData:!0}),function(){VW.data=$W=!$W}));function qW(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=VH(n),this.reject=VH(r)}var KW,YW,XW,ZW,JW=p||function(e){e={fn:e,next:void 0};zW&&(zW.next=e),MW||(MW=e,HW()),zW=e},QW={f:function(e){return new qW(e)}},eG=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tG="object"==typeof window,nG=v.set,rG=vH("species"),oG="Promise",iG=z$.getterFor(oG),aG=z$.set,uG=z$.getterFor(oG),l=pU&&pU.prototype,sG=pU,lG=l,cG=C.TypeError,fG=C.document,dG=C.process,pG=QW.f,hG=pG,gG=!!(fG&&fG.createEvent&&C.dispatchEvent),vG=_H(C.PromiseRejectionEvent),yG=!1,TP=lV(oG,function(){var e,t=I$(sG),n=t!==String(sG);return!n&&66===NH||!(51<=NH&&/native code/.test(t))&&(t=function(e){e(function(){},function(){})},((e=new sG(function(e){e(1)})).constructor={})[rG]=t,!(yG=e.then(function(){})instanceof t)||!n&&tG&&!vG)}),i=TP||!xW(function(e){sG.all(e).catch(function(){})}),mG=function(e){var t;return!(!PH(e)||!_H(t=e.then))&&t},bG=function(d,p){var h;d.notified||(d.notified=!0,h=d.reactions,JW(function(){for(var r,e=d.value,t=1==d.state,n=0;h.length>n;){var o,i,a,u=h[n++],s=t?u.ok:u.fail,l=u.resolve,c=u.reject,f=u.domain;try{s?(t||(2===d.rejection&&function(t){wH(nG,C,function(){var e=t.facade;OW?dG.emit("rejectionHandled",e):wG("rejectionhandled",e,t.value)})}(d),d.rejection=1),!0===s?o=e:(f&&f.enter(),o=s(e),f&&(f.exit(),a=!0)),o===u.promise?c(cG("Promise-chain cycle")):(i=mG(o))?wH(i,o,l,c):l(o)):c(e)}catch(e){f&&!a&&f.exit(),c(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&(r=d,wH(nG,C,function(){var e,t=r.facade,n=r.value;if(xG(r)&&(e=eG(function(){OW?dG.emit("unhandledRejection",n,t):wG("unhandledrejection",t,n)}),r.rejection=OW||xG(r)?2:1,e.error))throw e.value}))}))},wG=function(e,t,n){var r;gG?((r=fG.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),C.dispatchEvent(r)):r={promise:t,reason:n},!vG&&(t=C["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){var n=C.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},xG=function(e){return 1!==e.rejection&&!e.parent},EG=function(t,n,r){return function(e){t(n,e,r)}},DG=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,bG(e,!0))},SG=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw cG("Promise can't be resolved itself");var r=mG(e);r?JW(function(){var t={done:!1};try{wH(r,e,EG(SG,t,n),EG(DG,t,n))}catch(e){DG(t,e,n)}}):(n.value=e,n.state=1,bG(n,!1))}catch(e){DG({done:!1},e,n)}}};if(TP&&(lG=(sG=function(e){QU(this,lG),VH(e),wH(KW,this);var t=iG(this);try{e(EG(SG,t),EG(DG,t))}catch(e){DG(t,e)}}).prototype,(KW=function(e){aG(this,{type:oG,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ZU(lG,{then:function(e,t){var n=uG(this),r=n.reactions,o=pG(function(e,t){var n,e=p$(e).constructor;if(void 0===e||null==(n=p$(e)[CW]))return t;e=n;if(XV(e))return e;throw SW(HH(e)+" is not a constructor")}(this,sG));return o.ok=!_H(e)||e,o.fail=_H(t)&&t,o.domain=OW?dG.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&bG(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),YW=function(){var e=new KW,t=iG(e);this.promise=e,this.resolve=EG(SG,t),this.reject=EG(DG,t)},QW.f=pG=function(e){return e===sG||e===XW?new YW:hG(e)},_H(pU))&&l!==Object.prototype){ZW=l.then,yG||($$(l,"then",function(e,t){var n=this;return new sG(function(e,t){wH(ZW,n,e,t)}).then(e,t)},{unsafe:!0}),$$(l,"catch",lG.catch,{unsafe:!0}));try{delete l.constructor}catch(Fs){}aW&&aW(l,lG)}function CG(a,u,s){return void 0===s&&(s=""),nH(this,void 0,void 0,function(){var t,n,r,o,i;return rH(this,function(e){switch(e.label){case 0:return u?(a.restoreSelection(),n=a.getMenuConfig("insertVideo"),t=n.onInsertedVideo,r=n.checkVideo,n=n.parseVideoSrc,[4,r(u,s)]):[2];case 1:return"string"==typeof(r=e.sent())?(a.alert(r,"error"),[2]):null==r?[2]:[4,n(u)];case 2:return 0!==(o=e.sent()).trim().indexOf("<iframe ")&&(o=o.replace(/</g,"&lt;").replace(/>/g,"&gt;")),i={type:"video",src:o,poster:s,children:[{text:""}]},Promise.resolve().then(function(){j.insertNodes(a,i)}),t(i),[2]}})})}function AG(){return XU("w-e-insert-video")}C$({global:!0,wrap:!0,forced:TP},{Promise:sG}),JU(sG,oG,!1),D=dH("Promise"),g=v$.f,a&&D&&!D[wM]&&g(D,wM,{configurable:!0,get:function(){return this}}),XW=dH(oG),C$({target:oG,stat:!0,forced:TP},{reject:function(e){var t=pG(this);return wH(t.reject,void 0,e),t.promise}}),C$({target:oG,stat:!0,forced:TP},{resolve:function(e){return e=e,p$(t=this),PH(e)&&e.constructor===t?e:((0,(t=QW.f(t)).resolve)(e),t.promise);var t}}),C$({target:oG,stat:!0,forced:i},{all:function(e){var u=this,t=pG(u),s=t.resolve,l=t.reject,n=eG(function(){var r=VH(u.resolve),o=[],i=0,a=1;rW(e,function(e){var t=i++,n=!1;a++,wH(r,u,e).then(function(e){n||(n=!0,o[t]=e,--a)||s(o)},l)}),--a||s(o)});return n.error&&l(n.value),t.promise},race:function(e){var n=this,r=pG(n),o=r.reject,t=eG(function(){var t=VH(n.resolve);rW(e,function(e){wH(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}});FG.prototype.getValue=function(e){return""},FG.prototype.isActive=function(e){return!1},FG.prototype.exec=function(e,t){},FG.prototype.isDisabled=function(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!I.getSelectedElems(n).some(function(e){var t=I.getNodeType(e);return"pre"===t||"list-item"===t||!!n.isVoid(e)})},FG.prototype.getModalPositionNode=function(e){return null},FG.prototype.getModalContentElem=function(o){var i,e=this,a=this.srcInputId,u=this.posterInputId,t=this.buttonId,n=oH(YE(w("videoModule.videoSrc"),a,w("videoModule.videoSrcPlaceHolder")),2),r=n[0],n=n[1],s=oH(YE(w("videoModule.videoPoster"),u,w("videoModule.videoPosterPlaceHolder")),2),l=s[0],s=s[1],c=N(n),n=N(s),s=oH(XE(t,w("videoModule.ok")),1)[0],t=(null==this.$content&&((i=N("<div></div>")).on("click","#"+t,function(r){return nH(e,void 0,void 0,function(){var t,n;return rH(this,function(e){switch(e.label){case 0:return r.preventDefault(),t=i.find("#"+a).val().trim(),n=i.find("#"+u).val().trim(),[4,CG(o,t,n)];case 1:return e.sent(),o.hidePanelOrModal(),[2]}})})}),this.$content=i),this.$content);return t.empty(),t.append(r),t.append(l),t.append(s),c.val(""),n.val(""),setTimeout(function(){c.focus()}),t[0]};var OG,kG=FG,BG=CH([].join),S=FH!=Object,n=!!(OG=[].join)&&uH(function(){OG.call(null,",",1)});function FG(){this.title=w("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=AG(),this.posterInputId=AG(),this.buttonId=AG()}C$({target:"Array",proto:!0,forced:S||!n},{join:function(e){return BG(fH(this),void 0===e?",":e)}});function TG(){return this}function _G(){return this}function PG(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!KG&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=MV(UG,{next:sH(1,r)}),JU(g,s,!1),cW[s]=TG;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[YG]||d["@@iterator"]||o&&d[o],h=!KG&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=$G(g.call(new e)))!==Object.prototype&&s.next&&($G(s)!==qG&&(aW?aW(s,qG):_H(s[YG])||$$(s,YG,_G)),JU(s,r,!0)),WG&&"values"==o&&p&&"values"!==p.name&&(GG?y$(d,"name","values"):(f=!0,h=function(){return wH(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!KG&&!f&&c in d||$$(d,c,l[c]);else C$({target:t,proto:!0,forced:KG||f},l);return d[YG]!==h&&$$(d,YG,h,{name:o}),cW[t]=h,l}function jG(e,t,n){(t=yH(t))in e?v$.f(e,t,sH(0,n)):e[t]=n}function NG(e){return e.frozen||(e.frozen=new IG)}function IG(){this.entries=[]}function LG(e,t){return hq(e.entries,function(e){return e[0]===t})}var RG,lj=!uH(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),MG=b$("IE_PROTO"),zG=C.Object,HG=zG.prototype,$G=lj?zG.getPrototypeOf:function(e){var t,e=hH(e);return XH(e,MG)?e[MG]:(t=e.constructor,_H(t)&&e instanceof t?t.prototype:e instanceof zG?HG:null)},VG=vH("iterator"),vD=!1,p=([].keys&&("next"in(wW=[].keys())?(d=$G($G(wW)))!==Object.prototype&&(RG=d):vD=!0),null!=RG&&!uH(function(){var e={};return RG[VG].call(e)!==e})||(RG={}),_H(RG[VG])||$$(RG,VG,function(){return this}),{IteratorPrototype:RG,BUGGY_SAFARI_ITERATORS:vD}),UG=p.IteratorPrototype,WG=H$.PROPER,GG=H$.CONFIGURABLE,qG=p.IteratorPrototype,KG=p.BUGGY_SAFARI_ITERATORS,YG=vH("iterator"),XG=z$.set,ZG=z$.getterFor("Array Iterator"),JG=PG(Array,"Array",function(e,t){XG(this,{type:"Array Iterator",target:fH(e),index:0,kind:t})},function(){var e=ZG(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),QG=(cW.Arguments=cW.Array,AV("keys"),AV("values"),AV("entries"),e.charAt),eq=z$.set,tq=z$.getterFor("String Iterator"),nq=(PG(String,"String",function(e){eq(this,{type:"String Iterator",string:A$(e),index:0})},function(){var e=tq(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=QG(t,n),e.index+=t.length,{value:t,done:!1})}),C.Array),rq=Math.max,oq=eV.f,iq="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aq={f:function(e){if(!iq||"Window"!=lH(e))return oq(fH(e));var t=e;try{return oq(t)}catch(t){for(var n=iq,e=x$(n),r=w$(void 0,e),o=w$(e,e),i=nq(rq(o-r,0)),a=0;r<o;r++,a++)jG(i,a,n[r]);return i.length=a,i}}},uq=uH(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),sq=Object.isExtensible,lq=uH(function(){sq(1)})||uq?function(e){return!!PH(e)&&(!uq||"ArrayBuffer"!=lH(e))&&(!sq||sq(e))}:sq,cq=!uH(function(){return Object.isExtensible(Object.preventExtensions({}))}),v=iH(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=v$.f,r=!1,a=gH("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=eV.f,i=CH([].splice),e={};e[a]=1,o(e).length&&(eV.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},C$({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:aq.f}))},fastKey:function(e,t){if(!PH(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!XH(e,a)){if(!lq(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!XH(e,a)){if(!lq(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return cq&&r&&lq(e)&&!XH(e,a)&&n(e),e}};R$[a]=!0}),fq=v.getWeakData,dq=z$.set,pq=z$.getterFor,hq=s.find,gq=s.findIndex,vq=CH([].splice),yq=0;IG.prototype={get:function(e){e=LG(this,e);if(e)return e[1]},has:function(e){return!!LG(this,e)},set:function(e,t){var n=LG(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=gq(this.entries,function(e){return e[0]===t});return~e&&vq(this.entries,e,1),!!~e}};function mq(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}var bq,wq,xq,Eq,Dq,Sq,Cq,Aq,Oq,kq,Bq,Fq,pU={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=fq(p$(t),!0);return!0===o?NG(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){QU(e,a),dq(e,{type:n,id:yq++,frozen:void 0}),null!=t&&rW(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=pq(n);return ZU(a,{delete:function(e){var t,n=u(this);return!!PH(e)&&(!0===(t=fq(e))?NG(n).delete(e):t&&XH(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!PH(e)&&(!0===(t=fq(e))?NG(n).has(e):t&&XH(t,n.id))}}),ZU(a,r?{get:function(e){var t,n=u(this);if(PH(e))return!0===(t=fq(e))?NG(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},Tq=z$.enforce,l=!C.ActiveXObject&&"ActiveXObject"in C,d=(g=mq,D=pU,xq=-1!==(TP="WeakMap").indexOf("Map"),Eq=-1!==TP.indexOf("Weak"),Dq=xq?"set":"add",Sq=C[TP],Cq=Sq&&Sq.prototype,i={},lV(TP,!_H(Aq=Sq)||!(Eq||Cq.forEach&&!uH(function(){(new Sq).entries().next()})))?(Aq=D.getConstructor(g,TP,xq,Dq),v.enable()):lV(TP,!0)&&(S=(wq=new Aq)[Dq](Eq?{}:-0,1)!=wq,n=uH(function(){wq.has(1)}),lj=xW(function(e){new Sq(e)}),wW=!Eq&&uH(function(){for(var e=new Sq,t=5;t--;)e[Dq](t,t);return!e.has(-0)}),lj||(((Aq=g(function(e,t){QU(e,Cq);n=new Sq,r=Aq,aW&&_H(e=e.constructor)&&e!==r&&PH(e=e.prototype)&&e!==r.prototype&&aW(n,e);var n,r=n;return null!=t&&rW(t,r[Dq],{that:r,AS_ENTRIES:xq}),r})).prototype=Cq).constructor=Aq),(n||wW)&&(_q("delete"),_q("has"),xq)&&_q("get"),(wW||S)&&_q(Dq),Eq)&&Cq.clear&&delete Cq.clear,C$({global:!0,forced:(i[TP]=Aq)!=Sq},i),JU(Aq,TP),Eq||D.setStrong(Aq,TP,xq),Aq);function _q(e){var n=CH(Cq[e]);$$(Cq,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(Eq&&!PH(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return Eq&&!PH(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(Eq&&!PH(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}u&&l&&(bq=pU.getConstructor(mq,"WeakMap",!0),v.enable(),vD=d.prototype,Oq=CH(vD.delete),kq=CH(vD.has),Bq=CH(vD.get),Fq=CH(vD.set),ZU(vD,{delete:function(e){var t;return PH(e)&&!lq(e)?((t=Tq(this)).frozen||(t.frozen=new bq),Oq(this,e)||t.frozen.delete(e)):Oq(this,e)},has:function(e){var t;return PH(e)&&!lq(e)?((t=Tq(this)).frozen||(t.frozen=new bq),kq(this,e)||t.frozen.has(e)):kq(this,e)},get:function(e){var t;return!PH(e)||lq(e)||((t=Tq(this)).frozen||(t.frozen=new bq),kq(this,e))?Bq(this,e):t.frozen.get(e)},set:function(e,t){var n;return!PH(e)||lq(e)||((n=Tq(this)).frozen||(n.frozen=new bq),kq(this,e))?Fq(this,e,t):n.frozen.set(e,t),this}}));function Pq(e,t){if(e){if(e[Iq]!==Rq)try{y$(e,Iq,Rq)}catch(t){e[Iq]=Rq}if(e[Lq]||y$(e,Lq,t),Nq[t])for(var n in JG)if(e[n]!==JG[n])try{y$(e,n,JG[n])}catch(t){e[n]=JG[n]}}}var jq,Nq={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},p=mH("span").classList,e=p&&p.constructor&&p.constructor.prototype,s=e===Object.prototype?void 0:e,Iq=vH("iterator"),Lq=vH("toStringTag"),Rq=JG.values;for(jq in Nq)Pq(C[jq]&&C[jq].prototype,jq);Pq(s,"DOMTokenList");var g=H$.EXISTS,n=v$.f,S=Function.prototype,Mq=CH(S.toString),zq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Hq=CH(zq.exec),$q=(a&&!g&&n(S,"name",{configurable:!0,get:function(){try{return Hq(zq,Mq(this))[1]}catch(e){return""}}}),vH("species")),i=51<=NH||!uH(function(){var e=[];return(e.constructor={})[$q]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),Vq=vH("species"),Uq=C.Array,Wq=Math.max;function Gq(e){return e.getMenuConfig("uploadVideo")}C$({target:"Array",proto:!0,forced:!i},{slice:function(e,t){var n,r,o,i=fH(this),a=x$(i),u=w$(e,a),s=w$(void 0===t?a:t,a);if(UV(i)&&(n=i.constructor,(n=XV(n)&&(n===Uq||UV(n.prototype))||PH(n)&&null===(n=n[Vq])?void 0:n)===Uq||void 0===n))return AW(i,u,s);for(r=new(void 0===n?Uq:n)(Wq(s-u,0)),o=0;u<s;u++,o++)u in i&&jG(r,o,i[u]);return r.length=o,r}});var qq=new WeakMap;function Kq(p,h){return nH(this,void 0,void 0,function(){var l,c,f,d;return rH(this,function(e){switch(e.label){case 0:return o=p,null==(s=qq.get(o))&&(t=Gq(o),i=t.onSuccess,n=t.onProgress,a=t.onFailed,u=t.customInsert,r=t.onError,s=E3(tH(tH({},t),{onProgress:function(e){o.showProgressBar(e),n&&n(e)},onSuccess:function(e,t){var n,r;(u?(u(t,function(e,t){return CG(o,e,t)}),i):(n=t.errno,r=void 0===(r=t.data)?{}:r,0===(void 0===n?1:n)?(n=r.url,r=r.poster,CG(o,void 0===n?"":n,void 0===r?"":r),i):a))(e,t)},onError:function(e,t,n){r(e,t,n)}})),qq.set(o,s)),l=s,c=h.name,f=h.type,d=h.size,l.addFile({name:c,type:f,size:d,data:h}),[4,l.upload()];case 1:return e.sent(),[2]}var o,t,i,n,a,u,r,s})})}Qq.prototype.getValue=function(e){return""},Qq.prototype.isActive=function(e){return!1},Qq.prototype.exec=function(n,e){var t,r=this.getMenuConfig(n),o=r.allowedFileTypes,o=void 0===o?[]:o,r=r.customBrowseAndUpload;r?r(function(e,t){return CG(n,e,t)}):(r="",0<o.length&&(r='accept="'+o.join(", ")+'"'),o=N("body"),(t=N('<input type="file" '+r+" multiple/>")).hide(),o.append(t),t.click(),t.on("change",function(){var e=t[0].files;!function(u,s){var l,c;nH(this,void 0,void 0,function(){var t,n,r,o,i,a;return rH(this,function(e){switch(e.label){case 0:if(null==s)return[2];t=Array.prototype.slice.call(s),n=Gq(u).customUpload,e.label=1;case 1:e.trys.push([1,9,10,15]),r=function(a){var e,t;if(Symbol.asyncIterator)return(t=a[Symbol.asyncIterator])?t.call(a):(a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);throw new TypeError("Symbol.asyncIterator is not defined.");function n(i){e[i]=a[i]&&function(o){return new Promise(function(e,t){var n,r;n=e,e=t,r=(o=a[i](o)).done,t=o.value,Promise.resolve(t).then(function(e){n({value:e,done:r})},e)})}}}(t),e.label=2;case 2:return[4,r.next()];case 3:return(o=e.sent()).done?[3,8]:(i=o.value,n?[4,n(i,function(e,t){return CG(u,e,t)})]:[3,5]);case 4:return e.sent(),[3,7];case 5:return[4,Kq(u,i)];case 6:e.sent(),e.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return a=e.sent(),l={error:a},[3,15];case 10:return e.trys.push([10,,13,14]),o&&!o.done&&(c=r.return)?[4,c.call(r)]:[3,12];case 11:e.sent(),e.label=12;case 12:return[3,14];case 13:if(l)throw l.error;return[7];case 14:return[7];case 15:return[2]}})})}(n,e)}))},Qq.prototype.isDisabled=function(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!I.getSelectedElems(n).some(function(e){var t=I.getNodeType(e);return"pre"===t||"list-item"===t||!!n.isVoid(e)})},Qq.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")};var Yq=Qq,D=H$.PROPER,Xq=RegExp.prototype,Zq=Xq.toString,Jq=CH(rU),u=uH(function(){return"/a/b"!=Zq.call({source:"a",flags:"b"})}),l=D&&"toString"!=Zq.name;function Qq(){this.title=w("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}function eK(){return XU("w-e-insert-video")}(u||l)&&$$(RegExp.prototype,"toString",function(){var e=p$(this),t=A$(e.source),n=e.flags;return"/"+t+"/"+A$(void 0!==n||!jH(Xq,e)||"flags"in Xq?n:Jq(e))},{unsafe:!0});nK.prototype.getSelectedVideoNode=function(e){return I.getSelectedNodeByType(e,"video")},nK.prototype.getValue=function(e){return""},nK.prototype.isActive=function(e){return!1},nK.prototype.exec=function(e,t){},nK.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},nK.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},nK.prototype.getModalContentElem=function(n){var r,o=this.widthInputId,i=this.heightInputId,e=this.buttonId,t=oH(YE(w("videoModule.width"),o,"auto"),2),a=t[0],u=N(t[1]),t=oH(YE(w("videoModule.height"),i,"auto"),2),s=t[0],t=N(t[1]),l=oH(XE(e,w("videoModule.ok")),1)[0],e=(null==this.$content&&((r=N("<div></div>")).on("click","#"+e,function(e){e.preventDefault();var e=r.find("#"+o).val().trim(),t=r.find("#"+i).val().trim(),e=parseInt(e),t=parseInt(t),e=e?e.toString():"auto",t=t?t.toString():"auto";n.restoreSelection(),j.setNodes(n,{width:e,height:t},{match:function(e){return I.checkNodeType(e,"video")}}),n.hidePanelOrModal()}),this.$content=r),this.$content),a=(e.empty(),e.append(a),e.append(s),e.append(l),this.getSelectedVideoNode(n));return null!=a&&(s=a.width,a=void 0===(l=a.height)?"auto":l,u.val(void 0===s?"auto":s),t.val(a),setTimeout(function(){u.focus()})),e[0]};var tK=nK,pU={renderElems:[c],elemsToHtml:[E],preParseHtml:[f],parseElemsHtml:[fU],menus:[{key:"insertVideo",factory:function(){return new kG},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Yq},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new tK}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var e=oH(e,2),t=e[0],e=e[1];return"video"===I.getNodeType(t)&&I.isLastNode(r,t)&&j.insertNodes(r,I.genEmptyParagraph(),{at:[e[0]+1]}),n([t,e])},r}};function nK(){this.title=w("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=eK(),this.heightInputId=eK(),this.buttonId=eK()}g6("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),g6("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function rK(e){var t={exports:{}};return e(t,t.exports),t.exports}function oK(e){return e&&e.Math==Math&&e}function iK(e){try{return!!e()}catch(e){return!0}}function aK(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function uK(e){return CK(SK(e),8,-1)}function sK(e){if(null==e)throw BK("Can't call method on "+e);return e}function lK(e){return kK(sK(e))}function cK(e,t){return arguments.length<2?(n=A[e],FK(n)?n:void 0):A[e]&&A[e][t];var n}function fK(t,n){try{UK(A,t,{value:n,configurable:!0,writable:!0})}catch(e){A[t]=n}return n}function dK(e){return GK(sK(e))}function pK(e){return"Symbol("+(void 0===e?"":e)+")_"+ZK(++YK+XK,36)}function hK(e){var t;return KK(JK,e)&&(jK||"string"==typeof JK[e])||(t="Symbol."+e,jK&&KK(QK,e)?JK[e]=QK[e]:JK[e]=(NK&&eY?eY:tY)(t)),JK[e]}function gK(e){return e=function(e,t){if(!TK(e)||LK(e))return e;var n,r,o=$K(e,rY);if(o){if(o=mK(o,e,t=void 0===t?"default":t),!TK(o)||LK(o))return o;throw nY("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&FK(n=o.toString)&&!TK(r=mK(n,o)))return r;if(FK(n=o.valueOf)&&!TK(r=mK(n,o)))return r;if("string"!==e&&FK(n=o.toString)&&!TK(r=mK(n,o)))return r;throw VK("Can't convert object to primitive value")}(e,"string"),LK(e)?e:e+""}function vK(e){return iY?oY.createElement(e):{}}var A=oK("object"==typeof globalThis&&globalThis)||oK("object"==typeof window&&window)||oK("object"==typeof self&&self)||oK("object"==typeof v&&v)||function(){return this}()||Function("return this")(),d=!iK(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),yK=Function.prototype.call,mK=yK.bind?yK.bind(yK):function(){return yK.apply(yK,arguments)},vD={}.propertyIsEnumerable,bK=Object.getOwnPropertyDescriptor,wK={f:bK&&!vD.call({1:2},1)?function(e){e=bK(this,e);return!!e&&e.enumerable}:vD},p=Function.prototype,e=p.bind,xK=p.call,EK=e&&e.bind(xK),DK=e?function(e){return e&&EK(xK,e)}:function(e){return e&&function(){return xK.apply(e,arguments)}},SK=DK({}.toString),CK=DK("".slice),AK=A.Object,OK=DK("".split),kK=iK(function(){return!AK("z").propertyIsEnumerable(0)})?function(e){return"String"==uK(e)?OK(e,""):AK(e)}:AK,BK=A.TypeError,FK=function(e){return"function"==typeof e},TK=function(e){return"object"==typeof e?null!==e:FK(e)},_K=DK({}.isPrototypeOf),s=cK("navigator","userAgent")||"",a=A.process,g=A.Deno,n=a&&a.versions||g&&g.version,S=n&&n.v8,PK=qJ=!(qJ=S?0<(hQ=S.split("."))[0]&&hQ[0]<4?1:+(hQ[0]+hQ[1]):qJ)&&s&&(!(hQ=s.match(/Edge\/(\d+)/))||74<=hQ[1])&&(hQ=s.match(/Chrome\/(\d+)/))?+hQ[1]:qJ,jK=!!Object.getOwnPropertySymbols&&!iK(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&PK&&PK<41}),NK=jK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,IK=A.Object,LK=NK?function(e){return"symbol"==typeof e}:function(e){var t=cK("Symbol");return FK(t)&&_K(t.prototype,IK(e))},RK=A.String,MK=function(e){try{return RK(e)}catch(e){return"Object"}},zK=A.TypeError,HK=function(e){if(FK(e))return e;throw zK(MK(e)+" is not a function")},$K=function(e,t){e=e[t];return null==e?void 0:HK(e)},VK=A.TypeError,UK=Object.defineProperty,WK=A["__core-js_shared__"]||fK("__core-js_shared__",{}),i=rK(function(e){(e.exports=function(e,t){return WK[e]||(WK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),GK=A.Object,qK=DK({}.hasOwnProperty),KK=Object.hasOwn||function(e,t){return qK(dK(e),t)},YK=0,XK=Math.random(),ZK=DK(1..toString),JK=i("wks"),QK=A.Symbol,eY=QK&&QK.for,tY=NK?QK:QK&&QK.withoutSetter||pK,nY=A.TypeError,rY=hK("toPrimitive"),oY=A.document,iY=TK(oY)&&TK(oY.createElement),aY=!d&&!iK(function(){return 7!=Object.defineProperty(vK("div"),"a",{get:function(){return 7}}).a}),uY=Object.getOwnPropertyDescriptor,sY={f:d?uY:function(e,t){if(e=lK(e),t=gK(t),aY)try{return uY(e,t)}catch(e){}if(KK(e,t))return aK(!mK(wK.f,e,t),e[t])}},lY=A.String,cY=A.TypeError,fY=function(e){if(TK(e))return e;throw cY(lY(e)+" is not an object")},dY=A.TypeError,pY=Object.defineProperty,hY={f:d?pY:function(e,t,n){if(fY(e),t=gK(t),fY(n),aY)try{return pY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw dY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},gY=d?function(e,t,n){return hY.f(e,t,aK(1,n))}:function(e,t,n){return e[t]=n,e},vY=DK(Function.toString);FK(WK.inspectSource)||(WK.inspectSource=function(e){return vY(e)});function yY(e){return IY[e]||(IY[e]=pK(e))}function mY(e,t){return(e=UY(e))<0?WY(e+t,0):GY(e,t)}function bY(e){return KY(e.length)}function wY(u){return function(e,t,n){var r,o=lK(e),i=bY(o),a=mY(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function xY(e,t){var n,r=lK(e),o=0,i=[];for(n in r)!KK(LY,n)&&KK(r,n)&&XY(i,n);for(;t.length>o;)!KK(r,n=t[o++])||~YY(i,n)||XY(i,n);return i}function EY(e,t){return(e=iX[oX(e)])==uX||e!=aX&&(FK(t)?iK(t):!!t)}function DY(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?A:s?A[a]||fK(a,{}):(A[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=lX(n,r))&&i.value:n[r],!sX(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=nX(c),d=hY.f,p=sY.f,h=0;h<f.length;h++){var g=f[h];KK(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&gY(o,"sham",!0),HY(n,r,o,e)}}function SY(){}function CY(e){if(!FK(e))return!1;try{return vX(SY,gX,e),!0}catch(e){return!1}}function AY(e,t,n){(t=gK(t))in e?hY.f(e,t,aK(0,n)):e[t]=n}var OY,kY,BY,FY,TY,_Y,PY,jY,NY=WK.inspectSource,D=A.WeakMap,u=FK(D)&&/native code/.test(NY(D)),IY=i("keys"),LY={},RY=A.TypeError,l=A.WeakMap,MY=(PY=u||WK.state?(OY=WK.state||(WK.state=new l),kY=DK(OY.get),BY=DK(OY.has),FY=DK(OY.set),TY=function(e,t){if(BY(OY,e))throw new RY("Object already initialized");return t.facade=e,FY(OY,e,t),t},_Y=function(e){return kY(OY,e)||{}},function(e){return BY(OY,e)}):(jY=yY("state"),LY[jY]=!0,TY=function(e,t){if(KK(e,jY))throw new RY("Object already initialized");return t.facade=e,gY(e,jY,t),t},_Y=function(e){return KK(e,jY)?e[jY]:{}},function(e){return KK(e,jY)}),{set:TY,get:_Y,has:PY,enforce:function(e){return PY(e)?_Y(e):TY(e,{})},getterFor:function(t){return function(e){if(TK(e)&&(e=_Y(e)).type===t)return e;throw RY("Incompatible receiver, "+t+" required")}}}),c=Function.prototype,E=d&&Object.getOwnPropertyDescriptor,f=KK(c,"name"),zY={EXISTS:f,PROPER:f&&"something"===function(){}.name,CONFIGURABLE:f&&(!d||E(c,"name").configurable)},HY=rK(function(e){var s=zY.CONFIGURABLE,t=MY.get,l=MY.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;FK(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!KK(n,"name")||s&&n.name!==r)&&gY(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==A?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:gY(e,t,n)):a?e[t]=n:fK(t,n)})(Function.prototype,"toString",function(){return FK(this)&&t(this).source||NY(this)})}),$Y=Math.ceil,VY=Math.floor,UY=function(e){e=+e;return e!=e||0==e?0:(0<e?VY:$Y)(e)},WY=Math.max,GY=Math.min,qY=Math.min,KY=function(e){return 0<e?qY(UY(e),9007199254740991):0},YY=(wY(!0),wY(!1)),XY=DK([].push),ZY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],JY=ZY.concat("length","prototype"),QY={f:Object.getOwnPropertyNames||function(e){return xY(e,JY)}},eX={f:Object.getOwnPropertySymbols},tX=DK([].concat),nX=cK("Reflect","ownKeys")||function(e){var t=QY.f(fY(e)),n=eX.f;return n?tX(t,n(e)):t},rX=/#|\.prototype\./,oX=EY.normalize=function(e){return String(e).replace(rX,".").toLowerCase()},iX=EY.data={},aX=EY.NATIVE="N",uX=EY.POLYFILL="P",sX=EY,lX=sY.f,cX=Array.isArray||function(e){return"Array"==uK(e)},fU={},v=(fU[hK("toStringTag")]="z","[object z]"===String(fU)),fX=hK("toStringTag"),dX=A.Object,pX="Arguments"==uK(function(){return arguments}()),hX=v?uK:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=dX(e),fX))?t:pX?uK(e):"Object"==(t=uK(e))&&FK(e.callee)?"Arguments":t},gX=[],vX=cK("Reflect","construct"),yX=/^\s*(?:class|function)\b/,mX=DK(yX.exec),bX=!yX.exec(SY),wX=!vX||iK(function(){var e;return CY(CY.call)||!CY(Object)||!CY(function(){e=!0})||e})?function(e){if(!FK(e))return!1;switch(hX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bX||!!mX(yX,NY(e))}:CY,xX=hK("species"),EX=DK([].slice),vD=51<=PK||!iK(function(){var e=[];return(e.constructor={})[xX]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),DX=hK("species"),SX=A.Array,CX=Math.max,p=(DY({target:"Array",proto:!0,forced:!vD},{slice:function(e,t){var n,r,o,i=lK(this),a=bY(i),u=mY(e,a),s=mY(void 0===t?a:t,a);if(cX(i)&&(n=i.constructor,(n=wX(n)&&(n===SX||cX(n.prototype))||TK(n)&&null===(n=n[DX])?void 0:n)===SX||void 0===n))return EX(i,u,s);for(r=new(void 0===n?SX:n)(CX(s-u,0)),o=0;u<s;u++,o++)u in i&&AY(r,o,i[u]);return r.length=o,r}}),v?{}.toString:function(){return"[object "+hX(this)+"]"});v||HY(Object.prototype,"toString",p,{unsafe:!0});function AX(e){if("Symbol"===hX(e))throw TypeError("Cannot convert a Symbol value to a string");return TX(e)}function OX(){var e=fY(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function kX(){}function BX(e){e.write(LX("")),e.close();var t=e.parentWindow.Object;return e=null,t}var FX,TX=A.String,_X=A.RegExp,e=iK(function(){var e=_X("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),a=e||iK(function(){return!_X("a","y").sticky}),g={BROKEN_CARET:e||iK(function(){var e=_X("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:a,UNSUPPORTED_Y:e},PX=Object.keys||function(e){return xY(e,ZY)},jX=d?Object.defineProperties:function(e,t){fY(e);for(var n,r=lK(t),o=PX(t),i=o.length,a=0;a<i;)hY.f(e,n=o[a++],r[n]);return e},NX=cK("document","documentElement"),IX=yY("IE_PROTO"),LX=function(e){return"<script>"+e+"<\/script>"},RX=function(){try{FX=new ActiveXObject("htmlfile")}catch(e){}var e,t;RX="undefined"==typeof document||document.domain&&FX?BX(FX):((t=vK("iframe")).style.display="none",NX.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(LX("document.F=Object")),e.close(),e.F);for(var n=ZY.length;n--;)delete RX.prototype[ZY[n]];return RX()};LY[IX]=!0;function MX(e,t){var n,e=fY(e).constructor;if(void 0===e||null==(n=fY(e)[mZ]))return t;if(wX(e=n))return e;throw yZ(MK(e)+" is not a constructor")}function zX(o){return function(e,t){var n,e=AX(sK(e)),t=UY(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=wZ(e,t))<55296||56319<n||t+1===r||(r=wZ(e,t+1))<56320||57343<r?o?bZ(e,t):n:o?xZ(e,t,t+2):r-56320+(n-55296<<10)+65536}}function HX(e,t,n){for(var r=bY(e),o=mY(t,r),i=mY(void 0===n?r:n,r),a=DZ(SZ(i-o,0)),u=0;o<i;o++,u++)AY(a,u,e[o]);return a.length=u,a}function $X(e,t){var n=e.exec;if(FK(n))return null!==(n=mK(n,e,t))&&fY(n),n;if("RegExp"===uK(e))return mK(cZ,e,t);throw CZ("RegExp#exec called on incompatible receiver")}var VX,UX,WX,GX,qX,KX,YX,XX=Object.create||function(e,t){var n;return null!==e?(kX.prototype=fY(e),n=new kX,kX.prototype=null,n[IX]=e):n=RX(),void 0===t?n:jX(n,t)},ZX=A.RegExp,n=iK(function(){var e=ZX(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),JX=A.RegExp,S=iK(function(){var e=JX("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),QX=MY.get,eZ=i("native-string-replace",String.prototype.replace),tZ=RegExp.prototype.exec,nZ=tZ,rZ=DK("".charAt),oZ=DK("".indexOf),iZ=DK("".replace),aZ=DK("".slice),uZ=(hQ=/b*/g,mK(tZ,qJ=/a/,"a"),mK(tZ,hQ,"a"),0!==qJ.lastIndex||0!==hQ.lastIndex),sZ=g.BROKEN_CARET,lZ=void 0!==/()??/.exec("")[1],cZ=nZ=uZ||lZ||sZ||n||S?function(e){var t,n,r,o,i,a,u=this,s=QX(u),e=AX(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=mK(nZ,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=sZ&&u.sticky,f=mK(OX,u),s=u.source,d=0,p=e;if(l&&(f=iZ(f,"y",""),-1===oZ(f,"g")&&(f+="g"),p=aZ(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==rZ(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),lZ&&(t=new RegExp("^"+s+"$(?!\\s)",f)),uZ&&(n=u.lastIndex),r=mK(tZ,l?t:u,p),l?r?(r.input=aZ(r.input,d),r[0]=aZ(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:uZ&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),lZ&&r&&1<r.length&&mK(eZ,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=XX(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:nZ,D=(DY({target:"RegExp",proto:!0,forced:/./.exec!==cZ},{exec:cZ}),Function.prototype),fZ=D.apply,l=D.bind,dZ=D.call,pZ="object"==typeof Reflect&&Reflect.apply||(l?dZ.bind(fZ):function(){return dZ.apply(fZ,arguments)}),hZ=hK("species"),gZ=RegExp.prototype,vZ=hK("match"),yZ=A.TypeError,mZ=hK("species"),bZ=DK("".charAt),wZ=DK("".charCodeAt),xZ=DK("".slice),f={codeAt:zX(!1),charAt:zX(!0)},EZ=f.charAt,DZ=A.Array,SZ=Math.max,CZ=A.TypeError,AZ=g.UNSUPPORTED_Y,OZ=Math.min,kZ=[].push,BZ=DK(/./.exec),FZ=DK(kZ),TZ=DK("".slice),_Z=(VX="split",E=!!iK(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),c=AZ,KX=hK(VX),YX=!iK(function(){var e={};return e[KX]=function(){return 7},7!=""[VX](e)}),fU=YX&&!iK(function(){var e=!1,t=/a/;return(t={constructor:{}}).constructor[hZ]=function(){return t},t.flags="",t[KX]=/./[KX],t.exec=function(){return e=!0,null},t[KX](""),!e}),YX&&fU&&!E||(UX=DK(/./[KX]),WX=KX,GX=""[VX],qX="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=AX(sK(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!TK(t=e)||!(void 0!==(s=t[vZ])?s:"RegExp"==uK(t)))return mK(GX,n,e,r);for(var o,i,a,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,s+"g");(o=mK(cZ,c,n))&&!((i=c.lastIndex)>l&&(FZ(u,TZ(n,l,o.index)),1<o.length&&o.index<n.length&&pZ(kZ,u,HX(o,1)),a=o[0].length,l=i,r<=u.length));)c.lastIndex===o.index&&c.lastIndex++;return l===n.length?!a&&BZ(c,"")||FZ(u,""):FZ(u,TZ(n,l)),r<u.length?HX(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:mK(GX,this,e,t)}:GX,fU=[function(e,t){var n=sK(this),r=null==e?void 0:$K(e,WX);return r?mK(r,e,n,t):mK(qX,AX(n),e,t)},function(e,t){var n,r,o=fY(this),i=AX(e),a=(e=o,n=i,r=t,u=qX!==GX,l=DK(qX),(a=e.exec)===cZ||a===gZ.exec?YX&&!u?{done:!0,value:UX(e,n,r)}:{done:!0,value:l(n,e,r)}:{done:!1});if(a.done)return a.value;var u=MX(o,RegExp),s=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(AZ?"g":"y"),c=new u(AZ?"^(?:"+o.source+")":o,l),f=void 0===t?4294967295:t>>>0;if(0==f)return[];if(0===i.length)return null===$X(c,i)?[i]:[];for(var d,p,h=0,g=0,v=[];g<i.length;){c.lastIndex=AZ?0:g;var y,m=$X(c,AZ?TZ(i,g):i);if(null===m||(y=OZ(KY(c.lastIndex+(AZ?g:0)),i.length))===h)d=i,g=(p=g)+(s?EZ(d,p).length:1);else{if(FZ(v,TZ(i,h,g)),v.length===f)return v;for(var b=1;b<=m.length-1;b++)if(FZ(v,m[b]),v.length===f)return v;g=h=y}}return FZ(v,TZ(i,h)),v}],HY(String.prototype,VX,fU[0]),HY(gZ,KX,fU[1])),c&&gY(gZ[KX],"sham",!0),function(){return(_Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)});function PZ(e,a,u,s){return new(u=u||Promise)(function(n,t){function r(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof u?t:new u(function(e){e(t)})).then(r,o)}i((s=s.apply(e,a||[])).next())})}function jZ(r,o){var i,a,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(u=2&t[0]?a.return:t[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,t[1])).done)return u;switch(a=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,a=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!((u=0<(u=s.trys).length&&u[u.length-1])||6!==t[0]&&2!==t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3]))s.label=t[1];else if(6===t[0]&&s.label<u[1])s.label=u[1],u=t;else{if(!(u&&s.label<u[2])){u[2]&&s.ops.pop(),s.trys.pop();continue}s.label=u[2],s.ops.push(t)}}t=o.call(r,s)}catch(e){t=[6,e],a=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}var NZ=hK("unscopables"),IZ=Array.prototype;null==IZ[NZ]&&hY.f(IZ,NZ,{configurable:!0,value:XX(null)});function LZ(e){IZ[NZ][e]=!0}function RZ(e,t,n){e&&!KK(e=n?e:e.prototype,rJ)&&nJ(e,rJ,{configurable:!0,value:t})}function MZ(){return this}function zZ(){return this}function HZ(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!fJ&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=XX(oJ,{next:aK(1,r)}),RZ(g,s,!1),XZ[s]=MZ;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[dJ]||d["@@iterator"]||o&&d[o],h=!fJ&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=eJ(g.call(new e)))!==Object.prototype&&s.next&&(eJ(s)!==cJ&&(uJ?uJ(s,cJ):FK(s[dJ])||HY(s,dJ,zZ)),RZ(s,r,!0)),sJ&&"values"==o&&p&&"values"!==p.name&&(lJ?gY(d,"name","values"):(f=!0,h=function(){return mK(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!fJ&&!f&&c in d||HY(d,c,l[c]);else DY({target:t,proto:!0,forced:fJ||f},l);return d[dJ]!==h&&HY(d,dJ,h,{name:o}),XZ[t]=h,l}function $Z(e,t,n){for(var r in t)HY(e,r,t[r],n);return e}function VZ(e,t){return HK(e),void 0===t?e:AJ?AJ(e,t):function(){return e.apply(t,arguments)}}function UZ(e){if(null!=e)return $K(e,BJ)||$K(e,"@@iterator")||XZ[hX(e)]}function WZ(e,t,n){var r,o;fY(e);try{if(!(r=$K(e,"return"))){if("throw"===t)throw n;return}r=mK(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;fY(r)}function GZ(e,t){this.stopped=e,this.result=t}function qZ(e,t,n){function r(e){return i&&WZ(i,"normal",e),new GZ(!0,e)}function o(e){return d?(fY(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=VZ(t,f);if(p)i=e;else{if(!(n=UZ(e)))throw TJ(MK(e)+" is not iterable");if(void 0!==n&&(XZ.Array===n||kJ[OJ]===n)){for(a=0,u=bY(e);a<u;a++)if((s=o(e[a]))&&_K(_J,s))return;return}i=function(e,t){t=arguments.length<2?UZ(e):t;if(HK(t))return fY(mK(t,e));throw FJ(MK(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=mK(l,i)).done;){try{s=o(c.value)}catch(e){WZ(i,"throw",e)}if("object"==typeof s&&s&&_K(_J,s))return}}function KZ(e,t){if(!_K(t,e))throw PJ("Incorrect invocation")}var YZ,XZ={},vD=!iK(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ZZ=yY("IE_PROTO"),JZ=A.Object,QZ=JZ.prototype,eJ=vD?JZ.getPrototypeOf:function(e){var t,e=dK(e);return KK(e,ZZ)?e[ZZ]:(t=e.constructor,FK(t)&&e instanceof t?t.prototype:e instanceof JZ?QZ:null)},tJ=hK("iterator"),v=!1,e=([].keys&&("next"in(p=[].keys())?(a=eJ(eJ(p)))!==Object.prototype&&(YZ=a):v=!0),null!=YZ&&!iK(function(){var e={};return YZ[tJ].call(e)!==e})||(YZ={}),FK(YZ[tJ])||HY(YZ,tJ,function(){return this}),{IteratorPrototype:YZ,BUGGY_SAFARI_ITERATORS:v}),nJ=hY.f,rJ=hK("toStringTag"),oJ=e.IteratorPrototype,iJ=A.String,aJ=A.TypeError,uJ=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=DK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){fY(e);var n=t;if("object"==typeof n||FK(n))return o?r(e,t):e.__proto__=t,e;throw aJ("Can't set "+iJ(n)+" as a prototype")}}():void 0),sJ=zY.PROPER,lJ=zY.CONFIGURABLE,cJ=e.IteratorPrototype,fJ=e.BUGGY_SAFARI_ITERATORS,dJ=hK("iterator"),pJ=MY.set,hJ=MY.getterFor("Array Iterator"),gJ=HZ(Array,"Array",function(e,t){pJ(this,{type:"Array Iterator",target:lK(e),index:0,kind:t})},function(){var e=hJ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),vJ=(XZ.Arguments=XZ.Array,LZ("keys"),LZ("values"),LZ("entries"),f.charAt),yJ=MY.set,mJ=MY.getterFor("String Iterator"),bJ=(HZ(String,"String",function(e){yJ(this,{type:"String Iterator",string:AX(e),index:0})},function(){var e=mJ(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=vJ(t,n),e.index+=t.length,{value:t,done:!1})}),QY.f),wJ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xJ={f:function(e){if(!wJ||"Window"!=uK(e))return bJ(lK(e));var t=e;try{return bJ(t)}catch(t){return HX(wJ)}}},EJ=iK(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),DJ=Object.isExtensible,SJ=iK(function(){DJ(1)})||EJ?function(e){return!!TK(e)&&(!EJ||"ArrayBuffer"!=uK(e))&&(!DJ||DJ(e))}:DJ,CJ=!iK(function(){return Object.isExtensible(Object.preventExtensions({}))}),i=rK(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=hY.f,r=!1,a=pK("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=QY.f,i=DK([].splice),e={};e[a]=1,o(e).length&&(QY.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},DY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:xJ.f}))},fastKey:function(e,t){if(!TK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!KK(e,a)){if(!SJ(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!KK(e,a)){if(!SJ(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return CJ&&r&&SJ(e)&&!KK(e,a)&&n(e),e}};LY[a]=!0}),AJ=DK(DK.bind),OJ=hK("iterator"),kJ=Array.prototype,BJ=hK("iterator"),FJ=A.TypeError,TJ=A.TypeError,_J=GZ.prototype,PJ=A.TypeError,jJ=hK("iterator"),NJ=!1;try{var IJ=0,LJ={next:function(){return{done:!!IJ++}},return:function(){NJ=!0}};LJ[jJ]=function(){return this},Array.from(LJ,function(){throw 2})}catch(Fs){}function RJ(e,t){if(!t&&!NJ)return!1;var n=!1;try{var r={};r[jJ]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}function MJ(e,t){return new(void 0===(n=cX(e=e)&&(n=e.constructor,wX(n)&&(n===WJ||cX(n.prototype))||TK(n)&&null===(n=n[UJ]))?void 0:n)?WJ:n)(0===t?0:t);var n}function zJ(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=dK(e),u=kK(a),s=VZ(t,n),l=bY(u),c=0,t=r||MJ,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:GJ(f,o)}else switch(d){case 4:return!1;case 7:GJ(f,o)}return y?-1:g||v?v:f}}function HJ(e){return e.frozen||(e.frozen=new $J)}function $J(){this.entries=[]}function VJ(e,t){return ZJ(e.entries,function(e){return e[0]===t})}var UJ=hK("species"),WJ=A.Array,GJ=DK([].push),qJ={forEach:zJ(0),map:zJ(1),filter:zJ(2),some:zJ(3),every:zJ(4),find:zJ(5),findIndex:zJ(6),filterReject:zJ(7)},KJ=i.getWeakData,YJ=MY.set,XJ=MY.getterFor,ZJ=qJ.find,JJ=qJ.findIndex,QJ=DK([].splice),eQ=0;$J.prototype={get:function(e){e=VJ(this,e);if(e)return e[1]},has:function(e){return!!VJ(this,e)},set:function(e,t){var n=VJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=JJ(this.entries,function(e){return e[0]===t});return~e&&QJ(this.entries,e,1),!!~e}};function tQ(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}var nQ,rQ,oQ,iQ,aQ,uQ,sQ,lQ,cQ,fQ,dQ,pQ,hQ={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=KJ(fY(t),!0);return!0===o?HJ(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){KZ(e,a),YJ(e,{type:n,id:eQ++,frozen:void 0}),null!=t&&qZ(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=XJ(n);return $Z(a,{delete:function(e){var t,n=u(this);return!!TK(e)&&(!0===(t=KJ(e))?HJ(n).delete(e):t&&KK(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!TK(e)&&(!0===(t=KJ(e))?HJ(n).has(e):t&&KK(t,n.id))}}),$Z(a,r?{get:function(e){var t,n=u(this);if(TK(e))return!0===(t=KJ(e))?HJ(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},gQ=MY.enforce,n=!A.ActiveXObject&&"ActiveXObject"in A,a=(S=tQ,D=hQ,oQ=-1!==(l="WeakMap").indexOf("Map"),iQ=-1!==l.indexOf("Weak"),aQ=oQ?"set":"add",uQ=A[l],sQ=uQ&&uQ.prototype,g={},sX(l,!FK(lQ=uQ)||!(iQ||sQ.forEach&&!iK(function(){(new uQ).entries().next()})))?(lQ=D.getConstructor(S,l,oQ,aQ),i.enable()):sX(l,!0)&&(E=(rQ=new lQ)[aQ](iQ?{}:-0,1)!=rQ,c=iK(function(){rQ.has(1)}),vD=RJ(function(e){new uQ(e)}),p=!iQ&&iK(function(){for(var e=new uQ,t=5;t--;)e[aQ](t,t);return!e.has(-0)}),vD||(((lQ=S(function(e,t){KZ(e,sQ);n=new uQ,r=lQ,uJ&&FK(e=e.constructor)&&e!==r&&TK(e=e.prototype)&&e!==r.prototype&&uJ(n,e);var n,r=n;return null!=t&&qZ(t,r[aQ],{that:r,AS_ENTRIES:oQ}),r})).prototype=sQ).constructor=lQ),(c||p)&&(vQ("delete"),vQ("has"),oQ)&&vQ("get"),(p||E)&&vQ(aQ),iQ)&&sQ.clear&&delete sQ.clear,DY({global:!0,forced:(g[l]=lQ)!=uQ},g),RZ(lQ,l),iQ||D.setStrong(lQ,l,oQ),lQ);function vQ(e){var n=DK(sQ[e]);HY(sQ,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(iQ&&!TK(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return iQ&&!TK(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(iQ&&!TK(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}u&&n&&(nQ=hQ.getConstructor(tQ,"WeakMap",!0),i.enable(),v=a.prototype,cQ=DK(v.delete),fQ=DK(v.has),dQ=DK(v.get),pQ=DK(v.set),$Z(v,{delete:function(e){var t;return TK(e)&&!SJ(e)?((t=gQ(this)).frozen||(t.frozen=new nQ),cQ(this,e)||t.frozen.delete(e)):cQ(this,e)},has:function(e){var t;return TK(e)&&!SJ(e)?((t=gQ(this)).frozen||(t.frozen=new nQ),fQ(this,e)||t.frozen.has(e)):fQ(this,e)},get:function(e){var t;return!TK(e)||SJ(e)||((t=gQ(this)).frozen||(t.frozen=new nQ),fQ(this,e))?dQ(this,e):t.frozen.get(e)},set:function(e,t){var n;return!TK(e)||SJ(e)||((n=gQ(this)).frozen||(n.frozen=new nQ),fQ(this,e))?pQ(this,e,t):n.frozen.set(e,t),this}}));function yQ(e,t){if(e){if(e[wQ]!==EQ)try{gY(e,wQ,EQ)}catch(t){e[wQ]=EQ}if(e[xQ]||gY(e,xQ,t),bQ[t])for(var n in gJ)if(e[n]!==gJ[n])try{gY(e,n,gJ[n])}catch(t){e[n]=gJ[n]}}}var mQ,bQ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},e=vK("span").classList,f=e&&e.constructor&&e.constructor.prototype,LJ=f===Object.prototype?void 0:f,wQ=hK("iterator"),xQ=hK("toStringTag"),EQ=gJ.values;for(mQ in bQ)yQ(A[mQ]&&A[mQ].prototype,mQ);yQ(LJ,"DOMTokenList");function DQ(e,t){var n=[][e];return!!n&&iK(function(){n.call(null,t||function(){throw 1},1)})}function SQ(t){if(t&&t.forEach!==OQ)try{gY(t,"forEach",OQ)}catch(e){t.forEach=OQ}}var CQ,AQ=qJ.forEach,OQ=DQ("forEach")?[].forEach:function(e){return AQ(this,e,1<arguments.length?arguments[1]:void 0)};for(CQ in bQ)bQ[CQ]&&SQ(A[CQ]&&A[CQ].prototype);SQ(LJ);var kQ,BQ,S=A.Promise,c=hK("species"),p=/(?:ipad|iphone|ipod).*applewebkit/i.test(s),FQ="process"==uK(A.process),E=A.setImmediate,g=A.clearImmediate,TQ=A.process,_Q=A.Dispatch,PQ=A.Function,D=A.MessageChannel,jQ=A.String,NQ=0,IQ={};try{kQ=A.location}catch(Fs){}function LQ(e){return function(){zQ(e)}}function RQ(e){zQ(e.data)}function MQ(e){A.postMessage(jQ(e),kQ.protocol+"//"+kQ.host)}var zQ=function(e){var t;KK(IQ,e)&&(t=IQ[e],delete IQ[e],t())};E&&g||(E=function(e){var t=EX(arguments,1);return IQ[++NQ]=function(){pZ(FK(e)?e:PQ(e),void 0,t)},BQ(NQ),NQ},g=function(e){delete IQ[e]},FQ?BQ=function(e){TQ.nextTick(LQ(e))}:_Q&&_Q.now?BQ=function(e){_Q.now(LQ(e))}:D&&!p?(u=(l=new D).port2,l.port1.onmessage=RQ,BQ=VZ(u.postMessage,u)):A.addEventListener&&FK(A.postMessage)&&!A.importScripts&&kQ&&"file:"!==kQ.protocol&&!iK(MQ)?(BQ=MQ,A.addEventListener("message",RQ,!1)):BQ="onreadystatechange"in vK("script")?function(e){NX.appendChild(vK("script")).onreadystatechange=function(){NX.removeChild(this),zQ(e)}}:function(e){setTimeout(LQ(e),0)});var HQ,$Q,VQ,UQ,WQ,GQ,qQ,n={set:E,clear:g},hQ=/ipad|iphone|ipod/i.test(s)&&void 0!==A.Pebble,i=/web0s(?!.*chrome)/i.test(s),a=sY.f,KQ=n.set,v=A.MutationObserver||A.WebKitMutationObserver,e=A.document,YQ=A.process,f=A.Promise,qJ=a(A,"queueMicrotask"),LJ=qJ&&qJ.value;LJ||(HQ=function(){var e,t;for(FQ&&(e=YQ.domain)&&e.exit();$Q;){t=$Q.fn,$Q=$Q.next;try{t()}catch(e){throw $Q?UQ():VQ=void 0,e}}VQ=void 0,e&&e.enter()},UQ=p||FQ||i||!v||!e?!hQ&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,qQ=VZ(D.then,D),function(){qQ(HQ)}):FQ?function(){YQ.nextTick(HQ)}:(KQ=VZ(KQ,A),function(){KQ(HQ)}):(WQ=!0,GQ=e.createTextNode(""),new v(HQ).observe(GQ,{characterData:!0}),function(){GQ.data=WQ=!WQ}));function XQ(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=HK(n),this.reject=HK(r)}var ZQ,JQ,QQ,eee,tee=LJ||function(e){e={fn:e,next:void 0};VQ&&(VQ.next=e),$Q||($Q=e,UQ()),VQ=e},nee={f:function(e){return new XQ(e)}},ree=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},oee="object"==typeof window,iee=n.set,aee=hK("species"),uee="Promise",see=MY.getterFor(uee),lee=MY.set,cee=MY.getterFor(uee),l=S&&S.prototype,fee=S,dee=l,pee=A.TypeError,hee=A.document,gee=A.process,vee=nee.f,yee=vee,mee=!!(hee&&hee.createEvent&&A.dispatchEvent),bee=FK(A.PromiseRejectionEvent),wee=!1,u=sX(uee,function(){var e,t=NY(fee),n=t!==String(fee);return!n&&66===PK||!(51<=PK&&/native code/.test(t))&&(t=function(e){e(function(){},function(){})},((e=new fee(function(e){e(1)})).constructor={})[aee]=t,!(wee=e.then(function(){})instanceof t)||!n&&oee&&!bee)}),E=u||!RJ(function(e){fee.all(e).catch(function(){})}),xee=function(e){var t;return!(!TK(e)||!FK(t=e.then))&&t},Eee=function(d,p){var h;d.notified||(d.notified=!0,h=d.reactions,tee(function(){for(var r,e=d.value,t=1==d.state,n=0;h.length>n;){var o,i,a,u=h[n++],s=t?u.ok:u.fail,l=u.resolve,c=u.reject,f=u.domain;try{s?(t||(2===d.rejection&&function(t){mK(iee,A,function(){var e=t.facade;FQ?gee.emit("rejectionHandled",e):Dee("rejectionhandled",e,t.value)})}(d),d.rejection=1),!0===s?o=e:(f&&f.enter(),o=s(e),f&&(f.exit(),a=!0)),o===u.promise?c(pee("Promise-chain cycle")):(i=xee(o))?mK(i,o,l,c):l(o)):c(e)}catch(e){f&&!a&&f.exit(),c(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&(r=d,mK(iee,A,function(){var e,t=r.facade,n=r.value;if(See(r)&&(e=ree(function(){FQ?gee.emit("unhandledRejection",n,t):Dee("unhandledrejection",t,n)}),r.rejection=FQ||See(r)?2:1,e.error))throw e.value}))}))},Dee=function(e,t,n){var r;mee?((r=hee.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),A.dispatchEvent(r)):r={promise:t,reason:n},!bee&&(t=A["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){var n=A.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},See=function(e){return 1!==e.rejection&&!e.parent},Cee=function(t,n,r){return function(e){t(n,e,r)}},Aee=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,Eee(e,!0))},Oee=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw pee("Promise can't be resolved itself");var r=xee(e);r?tee(function(){var t={done:!1};try{mK(r,e,Cee(Oee,t,n),Cee(Aee,t,n))}catch(e){Aee(t,e,n)}}):(n.value=e,n.state=1,Eee(n,!1))}catch(e){Aee({done:!1},e,n)}}};if(u&&(dee=(fee=function(e){KZ(this,dee),HK(e),mK(ZQ,this);var t=see(this);try{e(Cee(Oee,t),Cee(Aee,t))}catch(e){Aee(t,e)}}).prototype,(ZQ=function(e){lee(this,{type:uee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=$Z(dee,{then:function(e,t){var n=cee(this),r=n.reactions,o=vee(MX(this,fee));return o.ok=!FK(e)||e,o.fail=FK(t)&&t,o.domain=FQ?gee.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Eee(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),JQ=function(){var e=new ZQ,t=see(e);this.promise=e,this.resolve=Cee(Oee,t),this.reject=Cee(Aee,t)},nee.f=vee=function(e){return e===fee||e===QQ?new JQ:yee(e)},FK(S))&&l!==Object.prototype){eee=l.then,wee||(HY(l,"then",function(e,t){var n=this;return new fee(function(e,t){mK(eee,n,e,t)}).then(e,t)},{unsafe:!0}),HY(l,"catch",dee.catch,{unsafe:!0}));try{delete l.constructor}catch(Fs){}uJ&&uJ(l,dee)}DY({global:!0,wrap:!0,forced:u},{Promise:fee}),RZ(fee,uee,!1),g=cK("Promise"),s=hY.f,d&&g&&!g[c]&&s(g,c,{configurable:!0,get:function(){return this}}),QQ=cK(uee),DY({target:uee,stat:!0,forced:u},{reject:function(e){var t=vee(this);return mK(t.reject,void 0,e),t.promise}}),DY({target:uee,stat:!0,forced:u},{resolve:function(e){return e=e,fY(t=this),TK(e)&&e.constructor===t?e:((0,(t=nee.f(t)).resolve)(e),t.promise);var t}}),DY({target:uee,stat:!0,forced:E},{all:function(e){var u=this,t=vee(u),s=t.resolve,l=t.reject,n=ree(function(){var r=HK(u.resolve),o=[],i=0,a=1;qZ(e,function(e){var t=i++,n=!1;a++,mK(r,u,e).then(function(e){n||(n=!0,o[t]=e,--a)||s(o)},l)}),--a||s(o)});return n.error&&l(n.value),t.promise},race:function(e){var n=this,r=vee(n),o=r.reject,t=ree(function(){var t=HK(n.resolve);qZ(e,function(e){mK(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}});var a=zY.PROPER,kee=RegExp.prototype,Bee=kee.toString,Fee=DK(OX),qJ=iK(function(){return"/a/b"!=Bee.call({source:"a",flags:"b"})}),p=a&&"toString"!=Bee.name,i=((qJ||p)&&HY(RegExp.prototype,"toString",function(){var e=fY(this),t=AX(e.source),n=e.flags;return"/"+t+"/"+AX(void 0!==n||!_K(kee,e)||"flags"in kee?n:Fee(e))},{unsafe:!0}),zY.EXISTS),hQ=hY.f,f=Function.prototype,Tee=DK(f.toString),_ee=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Pee=DK(_ee.exec),jee=(d&&!i&&hQ(f,"name",{configurable:!0,get:function(){try{return Pee(_ee,Tee(this))[1]}catch(e){return""}}}),new WeakMap);function Nee(e){return e.getMenuConfig("uploadImage")}function Iee(p,h){return PZ(this,void 0,void 0,function(){var l,c,f,d;return jZ(this,function(e){switch(e.label){case 0:return i=p,null==(o=jee.get(i))&&(t=Nee(i),a=t.onSuccess,n=t.onProgress,u=t.onFailed,s=t.customInsert,r=t.onError,o=E3(_Z(_Z({},t),{onProgress:function(e){i.showProgressBar(e),n&&n(e)},onSuccess:function(e,t){var n,r,o;(s?(s(t,function(e,t,n){return l9(i,e,t,n)}),a):(n=t.errno,o=void 0===(o=t.data)?{}:o,0===(void 0===n?1:n)?(Array.isArray(o)?o.forEach(function(e){var t=e.url,n=e.alt,e=e.href;l9(i,void 0===t?"":t,void 0===n?"":n,void 0===e?"":e)}):(n=o.url,r=o.alt,o=o.href,l9(i,void 0===n?"":n,void 0===r?"":r,void 0===o?"":o)),a):u))(e,t)},onError:function(e,t,n){r(e,t,n)}})),jee.set(i,o)),l=o,c=h.name,f=h.type,d=h.size,l.addFile({name:c,type:f,size:d,data:h}),[4,l.upload()];case 1:return e.sent(),[2]}var i,t,a,n,u,s,r,o})})}function Lee(s,l){var c,f;PZ(this,void 0,void 0,function(){var t,n,r,o,i,a,u;return jZ(this,function(e){switch(e.label){case 0:if(null==l)return[2];t=Array.prototype.slice.call(l),r=Nee(s),n=r.customUpload,r=r.base64LimitSize,e.label=1;case 1:e.trys.push([1,11,12,17]),o=function(a){var e,t;if(Symbol.asyncIterator)return(t=a[Symbol.asyncIterator])?t.call(a):(a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);throw new TypeError("Symbol.asyncIterator is not defined.");function n(i){e[i]=a[i]&&function(o){return new Promise(function(e,t){var n,r;n=e,e=t,r=(o=a[i](o)).done,t=o.value,Promise.resolve(t).then(function(e){n({value:e,done:r})},e)})}}}(t),e.label=2;case 2:return[4,o.next()];case 3:return(i=e.sent()).done?[3,10]:(a=i.value,u=a.size,r&&u<=r?[4,function(o,i){return PZ(this,void 0,void 0,function(){return jZ(this,function(e){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(i),r.onload=function(){var e,t=r.result;t&&(e=0===(t=t.toString()).indexOf("data:image")?"":t,l9(o,t,i.name,e),n("ok"))}})]})})}(s,a)]:[3,5]);case 4:return e.sent(),[3,9];case 5:return n?[4,n(a,function(e,t,n){return l9(s,e,t,n)})]:[3,7];case 6:return e.sent(),[3,9];case 7:return[4,Iee(s,a)];case 8:e.sent(),e.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return u=e.sent(),c={error:u},[3,17];case 12:return e.trys.push([12,,15,16]),i&&!i.done&&(f=o.return)?[4,f.call(o)]:[3,14];case 13:e.sent(),e.label=14;case 14:return[3,16];case 15:if(c)throw c.error;return[7];case 16:return[7];case 17:return[2]}})})}var Ree=DK([].join),D=kK!=Object,e=DQ("join",","),Mee=(DY({target:"Array",proto:!0,forced:D||!e},{join:function(e){return Ree(lK(this),void 0===e?",":e)}}),N.fn.append=nd,N.fn.on=Vf,N.fn.remove=sd,N.fn.val=$f,r&&(N.fn.click=r),N.fn.hide=Kf,zee.prototype.getValue=function(e){return""},zee.prototype.isActive=function(e){return!1},zee.prototype.isDisabled=c9,zee.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},zee.prototype.exec=function(r,e){var t,n=this.getMenuConfig(r),o=n.allowedFileTypes,o=void 0===o?[]:o,n=n.customBrowseAndUpload;n?n(function(e,t,n){return l9(r,e,t,n)}):(n="",0<o.length&&(n='accept="'+o.join(", ")+'"'),o=N("body"),(t=N('<input type="file" '+n+" multiple/>")).hide(),o.append(t),t.click(),t.on("change",function(){var e=t[0].files;Lee(r,e)}))},zee),v={menus:[{key:"uploadImage",factory:function(){return new Mee},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(n){var r=n.insertData,o=n;return o.insertData=function(e){var t;!c9(o)&&!e.getData("text/plain")&&!((t=e.files).length<=0)&&Array.prototype.slice.call(t).some(function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]})?Lee(n,t):r(e)},o}};function zee(){this.title=w("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}g6("en",{highLightModule:{selectLang:"Language"}}),g6("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Hee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function $ee(e){var t={exports:{}};return e(t,t.exports),t.exports}function Vee(e){return e&&e.Math==Math&&e}function Uee(t,n){try{nte(tte,t,{value:n,configurable:!0,writable:!0})}catch(e){tte[t]=n}return n}function Wee(e){if(null==e)throw ute("Can't call method on "+e);return e}function Gee(e){return ste(Wee(e))}function qee(e){return"Symbol("+(void 0===e?"":e)+")_"+pte(++fte+dte,36)}function Kee(e,t){return arguments.length<2?(n=tte[e],hte(n)?n:void 0):tte[e]&&tte[e][t];var n}function Yee(e){try{return!!e()}catch(e){return!0}}function Xee(e){var t;return cte(mte,e)&&(vte||"string"==typeof mte[e])||(t="Symbol."+e,vte&&cte(bte,e)?mte[e]=bte[e]:mte[e]=(yte&&wte?wte:xte)(t)),mte[e]}function Zee(e){return Cte?Ste.createElement(e):{}}function Jee(e,t){return null==(e=e[t])?void 0:Rte(e)}function Qee(e){return e=function(e,t){if(!Dte(e)||jte(e))return e;var n,r,o=Jee(e,Hte);if(o){if(o=Tte(o,e,t=void 0===t?"default":t),!Dte(o)||jte(o))return o;throw zte("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&hte(n=o.toString)&&!Dte(r=Tte(n,o)))return r;if(hte(n=o.valueOf)&&!Dte(r=Tte(n,o)))return r;if("string"!==e&&hte(n=o.toString)&&!Dte(r=Tte(n,o)))return r;throw Mte("Can't convert object to primitive value")}(e,"string"),jte(e)?e:e+""}function ete(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}var tte=Vee("object"==typeof globalThis&&globalThis)||Vee("object"==typeof window&&window)||Vee("object"==typeof self&&self)||Vee("object"==typeof Hee&&Hee)||function(){return this}()||Function("return this")(),nte=Object.defineProperty,rte=tte["__core-js_shared__"]||Uee("__core-js_shared__",{}),LJ=$ee(function(e){(e.exports=function(e,t){return rte[e]||(rte[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),n=Function.prototype,S=n.bind,ote=n.call,ite=S&&S.bind(ote),ate=S?function(e){return e&&ite(ote,e)}:function(e){return e&&function(){return ote.apply(e,arguments)}},ute=tte.TypeError,ste=tte.Object,lte=ate({}.hasOwnProperty),cte=Object.hasOwn||function(e,t){return lte(Gee(e),t)},fte=0,dte=Math.random(),pte=ate(1..toString),hte=function(e){return"function"==typeof e},l=Kee("navigator","userAgent")||"",s=tte.process,g=tte.Deno,c=s&&s.versions||g&&g.version,u=c&&c.v8,gte=Vre=!(Vre=u?0<(cre=u.split("."))[0]&&cre[0]<4?1:+(cre[0]+cre[1]):Vre)&&l&&(!(cre=l.match(/Edge\/(\d+)/))||74<=cre[1])&&(cre=l.match(/Chrome\/(\d+)/))?+cre[1]:Vre,vte=!!Object.getOwnPropertySymbols&&!Yee(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gte&&gte<41}),yte=vte&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mte=LJ("wks"),bte=tte.Symbol,wte=bte&&bte.for,xte=yte?bte:bte&&bte.withoutSetter||qee,E={},a=(E[Xee("toStringTag")]="z","[object z]"===String(E)),Ete=!Yee(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Dte=function(e){return"object"==typeof e?null!==e:hte(e)},Ste=tte.document,Cte=Dte(Ste)&&Dte(Ste.createElement),Ate=!Ete&&!Yee(function(){return 7!=Object.defineProperty(Zee("div"),"a",{get:function(){return 7}}).a}),Ote=tte.String,kte=tte.TypeError,Bte=function(e){if(Dte(e))return e;throw kte(Ote(e)+" is not an object")},Fte=Function.prototype.call,Tte=Fte.bind?Fte.bind(Fte):function(){return Fte.apply(Fte,arguments)},_te=ate({}.isPrototypeOf),Pte=tte.Object,jte=yte?function(e){return"symbol"==typeof e}:function(e){var t=Kee("Symbol");return hte(t)&&_te(t.prototype,Pte(e))},Nte=tte.String,Ite=function(e){try{return Nte(e)}catch(e){return"Object"}},Lte=tte.TypeError,Rte=function(e){if(hte(e))return e;throw Lte(Ite(e)+" is not a function")},Mte=tte.TypeError,zte=tte.TypeError,Hte=Xee("toPrimitive"),$te=tte.TypeError,Vte=Object.defineProperty,Ute={f:Ete?Vte:function(e,t,n){if(Bte(e),t=Qee(t),Bte(n),Ate)try{return Vte(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $te("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wte=Ete?function(e,t,n){return Ute.f(e,t,ete(1,n))}:function(e,t,n){return e[t]=n,e},Gte=ate(Function.toString);hte(rte.inspectSource)||(rte.inspectSource=function(e){return Gte(e)});function qte(e){return one[e]||(one[e]=qee(e))}function Kte(e){return fne(cne(e),8,-1)}var Yte,Xte,Zte,Jte,Qte,ene,tne,nne,rne=rte.inspectSource,qJ=tte.WeakMap,p=hte(qJ)&&/native code/.test(rne(qJ)),one=LJ("keys"),ine={},ane=tte.TypeError,d=tte.WeakMap,une=(tne=p||rte.state?(Yte=rte.state||(rte.state=new d),Xte=ate(Yte.get),Zte=ate(Yte.has),Jte=ate(Yte.set),Qte=function(e,t){if(Zte(Yte,e))throw new ane("Object already initialized");return t.facade=e,Jte(Yte,e,t),t},ene=function(e){return Xte(Yte,e)||{}},function(e){return Zte(Yte,e)}):(nne=qte("state"),ine[nne]=!0,Qte=function(e,t){if(cte(e,nne))throw new ane("Object already initialized");return t.facade=e,Wte(e,nne,t),t},ene=function(e){return cte(e,nne)?e[nne]:{}},function(e){return cte(e,nne)}),{set:Qte,get:ene,has:tne,enforce:function(e){return tne(e)?ene(e):Qte(e,{})},getterFor:function(t){return function(e){if(Dte(e)&&(e=ene(e)).type===t)return e;throw ane("Incompatible receiver, "+t+" required")}}}),i=Function.prototype,hQ=Ete&&Object.getOwnPropertyDescriptor,f=cte(i,"name"),sne={EXISTS:f,PROPER:f&&"something"===function(){}.name,CONFIGURABLE:f&&(!Ete||hQ(i,"name").configurable)},lne=$ee(function(e){var s=sne.CONFIGURABLE,t=une.get,l=une.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;hte(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cte(n,"name")||s&&n.name!==r)&&Wte(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==tte?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Wte(e,t,n)):a?e[t]=n:Uee(t,n)})(Function.prototype,"toString",function(){return hte(this)&&t(this).source||rne(this)})}),cne=ate({}.toString),fne=ate("".slice),dne=Xee("toStringTag"),pne=tte.Object,hne="Arguments"==Kte(function(){return arguments}()),gne=a?Kte:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=pne(e),dne))?t:hne?Kte(e):"Object"==(t=Kte(e))&&hte(e.callee)?"Arguments":t};a||lne(Object.prototype,"toString",a?{}.toString:function(){return"[object "+gne(this)+"]"},{unsafe:!0});function vne(e){return Pne(e.length)}function yne(){}function mne(e){if(!hte(e))return!1;try{return Ine(yne,Nne,e),!0}catch(e){return!1}}function bne(e,t){return new(void 0===(n=jne(e=e)&&(n=e.constructor,zne(n)&&(n===$ne||jne(n.prototype))||Dte(n)&&null===(n=n[Hne]))?void 0:n)?$ne:n)(0===t?0:t);var n}function wne(h){var g=1==h,v=2==h,y=3==h,m=4==h,b=6==h,w=7==h,x=5==h||b;return function(e,t,n,r){for(var o,i,a,u,s=Gee(e),l=kne(s),c=(u=n,Rte(a=t),void 0===u?a:Cne?Cne(a,u):function(){return a.apply(u,arguments)}),f=vne(l),d=0,n=r||bne,p=g?n(e,f):v||w?n(e,0):void 0;d<f;d++)if((x||d in l)&&(i=c(o=l[d],d,s),h))if(g)p[d]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return d;case 2:Vne(p,o)}else switch(h){case 4:return!1;case 7:Vne(p,o)}return b?-1:y||m?m:p}}function xne(t){if(t&&t.forEach!==Wne)try{Wte(t,"forEach",Wne)}catch(e){t.forEach=Wne}}var Ene,Dne,Sne={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},D=Zee("span").classList,e=D&&D.constructor&&D.constructor.prototype,r=e===Object.prototype?void 0:e,Cne=ate(ate.bind),Ane=tte.Object,One=ate("".split),kne=Yee(function(){return!Ane("z").propertyIsEnumerable(0)})?function(e){return"String"==Kte(e)?One(e,""):Ane(e)}:Ane,Bne=Math.ceil,Fne=Math.floor,Tne=function(e){e=+e;return e!=e||0==e?0:(0<e?Fne:Bne)(e)},_ne=Math.min,Pne=function(e){return 0<e?_ne(Tne(e),9007199254740991):0},jne=Array.isArray||function(e){return"Array"==Kte(e)},Nne=[],Ine=Kee("Reflect","construct"),Lne=/^\s*(?:class|function)\b/,Rne=ate(Lne.exec),Mne=!Lne.exec(yne),zne=!Ine||Yee(function(){var e;return mne(mne.call)||!mne(Object)||!mne(function(){e=!0})||e})?function(e){if(!hte(e))return!1;switch(gne(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mne||!!Rne(Lne,rne(e))}:mne,Hne=Xee("species"),$ne=tte.Array,Vne=ate([].push),Une=[wne(0),wne(1),wne(2),wne(3),wne(4),wne(5),wne(6),wne(7)][0],Wne=(Ene=[].forEach)&&Yee(function(){Ene.call(null,function(){throw 1},1)})?[].forEach:function(e){return Une(this,e,1<arguments.length?arguments[1]:void 0)};for(Dne in Sne)Sne[Dne]&&xne(tte[Dne]&&tte[Dne].prototype);xne(r);function Gne(e){return kne(Wee(e))}function qne(e,t){return(e=Tne(e))<0?wre(e+t,0):xre(e,t)}function Kne(u){return function(e,t,n){var r,o=Gne(e),i=vne(o),a=qne(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function Yne(e,t){var n,r=Gne(e),o=0,i=[];for(n in r)!cte(ine,n)&&cte(r,n)&&Dre(i,n);for(;t.length>o;)!cte(r,n=t[o++])||~Ere(i,n)||Dre(i,n);return i}function Xne(e,t){return(e=_re[Tre(e)])==jre||e!=Pre&&(hte(t)?Yee(t):!!t)}function Zne(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?tte:s?tte[a]||Uee(a,{}):(tte[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=Ire(n,r))&&i.value:n[r],!Nre(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=Bre(c),d=Ute.f,p=bre.f,h=0;h<f.length;h++){var g=f[h];cte(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&Wte(o,"sham",!0),lne(n,r,o,e)}}var Jne,Qne,ere,tre,nre,rre,ore,ire,are,ure,sre,lre,cre,fre,dre,pre,hre,gre,t={}.propertyIsEnumerable,vre=Object.getOwnPropertyDescriptor,yre={f:vre&&!t.call({1:2},1)?function(e){e=vre(this,e);return!!e&&e.enumerable}:t},mre=Object.getOwnPropertyDescriptor,bre={f:Ete?mre:function(e,t){if(e=Gne(e),t=Qee(t),Ate)try{return mre(e,t)}catch(e){}if(cte(e,t))return ete(!Tte(yre.f,e,t),e[t])}},wre=Math.max,xre=Math.min,Ere=(Kne(!0),Kne(!1)),Dre=ate([].push),Sre=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cre=Sre.concat("length","prototype"),Are={f:Object.getOwnPropertyNames||function(e){return Yne(e,Cre)}},Ore={f:Object.getOwnPropertySymbols},kre=ate([].concat),Bre=Kee("Reflect","ownKeys")||function(e){var t=Are.f(Bte(e)),n=Ore.f;return n?kre(t,n(e)):t},Fre=/#|\.prototype\./,Tre=Xne.normalize=function(e){return String(e).replace(Fre,".").toLowerCase()},_re=Xne.data={},Pre=Xne.NATIVE="N",jre=Xne.POLYFILL="P",Nre=Xne,Ire=bre.f,Lre=Object.keys||function(e){return Yne(e,Sre)},Rre=Object.assign,Mre=Object.defineProperty,zre=ate([].concat),n=!Rre||Yee(function(){var e,t,n,r;return Ete&&1!==Rre({b:1},Rre(Mre({},"a",{enumerable:!0,get:function(){Mre(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=Rre({},e)[n])||Lre(Rre({},t)).join("")!=r})?function(e,t){for(var n=Gee(e),r=arguments.length,o=1,i=Ore.f,a=yre.f;o<r;)for(var u,s=kne(arguments[o++]),l=i?zre(Lre(s),i(s)):Lre(s),c=l.length,f=0;f<c;)u=l[f++],Ete&&!Tte(a,s,u)||(n[u]=s[u]);return n}:Rre,Hre=(Zne({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n}),$ee(function(e){s="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},l=/\blang(?:uage)?-([\w-]+)\b/i,t=0,o={},F={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof T?new T(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function n(e,r){var o,t;switch(r=r||{},F.util.type(e)){case"Object":if(t=F.util.objId(e),r[t])return r[t];for(var i in o={},r[t]=o,e)e.hasOwnProperty(i)&&(o[i]=n(e[i],r));return o;case"Array":return t=F.util.objId(e),r[t]||(o=[],r[t]=o,e.forEach(function(e,t){o[t]=n(e,r)}),o);default:return e}},getLanguage:function(e){for(;e&&!l.test(e.className);)e=e.parentElement;return e?(e.className.match(l)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(e.stack)||[])[1];if(t){var n,r=document.getElementsByTagName("script");for(n in r)if(r[n].src==t)return r[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(e,t){var n,r=F.util.clone(F.languages[e]);for(n in t)r[n]=t[n];return r},insertBefore:function(n,e,t,r){var o,i=(r=r||F.languages)[n],a={};for(o in i)if(i.hasOwnProperty(o)){if(o==e)for(var u in t)t.hasOwnProperty(u)&&(a[u]=t[u]);t.hasOwnProperty(o)||(a[o]=i[o])}var s=r[n];return r[n]=a,F.languages.DFS(F.languages,function(e,t){t===s&&e!=n&&(this[e]=a)}),a},DFS:function e(t,n,r,o){o=o||{};var i,a,u,s=F.util.objId;for(i in t)t.hasOwnProperty(i)&&(n.call(t,i,t[i],r||i),a=t[i],"Object"!==(u=F.util.type(a))||o[s(a)]?"Array"!==u||o[s(a)]||(o[s(a)]=!0,e(a,n,i,o)):(o[s(a)]=!0,e(a,n,null,o)))}},plugins:{},highlightAll:function(e,t){F.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};F.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),F.hooks.run("before-all-elements-highlight",r);for(var o,i=0;o=r.elements[i++];)F.highlightElement(o,!0===t,r.callback)},highlightElement:function(e,t,n){var r=F.util.getLanguage(e),o=F.languages[r],i=(e.className=e.className.replace(l,"").replace(/\s+/g," ")+" language-"+r,e.parentElement),a=(i&&"pre"===i.nodeName.toLowerCase()&&(i.className=i.className.replace(l,"").replace(/\s+/g," ")+" language-"+r),{element:e,language:r,grammar:o,code:e.textContent});function u(e){a.highlightedCode=e,F.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,F.hooks.run("after-highlight",a),F.hooks.run("complete",a),n&&n.call(a.element)}F.hooks.run("before-sanity-check",a),(i=a.element.parentElement)&&"pre"===i.nodeName.toLowerCase()&&!i.hasAttribute("tabindex")&&i.setAttribute("tabindex","0"),a.code?(F.hooks.run("before-highlight",a),a.grammar?t&&s.Worker?((r=new Worker(F.filename)).onmessage=function(e){u(e.data)},r.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))):u(F.highlight(a.code,a.grammar,a.language)):u(F.util.encode(a.code))):(F.hooks.run("complete",a),n&&n.call(a.element))},highlight:function(e,t,n){e={code:e,grammar:t,language:n};return F.hooks.run("before-tokenize",e),e.tokens=F.tokenize(e.code,e.grammar),F.hooks.run("after-tokenize",e),T.stringify(F.util.encode(e.tokens),e.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}for(var o=new d,i=(P(o,o.head,e),function e(t,n,r,o,i,a){for(var u in r)if(r.hasOwnProperty(u)&&r[u]){var s=r[u];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(a&&a.cause==u+","+l)return;var c,f=s[l],d=f.inside,p=!!f.lookbehind,h=!!f.greedy,g=f.alias;h&&!f.pattern.global&&(c=f.pattern.toString().match(/[imsuy]*$/)[0],f.pattern=RegExp(f.pattern.source,c+"g"));for(var v=f.pattern||f,y=o.next,m=i;y!==n.tail&&!(a&&m>=a.reach);m+=y.value.length,y=y.next){var b=y.value;if(n.length>t.length)return;if(!(b instanceof T)){var w,x=1;if(h){if(!(w=_(v,m,t,p)))break;var E=w.index,D=w.index+w[0].length,S=m;for(S+=y.value.length;S<=E;)S+=(y=y.next).value.length;if(m=S-=y.value.length,y.value instanceof T)continue;for(var C=y;C!==n.tail&&(S<D||"string"==typeof C.value);C=C.next)x++,S+=C.value.length;x--,b=t.slice(m,S),w.index-=m}else if(!(w=_(v,0,b,p)))continue;E=w.index;var A=w[0],O=b.slice(0,E),k=b.slice(E+A.length),b=m+b.length,B=(a&&b>a.reach&&(a.reach=b),y.prev);O&&(B=P(n,B,O),m+=O.length),j(n,B,x),y=P(n,B,new T(u,d?F.tokenize(A,d):A,g,A)),k&&P(n,y,k),1<x&&(O={cause:u+","+l,reach:b},e(t,n,r,y.prev,m,O),a)&&O.reach>a.reach&&(a.reach=O.reach)}}}}}(e,o,t,o.head,0),o),a=[],u=i.head.next;u!==i.tail;)a.push(u.value),u=u.next;return a},hooks:{all:{},add:function(e,t){var n=F.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=F.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:T},s.Prism=F,T.stringify=function t(e,n){if("string"==typeof e)return e;var r;if(Array.isArray(e))return r="",e.forEach(function(e){r+=t(e,n)}),r;var o,i={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},e=e.alias,a=(e&&(Array.isArray(e)?Array.prototype.push.apply(i.classes,e):i.classes.push(e)),F.hooks.run("wrap",i),"");for(o in i.attributes)a+=" "+o+'="'+(i.attributes[o]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+a+">"+i.content+"</"+i.tag+">"},s.document?((o=F.util.currentScript())&&(F.filename=o.src,o.hasAttribute("data-manual"))&&(F.manual=!0),F.manual||("loading"===(i=document.readyState)||"interactive"===i&&o&&o.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16))):s.addEventListener&&!F.disableWorkerMessageHandler&&s.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,n=e.code,e=e.immediateClose;s.postMessage(F.highlight(n,F.languages[t],t)),e&&s.close()},!1);var s,l,t,F,a,u,c,r,n,o,i,f=F;function T(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function _(e,t,n,r){e.lastIndex=t;t=e.exec(n);return t&&r&&t[1]&&(e=t[1].length,t.index+=e,t[0]=t[0].slice(e)),t}function d(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function P(e,t,n){var r=t.next,n={value:n,prev:t,next:r};return t.next=n,r.prev=n,e.length++,n}function j(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;(t.next=r).prev=t,e.length-=o}function p(){F.manual||F.highlightAll()}function h(e,t){var n=(n=e.className).replace(r," ")+" language-"+t;e.className=n.replace(/\s+/g," ").trim()}e.exports&&(e.exports=f),void 0!==Hee&&(Hee.Prism=f),f.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},f.languages.markup.tag.inside["attr-value"].inside.entity=f.languages.markup.entity,f.languages.markup.doctype.inside["internal-subset"].inside=f.languages.markup,f.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(f.languages.markup.tag,"addInlined",{value:function(e,t){var n={},n=(n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:f.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),t=(n["language-"+t]={pattern:/[\s\S]+/,inside:f.languages[t]},{});t[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},f.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(f.languages.markup.tag,"addAttribute",{value:function(e,t){f.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:f.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),f.languages.html=f.languages.markup,f.languages.mathml=f.languages.markup,f.languages.svg=f.languages.markup,f.languages.xml=f.languages.extend("markup",{}),f.languages.ssml=f.languages.xml,f.languages.atom=f.languages.xml,f.languages.rss=f.languages.xml,i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,(o=f).languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css,(i=o.languages.markup)&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css")),f.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},f.languages.javascript=f.languages.extend("clike",{"class-name":[f.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),f.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,f.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:f.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:f.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:f.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:f.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:f.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),f.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:f.languages.javascript}},string:/[\s\S]+/}}}),f.languages.markup&&(f.languages.markup.tag.addInlined("script","javascript"),f.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),f.languages.js=f.languages.javascript,void 0!==f&&"undefined"!=typeof document&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',r=/\blang(?:uage)?-([\w-]+)\b/i,f.hooks.add("before-highlightall",function(e){e.selector+=", "+c}),f.hooks.add("before-sanity-check",function(e){var t,n,r,o,i=e.element;i.matches(c)&&(e.code="",i.setAttribute(u,"loading"),(t=i.appendChild(document.createElement("CODE"))).textContent="Loading…",n=i.getAttribute("data-src"),"none"===(e=e.language)&&(r=(/\.(\w+)$/.exec(n)||[,"none"])[1],e=a[r]||r),h(t,e),h(i,e),(r=f.plugins.autoloader)&&r.loadLanguages(e),(o=new XMLHttpRequest).open("GET",n,!0),o.onreadystatechange=function(){4==o.readyState&&(o.status<400&&o.responseText?(i.setAttribute(u,"loaded"),t.textContent=o.responseText,f.highlightElement(t)):(i.setAttribute(u,"failed"),400<=o.status?t.textContent="✖ Error "+o.status+" while fetching file: "+o.statusText:t.textContent="✖ Error: File does not exist or is empty"))},o.send(null))}),n=!(f.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(c),r=0;t=n[r++];)f.highlightElement(t)}}),f.fileHighlight=function(){n||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),n=!0),f.plugins.fileHighlight.highlight.apply(this,arguments)})})),$re=(fre=Prism,S=fre.util.clone(fre.languages.javascript),dre=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,pre=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,hre=Qre(hre=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source).source,fre.languages.jsx=fre.languages.extend("markup",S),fre.languages.jsx.tag.pattern=Qre(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),fre.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,fre.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,fre.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,fre.languages.jsx.tag.inside.comment=S.comment,fre.languages.insertBefore("inside","attr-name",{spread:{pattern:Qre(/<SPREAD>/.source),inside:fre.languages.jsx}},fre.languages.jsx.tag),fre.languages.insertBefore("inside","special-attr",{script:{pattern:Qre(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:fre.languages.jsx},alias:"language-javascript"}},fre.languages.jsx.tag),gre=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(gre).join(""):""},fre.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||eoe(e.tokens)}),(s=Prism).languages.typescript=s.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),s.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete s.languages.typescript.parameter,delete(g=s.languages.extend("typescript",{}))["class-name"],s.languages.typescript["class-name"].inside=g,s.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:g}}}}),s.languages.ts=s.languages.typescript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={},n=(n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),t=(n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]},{});t[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],lre=Prism,c=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,u=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],l=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,cre=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Vre=/[{}\[\](),:;]/,lre.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:c,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:l,operator:cre,punctuation:Vre},E=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:E={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:lre.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:E}}],lre.languages.insertBefore("php","variable",{string:E,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:c,string:E,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,number:l,operator:cre,punctuation:Vre}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),lre.hooks.add("before-tokenize",function(e){/<\?/.test(e.code)&&lre.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),lre.hooks.add("after-tokenize",function(e){lre.languages["markup-templating"].tokenizePlaceholders(e,"php")}),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,qJ=Prism,sre=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,p=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,d={pattern:RegExp(p+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},qJ.languages.java=qJ.languages.extend("clike",{"class-name":[d,{pattern:RegExp(p+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:d.inside}],keyword:sre,function:[qJ.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),qJ.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),qJ.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":d,keyword:sre,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return sre.source})),lookbehind:!0,inside:{punctuation:/\./}}}),f=Prism,are=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,ure=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return are.source}),f.languages.cpp=f.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return are.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:are,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),f.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return ure})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),f.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:f.languages.cpp}}}}),f.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),f.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:f.languages.extend("cpp",{})}}),f.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},f.languages.cpp["base-clause"]),ore=Prism,hQ="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield",e=Zre(D="class enum interface record struct"),r=RegExp(Zre(hQ+" "+D+" "+i+" "+a)),i=Zre(D+" "+i+" "+a),hQ=Zre(hQ+" "+D+" "+a),D=Xre(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),a=Xre(/\((?:[^()]|<<self>>)*\)/.source,2),n=Kre(/<<0>>(?:\s*<<1>>)?/.source,[t=/@?\b[A-Za-z_]\w*\b/.source,D]),i=Kre(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[i,n]),g=Kre(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[i,S=/\[\s*(?:,\s*)*\]/.source]),s=Kre(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[D,a,S]),s=Kre(/\(<<0>>+(?:,<<0>>+)+\)/.source,[s]),s=Kre(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[s,i,S]),S={keyword:r,punctuation:/[<>()?,.:[\]]/},c=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,ore.languages.csharp=ore.languages.extend("clike",{string:[{pattern:Yre(/(^|[^$\\])<<0>>/.source,[/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source]),lookbehind:!0,greedy:!0},{pattern:Yre(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0},{pattern:RegExp(c),greedy:!0,alias:"character"}],"class-name":[{pattern:Yre(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[i]),lookbehind:!0,inside:S},{pattern:Yre(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[t,s]),lookbehind:!0,inside:S},{pattern:Yre(/(\busing\s+)<<0>>(?=\s*=)/.source,[t]),lookbehind:!0},{pattern:Yre(/(\b<<0>>\s+)<<1>>/.source,[e,n]),lookbehind:!0,inside:S},{pattern:Yre(/(\bcatch\s*\(\s*)<<0>>/.source,[i]),lookbehind:!0,inside:S},{pattern:Yre(/(\bwhere\s+)<<0>>/.source,[t]),lookbehind:!0},{pattern:Yre(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[g]),lookbehind:!0,inside:S},{pattern:Yre(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[s,hQ,t]),inside:S}],keyword:r,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),ore.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),ore.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Yre(/([(,]\s*)<<0>>(?=\s*:)/.source,[t]),lookbehind:!0,alias:"punctuation"}}),ore.languages.insertBefore("csharp","class-name",{namespace:{pattern:Yre(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[t]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Yre(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[a]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:Yre(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[s,i]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:Yre(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[s]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:Yre(/<<0>>\s*<<1>>(?=\s*\()/.source,[t,D]),inside:{function:Yre(/^<<0>>/.source,[t]),generic:{pattern:RegExp(D),alias:"class-name",inside:S}}},"type-list":{pattern:Yre(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[e,n,t,s,r.source,a,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Yre(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[n,a]),lookbehind:!0,greedy:!0,inside:ore.languages.csharp},keyword:r,"class-name":{pattern:RegExp(s),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}}),hQ=Kre(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[g=E+"|"+c]),D=Xre(Kre(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[hQ]),2),e=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,t=Kre(/<<0>>(?:\s*\(<<1>>*\))?/.source,[i,D]),ore.languages.insertBefore("csharp","class-name",{attribute:{pattern:Yre(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[e,t]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Yre(/^<<0>>(?=\s*:)/.source,[e]),alias:"keyword"},"attribute-arguments":{pattern:Yre(/\(<<0>>*\)/.source,[D]),inside:ore.languages.csharp},"class-name":{pattern:RegExp(i),inside:{punctuation:/\./}},punctuation:/[:,]/}}}),ire=/:[^}\r\n]+/.source,n=Xre(Kre(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[hQ]),2),a=Kre(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[n,ire]),r=Xre(Kre(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[g]),2),s=Kre(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[r,ire]),ore.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Yre(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[a]),lookbehind:!0,greedy:!0,inside:Jre(a,n)},{pattern:Yre(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[s]),lookbehind:!0,greedy:!0,inside:Jre(s,r)}]}),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(u=Prism).languages.ruby=u.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/}),l={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:u.languages.ruby}},delete u.languages.ruby.function,u.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:l}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:l}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:u.languages.ruby}}}),u.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),u.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:l}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:l}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:l}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],u.languages.rb=u.languages.ruby,Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),Prism),Vre="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",p={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},qJ={bash:p,environment:{pattern:RegExp("\\$"+Vre),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Vre),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};$re.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Vre),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:qJ},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:p}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:qJ},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:qJ.entity}}],environment:{pattern:RegExp("\\$?"+Vre),alias:"constant"},variable:qJ.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},p.inside=$re.languages.bash;for(var Ure=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Wre=qJ.variable[1].inside,Gre=0;Gre<Ure.length;Gre++)Wre[Ure[Gre]]=$re.languages.bash[Ure[Gre]];function qre(e){return e=e.replace(/<inner>/g,function(){return Qne}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}function Kre(e,n){return e.replace(/<<(\d+)>>/g,function(e,t){return"(?:"+n[+t]+")"})}function Yre(e,t,n){return RegExp(Kre(e,t),n||"")}function Xre(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}function Zre(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}function Jre(e,t){return{interpolation:{pattern:Yre(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:Yre(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[t,ire]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:ore.languages.csharp}}},string:/[\s\S]+/}}function Qre(e,t){return e=e.replace(/<S>/g,function(){return dre}).replace(/<BRACES>/g,function(){return pre}).replace(/<SPREAD>/g,function(){return hre}),RegExp(e,t)}function eoe(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=!1;"string"!=typeof r&&("tag"===r.type&&r.content[0]&&"tag"===r.content[0].type?"</"===r.content[0].content[0].content?0<t.length&&t[t.length-1].tagName===gre(r.content[0].content[1])&&t.pop():"/>"!==r.content[r.content.length-1].content&&t.push({tagName:gre(r.content[0].content[1]),openedBraces:0}):0<t.length&&"punctuation"===r.type&&"{"===r.content?t[t.length-1].openedBraces++:0<t.length&&0<t[t.length-1].openedBraces&&"punctuation"===r.type&&"}"===r.content?t[t.length-1].openedBraces--:o=!0),(o||"string"==typeof r)&&0<t.length&&0===t[t.length-1].openedBraces&&(o=gre(r),n<e.length-1&&("string"==typeof e[n+1]||"plain-text"===e[n+1].type)&&(o+=gre(e[n+1]),e.splice(n+1,1)),0<n&&("string"==typeof e[n-1]||"plain-text"===e[n-1].type)&&(o=gre(e[n-1])+o,e.splice(n-1,1),n--),e[n]=new fre.Token("plain-text",o,null,o)),r.content&&"string"!=typeof r.content&&eoe(r.content)}}$re.languages.shell=$re.languages.bash,Jne=Prism,Qne=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source,ere=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,d=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return ere}),f=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,Jne.languages.markdown=Jne.languages.extend("markup",{}),Jne.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Jne.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+d+f+"(?:"+d+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+d+f+")(?:"+d+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(ere),inside:Jne.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+d+")"+f+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+d+"$"),inside:{"table-header":{pattern:RegExp(ere),alias:"important",inside:Jne.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:qre(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:qre(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:qre(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:qre(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(e){t!==e&&(Jne.languages.markdown[t].inside.content.inside[e]=Jne.languages.markdown[e])})}),Jne.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i,a=t[n];"code"===a.type?(i=a.content[1],o=a.content[3],i&&o&&"code-language"===i.type&&"code-block"===o.type&&"string"==typeof i.content&&(i=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),i="language-"+(i=(/[a-z][\w-]*/i.exec(i)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,i]:o.alias.push(i):o.alias=[i])):e(a.content)}}(e.tokens)}),Jne.hooks.add("wrap",function(e){if("code-block"===e.type){for(var t="",n=0,r=e.classes.length;n<r;n++){var o=e.classes[n],o=/language-(.+)/.exec(o);if(o){t=o[1];break}}var i,a=Jne.languages[t];a?e.content=Jne.highlight(e.content.replace(tre,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),rre(n)):nre[t]||e}),a,t):t&&"none"!==t&&Jne.plugins.autoloader&&(i="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),e.attributes.id=i,Jne.plugins.autoloader.loadLanguages(t,function(){var e=document.getElementById(i);e&&(e.innerHTML=Jne.highlight(e.textContent,Jne.languages[t],t))}))}}),tre=RegExp(Jne.languages.markup.tag.pattern.source,"gi"),nre={amp:"&",lt:"<",gt:">",quot:'"'},rre=String.fromCodePoint||String.fromCharCode,Jne.languages.md=Jne.languages.markdown,Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){var t,n;"groovy"===e.language&&"string"===e.type&&"'"!=(t=e.content[0])&&(n="$"===t?/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/:/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/,e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring"))});var toe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function noe(e){if("Symbol"===gne(e))throw TypeError("Cannot convert a Symbol value to a string");return uoe(e)}function roe(){var e=Bte(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function ooe(){}function ioe(e){e.write(doe("")),e.close();var t=e.parentWindow.Object;return e=null,t}var aoe,uoe=tte.String,soe=tte.RegExp,S=Yee(function(){var e=soe("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),E=S||Yee(function(){return!soe("a","y").sticky}),c={BROKEN_CARET:S||Yee(function(){var e=soe("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:E,UNSUPPORTED_Y:S},loe=Ete?Object.defineProperties:function(e,t){Bte(e);for(var n,r=Gne(t),o=Lre(t),i=o.length,a=0;a<i;)Ute.f(e,n=o[a++],r[n]);return e},coe=Kee("document","documentElement"),foe=qte("IE_PROTO"),doe=function(e){return"<script>"+e+"<\/script>"},poe=function(){try{aoe=new ActiveXObject("htmlfile")}catch(e){}var e,t;poe="undefined"==typeof document||document.domain&&aoe?ioe(aoe):((t=Zee("iframe")).style.display="none",coe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(doe("document.F=Object")),e.close(),e.F);for(var n=Sre.length;n--;)delete poe.prototype[Sre[n]];return poe()};ine[foe]=!0;function hoe(o){return function(e,t){var n,e=noe(Wee(e)),t=Tne(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=Koe(e,t))<55296||56319<n||t+1===r||(r=Koe(e,t+1))<56320||57343<r?o?qoe(e,t):n:o?Yoe(e,t,t+2):r-56320+(n-55296<<10)+65536}}function goe(e,t,n){for(var r,o,i,a=vne(e),u=qne(t,a),s=qne(void 0===n?a:n,a),l=Zoe(Joe(s-u,0)),c=0;u<s;u++,c++)r=l,i=c,o=e[u],(i=Qee(i))in r?Ute.f(r,i,ete(0,o)):r[i]=o;return l.length=c,l}function voe(e,t){var n=e.exec;if(hte(n))return null!==(n=Tte(n,e,t))&&Bte(n),n;if("RegExp"===Kte(e))return Tte(Roe,e,t);throw Qoe("RegExp#exec called on incompatible receiver")}var yoe,moe,boe,woe,xoe,Eoe,Doe,Soe=Object.create||function(e,t){var n;return null!==e?(ooe.prototype=Bte(e),n=new ooe,ooe.prototype=null,n[foe]=e):n=poe(),void 0===t?n:loe(n,t)},Coe=tte.RegExp,t=Yee(function(){var e=Coe(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),Aoe=tte.RegExp,e=Yee(function(){var e=Aoe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Ooe=une.get,koe=LJ("native-string-replace",String.prototype.replace),Boe=RegExp.prototype.exec,Foe=Boe,Toe=ate("".charAt),_oe=ate("".indexOf),Poe=ate("".replace),joe=ate("".slice),Noe=(D=/b*/g,Tte(Boe,i=/a/,"a"),Tte(Boe,D,"a"),0!==i.lastIndex||0!==D.lastIndex),Ioe=c.BROKEN_CARET,Loe=void 0!==/()??/.exec("")[1],Roe=Foe=Noe||Loe||Ioe||t||e?function(e){var t,n,r,o,i,a,u=this,s=Ooe(u),e=noe(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=Tte(Foe,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=Ioe&&u.sticky,f=Tte(roe,u),s=u.source,d=0,p=e;if(l&&(f=Poe(f,"y",""),-1===_oe(f,"g")&&(f+="g"),p=joe(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==Toe(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),Loe&&(t=new RegExp("^"+s+"$(?!\\s)",f)),Noe&&(n=u.lastIndex),r=Tte(Boe,l?t:u,p),l?r?(r.input=joe(r.input,d),r[0]=joe(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:Noe&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),Loe&&r&&1<r.length&&Tte(koe,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=Soe(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:Foe,g=(Zne({target:"RegExp",proto:!0,forced:/./.exec!==Roe},{exec:Roe}),Function.prototype),Moe=g.apply,a=g.bind,zoe=g.call,Hoe="object"==typeof Reflect&&Reflect.apply||(a?zoe.bind(Moe):function(){return zoe.apply(Moe,arguments)}),$oe=Xee("species"),Voe=RegExp.prototype,Uoe=Xee("match"),Woe=tte.TypeError,Goe=Xee("species"),qoe=ate("".charAt),Koe=ate("".charCodeAt),Yoe=ate("".slice),Xoe=(hoe(!1),hoe(!0)),Zoe=tte.Array,Joe=Math.max,Qoe=tte.TypeError,eie=c.UNSUPPORTED_Y,tie=Math.min,nie=[].push,rie=ate(/./.exec),oie=ate(nie),iie=ate("".slice),l=(yoe="split",n=!!Yee(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),s=eie,Eoe=Xee(yoe),Doe=!Yee(function(){var e={};return e[Eoe]=function(){return 7},7!=""[yoe](e)}),r=Doe&&!Yee(function(){var e=!1,t=/a/;return(t={constructor:{}}).constructor[$oe]=function(){return t},t.flags="",t[Eoe]=/./[Eoe],t.exec=function(){return e=!0,null},t[Eoe](""),!e}),Doe&&r&&!n||(moe=ate(/./[Eoe]),boe=Eoe,woe=""[yoe],xoe="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=noe(Wee(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!Dte(t=e)||!(void 0!==(s=t[Uoe])?s:"RegExp"==Kte(t)))return Tte(woe,n,e,r);for(var o,i,a,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,s+"g");(o=Tte(Roe,c,n))&&!((i=c.lastIndex)>l&&(oie(u,iie(n,l,o.index)),1<o.length&&o.index<n.length&&Hoe(nie,u,goe(o,1)),a=o[0].length,l=i,r<=u.length));)c.lastIndex===o.index&&c.lastIndex++;return l===n.length?!a&&rie(c,"")||oie(u,""):oie(u,iie(n,l)),r<u.length?goe(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Tte(woe,this,e,t)}:woe,r=[function(e,t){var n=Wee(this),r=null==e?void 0:Jee(e,boe);return r?Tte(r,e,n,t):Tte(xoe,noe(n),e,t)},function(e,t){var n,r,o=Bte(this),i=noe(e),a=(e=o,n=i,r=t,u=xoe!==woe,l=ate(xoe),(a=e.exec)===Roe||a===Voe.exec?Doe&&!u?{done:!0,value:moe(e,n,r)}:{done:!0,value:l(n,e,r)}:{done:!1});if(a.done)return a.value;var u=function(e){var t,n=Bte(o).constructor;if(void 0===n||null==(t=Bte(n)[Goe]))return e;n=t;if(zne(n))return n;throw Woe(Ite(n)+" is not a constructor")}(RegExp),s=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(eie?"g":"y"),c=new u(eie?"^(?:"+o.source+")":o,l),f=void 0===t?4294967295:t>>>0;if(0==f)return[];if(0===i.length)return null===voe(c,i)?[i]:[];for(var d,p,h=0,g=0,v=[];g<i.length;){c.lastIndex=eie?0:g;var y,m=voe(c,eie?iie(i,g):i);if(null===m||(y=tie(Pne(c.lastIndex+(eie?g:0)),i.length))===h)d=i,g=(p=g)+(s?Xoe(d,p).length:1);else{if(oie(v,iie(i,h,g)),v.length===f)return v;for(var b=1;b<=m.length-1;b++)if(oie(v,m[b]),v.length===f)return v;g=h=y}}return oie(v,iie(i,h)),v}],lne(String.prototype,yoe,r[0]),lne(Voe,Eoe,r[1])),s&&Wte(Voe[Eoe],"sham",!0),Zne({global:!0},{globalThis:tte}),N.fn.attr=Mf,sne.PROPER),aie=RegExp.prototype,uie=aie.toString,sie=ate(roe),u=Yee(function(){return"/a/b"!=uie.call({source:"a",flags:"b"})}),Vre=l&&"toString"!=uie.name,lie=((u||Vre)&&lne(RegExp.prototype,"toString",function(){var e=Bte(this),t=noe(e.source),n=e.flags;return"/"+t+"/"+noe(void 0!==n||!_te(aie,e)||"flags"in aie?n:sie(e))},{unsafe:!0}),die.prototype.getOptions=function(e){var n=[],t=e.getMenuConfig("codeSelectLang").codeLangs,t=void 0===t?[]:t,r=(n.push({text:"plain text",value:""}),t.forEach(function(e){var t=e.text,e=e.value;n.push({text:t,value:e})}),this.getValue(e));return n.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),n},die.prototype.isActive=function(e){return!1},die.prototype.getValue=function(e){var t,n=this.getSelectCodeElem(e);return null!=n&&_.isElement(n)&&(t=n.language.toString(),(void 0===(n=e.getMenuConfig("codeSelectLang").codeLangs)?[]:n).some(function(e){return e.value===t}))?t:""},die.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},die.prototype.exec=function(e,t){null!=this.getSelectCodeElem(e)&&(t={language:t.toString()},j.setNodes(e,t,{match:function(e){return I.checkNodeType(e,"code")}}))},die.prototype.getSelectCodeElem=function(e){var t=I.getSelectedNodeByType(e,"code");return null==t||(e=I.getParentNode(e,t),!_.isElement(e))||"pre"!==e.type?null:t},die),p={renderStyle:function(e,t){var n=e,e=t,r="";{var o;toe.forEach(function(e){n[e]&&(r=e)}),r&&(o=r="token "+r,null==(t=e).data&&(t.data={}),null==(t=t.data).props&&(t.props={}),Object.assign(t.props,{className:o}))}return e},parseStyleHtml:function(e,t,n){var r,e=N(e);return!_.isElement(t)||"code"!==I.getNodeType(t)?t:(r=t,0===(e=e.attr("class")||"").indexOf("language-")?r.language=e.split("-")[1]||"":r.language=e.toLowerCase(),r)},menus:[{key:"codeSelectLang",factory:function(){return new lie},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){e=e.language,e=void 0===e?"":e;return"<code "+(e?'class="language-'+e+'"':"")+">"+t+"</code>"}}]},cie=/"/g,fie=ate("".replace);function die(){this.title=w("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}Zne({target:"String",proto:!0,forced:Yee(function(){var e="".anchor('"');return e!==e.toLowerCase()||3<e.split('"').length})},{anchor:function(e){return e=e,t=noe(Wee(this)),n="<a",(n+=' name="'+fie(noe(e),cie,"&quot;")+'"')+">"+t+"</a>";var t,n}});function pie(a){var e,t,n,r=(u=function(e){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var n,r,o=t.call(a),i=[];try{for(;(void 0===e||0<e--)&&!(n=o.next()).done;)i.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return i}(2))[0],o=u[1],i=[],u=function(e){if(H.isText(e)){e=I.getParentNode(null,e);if(e&&"code"===I.getNodeType(e)){var t=I.getParentNode(null,e);if(t&&"pre"===I.getNodeType(t))return e}}return null}(r);if(null!=u){u=u.language,u=void 0===u?"":u;if(u){var r=u&&(u=Hre.languages[u])?Hre.tokenize(r.text,u):[],s=0;try{for(var l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),c=l.next();!c.done;c=l.next()){var f=c.value,d=s+function n(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+n(t)},0)}(f);"string"!=typeof f&&i.push(((n={})[f.type]=!0,n.anchor={path:o,offset:s},n.focus={path:o,offset:d},n)),s=d}}catch(a){e={error:a}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}}}return i}var hie=function(){return(hie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},gie=(vie.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=hie(hie({},this.editorConfig),e)},vie.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=hie(hie({},this.simpleEditorConfig),e)},vie.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=hie(hie({},this.toolbarConfig),e)},vie.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=hie(hie({},this.simpleToolbarConfig),e)},vie.registerPlugin=function(e){this.plugins.push(e)},vie.registerMenu=function(e,t){var n=e.key,r=e.factory,e=e.config,e=bb(bb({},e),t||{});if(null!=lw[n])throw new Error("Duplicated key '"+n+"' in menu items");lw[n]=r,null!=e&&(sw[n]=e)},vie.registerRenderElem=function(e){var t;t=e.type,e=e.renderElem,oE[t||""]=e},vie.registerRenderStyle=function(e){rE.push(e)},vie.registerElemToHtml=function(e){var t;t=e.type,e=e.elemToHtml,mw[t||""]=e},vie.registerStyleToHtml=function(e){yw.push(e)},vie.registerPreParseHtml=function(e){L4.push(e)},vie.registerParseElemHtml=function(e){var t;t=e.selector,e=e.parseElemHtml,M4[t]=e},vie.registerParseStyleHtml=function(e){R4.push(e)},vie.registerModule=function(e){yie(e)},vie.editorConfig={},vie.simpleEditorConfig={},vie.toolbarConfig={},vie.simpleToolbarConfig={},vie.plugins=[],vie);function vie(){throw new Error("不能实例化\nCan not construct a instance")}function yie(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,e=e.editorPlugin;t&&t.forEach(function(e){return gie.registerMenu(e)}),n&&n.forEach(function(e){return gie.registerRenderElem(e)}),r&&gie.registerRenderStyle(r),o&&o.forEach(function(e){return gie.registerElemToHtml(e)}),i&&gie.registerStyleToHtml(i),a&&a.forEach(function(e){return gie.registerPreParseHtml(e)}),u&&u.forEach(function(e){return gie.registerParseElemHtml(e)}),s&&gie.registerParseStyleHtml(s),e&&gie.registerPlugin(e)}jD.forEach(yie),yie(h),yie(o1),yie(pU),yie(v),yie(p);qJ='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',f={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},d={hoverbarKeys:hie(hie({},f),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})},gie.setEditorConfig(hie(hie({},d),{decorate:pie})),E={hoverbarKeys:f},gie.setSimpleEditorConfig(hie(hie({},E),{decorate:pie})),S={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:w("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:w("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:w("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:w("editor.image"),iconSvg:qJ,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:w("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]},gie.setToolbarConfig(S),LJ={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:w("editor.image"),iconSvg:qJ,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function mie(e){var t=(e=void 0===e?{}:e).selector,t=void 0===t?"":t,n=e.content,n=void 0===n?[]:n,r=e.html,o=e.config,o=void 0===o?{}:o,e=e.mode,e="simple"===(void 0===e?"default":e)?gie.simpleEditorConfig:gie.editorConfig,i=hie(hie({},e.hoverbarKeys||{}),o.hoverbarKeys||{});return p3({selector:t,config:hie(hie(hie({},e),o),{hoverbarKeys:i}),content:n,html:r,plugins:gie.plugins})}function bie(e){var t=e.selector,n=e.editor,r=e.config,r=void 0===r?{}:r,e=e.mode,e=void 0===e?"default":e;if(t){e="simple"===e?gie.simpleToolbarConfig:gie.toolbarConfig,t={selector:t,config:hie(hie({},e),r)};if(null==n)throw new Error("Cannot create toolbar, because editor is null");e=t.selector,t=void 0===(t=t.config)?{}:t;if(px(n,"data-w-e-toolbar",e))throw new Error("Repeated create toolbar by selector '"+e+"'");return t=bb({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},t||{}),e=new y3(e,t),m2.set(e,n),b2.set(n,e),e}throw new Error("Cannot find 'selector' when create toolbar")}gie.setSimpleToolbarConfig(LJ)}.call(this,Eie(30))},753:function(e,t,n){var r=n(754);"string"==typeof r&&(r=[[e.i,r,""]]);n(88)(r,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},754:function(e,t,n){(t=n(87)(!1)).push([e.i,':root,\n:host {\n --w-e-textarea-bg-color: #fff;\n --w-e-textarea-color: #333;\n --w-e-textarea-border-color: #ccc;\n --w-e-textarea-slight-border-color: #e8e8e8;\n --w-e-textarea-slight-color: #d4d4d4;\n --w-e-textarea-slight-bg-color: #f5f2f0;\n --w-e-textarea-selected-border-color: #B4D5FF;\n --w-e-textarea-handler-bg-color: #4290f7;\n --w-e-toolbar-color: #595959;\n --w-e-toolbar-bg-color: #fff;\n --w-e-toolbar-active-color: #333;\n --w-e-toolbar-active-bg-color: #f1f1f1;\n --w-e-toolbar-disabled-color: #999;\n --w-e-toolbar-border-color: #e8e8e8;\n --w-e-modal-button-bg-color: #fafafa;\n --w-e-modal-button-border-color: #d9d9d9;\n}\n.w-e-text-container *,\n.w-e-toolbar * {\n box-sizing: border-box;\n margin: 0;\n outline: none;\n padding: 0;\n}\n.w-e-text-container blockquote,\n.w-e-text-container li,\n.w-e-text-container p,\n.w-e-text-container td,\n.w-e-text-container th,\n.w-e-toolbar * {\n line-height: 1.5;\n}\n.w-e-text-container {\n background-color: var(--w-e-textarea-bg-color);\n color: var(--w-e-textarea-color);\n height: 100%;\n position: relative;\n}\n.w-e-text-container .w-e-scroll {\n -webkit-overflow-scrolling: touch;\n height: 100%;\n}\n.w-e-text-container [data-slate-editor] {\n word-wrap: break-word;\n border-top: 1px solid transparent;\n min-height: 100%;\n outline: 0;\n padding: 0 10px;\n white-space: pre-wrap;\n}\n.w-e-text-container [data-slate-editor] p {\n margin: 15px 0;\n}\n.w-e-text-container [data-slate-editor] h1,\n.w-e-text-container [data-slate-editor] h2,\n.w-e-text-container [data-slate-editor] h3,\n.w-e-text-container [data-slate-editor] h4,\n.w-e-text-container [data-slate-editor] h5 {\n margin: 20px 0;\n}\n.w-e-text-container [data-slate-editor] img {\n cursor: default;\n display: inline!important;\n max-width: 100%;\n min-height: 20px;\n min-width: 20px;\n}\n.w-e-text-container [data-slate-editor] span {\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] [data-selected=true] {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-placeholder {\n font-style: italic;\n left: 10px;\n top: 17px;\n width: 90%;\n}\n.w-e-max-length-info,\n.w-e-text-placeholder {\n color: var(--w-e-textarea-slight-color);\n pointer-events: none;\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.w-e-max-length-info {\n bottom: 0.5em;\n right: 1em;\n}\n.w-e-bar {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n padding: 0 5px;\n}\n.w-e-bar svg {\n fill: var(--w-e-toolbar-color);\n height: 14px;\n width: 14px;\n}\n.w-e-bar-show {\n display: flex;\n}\n.w-e-bar-hidden {\n display: none;\n}\n.w-e-hover-bar {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 5px #0000001f;\n position: absolute;\n}\n.w-e-toolbar {\n flex-wrap: wrap;\n position: relative;\n}\n.w-e-bar-divider {\n background-color: var(--w-e-toolbar-border-color);\n display: inline-flex;\n height: 40px;\n margin: 0 5px;\n width: 1px;\n}\n.w-e-bar-item {\n display: flex;\n height: 40px;\n padding: 4px;\n position: relative;\n text-align: center;\n}\n.w-e-bar-item,\n.w-e-bar-item button {\n align-items: center;\n justify-content: center;\n}\n.w-e-bar-item button {\n background: transparent;\n border: none;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n display: inline-flex;\n height: 32px;\n overflow: hidden;\n padding: 0 8px;\n white-space: nowrap;\n}\n.w-e-bar-item button:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item button .title {\n margin-left: 5px;\n}\n.w-e-bar-item .active {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item .disabled {\n color: var(--w-e-toolbar-disabled-color);\n cursor: not-allowed;\n}\n.w-e-bar-item .disabled svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-menu-tooltip-v5:before {\n background-color: var(--w-e-toolbar-active-color);\n border-radius: 5px;\n color: var(--w-e-toolbar-bg-color);\n content: attr(data-tooltip);\n font-size: 0.75em;\n opacity: 0;\n padding: 5px 10px;\n position: absolute;\n text-align: center;\n top: 40px;\n transition: opacity 0.6s;\n visibility: hidden;\n white-space: pre;\n z-index: 1;\n}\n.w-e-menu-tooltip-v5:after {\n border: 5px solid transparent;\n border-bottom: 5px solid var(--w-e-toolbar-active-color);\n content: "";\n opacity: 0;\n position: absolute;\n top: 30px;\n transition: opacity 0.6s;\n visibility: hidden;\n}\n.w-e-menu-tooltip-v5:hover:after,\n.w-e-menu-tooltip-v5:hover:before {\n opacity: 1;\n visibility: visible;\n}\n.w-e-menu-tooltip-v5.tooltip-right:before {\n left: 100%;\n top: 10px;\n}\n.w-e-menu-tooltip-v5.tooltip-right:after {\n border-bottom-color: transparent;\n border-left-color: transparent;\n border-right-color: var(--w-e-toolbar-active-color);\n border-top-color: transparent;\n left: 100%;\n margin-left: -10px;\n top: 16px;\n}\n.w-e-bar-item-group .w-e-bar-item-menus-container {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n display: none;\n left: 0;\n margin-top: 40px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-item-group:hover .w-e-bar-item-menus-container {\n display: block;\n}\n.w-e-select-list {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n left: 0;\n margin-top: 40px;\n max-height: 350px;\n min-width: 100px;\n overflow-y: auto;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-select-list ul {\n line-height: 1;\n list-style: none;\n}\n.w-e-select-list ul .selected {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li {\n cursor: pointer;\n padding: 7px 0 7px 25px;\n position: relative;\n text-align: left;\n white-space: nowrap;\n}\n.w-e-select-list ul li:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li svg {\n left: 0;\n margin-left: 5px;\n margin-top: -7px;\n position: absolute;\n top: 50%;\n}\n.w-e-bar-bottom .w-e-select-list {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-drop-panel {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n margin-top: 40px;\n min-width: 200px;\n padding: 10px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-bottom .w-e-drop-panel {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-modal {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n min-height: 40px;\n min-width: 100px;\n padding: 20px 15px 0;\n position: absolute;\n text-align: left;\n z-index: 1;\n}\n.w-e-modal .btn-close {\n cursor: pointer;\n line-height: 1;\n padding: 5px;\n position: absolute;\n right: 8px;\n top: 7px;\n}\n.w-e-modal .btn-close svg {\n fill: var(--w-e-toolbar-color);\n height: 10px;\n width: 10px;\n}\n.w-e-modal .babel-container {\n display: block;\n margin-bottom: 15px;\n}\n.w-e-modal .babel-container span {\n display: block;\n margin-bottom: 10px;\n}\n.w-e-modal .button-container {\n margin-bottom: 15px;\n}\n.w-e-modal button {\n background-color: var(--w-e-modal-button-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n font-weight: 400;\n height: 32px;\n padding: 4.5px 15px;\n text-align: center;\n touch-action: manipulation;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n white-space: nowrap;\n}\n.w-e-modal input[type=number],\n.w-e-modal input[type=text],\n.w-e-modal textarea {\n font-feature-settings: "tnum";\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n font-variant: tabular-nums;\n padding: 4.5px 11px;\n transition: all 0.3s;\n width: 100%;\n}\n.w-e-modal textarea {\n min-height: 60px;\n}\nbody .w-e-modal,\nbody .w-e-modal * {\n box-sizing: border-box;\n}\n.w-e-progress-bar {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 1px;\n position: absolute;\n transition: width 0.3s;\n width: 0;\n}\n.w-e-full-screen-container {\n bottom: 0!important;\n display: flex!important;\n flex-direction: column!important;\n height: 100%!important;\n left: 0!important;\n margin: 0!important;\n padding: 0!important;\n position: fixed;\n right: 0!important;\n top: 0!important;\n width: 100% !important;\n}\n.w-e-full-screen-container [data-w-e-textarea=true] {\n flex: 1 !important;\n}\n.w-e-text-container [data-slate-editor] code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-radius: 3px;\n font-family: monospace;\n padding: 3px;\n}\n.w-e-panel-content-color {\n list-style: none;\n text-align: left;\n width: 230px;\n}\n.w-e-panel-content-color li {\n border: 1px solid var(--w-e-toolbar-bg-color);\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 2px;\n}\n.w-e-panel-content-color li:hover {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color li .color-block {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px 3px;\n height: 17px;\n width: 17px;\n}\n.w-e-panel-content-color .active {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color .clear {\n line-height: 1.5;\n margin-bottom: 5px;\n width: 100%;\n}\n.w-e-panel-content-color .clear svg {\n height: 16px;\n margin-bottom: -4px;\n width: 16px;\n}\n.w-e-text-container [data-slate-editor] blockquote {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-left: 8px solid var(--w-e-textarea-selected-border-color);\n display: block;\n font-size: 100%;\n line-height: 1.5;\n margin: 10px 0;\n padding: 10px;\n}\n.w-e-panel-content-emotion {\n font-size: 20px;\n list-style: none;\n text-align: left;\n width: 300px;\n}\n.w-e-panel-content-emotion li {\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 0 5px;\n}\n.w-e-panel-content-emotion li:hover {\n background-color: var(--w-e-textarea-slight-bg-color);\n}\n.w-e-textarea-divider {\n border-radius: 3px;\n margin: 20px auto;\n padding: 20px;\n}\n.w-e-textarea-divider hr {\n background-color: var(--w-e-textarea-border-color);\n border: 0;\n display: block;\n height: 1px;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border: 1px solid var(--w-e-textarea-slight-border-color);\n border-radius: 4px 4px;\n display: block;\n font-size: 14px;\n padding: 10px;\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container {\n display: inline-block;\n margin: 0 3px;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container:hover {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container {\n overflow: hidden;\n position: relative;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 7px;\n position: absolute;\n width: 7px;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top {\n cursor: nwse-resize;\n left: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top {\n cursor: nesw-resize;\n right: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom {\n bottom: 0;\n cursor: nesw-resize;\n left: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom {\n bottom: 0;\n cursor: nwse-resize;\n right: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [contenteditable=false] .w-e-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [data-slate-editor] .table-container {\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin-top: 10px;\n overflow-x: auto;\n padding: 10px;\n width: 100%;\n}\n.w-e-text-container [data-slate-editor] table {\n border-collapse: collapse;\n}\n.w-e-text-container [data-slate-editor] table td,\n.w-e-text-container [data-slate-editor] table th {\n border: 1px solid var(--w-e-textarea-border-color);\n line-height: 1.5;\n min-width: 30px;\n padding: 3px 5px;\n text-align: left;\n}\n.w-e-text-container [data-slate-editor] table th {\n background-color: var(--w-e-textarea-slight-bg-color);\n font-weight: 700;\n text-align: center;\n}\n.w-e-panel-content-table {\n background-color: var(--w-e-toolbar-bg-color);\n}\n.w-e-panel-content-table table {\n border-collapse: collapse;\n}\n.w-e-panel-content-table td {\n border: 1px solid var(--w-e-toolbar-border-color);\n cursor: pointer;\n height: 15px;\n padding: 3px 5px;\n width: 20px;\n}\n.w-e-panel-content-table td.active {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-textarea-video-container {\n background-image: linear-gradient(45deg, #eee 25%, transparent 0, transparent 75%, #eee 0, #eee), linear-gradient(45deg, #eee 25%, #fff 0, #fff 75%, #eee 0, #eee);\n background-position: 0 0,10px 10px;\n background-size: 20px 20px;\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin: 10px auto 0;\n padding: 10px 0;\n text-align: center;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n word-wrap: normal;\n font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;\n -webkit-hyphens: none;\n hyphens: none;\n line-height: 1.5;\n margin: 0.5em 0;\n overflow: auto;\n padding: 1em;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n text-align: left;\n text-shadow: 0 1px #fff;\n white-space: pre;\n word-break: normal;\n word-spacing: normal;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.cdata,\n.w-e-text-container [data-slate-editor] pre > code .token.comment,\n.w-e-text-container [data-slate-editor] pre > code .token.doctype,\n.w-e-text-container [data-slate-editor] pre > code .token.prolog {\n color: #708090;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.punctuation {\n color: #999;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.namespace {\n opacity: 0.7;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.boolean,\n.w-e-text-container [data-slate-editor] pre > code .token.constant,\n.w-e-text-container [data-slate-editor] pre > code .token.deleted,\n.w-e-text-container [data-slate-editor] pre > code .token.number,\n.w-e-text-container [data-slate-editor] pre > code .token.property,\n.w-e-text-container [data-slate-editor] pre > code .token.symbol,\n.w-e-text-container [data-slate-editor] pre > code .token.tag {\n color: #905;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.attr-name,\n.w-e-text-container [data-slate-editor] pre > code .token.builtin,\n.w-e-text-container [data-slate-editor] pre > code .token.char,\n.w-e-text-container [data-slate-editor] pre > code .token.inserted,\n.w-e-text-container [data-slate-editor] pre > code .token.selector,\n.w-e-text-container [data-slate-editor] pre > code .token.string {\n color: #690;\n}\n.w-e-text-container [data-slate-editor] pre > code .language-css .token.string,\n.w-e-text-container [data-slate-editor] pre > code .style .token.string,\n.w-e-text-container [data-slate-editor] pre > code .token.entity,\n.w-e-text-container [data-slate-editor] pre > code .token.operator,\n.w-e-text-container [data-slate-editor] pre > code .token.url {\n color: #9a6e3a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.atrule,\n.w-e-text-container [data-slate-editor] pre > code .token.attr-value,\n.w-e-text-container [data-slate-editor] pre > code .token.keyword {\n color: #07a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.class-name,\n.w-e-text-container [data-slate-editor] pre > code .token.function {\n color: #dd4a68;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.important,\n.w-e-text-container [data-slate-editor] pre > code .token.regex,\n.w-e-text-container [data-slate-editor] pre > code .token.variable {\n color: #e90;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.bold,\n.w-e-text-container [data-slate-editor] pre > code .token.important {\n font-weight: 700;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.italic {\n font-style: italic;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.entity {\n cursor: help;\n}\n',""]),e.exports=t}}]);
4
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${n} v`+e.VERSION),t.type in y(this,Oh)[Oh]?y(this,Oh)[Oh][t.type].push(t):y(this,Oh)[Oh][t.type]=[t],t.install(),this}getPlugin(t){for(const n of Object.values(y(this,Oh)[Oh])){var e=n.find(e=>e.id===t);if(null!=e)return e}}[d](e){return y(this,Oh)[Oh][e]}iteratePlugins(e){Object.values(y(this,Oh)[Oh]).flat(1).forEach(e)}removePlugin(t){this.log("Removing plugin "+t.id),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();var e=y(this,Oh)[Oh][t.type],n=e.findIndex(e=>e.id===t.id),e=(-1!==n&&e.splice(n,1),{plugins:{...this.getState().plugins,[t.id]:void 0}});this.setState(e)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),y(this,kh)[kh](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",y(this,$h)[$h]),window.removeEventListener("offline",y(this,$h)[$h]))}hideInfo(){var e=this.getState()["info"];this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);var r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){var n=this.opts["logger"];switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?y(this,Gh)[Gh](e):(y(this,Wh)[Wh](e),Promise.reject(new Error("Nonexistent upload")))}[p](){return y(this,Vh)[Vh](...arguments)}addResultData(e,t){var n;y(this,Uh)[Uh](e)?(n=this.getState().currentUploads,t={...n[e],result:{...n[e].result,...t}},this.setState({currentUploads:{...n,[e]:t}})):this.log("Not setting result for an upload that has been removed: "+e)}upload(){null!=(e=y(this,Oh)[Oh].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let o=this.getState()["files"];var e=this.opts.onBeforeUpload(o);return!1===e?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(e&&"object"==typeof e&&(o=e,this.setState({files:o})),Promise.resolve().then(()=>{y(this,jh)[jh](o),y(this,Ih)[Ih](o)}).catch(e=>{y(this,Lh)[Lh](e)}).then(()=>{const e=this.getState()["currentUploads"],n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(o).forEach(e=>{var t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});var t=y(this,Vh)[Vh](r);return y(this,Gh)[Gh](t)}).catch(e=>{y(this,Lh)[Lh](e,{showInformer:!1})}))}}function Kh(r,e){void 0===e&&(e=this.getFiles());var{maxFileSize:t,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new Ch(""+this.i18n("youCanOnlyUploadX",{smart_count:i}));if(a&&!a.some(e=>{return-1<e.indexOf("/")?!!r.type&&(n=r.type.replace(/;.*?$/,""),e?t(e.split(";")[0]):t):!("."!==e[0]||!r.extension)&&r.extension.toLowerCase()===e.substr(1).toLowerCase();function t(e){t=n,e=new lh(e,ch);var t=void 0!==t?e.match(t):e;return t&&2<=t.length}var n})){const r=a.join(", ");throw new Ch(this.i18n("youCanOnlyUploadFileTypes",{types:r}))}if(o&&null!=r.size){let t=0;if(t+=r.size,e.forEach(e=>{t+=e.size}),t>o)throw new Ch(this.i18n("exceedsSize",{size:sh(o),file:r.name}))}if(t&&null!=r.size&&r.size>t)throw new Ch(this.i18n("exceedsSize",{size:sh(t),file:r.name}));if(n&&null!=r.size&&r.size<n)throw new Ch(this.i18n("inferiorSize",{size:sh(n)}))}function Yh(e){var t=this.opts.restrictions["minNumberOfFiles"];if(Object.keys(e).length<t)throw new Ch(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}function Xh(t){const n=this.opts.restrictions["requiredMetaFields"],r=Object.prototype["hasOwnProperty"],o=[],i=[];for(let e=0;e<n.length;e++)if(!r.call(t.meta,n[e])||""===t.meta[n[e]]){const r=new Ch(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name}));o.push(r),i.push(n[e]),y(this,Lh)[Lh](r,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:i}),o}function Zh(e){e=Object.keys(e).flatMap(e=>{e=this.getFile(e);return y(this,Nh)[Nh](e)});if(e.length)throw new Ah(e,""+this.i18n("missingRequiredMetaField"))}function Jh(e,t){var{showInformer:t=!0,file:n=null,throwErr:r=!0}=void 0===t?{}:t,o="object"==typeof e?e.message:e,i="object"==typeof e&&e.details?e.details:"";let a=o;if(i&&(a+=" "+i),e.isRestriction?(this.log(a),this.emit("restriction-failed",n,e)):this.log(a,"error"),t&&this.info({message:o,details:i},"error",this.opts.infoTimeout),r)throw"object"==typeof e?e:new Error(e)}function Qh(e){var t=this.getState()["allowNewUpload"];!1===t&&y(this,Lh)[Lh](new Ch(this.i18n("noMoreFilesAllowed")),{file:e})}function e0(t,e){var n=e.type||((n=e.name?null==(n=hh(e.name).extension)?void 0:n.toLowerCase():null)&&n in gh?gh[n]:"application/octet-stream"),r=(r=n,e.name||("image"===r.split("/")[0]?r.split("/")[0]+"."+r.split("/")[1]:"noname")),o=hh(r).extension,i=Boolean(e.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+vh(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+vh(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const t=new Ch(this.i18n("noDuplicates",{fileName:r}));y(this,Lh)[Lh](t,{file:e})}var u=e.meta||{},s=(u.name=r,u.type=n,Number.isFinite(e.data.size)?e.data.size:null);let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};a=this.opts.onBeforeFileAdded(l,t);!1===a?y(this,Lh)[Lh](new Ch("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):"object"==typeof a&&null!==a&&(l=a);try{const e=Object.keys(t).map(e=>t[e]);y(this,Ph)[Ph](l,e)}catch(t){y(this,Lh)[Lh](t,{file:l})}return l}function t0(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function n0(){const r=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" "+e.details),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",r),this.on("upload-error",(e,t,n)=>{if(r(t,e,n),"object"==typeof t&&t.message){const r=new Error(t.message);r.details=t.message,t.details&&(r.details+=" "+t.details),r.message=this.i18n("failedToUpload",{file:e.name}),y(this,Lh)[Lh](r,{throwErr:!1})}else y(this,Lh)[Lh](t,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{var n;this.getFile(e.id)?(n=this.getFile(e.id).progress,this.setFileState(e.id,{progress:{...n,postprocess:0<y(this,_h)[_h].size?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{var t;this.getFile(e.id)?((t={...this.getState().files})[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{var t;this.getFile(e.id)?((t={...this.getState().files})[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&y(this,Nh)[Nh](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",y(this,$h)[$h]),window.addEventListener("offline",y(this,$h)[$h]),setTimeout(y(this,$h)[$h],3e3))}function r0(e,t){var{forceAllowNewUpload:t=!1}=t=void 0===t?{}:t,{allowNewUpload:n,currentUploads:r}=this.getState();if(n||t)return n=Eh(),this.emit("upload",{id:n,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...r,[n]:{fileIDs:e,step:0,result:{}}}}),n;throw new Error("Cannot create a new upload: already uploading.")}function o0(e){var t=this.getState()["currentUploads"];return t[e]}function i0(e){var t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function a0(t){let n=this.getState()["currentUploads"],r=n[t];const o=r.step||0,i=[...y(this,Fh)[Fh],...y(this,Th)[Th],...y(this,_h)[_h]];try{for(let e=o;e<i.length&&r;e++){const o=i[e],a={...r,step:e};this.setState({currentUploads:{...n,[t]:a}}),await o(a.fileIDs,t),n=this.getState().currentUploads,r=n[t]}}catch(n){throw this.emit("error",n),y(this,Wh)[Wh](t),n}if(r){r.fileIDs.forEach(e=>{e=this.getFile(e);e&&e.progress.postprocess&&this.emit("postprocess-complete",e)});const o=r.fileIDs.map(e=>this.getFile(e)),i=o.filter(e=>!e.error),e=o.filter(e=>e.error);await this.addResultData(t,{successful:i,failed:e,uploadID:t}),n=this.getState().currentUploads,r=n[t]}let e;return r&&(e=r.result,this.emit("complete",e),y(this,Wh)[Wh](t)),null==e&&this.log("Not setting result for an upload that has been removed: "+t),e}qh.VERSION="2.1.3";u=qh,c=O(function(e,t){var x,E,i,n,r,o,a,u,D={},b=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function S(e,t){for(var n in t)e[n]=t[n];return e}function C(e){var t=e.parentNode;t&&t.removeChild(e)}function l(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(2<arguments.length&&(a.children=3<arguments.length?x.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return w(e,a,r,o,null)}function w(e,t,n,r,o){e={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++i:o};return null==o&&null!=E.vnode&&E.vnode(e),e}function A(e){return e.children}function O(e,t){this.props=e,this.context=t}function k(e,t){if(null==t)return e.__?k(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?k(e):null}function c(e){(e.__d||(e.__d=!0,!r.push(e))||f.__r++)&&a===E.debounceRendering||((a=E.debounceRendering)||o)(f)}function f(){for(var e;f.__r=r.length;)e=r.sort(function(e,t){return e.__v.__b-t.__v.__b}),r=[],e.some(function(e){var t,n,r,o,i;e.__d&&(o=(r=(e=e).__v).__e,i=e.__P)&&(t=[],(n=S({},r)).__v=r.__v+1,_(i,r,n,e.__n,void 0!==i.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?k(r):o,r.__h),g(t,r),r.__e!=o)&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)})}function B(e,t,n,r,o,i,a,u,s,l){var c,f,d,p,h,g,v,y=r&&r.__k||b,m=y.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(p=n.__k[c]=null==(p=t[c])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?w(null,p,null,null,p):Array.isArray(p)?w(A,{children:p},null,null,null):0<p.__b?w(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(d=y[c])||d&&p.key==d.key&&p.type===d.type)y[c]=void 0;else for(f=0;f<m;f++){if((d=y[f])&&p.key==d.key&&p.type===d.type){y[f]=void 0;break}d=null}_(e,p,d=d||D,o,i,a,u,s,l),h=p.__e,(f=p.ref)&&d.ref!=f&&(v=v||[],d.ref&&v.push(d.ref,null,p),v.push(f,p.__c||h,p)),null!=h?(null==g&&(g=h),"function"==typeof p.type&&p.__k===d.__k?p.__d=s=function e(t,n,r){for(var o,i=t.__k,a=0;i&&a<i.length;a++)(o=i[a])&&(o.__=t,n="function"==typeof o.type?e(o,n,r):F(r,o,o,i,o.__e,n));return n}(p,s,e):s=F(e,p,d,y,h,s),"function"==typeof n.type&&(n.__d=s)):s&&d.__e==s&&s.parentNode!=e&&(s=k(d))}for(n.__e=g,c=m;c--;)null!=y[c]&&("function"==typeof n.type&&null!=y[c].__e&&y[c].__e==n.__d&&(n.__d=k(r,c+1)),function e(t,n,r){var o,i;if(E.unmount&&E.unmount(t),!(o=t.ref)||o.current&&o.current!==t.__e||P(o,null,n),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){E.__e(t,n)}o.base=o.__P=null}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&e(o[i],n,"function"!=typeof t.type);r||null==t.__e||C(t.__e),t.__e=t.__d=void 0}(y[c],y[c]));if(v)for(c=0;c<v.length;c++)P(v[c],v[++c],v[++c])}function F(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function d(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||s.test(t)?n:n+"px"}function T(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||d(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||d(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=(t.toLowerCase()in e?t.toLowerCase():t).slice(2),e.l||(e.l={}),(e.l[t+i]=n)?r||e.addEventListener(t,i?h:p,i):e.removeEventListener(t,i?h:p,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"!=typeof n&&(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function p(e){this.l[e.type+!1](E.event?E.event(e):e)}function h(e){this.l[e.type+!0](E.event?E.event(e):e)}function _(e,t,n,r,o,i,a,u,s){var l,c,f,d,p,h,g,v,y,m,b,w=t.type;if(void 0===t.constructor){null!=n.__h&&(s=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=E.__b)&&l(t);try{e:if("function"==typeof w){if(v=t.props,y=(l=w.contextType)&&r[l.__c],m=l?y?y.props.value:l.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:("prototype"in w&&w.prototype.render?t.__c=c=new w(v,m):(t.__c=c=new O(v,m),c.constructor=w,c.render=j),y&&y.sub(c),c.props=v,c.state||(c.state={}),c.context=m,c.__n=r,f=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=w.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=S({},c.__s)),S(c.__s,w.getDerivedStateFromProps(v,c.__s))),d=c.props,p=c.state,f)null==w.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==w.getDerivedStateFromProps&&v!==d&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,m),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,m)||t.__v===n.__v){c.props=v,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),(c.__v=t).__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),c.__h.length&&a.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(v,c.__s,m),null!=c.componentDidUpdate&&c.__h.push(function(){c.componentDidUpdate(d,p,h)})}c.context=m,c.props=v,c.state=c.__s,(l=E.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=S(S({},r),c.getChildContext())),f||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(d,p)),b=null!=l&&l.type===A&&null==l.key?l.props.children:l,B(e,Array.isArray(b)?b:[b],t,n,r,o,i,a,u,s),c.base=t.__e,t.__h=null,c.__h.length&&a.push(c),g&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,u){var s,l,c,f=n.props,d=t.props,p=t.type,h=0;if("svg"===p&&(o=!0),null!=i)for(;h<i.length;h++)if((s=i[h])&&"setAttribute"in s==!!p&&(p?s.localName===p:3===s.nodeType)){e=s,i[h]=null;break}if(null==e){if(null===p)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,u=!1}if(null===p)f===d||u&&e.data===d||(e.data=d);else{if(i=i&&x.call(e.childNodes),l=(f=n.props||D).dangerouslySetInnerHTML,c=d.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},h=0;h<e.attributes.length;h++)f[e.attributes[h].name]=e.attributes[h].value;!c&&!l||c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||"")}if(function(e,t,n,r,o){for(var i in n)"children"===i||"key"===i||i in t||T(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||T(e,i,t[i],n[i],r)}(e,d,f,o,u),c)t.__k=[];else if(h=t.props.children,B(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==p,i,a,i?i[0]:n.__k&&k(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&C(i[h]);u||("value"in d&&void 0!==(h=d.value)&&(h!==f.value||h!==e.value||"progress"===p&&!h)&&T(e,"value",h,f.value,!1),"checked"in d&&void 0!==(h=d.checked)&&h!==e.checked&&T(e,"checked",h,f.checked,!1))}return e}(n.__e,t,n,r,o,i,a,s);(l=E.diffed)&&l(t)}catch(e){t.__v=null,!s&&null==i||(t.__e=u,t.__h=!!s,i[i.indexOf(u)]=null),E.__e(e,t,n)}}}function g(e,t){E.__c&&E.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){E.__e(e,t.__v)}})}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){E.__e(e,n)}}function j(e,t,n){return this.constructor(e,n)}function v(e,t,n){var r,o,i;E.__&&E.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],_(t,e=(!r&&n||t).__k=l(A,null,[e]),o||D,D,void 0!==t.ownerSVGElement,!r&&n?[n]:!o&&t.firstChild?x.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),g(i,e)}x=b.slice,E={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},i=0,n=function(e){return null!=e&&void 0===e.constructor},O.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=S({},this.state);(e="function"==typeof e?e(S({},n),this.props):e)&&S(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),c(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),c(this))},O.prototype.render=A,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f.__r=0,u=0,t.Component=O,t.Fragment=A,t.cloneElement=function(e,t,n){var r,o,i,a=S({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];return 2<arguments.length&&(a.children=3<arguments.length?x.call(arguments,2):n),w(e.type,a,r||e.key,o||e.ref,null)},t.createContext=function(e,r){e={__c:r="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,t;return this.getChildContext||(n=[],((t={})[r]=this).getChildContext=function(){return t},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(c)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return e.Provider.__=e.Consumer.contextType=e},t.createElement=l,t.createRef=function(){return{current:null}},t.h=l,t.hydrate=function e(t,n){v(t,n,e)},t.isValidElement=n,t.options=E,t.render=v,t.toChildArray=function t(e,n){return n=n||[],null!=e&&"boolean"!=typeof e&&(Array.isArray(e)?e.some(function(e){t(e,n)}):n.push(e)),n}}),f=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){var e=this.uppy.getState()["plugins"];return e[this.id]||{}}setPluginState(e){var t=this.uppy.getState()["plugins"];this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){var e=new nh([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function u0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}const s0=c["render"];var l0="__private_0_updateUI";var g=h["debugLogger"],c0=u,l=class wie extends f{constructor(){super(...arguments),Object.defineProperty(this,l0,{writable:!0,value:void 0})}mount(e,t){var n=t.id,r=(i=e,void 0===r&&(r=document),"string"==typeof i?r.querySelector(i):(null==i?void 0:i.nodeType)===Node.ELEMENT_NODE?i:null);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return u0(this,l0)[l0]=function(r){let o=null,i;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i=t,o=o||Promise.resolve().then(()=>(o=null,r(...i)))}}(e=>{this.uppy.getPlugin(this.id)&&(s0(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),s0(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof wie)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return o=e,!1})}if(o)return this.uppy.log(`Installing ${n} to `+o.id),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing "+n);var i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&null!=(t=(n=u0(this,l0))[l0])&&t.call(n,e)}unmount(){var e;this.isTargetDOMEl&&null!=(e=this.el)&&e.remove(),this.onUnmount()}onMount(){}onUnmount(){}},s=f,i=g;c0.Uppy=u,c0.UIPlugin=l,c0.BasePlugin=s,c0.debugLogger=i;class f0 extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}function d0(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new p0(e)})}var p0=f0;class h0 extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var g0,v0,y0,m0=h0;function b0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var w0=0;function x0(e){return"__private_"+w0+++"_"+e}async function E0(t){if(401===t.status)throw new m0;var n=t.json();if(t.status<200||300<t.status){let e=`Failed request with status: ${t.status}. `+t.statusText;try{const t=await n;e=t.message?e+" message: "+t.message:e,e=t.requestId?e+" request-Id: "+t.requestId:e}finally{throw new Error(e)}}return n}g0=x0("getPostResponseFunc"),v0=x0("getUrl"),y0=x0("errorHandler"),p=d=class t{constructor(e,t){Object.defineProperty(this,y0,{value:S0}),Object.defineProperty(this,v0,{value:D0}),Object.defineProperty(this,g0,{writable:!0,value:t=>e=>t?e:this.onReceiveResponse(e)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){var e=this.uppy.getState()["companion"],t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){var e=this.opts.companionHeaders||{};return Promise.resolve({...t.defaultHeaders,...e})}onReceiveResponse(e){var t=this.uppy.getState().companion||{},n=this.opts.companionUrl,r=e["headers"];return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(b0(this,v0)[v0](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header "+e),delete n[e])}),n})}get(t,e){return this.preflightAndHeaders(t).then(e=>d0(b0(this,v0)[v0](t),{method:"get",headers:e,credentials:this.opts.companionCookiesRule||"same-origin"})).then(b0(this,g0)[g0](e)).then(E0).catch(b0(this,y0)[y0]("get",t))}post(t,n,e){return this.preflightAndHeaders(t).then(e=>d0(b0(this,v0)[v0](t),{method:"post",headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(b0(this,g0)[g0](e)).then(E0).catch(b0(this,y0)[y0]("post",t))}delete(t,n,e){return this.preflightAndHeaders(t).then(e=>d0(this.hostname+"/"+t,{method:"delete",headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(b0(this,g0)[g0](e)).then(E0).catch(b0(this,y0)[y0]("delete",t))}},d.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+(d.VERSION="2.0.4")};c=p;function D0(e){return/^(https?:|)\/\//.test(e)?e:this.hostname+"/"+e}function S0(n,r){return e=>{var t;if(null==e||!e.isAuthError){const t=new Error(`Could not ${n} `+b0(this,v0)[v0](r));t.cause=e,e=t}return Promise.reject(e)}}var C0,A0,O0,k0,B0,F0={setItem:(t,n)=>new Promise(e=>{localStorage.setItem(t,n),e()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})};function T0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var _0=0;function P0(e){return"__private_"+_0+++"_"+e}C0=P0("queued"),A0=P0("emitter"),O0=P0("isOpen"),k0=P0("socket"),B0=P0("handleMessage"),h=Symbol.for("uppy test: getSocket"),g=Symbol.for("uppy test: getQueued");var j0,N0,u={RequestClient:c,Provider:class extends c{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{var[e,t]=e,n={};return t&&(n["uppy-auth-token"]=t),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}})}onReceiveResponse(e){e=super.onReceiveResponse(e);var t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?`+new URLSearchParams(e)}fileUrl(e){return`${this.hostname}/${this.id}/get/`+e}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(this.id+"/list/"+(e||""))}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{var[e]=e;return e})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||F0}},SearchProvider:class extends c{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||this.id.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/`+e}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=`+encodeURIComponent(e)+t)}},Socket:class{constructor(e){Object.defineProperty(this,C0,{writable:!0,value:[]}),Object.defineProperty(this,A0,{writable:!0,value:oh()}),Object.defineProperty(this,O0,{writable:!0,value:!1}),Object.defineProperty(this,k0,{writable:!0,value:void 0}),Object.defineProperty(this,B0,{writable:!0,value:e=>{try{var t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),(this.opts=e)&&!1===e.autoOpen||this.open()}get isOpen(){return T0(this,O0)[O0]}[h](){return T0(this,k0)[k0]}[g](){return T0(this,C0)[C0]}open(){T0(this,k0)[k0]=new WebSocket(this.opts.target),T0(this,k0)[k0].onopen=()=>{for(T0(this,O0)[O0]=!0;0<T0(this,C0)[C0].length&&T0(this,O0)[O0];){var e=T0(this,C0)[C0].shift();this.send(e.action,e.payload)}},T0(this,k0)[k0].onclose=()=>{T0(this,O0)[O0]=!1},T0(this,k0)[k0].onmessage=T0(this,B0)[B0]}close(){var e;null!=(e=T0(this,k0)[k0])&&e.close()}send(e,t){T0(this,O0)[O0]?T0(this,k0)[k0].send(JSON.stringify({action:e,payload:t})):T0(this,C0)[C0].push({action:e,payload:t})}on(e,t){T0(this,A0)[A0].on(e,t)}emit(e,t){T0(this,A0)[A0].emit(e,t)}once(e,t){T0(this,A0)[A0].once(e,t)}}},I0=zd(function(e,t,n){var{progress:t,bytesUploaded:r,bytesTotal:o}=t;t&&(e.uppy.log("Upload progress: "+t),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:r,bytesTotal:o}))},300,{leading:!0,trailing:!0});function L0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var R0=0;function M0(e){return"__private_"+R0+++"_"+e}j0=M0("emitter"),N0=M0("events");var z0=class{constructor(e){Object.defineProperty(this,j0,{writable:!0,value:void 0}),Object.defineProperty(this,N0,{writable:!0,value:[]}),L0(this,j0)[j0]=e}on(e,t){return L0(this,N0)[N0].push([e,t]),L0(this,j0)[j0].on(e,t)}remove(){for(var[e,t]of L0(this,N0)[N0].splice(0))L0(this,j0)[j0].off(e,t)}};function H0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var $0=0;function V0(e){return"__private_"+$0+++"_"+e}var U0=V0("aliveTimer"),W0=V0("isDone"),G0=V0("onTimedOut"),q0=V0("timeout"),K0=class{constructor(e,t){Object.defineProperty(this,U0,{writable:!0,value:void 0}),Object.defineProperty(this,W0,{writable:!0,value:!1}),Object.defineProperty(this,G0,{writable:!0,value:void 0}),Object.defineProperty(this,q0,{writable:!0,value:void 0}),H0(this,q0)[q0]=e,H0(this,G0)[G0]=t}progress(){H0(this,W0)[W0]||0<H0(this,q0)[q0]&&(clearTimeout(H0(this,U0)[U0]),H0(this,U0)[U0]=setTimeout(H0(this,G0)[G0],H0(this,q0)[q0]))}done(){H0(this,W0)[W0]||(clearTimeout(H0(this,U0)[U0]),H0(this,U0)[U0]=null,H0(this,W0)[W0]=!0)}};function Y0(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e;throw new TypeError("attempted to use private field on non-instance")}var X0=0;function Z0(e){return"__private_"+X0+++"_"+e}var J0=Z0("activeRequests"),Q0=Z0("queuedHandlers"),eg=Z0("call"),tg=Z0("queueNext"),ng=Z0("next"),rg=Z0("queue"),og=Z0("dequeue");function ig(e){Y0(this,J0)[J0]+=1;let t,n=!1;try{t=e()}catch(e){throw--Y0(this,J0)[J0],e}return{abort:()=>{n||(n=!0,--Y0(this,J0)[J0],t(),Y0(this,tg)[tg]())},done:()=>{n||(n=!0,--Y0(this,J0)[J0],Y0(this,tg)[tg]())}}}function ag(){queueMicrotask(()=>Y0(this,ng)[ng]())}function ug(){var e,t;Y0(this,J0)[J0]>=this.limit||0!==Y0(this,Q0)[Q0].length&&(e=Y0(this,Q0)[Q0].shift(),t=Y0(this,eg)[eg](e.fn),e.abort=t.abort,e.done=t.done)}function sg(e,t){const n={fn:e,priority:(t=void 0===t?{}:t).priority||0,abort:()=>{Y0(this,og)[og](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Y0(this,Q0)[Q0].findIndex(e=>n.priority>e.priority);return-1===r?Y0(this,Q0)[Q0].push(n):Y0(this,Q0)[Q0].splice(r,0,n),n}function lg(e){e=Y0(this,Q0)[Q0].indexOf(e);-1!==e&&Y0(this,Q0)[Q0].splice(e,1)}function cg(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)}var l={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,og,{value:lg}),Object.defineProperty(this,rg,{value:sg}),Object.defineProperty(this,ng,{value:ug}),Object.defineProperty(this,tg,{value:ag}),Object.defineProperty(this,eg,{value:ig}),Object.defineProperty(this,J0,{writable:!0,value:0}),Object.defineProperty(this,Q0,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Y0(this,J0)[J0]<this.limit?Y0(this,eg)[eg](e):Y0(this,rg)[rg](e,t)}wrapPromiseFunction(u,s){var l=this;return function(){for(var e=arguments.length,i=new Array(e),t=0;t<e;t++)i[t]=arguments[t];let a;var n=new Promise((r,o)=>{a=l.run(()=>{let t,n;try{n=Promise.resolve(u(...i))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?o(t):(a.done(),r(e))},e=>{t?o(t):(a.done(),o(e))}),()=>{t=new Error("Cancelled")}},s)});return n.abort=()=>{a.abort()},n}}},internalRateLimitedQueue:Symbol("__queue")},fg={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const dg=v["nanoid"],{Provider:pg,RequestClient:hg,Socket:gg}=u,{RateLimitedQueue:vg,internalRateLimitedQueue:yg}=l;function mg(e,t){let n=t;return(n="string"==typeof(n=n||new Error("Upload error"))?new Error(n):n)instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),cg(e)?n=new p0(n,e):n.request=e,n}function bg(e){return e.data.slice(0,e.data.size,e.meta.type)}i=s=class extends f{constructor(n,e){super(n,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=fg;var t={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(e){let t={};try{t=JSON.parse(e)}catch(e){n.log(e)}return t},getResponseError(e,t){let n=new Error("Upload error");return n=cg(t)?new p0(n,t):n},validateStatus:e=>200<=e&&e<300};if(this.opts={...t,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),yg in this.opts?this.requests=this.opts[yg]:this.requests=new vg(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){var t=this.uppy.getState().xhrUpload,n=this.opts["headers"],r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(t,n,e){(Array.isArray(e.metaFields)?e.metaFields:Object.keys(n)).forEach(e=>{t.append(e,n[e])})}createFormDataUpload(e,t){var n=new FormData,r=(this.addMetadata(n,e.meta,t),bg(e));return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const r=new FormData,n=this.uppy.getState()["meta"];return this.addMetadata(r,n,t),e.forEach(e=>{var t=this.getOptions(e),n=bg(e);e.name?r.append(t.fieldName,n,e.name):r.append(t.fieldName,n)}),r}upload(l,e,t){const c=this.getOptions(l);return this.uppy.log(`uploading ${e} of `+t),new Promise((r,o)=>{this.uppy.emit("upload-started",l);const e=c.formData?this.createFormDataUpload(l,c):l.data,i=new XMLHttpRequest,a=(this.uploaderEvents[l.id]=new z0(this.uppy),new K0(c.timeout,()=>{i.abort(),s.done();var e=new Error(this.i18n("timedOut",{seconds:Math.ceil(c.timeout/1e3)}));this.uppy.emit("upload-error",l,e),o(e)})),u=dg(),s=(i.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${u} started`)}),i.upload.addEventListener("progress",e=>{this.uppy.log(`[XHRUpload] ${u} progress: ${e.loaded} / `+e.total),a.progress(),e.lengthComputable&&this.uppy.emit("upload-progress",l,{uploader:this,bytesUploaded:e.loaded,bytesTotal:e.total})}),i.addEventListener("load",e=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[l.id]&&(this.uploaderEvents[l.id].remove(),this.uploaderEvents[l.id]=null),c.validateStatus(e.target.status,i.responseText,i)){const o=c.getResponseData(i.responseText,i),a=o[c.responseUrlFieldName],u={status:e.target.status,body:o,uploadURL:a};return this.uppy.emit("upload-success",l,u),a&&this.uppy.log(`Download ${l.name} from `+a),r(l)}var t=c.getResponseData(i.responseText,i),n=mg(i,c.getResponseError(i.responseText,i)),e={status:e.target.status,body:t};return this.uppy.emit("upload-error",l,n,e),o(n)}),i.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[l.id]&&(this.uploaderEvents[l.id].remove(),this.uploaderEvents[l.id]=null);var e=mg(i,c.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",l,e),o(e)}),i.open(c.method.toUpperCase(),c.endpoint,!0),i.withCredentials=c.withCredentials,""!==c.responseType&&(i.responseType=c.responseType),this.requests.run(()=>{this.uppy.emit("upload-started",l);const t=this.getOptions(l);return Object.keys(t.headers).forEach(e=>{i.setRequestHeader(e,t.headers[e])}),i.send(e),()=>{a.done(),i.abort()}}));this.onFileRemove(l.id,()=>{s.abort(),o(new Error("File removed"))}),this.onCancelAll(l.id,()=>{s.abort(),o(new Error("Upload cancelled"))})})}uploadRemote(s){const l=this.getOptions(s);return new Promise((a,u)=>{this.uppy.emit("upload-started",s);const t={};(Array.isArray(l.metaFields)?l.metaFields:Object.keys(s.meta)).forEach(e=>{t[e]=s.meta[e]}),new(s.remote.providerOptions.provider?pg:hg)(this.uppy,s.remote.providerOptions).post(s.remote.url,{...s.remote.body,endpoint:l.endpoint,size:s.data.size,fieldname:l.fieldName,metadata:t,httpMethod:l.method,useFormData:l.formData,headers:l.headers}).then(e=>{const t=e["token"],n=(e=s.remote.companionUrl,o=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1],`${/^http:\/\//i.test(e)?"ws":"wss"}://`+o),r=new gg({target:n+"/api/"+t,autoOpen:!1});var o;this.uploaderEvents[s.id]=new z0(this.uppy),this.onFileRemove(s.id,()=>{r.send("cancel",{}),i.abort(),a(`upload ${s.id} was removed`)}),this.onCancelAll(s.id,()=>{r.send("cancel",{}),i.abort(),a(`upload ${s.id} was canceled`)}),this.onRetry(s.id,()=>{r.send("pause",{}),r.send("resume",{})}),this.onRetryAll(s.id,()=>{r.send("pause",{}),r.send("resume",{})}),r.on("progress",e=>I0(this,e,s)),r.on("success",e=>{var t=l.getResponseData(e.response.responseText,e.response),n=t[l.responseUrlFieldName],e={status:e.response.status,body:t,uploadURL:n};return this.uppy.emit("upload-success",s,e),i.done(),this.uploaderEvents[s.id]&&(this.uploaderEvents[s.id].remove(),this.uploaderEvents[s.id]=null),a()}),r.on("error",e=>{var t=e.response,t=t?l.getResponseError(t.responseText,t):Object.assign(new Error(e.error.message),{cause:e.error});this.uppy.emit("upload-error",s,t),i.done(),this.uploaderEvents[s.id]&&(this.uploaderEvents[s.id].remove(),this.uploaderEvents[s.id]=null),u(t)});const i=this.requests.run(()=>(r.open(),s.isPaused&&r.send("pause",{}),()=>r.close()))}).catch(e=>{this.uppy.emit("upload-error",s,e),u(e)})})}uploadBundle(l){return new Promise((n,r)=>{const e=this.opts["endpoint"],t=this.opts["method"],o=this.uppy.getState().xhrUpload,i=this.createBundledUpload(l,{...this.opts,...o||{}}),a=new XMLHttpRequest,u=new K0(this.opts.timeout,()=>{a.abort();var e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));s(e),r(e)}),s=t=>{l.forEach(e=>{this.uppy.emit("upload-error",e,t)})};a.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),u.progress()}),a.upload.addEventListener("progress",t=>{u.progress(),t.lengthComputable&&l.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),a.addEventListener("load",e=>{if(u.done(),this.opts.validateStatus(e.target.status,a.responseText,a)){const r=this.opts.getResponseData(a.responseText,a),t={status:e.target.status,body:r};return l.forEach(e=>{this.uppy.emit("upload-success",e,t)}),n()}const t=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return t.request=a,s(t),r(t)}),a.addEventListener("error",()=>{u.done();var e=this.opts.getResponseError(a.responseText,a)||new Error("Upload error");return s(e),r(e)}),this.uppy.on("cancel-all",()=>{u.done(),a.abort()}),a.open(t.toUpperCase(),e,!0),a.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(a.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{a.setRequestHeader(e,this.opts.headers[e])}),a.send(i),l.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(r){{var e=r.map((e,t)=>{var t=parseInt(t,10)+1,n=r.length;return e.error?Promise.reject(new Error(e.error)):e.isRemote?this.uploadRemote(e,t,n):this.upload(e,t,n)});const o=[],i=[];function t(e){o.push(e)}function n(e){i.push(e)}return Promise.all(e.map(e=>e.then(t,n))).then(()=>({successful:o,failed:i}))}}onFileRemove(t,n){this.uploaderEvents[t].on("file-removed",e=>{t===e.id&&n(e.id)})}onRetry(t,n){this.uploaderEvents[t].on("upload-retry",e=>{t===e&&n()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[yg]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");e=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(e.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){var e;this.opts.bundle&&(e=this.uppy.getState()["capabilities"],this.uppy.setState({capabilities:{...e,individualCancellation:!1}})),this.uppy.addUploader(this.handleUpload)}uninstall(){var e;this.opts.bundle&&(e=this.uppy.getState()["capabilities"],this.uppy.setState({capabilities:{...e,individualCancellation:!0}})),this.uppy.removeUploader(this.handleUpload)}},s.VERSION="2.0.6";var wg=i,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function xg(e){var t={exports:{}};return e(t,t.exports),t.exports}function Eg(e){return e&&e.Math==Math&&e}function Dg(t,n){try{Pg(m,t,{value:n,configurable:!0,writable:!0})}catch(e){m[t]=n}return n}function Sg(e){if(null==e)throw Lg("Can't call method on "+e);return e}function Cg(e){return Rg(Sg(e))}function Ag(e){return"Symbol("+(void 0===e?"":e)+")_"+Vg(++Hg+$g,36)}function Og(e,t){return arguments.length<2?(n=m[e],Ug(n)?n:void 0):m[e]&&m[e][t];var n}function kg(e){try{return!!e()}catch(e){return!0}}function Bg(e){var t;return zg(Kg,e)&&(Gg||"string"==typeof Kg[e])||(t="Symbol."+e,Gg&&zg(Yg,e)?Kg[e]=Yg[e]:Kg[e]=(qg&&Xg?Xg:Zg)(t)),Kg[e]}function Fg(e){return tv?ev.createElement(e):{}}function Tg(e){return e=function(e,t){if(!Qg(e)||cv(e))return e;var n,r,o=gv(e,mv);if(o){if(o=uv(o,e,t=void 0===t?"default":t),!Qg(o)||cv(o))return o;throw yv("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&Ug(n=o.toString)&&!Qg(r=uv(n,o)))return r;if(Ug(n=o.valueOf)&&!Qg(r=uv(n,o)))return r;if("string"!==e&&Ug(n=o.toString)&&!Qg(r=uv(n,o)))return r;throw vv("Can't convert object to primitive value")}(e,"string"),cv(e)?e:e+""}function _g(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}var m=Eg("object"==typeof globalThis&&globalThis)||Eg("object"==typeof window&&window)||Eg("object"==typeof self&&self)||Eg("object"==typeof d&&d)||function(){return this}()||Function("return this")(),Pg=Object.defineProperty,jg=m["__core-js_shared__"]||Dg("__core-js_shared__",{}),p=xg(function(e){(e.exports=function(e,t){return jg[e]||(jg[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),c=Function.prototype,h=c.bind,Ng=c.call,Ig=h&&h.bind(Ng),b=h?function(e){return e&&Ig(Ng,e)}:function(e){return e&&function(){return Ng.apply(e,arguments)}},Lg=m.TypeError,Rg=m.Object,Mg=b({}.hasOwnProperty),zg=Object.hasOwn||function(e,t){return Mg(Cg(e),t)},Hg=0,$g=Math.random(),Vg=b(1..toString),Ug=function(e){return"function"==typeof e},g=Og("navigator","userAgent")||"",v=m.process,u=m.Deno,l=v&&v.versions||u&&u.version,f=l&&l.v8,Wg=o1=!(o1=f?0<(r1=f.split("."))[0]&&r1[0]<4?1:+(r1[0]+r1[1]):o1)&&g&&(!(r1=g.match(/Edge\/(\d+)/))||74<=r1[1])&&(r1=g.match(/Chrome\/(\d+)/))?+r1[1]:o1,Gg=!!Object.getOwnPropertySymbols&&!kg(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Wg&&Wg<41}),qg=Gg&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Kg=p("wks"),Yg=m.Symbol,Xg=Yg&&Yg.for,Zg=qg?Yg:Yg&&Yg.withoutSetter||Ag,s={},i=(s[Bg("toStringTag")]="z","[object z]"===String(s)),Jg=!kg(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Qg=function(e){return"object"==typeof e?null!==e:Ug(e)},ev=m.document,tv=Qg(ev)&&Qg(ev.createElement),nv=!Jg&&!kg(function(){return 7!=Object.defineProperty(Fg("div"),"a",{get:function(){return 7}}).a}),rv=m.String,ov=m.TypeError,iv=function(e){if(Qg(e))return e;throw ov(rv(e)+" is not an object")},av=Function.prototype.call,uv=av.bind?av.bind(av):function(){return av.apply(av,arguments)},sv=b({}.isPrototypeOf),lv=m.Object,cv=qg?function(e){return"symbol"==typeof e}:function(e){var t=Og("Symbol");return Ug(t)&&sv(t.prototype,lv(e))},fv=m.String,dv=function(e){try{return fv(e)}catch(e){return"Object"}},pv=m.TypeError,hv=function(e){if(Ug(e))return e;throw pv(dv(e)+" is not a function")},gv=function(e,t){e=e[t];return null==e?void 0:hv(e)},vv=m.TypeError,yv=m.TypeError,mv=Bg("toPrimitive"),bv=m.TypeError,wv=Object.defineProperty,xv={f:Jg?wv:function(e,t,n){if(iv(e),t=Tg(t),iv(n),nv)try{return wv(e,t,n)}catch(e){}if("get"in n||"set"in n)throw bv("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ev=Jg?function(e,t,n){return xv.f(e,t,_g(1,n))}:function(e,t,n){return e[t]=n,e},Dv=b(Function.toString);Ug(jg.inspectSource)||(jg.inspectSource=function(e){return Dv(e)});function Sv(e){return Vv[e]||(Vv[e]=Ag(e))}function Cv(e,t){return hv(e),void 0===t?e:i1?i1(e,t):function(){return e.apply(t,arguments)}}function Av(e){return p1(e.length)}function Ov(){}function kv(e){if(!Ug(e))return!1;try{return v1(Ov,g1,e),!0}catch(e){return!1}}function Bv(e,t){return new(void 0===(n=h1(e=e)&&(n=e.constructor,w1(n)&&(n===E1||h1(n.prototype))||Qg(n)&&null===(n=n[x1]))?void 0:n)?E1:n)(0===t?0:t);var n}function Fv(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=Cg(e),u=s1(a),s=Cv(t,n),l=Av(u),c=0,t=r||Bv,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:D1(f,o)}else switch(d){case 4:return!1;case 7:D1(f,o)}return y?-1:g||v?v:f}}function Tv(e,t){var n=[][e];return!!n&&kg(function(){n.call(null,t||function(){throw 1},1)})}function _v(t){if(t&&t.forEach!==C1)try{Ev(t,"forEach",C1)}catch(e){t.forEach=C1}}var Pv,jv,Nv,Iv,Lv,Rv,Mv,zv,Hv,$v=jg.inspectSource,d=m.WeakMap,c=Ug(d)&&/native code/.test($v(d)),Vv=p("keys"),Uv={},Wv=m.TypeError,h=m.WeakMap,Gv=(Mv=c||jg.state?(Pv=jg.state||(jg.state=new h),jv=b(Pv.get),Nv=b(Pv.has),Iv=b(Pv.set),Lv=function(e,t){if(Nv(Pv,e))throw new Wv("Object already initialized");return t.facade=e,Iv(Pv,e,t),t},Rv=function(e){return jv(Pv,e)||{}},function(e){return Nv(Pv,e)}):(zv=Sv("state"),Uv[zv]=!0,Lv=function(e,t){if(zg(e,zv))throw new Wv("Object already initialized");return t.facade=e,Ev(e,zv,t),t},Rv=function(e){return zg(e,zv)?e[zv]:{}},function(e){return zg(e,zv)}),{set:Lv,get:Rv,has:Mv,enforce:function(e){return Mv(e)?Rv(e):Lv(e,{})},getterFor:function(t){return function(e){if(Qg(e)&&(e=Rv(e)).type===t)return e;throw Wv("Incompatible receiver, "+t+" required")}}}),v=Function.prototype,u=Jg&&Object.getOwnPropertyDescriptor,l=zg(v,"name"),qv={EXISTS:l,PROPER:l&&"something"===function(){}.name,CONFIGURABLE:l&&(!Jg||u(v,"name").configurable)},Kv=xg(function(e){var s=qv.CONFIGURABLE,t=Gv.get,l=Gv.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;Ug(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zg(n,"name")||s&&n.name!==r)&&Ev(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==m?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Ev(e,t,n)):a?e[t]=n:Dg(t,n)})(Function.prototype,"toString",function(){return Ug(this)&&t(this).source||$v(this)})}),Yv=b({}.toString),Xv=b("".slice),Zv=function(e){return Xv(Yv(e),8,-1)},Jv=Bg("toStringTag"),Qv=m.Object,e1="Arguments"==Zv(function(){return arguments}()),t1=i?Zv:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Qv(e),Jv))?t:e1?Zv(e):"Object"==(t=Zv(e))&&Ug(e.callee)?"Arguments":t},n1=(i||Kv(Object.prototype,"toString",i?{}.toString:function(){return"[object "+t1(this)+"]"},{unsafe:!0}),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),f=Fg("span").classList,r1=f&&f.constructor&&f.constructor.prototype,o1=r1===Object.prototype?void 0:r1,i1=b(b.bind),a1=m.Object,u1=b("".split),s1=kg(function(){return!a1("z").propertyIsEnumerable(0)})?function(e){return"String"==Zv(e)?u1(e,""):a1(e)}:a1,l1=Math.ceil,c1=Math.floor,f1=function(e){e=+e;return e!=e||0==e?0:(0<e?c1:l1)(e)},d1=Math.min,p1=function(e){return 0<e?d1(f1(e),9007199254740991):0},h1=Array.isArray||function(e){return"Array"==Zv(e)},g1=[],v1=Og("Reflect","construct"),y1=/^\s*(?:class|function)\b/,m1=b(y1.exec),b1=!y1.exec(Ov),w1=!v1||kg(function(){var e;return kv(kv.call)||!kv(Object)||!kv(function(){e=!0})||e})?function(e){if(!Ug(e))return!1;switch(t1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return b1||!!m1(y1,$v(e))}:kv,x1=Bg("species"),E1=m.Array,D1=b([].push),s={forEach:Fv(0),map:Fv(1),filter:Fv(2),some:Fv(3),every:Fv(4),find:Fv(5),findIndex:Fv(6),filterReject:Fv(7)},S1=s.forEach,C1=Tv("forEach")?[].forEach:function(e){return S1(this,e,1<arguments.length?arguments[1]:void 0)};for(Hv in n1)n1[Hv]&&_v(m[Hv]&&m[Hv].prototype);_v(o1);function A1(e){return s1(Sg(e))}function O1(e,t){return(e=f1(e))<0?I1(e+t,0):L1(e,t)}function k1(u){return function(e,t,n){var r,o=A1(e),i=Av(o),a=O1(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function B1(e,t){var n,r=A1(e),o=0,i=[];for(n in r)!zg(Uv,n)&&zg(r,n)&&M1(i,n);for(;t.length>o;)!zg(r,n=t[o++])||~R1(i,n)||M1(i,n);return i}function F1(e,t){return(e=K1[q1(e)])==X1||e!=Y1&&(Ug(t)?kg(t):!!t)}function T1(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?m:s?m[a]||Dg(a,{}):(m[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=J1(n,r))&&i.value:n[r],!Z1(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=W1(c),d=xv.f,p=N1.f,h=0;h<f.length;h++){var g=f[h];zg(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&Ev(o,"sham",!0),Kv(n,r,o,e)}}var d={}.propertyIsEnumerable,_1=Object.getOwnPropertyDescriptor,P1={f:_1&&!d.call({1:2},1)?function(e){e=_1(this,e);return!!e&&e.enumerable}:d},j1=Object.getOwnPropertyDescriptor,N1={f:Jg?j1:function(e,t){if(e=A1(e),t=Tg(t),nv)try{return j1(e,t)}catch(e){}if(zg(e,t))return _g(!uv(P1.f,e,t),e[t])}},I1=Math.max,L1=Math.min,h={includes:k1(!0),indexOf:k1(!1)},R1=h.indexOf,M1=b([].push),z1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H1=z1.concat("length","prototype"),$1={f:Object.getOwnPropertyNames||function(e){return B1(e,H1)}},V1={f:Object.getOwnPropertySymbols},U1=b([].concat),W1=Og("Reflect","ownKeys")||function(e){var t=$1.f(iv(e)),n=V1.f;return n?U1(t,n(e)):t},G1=/#|\.prototype\./,q1=F1.normalize=function(e){return String(e).replace(G1,".").toLowerCase()},K1=F1.data={},Y1=F1.NATIVE="N",X1=F1.POLYFILL="P",Z1=F1,J1=N1.f,Q1=Object.keys||function(e){return B1(e,z1)},l=kg(function(){Q1(1)});function ey(e){return"[object Object]"===Object.prototype.toString.call(e)}T1({target:"Object",stat:!0,forced:l},{keys:function(e){return Q1(Cg(e))}});function ty(){var e=iv(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}var ny=function(e){return!1!==ey(t=e)&&(void 0===(t=t.constructor)||!1!==ey(t=t.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||gc.isOperationList(e.redos[0]))&&(0===e.undos.length||gc.isOperationList(e.undos[0]));var t},ry=new WeakMap,oy=new WeakMap,iy={isHistoryEditor:e=>ny(e.history)&&P.isEditor(e),isMerging:e=>oy.get(e),isSaving:e=>ry.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=iy.isMerging(e);oy.set(e,!1),t(),oy.set(e,n)},withoutSaving(e,t){var n=iy.isSaving(e);ry.set(e,!1),t(),ry.set(e,n)}},ay=m.String,uy=function(e){if("Symbol"===t1(e))throw TypeError("Cannot convert a Symbol value to a string");return ay(e)},u=qv.PROPER,sy=RegExp.prototype,ly=sy.toString,cy=b(ty),v=kg(function(){return"/a/b"!=ly.call({source:"a",flags:"b"})}),i=u&&"toString"!=ly.name;(v||i)&&Kv(RegExp.prototype,"toString",function(){var e=iv(this),t=uy(e.source),n=e.flags;return"/"+t+"/"+uy(void 0!==n||!sv(sy,e)||"flags"in sy?n:cy(e))},{unsafe:!0});function fy(){}function dy(e){e.write(Cy("")),e.close();var t=e.parentWindow.Object;return e=null,t}function py(e){By[ky][e]=!0}function hy(e){if(_y(e))throw Py("The method doesn't accept regular expressions");return e}function gy(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[jy]=!1,"/./"[t](n)}catch(t){}}return!1}function vy(e,t,n){var r,o;iv(e);try{if(!(r=gv(e,"return"))){if("throw"===t)throw n;return}r=uv(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;iv(r)}function yy(e){return void 0!==e&&(Ry.Array===e||zy[My]===e)}function my(e,t,n){(t=Tg(t))in e?xv.f(e,t,_g(0,n)):e[t]=n}function by(e){if(null!=e)return gv(e,Hy)||gv(e,"@@iterator")||Ry[t1(e)]}function wy(e,t){if(t=arguments.length<2?by(e):t,hv(t))return iv(uv(t,e));throw $y(dv(e)+" is not iterable")}var xy,Ey=Jg?Object.defineProperties:function(e,t){iv(e);for(var n,r=A1(t),o=Q1(t),i=o.length,a=0;a<i;)xv.f(e,n=o[a++],r[n]);return e},Dy=Og("document","documentElement"),Sy=Sv("IE_PROTO"),Cy=function(e){return"<script>"+e+"<\/script>"},Ay=function(){try{xy=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ay="undefined"==typeof document||document.domain&&xy?dy(xy):((t=Fg("iframe")).style.display="none",Dy.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Cy("document.F=Object")),e.close(),e.F);for(var n=z1.length;n--;)delete Ay.prototype[z1[n]];return Ay()},Oy=(Uv[Sy]=!0,Object.create||function(e,t){var n;return null!==e?(fy.prototype=iv(e),n=new fy,fy.prototype=null,n[Sy]=e):n=Ay(),void 0===t?n:Ey(n,t)}),ky=Bg("unscopables"),By=Array.prototype,Fy=(null==By[ky]&&xv.f(By,ky,{configurable:!0,value:Oy(null)}),h.includes),Ty=(T1({target:"Array",proto:!0},{includes:function(e){return Fy(this,e,1<arguments.length?arguments[1]:void 0)}}),py("includes"),Bg("match")),_y=function(e){var t;return Qg(e)&&(void 0!==(t=e[Ty])?!!t:"RegExp"==Zv(e))},Py=m.TypeError,jy=Bg("match"),Ny=b("".indexOf),Iy=(T1({target:"String",proto:!0,forced:!gy("includes")},{includes:function(e){return!!~Ny(uy(Sg(this)),uy(hy(e)),1<arguments.length?arguments[1]:void 0)}}),/"/g),Ly=b("".replace),Ry=(T1({target:"String",proto:!0,forced:kg(function(){var e="".anchor('"');return e!==e.toLowerCase()||3<e.split('"').length})},{anchor:function(e){return e=e,t=uy(Sg(this)),n="<a",(n+=' name="'+Ly(uy(e),Iy,"&quot;")+'"')+">"+t+"</a>";var t,n}}),{}),My=Bg("iterator"),zy=Array.prototype,Hy=Bg("iterator"),$y=m.TypeError,Vy=m.Array,Uy=Bg("iterator"),Wy=!1;try{var Gy=0,qy={next:function(){return{done:!!Gy++}},return:function(){Wy=!0}};qy[Uy]=function(){return this},Array.from(qy,function(){throw 2})}catch(Z2){}function Ky(e,t){if(!t&&!Wy)return!1;var n=!1;try{var r={};r[Uy]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}f=!Ky(function(e){Array.from(e)});T1({target:"Array",stat:!0,forced:f},{from:function(e){var t=Cg(e),e=w1(this),n=arguments.length,r=1<n?arguments[1]:void 0,o=void 0!==r;o&&(r=Cv(r,2<n?arguments[2]:void 0));var i,a,u,s,l,c,n=by(t),f=0;if(!n||this==Vy&&yy(n))for(i=Av(t),a=e?new this(i):Vy(i);f<i;f++)c=o?r(t[f],f):t[f],my(a,f,c);else for(l=(s=wy(t,n)).next,a=e?new this:[];!(u=uv(l,s)).done;f++)c=o?function(e,t,n,r){try{return r?t(iv(n)[0],n[1]):t(n)}catch(t){vy(e,"throw",t)}}(s,r,[u.value,f],!0):u.value,my(a,f,c);return a.length=f,a}});function Yy(o){return function(e,t){var n,e=uy(Sg(e)),t=f1(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=nm(e,t))<55296||56319<n||t+1===r||(r=nm(e,t+1))<56320||57343<r?o?tm(e,t):n:o?rm(e,t,t+2):r-56320+(n-55296<<10)+65536}}function Xy(e,t,n){e&&!zg(e=n?e:e.prototype,cm)&&lm(e,cm,{configurable:!0,value:t})}function Zy(){return this}function Jy(){return this}function Qy(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!mm&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=Oy(fm,{next:_g(1,r)}),Xy(g,s,!1),Ry[s]=Zy;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[bm]||d["@@iterator"]||o&&d[o],h=!mm&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=um(g.call(new e)))!==Object.prototype&&s.next&&(um(s)!==ym&&(hm?hm(s,ym):Ug(s[bm])||Kv(s,bm,Jy)),Xy(s,r,!0)),gm&&"values"==o&&p&&"values"!==p.name&&(vm?Ev(d,"name","values"):(f=!0,h=function(){return uv(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!mm&&!f&&c in d||Kv(d,c,l[c]);else T1({target:t,proto:!0,forced:mm||f},l);return d[bm]!==h&&Kv(d,bm,h,{name:o}),Ry[t]=h,l}var em,tm=b("".charAt),nm=b("".charCodeAt),rm=b("".slice),r1={codeAt:Yy(!1),charAt:Yy(!0)},d=!kg(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),om=Sv("IE_PROTO"),im=m.Object,am=im.prototype,um=d?im.getPrototypeOf:function(e){var t,e=Cg(e);return zg(e,om)?e[om]:(t=e.constructor,Ug(t)&&e instanceof t?t.prototype:e instanceof im?am:null)},sm=Bg("iterator"),l=!1,i=([].keys&&("next"in(u=[].keys())?(v=um(um(u)))!==Object.prototype&&(em=v):l=!0),null!=em&&!kg(function(){var e={};return em[sm].call(e)!==e})||(em={}),Ug(em[sm])||Kv(em,sm,function(){return this}),{IteratorPrototype:em,BUGGY_SAFARI_ITERATORS:l}),lm=xv.f,cm=Bg("toStringTag"),fm=i.IteratorPrototype,dm=m.String,pm=m.TypeError,hm=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){iv(e);var n=t;if("object"==typeof n||Ug(n))return o?r(e,t):e.__proto__=t,e;throw pm("Can't set "+dm(n)+" as a prototype")}}():void 0),gm=qv.PROPER,vm=qv.CONFIGURABLE,ym=i.IteratorPrototype,mm=i.BUGGY_SAFARI_ITERATORS,bm=Bg("iterator"),wm=r1.charAt,xm=Gv.set,Em=Gv.getterFor("String Iterator");Qy(String,"String",function(e){xm(this,{type:"String Iterator",string:uy(e),index:0})},function(){var e=Em(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=wm(t,n),e.index+=t.length,{value:t,done:!1})});function Dm(t){return 51<=Wg||!kg(function(){var e=[];return(e.constructor={})[Tm]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Sm(n,e,t,r){var a,o=Bg(n),u=!kg(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!kg(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[Qm]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=b(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=b(e),i=t.exec;return i===Ym||i===eb.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),Kv(String.prototype,n,i[0]),Kv(eb,o,i[1])),r&&Ev(eb[o],"sham",!0)}function Cm(e,t,n){return t+(n?tb(e,t).length:1)}function Am(e,t){var n=e.exec;if(Ug(n))return null!==(n=uv(n,e,t))&&iv(n),n;if("RegExp"===Zv(e))return uv(Ym,e,t);throw sb("RegExp#exec called on incompatible receiver")}var h=N1.f,Om=b("".endsWith),km=b("".slice),Bm=Math.min,qy=gy("endsWith"),d=!(qy||!(f=h(String.prototype,"endsWith"))||f.writable),Fm=(T1({target:"String",proto:!0,forced:!d&&!qy},{endsWith:function(e){var t=uy(Sg(this)),n=(hy(e),1<arguments.length?arguments[1]:void 0),r=t.length,n=void 0===n?r:Bm(p1(n),r),r=uy(e);return Om?Om(t,r,n):km(t,n-r.length,n)===r}}),b([].join)),u=s1!=Object,v=Tv("join",","),Tm=(T1({target:"Array",proto:!0,forced:u||!v},{join:function(e){return Fm(A1(this),void 0===e?",":e)}}),Bg("species")),_m=s.map,l=Dm("map"),Pm=(T1({target:"Array",proto:!0,forced:!l},{map:function(e){return _m(this,e,1<arguments.length?arguments[1]:void 0)}}),m.RegExp),i=kg(function(){var e=Pm("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),h=i||kg(function(){return!Pm("a","y").sticky}),f={BROKEN_CARET:i||kg(function(){var e=Pm("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:h,UNSUPPORTED_Y:i},jm=m.RegExp,Nm=kg(function(){var e=jm(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),Im=m.RegExp,Lm=kg(function(){var e=Im("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Rm=Gv.get,Mm=p("native-string-replace",String.prototype.replace),zm=RegExp.prototype.exec,Hm=zm,$m=b("".charAt),Vm=b("".indexOf),Um=b("".replace),Wm=b("".slice),Gm=(d=/b*/g,uv(zm,qy=/a/,"a"),uv(zm,d,"a"),0!==qy.lastIndex||0!==d.lastIndex),qm=f.BROKEN_CARET,Km=void 0!==/()??/.exec("")[1],Ym=Hm=Gm||Km||qm||Nm||Lm?function(e){var t,n,r,o,i,a,u=this,s=Rm(u),e=uy(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=uv(Hm,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=qm&&u.sticky,f=uv(ty,u),s=u.source,d=0,p=e;if(l&&(f=Um(f,"y",""),-1===Vm(f,"g")&&(f+="g"),p=Wm(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==$m(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),Km&&(t=new RegExp("^"+s+"$(?!\\s)",f)),Gm&&(n=u.lastIndex),r=uv(zm,l?t:u,p),l?r?(r.input=Wm(r.input,d),r[0]=Wm(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:Gm&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),Km&&r&&1<r.length&&uv(Mm,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=Oy(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:Hm,u=(T1({target:"RegExp",proto:!0,forced:/./.exec!==Ym},{exec:Ym}),Function.prototype),Xm=u.apply,v=u.bind,Zm=u.call,Jm="object"==typeof Reflect&&Reflect.apply||(v?Zm.bind(Xm):function(){return Zm.apply(Xm,arguments)}),Qm=Bg("species"),eb=RegExp.prototype,tb=r1.charAt,nb=Math.floor,rb=b("".charAt),ob=b("".replace),ib=b("".slice),ab=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ub=/\$([$&'`]|\d{1,2})/g,sb=m.TypeError,lb=Bg("replace"),cb=Math.max,fb=Math.min,db=b([].concat),pb=b([].push),hb=b("".indexOf),gb=b("".slice),l="$0"==="a".replace(/./,"$0"),vb=!!/./[lb]&&""===/./[lb]("a","$0"),yb=(Sm("replace",function(e,b,w){var x=vb?"$":"$0";return[function(e,t){var n=Sg(this),r=null==e?void 0:gv(e,lb);return r?uv(r,e,n,t):uv(b,uy(n),e,t)},function(e,t){var n=iv(this),r=uy(e);if("string"==typeof t&&-1===hb(t,x)&&-1===hb(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=Ug(t),a=(i||(t=uy(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=Am(n,r);if(null===s)break;if(pb(u,s),!a)break;""===uy(s[0])&&(n.lastIndex=Cm(r,p1(n.lastIndex),o))}for(var l,c="",f=0,d=0;d<u.length;d++){for(var p=uy((s=u[d])[0]),h=cb(fb(f1(s.index),r.length),0),g=[],v=1;v<s.length;v++)pb(g,void 0===(l=s[v])?l:String(l));var y=s.groups,m=i?(m=db([p],g,h,r),void 0!==y&&pb(m,y),uy(Jm(t,void 0,m))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=ub;return void 0!==l&&(l=Cg(l),t=ab),ob(e,t,function(e,t){var n;switch(rb(t,0)){case"$":return"$";case"&":return i;case"`":return ib(a,0,u);case"'":return ib(a,c);case"<":n=l[ib(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=nb(o/10))&&r<=f?void 0===s[r-1]?rb(t,1):s[r-1]+rb(t,1):e;n=s[o-1]}return void 0===n?"":n})}(p,r,h,g,y,t);f<=h&&(c+=gb(r,f,h)+m,f=h+p.length)}return c+gb(r,f)}]},!!kg(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!l||vb),function(e,t){return(yb=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)});function mb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}yb(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var bb=function(){return(bb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function wb(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xb(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Eb(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function Db(){this.id=""+Pb++}function Sb(e,t,n){for(var r in t)Kv(e,r,t[r],n);return e}function Cb(e,t,n){for(var r=Av(e),o=O1(t,r),i=O1(void 0===n?r:n,r),a=Lb(Rb(i-o,0)),u=0;o<i;o++,u++)my(a,u,e[o]);return a.length=u,a}function Ab(e,t){this.stopped=e,this.result=t}function Ob(e,t,n){function r(e){return i&&vy(i,"normal",e),new Ab(!0,e)}function o(e){return d?(iv(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Cv(t,f);if(p)i=e;else{if(!(n=by(e)))throw qb(dv(e)+" is not iterable");if(yy(n)){for(a=0,u=Av(e);a<u;a++)if((s=o(e[a]))&&sv(Kb,s))return;return}i=wy(e,n)}for(l=i.next;!(c=uv(l,i)).done;){try{s=o(c.value)}catch(e){vy(i,"throw",e)}if("object"==typeof s&&s&&sv(Kb,s))return}}function kb(e,t){if(!sv(t,e))throw Yb("Incorrect invocation")}function Bb(e,t,n){function r(e){var n=b(p[e]);Kv(p,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(c&&!Qg(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return c&&!Qg(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(c&&!Qg(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}var o,i,a,u,s,l=-1!==e.indexOf("Map"),c=-1!==e.indexOf("Weak"),f=l?"set":"add",d=m[e],p=d&&d.prototype,h=d,g={};return Z1(e,!Ug(d)||!(c||p.forEach&&!kg(function(){(new d).entries().next()})))?(h=n.getConstructor(t,e,l,f),Gb.enable()):Z1(e,!0)&&(i=(o=new h)[f](c?{}:-0,1)!=o,a=kg(function(){o.has(1)}),u=Ky(function(e){new d(e)}),s=!c&&kg(function(){for(var e=new d,t=5;t--;)e[f](t,t);return!e.has(-0)}),u||(((h=t(function(e,t){kb(e,p);e=Xb(new d,e,h);return null!=t&&Ob(t,e[f],{that:e,AS_ENTRIES:l}),e})).prototype=p).constructor=h),(a||s)&&(r("delete"),r("has"),l)&&r("get"),(s||i)&&r(f),c)&&p.clear&&delete p.clear,T1({global:!0,forced:(g[e]=h)!=d},g),Xy(h,e),c||n.setStrong(h,e,l),h}function Fb(e){return e.frozen||(e.frozen=new Tb)}function Tb(){this.entries=[]}function _b(e,t){return e2(e.entries,function(e){return e[0]===t})}var Pb=0,jb=Gv.set,Nb=Gv.getterFor("Array Iterator"),Ib=Qy(Array,"Array",function(e,t){jb(this,{type:"Array Iterator",target:A1(e),index:0,kind:t})},function(){var e=Nb(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Lb=(Ry.Arguments=Ry.Array,py("keys"),py("values"),py("entries"),m.Array),Rb=Math.max,Mb=$1.f,zb="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Hb={f:function(e){if(!zb||"Window"!=Zv(e))return Mb(A1(e));var t=e;try{return Mb(t)}catch(t){return Cb(zb)}}},$b=kg(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),Vb=Object.isExtensible,Ub=kg(function(){Vb(1)})||$b?function(e){return!!Qg(e)&&(!$b||"ArrayBuffer"!=Zv(e))&&(!Vb||Vb(e))}:Vb,Wb=!kg(function(){return Object.isExtensible(Object.preventExtensions({}))}),Gb=xg(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=xv.f,r=!1,a=Ag("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=$1.f,i=b([].splice),e={};e[a]=1,o(e).length&&($1.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},T1({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Hb.f}))},fastKey:function(e,t){if(!Qg(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!zg(e,a)){if(!Ub(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!zg(e,a)){if(!Ub(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return Wb&&r&&Ub(e)&&!zg(e,a)&&n(e),e}};Uv[a]=!0}),qb=m.TypeError,Kb=Ab.prototype,Yb=m.TypeError,Xb=function(e,t,n){return hm&&Ug(t=t.constructor)&&t!==n&&Qg(t=t.prototype)&&t!==n.prototype&&hm(e,t),e},Zb=Gb.getWeakData,Jb=Gv.set,Qb=Gv.getterFor,e2=s.find,t2=s.findIndex,n2=b([].splice),r2=0;Tb.prototype={get:function(e){e=_b(this,e);if(e)return e[1]},has:function(e){return!!_b(this,e)},set:function(e,t){var n=_b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=t2(this.entries,function(e){return e[0]===t});return~e&&n2(this.entries,e,1),!!~e}};function o2(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}function i2(e,t){if(e){if(e[p2]!==g2)try{Ev(e,p2,g2)}catch(t){e[p2]=g2}if(e[h2]||Ev(e,h2,t),n1[t])for(var n in Ib)if(e[n]!==Ib[n])try{Ev(e,n,Ib[n])}catch(t){e[n]=Ib[n]}}}var a2,u2,s2,l2,c2,f2,h={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=Zb(iv(t),!0);return!0===o?Fb(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){kb(e,a),Jb(e,{type:n,id:r2++,frozen:void 0}),null!=t&&Ob(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=Qb(n);return Sb(a,{delete:function(e){var t,n=u(this);return!!Qg(e)&&(!0===(t=Zb(e))?Fb(n).delete(e):t&&zg(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!Qg(e)&&(!0===(t=Zb(e))?Fb(n).has(e):t&&zg(t,n.id))}}),Sb(a,r?{get:function(e){var t,n=u(this);if(Qg(e))return!0===(t=Zb(e))?Fb(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},d2=Gv.enforce,i=!m.ActiveXObject&&"ActiveXObject"in m,p=Bb("WeakMap",o2,h),p2=(c&&i&&(a2=h.getConstructor(o2,"WeakMap",!0),Gb.enable(),d=p.prototype,u2=b(d.delete),s2=b(d.has),l2=b(d.get),c2=b(d.set),Sb(d,{delete:function(e){var t;return Qg(e)&&!Ub(e)?((t=d2(this)).frozen||(t.frozen=new a2),u2(this,e)||t.frozen.delete(e)):u2(this,e)},has:function(e){var t;return Qg(e)&&!Ub(e)?((t=d2(this)).frozen||(t.frozen=new a2),s2(this,e)||t.frozen.has(e)):s2(this,e)},get:function(e){var t;return!Qg(e)||Ub(e)||((t=d2(this)).frozen||(t.frozen=new a2),s2(this,e))?l2(this,e):t.frozen.get(e)},set:function(e,t){var n;return!Qg(e)||Ub(e)||((n=d2(this)).frozen||(n.frozen=new a2),s2(this,e))?c2(this,e,t):n.frozen.set(e,t),this}})),Bg("iterator")),h2=Bg("toStringTag"),g2=Ib.values;for(f2 in n1)i2(m[f2]&&m[f2].prototype,f2);i2(o1,"DOMTokenList");var v2=new WeakMap,y2=new WeakMap,m2=new WeakMap,b2=new WeakMap,w2=new WeakMap,x2=new WeakMap,E2=new WeakMap,D2=new WeakMap,S2=new WeakMap,C2=new WeakMap,A2=new WeakMap,O2=new WeakMap,k2=new WeakMap,B2=new WeakMap,F2=new WeakMap,T2=new WeakMap,_2=new WeakMap,P2=new WeakMap,j2=new WeakMap,N2=new WeakMap,I2=new WeakMap,L2=new WeakMap,R2=new WeakMap,M2=new WeakMap,z2=new WeakMap,H2=s.find,$2=!0;"find"in[]&&Array(1).find(function(){$2=!1}),T1({target:"Array",proto:!0,forced:$2},{find:function(e){return H2(this,e,1<arguments.length?arguments[1]:void 0)}}),py("find"),T1({global:!0},{globalThis:m});const V2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];N.fn.css=Xf,N.fn.append=nd,N.fn.addClass=If,N.fn.removeClass=Lf,N.fn.hasClass=Rf,N.fn.on=Vf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.removeAttr=zf,N.fn.hide=Kf,N.fn.show=Yf,N.fn.offset=qf,N.fn.width=Wf,N.fn.height=Gf,N.fn.parent=od,N.fn.parents=id,N.fn.is=td,N.fn.dataset=Hf,N.fn.val=$f,N.fn.text=ed,N.fn.html=Qf,N.fn.children=ud,N.fn.remove=sd,N.fn.find=ad,N.fn.each=Zf,N.fn.empty=ld;function U2(e){return W2(e)&&1===e.nodeType}function W2(e){var t=J2(e);return!!t&&e instanceof t.Node}function G2(e){var t=e&&e.anchorNode&&J2(e.anchorNode);return!!t&&e instanceof t.Selection}function q2(e){return W2(e)&&3===e.nodeType}function K2(e){var t;return null!=(t=window.document.getElementById(e))?t:(null==(t=null==(t=window.document.activeElement)?void 0:t.shadowRoot)?void 0:t.getElementById(e))||null}function Y2(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(W2(r=i)&&8===r.nodeType||U2(i)&&0===i.childNodes.length||U2(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]}var X2,Z2,J2=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null};function Q2(e){return 0===e.length||(e=e[0]).nodeType!==X2.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Z2=X2=X2||{})[Z2.ELEMENT_NODE=1]="ELEMENT_NODE",Z2[Z2.TEXT_NODE=3]="TEXT_NODE",Z2[Z2.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Z2[Z2.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Z2[Z2.COMMENT_NODE=8]="COMMENT_NODE",Z2[Z2.DOCUMENT_NODE=9]="DOCUMENT_NODE",Z2[Z2.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Z2[Z2.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;function ew(t){return function(e){e=uy(Sg(e));return 1&t&&(e=dw(e,pw,"")),e=2&t?dw(e,hw,""):e}}var tw,nw="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),rw="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ow=("undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),"undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent)),u="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),v="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),iw="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),aw=("undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),!v&&!u&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges),I={getWindow:function(e){e=I2.get(e);if(e)return e;throw new Error("Unable to find a host window element for this editor")},findKey:function(e,t){var n=N2.get(t);return n||(n=new Db,N2.set(t,n)),n},setNewKey:function(e){var t=new Db;N2.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=F2.get(r);if(null==o){if(P.isEditor(r))return n;break}var i=B2.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){var t;return e.isDestroyed?window.document:((t=(e=I.toDOMNode(e,e)).getRootNode())instanceof Document||t instanceof ShadowRoot)&&null!=t.getSelection?t:e.ownerDocument},getParentNode:function(e,t){return F2.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=I.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){t=[I.findPath(e,t)[0]];return R.get(e,t)},toDOMNode:function(e,t){if(e=P.isEditor(t)?T2.get(e):(e=I.findKey(e,t),P2.get(e)))return e;throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t))},hasDOMNode:function(e,t,n){var r,n=(n=void 0===n?{}:n).editable,n=void 0!==n&&n,o=I.toDOMNode(e,e);try{r=U2(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===o&&(!n||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=z.isBackward(t),n=I.toDOMPoint(e,n),t=z.isCollapsed(t)?n:I.toDOMPoint(e,r),r=I.getWindow(e).document.createRange(),e=xb(o?t:n,2),i=e[0],e=e[1],o=xb(o?n:t,2),n=o[0],t=o[1],o=!!(U2(i)?i:i.parentElement).getAttribute("data-slate-zero-width"),a=!!(U2(n)?n:n.parentElement).getAttribute("data-slate-zero-width");return r.setStart(i,o?1:e),r.setEnd(n,a?1:t),r},toDOMPoint:function(e,t){var n,r,o,i=xb(P.node(e,t.path),1)[0],i=I.toDOMNode(e,i),i=(P.void(e,{at:t})&&(t={path:t.path,offset:0}),Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]"))),a=0;try{for(var u=wb(i),s=u.next();!s.done;s=u.next()){var l=s.value,c=l.childNodes[0];if(null!=c&&null!=c.textContent){var f=c.textContent.length,d=l.getAttribute("data-slate-length"),p=a+(null==d?f:parseInt(d,10));if(t.offset<=p){o=[c,Math.min(f,Math.max(0,t.offset-a))];break}a=p}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o)return o;throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t))},toSlateNode:function(e,t){var t=U2(t)?t:t.parentElement,n=(t=t&&!t.hasAttribute("data-slate-node")?t.closest("[data-slate-node]"):t)?_2.get(t):null;if(n)return n;throw new Error("Cannot resolve a Slate node from DOM node: "+t)},findEventRange:function(e,t){var n=(t="nativeEvent"in t?t.nativeEvent:t).clientX,r=t.clientY,o=t.target;if(null!=n&&null!=r){var i,a=I.toSlateNode(e,t.target),u=I.findPath(e,a);if(P.isVoid(e,a)){o=o.getBoundingClientRect(),a=e.isInline(a)?n-o.left<o.left+o.width-n:r-o.top<o.top+o.height-r,o=P.point(e,u,{edge:a?"start":"end"}),u=a?P.before(e,o):P.after(e,o);if(u)return P.range(e,u)}a=this.getWindow(e).document;if(a.caretRangeFromPoint?i=a.caretRangeFromPoint(n,r):(o=a.caretPositionFromPoint(n,r))&&((i=a.createRange()).setStart(o.offsetNode,o.offset),i.setEnd(o.offsetNode,o.offset)),i)return I.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}throw new Error("Cannot resolve a Slate range from a DOM event: "+t)},toSlateRange:function(e,t,n){var r,o,i,a=n.exactMatch,n=n.suppressThrow;if((G2(t)?t.anchorNode:t.startContainer)&&(i=G2(t)?(u=t.anchorNode,s=t.anchorOffset,r=t.focusNode,o=t.focusOffset,iw&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(u=t.startContainer,s=t.startOffset,r=t.endContainer,o=t.endOffset,t.collapsed)),null==u||null==r||null==s||null==o)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var u,s,t=I.toSlatePoint(e,[u,s],{exactMatch:a,suppressThrow:n});return t&&(u=i?t:I.toSlatePoint(e,[r,o],{exactMatch:a,suppressThrow:n}))?z.isExpanded(s={anchor:t,focus:u})&&z.isForward(s)&&U2(r)&&P.void(e,{at:s.focus,mode:"highest"})?P.unhangRange(e,s,{voids:!0}):s:null},toSlatePoint:function(e,i,t){var n,r,o,a,u=t.exactMatch,t=t.suppressThrow,u=xb(u?i:function(){var e,t=xb(i,2),n=t[0],t=t[1];if(U2(n)&&n.childNodes.length){var r=t===n.childNodes.length;for(n=(e=xb(Y2(n,r?t-1:t,r?"backward":"forward"),2))[0],r=e[1]<t;U2(n)&&n.childNodes.length;)var o=r?n.childNodes.length-1:0,n=xb(Y2(n,o,r?"backward":"forward"),1)[0];t=r&&null!=n.textContent?n.textContent.length:0}return[n,t]}(),2),s=u[0],u=u[1],l=s.parentNode,c=null,f=0;if(l&&(n=l.closest('[data-slate-void="true"]'),o=null,(r=l.closest("[data-slate-leaf]"))?(c=r.closest('[data-slate-node="text"]'),(a=I.getWindow(e).document.createRange()).setStart(c,0),a.setEnd(s,u),s=a.cloneContents(),Eb(Eb([],xb(wf(s.querySelectorAll("[data-slate-zero-width]")))),xb(wf(s.querySelectorAll("[contenteditable=false]")))).forEach(function(e){e.parentNode.removeChild(e)}),f=s.textContent.length,o=c):n&&((r=n.querySelector("[data-slate-leaf]"))?(c=r.closest('[data-slate-node="text"]'),f=(o=r).textContent.length,o.querySelectorAll("[data-slate-zero-width]").forEach(function(e){f-=e.textContent.length})):f=1),o)&&f===o.textContent.length&&(l.hasAttribute("data-slate-zero-width")||rw&&null!=(u=o.textContent)&&u.endsWith("\n"))&&f--,c)return a=I.toSlateNode(e,c),{path:I.findPath(e,a),offset:f};if(t)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+i)},hasRange:function(e,t){var n=t.anchor,t=t.focus;return P.hasPath(e,n.path)&&P.hasPath(e,t.path)},getNodeType:function(e){return _.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(e){return R.string(e)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=P.nodes(e,{universal:!0});try{for(var i=wb(o),a=i.next();!a.done;a=i.next()){var u=xb(a.value,1)[0];_.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,e=xb(P.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==e?null:e[0]},getSelectedTextNode:function(e){e=xb(P.nodes(e,{match:function(e){return H.isText(e)},universal:!0}),1)[0];return null==e?null:e[0]},isNodeSelected:function(e,t){e=xb(P.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=e&&xb(e,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(P.isEnd(e,n.anchor,t)||P.isEnd(e,n.focus,t))},getTextarea:function(e){e=v2.get(e);if(null==e)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(e){return b2.get(e)||null},getHoverbar:function(e){return x2.get(e)||null},normalizeContent:function(n){n.children.forEach(function(e,t){n.normalizeNode([e,[t]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,t=t.onMaxLength;return"number"!=typeof n||n<=0?1/0:((n=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length)<=0&&t&&t(e),n)},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=I.getTextarea(t).$textArea,i=null==i?void 0:i[0].childNodes;if(i)try{for(var a=wb(Array.from(i)),u=a.next();!u.done;u=a.next()){var s=u.value;if(3!==s.nodeType)break;s.remove()}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}i=P.nodes(t,{match:function(e){return!(!_.isElement(e)||t.isInline(e))},universal:!0});try{for(var l=wb(i),c=l.next();!c.done;c=l.next()){var f,d=c.value;null!=d&&(f=d[0],function e(t,n){if(!(t instanceof HTMLElement&&"true"===t.dataset.slateVoid))for(var r=t.childNodes,o=r.length;o--;){var i=r[o],a=i.nodeType;3==a?n(i,t):1!=a&&9!=a&&11!=a||e(i,n)}}(I.toDOMNode(t,f),function(e,t){var n=N(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}},isLastNode:function(e,t){e=e.children||[];return e[e.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=P.nodes(t,{match:function(e){return t.isVoid(e)}}),o=0;try{for(var i=wb(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return 0<o},isSelectedEmptyParagraph:function(e){var t=e.selection;return null!=t&&!z.isExpanded(t)&&null!==(t=I.getSelectedNodeByType(e,"paragraph"))&&1===(e=t.children).length&&(""===e[0].text||void 0)},isEmptyPath:function(e,t){e=P.node(e,t);return null!=e&&1===(t=xb(e,1)[0].children).length&&""===t[0].text}},uw=1,sw={},lw={},cw=s.filter,r1=Dm("filter"),fw=(T1({target:"Array",proto:!0,forced:!r1},{filter:function(e){return cw(this,e,1<arguments.length?arguments[1]:void 0)}}),"\t\n\v\f\r                 \u2028\u2029\ufeff"),dw=b("".replace),l="["+fw+"]",pw=RegExp("^"+l+l+"*"),hw=RegExp(l+l+"*$"),c={start:ew(1),end:ew(2),trim:ew(3)},gw=qv.PROPER,vw=c.trim,yw=(T1({target:"String",proto:!0,forced:(tw="trim",kg(function(){return fw.trim()||"​…᠎"!=="​…᠎".trim()||gw&&fw.trim.name!==tw}))},{trim:function(){return vw(this)}}),[]),mw={};function bw(e,t,n){n=n.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}function ww(e){var e=Og(e),t=xv.f;Jg&&e&&!e[Sw]&&t(e,Sw,{configurable:!0,get:function(){return this}})}function xw(e,t){var n,e=iv(e).constructor;if(void 0===e||null==(n=iv(e)[Aw]))return t;if(w1(e=n))return e;throw Cw(dv(e)+" is not a constructor")}var Ew,Dw,i=m.Promise,Sw=Bg("species"),Cw=m.TypeError,Aw=Bg("species"),Ow=b([].slice),h=/(?:ipad|iphone|ipod).*applewebkit/i.test(g),kw="process"==Zv(m.process),p=m.setImmediate,d=m.clearImmediate,Bw=m.process,Fw=m.Dispatch,Tw=m.Function,o1=m.MessageChannel,_w=m.String,Pw=0,jw={};try{Ew=m.location}catch(Z2){}function Nw(e){return function(){Rw(e)}}function Iw(e){Rw(e.data)}function Lw(e){m.postMessage(_w(e),Ew.protocol+"//"+Ew.host)}var Rw=function(e){var t;zg(jw,e)&&(t=jw[e],delete jw[e],t())};p&&d||(p=function(e){var t=Ow(arguments,1);return jw[++Pw]=function(){Jm(Ug(e)?e:Tw(e),void 0,t)},Dw(Pw),Pw},d=function(e){delete jw[e]},kw?Dw=function(e){Bw.nextTick(Nw(e))}:Fw&&Fw.now?Dw=function(e){Fw.now(Nw(e))}:o1&&!h?(u=(v=new o1).port2,v.port1.onmessage=Iw,Dw=Cv(u.postMessage,u)):m.addEventListener&&Ug(m.postMessage)&&!m.importScripts&&Ew&&"file:"!==Ew.protocol&&!kg(Lw)?(Dw=Lw,m.addEventListener("message",Iw,!1)):Dw="onreadystatechange"in Fg("script")?function(e){Dy.appendChild(Fg("script")).onreadystatechange=function(){Dy.removeChild(this),Rw(e)}}:function(e){setTimeout(Nw(e),0)});var Mw,zw,Hw,$w,Vw,Uw,Ww,s={set:p,clear:d},r1=/ipad|iphone|ipod/i.test(g)&&void 0!==m.Pebble,l=/web0s(?!.*chrome)/i.test(g),c=N1.f,Gw=s.set,o1=m.MutationObserver||m.WebKitMutationObserver,v=m.document,qw=m.process,u=m.Promise,p=c(m,"queueMicrotask"),d=p&&p.value;d||(Mw=function(){var e,t;for(kw&&(e=qw.domain)&&e.exit();zw;){t=zw.fn,zw=zw.next;try{t()}catch(e){throw zw?$w():Hw=void 0,e}}Hw=void 0,e&&e.enter()},$w=h||kw||l||!o1||!v?!r1&&u&&u.resolve?((g=u.resolve(void 0)).constructor=u,Ww=Cv(g.then,g),function(){Ww(Mw)}):kw?function(){qw.nextTick(Mw)}:(Gw=Cv(Gw,m),function(){Gw(Mw)}):(Vw=!0,Uw=v.createTextNode(""),new o1(Mw).observe(Uw,{characterData:!0}),function(){Uw.data=Vw=!Vw}));function Kw(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=hv(n),this.reject=hv(r)}var Yw,Xw,Zw,Jw,Qw=d||function(e){e={fn:e,next:void 0};Hw&&(Hw.next=e),zw||(zw=e,$w()),Hw=e},e4={f:function(e){return new Kw(e)}},t4=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},n4="object"==typeof window,r4=s.set,o4=Bg("species"),i4="Promise",a4=Gv.getterFor(i4),u4=Gv.set,s4=Gv.getterFor(i4),c=i&&i.prototype,l4=i,c4=c,f4=m.TypeError,d4=m.document,p4=m.process,h4=e4.f,g4=h4,v4=!!(d4&&d4.createEvent&&m.dispatchEvent),y4=Ug(m.PromiseRejectionEvent),m4=!1,p=Z1(i4,function(){var e,t=$v(l4),n=t!==String(l4);return!n&&66===Wg||!(51<=Wg&&/native code/.test(t))&&(t=function(e){e(function(){},function(){})},((e=new l4(function(e){e(1)})).constructor={})[o4]=t,!(m4=e.then(function(){})instanceof t)||!n&&n4&&!y4)}),h=p||!Ky(function(e){l4.all(e).catch(function(){})}),b4=function(e){var t;return!(!Qg(e)||!Ug(t=e.then))&&t},w4=function(d,p){var h;d.notified||(d.notified=!0,h=d.reactions,Qw(function(){for(var r,e=d.value,t=1==d.state,n=0;h.length>n;){var o,i,a,u=h[n++],s=t?u.ok:u.fail,l=u.resolve,c=u.reject,f=u.domain;try{s?(t||(2===d.rejection&&function(t){uv(r4,m,function(){var e=t.facade;kw?p4.emit("rejectionHandled",e):x4("rejectionhandled",e,t.value)})}(d),d.rejection=1),!0===s?o=e:(f&&f.enter(),o=s(e),f&&(f.exit(),a=!0)),o===u.promise?c(f4("Promise-chain cycle")):(i=b4(o))?uv(i,o,l,c):l(o)):c(e)}catch(e){f&&!a&&f.exit(),c(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&(r=d,uv(r4,m,function(){var e,t=r.facade,n=r.value;if(E4(r)&&(e=t4(function(){kw?p4.emit("unhandledRejection",n,t):x4("unhandledrejection",t,n)}),r.rejection=kw||E4(r)?2:1,e.error))throw e.value}))}))},x4=function(e,t,n){var r;v4?((r=d4.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),m.dispatchEvent(r)):r={promise:t,reason:n},!y4&&(t=m["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){var n=m.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},E4=function(e){return 1!==e.rejection&&!e.parent},D4=function(t,n,r){return function(e){t(n,e,r)}},S4=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,w4(e,!0))},C4=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw f4("Promise can't be resolved itself");var r=b4(e);r?Qw(function(){var t={done:!1};try{uv(r,e,D4(C4,t,n),D4(S4,t,n))}catch(e){S4(t,e,n)}}):(n.value=e,n.state=1,w4(n,!1))}catch(e){S4({done:!1},e,n)}}};if(p&&(c4=(l4=function(e){kb(this,c4),hv(e),uv(Yw,this);var t=a4(this);try{e(D4(C4,t),D4(S4,t))}catch(e){S4(t,e)}}).prototype,(Yw=function(e){u4(this,{type:i4,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Sb(c4,{then:function(e,t){var n=s4(this),r=n.reactions,o=h4(xw(this,l4));return o.ok=!Ug(e)||e,o.fail=Ug(t)&&t,o.domain=kw?p4.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&w4(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Xw=function(){var e=new Yw,t=a4(e);this.promise=e,this.resolve=D4(C4,t),this.reject=D4(S4,t)},e4.f=h4=function(e){return e===l4||e===Zw?new Xw:g4(e)},Ug(i))&&c!==Object.prototype){Jw=c.then,m4||(Kv(c,"then",function(e,t){var n=this;return new l4(function(e,t){uv(Jw,n,e,t)}).then(e,t)},{unsafe:!0}),Kv(c,"catch",c4.catch,{unsafe:!0}));try{delete c.constructor}catch(Z2){}hm&&hm(c,c4)}T1({global:!0,wrap:!0,forced:p},{Promise:l4}),Xy(l4,i4,!1),ww(i4),Zw=Og(i4),T1({target:i4,stat:!0,forced:p},{reject:function(e){var t=h4(this);return uv(t.reject,void 0,e),t.promise}}),T1({target:i4,stat:!0,forced:p},{resolve:function(e){return e=e,iv(t=this),Qg(e)&&e.constructor===t?e:((0,(t=e4.f(t)).resolve)(e),t.promise);var t}}),T1({target:i4,stat:!0,forced:h},{all:function(e){var u=this,t=h4(u),s=t.resolve,l=t.reject,n=t4(function(){var r=hv(u.resolve),o=[],i=0,a=1;Ob(e,function(e){var t=i++,n=!1;a++,uv(r,u,e).then(function(e){n||(n=!0,o[t]=e,--a)||s(o)},l)}),--a||s(o)});return n.error&&l(n.value),t.promise},race:function(e){var n=this,r=h4(n),o=r.reject,t=t4(function(){var t=hv(n.resolve);Ob(e,function(e){uv(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}});var A4=f.UNSUPPORTED_Y,O4=Math.min,k4=[].push,B4=b(/./.exec),F4=b(k4),T4=b("".slice);function _4(e){Promise.resolve().then(e)}function P4(e){return"w-e-element-"+e}Sm("split",function(o,h,g){var v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=uy(Sg(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!_y(e))return uv(h,n,e,r);for(var o,i,a,u=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,l=new RegExp(e.source,t+"g");(o=uv(Ym,l,n))&&!((i=l.lastIndex)>s&&(F4(u,T4(n,s,o.index)),1<o.length&&o.index<n.length&&Jm(k4,u,Cb(o,1)),a=o[0].length,s=i,r<=u.length));)l.lastIndex===o.index&&l.lastIndex++;return s===n.length?!a&&B4(l,"")||F4(u,""):F4(u,T4(n,s)),r<u.length?Cb(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:uv(h,this,e,t)}:h;return[function(e,t){var n=Sg(this),r=null==e?void 0:gv(e,o);return r?uv(r,e,n,t):uv(v,uy(n),e,t)},function(e,t){var n=iv(this),r=uy(e),e=g(v,n,r,t,v!==h);if(e.done)return e.value;var e=xw(n,RegExp),o=n.unicode,i=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(A4?"g":"y"),a=new e(A4?"^(?:"+n.source+")":n,i),u=void 0===t?4294967295:t>>>0;if(0==u)return[];if(0===r.length)return null===Am(a,r)?[r]:[];for(var s=0,l=0,c=[];l<r.length;){a.lastIndex=A4?0:l;var f,d=Am(a,A4?T4(r,l):r);if(null===d||(f=O4(p1(a.lastIndex+(A4?l:0)),r.length))===s)l=Cm(r,l,o);else{if(F4(c,T4(r,s,l)),c.length===u)return c;for(var p=1;p<=d.length-1;p++)if(F4(c,d[p]),c.length===u)return c;l=s=f}}return F4(c,T4(r,s)),c}]},!!kg(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),A4);function j4(e,t){return t=(t.top+t.bottom)/2,e.top<=t&&e.bottom>=t}var N4=function(e,t,n){t=I.toDOMRange(e,t).getBoundingClientRect(),e=I.toDOMRange(e,n).getBoundingClientRect();return j4(t,e)&&j4(e,t)},I4=["span","b","strong","i","em","s","strike","u","font","sub","sup"],L4=[],R4=[],M4={},z4=xv.f,l=$1.f,H4=Gv.enforce,$4=Bg("match"),V4=m.RegExp,U4=V4.prototype,W4=m.SyntaxError,G4=b(ty),q4=b(U4.exec),K4=b("".charAt),Y4=b("".replace),X4=b("".indexOf),Z4=b("".slice),J4=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Q4=/a/g,ex=/a/g,r1=new V4(Q4)!==Q4,tx=f.MISSED_STICKY,nx=f.UNSUPPORTED_Y,u=Jg&&(!r1||tx||Nm||Lm||kg(function(){return ex[$4]=!1,V4(Q4)!=Q4||V4(ex)==ex||"/a/i"!=V4(Q4,"i")}));if(Z1("RegExp",u)){for(var rx=function(e,t){var n,r,o=sv(U4,this),i=_y(e),a=void 0===t,u=[],s=e;if(!o&&i&&a&&e.constructor===rx)return e;if((i||sv(U4,e))&&(e=e.source,a)&&(t="flags"in s?s.flags:G4(s)),e=void 0===e?"":uy(e),t=void 0===t?"":uy(t),s=e,i=t=Nm&&"dotAll"in Q4&&(n=!!t&&-1<X4(t,"s"))?Y4(t,/s/g,""):t,tx&&"sticky"in Q4&&(r=!!t&&-1<X4(t,"y"))&&nx&&(t=Y4(t,/y/g,"")),Lm&&(e=(a=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=K4(e,r)))t+=K4(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:q4(J4,Z4(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||zg(a,c))throw new W4("Invalid capture group name");a[c]=!0,s=!(i[i.length]=[c,l]),c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],u=a[1]),a=Xb(V4(e,t),o?this:U4,rx),(n||r||u.length)&&(t=H4(a),n&&(t.dotAll=!0,t.raw=rx(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=K4(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+K4(e,++r);return o}(e),i)),r&&(t.sticky=!0),u.length)&&(t.groups=u),e!==s)try{Ev(a,"source",""===s?"(?:)":s)}catch(e){}return a},ox=l(V4),ix=0;ox.length>ix;)!function(t){t in rx||z4(rx,t,{configurable:!0,get:function(){return V4[t]},set:function(e){V4[t]=e}})}(ox[ix++]);(U4.constructor=rx).prototype=U4,Kv(m,"RegExp",rx)}ww("RegExp");var ax=new RegExp(String.fromCharCode(160),"g");function ux(e){return e.replace(ax," ")}function sx(e,t){var n=e.length;if(n){e=e[n-1];if(H.isText(e)){n=Object.keys(e);if(1===n.length&&"text"===n[0])return e.text=e.text+t,!0}}return!1}function lx(e,t,n){return{type:"paragraph",children:[{text:N(e).text().replace(/\s+/gm," ")}]}}function cx(n,r){o=r,i=[],null==(t=n).attr("data-w-e-is-void")&&(1===(t=t[0].childNodes).length&&"BR"===t[0].nodeName?i.push({text:""}):t.forEach(function(e){var t;e.nodeType!==X2.ELEMENT_NODE?e.nodeType!==X2.TEXT_NODE||""===(t=e.textContent||"").trim()&&0<=t.indexOf("\n")||t&&(t=ux(t),sx(i,t)||i.push({text:t})):"BR"===e.nodeName?sx(i,"\n")||i.push({text:"\n"}):(t=dx(N(e),o),Array.isArray(t)?t.forEach(function(e){return i.push(e)}):i.push(t))}));var o,i,e=i,t=function(e){for(var t in M4)if(e[0].matches(t))return M4[t];return lx}(n)(n[0],e,r);return(t=Array.isArray(t)?t:[t]).forEach(function(t){P.isVoid(r,t)||(0===e.length&&(t.children=[{text:n.text().replace(/\s+/gm," ")}]),R4.forEach(function(e){t=e(n[0],t,r)}))}),t}function fx(t,n){0===t.parents("pre").length&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var e=t[0].textContent||"",r={text:ux(e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return R4.forEach(function(e){r=e(t[0],r,n)}),r}function dx(n,e){L4.forEach(function(e){var t=e.selector,e=e.preParseHtml;n[0].matches(t)&&(n=N(e(n[0])))});var t=Q2(n);return("span"===t?n.attr("data-w-e-type")?cx:fx:"code"===t?"pre"===Q2(n.parent())?cx:fx:I4.includes(t)?fx:cx)(n,e)}function px(e,t,n){var r=N(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function hx(t,e){var n=[],e=N("<div>"+(e=0!==(e=""===(e=void 0===e?"":e)?"<p><br></p>":e).indexOf("<")?e.split(/\n/).map(function(e){return"<p>"+e+"</p>"}).join(""):e)+"</div>");return Array.from(e.children()).forEach(function(e){e=dx(N(e),t);Array.isArray(e)?e.forEach(function(e){return n.push(e)}):n.push(e)}),n}var gx=xv.f,vx=Gb.fastKey,yx=Gv.set,mx=Gv.getterFor,bx=(Bb("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,n,r,o){function i(e,t,n){var r,o=s(e),i=a(e,t);return i?i.value=n:(o.last=i={index:r=vx(t,!0),key:t,value:n,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),Jg?o.size++:e.size++,"F"!==r&&(o.index[r]=i)),e}function a(e,t){var n,e=s(e),r=vx(t);if("F"!==r)return e.index[r];for(n=e.first;n;n=n.next)if(n.key==t)return n}var e=e(function(e,t){kb(e,u),yx(e,{type:n,index:Oy(null),first:void 0,last:void 0,size:0}),Jg||(e.size=0),null!=t&&Ob(t,e[o],{that:e,AS_ENTRIES:r})}),u=e.prototype,s=mx(n);return Sb(u,{clear:function(){for(var e=s(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Jg?e.size=0:this.size=0},delete:function(e){var t,n,r=s(this),e=a(this,e);return e&&(t=e.next,n=e.previous,delete r.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first==e&&(r.first=t),r.last==e&&(r.last=n),Jg?r.size--:this.size--),!!e},forEach:function(e){for(var t,n=s(this),r=Cv(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!a(this,e)}}),Sb(u,r?{get:function(e){e=a(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),Jg&&gx(u,"size",{get:function(){return s(this).size}}),e},setStrong:function(e,t,n){var r=t+" Iterator",o=mx(t),i=mx(r);Qy(e,t,function(e,t){yx(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:e.target=void 0,done:!0}},n?"entries":"values",!n,!0),ww(t)}}),new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]));function wx(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):j.insertNodes(e,t,{mode:"highest"})}function xx(e){return null!=e}function Ex(e){return!!function(e){if("function"==typeof e&&hasOwnProperty.call(e,"length")){try{if("number"!=typeof e.length)return;if("function"!=typeof e.call)return;if("function"!=typeof e.apply)return}catch(e){return}var t=e;if(xx(t)&&hasOwnProperty.call(Ox,typeof t))try{return!(t.constructor&&t.constructor.prototype===t)}catch(t){}return!void 0}}(e)&&!kx.test(Bx.call(e))}function Dx(e){return null!=e}function Sx(e){var o=Nx(null);return jx.call(arguments,function(e){if(Dx(e)){var t,n=Object(e),r=o;for(t in n)r[t]=n[t]}}),o}function Cx(e){if("function"!=typeof e)throw new TypeError(e+" is not a function")}var Ax=function(e){var l=e,c=l.insertText;return l.insertFragment,l.setFragmentData=function(e){var t=l.selection;if(t){var n,r,o=xb(z.edges(t),2),i=o[0],o=o[1],i=P.void(l,{at:i.path}),o=P.void(l,{at:o.path});if(!z.isCollapsed(t)||i)return n=(t=I.toDOMRange(l,t)).cloneContents(),r=n.childNodes[0],n.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(r=e)}),o&&(o=xb(o,1)[0],t=t.cloneRange(),o=I.toDOMNode(l,o),t.setEndAfter(o),n=t.cloneContents()),i&&(r=n.querySelector("[data-slate-spacer]")),Array.from(n.querySelectorAll("[data-slate-zero-width]")).forEach(function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""}),q2(r)&&((o=r.ownerDocument.createElement("span")).style.whiteSpace="pre",o.appendChild(r),n.appendChild(o),r=o),t=l.getFragment(),i=JSON.stringify(t),o=window.btoa(encodeURIComponent(i)),r.setAttribute("data-slate-fragment",o),e.setData("application/x-slate-fragment",o),(t=n.ownerDocument.createElement("div")).appendChild(n),t.setAttribute("hidden","true"),n.ownerDocument.body.appendChild(t),e.setData("text/html",t.innerHTML),e.setData("text/plain",function e(t){var n,r="";if(q2(t)&&t.nodeValue)return t.nodeValue;if(U2(t)){try{for(var o=wb(Array.from(t.childNodes)),i=o.next();!i.done;i=o.next())r+=e(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}var a=getComputedStyle(t).getPropertyValue("display");"block"!==a&&"list"!==a&&"table-row"!==a&&"BR"!==t.tagName||(r+="\n")}return r}(t)),n.ownerDocument.body.removeChild(t),e}},l.insertData=function(e){var t,n,r=e.getData("application/x-slate-fragment");if(r){r=decodeURIComponent(window.atob(r)),r=JSON.parse(r);l.insertFragment(r)}else{var r=e.getData("text/plain"),o=e.getData("text/html");if(o)l.dangerouslyInsertHtml(o);else if(r){var o=r.split(/\r\n|\r|\n/),i=!1;try{for(var a=wb(o),u=a.next();!u.done;u=a.next()){var s=u.value;i&&j.splitNodes(l,{always:!0}),c(s),i=!0}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}}},l},Ox={object:!0,function:!0,undefined:!0},kx=/^\s*class[\s{/}]/,Bx=Function.prototype.toString,Fx=Object.keys,Tx=function(){try{return Object.keys("primitive"),1}catch(e){}}()?Object.keys:function(e){return Fx(Dx(e)?Object(e):e)},_x=Math.max,Px="function"==typeof(g=Object.assign)&&(g(g={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),g.foo+g.bar+g.trzy==="razdwatrzy")?Object.assign:function(t,n){var r,e,o,i=_x(arguments.length,2);for(t=Object(function(e){if(Dx(e))return e;throw new TypeError("Cannot use null or undefined")}(t)),o=function(e){try{t[e]=n[e]}catch(e){r=r||e}},e=1;e<i;++e)Tx(n=arguments[e]).forEach(o);if(void 0!==r)throw r;return t},jx=Array.prototype.forEach,Nx=Object.create,v="razdwatrzy",Ix=String.prototype.indexOf,Lx="function"==typeof v.contains&&!0===v.contains("dwa")&&!1===v.contains("foo")?String.prototype.contains:function(e){return-1<Ix.call(this,e,arguments[1])},Rx=xg(function(e){(e.exports=function(e,t){var n,r,o,i;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],xx(e)?(n=Lx.call(e,"c"),r=Lx.call(e,"e"),o=Lx.call(e,"w")):r=!(n=o=!0),e={value:t,configurable:n,enumerable:r,writable:o},i?Px(Sx(i),e):e}).gs=function(e,t,n){var r,o;return"string"!=typeof e?(o=n,n=t,t=e,e=null):o=arguments[3],xx(t)?Ex(t)?xx(n)?Ex(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,e=xx(e)?(r=Lx.call(e,"c"),Lx.call(e,"e")):!(r=!0),t={get:t,set:n,configurable:r,enumerable:e},o?Px(Sx(o),t):t}}),Mx=xg(function(e,t){var o,a=Function.prototype.apply,u=Function.prototype.call,r=Object.create,i=Object.defineProperty,n=Object.defineProperties,s=Object.prototype.hasOwnProperty,l={configurable:!0,enumerable:!1,writable:!0},c=function(e,t){var n,r;return Cx(t),o.call(r=this,e,n=function(){f.call(r,e,n),a.call(t,this,arguments)}),n.__eeOnceListener__=t,this},f=function(e,t){var n,r,o,i;if(Cx(t),s.call(this,"__ee__")&&(n=this.__ee__)[e])if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},d=function(e){var t,n,r,o,i;if(s.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)a.call(r,this,i)}else switch(arguments.length){case 1:u.call(o,this);break;case 2:u.call(o,this,arguments[1]);break;case 3:u.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];a.call(o,this,i)}},p={on:o=function(e,t){var n;return Cx(t),s.call(this,"__ee__")?n=this.__ee__:(n=l.value=r(null),i(this,"__ee__",l),l.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:c,off:f,emit:d},h={on:Rx(o),once:Rx(c),off:Rx(f),emit:Rx(d)},g=n({},h);e.exports=t=function(e){return null==e?r(g):n(Object(e),h)},t.methods=p});function zx(e){var t=M2.get(e);return null==t&&(t=Mx(),M2.set(e,t)),t}var Hx=new WeakMap;function $x(e,t){var n=Hx.get(e);null==n&&(n=new Set,Hx.set(e,n)),n.add(t)}function Vx(e){var e=I.getTextarea(e).$textAreaContainer,t=e.width(),n=e.height(),e=e.offset();return{top:e.top,left:e.left,width:t,height:n}}function Ux(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=Vx(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,r=r.height,e=I.toDOMRange(e,n).getClientRects()[0];if(null==e)return t;e.width;n=e.height,t={},o=e.top-o,e=e.left-i;return a/2<e?t.right=5+(a-e)+"px":t.left=5+e+"px",r/2<o?t.bottom=5+(r-o)+"px":t.top=(i=(i=o+n)<0?0:i)+5+"px",t}function Wx(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=_.isElement(t)&&e.isVoid(t),i=_.isElement(t)&&e.isInline(t),a=j2.get(t);if(null==a)return r;var t=a.getBoundingClientRect(),u=t.top,s=t.left,l=t.height,t=t.width,c=(o&&null!=(c=function(){var e=[];e.push(a);for(var t=0;0<e.length;){var n=e.pop();if(null==n)break;if(1e4<++t)break;var r=n.nodeName;if(1===n.nodeType){r=r.toLowerCase();if(V2.includes(r)||"iframe"===r||"video"===r)return n;var o=n.children||[],r=o.length;if(r)for(var i=r-1;0<=i;i--)e.push(o[i])}}return null}())&&(u=(c=c.getBoundingClientRect()).top,l=c.height),Vx(e));if(null==c)return r;var f,e=c.top,r=c.left,d=c.width,c=c.height,p={},u=u-e,e=s-r;if("bar"===n)return p.left=e+"px",40<u?p.bottom=c-u+5+"px":p.top=u+l+5+"px",p;if("modal"===n)return o?i?(d-t)/2<e?p.right=d-e+5+"px":p.left=e+t+5+"px":p.left="20px":p.left=e+"px",o?((f=u)<0&&(f=0),p.top=f+"px"):(c-l)/2<u?p.bottom=c-u+5+"px":((f=u+l)<0&&(f=0),p.top=f+5+"px"),p;throw new Error("type '"+n+"' is invalid")}function Gx(c,f){_4(function(){var e,t,n,r,o,i,a,u,s,l=Vx(c);null!=l&&(s=l.top,o=l.left,t=l.width,l=l.height,u=(n=f.offset()).top,n=n.left,r=f.width(),a=f.height(),s=u-s,o=n-o,0<=(i=f.attr("style")).indexOf("top")&&0<(e=s+a-l)&&(s=f.css("top"),a=parseInt(s.toString())-e,f.css("top",(a=a<0?0:a)+"px")),0<=i.indexOf("bottom")&&u<0&&(l=f.css("bottom"),s=parseInt(l.toString())-Math.abs(u),f.css("bottom",s+"px")),0<=i.indexOf("left")&&0<(e=o+r-t)&&(a=f.css("left"),l=parseInt(a.toString())-e,f.css("left",(l=l<0?0:l)+"px")),0<=i.indexOf("right"))&&n<0&&(u=f.css("right"),s=parseInt(u.toString())-Math.abs(n),f.css("right",s+"px"))})}var o1=Dm("slice"),qx=Bg("species"),Kx=m.Array,Yx=Math.max,d=(T1({target:"Array",proto:!0,forced:!o1},{slice:function(e,t){var n,r,o,i=A1(this),a=Av(i),u=O1(e,a),s=O1(void 0===t?a:t,a);if(h1(i)&&(n=i.constructor,(n=w1(n)&&(n===Kx||h1(n.prototype))||Qg(n)&&null===(n=n[qx])?void 0:n)===Kx||void 0===n))return Ow(i,u,s);for(r=new(void 0===n?Kx:n)(Yx(s-u,0)),o=0;u<s;u++,o++)u in i&&my(r,o,i[u]);return r.length=o,r}}),N1.f),Xx=b("".startsWith),Zx=b("".slice),Jx=Math.min,s=gy("startsWith"),c=!(s||!(i=d(String.prototype,"startsWith"))||i.writable),Qx=(T1({target:"String",proto:!0,forced:!c&&!s},{startsWith:function(e){var t=uy(Sg(this)),n=(hy(e),p1(Jx(1<arguments.length?arguments[1]:void 0,t.length))),e=uy(e);return Xx?Xx(t,e,n):Zx(t,n,n+e.length)===e}}),Object.assign),eE=Object.defineProperty,tE=b([].concat),p=!Qx||kg(function(){var e,t,n,r;return Jg&&1!==Qx({b:1},Qx(eE({},"a",{enumerable:!0,get:function(){eE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=Qx({},e)[n])||Q1(Qx({},t)).join("")!=r})?function(e,t){for(var n=Cg(e),r=arguments.length,o=1,i=V1.f,a=P1.f;o<r;)for(var u,s=s1(arguments[o++]),l=i?tE(Q1(s),i(s)):Q1(s),c=l.length,f=0;f<c;)u=l[f++],Jg&&!uv(a,s,u)||(n[u]=s[u]);return n}:Qx,nE=(T1({target:"Object",stat:!0,forced:Object.assign!==p},{assign:p}),["props","attrs","style","dataset","on","hook"]),rE=[],oE={};function iE(e,t,n){return pp(n.isInline(e)?"span":"div",null,t)}function aE(e,t){return pp("span",{"data-slate-string":!0},(t=void 0===t?!1:t)?e+"\n":e)}function uE(e,t){return pp("span",{"data-slate-zero-width":(t=void 0===t?!1:t)?"n":"z","data-slate-length":e=void 0===e?0:e},"\ufeff",t?pp("br",null):null)}function sE(e,n){var t=e.$scroll,r="w-e-textarea-"+e.id,o=n.getConfig(),i=o.readOnly,o=o.autoFocus,i=Zd("div#"+r,{props:{contentEditable:!(void 0!==i&&i)}}),a=n.children||[],a=(i.children=a.map(function(e,t){e=function n(e,t,r,o){if(B2.set(e,t),F2.set(e,r),_.isElement(e))return l=e,c=o,g=I.findKey(c,l),t=c.isInline(l),v=P.isVoid(c,l),y=P4(g.id),m={id:y,key:g.id,"data-slate-node":"element","data-slate-inline":t},b=l.type,x=void 0===(x=l.children)?[]:x,b=oE[b]||iE,x=v?null:x.map(function(e,t){return n(e,t,l,c)}),b=b(l,x,c),v&&(m["data-slate-void"]=!0,x=t?"span":"div",f=xb(R.texts(l),1),f=xb(f[0],1)[0],w=pp(x,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},n(f,0,l,c)),b=pp(x,{style:{position:"relative"}},b,w),B2.set(f,0),F2.set(f,l)),null==b.data&&(b.data={}),Object.assign(b.data,m),v||t||(d=l,h=p=b,rE.forEach(function(e){h=e(d,p)}),b=h),_4(function(){var e=K2(y);null!=e&&(P2.set(g,e),j2.set(l,e),_2.set(e,l))}),b;var i=e,u=r,s=o;if(null==i.text)throw new Error("Current node is not slate Text "+JSON.stringify(i));var a=I.findKey(s,i);if(null==(x=s.getConfig().decorate))throw new Error("Can not get config.decorate");var l,c,f,d,p,h,g,v,y,m,b,w=I.findPath(s,i),x=x([i,w]),E=H.decorations(i,x),w=E.map(function(a,e){var t,n,e=function(e,t,n,r){void 0===e&&(e=!1);var o=a.text,i=I.findPath(r,t),i=M.parent(i);if(P.isEditor(n))throw new Error("Text node "+JSON.stringify(t)+" parent is Editor");return r.isVoid(n)?uE(R.string(n).length):""!==o||n.children[n.children.length-1]!==t||r.isInline(n)||""!==P.string(r,i)?""===o?uE():e&&"\n"===o.slice(-1)?aE(o,!0):aE(o):uE(0,!0)}(e===E.length-1,i,u,s);return pp("span",{"data-slate-leaf":!0},(t=a,n=e,rE.forEach(function(e){n=e(t,n)}),n))}),D="w-e-text-"+a.id,x=pp("span",{"data-slate-node":"text",id:D,key:a.id},w);return _4(function(){var e=K2(D);null!=e&&(P2.set(a,e),j2.set(i,e),_2.set(e,i))}),x}(e,t,n,n);return function t(i){var e=i.data,a=void 0===e?{}:e,e=i.children,e=void 0===e?[]:e;Object.keys(a).forEach(function(e){var t,n,r,o=a[e];"key"!==e?nE.includes(e)||(e.startsWith("data-")?(r=e.slice(5),r=Fp(r),t=i,(n={})[r]=o,r=n,null==t.data&&(t.data={}),null==(t=t.data).dataset&&(t.dataset={}),Object.assign(t.dataset,r)):(n=i,(t={})[e]=o,r=t,null==n.data&&(n.data={}),null==(n=n.data).props&&(n.props={}),Object.assign(n.props,r)),delete a[e]):i.key=o}),0<e.length&&e.forEach(function(e){"string"!=typeof e&&t(e)})}(e),e}),A2.get(e));if(a=null==a?!0:a){var u=N('<div\n id="'+r+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>');t.append(u),u=(e.$textArea=u)[0],(s=Xd([tp,sp,dp,op,ap,Qd]))(u,i),A2.set(e,!1),O2.set(e,s)}else{var t=k2.get(e),s=O2.get(e);if(null==t||null==s)return;u=t.elm,s(t,i)}null==u&&null==(u=K2(r))||((a?o:n.isFocused())&&u.focus({preventScroll:!0}),a&&(s=J2(u))&&I2.set(n,s),T2.set(n,u),j2.set(n,u),_2.set(u,n),k2.set(e,i))}function lE(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function cE(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function fE(e,t){var n;if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)return cE((n=getComputedStyle(e,null)).overflowY,t)||cE(n.overflowX,t)||(t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(n=e))&&(t.clientHeight<n.scrollHeight||t.clientWidth<n.scrollWidth)}function dE(e,t,n,r,o,i,a,u){return i<e&&t<a||e<i&&a<t?0:i<=e&&u<=n||t<=a&&n<=u?i-e-r:t<a&&u<n||i<e&&n<u?a-t+o:0}function pE(e,t){var n=window,I=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,L=t.skipOverflowHiddenElements,R="function"==typeof i?i:function(e){return e!==i};if(!lE(e))throw new TypeError("Invalid target");for(var M=document.scrollingElement||document.documentElement,a=[],u=e;lE(u)&&R(u);){if((u=u.parentElement)===M){a.push(u);break}null!=u&&u===document.body&&fE(u)&&!fE(document.documentElement)||null!=u&&fE(u,L)&&a.push(u)}for(var s=n.visualViewport?n.visualViewport.width:innerWidth,l=n.visualViewport?n.visualViewport.height:innerHeight,c=window.scrollX||pageXOffset,f=window.scrollY||pageYOffset,t=e.getBoundingClientRect(),d=t.height,p=t.width,h=t.top,g=t.right,v=t.bottom,y=t.left,m="start"===r||"nearest"===r?h:"end"===r?v:h+d/2,b="center"===o?y+p/2:"end"===o?g:y,w=[],x=0;x<a.length;x++){var E=a[x],D=E.getBoundingClientRect(),S=D.height,C=D.width,A=D.top,z=D.right,O=D.bottom,D=D.left;if("if-needed"===I&&0<=h&&0<=y&&v<=l&&g<=s&&A<=h&&v<=O&&D<=y&&g<=z)return w;var k=getComputedStyle(E),B=parseInt(k.borderLeftWidth,10),F=parseInt(k.borderTopWidth,10),T=parseInt(k.borderRightWidth,10),k=parseInt(k.borderBottomWidth,10),_=0,P=0,j="offsetWidth"in E?E.offsetWidth-E.clientWidth-B-T:0,N="offsetHeight"in E?E.offsetHeight-E.clientHeight-F-k:0;M===E?(_="start"===r?m:"end"===r?m-l:"nearest"===r?dE(f,f+l,l,F,k,f+m,f+m+d,d):m-l/2,P="start"===o?b:"center"===o?b-s/2:"end"===o?b-s:dE(c,c+s,s,B,T,c+b,c+b+p,p),_=Math.max(0,_+f),P=Math.max(0,P+c)):(_="start"===r?m-A-F:"end"===r?m-O+k+N:"nearest"===r?dE(A,O,S,F,k+N,m,m+d,d):m-(A+S/2)+N/2,P="start"===o?b-D-B:"center"===o?b-(D+C/2)+j/2:"end"===o?b-z+T+j:dE(D,z,C,B,T+j,b,b+p,p),O=E.scrollLeft,m+=(F=E.scrollTop)-(_=Math.max(0,Math.min(F+_,E.scrollHeight-S+N))),b+=O-(P=Math.max(0,Math.min(O+P,E.scrollWidth-C+j)))),w.push({el:E,top:_,left:P})}return w}function hE(e){return e===Object(e)&&0!==Object.keys(e).length}function gE(e,t){return W2(t)&&I.hasDOMNode(e,t,{editable:!0})}function vE(e,t){return!e.getConfig().readOnly&&(t=yE(e,t)&&I.toSlateNode(e,t),P.isVoid(e,t))}function yE(e,t){return W2(t)&&I.hasDOMNode(e,t)}function mE(e,t,n){void 0===n&&(n=!1);var r,o,i=t.selection,a=t.getConfig(),u=I.findDocumentOrShadowRoot(t).getSelection();if(u&&(!e.isComposing||n)&&t.isFocused()){var n="None"!==u.type;if(i||n){var s,l=T2.get(t),c=!1;if(l.contains(u.anchorNode)&&l.contains(u.focusNode)&&(c=!0),n&&c&&i){n=I.toSlateRange(t,u,{exactMatch:!0,suppressThrow:!0});if(n&&z.equals(n,i)){var f,d,c=!0;if(c=z.isCollapsed(i)&&(n=u.anchorNode,f=u.anchorOffset,n===l)&&(n=void 0,(n=(d=l.childNodes)[f])&&n.matches("table")&&(c=!1),n=d[f-1])&&n.matches("table")?!1:c)return}}!i||I.hasRange(t,i)?(e.isUpdatingSelection=!0,(s=i&&I.toDOMRange(t,i))?(z.isBackward(i)?u.setBaseAndExtent(s.endContainer,s.endOffset,s.startContainer,s.startOffset):u.setBaseAndExtent(s.startContainer,s.startOffset,s.endContainer,s.endOffset),(d=s.startContainer.parentElement).closest("[data-slate-spacer]")||(d.getBoundingClientRect=s.getBoundingClientRect.bind(s),f=document.body,n=d,c={scrollMode:"if-needed",boundary:a.scroll?l.parentElement:f,block:"end",behavior:"smooth"},i=!n.ownerDocument.documentElement.contains(n),hE(c)&&"function"==typeof c.behavior?c.behavior(i?[]:pE(n,c)):i||(c=!1===(i=c)?{block:"end",inline:"nearest"}:hE(i)?i:{block:"start",inline:"nearest"},i=pE(n,c),void 0===(r=c.behavior)&&(r="auto"),o="scrollBehavior"in document.body.style,i.forEach(function(e){var t=e.el,n=e.top,e=e.left;t.scroll&&o?t.scroll({top:n,left:e,behavior:r}):(t.scrollTop=n,t.scrollLeft=e)})),delete d.getBoundingClientRect)):u.removeAllRanges(),setTimeout(function(){s&&rw&&l.focus(),e.isUpdatingSelection=!1})):t.selection=I.toSlateRange(t,u,{exactMatch:!1,suppressThrow:!1})}}}function bE(e){var t=EE[e],n=DE[e],e=SE[e],r=t&&Lp(t),o=n&&Lp(n),i=e&&Lp(e);return function(e){return!(!r||!r(e))||!!(nw&&o&&o(e))||!(nw||!i||!i(e))}}var wE=new WeakMap,xE=new WeakMap,EE={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},DE={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},SE={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},CE={isBold:bE("bold"),isCompose:bE("compose"),isMoveBackward:bE("moveBackward"),isMoveForward:bE("moveForward"),isDeleteBackward:bE("deleteBackward"),isDeleteForward:bE("deleteForward"),isDeleteLineBackward:bE("deleteLineBackward"),isDeleteLineForward:bE("deleteLineForward"),isDeleteWordBackward:bE("deleteWordBackward"),isDeleteWordForward:bE("deleteWordForward"),isExtendBackward:bE("extendBackward"),isExtendForward:bE("extendForward"),isExtendLineBackward:bE("extendLineBackward"),isExtendLineForward:bE("extendLineForward"),isItalic:bE("italic"),isMoveLineBackward:bE("moveLineBackward"),isMoveLineForward:bE("moveLineForward"),isMoveWordBackward:bE("moveWordBackward"),isMoveWordForward:bE("moveWordForward"),isRedo:bE("redo"),isSplitBlock:bE("splitBlock"),isTransposeCharacter:bE("transposeCharacter"),isUndo:bE("undo"),isTab:bE("tab"),isSelectAll:bE("selectAll")};function AE(e){e.preventDefault()}var OE={beforeinput:function(e,t,n){var r=n.getConfig().readOnly;if(aw&&!r&&gE(n,e.target)){var r=n.selection,o=e.inputType,i=e.dataTransfer||e.data||void 0;if("insertCompositionText"!==o&&"deleteCompositionText"!==o)if(e.preventDefault(),o.startsWith("delete")&&!o.startsWith("deleteBy")||(e=xb(e.getTargetRanges(),1)[0])&&(e=I.toSlateRange(n,e,{exactMatch:!1,suppressThrow:!1}),r&&z.equals(r,e)||j.select(n,e)),r&&z.isExpanded(r)&&o.startsWith("delete")){e=o.endsWith("Backward")?"backward":"forward";P.deleteFragment(n,{direction:e})}else switch(o){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":P.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":P.deleteForward(n);break;case"deleteContentBackward":P.deleteBackward(n);break;case"deleteEntireSoftLine":P.deleteBackward(n,{unit:"line"}),P.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":P.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":P.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":P.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":P.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":P.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":P.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":P.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":"insertFromPaste"===o&&!z2.get(n)||(i instanceof DataTransfer?n.insertData(i):"string"==typeof i&&P.insertText(n,i))}}},blur:function(e,t,n){var r=t.isUpdatingSelection,t=t.latestElement;if(!n.getConfig().readOnly&&!r&&gE(n,e.target)){r=I.findDocumentOrShadowRoot(n);if(t!==r.activeElement){t=e.relatedTarget;if(!(t===I.toDOMNode(n,n)||U2(t)&&t.hasAttribute("data-slate-spacer"))){if(null!=t&&W2(t)&&I.hasDOMNode(n,t)){e=I.toSlateNode(n,t);if(_.isElement(e)&&!n.isVoid(e))return}ow&&null!=(t=r.getSelection())&&t.removeAllRanges(),L2.delete(n)}}}},focus:function(e,t,n){var r=I.toDOMNode(n,n),o=I.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,rw&&e.target!==r?r.focus():L2.set(n,!0)},click:function(e,t,n){var r,o;!n.getConfig().readOnly&&yE(n,e.target)&&W2(e.target)&&(e=I.toSlateNode(n,e.target),r=I.findPath(n,e),P.hasPath(n,r))&&R.get(n,r)===e&&(e=P.start(n,r),r=P.end(n,r),o=P.void(n,{at:e}),r=P.void(n,{at:r}),o)&&r&&M.equals(o[1],r[1])&&(o=P.range(n,e),j.select(n,o))},compositionstart:function(e,t,n){var r;gE(n,e.target)&&((e=n.selection)&&z.isExpanded(e)&&(P.deleteFragment(n),Promise.resolve().then(function(){mE(t,n,!0)})),e&&z.isCollapsed(e)&&(r=(e=I.toDOMRange(n,e).startContainer).textContent||"",wE.set(n,r),xE.set(n,e)),t.isComposing=!0,r=t,(e=n).getConfig().placeholder)&&e.isEmpty()&&r.showPlaceholder&&(null!=(e=r.$placeholder)&&e.hide(),r.showPlaceholder=!1)},compositionend:function(e,t,n){if(gE(n,e.target)){t.isComposing=!1;var r=n.selection;if(null!=r){(iw||rw)&&I.cleanExposedTexNodeInSelectionBlock(n);for(var o=z.isBackward(r)?r.focus:r.anchor,i=xb(P.node(n,[o.path[0]]),1)[0],a=0;a<o.path.length;a++){var u=xb(P.node(n,o.path.slice(0,a+1)),1)[0];if(_.isElement(u)&&((ow||rw)&&"link"===u.type||"code"===u.type)){I.setNewKey(i);break}}var s,e=e.data;e&&(n.getConfig().maxLength&&(s=I.getLeftLengthOfMaxLength(n))<e.length?(I.toDOMRange(n,r).startContainer.textContent=wE.get(n)||"",0<s&&P.insertText(n,e.slice(0,s)),t.changeViewState()):P.insertText(n,e),ow||setTimeout(function(){var e,t=n.selection;null!=t&&null!=(e=xE.get(n))&&I.toDOMRange(n,t).startContainer!==e&&(e.textContent=wE.get(n)||"")}))}}},compositionupdate:function(e,t,n){gE(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&gE(n,e.target)){var o,i=n,a=e,t=(t=b2.get(i))&&t.getMenus(),u=(u=x2.get(i))&&u.getMenus(),s=bb(bb({},t),u);for(o in s){var l=s[o],c=l.hotkey;c&&Rp(c,a)&&!l.isDisabled(i)&&(c=l.getValue(i),l.exec(i,c))}CE.isTab(e)?(AE(e),n.handleTab()):CE.isRedo(e)?(AE(e),"function"==typeof n.redo&&n.redo()):CE.isUndo(e)?(AE(e),"function"==typeof n.undo&&n.undo()):CE.isMoveLineBackward(e)?(AE(e),j.move(n,{unit:"line",reverse:!0})):CE.isMoveLineForward(e)?(AE(e),j.move(n,{unit:"line"})):CE.isExtendLineBackward(e)?(AE(e),j.move(n,{unit:"line",edge:"focus",reverse:!0})):CE.isExtendLineForward(e)?(AE(e),j.move(n,{unit:"line",edge:"focus"})):CE.isMoveBackward(e)?(AE(e),r&&z.isCollapsed(r)?j.move(n,{reverse:!0}):j.collapse(n,{edge:"start"})):CE.isMoveForward(e)?(AE(e),r&&z.isCollapsed(r)?j.move(n):j.collapse(n,{edge:"end"})):CE.isMoveWordBackward(e)?(AE(e),r&&z.isExpanded(r)&&j.collapse(n,{edge:"focus"}),j.move(n,{unit:"word",reverse:!0})):CE.isMoveWordForward(e)?(AE(e),r&&z.isExpanded(r)&&j.collapse(n,{edge:"focus"}),j.move(n,{unit:"word"})):CE.isSelectAll(e)?(AE(e),n.selectAll()):aw?(iw||ow)&&r&&(CE.isDeleteBackward(e)||CE.isDeleteForward(e))&&z.isCollapsed(r)&&(t=R.parent(n,r.anchor.path),_.isElement(t))&&P.isVoid(n,t)&&P.isInline(n,t)&&(e.preventDefault(),j.delete(n,{unit:"block"})):CE.isBold(e)||CE.isItalic(e)||CE.isTransposeCharacter(e)?AE(e):CE.isSplitBlock(e)?(AE(e),P.insertBreak(n)):CE.isDeleteBackward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"backward"}):P.deleteBackward(n)):CE.isDeleteForward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"forward"}):P.deleteForward(n)):CE.isDeleteLineBackward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"backward"}):P.deleteBackward(n,{unit:"line"})):CE.isDeleteLineForward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"forward"}):P.deleteForward(n,{unit:"line"})):CE.isDeleteWordBackward(e)?(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"backward"}):P.deleteBackward(n,{unit:"word"})):CE.isDeleteWordForward(e)&&(AE(e),r&&z.isExpanded(r)?P.deleteFragment(n,{direction:"forward"}):P.deleteForward(n,{unit:"word"}))}},keypress:function(e,t,n){aw||n.getConfig().readOnly||!gE(n,e.target)||(e.preventDefault(),e=e.key,P.insertText(n,e))},copy:function(e,t,n){gE(n,e.target)&&(e.preventDefault(),null!=(e=e.clipboardData))&&n.setFragmentData(e)},cut:function(e,t,n){var r=n.selection;!n.getConfig().readOnly&&gE(n,e.target)&&(e.preventDefault(),null!=(e=e.clipboardData))&&(n.setFragmentData(e),r)&&(z.isExpanded(r)?P.deleteFragment(n):(e=R.parent(n,r.anchor.path),P.isVoid(n,e)&&j.delete(n)))},paste:function(e,t,n){z2.set(n,!0);var r;!n.getConfig().readOnly&&gE(n,e.target)&&((r=n.getConfig().customPaste)&&!1===r(n,e)?z2.set(n,!1):(!aw||(r=e).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length)&&(e.preventDefault(),null!=(r=e.clipboardData))&&n.insertData(r))},dragover:function(e,t,n){var r;yE(n,e.target)&&(r=I.toSlateNode(n,e.target),P.isVoid(n,r))&&e.preventDefault()},dragstart:function(e,t,n){var r,o;yE(n,e.target)&&!n.getConfig().readOnly&&(r=I.toSlateNode(n,e.target),o=I.findPath(n,r),(P.isVoid(n,r)||P.void(n,{at:o,voids:!0}))&&(r=P.range(n,o),j.select(n,r)),null!=(o=e.dataTransfer))&&(t.isDraggingInternally=!0,n.setFragmentData(o))},dragend:function(e,t,n){n.getConfig().readOnly||t.isDraggingInternally&&yE(n,e.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r,o=e.dataTransfer;n.getConfig().readOnly||!yE(n,e.target)||null==o||aw&&ow&&0<o.files.length||(e.preventDefault(),r=n.selection,e=I.findEventRange(n,e),j.select(n,e),t.isDraggingInternally&&(r&&j.delete(n,{at:r}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused())||n.focus()}},kE=1,BE=(Object.defineProperty(FE.prototype,"editorInstance",{get:function(){var e=y2.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),FE.prototype.bindEvent=function(){var n=this,r=this.$textArea,e=this.$scroll,o=this.editorInstance;null!=r&&(Ad(OE,function(t,e){r.on(e,function(e){t(e,n,o)})}),o.getConfig().scroll)&&(e.css("overflow-y","auto"),e.on("scroll",zd(function(){o.emit("scroll")},100)))},FE.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout(function(){return o&&o(t)}):null!=e.latestEditorSelection&&null==t.selection&&setTimeout(function(){return r&&r(t)}),e.latestEditorSelection=t.selection})},FE.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;t&&(e=t-I.getLeftLengthOfMaxLength(e),this.$maxLengthInfo[0].innerHTML=e+"/"+t)},FE.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),100<=e&&setTimeout(function(){t.hide(),t.css("width","0"),t.show()},1e3)},FE.prototype.changeViewState=function(){var e=this,t=this.editorInstance;sE(this,t),function(e,t){var n=t.getConfig().placeholder;if(n){t=t.isEmpty();if(t&&!e.showPlaceholder&&!e.isComposing)return null==e.$placeholder&&(n=N('<div class="w-e-text-placeholder">'+n+"</div>"),e.$textAreaContainer.append(n),e.$placeholder=n),e.$placeholder.show(),e.showPlaceholder=!0;!t&&e.showPlaceholder&&(null!=(n=e.$placeholder)&&n.hide(),e.showPlaceholder=!1)}}(this,t),_4(function(){mE(e,t)})},FE.prototype.destroy=function(){this.$textAreaContainer.remove()},FE);function FE(e){var i=this,t=(this.id=kE++,this.$textArea=null,this.$progressBar=N('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=N('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=zd(function(){var e=i.editorInstance,t=(o=i).isComposing,n=o.isUpdatingSelection,r=o.isDraggingInternally;if(!(e.getConfig().readOnly||t||n||r)){t=I.findDocumentOrShadowRoot(e),n=t.activeElement,r=I.toDOMNode(e,e),t=t.getSelection();if(n===r?(o.latestElement=n,L2.set(e,!0)):L2.delete(e),!t)return void j.deselect(e);var r=t.anchorNode,o=t.focusNode,n=gE(e,r)||vE(e,r),r=gE(e,o)||vE(e,o);n&&r?(o=I.toSlateRange(e,t,{exactMatch:!1,suppressThrow:!1}),j.select(e,o)):j.deselect(e)}},100),N(e));if(0===t.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=t;var r=N('<div class="w-e-text-container"></div>'),e=(r.append(this.$progressBar),r.append(this.$maxLengthInfo),t.append(r),N('<div class="w-e-scroll"></div>'));r.append(e),this.$scroll=e,this.$textAreaContainer=r,_4(function(){var e=i.editorInstance,t=I.getWindow(e),n=(t.document.addEventListener("selectionchange",i.onDOMSelectionChange),e.on("destroyed",function(){t.document.removeEventListener("selectionchange",i.onDOMSelectionChange)}),r.on("click",function(){return e.hidePanelOrModal()}),e.on("change",i.changeViewState.bind(i)),e.getConfig().onChange);n&&e.on("change",function(){return n(e)}),i.onFocusAndOnBlur(),e.on("change",i.changeMaxLengthInfo.bind(i)),i.bindEvent()})}function TE(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");e=e.children();e.length&&TE(e)}function _E(){return N('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function PE(){return N('<div class="w-e-bar-divider"></div>')}function jE(e,t,n,r,o){void 0===o&&(o=!1),t&&(r=r&&r.replace("mod",nw?"cmd":"ctrl"),o?r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right")):(e.attr("data-tooltip",r?n+"\n"+r:n),e.addClass("w-e-menu-tooltip-v5")))}Sm("match",function(r,u,s){return[function(e){var t=Sg(this),n=null==e?void 0:gv(e,r);return n?uv(n,e,t):new RegExp(e)[r](uy(t))},function(e){var t=iv(this),n=uy(e),e=s(u,t,n);if(e.done)return e.value;if(!t.global)return Am(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=Am(t,n));){var a=uy(a[0]);""===(o[i]=a)&&(t.lastIndex=Cm(n,p1(t.lastIndex),r)),i++}return 0===i?null:o}]});KE.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(e){e.preventDefault(),s3(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},KE.prototype.exec=function(){var e=s3(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},KE.prototype.setActive=function(){var e=s3(this),t=this.$button;this.menu.isActive(e)?t.addClass("active"):t.removeClass("active")},KE.prototype.setDisabled=function(){var e=s3(this),t=this.$button,n=this.menu.isDisabled(e);null!=e.selection&&!e.isDisabled()||(n=!0);(n=this.menu.alwaysEnable?!1:n)?t.addClass("disabled"):t.removeClass("disabled"),this.disabled=n},KE.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()};var NE,IE,LE,RE,h=KE,ME=(mb(qE,RE=h),qE.prototype.onButtonClick=function(){},qE),f=(GE.prototype.record=function(e){var t=D2.get(e);null==t&&(t=new Set,D2.set(e,t)),t.add(this),S2.set(this,e)},GE.prototype.renderContent=function(e){var t=this.$elem,e=(t.empty(),t.append(e),this.genSelfElem());e&&t.append(e)},GE.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},GE.prototype.show=function(){var e;!this.isShow&&(this.showTime=Date.now(),this.$elem.show(),this.isShow=!0,e=S2.get(this))&&e.emit("modalOrPanelShow",this)},GE.prototype.hide=function(){var e;this.isShow&&!(Date.now()-this.showTime<200)&&(this.$elem.hide(),this.isShow=!1,e=S2.get(this))&&e.emit("modalOrPanelHide")},GE),zE=(mb(WE,LE=f),WE.prototype.genSelfElem=function(){return null},WE),HE=(mb(UE,IE=h),UE.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},UE.prototype.handleDropPanel=function(){var e,t,n,r=this.menu;null!=r.getPanelContentElem&&(t=s3(this),null==this.dropPanel?(e=new zE(t),n=r.getPanelContentElem(t),e.renderContent(n),e.appendTo(this.$elem),e.show(),this.dropPanel=e):(e=this.dropPanel).isShow?e.hide():(n=r.getPanelContentElem(t),e.renderContent(n),e.show()),(r=this.dropPanel).isShow)&&((t=this.$elem).offset().left-(n=t.parents(".w-e-bar")).offset().left>=n.width()/2?r.$elem.css({left:"none",right:"0"}):r.$elem.css({left:"0",right:"none"}))},UE),$E=(mb(VE,NE=f),VE.prototype.genSelfElem=function(){var e=this,t=N('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=S2.get(this);return t.on("click",function(){e.hide(),null!=n&&n.restoreSelection()}),t},VE.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},VE);function VE(t,e){void 0===e&&(e=0);var n=NE.call(this,t)||this,e=(n.type="modal",n.$elem=N('<div class="w-e-modal"></div>'),n.width=0,e&&(n.width=e),n.$elem);return e.on("click",function(e){return e.stopPropagation()}),e.on("keyup",function(e){"Escape"===e.code&&(n.hide(),t.restoreSelection())}),n}function UE(e,t,n){e=IE.call(this,e,t,n=void 0===n?!1:n)||this;return e.dropPanel=null,(e.menu=t).showDropPanel&&(n=_E(),e.$button.append(n)),e}function WE(e){e=LE.call(this,e)||this;return e.type="dropPanel",e.$elem=N('<div class="w-e-drop-panel"></div>'),e}function GE(e){this.isShow=!1,this.showTime=0,this.record(e)}function qE(e,t,n){return RE.call(this,e,t,n=void 0===n?!1:n)||this}function KE(e,t,n){var r=this,o=(void 0===n&&(n=!1),this.$elem=N('<div class="w-e-bar-item"></div>'),this.$button=N('<button type="button"></button>'),this.disabled=!1,(this.menu=t).tag),i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a,o=t.title,u=t.hotkey,u=void 0===u?"":u,t=t.iconSvg,t=void 0===t?"":t,s=this.$button;t?(TE(a=N(t)),s.append(a)):s.text(o),jE(s,t,o,u,n),n&&t&&s.append(N('<span class="title">'+o+"</span>")),i&&s.css("width",i+"px"),s.attr("data-menu-key",e),this.$elem.append(s),_4(function(){return r.init()})}function YE(e,t,n){var r=N('<label class="babel-container"></label>'),e=(r.append("<span>"+e+"</span>"),N('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">'));return r.append(e),[r[0],e[0]]}function XE(e,t){var n=N('<div class="button-container"></div>'),e=N('<button type="button" id="'+e+'">'+t+"</button>");return n.append(e),[n[0],e[0]]}mb(u3,JE=h),u3.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},u3.prototype.getPosition=function(){var e=s3(this),t=this.menu.getModalPositionNode(e);return _.isElement(t)?Wx(e,t,"modal"):Ux(e)},u3.prototype.handleModal=function(){var e,t=s3(this),n=this.menu;null==this.modal?(e=new $E(t,n.modalWidth),this.renderAndShowModal(e,!0),this.modal=e):(e=this.modal).isShow?e.hide():this.renderAndShowModal(e,!1)},u3.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n,r,o=s3(this),i=this.menu;null!=i.getModalContentElem&&(n=I.getTextarea(o),r=((null==(r=I.getToolbar(o))?void 0:r.getConfig())||{}).modalAppendToBody,i=i.getModalContentElem(o),e.renderContent(i),r?e.setStyle({left:"0",right:"0"}):(i=this.getPosition(),e.setStyle(i)),t&&(r?e.appendTo(this.$body):e.appendTo(n.$textAreaContainer)),e.show(),r||Gx(o,e.$elem),setTimeout(function(){o.blur()}))};var ZE,JE,QE=u3,e3=(mb(a3,ZE=f),a3.prototype.renderList=function(e){var t=this.$elem,i=(t.empty(),N("<ul></ul>"));e.forEach(function(e){var t=e.value,n=e.text,r=e.selected,e=e.styleForRenderMenuList,o=N('<li data-value="'+t+'"></li>');e&&o.css(e),r&&(e=N('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>'),o.append(e),o.addClass("selected")),o.append(N('<span data-value="'+t+'">'+n+"</span>")),o.attr("title",n),i.append(o)}),t.append(i)},a3.prototype.genSelfElem=function(){return null},a3),t3=(i3.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(e){e.preventDefault(),s3(t).hidePanelOrModal(),t.trigger()})},i3.prototype.trigger=function(){var e,t,n,r=this,o=s3(this);o.isDisabled()||this.disabled||(e=this.menu,null==this.selectList?(this.selectList=new e3(o,e.selectPanelWidth),t=this.selectList,n=e.getOptions(o),t.renderList(n),t.appendTo(this.$elem),t.show(),t.$elem.on("click","li",function(e){var t=e.target;null!=t&&(e.preventDefault(),e=N(t).attr("data-value"),r.onChange(e))})):(t=this.selectList).isShow?t.hide():(n=e.getOptions(o),t.renderList(n),t.show()))},i3.prototype.onChange=function(e){var t=s3(this),n=this.menu;n.exec&&n.exec(t,e)},i3.prototype.setSelectedValue=function(){var e=s3(this),t=this.menu,n=t.getValue(e),t=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),e=this.$button,n=_E();e.empty(),e.text(t),e.append(n)},i3.prototype.setDisabled=function(){var e=s3(this),t=this.menu.isDisabled(e),n=this.$button;(t=null!=e.selection&&!e.isDisabled()?t:!0)?n.addClass("disabled"):n.removeClass("disabled"),this.disabled=t},i3.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},i3),n3=(o3.prototype.appendBarItem=function(e){e=e.$elem;this.$container.append(e)},o3.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},o3.prototype.createObserver=function(){var r=this,o=this.$container,i=this.$button,a=new MutationObserver(function(){var t,e=o.find("button"),n=e.length;0!==n&&(t=0,e.each(function(e){N(e).hasClass("disabled")&&t++}),a.disconnect(),t===n?i.addClass("disabled"):i.removeClass("disabled"),r.observe(a))});return a},o3),r3=new WeakMap;function o3(e){this.$elem=N('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=N('<div class="w-e-bar-item-menus-container"></div>'),this.$button=N('<button type="button"></button>');var t=e.key,n=e.iconSvg,e=e.title,r=this.$elem,o=this.$button,n=(n?(TE(n=N(n)),o.append(n)):o.text(e),o.attr("data-menu-key",t),_E()),e=(o.append(n),r.append(o),this.$container),t=(r.append(e),this.createObserver());this.observe(t)}function i3(e,t,n){var r=this,o=(void 0===n&&(n=!1),this.$elem=N('<div class="w-e-bar-item"></div>'),this.$button=N('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null,t.tag),i=t.title,a=t.width,u=t.iconSvg,u=void 0===u?"":u,s=t.hotkey,s=void 0===s?"":s;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");o=this.$button;a&&o.css("width",a+"px"),o.attr("data-menu-key",e),jE(o,u,i,s,n),this.$elem.append(o),this.menu=t,_4(function(){return r.init()})}function a3(e,t){e=ZE.call(this,e)||this;return e.type="selectList",e.$elem=N('<div class="w-e-select-list"></div>'),t&&e.$elem.css("width",t+"px"),e.$elem.on("click",function(e){e.stopPropagation()}),e}function u3(e,t,n){e=JE.call(this,e,t,n=void 0===n?!1:n)||this;return e.$body=N("body"),e.modal=null,e.menu=t,e}function s3(e){e=E2.get(e);if(null==e)throw new Error("Can not get editor instance");return e}function l3(e,t,n){void 0===n&&(n=!1);var r=r3.get(t);if(!r){var o,i,a=t.tag;if("button"===a&&(o=t.showDropPanel,i=t.showModal,r=new(o?HE:i?QE:ME)(e,t,n)),null==(r="select"===a?new t3(e,t,n):r))throw new Error("Invalid tag in menu "+JSON.stringify(t));r3.set(t,r)}return r}function c3(t,e){var n=t.selection;return null!=n&&!z.isCollapsed(n)&&!I.getSelectedElems(t).some(function(e){return!!t.isVoid(e)||(e=e.type,!!["pre","code","table"].includes(e))||void 0})&&!!H.isText(e)}d3.prototype.getMenus=function(){return this.menus},d3.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},d3.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;(t=n&&360<=n&&n-e[0].getBoundingClientRect().bottom<360?!0:t)?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},d3.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},d3.prototype.changeItemsState=function(){var e=this;_4(function(){e.hoverbarItems.forEach(function(e){e.changeMenuState()})})},d3.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach(function(e){"|"!==e?t.registerSingleItem(e):(e=PE(),n.append(e))})},d3.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=lw[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}o=l3(e,r);this.hoverbarItems.push(o),E2.set(o,t),this.$elem.append(o.$elem)},d3.prototype.setPosition=function(e){var t,n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),_.isElement(e))t=Wx(n,e,"bar");else{if(!H.isText(e))throw new Error("hoverbar.setPosition error, current selected node is not elem nor text");t=Ux(n)}r.css(t),Gx(n,r)},d3.prototype.getSelectedNodeAndMenuKeys=function(){var o=this.getEditorInstance();if(null==o.selection)return null;var e,i=this.getHoverbarKeysConf(),a=null,u=[];for(e in i)if("break"===function(n){var e=i[n],t=e.match,e=e.menuKeys,e=void 0===e?[]:e,r=t||function(e,t){return I.checkNodeType(t,n)},t=xb(P.nodes(o,{match:function(e){return r(o,e)},universal:!0}),1)[0];if(null!=t)return a=t[0],u=e,"break"}(e))break;return null==a||0===u.length?null:{node:a,menuKeys:u}},d3.prototype.getEditorInstance=function(){var e=w2.get(this);if(null==e)throw new Error("Can not get editor instance");return e},d3.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,e=void 0===e?{}:e,t=e.text;return t&&null==t.match&&(t.match=c3),e},d3.prototype.isSamePath=function(e,t){return null!=e&&null!=t&&(e=I.findPath(null,e),t=I.findPath(null,t),M.equals(e,t))},d3.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null};var f3=d3;function d3(){var r=this;this.$elem=N('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Zp(function(){var e=r.isShow,t=r.getSelectedNodeAndMenuKeys()||{},n=t.node,n=void 0===n?null:n,t=t.menuKeys,t=void 0===t?[]:t;null!=n&&r.changeItemsState(),n&&_.isElement(n)&&e&&r.isSamePath(n,r.prevSelectedNode)||(r.hideAndClean(),null!=n&&(r.registerItems(t),r.setPosition(n),r.show()),r.prevSelectedNode=n)},200),_4(function(){var e=r.getEditorInstance(),t=r.$elem,t=(t.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),I.getTextarea(e).$textAreaContainer.append(t),e.on("change",r.changeHoverbarState),r.hideAndClean.bind(r));e.on("scroll",t),e.on("fullScreen",t),e.on("unFullScreen",t)})}function p3(e){var o,n,r,i,a,u,s,t,C,l,c,A,f,d,p,h,g,v,y,m=e.selector,m=void 0===m?"":m,b=e.config,b=void 0===b?{}:b,w=e.content,x=e.html,e=e.plugins,e=void 0===e?[]:e,E=((p=Ax(d={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var t of P.pathRefs(d))vc.transform(t,e);for(var n of P.pointRefs(d))wc.transform(n,e);for(var r of P.rangeRefs(d))Dc.transform(r,e);var o,i,a=new Set,u=[],s=e=>{var t;e&&(t=e.join(","),a.has(t)||(a.add(t),u.push(e)))},l=Dl.get(d)||[],c=Tl(e);for(o of l)s(M.transform(o,e));for(i of c)s(i);Dl.set(d,u),j.transform(d,e),d.operations.push(e),P.normalize(d),"set_selection"===e.type&&(d.marks=null),Sl.get(d)||(Sl.set(d,!0),Promise.resolve().then(()=>{Sl.set(d,!1),d.onChange(),d.operations=[]}))},addMark:(e,t)=>{var n=d["selection"];n&&(z.isExpanded(n)?j.setNodes(d,{[e]:t},{match:H.isText,split:!0}):(n=Fl(Fl({},P.marks(d)||{}),{},{[e]:t}),d.marks=n,Sl.get(d)||d.onChange()))},deleteBackward:e=>{var t=d["selection"];t&&z.isCollapsed(t)&&j.delete(d,{unit:e,reverse:!0})},deleteForward:e=>{var t=d["selection"];t&&z.isCollapsed(t)&&j.delete(d,{unit:e})},deleteFragment:e=>{var t=d["selection"];t&&z.isExpanded(t)&&j.delete(d,{reverse:"backward"===e})},getFragment:()=>{var e=d["selection"];return e?R.fragment(d,e):[]},insertBreak:()=>{j.splitNodes(d,{always:!0})},insertFragment:e=>{j.insertFragment(d,e)},insertNode:e=>{j.insertNodes(d,e)},insertText:e=>{var{selection:t,marks:n}=d;t&&(n?(t=Fl({text:e},n),j.insertNodes(d,t)):j.insertText(d,e),d.marks=null)},normalizeNode:e=>{var[t,n]=e;if(!H.isText(t))if(_.isElement(t)&&0===t.children.length)j.insertNodes(d,{text:""},{at:n.concat(0),voids:!0});else for(var r=!P.isEditor(t)&&_.isElement(t)&&(d.isInline(t)||0===t.children.length||H.isText(t.children[0])||d.isInline(t.children[0])),o=0,i=0;i<t.children.length;i++,o++){var a,u,s=R.get(d,n);H.isText(s)||(a=t.children[i],s=s.children[o-1],u=i===t.children.length-1,(H.isText(a)||_.isElement(a)&&d.isInline(a))!==r?(j.removeNodes(d,{at:n.concat(o),voids:!0}),o--):_.isElement(a)?d.isInline(a)&&(null!=s&&H.isText(s)?u&&(j.insertNodes(d,{text:""},{at:n.concat(o+1),voids:!0}),o++):(j.insertNodes(d,{text:""},{at:n.concat(o),voids:!0}),o++)):null!=s&&H.isText(s)&&(H.equals(a,s,{loose:!0})?(j.mergeNodes(d,{at:n.concat(o),voids:!0}),o--):""===s.text?(j.removeNodes(d,{at:n.concat(o-1),voids:!0}),o--):""===a.text&&(j.removeNodes(d,{at:n.concat(o),voids:!0}),o--)))}},removeMark:e=>{var t=d["selection"];t&&(z.isExpanded(t)?j.unsetNodes(d,e,{match:H.isText,split:!0}):(delete(t=Fl({},P.marks(d)||{}))[e],d.marks=t,Sl.get(d)||d.onChange()))}})).id="wangEditor-"+uw++,p.isDestroyed=!1,p.isFullScreen=!1,p.focus=function(e){I.toDOMNode(p,p).focus({preventScroll:!0}),L2.set(p,!0),e?(e=P.end(p,[]),j.select(p,e)):(e=R2.get(p))?j.select(p,e):j.select(p,P.start(p,[]))},p.isFocused=function(){return!!L2.get(p)},p.blur=function(){I.toDOMNode(p,p).blur(),j.deselect(p),L2.set(p,!1)},p.updateView=function(){I.getTextarea(p).changeViewState();var e=I.getToolbar(p),e=(e&&e.changeToolbarState(),I.getHoverbar(p));e&&e.changeHoverbarState()},p.destroy=function(){var e;p.isDestroyed||((e=I.getTextarea(p)).destroy(),v2.delete(p),y2.delete(e),(e=I.getToolbar(p))&&(e.destroy(),b2.delete(p),m2.delete(e)),(e=I.getHoverbar(p))&&(e.destroy(),x2.delete(p),w2.delete(e)),p.isDestroyed=!0,p.emit("destroyed"))},p.scrollToElem=function(e){var t,n,r,o,i;p.getConfig().scroll?0!==(o=N("#"+e)).length&&(n=o[0],I.hasDOMNode(p,n)?(i=(r=I.getTextarea(p)).$textAreaContainer,r=r.$scroll,o=o.offset().top,i=i.offset().top,r[0].scrollBy({top:o-i,behavior:"smooth"})):(t="Element (found by id is '"+e+"') is not in editor DOM",t+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",console.error(t,n))):(t="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能",t+="\nYou has disabled editor scroll, please do this yourself",console.warn(t))},p.showProgressBar=function(e){e<1||I.getTextarea(p).changeProgress(e)},p.hidePanelOrModal=function(){var e=D2.get(p);null!=e&&e.forEach(function(e){return e.hide()})},p.enable=function(){p.getConfig().readOnly=!1,p.updateView()},p.disable=function(){p.getConfig().readOnly=!0,p.updateView()},p.isDisabled=function(){return p.getConfig().readOnly},p.toDOMNode=function(e){return I.toDOMNode(p,e)},p.fullScreen=function(){if(!p.isFullScreen){var e=null,t=I.getToolbar(p),t=(t&&(e=t.$box),I.getTextarea(p).$box.parent());if(e&&e.parent()[0]!==t[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");t.addClass("w-e-full-screen-container");e=t.css("z-index");t.attr("data-z-index",e.toString()),p.isFullScreen=!0,p.emit("fullScreen")}},p.unFullScreen=function(){var e;p.isFullScreen&&(e=I.getTextarea(p).$box.parent(),setTimeout(function(){e.removeClass("w-e-full-screen-container"),p.isFullScreen=!1,p.emit("unFullScreen")},200))},p.getEditableContainer=function(){return I.getTextarea(p).$textAreaContainer[0]},(h=p).getAllMenuKeys=function(){var e,t=[];for(e in lw)t.push(e);return t},h.getConfig=function(){var e=C2.get(h);if(null==e)throw new Error("Can not get editor config");return e},h.getMenuConfig=function(e){var t=h.getConfig().MENU_CONF;return(void 0===t?{}:t)[e]||{}},h.alert=function(e,t){void 0===t&&(t="info");var n=h.getConfig().customAlert;n&&n(e,t)},l=(C=t=h).onChange,c=C.insertText,A=C.apply,f=C.deleteBackward,C.insertText=function(e){C.getConfig().readOnly||c(e)},C.apply=function(e){var t,n,r,o,i,a,u,s,l=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var c=wb(P.levels(C,{at:e.path})),f=c.next();!f.done;f=c.next()){var d=xb(f.value,2),p=d[0],h=d[1],g=I.findKey(C,p);l.push([h,g])}}catch(e){t={error:e}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var v=wb(P.levels(C,{at:M.parent(e.path)})),y=v.next();!y.done;y=v.next()){var m=xb(y.value,2),p=m[0],h=m[1],g=I.findKey(C,p);l.push([h,g])}}catch(e){r={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(r)throw r.error}}break;case"move_node":try{for(var b=wb(P.levels(C,{at:M.common(M.parent(e.path),M.parent(e.newPath))})),w=b.next();!w.done;w=b.next()){var x=xb(w.value,2);p=x[0],h=x[1],g=I.findKey(C,p),l.push([h,g])}}catch(e){i={error:e}}finally{try{w&&!w.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}}A(e);try{for(var E=wb(l),D=E.next();!D.done;D=E.next()){var S=xb(D.value,2);h=S[0],g=S[1],p=xb(P.node(C,h),1)[0],N2.set(p,g)}}catch(e){u={error:e}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}},C.deleteBackward=function(e){if("line"!==e)return f(e);t.selection&&z.isCollapsed(t.selection)&&(e=P.above(t,{match:function(e){return P.isBlock(t,e)},at:t.selection}))&&(e=xb(e,2)[1],e=P.range(t,e,t.selection.anchor),e=function(e,t){var n=P.range(e,z.end(t)),r=Array.from(P.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(N4(e,P.range(e,r[o]),n))return P.range(e,r[o],n);if(r.length<2)return P.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)N4(e,P.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return P.range(e,r[i],n)}(C,e),z.isCollapsed(e)||j.delete(t,{at:e}))},C.onChange=function(){var e=C.selection;null!=e&&R2.set(C,e),C.emit("change"),l()},C.handleTab=function(){C.insertText(" ")},C.getHtml=function(){var e=C.children;return(void 0===e?[]:e).map(function(e){return function t(e,n){if(_.isElement(e))return u=n,o=void 0===(o=(a=e).type)?"":o,s=void 0===(s=a.children)?[]:s,i=P.isVoid(u,a),l="",i||(l=s.map(function(e){return t(e,u)}).join("")),s=(mw[o]||bw)(a,l,u),c="",c="string"==typeof s?s:s.html||"",i||yw.forEach(function(e){return c=e(a,c)}),"string"!=typeof s&&(o=s.prefix,l=s.suffix,(i=void 0===o?"":o)&&(c=i+c),s=void 0===l?"":l)&&(c+=s),c;var r=e,o=n,i=r.text;if(null==i)throw new Error("Current node is not slate Text "+JSON.stringify(r));var a,u,o,s,i,l,c,f=(f=i).replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;");if((i=I.getParentsNodes(o,r).some(function(e){return"pre"===I.getNodeType(e)}))||(f=f.replace(/\r\n|\r|\n/g,"<br>")),""===(f=i?f.replace(/&nbsp;/g," "):f)){o=I.getParentNode(null,r);if(!o||0!==o.children.length)return f;f="<br>"}return yw.forEach(function(e){return f=e(r,f)}),f}(e,C)}).join("")},C.getText=function(){var e=C.children;return(void 0===e?[]:e).map(function(e){return R.string(e)}).join("\n")},C.getSelectionText=function(){var e=C.selection;return null==e?"":P.string(t,e)},C.getElemsByType=function(e,t){void 0===t&&(t=!1);var n,r,o=[],i=P.nodes(C,{at:[],universal:!0});try{for(var a=wb(i),u=a.next();!u.done;u=a.next()){var s,l=xb(u.value,1)[0];_.isElement(l)&&(t?0<=l.type.indexOf(e):l.type===e)&&(s=P4(I.findKey(C,l).id),o.push(bb(bb({},l),{id:s})))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},C.getElemsByTypePrefix=function(e){return C.getElemsByType(e,!0)},C.isEmpty=function(){var e=C.children,e=void 0===e?[]:e;if(!(1<e.length)){e=e[0];if(null==e)return!0;if(_.isElement(e)&&"paragraph"===e.type){e=e.children,e=void 0===e?[]:e;if(1<e.length)return!1;e=e[0];if(null==e)return!0;if(H.isText(e)&&""===e.text)return!0}}return!1},C.clear=function(){j.delete(C,{at:{anchor:P.start(C,[]),focus:P.end(C,[])}}),0===C.children.length&&j.insertNodes(C,[{type:"paragraph",children:[{text:""}]}])},C.getParentNode=function(e){return I.getParentNode(C,e)},C.dangerouslyInsertHtml=function(e,t){var n,r,o,u;void 0===t&&(t=!1),(e=void 0===e?"":e)&&((n=document.createElement("div")).innerHTML=e,0!==(e=(e=Array.from(n.childNodes)).filter(function(e){var t=e.nodeType,e=e.nodeName;return t===X2.TEXT_NODE||t===X2.ELEMENT_NODE&&!bx.has(e.toLowerCase())})).length)&&null!=(r=C.selection)&&(o=null,I.isSelectedEmptyParagraph(C)&&!t&&(o=[r.focus.path[0]]),n.setAttribute("hidden","true"),document.body.appendChild(n),u=0,e.forEach(function(e){var t=e.nodeType,n=e.nodeName,r=e.textContent,r=void 0===r?"":r;if(t!==X2.TEXT_NODE)if("BR"!==n){var o=e,i=!1;if(I4.includes(n.toLowerCase()))i=!0;else for(var a in M4)if(o.matches(a)){i=!0;break}i?(t=dx(N(o),C),Array.isArray(t)?t.forEach(function(e){return wx(C,e)}):wx(C,t),u++,I.isSelectedVoidNode(C)&&C.move(1)):(e=window.getComputedStyle(o).display,I.isSelectedEmptyParagraph(C)||e.indexOf("inline")<0&&C.insertBreak(),C.dangerouslyInsertHtml(o.innerHTML,!0))}else C.insertText("\n");else r&&r.trim()&&C.insertNode({text:r})}),u&&o&&I.isEmptyPath(C,o)&&j.removeNodes(C,{at:o}),n.remove())},C.setHtml=function(e){void 0===e&&(e="");var t=C.isDisabled(),n=C.isFocused(),r=JSON.stringify(C.selection),o=(C.enable(),C.focus(),C.clear(),hx(C,e));if(j.insertFragment(C,o),n||(C.deselect(),C.blur()),t&&(C.deselect(),C.disable()),C.isFocused())try{C.select(JSON.parse(r))}catch(e){C.select(P.start(C,[]))}},(s=u=C).select=function(e){j.select(s,e)},s.deselect=function(){var e=s.selection,t=I.findDocumentOrShadowRoot(s).getSelection();t&&0<t.rangeCount&&t.removeAllRanges(),e&&j.deselect(u)},s.move=function(e,t){void 0===t&&(t=!1),!e||e<0||j.move(u,{distance:e,unit:"character",reverse:t})},s.moveReverse=function(e){s.move(e,!0)},s.restoreSelection=function(){var e=R2.get(s);null!=e&&(s.focus(),j.select(s,e))},s.getSelectionPosition=function(){return Ux(s)},s.getNodePosition=function(e){return Wx(s,e)},s.isSelectedAll=function(){var e,t,n,r=s.selection;return null!=r&&(e=(r=xb(z.edges(r),2))[0],r=r[1],t=(n=xb(P.edges(s,[]),2))[0],n=n[1],!(!bc.equals(e,t)||!bc.equals(r,n)))},s.selectAll=function(){var e=P.start(s,[]),t=P.end(s,[]);j.select(s,{anchor:e,focus:t})},(g=s).on=function(e,t){var n,r=zx(g);r.on(e,t),"destroyed"===e&&$x(g,t),"destroyed"!==e&&(r.on("destroyed",n=function(){return r.off(e,t)}),$x(g,n))},g.once=function(e,t){zx(g).once(e,t)},g.off=function(e,t){zx(g).off(e,t)},g.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=zx(g);r.emit.apply(r,Eb([e],xb(t))),"destroyed"===e&&(e=g,(Hx.get(e)||new Set).forEach(function(e){return r.off("destroyed",e)}),e=g,Hx.set(e,new Set))},n=(o=g).insertText,r=o.insertNode,i=o.insertFragment,a=o.dangerouslyInsertHtml,o.insertText=function(e){var t;o.getConfig().maxLength?(t=I.getLeftLengthOfMaxLength(o))<=0||(t<e.length?n(e.slice(0,t)):n(e)):n(e)},o.insertNode=function(e){var t;o.getConfig().maxLength&&((t=I.getLeftLengthOfMaxLength(o))<=0||t<R.string(e).length)||r(e)},o.insertFragment=function(e){var t;o.getConfig().maxLength?1!==e.length?e.forEach(function(e){o.insertNode(e)}):(t=e[0],I.getLeftLengthOfMaxLength(o)<R.string(t).length||i(e)):i(e)},o.dangerouslyInsertHtml=function(e,t){var n,r;void 0===t&&(t=!1),!(e=void 0===e?"":e)||o.getConfig().maxLength&&((n=I.getLeftLengthOfMaxLength(o))<=0||((r=document.createElement("div")).innerHTML=e,n<Array.from(r.childNodes).reduce(function(e,t){var n=t.nodeType,r=t.nodeName;return!t||n!==X2.TEXT_NODE&&(n!==X2.ELEMENT_NODE||bx.has(r.toLowerCase()))?e:e+(t.textContent||"")},"").length))||a(e,t)},y=(v=o).apply,v.history={undos:[],redos:[]},v.redo=()=>{var t,e=v["history"],n=e["redos"];0<n.length&&(t=n[n.length-1],iy.withoutSaving(v,()=>{P.withoutNormalizing(v,()=>{for(var e of t)v.apply(e)})}),e.redos.pop(),e.undos.push(t))},v.undo=()=>{var t,e=v["history"],n=e["undos"];0<n.length&&(t=n[n.length-1],iy.withoutSaving(v,()=>{P.withoutNormalizing(v,()=>{var e;for(e of t.map(gc.inverse).reverse())v.apply(e)})}),e.redos.push(t),e.undos.pop())},v.apply=e=>{var{operations:t,history:n}=v,r=n["undos"],o=r[r.length-1],i=o&&o[o.length-1],a=!(!i||"set_selection"!==e.type||"set_selection"!==i.type),u=iy.isSaving(v),s=iy.isMerging(v);if(u=null==u?"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties:u){for(null==s&&(s=null!=o&&(0!==t.length||(u=i,"set_selection"===(t=e).type)||!(!u||"insert_text"!==t.type||"insert_text"!==u.type||t.offset!==u.offset+u.text.length||!M.equals(t.path,u.path))||!(!u||"remove_text"!==t.type||"remove_text"!==u.type||t.offset+t.text.length!==u.offset||!M.equals(t.path,u.path))||a)),o&&s?(a&&o.pop(),o.push(e)):r.push([e]);100<r.length;)r.shift();"set_selection"!==e.type&&(n.redos=[])}y(e)},v);if(m&&px(E,"data-w-e-textarea",m))throw new Error("Repeated create editor by selector '"+m+"'");void 0===(b=b)&&(b={}),B=Qp(sw),D={},k=b.MENU_CONF,S=void 0===k?{}:k,Ad(B,function(e,t){D[t]=bb(bb({},e),S[t]||{})}),delete b.MENU_CONF;var D,S,O,k=bb({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:D,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},b),B=(C2.set(E,k),k.hoverbarKeys),b=void 0===B?{}:B,F=(e.forEach(function(e){E=e(E)}),null!=x&&(E.children=hx(E,x)),w&&w.length&&(E.children=w),0===E.children.length&&(E.children=[{type:"paragraph",children:[{text:""}]}]),I.normalizeContent(E),m?(O=new BE(m),v2.set(E,O),y2.set(O,E),O.changeViewState(),B=void _4(function(){var e=O.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}),0<Object.keys(b).length&&(B=new f3,w2.set(B,E),x2.set(E,B)),E.on("change",function(){E.hidePanelOrModal()}),E.on("scroll",function(){E.hidePanelOrModal()})):E.children.forEach(function(e,t){return function n(r,e,t,o){B2.set(r,e),F2.set(r,t),_.isElement(r)&&((void 0===(e=r.children)?[]:e).forEach(function(e,t){return n(e,t,r,o)}),P.isVoid(o,r))&&(t=xb(R.texts(r),1),e=xb(t[0],1)[0],B2.set(e,0),F2.set(e,r))}(e,t,E,E)}),k.onCreated),T=k.onDestroyed;return F&&E.on("created",function(){return F(E)}),T&&E.on("destroyed",function(){return T(E)}),_4(function(){return E.emit("created")}),E}var r1=Dm("splice"),h3=m.TypeError,g3=Math.max,v3=Math.min,y3=(T1({target:"Array",proto:!0,forced:!r1},{splice:function(e,t){var n,r,o,i,a,u,s=Cg(this),l=Av(s),c=O1(e,l),e=arguments.length;if(0===e?n=r=0:r=1===e?(n=0,l-c):(n=e-2,v3(g3(f1(t),0),l-c)),9007199254740991<l+n-r)throw h3("Maximum allowed length exceeded");for(o=Bv(s,r),i=0;i<r;i++)(a=c+i)in s&&my(o,i,s[a]);if(n<(o.length=r)){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;l-r+n<i;i--)delete s[i-1]}else if(r<n)for(i=l-r;c<i;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}}),x3.prototype.getMenus=function(){return this.menus},x3.prototype.getConfig=function(){return this.config},x3.prototype.registerItems=function(){var n=this,r="",o=this.$toolbar,e=this.config,t=e.toolbarKeys,i=e.insertKeys,a=void 0===i?{index:0,keys:[]}:i,i=e.excludeKeys,u=void 0===i?[]:i,s=Qp(void 0===t?[]:t),e=(0<a.keys.length&&("string"==typeof a.keys&&(a.keys=[a.keys]),a.keys.forEach(function(e,t){s.splice(a.index+t,0,e)})),s.filter(function(e){if("string"==typeof e){if(u.includes(e))return!1}else if(u.includes(e.key))return!1;return!0})),l=e.length;e.forEach(function(e,t){if("|"===e)return 0===t||t+1===l||"|"===r?void 0:(t=PE(),o.append(t),void(r=e));r="string"==typeof e?(n.registerSingleItem(e,n),e):(n.registerGroup(e),"group")})},x3.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=new n3(e),e=e.menuKeys,e=void 0===e?[]:e,o=this.config.excludeKeys,i=void 0===o?[]:o;e.forEach(function(e){i.includes(e)||t.registerSingleItem(e,r)}),n.append(r.$elem)},x3.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof n3,o=this.menus,i=o[e];if(null==i){var a=lw[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");a=l3(e,i,r);this.toolbarItems.push(a),E2.set(a,n),r?t.appendBarItem(a):t.$toolbar.append(a.$elem)},x3.prototype.getEditorInstance=function(){var e=m2.get(this);if(null==e)throw new Error("Can not get editor instance");return e},x3.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},x3),u=qv.EXISTS,l=xv.f,g=Function.prototype,m3=b(g.toString),b3=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,w3=b(b3.exec);function x3(e,t){var n=this,t=(this.$toolbar=N('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zp(function(){n.toolbarItems.forEach(function(e){e.changeMenuState()})},200),this.config=t,N(e));if(0===t.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=t;e=this.$toolbar;e.on("mousedown",function(e){return e.preventDefault()},{passive:!1}),t.append(e),_4(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}function E3(e){var n,r,t=e.server,t=void 0===t?"":t,o=e.fieldName,o=void 0===o?"":o,i=e.maxFileSize,i=void 0===i?10485760:i,a=e.maxNumberOfFiles,a=void 0===a?100:a,u=e.meta,u=void 0===u?{}:u,s=e.metaWithUrl,s=void 0!==s&&s,l=e.headers,l=void 0===l?{}:l,c=e.withCredentials,c=void 0!==c&&c,f=e.timeout,f=void 0===f?1e4:f,d=e.onBeforeUpload,d=void 0===d?function(e){return e}:d,p=e.onSuccess,h=void 0===p?function(e,t){}:p,p=e.onError,g=void 0===p?function(e,t,n){console.error(e.name+" upload error",t,n)}:p,p=e.onProgress,v=void 0===p?function(e){}:p;if(!t)throw new Error("Cannot get upload server address\n没有配置上传地址");if(o)return e=t,s&&(p=u,t=xb(e.split("#"),2),s=t[0],t=t[1],n=[],Ad(p,function(e,t){n.push(t+"="+e)}),p=n.join("&"),s=0<s.indexOf("?")?s+"&"+p:s+"?"+p,e=t?s+"#"+t:s),(r=new c0({onBeforeUpload:d,restrictions:{maxFileSize:i,maxNumberOfFiles:a},meta:u}).use(wg,{endpoint:e,headers:l,formData:!0,fieldName:o,bundle:!0,withCredentials:c,timeout:f})).on("upload-success",function(e,t){t=t.body,t=void 0===t?{}:t;try{h(e,t)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}r.removeFile(e.id)}),r.on("progress",function(e){e<1||v(e)}),r.on("upload-error",function(e,t,n){try{g(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}r.removeFile(e.id)}),r.on("restriction-failed",function(e,t){try{g(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}r.removeFile(e.id)}),r;throw new Error("Cannot get fieldName\n没有配置 fieldName")}function D3(e){return(D3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S3(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?Object(arguments[e]):{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&t.push.apply(t,Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),t.forEach(function(e){var t,n;t=r,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return r}function C3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O3(e,t,n){t&&A3(e.prototype,t),n&&A3(e,n)}function k3(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B3(e,t){if(t&&("object"===D3(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return k3(e)}function F3(e){return(F3=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T3(e,t){return(T3=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _3(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T3(e,t)}Jg&&!u&&l(g,"name",{configurable:!0,get:function(){try{return w3(b3,m3(this))[1]}catch(e){return""}}});var P3={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},j3=(O3(L3,[{key:"init",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||P3,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(e){return new L3(this.logger,S3({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),new L3),N3=(O3(I3,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter(function(e){return e!==t}):delete this.observers[e])}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&[].concat(this.observers[t]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(e){e.apply(e,[t].concat(n))})}}]),I3);function I3(){C3(this,I3),this.observers={}}function L3(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};C3(this,L3),this.init(e,t)}function R3(){var n,r,e=new Promise(function(e,t){n=e,r=t});return e.resolve=n,e.reject=r,e}function M3(e){return null==e?"":""+e}function z3(e,t,n){function r(e){return e&&-1<e.indexOf("###")?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");1<i.length;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function H3(e,t,n){e=z3(e,t,Object);e.obj[e.k]=n}function $3(e,t){e=z3(e,t),t=e.obj,e=e.k;if(t)return t[e]}function V3(e,t,n){e=$3(e,n);return void 0!==e?e:$3(t,n)}function U3(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var W3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function G3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return W3[e]}):e}var q3="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&-1<window.navigator.userAgent.indexOf("MSIE");_3(Q3,N3),O3(Q3,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){e=this.options.ns.indexOf(e);-1<e&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=(void 0!==r.keySeparator?r:this.options).keySeparator,r=(void 0!==r.ignoreJSONStructure?r:this.options).ignoreJSONStructure,i=[e,t],i=(n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),-1<e.indexOf(".")&&(i=e.split(".")),$3(this.data,i));return i||!r||"string"!=typeof n?i:function e(t,n,r){var o=2<arguments.length&&void 0!==r?r:".";if(t){if(t[n])return t[n];for(var i=n.split(o),a=t,u=0;u<i.length;++u){if(!a)return;if("string"==typeof a[i[u]]&&u+1<i.length)return;if(void 0===a[i[u]]){for(var s,l=2,c=i.slice(u,u+l).join(o),f=a[c];void 0===f&&i.length>u+l;)l++,f=a[c=i.slice(u,u+l).join(o)];return void 0===f?void 0:"string"==typeof f?f:c&&"string"==typeof f[c]?f[c]:(s=i.slice(u+l).join(o))?e(f,s,o):void 0}a=a[i[u]]}return a}}(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator,a=(void 0===i&&(i="."),[e,t]);n&&(a=a.concat(i?n.split(i):n)),-1<e.indexOf(".")&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),H3(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t],u=(-1<e.indexOf(".")&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),$3(this.data,a)||{});r?function e(t,n,r){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o])}(u,n,o):u=S3({},u,n),H3(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t=t||this.options.defaultNS,"v1"===this.options.compatibilityAPI?S3({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]);var K3=Q3,Y3={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}},X3={},Z3=(_3(J3,N3),O3(J3,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){return null!=e&&(e=this.resolve(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}))&&void 0!==e.res}},{key:"extractFromKey",value:function(e,t){var n=(void 0!==t.nsSeparator?t:this.options).nsSeparator,r=(void 0!==t.keySeparator?t:this.options).keySeparator,t=t.ns||this.options.defaultNS;if((n=void 0===n?":":n)&&-1<e.indexOf(n)){var o=e.match(this.interpolator.nestingRegexp);if(o&&0<o.length)return{key:e,namespaces:t};o=e.split(n);(n!==r||n===r&&-1<this.options.ns.indexOf(o[0]))&&(t=o.shift()),e=o.join(r)}return{key:e,namespaces:t="string"==typeof t?[t]:t}}},{key:"translate",value:function(e,r,t){var o=this;if(r=(r="object"!==D3(r)&&this.options.overloadTranslationOptionHandler?this.options.overloadTranslationOptionHandler(arguments):r)||{},null==e)return"";Array.isArray(e)||(e=[String(e)]);var n=(void 0!==r.keySeparator?r:this.options).keySeparator,i=this.extractFromKey(e[e.length-1],r),a=i.key,u=i.namespaces,s=u[u.length-1],i=r.lng||this.language,l=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(i&&"cimode"===i.toLowerCase())return l?(l=r.nsSeparator||this.options.nsSeparator,s+l+a):a;var l=this.resolve(e,r),c=l&&l.res,f=l&&l.usedKey||a,d=l&&l.exactUsedKey||a,p=Object.prototype.toString.apply(c),h=(void 0!==r.joinArrays?r:this.options).joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&c&&("string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(p)<0&&("string"!=typeof h||"[object Array]"!==p)){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,c,S3({},r,{ns:u})):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(n){var v,y,m="[object Array]"===p,b=m?[]:{},w=m?d:f;for(v in c)Object.prototype.hasOwnProperty.call(c,v)&&(y="".concat(w).concat(n).concat(v),b[v]=this.translate(y,S3({},r,{joinArrays:!1,ns:u})),b[v]===y)&&(b[v]=c[v]);c=b}}else if(g&&"string"==typeof h&&"[object Array]"===p)c=(c=c.join(h))&&this.extendTranslation(c,e,r,t);else{var m=!1,d=!1,f=void 0!==r.count&&"string"!=typeof r.count,g=J3.hasDefaultValue(r),p=f?this.pluralResolver.getSuffix(i,r.count):"",x=r["defaultValue".concat(p)]||r.defaultValue;!this.isValidLookup(c)&&g&&(m=!0,c=x),this.isValidLookup(c)||(d=!0,c=a);var E=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&d?void 0:c,D=g&&x!==c&&this.options.updateMissing;if(d||m||D){this.logger.log(D?"updateKey":"missingKey",i,s,a,D?x:c),n&&(h=this.resolve(a,S3({},r,{keySeparator:!1})))&&h.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");var S=[],C=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&C&&C[0])for(var A=0;A<C.length;A++)S.push(C[A]);else"all"===this.options.saveMissingTo?S=this.languageUtils.toResolveHierarchy(r.lng||this.language):S.push(r.lng||this.language);var O=function(e,t,n){o.options.missingKeyHandler?o.options.missingKeyHandler(e,s,t,D?n:E,D,r):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,s,t,D?n:E,D,r),o.emit("missingKey",e,s,t,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&f?S.forEach(function(t){o.pluralResolver.getSuffixes(t).forEach(function(e){O([t],a+e,r["defaultValue".concat(e)]||x)})}):O(S,a,x))}c=this.extendTranslation(c,e,r,l,t),d&&c===a&&this.options.appendNamespaceToMissingKey&&(c="".concat(s,":").concat(a)),(d||m)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(c))}return c}},{key:"extendTranslation",value:function(e,r,o,t,i){var n,a=this,u=(this.i18nFormat&&this.i18nFormat.parse?e=this.i18nFormat.parse(e,o,t.usedLng,t.usedNS,t.usedKey,{resolved:t}):o.skipInterpolation||(o.interpolation&&this.interpolator.init(S3({},o,{interpolation:S3({},this.options.interpolation,o.interpolation)})),(u=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables)&&(s=(s=e.match(this.interpolator.nestingRegexp))&&s.length),n=o.replace&&"string"!=typeof o.replace?o.replace:o,this.options.interpolation.defaultVariables&&(n=S3({},this.options.interpolation.defaultVariables,n)),e=this.interpolator.interpolate(e,n,o.lng||this.language,o),u&&s<((n=e.match(this.interpolator.nestingRegexp))&&n.length)&&(o.nest=!1),!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i&&i[0]===t[0]&&!o.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(t[0]," in key: ").concat(r[0])),null):a.translate.apply(a,t.concat([r]))},o)),o.interpolation&&this.interpolator.reset()),o.postProcess||this.options.postProcess),s="string"==typeof u?[u]:u;return e=null!=e&&s&&s.length&&!1!==o.applyPostProcessor?Y3.handle(s,e,r,this.options&&this.options.postProcessPassResolved?S3({i18nResolved:t},o):o,this):e}},{key:"resolve",value:function(e){var l,n,c,f,r,d=this,p=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return(e="string"==typeof e?[e]:e).forEach(function(e){var a,u,s,t;d.isValidLookup(l)||(e=d.extractFromKey(e,p),a=e.key,n=a,e=e.namespaces,d.options.fallbackNS&&(e=e.concat(d.options.fallbackNS)),u=void 0!==p.count&&"string"!=typeof p.count,s=void 0!==p.context&&("string"==typeof p.context||"number"==typeof p.context)&&""!==p.context,t=p.lngs||d.languageUtils.toResolveHierarchy(p.lng||d.language,p.fallbackLng),e.forEach(function(i){d.isValidLookup(l)||(r=i,!X3["".concat(t[0],"-").concat(i)]&&d.utils&&d.utils.hasLoadedNamespace&&!d.utils.hasLoadedNamespace(r)&&(X3["".concat(t[0],"-").concat(i)]=!0,d.logger.warn('key "'.concat(n,'" for languages "').concat(t.join(", "),'" won\'t get resolved as namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),t.forEach(function(e){if(!d.isValidLookup(l)){f=e;var t,n,r=a,o=[r];for(d.i18nFormat&&d.i18nFormat.addLookupKeys?d.i18nFormat.addLookupKeys(o,a,e,i,p):(u&&(t=d.pluralResolver.getSuffix(e,p.count)),u&&s&&o.push(r+t),s&&o.push(r+="".concat(d.options.contextSeparator).concat(p.context)),u&&o.push(r+=t));n=o.pop();)d.isValidLookup(l)||(c=n,l=d.getResource(e,i,n,p))}}))}))}),{res:l,usedKey:n,exactUsedKey:c,usedLng:f,usedNS:r}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return(this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat:this.resourceStore).getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t,n="defaultValue";for(t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n===t.substring(0,n.length)&&void 0!==e[t])return!0;return!1}}]),J3);function J3(e){var t,n,r,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return C3(this,J3),t=B3(this,F3(J3).call(this)),q3&&N3.call(k3(t)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=e,o=k3(t),n.forEach(function(e){r[e]&&(o[e]=r[e])}),t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=j3.create("translator"),t}function Q3(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return C3(this,Q3),t=B3(this,F3(Q3).call(this)),q3&&N3.call(k3(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}function e6(e){return e.charAt(0).toUpperCase()+e.slice(1)}O3(o6,[{key:"getScriptPartFromCode",value:function(e){return!e||e.indexOf("-")<0||2===(e=e.split("-")).length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){return!e||e.indexOf("-")<0?e:(e=e.split("-"),this.formatLanguageCode(e[0]))}},{key:"formatLanguageCode",value:function(e){var t,n;return"string"==typeof e&&-1<e.indexOf("-")?(t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-"),this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),-1<t.indexOf(n[1].toLowerCase())&&(n[1]=e6(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),-1<t.indexOf(n[1].toLowerCase())&&(n[1]=e6(n[1].toLowerCase())),-1<t.indexOf(n[2].toLowerCase()))&&(n[2]=e6(n[2].toLowerCase())),n.join("-")):this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return"languageOnly"!==this.options.load&&!this.options.nonExplicitSupportedLngs||(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||-1<this.supportedLngs.indexOf(e)}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(e){n||(e=r.formatLanguageCode(e),r.options.supportedLngs&&!r.isSupportedCode(e))||(n=e)}),!n&&this.options.supportedLngs&&e.forEach(function(e){if(!n){var t=r.getLanguagePartFromCode(e);if(r.isSupportedCode(t))return n=t;n=r.options.supportedLngs.find(function(e){if(0===e.indexOf(t))return e})}}),n=n||this.getFallbackCodes(this.options.fallbackLng)[0]):null}},{key:"getFallbackCodes",value:function(e,t){return e?("string"==typeof(e="function"==typeof e?e(t):e)&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e)?e:t?e[t]||e[this.getScriptPartFromCode(t)]||e[this.formatLanguageCode(t)]||e[this.getLanguagePartFromCode(t)]||e.default||[]:e.default||[]):[]}},{key:"toResolveHierarchy",value:function(e,t){function n(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))}var r=this,t=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[];return"string"==typeof e&&-1<e.indexOf("-")?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),t.forEach(function(e){o.indexOf(e)<0&&n(r.formatLanguageCode(e))}),o}}]);var t6=o6,n6=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],r6={1:function(e){return Number(1<e)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:3<=e%100&&e%100<=10?3:11<=e%100?4:5)},6:function(e){return Number(1==e?0:2<=e&&e<=4?1:2)},7:function(e){return Number(1==e?0:2<=e%10&&e%10<=4&&(e%100<10||20<=e%100)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(2<=e)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:2<e&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:2<=e%10&&(e%100<10||20<=e%100)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||1<e%100&&e%100<11?1:10<e%100&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||0<e%100&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||10<e)&&e%10==0?2:3)}};function o6(e){C3(this,o6),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=j3.create("languageUtils")}O3(c6,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){e=this.getRule(e);return e&&1<e.numbers.length}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map(function(e){return t+e})}},{key:"getSuffixes",value:function(t){var n=this,e=this.getRule(t);return e?e.numbers.map(function(e){return n.getSuffix(t,e)}):[]}},{key:"getSuffix",value:function(e,t){var n,r,o=this,i=this.getRule(e);return i?(t=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),n=i.numbers[t],this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===n?n="plural":1===n&&(n="")),r=function(){return o.options.prepend&&n.toString()?o.options.prepend+n.toString():n.toString()},"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?"_plural_".concat(n.toString()):r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?r():this.options.prepend&&t.toString()?this.options.prepend+t.toString():t.toString()):(this.logger.warn("no plural rule found for: ".concat(e)),"")}}]);var i6=c6,a6=(O3(l6,[{key:"init",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(e.interpolation||(e.interpolation={escapeValue:!0}),e.interpolation);this.escape=void 0!==e.escape?e.escape:G3,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?U3(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?U3(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator||e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=!this.unescapePrefix&&e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?U3(e.nestingPrefix):e.nestingPrefixEscaped||U3("$t("),this.nestingSuffix=e.nestingSuffix?U3(e.nestingSuffix):e.nestingSuffixEscaped||U3(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator||e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces||1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix),e=(this.regexp=new RegExp(e,"g"),"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),e=(this.regexpUnescape=new RegExp(e,"g"),"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix));this.nestingRegexp=new RegExp(e,"g")}},{key:"interpolate",value:function(r,o,i,a){var u,s,l,c=this,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function t(e){return e.replace(/\$/g,"$$$$")}this.resetRegExp();var d=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,p=a&&a.interpolation&&a.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t},{regex:this.regexp,safeValue:function(e){return c.escapeValue?t(c.escape(e)):t(e)}}].forEach(function(e){for(l=0;u=e.regex.exec(r);){if(void 0===(t=u[1].trim(),n=void 0,s=t.indexOf(c.formatSeparator)<0?(n=V3(o,f,t),c.alwaysFormat?c.format(n,void 0,i,S3({},a,o,{interpolationkey:t})):n):(t=(n=t.split(c.formatSeparator)).shift().trim(),n=n.join(c.formatSeparator).trim(),c.format(V3(o,f,t),n,i,S3({},a,o,{interpolationkey:t})))))if("function"==typeof d){n=d(r,u,a);s="string"==typeof n?n:""}else{if(p){s=u[0];continue}c.logger.warn("missed to pass in variable ".concat(u[1]," for interpolating ").concat(r)),s=""}else"string"==typeof s||c.useRawValueToEscape||(s=M3(s));t=e.safeValue(s);if(r=r.replace(u[0],t),p?(e.regex.lastIndex+=t.length,e.regex.lastIndex-=u[0].length):e.regex.lastIndex=0,++l>=c.maxReplaces)break}var t,n}),r}},{key:"nest",value:function(e,t){var n,r=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=S3({},o);function a(e,t){var n=this.nestingOptionsSeparator;if(!(e.indexOf(n)<0)){var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,i)).replace(/'/g,'"');try{i=JSON.parse(o),t&&(i=S3({},t,i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}delete i.defaultValue}return e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var u,s=[],l=!1;if(-1===n[0].indexOf(this.formatSeparator)||/{.*}/.test(n[1])||(u=n[1].split(this.formatSeparator).map(function(e){return e.trim()}),n[1]=u.shift(),s=u,l=!0),(u=t(a.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof u)return u;(u="string"!=typeof u?M3(u):u)||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),u=""),l&&(u=s.reduce(function(e,t){return r.format(e,t,o.lng,S3({},o,{interpolationkey:n[1].trim()}))},u.trim())),e=e.replace(n[0],u),this.regexp.lastIndex=0}return e}}]),l6),u6=(_3(s6,N3),O3(s6,[{key:"queueLoad",value:function(e,t,o,n){var i=this,a=[],u=[],s=[],l=[];return e.forEach(function(n){var r=!0;t.forEach(function(e){var t="".concat(n,"|").concat(e);!o.reload&&i.store.hasResourceBundle(n,e)?i.state[t]=2:i.state[t]<0||(1===i.state[t]?u.indexOf(t)<0&&u.push(t):(i.state[t]=1,r=!1,u.indexOf(t)<0&&u.push(t),a.indexOf(t)<0&&a.push(t),l.indexOf(e)<0&&l.push(e)))}),r||s.push(n)}),(a.length||u.length)&&this.queue.push({pending:u,loaded:{},errors:[],callback:n}),{toLoad:a,pending:u,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(u,s,e){var t=u.split("|"),l=t[0],c=t[1],f=(s&&this.emit("failedLoading",l,c,s),e&&this.store.addResourceBundle(l,c,e),this.state[u]=s?-1:2,{});this.queue.forEach(function(e){t=e.loaded,n=c,t=z3(t,[l],Object),r=t.obj,t=t.k,r[t]=r[t]||[],r[t].push(n);for(var t,n,r,o=e.pending,i=u,a=o.indexOf(i);-1!==a;)o.splice(a,1),a=o.indexOf(i);s&&e.errors.push(s),0!==e.pending.length||e.done||(Object.keys(e.loaded).forEach(function(t){f[t]||(f[t]=[]),e.loaded[t].length&&e.loaded[t].forEach(function(e){f[t].indexOf(e)<0&&f[t].push(e)})}),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(n,r,o){var i=this,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,u=4<arguments.length&&void 0!==arguments[4]?arguments[4]:350,s=5<arguments.length?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(e,t){e&&t&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(e,t)}):s(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=3<arguments.length?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e));e=this.queueLoad(e,t="string"==typeof t?[t]:t,r,o);if(!e.toLoad.length)return e.pending.length||o(),null;e.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(n){var r=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=n.split("|"),i=e[0],a=e[1];this.read(i,a,"read",void 0,void 0,function(e,t){e&&r.logger.warn("".concat(o,"loading namespace ").concat(a," for language ").concat(i," failed"),e),!e&&t&&r.logger.log("".concat(o,"loaded namespace ").concat(a," for language ").concat(i),t),r.loaded(n,e,t)})}},{key:"saveMissing",value:function(e,t,n,r,o){var i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,S3({},i,{isUpdate:o})),e)&&e[0]&&this.store.addResource(e[0],t,n,r)}}]),s6);function s6(e,t,n){var r,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return C3(this,s6),r=B3(this,F3(s6).call(this)),q3&&N3.call(k3(r)),r.backend=e,r.store=t,r.services=n,r.languageUtils=n.languageUtils,r.options=o,r.logger=j3.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(n,o.backend,o),r}function l6(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};C3(this,l6),this.logger=j3.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.init(e)}function c6(e){var n,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};C3(this,c6),this.languageUtils=e,this.options=t,this.logger=j3.create("pluralResolver"),this.rules=(n={},n6.forEach(function(t){t.lngs.forEach(function(e){n[e]={numbers:t.nr,plurals:r6[t.fc]}})}),n)}function f6(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function d6(){}_3(h6,N3),O3(h6,[{key:"init",value:function(){var e,o=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}"function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=S3({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t,n={};return"object"===D3(e[1])&&(n=e[1]),"string"==typeof e[1]&&(n.defaultValue=e[1]),"string"==typeof e[2]&&(n.tDescription=e[2]),"object"!==D3(e[2])&&"object"!==D3(e[3])||(t=e[3]||e[2],Object.keys(t).forEach(function(e){n[e]=t[e]})),n},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,f6(t)),this.format=this.options.interpolation.format,n=n||d6,this.options.isClone||(this.modules.logger?j3.init(r(this.modules.logger),this.options):j3.init(null,this.options),t=new t6(this.options),this.store=new K3(this.options.resources,this.options),(e=this.services).logger=j3,e.resourceStore=this.store,e.languageUtils=t,e.pluralResolver=new i6(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e.interpolator=new a6(this.options),e.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},e.backendConnector=new u6(r(this.modules.backend),e.resourceStore,e,this.options),e.backendConnector.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),this.modules.languageDetector&&(e.languageDetector=r(this.modules.languageDetector),e.languageDetector.init(e,this.options.detection,this.options)),this.modules.i18nFormat&&(e.i18nFormat=r(this.modules.i18nFormat),e.i18nFormat.init)&&e.i18nFormat.init(this),this.translator=new Z3(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),this.modules.external.forEach(function(e){e.init&&e.init(o)})),!this.options.fallbackLng||this.services.languageDetector||this.options.lng||0<(t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng)).length&&"dev"!==t[0]&&(this.options.lng=t[0]),this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments)}});function i(){function e(e,t){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),a.resolve(t),n(e,t)}if(o.languages&&"v1"!==o.options.compatibilityAPI&&!o.isInitialized)return e(null,o.t.bind(o));o.changeLanguage(o.options.lng,e)}["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments),o}});var a=R3();return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),a}},{key:"loadResources",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:d6,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],e=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};r?e(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e),this.options.preload&&this.options.preload.forEach(e),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=R3();return e=e||this.languages,t=t||this.options.ns,n=n||d6,this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(e.type)return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Y3.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this;throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()")}},{key:"changeLanguage",value:function(t,r){function e(e){var n="string"==typeof(e=t||e||!o.services.languageDetector?e:[])?e:o.services.languageUtils.getBestMatchFromCodes(e);n&&(o.language||(o.language=n,o.languages=o.services.languageUtils.toResolveHierarchy(n)),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector)&&o.services.languageDetector.cacheUserLanguage(n),o.loadResources(n,function(e){var t;e=e,(t=n)?(o.language=t,o.languages=o.services.languageUtils.toResolveHierarchy(t),o.translator.changeLanguage(t),o.isLanguageChangingTo=void 0,o.emit("languageChanged",t),o.logger.log("languageChanged",t)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),r&&r(e,function(){return o.t.apply(o,arguments)})})}var o=this,i=(this.isLanguageChangingTo=t,R3());this.emit("languageChanging",t);return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(e):e(t):e(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,a){function u(e,t){var n;if("object"!==D3(t)){for(var r=arguments.length,o=new Array(2<r?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n=s.options.overloadTranslationOptionHandler([e,t].concat(o))}else n=S3({},t);return n.lng=n.lng||u.lng,n.lngs=n.lngs||u.lngs,n.ns=n.ns||u.ns,t=s.options.keySeparator||".",t=a?"".concat(a).concat(t).concat(e):e,s.t(t,n)}var s=this;return"string"==typeof e?u.lng=e:u.lngs=e,u.ns=t,u.keyPrefix=a,u}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var n=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;function a(e,t){return-1===(e=n.services.backendConnector.state["".concat(e,"|").concat(t)])||2===e}if(t.precheck){t=t.precheck(this,a);if(void 0!==t)return t}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=R3();return this.options.ns?((e="string"==typeof e?[e]:e).forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=R3(),r=this.options.preload||[],e=(e="string"==typeof e?[e]:e).filter(function(e){return r.indexOf(e)<0});return e.length?(this.options.preload=r.concat(e),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return!(e=e||(this.languages&&0<this.languages.length?this.languages[0]:this.language))||0<=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))?"rtl":"ltr"}},{key:"createInstance",value:function(){return new h6(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},1<arguments.length?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:d6,e=S3({},this.options,e,{isClone:!0}),o=new h6(e);return["store","services","language"].forEach(function(e){o[e]=t[e]}),o.services=S3({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Z3(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(e,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]);var p6=new h6;function h6(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;if(C3(this,h6),e=B3(this,F3(h6).call(this)),q3&&N3.call(k3(e)),e.options=f6(t),e.services={},e.logger=j3,e.modules={external:[]},n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),B3(e,k3(e));setTimeout(function(){e.init(t,n)},0)}return e}function g6(e,t){p6.addResourceBundle(e,"translation",t,!0,!0)}function v6(e){p6.changeLanguage(e)}p6.init({lng:"zh-CN",resources:{}});var w=p6.t.bind(p6);g6("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),g6("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});function y6(){}function m6(e){if(!Ur(e))return!1;try{return A6(y6,C6,e),!0}catch(e){return!1}}function b6(e,t){return new(void 0===(n=S6(e=e)&&(n=e.constructor,F6(n)&&(n===_6||S6(n.prototype))||Wr(n)&&null===(n=n[T6]))?void 0:n)?_6:n)(0===t?0:t);var n}function w6(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=Sr(e),u=$r(a),s=ja(t,n),l=si(u),c=0,t=r||b6,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:P6(f,o)}else switch(d){case 4:return!1;case 7:P6(f,o)}return y?-1:g||v?v:f}}function x6(t){if(t&&t.forEach!==N6)try{Fo(t,"forEach",N6)}catch(e){t.forEach=N6}}n||Qo(Object.prototype,"toString",n?{}.toString:function(){return"[object "+Ti(this)+"]"},{unsafe:!0});var E6,D6,S6=Array.isArray||function(e){return"Array"==mr(e)},C6=[],A6=xr("Reflect","construct"),O6=/^\s*(?:class|function)\b/,k6=Lr(O6.exec),B6=!O6.exec(y6),F6=!A6||yr(function(){var e;return m6(m6.call)||!m6(Object)||!m6(function(){e=!0})||e})?function(e){if(!Ur(e))return!1;switch(Ti(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return B6||!!k6(O6,Go(e))}:m6,T6=Ar("species"),_6=Br.Array,P6=Lr([].push),j6=[w6(0),w6(1),w6(2),w6(3),w6(4),w6(5),w6(6),w6(7)][0],N6=(E6=[].forEach)&&yr(function(){E6.call(null,function(){throw 1},1)})?[].forEach:function(e){return j6(this,e,1<arguments.length?arguments[1]:void 0)};for(D6 in xu)xu[D6]&&x6(Br[D6]&&Br[D6].prototype);x6(a),g6("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),g6("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});v={type:"paragraph",renderElem:function(e,t,n){return pp("p",null,t)}},o1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function I6(e){var t={exports:{}};return e(t,t.exports),t.exports}function L6(e){return e&&e.Math==Math&&e}function R6(e){try{return!!e()}catch(e){return!0}}function M6(e){return i5(o5(e),8,-1)}function z6(e){if(null==e)throw l5("Can't call method on "+e);return e}function H6(e){return s5(z6(e))}function $6(e,t){return arguments.length<2?(n=Y6[e],c5(n)?n:void 0):Y6[e]&&Y6[e][t];var n}function V6(e,t){return null==(e=e[t])?void 0:x5(e)}function U6(t,n){try{D5(Y6,t,{value:n,configurable:!0,writable:!0})}catch(e){Y6[t]=n}return n}function W6(e){return C5(z6(e))}function G6(e){return"Symbol("+(void 0===e?"":e)+")_"+F5(++k5+B5,36)}function q6(e){var t;return O5(T5,e)&&(h5||"string"==typeof T5[e])||(t="Symbol."+e,h5&&O5(_5,e)?T5[e]=_5[e]:T5[e]=(g5&&P5?P5:j5)(t)),T5[e]}function K6(e){return M5?R5.createElement(e):{}}var Y6=L6("object"==typeof globalThis&&globalThis)||L6("object"==typeof window&&window)||L6("object"==typeof self&&self)||L6("object"==typeof o1&&o1)||function(){return this}()||Function("return this")(),X6=!R6(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Z6=Function.prototype.call,J6=Z6.bind?Z6.bind(Z6):function(){return Z6.apply(Z6,arguments)},d={}.propertyIsEnumerable,Q6=Object.getOwnPropertyDescriptor,e5={f:Q6&&!d.call({1:2},1)?function(e){e=Q6(this,e);return!!e&&e.enumerable}:d},t5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i=Function.prototype,c=i.bind,n5=i.call,r5=c&&c.bind(n5),x=c?function(e){return e&&r5(n5,e)}:function(e){return e&&function(){return n5.apply(e,arguments)}},o5=x({}.toString),i5=x("".slice),a5=Y6.Object,u5=x("".split),s5=R6(function(){return!a5("z").propertyIsEnumerable(0)})?function(e){return"String"==M6(e)?u5(e,""):a5(e)}:a5,l5=Y6.TypeError,c5=function(e){return"function"==typeof e},f5=function(e){return"object"==typeof e?null!==e:c5(e)},d5=x({}.isPrototypeOf),s=$6("navigator","userAgent")||"",p=Y6.process,h=Y6.Deno,f=p&&p.versions||h&&h.version,r1=f&&f.v8,p5=jD=!(jD=r1?0<(vD=r1.split("."))[0]&&vD[0]<4?1:+(vD[0]+vD[1]):jD)&&s&&(!(vD=s.match(/Edge\/(\d+)/))||74<=vD[1])&&(vD=s.match(/Chrome\/(\d+)/))?+vD[1]:jD,h5=!!Object.getOwnPropertySymbols&&!R6(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&p5&&p5<41}),g5=h5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,v5=Y6.Object,y5=g5?function(e){return"symbol"==typeof e}:function(e){var t=$6("Symbol");return c5(t)&&d5(t.prototype,v5(e))},m5=Y6.String,b5=function(e){try{return m5(e)}catch(e){return"Object"}},w5=Y6.TypeError,x5=function(e){if(c5(e))return e;throw w5(b5(e)+" is not a function")},E5=Y6.TypeError,D5=Object.defineProperty,S5=Y6["__core-js_shared__"]||U6("__core-js_shared__",{}),u=I6(function(e){(e.exports=function(e,t){return S5[e]||(S5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),C5=Y6.Object,A5=x({}.hasOwnProperty),O5=Object.hasOwn||function(e,t){return A5(W6(e),t)},k5=0,B5=Math.random(),F5=x(1..toString),T5=u("wks"),_5=Y6.Symbol,P5=_5&&_5.for,j5=g5?_5:_5&&_5.withoutSetter||G6,N5=Y6.TypeError,I5=q6("toPrimitive"),L5=function(e){e=function(e,t){if(!f5(e)||y5(e))return e;var n,r,o=V6(e,I5);if(o){if(o=J6(o,e,t=void 0===t?"default":t),!f5(o)||y5(o))return o;throw N5("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&c5(n=o.toString)&&!f5(r=J6(n,o)))return r;if(c5(n=o.valueOf)&&!f5(r=J6(n,o)))return r;if("string"!==e&&c5(n=o.toString)&&!f5(r=J6(n,o)))return r;throw E5("Can't convert object to primitive value")}(e,"string");return y5(e)?e:e+""},R5=Y6.document,M5=f5(R5)&&f5(R5.createElement),z5=!X6&&!R6(function(){return 7!=Object.defineProperty(K6("div"),"a",{get:function(){return 7}}).a}),H5=Object.getOwnPropertyDescriptor,$5={f:X6?H5:function(e,t){if(e=H6(e),t=L5(t),z5)try{return H5(e,t)}catch(e){}if(O5(e,t))return t5(!J6(e5.f,e,t),e[t])}},V5=Y6.String,U5=Y6.TypeError,W5=function(e){if(f5(e))return e;throw U5(V5(e)+" is not an object")},G5=Y6.TypeError,q5=Object.defineProperty,K5={f:X6?q5:function(e,t,n){if(W5(e),t=L5(t),W5(n),z5)try{return q5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw G5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Y5=X6?function(e,t,n){return K5.f(e,t,t5(1,n))}:function(e,t,n){return e[t]=n,e},X5=x(Function.toString);c5(S5.inspectSource)||(S5.inspectSource=function(e){return X5(e)});function Z5(e){return m8[e]||(m8[e]=G6(e))}function J5(e,t){return(e=A8(e))<0?O8(e+t,0):k8(e,t)}function Q5(e){return F8(e.length)}function e8(u){return function(e,t,n){var r,o=H6(e),i=Q5(o),a=J5(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function t8(e,t){var n,r=H6(e),o=0,i=[];for(n in r)!O5(b8,n)&&O5(r,n)&&_8(i,n);for(;t.length>o;)!O5(r,n=t[o++])||~T8(i,n)||_8(i,n);return i}function n8(e,t){return(e=H8[z8(e)])==V8||e!=$8&&(c5(t)?R6(t):!!t)}function r8(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?Y6:s?Y6[a]||U6(a,{}):(Y6[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=W8(n,r))&&i.value:n[r],!U8(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=R8(c),d=K5.f,p=$5.f,h=0;h<f.length;h++){var g=f[h];O5(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&Y5(o,"sham",!0),D8(n,r,o,e)}}function o8(){}function i8(e){if(!c5(e))return!1;try{return Q8(o8,J8,e),!0}catch(e){return!1}}function a8(e,t){return new(void 0===(n=q8(e=e)&&(n=e.constructor,rD(n)&&(n===iD||q8(n.prototype))||f5(n)&&null===(n=n[oD]))?void 0:n)?iD:n)(0===t?0:t);var n}function u8(h){var g=1==h,v=2==h,y=3==h,m=4==h,b=6==h,w=7==h,x=5==h||b;return function(e,t,n,r){for(var o,i,a,u,s=W6(e),l=s5(s),c=(u=n,x5(a=t),void 0===u?a:G8?G8(a,u):function(){return a.apply(u,arguments)}),f=Q5(l),d=0,n=r||a8,p=g?n(e,f):v||w?n(e,0):void 0;d<f;d++)if((x||d in l)&&(i=c(o=l[d],d,s),h))if(g)p[d]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return d;case 2:aD(p,o)}else switch(h){case 4:return!1;case 7:aD(p,o)}return b?-1:y||m?m:p}}function s8(t){return 51<=p5||!R6(function(){var e=[];return(e.constructor={})[uD]=function(){return{foo:1}},1!==e[t](Boolean).foo})}var l8,c8,f8,d8,p8,h8,g8,v8,y8=S5.inspectSource,l=Y6.WeakMap,g=c5(l)&&/native code/.test(y8(l)),m8=u("keys"),b8={},w8=Y6.TypeError,n=Y6.WeakMap,x8=(g8=g||S5.state?(l8=S5.state||(S5.state=new n),c8=x(l8.get),f8=x(l8.has),d8=x(l8.set),p8=function(e,t){if(f8(l8,e))throw new w8("Object already initialized");return t.facade=e,d8(l8,e,t),t},h8=function(e){return c8(l8,e)||{}},function(e){return f8(l8,e)}):(v8=Z5("state"),b8[v8]=!0,p8=function(e,t){if(O5(e,v8))throw new w8("Object already initialized");return t.facade=e,Y5(e,v8,t),t},h8=function(e){return O5(e,v8)?e[v8]:{}},function(e){return O5(e,v8)}),{set:p8,get:h8,has:g8,enforce:function(e){return g8(e)?h8(e):p8(e,{})},getterFor:function(t){return function(e){if(f5(e)&&(e=h8(e)).type===t)return e;throw w8("Incompatible receiver, "+t+" required")}}}),a=Function.prototype,d=X6&&Object.getOwnPropertyDescriptor,i=O5(a,"name"),E8={EXISTS:i,PROPER:i&&"something"===function(){}.name,CONFIGURABLE:i&&(!X6||d(a,"name").configurable)},D8=I6(function(e){var s=E8.CONFIGURABLE,t=x8.get,l=x8.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;c5(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!O5(n,"name")||s&&n.name!==r)&&Y5(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==Y6?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Y5(e,t,n)):a?e[t]=n:U6(t,n)})(Function.prototype,"toString",function(){return c5(this)&&t(this).source||y8(this)})}),S8=Math.ceil,C8=Math.floor,A8=function(e){e=+e;return e!=e||0==e?0:(0<e?C8:S8)(e)},O8=Math.max,k8=Math.min,B8=Math.min,F8=function(e){return 0<e?B8(A8(e),9007199254740991):0},c={includes:e8(!0),indexOf:e8(!1)},T8=c.indexOf,_8=x([].push),P8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],j8=P8.concat("length","prototype"),N8={f:Object.getOwnPropertyNames||function(e){return t8(e,j8)}},I8={f:Object.getOwnPropertySymbols},L8=x([].concat),R8=$6("Reflect","ownKeys")||function(e){var t=N8.f(W5(e)),n=I8.f;return n?L8(t,n(e)):t},M8=/#|\.prototype\./,z8=n8.normalize=function(e){return String(e).replace(M8,".").toLowerCase()},H8=n8.data={},$8=n8.NATIVE="N",V8=n8.POLYFILL="P",U8=n8,W8=$5.f,G8=x(x.bind),q8=Array.isArray||function(e){return"Array"==M6(e)},p={},h=(p[q6("toStringTag")]="z","[object z]"===String(p)),K8=q6("toStringTag"),Y8=Y6.Object,X8="Arguments"==M6(function(){return arguments}()),Z8=h?M6:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Y8(e),K8))?t:X8?M6(e):"Object"==(t=M6(e))&&c5(e.callee)?"Arguments":t},J8=[],Q8=$6("Reflect","construct"),eD=/^\s*(?:class|function)\b/,tD=x(eD.exec),nD=!eD.exec(o8),rD=!Q8||R6(function(){var e;return i8(i8.call)||!i8(Object)||!i8(function(){e=!0})||e})?function(e){if(!c5(e))return!1;switch(Z8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nD||!!tD(eD,y8(e))}:i8,oD=q6("species"),iD=Y6.Array,aD=x([].push),f={forEach:u8(0),map:u8(1),filter:u8(2),some:u8(3),every:u8(4),find:u8(5),findIndex:u8(6),filterReject:u8(7)},uD=q6("species"),sD=f.filter;r8({target:"Array",proto:!0,forced:!s8("filter")},{filter:function(e){return sD(this,e,1<arguments.length?arguments[1]:void 0)}}),h||D8(Object.prototype,"toString",h?{}.toString:function(){return"[object "+Z8(this)+"]"},{unsafe:!0});function lD(e){if("Symbol"===Z8(e))throw TypeError("Cannot convert a Symbol value to a string");return hD(e)}function cD(){var e=W5(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function fD(){}function dD(e){e.write(xD("")),e.close();var t=e.parentWindow.Object;return e=null,t}var pD,hD=Y6.String,gD=Y6.RegExp,r1=R6(function(){var e=gD("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),s=r1||R6(function(){return!gD("a","y").sticky}),vD={BROKEN_CARET:r1||R6(function(){var e=gD("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:s,UNSUPPORTED_Y:r1},yD=Object.keys||function(e){return t8(e,P8)},mD=X6?Object.defineProperties:function(e,t){W5(e);for(var n,r=H6(t),o=yD(t),i=o.length,a=0;a<i;)K5.f(e,n=o[a++],r[n]);return e},bD=$6("document","documentElement"),wD=Z5("IE_PROTO"),xD=function(e){return"<script>"+e+"<\/script>"},ED=function(){try{pD=new ActiveXObject("htmlfile")}catch(e){}var e,t;ED="undefined"==typeof document||document.domain&&pD?dD(pD):((t=K6("iframe")).style.display="none",bD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xD("document.F=Object")),e.close(),e.F);for(var n=P8.length;n--;)delete ED.prototype[P8[n]];return ED()};b8[wD]=!0;function DD(n,e,t,r){var a,o=q6(n),u=!R6(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!R6(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[ZD]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=x(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=x(e),i=t.exec;return i===qD||i===JD.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),D8(String.prototype,n,i[0]),D8(JD,o,i[1])),r&&Y5(JD[o],"sham",!0)}function SD(o){return function(e,t){var n,e=lD(z6(e)),t=A8(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=eS(e,t))<55296||56319<n||t+1===r||(r=eS(e,t+1))<56320||57343<r?o?QD(e,t):n:o?tS(e,t,t+2):r-56320+(n-55296<<10)+65536}}function CD(e,t,n){return t+(n?nS(e,t).length:1)}function AD(e,t){var n=e.exec;if(c5(n))return null!==(n=J6(n,e,t))&&W5(n),n;if("RegExp"===M6(e))return J6(qD,e,t);throw lS("RegExp#exec called on incompatible receiver")}function OD(e){bS[mS][e]=!0}function kD(e){var t;return f5(e)&&(void 0!==(t=e[ES])?!!t:"RegExp"==M6(e))}function BD(e,t,n){(t=L5(t))in e?K5.f(e,t,t5(0,n)):e[t]=n}function FD(e,t,n){for(var r=Q5(e),o=J5(t,r),i=J5(void 0===n?r:n,r),a=CS(AS(i-o,0)),u=0;o<i;o++,u++)BD(a,u,e[o]);return a.length=u,a}function TD(t){return function(e){e=lD(z6(e));return 1&t&&(e=jS(e,NS,"")),e=2&t?jS(e,IS,""):e}}var _D=Object.create||function(e,t){var n;return null!==e?(fD.prototype=W5(e),n=new fD,fD.prototype=null,n[wD]=e):n=ED(),void 0===t?n:mD(n,t)},PD=Y6.RegExp,jD=R6(function(){var e=PD(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),ND=Y6.RegExp,l=R6(function(){var e=ND("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),ID=x8.get,LD=u("native-string-replace",String.prototype.replace),RD=RegExp.prototype.exec,MD=RD,zD=x("".charAt),HD=x("".indexOf),$D=x("".replace),VD=x("".slice),UD=(g=/b*/g,J6(RD,n=/a/,"a"),J6(RD,g,"a"),0!==n.lastIndex||0!==g.lastIndex),WD=vD.BROKEN_CARET,GD=void 0!==/()??/.exec("")[1],qD=MD=UD||GD||WD||jD||l?function(e){var t,n,r,o,i,a,u=this,s=ID(u),e=lD(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=J6(MD,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=WD&&u.sticky,f=J6(cD,u),s=u.source,d=0,p=e;if(l&&(f=$D(f,"y",""),-1===HD(f,"g")&&(f+="g"),p=VD(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==zD(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),GD&&(t=new RegExp("^"+s+"$(?!\\s)",f)),UD&&(n=u.lastIndex),r=J6(RD,l?t:u,p),l?r?(r.input=VD(r.input,d),r[0]=VD(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:UD&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),GD&&r&&1<r.length&&J6(LD,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=_D(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:MD,i=(r8({target:"RegExp",proto:!0,forced:/./.exec!==qD},{exec:qD}),Function.prototype),KD=i.apply,d=i.bind,YD=i.call,XD="object"==typeof Reflect&&Reflect.apply||(d?YD.bind(KD):function(){return YD.apply(KD,arguments)}),ZD=q6("species"),JD=RegExp.prototype,QD=x("".charAt),eS=x("".charCodeAt),tS=x("".slice),nS=(SD(!1),SD(!0)),rS=Math.floor,oS=x("".charAt),iS=x("".replace),aS=x("".slice),uS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sS=/\$([$&'`]|\d{1,2})/g,lS=Y6.TypeError,cS=q6("replace"),fS=Math.max,dS=Math.min,pS=x([].concat),hS=x([].push),gS=x("".indexOf),vS=x("".slice),a="$0"==="a".replace(/./,"$0"),yS=!!/./[cS]&&""===/./[cS]("a","$0"),mS=(DD("replace",function(e,b,w){var x=yS?"$":"$0";return[function(e,t){var n=z6(this),r=null==e?void 0:V6(e,cS);return r?J6(r,e,n,t):J6(b,lD(n),e,t)},function(e,t){var n=W5(this),r=lD(e);if("string"==typeof t&&-1===gS(t,x)&&-1===gS(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=c5(t),a=(i||(t=lD(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=AD(n,r);if(null===s)break;if(hS(u,s),!a)break;""===lD(s[0])&&(n.lastIndex=CD(r,F8(n.lastIndex),o))}for(var l,c="",f=0,d=0;d<u.length;d++){for(var p=lD((s=u[d])[0]),h=fS(dS(A8(s.index),r.length),0),g=[],v=1;v<s.length;v++)hS(g,void 0===(l=s[v])?l:String(l));var y=s.groups,m=i?(m=pS([p],g,h,r),void 0!==y&&hS(m,y),lD(XD(t,void 0,m))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=sS;return void 0!==l&&(l=W6(l),t=uS),iS(e,t,function(e,t){var n;switch(oS(t,0)){case"$":return"$";case"&":return i;case"`":return aS(a,0,u);case"'":return aS(a,c);case"<":n=l[aS(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=rS(o/10))&&r<=f?void 0===s[r-1]?oS(t,1):s[r-1]+oS(t,1):e;n=s[o-1]}return void 0===n?"":n})}(p,r,h,g,y,t);f<=h&&(c+=vS(r,f,h)+m,f=h+p.length)}return c+vS(r,f)}]},!!R6(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!a||yS),q6("unscopables")),bS=Array.prototype,wS=(null==bS[mS]&&K5.f(bS,mS,{configurable:!0,value:_D(null)}),f.find),xS=!0,ES=("find"in[]&&Array(1).find(function(){xS=!1}),r8({target:"Array",proto:!0,forced:xS},{find:function(e){return wS(this,e,1<arguments.length?arguments[1]:void 0)}}),OD("find"),q6("match")),DS=Y6.TypeError,SS=q6("species"),CS=Y6.Array,AS=Math.max,OS=vD.UNSUPPORTED_Y,kS=Math.min,BS=[].push,FS=x(/./.exec),TS=x(BS),_S=x("".slice),PS=(DD("split",function(o,h,g){var v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=lD(z6(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!kD(e))return J6(h,n,e,r);for(var o,i,a,u=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,l=new RegExp(e.source,t+"g");(o=J6(qD,l,n))&&!((i=l.lastIndex)>s&&(TS(u,_S(n,s,o.index)),1<o.length&&o.index<n.length&&XD(BS,u,FD(o,1)),a=o[0].length,s=i,r<=u.length));)l.lastIndex===o.index&&l.lastIndex++;return s===n.length?!a&&FS(l,"")||TS(u,""):TS(u,_S(n,s)),r<u.length?FD(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:J6(h,this,e,t)}:h;return[function(e,t){var n=z6(this),r=null==e?void 0:V6(e,o);return r?J6(r,e,n,t):J6(v,lD(n),e,t)},function(e,t){var r=W5(this),n=lD(e),e=g(v,r,n,t,v!==h);if(e.done)return e.value;var e=function(e){var t,n=W5(r).constructor;if(void 0===n||null==(t=W5(n)[SS]))return e;n=t;if(rD(n))return n;throw DS(b5(n)+" is not a constructor")}(RegExp),o=r.unicode,i=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(OS?"g":"y"),a=new e(OS?"^(?:"+r.source+")":r,i),u=void 0===t?4294967295:t>>>0;if(0==u)return[];if(0===n.length)return null===AD(a,n)?[n]:[];for(var s=0,l=0,c=[];l<n.length;){a.lastIndex=OS?0:l;var f,d=AD(a,OS?_S(n,l):n);if(null===d||(f=kS(F8(a.lastIndex+(OS?l:0)),n.length))===s)l=CD(n,l,o);else{if(TS(c,_S(n,s,l)),c.length===u)return c;for(var p=1;p<=d.length-1;p++)if(TS(c,d[p]),c.length===u)return c;l=s=f}}return TS(c,_S(n,s)),c}]},!!R6(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),OS),"\t\n\v\f\r                 \u2028\u2029\ufeff"),jS=x("".replace),p="["+PS+"]",NS=RegExp("^"+p+p+"*"),IS=RegExp(p+p+"*$"),h={start:TD(1),end:TD(2),trim:TD(3)},LS=E8.PROPER,RS=h.trim;function MS(e){return 0===N("<div>"+e+"</div>").children().filter(function(e){return"BR"!==e.tagName}).length}function zS(e){return 0===e.length?"":e[0].outerHTML}function HS(e){return e.length?e[0].tagName.toLowerCase():""}function $S(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];a&&(a=a.split(":"))[0].trim()===t&&(n=a[1].trim())}return n}r8({target:"String",proto:!0,forced:R6(function(){return PS.trim()||"​…᠎"!=="​…᠎".trim()||LS&&"trim"!==PS.trim.name})},{trim:function(){return RS(this)}}),r8({global:!0},{globalThis:Y6}),N.fn.css=Xf,N.fn.append=nd,N.fn.prepend=rd,N.fn.addClass=If,N.fn.removeClass=Lf,N.fn.hasClass=Rf,N.fn.on=Vf,N.fn.off=Uf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.removeAttr=zf,N.fn.hide=Kf,N.fn.show=Yf,N.fn.parents=id,N.fn.dataset=Hf,N.fn.val=$f,N.fn.text=ed,N.fn.html=Qf,N.fn.children=ud,N.fn.remove=sd,N.fn.find=ad,N.fn.width=Wf,N.fn.height=Gf,N.fn.filter=Jf,N.fn.empty=ld;var VS=function(e,t){return(VS=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function US(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}VS(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var WS=function(){return(WS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function GS(e,a,u,s){return new(u=u||Promise)(function(n,t){function r(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof u?t:new u(function(e){e(t)})).then(r,o)}i((s=s.apply(e,a||[])).next())})}function qS(r,o){var i,a,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(u=2&t[0]?a.return:t[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,t[1])).done)return u;switch(a=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,a=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!((u=0<(u=s.trys).length&&u[u.length-1])||6!==t[0]&&2!==t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3]))s.label=t[1];else if(6===t[0]&&s.label<u[1])s.label=u[1],u=t;else{if(!(u&&s.label<u[2])){u[2]&&s.ops.pop(),s.trys.pop();continue}s.label=u[2],s.ops.push(t)}}t=o.call(r,s)}catch(e){t=[6,e],a=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function KS(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function YS(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function XS(t){var e=YS(P.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1)[0];if(null!=e){var e=e[0];if(_.isElement(e))if("paragraph"!==e.type)if(""===R.string(e))return e=e.children,H.isText((void 0===e?[]:e)[0])&&(j.setNodes(t,{type:"paragraph"}),1)}}function ZS(e,t,n,r){var e=lD(z6(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+eC(lD(r),QS,"&quot;")+'"'),o+">"+e+"</"+t+">"}function JS(t){return R6(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length})}var s={renderElems:[v],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[{selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return{type:"paragraph",children:t=0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length?[{text:e.text().replace(/\s+/gm," ")}]:t}}}],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward,r=(e.insertText,e.insertBreak,e);return r.deleteBackward=function(e){XS(r)||t(e)},r.deleteForward=function(e){XS(r)||n(e)},r}},QS=/"/g,eC=x("".replace);function tC(e,t){var n=e.bold,r=e.italic,o=e.underline;return n&&(t="<strong>"+t+"</strong>"),e.code&&(t="<code>"+t+"</code>"),r&&(t="<em>"+t+"</em>"),o&&(t="<u>"+t+"</u>"),e.through&&(t="<s>"+t+"</s>"),e.sub&&(t="<sub>"+t+"</sub>"),t=e.sup?"<sup>"+t+"</sup>":t}function nC(e,t){return 0!==e.length&&(e[0].matches(t)||0<e.find(t).length)}r8({target:"String",proto:!0,forced:JS("bold")},{bold:function(){return ZS(this,"b","","")}}),r8({target:"String",proto:!0,forced:JS("italics")},{italics:function(){return ZS(this,"i","","")}}),r8({target:"String",proto:!0,forced:JS("sub")},{sub:function(){return ZS(this,"sub","","")}}),r8({target:"String",proto:!0,forced:JS("sup")},{sup:function(){return ZS(this,"sup","","")}});function rC(e,t){var n=[][e];return!!n&&R6(function(){n.call(null,t||function(){throw 1},1)})}function oC(t){if(t&&t.forEach!==sC)try{Y5(t,"forEach",sC)}catch(e){t.forEach=sC}}var iC,aC={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},r1=K6("span").classList,u=r1&&r1.constructor&&r1.constructor.prototype,n=u===Object.prototype?void 0:u,uC=f.forEach,sC=rC("forEach")?[].forEach:function(e){return uC(this,e,1<arguments.length?arguments[1]:void 0)};for(iC in aC)aC[iC]&&oC(Y6[iC]&&Y6[iC].prototype);function lC(t){return null==t.selection||!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0]}oC(n),r8({target:"Object",stat:!0,forced:R6(function(){yD(1)})},{keys:function(e){return yD(W6(e))}});NC.prototype.getValue=function(e){var t=this.mark,n=P.marks(e);return n?n[t]:!!YS(P.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},NC.prototype.isActive=function(e){return!!this.getValue(e)},NC.prototype.isDisabled=function(e){return lC(e,this.mark)},NC.prototype.exec=function(t,e){var n=this.mark,r=this.marksNeedToRemove;e?t.removeMark(n):(t.addMark(n,!0),r&&r.forEach(function(e){return t.removeMark(e)}))};var cC,fC,dC,pC,hC,gC,vC,g=NC,yC='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',mC='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',bC=(US(jC,vC=g),jC),wC=(US(PC,gC=g),PC),xC=(US(_C,hC=g),_C),EC=(US(TC,pC=g),TC),DC=(US(FC,dC=g),FC),SC=(US(BC,fC=g),BC),CC=(US(kC,cC=g),kC),AC=(OC.prototype.getValue=function(e){return""},OC.prototype.isActive=function(e){return!1},OC.prototype.isDisabled=lC,OC.prototype.exec=function(e,t){var n,r,o=P.nodes(e,{match:function(e){return H.isText(e)},universal:!0});try{for(var i=KS(o),a=i.next();!a.done;a=i.next())!function(t,e){Object.keys(e).forEach(function(e){"text"!==e&&P.removeMark(t,e)})}(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},OC),jD={renderStyle:function(e,t){var n=e.bold,r=e.italic,o=e.underline,i=e.code,a=e.through,u=e.sub,e=e.sup;return n&&(t=pp("strong",null,t)),i&&(t=pp("code",null,t)),r&&(t=pp("em",null,t)),o&&(t=pp("u",null,t)),a&&(t=pp("s",null,t)),u&&(t=pp("sub",null,t)),t=e?pp("sup",null,t):t},menus:[{key:"bold",factory:function(){return new bC}},{key:"underline",factory:function(){return new DC}},{key:"italic",factory:function(){return new xC}},{key:"through",factory:function(){return new EC}},{key:"code",factory:function(){return new wC}},{key:"sub",factory:function(){return new SC}},{key:"sup",factory:function(){return new CC}},{key:"clearStyle",factory:function(){return new AC}}],styleToHtml:function(e,t){var n;return H.isText(e)?MS(t)?tC(e,t):"br"===HS(n=N(t))?tC(e,"<br>"):(e=tC(e,e=n.html()),n.html(e),zS(n)):t},parseStyleHtml:function(e,t,n){var r,e=N(e);return H.isText(t)?(r=t,nC(e,"b,strong")&&(r.bold=!0),nC(e,"i,em")&&(r.italic=!0),nC(e,"u")&&(r.underline=!0),nC(e,"s,strike")&&(r.through=!0),nC(e,"sub")&&(r.sub=!0),nC(e,"sup")&&(r.sup=!0),nC(e,"code")&&(r.code=!0),r):t}};function OC(){this.title=w("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}function kC(){var e=null!==cC&&cC.apply(this,arguments)||this;return e.mark="sup",e.marksNeedToRemove=["sub"],e.title=w("textStyle.sup"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',e.hotkey="",e}function BC(){var e=null!==fC&&fC.apply(this,arguments)||this;return e.mark="sub",e.marksNeedToRemove=["sup"],e.title=w("textStyle.sub"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',e.hotkey="",e}function FC(){var e=null!==dC&&dC.apply(this,arguments)||this;return e.mark="underline",e.title=w("textStyle.underline"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',e.hotkey="mod+u",e}function TC(){var e=null!==pC&&pC.apply(this,arguments)||this;return e.mark="through",e.title=w("textStyle.through"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',e.hotkey="mod+shift+x",e}function _C(){var e=null!==hC&&hC.apply(this,arguments)||this;return e.mark="italic",e.title=w("textStyle.italic"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',e.hotkey="mod+i",e}function PC(){var e=null!==gC&&gC.apply(this,arguments)||this;return e.mark="code",e.title=w("textStyle.code"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',e.hotkey="mod+e",e}function jC(){var e=null!==vC&&vC.apply(this,arguments)||this;return e.mark="bold",e.title=w("textStyle.bold"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',e.hotkey="mod+b",e}function NC(){this.marksNeedToRemove=[],this.tag="button"}function IC(r){return function(e,t,n){return pp("h"+r,null,t)}}var l={type:"header1",renderElem:IC(1)},i={type:"header2",renderElem:IC(2)},d={type:"header3",renderElem:IC(3)},a={type:"header4",renderElem:IC(4)},vD={type:"header5",renderElem:IC(5)},p=E8.PROPER,LC=RegExp.prototype,RC=LC.toString,MC=x(cD),h=R6(function(){return"/a/b"!=RC.call({source:"a",flags:"b"})}),v=p&&"toString"!=RC.name;(h||v)&&D8(RegExp.prototype,"toString",function(){var e=W5(this),t=lD(e.source),n=e.flags;return"/"+t+"/"+lD(void 0!==n||!d5(LC,e)||"flags"in LC?n:MC(e))},{unsafe:!0});function zC(e){if(kD(e))throw $C("The method doesn't accept regular expressions");return e}function HC(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[VC]=!1,"/./"[t](n)}catch(t){}}return!1}var $C=Y6.TypeError,VC=q6("match"),r1=$5.f,UC=x("".startsWith),WC=x("".slice),GC=Math.min,u=HC("startsWith");function qC(e){var e=YS(P.nodes(e,{match:function(e){return I.getNodeType(e).startsWith("header")},universal:!0}),1)[0];return null==e?"paragraph":(e=YS(e,1)[0],I.getNodeType(e))}function KC(e){return null==e.selection||!YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function YC(e,t){t&&j.setNodes(e,{type:t})}r8({target:"String",proto:!0,forced:!(!u&&(n=r1(String.prototype,"startsWith"))&&!n.writable||u)},{startsWith:function(e){var t=lD(z6(this)),n=(zC(e),F8(GC(1<arguments.length?arguments[1]:void 0,t.length))),e=lD(e);return UC?UC(t,e,n):WC(t,n,n+e.length)===e}});p7.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:w("header.text")}],n=this.getValue(e).toString();return t.forEach(function(e){e.value===n?e.selected=!0:delete e.selected}),t},p7.prototype.isActive=function(e){return!1},p7.prototype.getValue=qC,p7.prototype.isDisabled=KC,p7.prototype.exec=function(e,t){YC(e,t.toString())};var XC,ZC,JC,QC,e7,t7=p7,g=(d7.prototype.getValue=qC,d7.prototype.isActive=function(e){return this.getValue(e)===this.type},d7.prototype.isDisabled=KC,d7.prototype.exec=function(e,t){var n=this.type;YC(e,t===n?"paragraph":n)},d7),n7=(US(f7,e7=g),f7),r7=(US(c7,QC=g),c7),o7=(US(l7,JC=g),l7),i7=(US(s7,ZC=g),s7),a7=(US(u7,XC=g),u7);function u7(){var e=null!==XC&&XC.apply(this,arguments)||this;return e.title="H5",e.type="header5",e}function s7(){var e=null!==ZC&&ZC.apply(this,arguments)||this;return e.title="H4",e.type="header4",e}function l7(){var e=null!==JC&&JC.apply(this,arguments)||this;return e.title="H3",e.type="header3",e}function c7(){var e=null!==QC&&QC.apply(this,arguments)||this;return e.title="H2",e.type="header2",e}function f7(){var e=null!==e7&&e7.apply(this,arguments)||this;return e.title="H1",e.type="header1",e}function d7(){this.tag="button"}function p7(){this.title=w("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}function h7(n){return function(e,t){return"<h"+n+">"+t+"</h"+n+">"}}function g7(r){return function(e,t,n){e=N(e);return 0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),{type:"header"+r,children:t}}}var p={renderElems:[l,i,d,a,vD],elemsToHtml:[{type:"header1",elemToHtml:h7(1)},{type:"header2",elemToHtml:h7(2)},{type:"header3",elemToHtml:h7(3)},{type:"header4",elemToHtml:h7(4)},{type:"header5",elemToHtml:h7(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:g7(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:g7(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:g7(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:g7(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:g7(5)}],menus:[{key:"headerSelect",factory:function(){return new t7}},{key:"header1",factory:function(){return new n7}},{key:"header2",factory:function(){return new r7}},{key:"header3",factory:function(){return new o7}},{key:"header4",factory:function(){return new i7}},{key:"header5",factory:function(){return new a7}}],editorPlugin:function(t){var n=t.insertBreak,r=(t.insertNode,t);return r.insertBreak=function(){var e=YS(P.nodes(r,{match:function(e){return I.getNodeType(e).startsWith("header")},universal:!0}),1)[0];e&&I.isSelectionAtLineEnd(t,e[1])?j.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):n()},r}},v7=Object.assign,y7=Object.defineProperty,m7=x([].concat),h=!v7||R6(function(){var e,t,n,r;return X6&&1!==v7({b:1},v7(y7({},"a",{enumerable:!0,get:function(){y7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=v7({},e)[n])||yD(v7({},t)).join("")!=r})?function(e,t){for(var n=W6(e),r=arguments.length,o=1,i=I8.f,a=e5.f;o<r;)for(var u,s=s5(arguments[o++]),l=i?m7(yD(s),i(s)):yD(s),c=l.length,f=0;f<c;)u=l[f++],X6&&!J6(a,s,u)||(n[u]=s[u]);return n}:v7;function b7(e,t){null==e.data&&(e.data={});e=e.data;null==e.style&&(e.style={}),Object.assign(e.style,t)}r8({target:"Object",stat:!0,forced:Object.assign!==h},{assign:h});var w7,x7,v={selector:"font",preParseHtml:function(e){var t=N(e);return"font"!==HS(t)?e:((e=t.attr("color")||"")&&(t.removeAttr("color"),t.css("color",e)),t[0])}},r1=(F7.prototype.exec=function(e,t){},F7.prototype.getValue=function(e){var t=this.mark,e=P.marks(e);return e&&e[t]?e[t]:""},F7.prototype.isActive=function(e){return!!this.getValue(e)},F7.prototype.isDisabled=function(t){return null==t.selection||!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0]},F7.prototype.getPanelContentElem=function(n){var r=this.mark,o=(null==this.$content&&((e=N('<ul class="w-e-panel-content-color"></ul>')).on("click","li",function(e){var t=e.target;null!=t&&(e.preventDefault(),null!=n.selection)&&("0"===(e=N(t).attr("data-value"))?P.removeMark(n,r):P.addMark(n,r,e))}),this.$content=e),this.$content);if(null==o)return document.createElement("ul");o.empty();var i=this.getValue(n),e=n.getMenuConfig(r).colors,e=((void 0===e?[]:e).forEach(function(e){var t=N('<div class="color-block" data-value="'+e+'"></div>'),n=(t.css("background-color",e),N('<li data-value="'+e+'"></li>'));i===e&&n.addClass("active"),n.append(t),o.append(n)}),""),e=("color"===r&&(e=w("color.default")),N('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+(e="bgColor"===r?w("color.clear"):e)+"\n </li>\n "));return o.prepend(e),o[0]},F7),E7=(US(B7,x7=r1),B7),D7=(US(k7,w7=r1),k7),n=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],u={renderStyle:function(e,t){var n=e.color,e=e.bgColor;return n&&b7(t,{color:n}),e&&b7(t,{backgroundColor:e}),t},styleToHtml:function(e,t){var n,r;return H.isText(e)&&(r=e.color,e=e.bgColor,r||e)?(!MS(t)&&"span"===HS(n=N(t))||(n=N("<span>"+t+"</span>")),r&&n.css("color",r),e&&n.css("background-color",e),zS(n)):t},preParseHtml:[v],parseStyleHtml:function(e,t,n){var r,o,e=N(e);return H.isText(t)?(r=t,(o=$S(e,"color"))&&(r.color=o),(o=(o=$S(e,"background-color"))||$S(e,"background"))&&(r.bgColor=o),r):t},menus:[{key:"color",factory:function(){return new E7},config:{colors:n}},{key:"bgColor",factory:function(){return new D7},config:{colors:n}}]},S7=/^(?:\w+:)?\/\/(\S+)$/,C7=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,A7=/^[^\s\.]+\.\S{2,}$/,O7=c.includes;function k7(){var e=null!==w7&&w7.apply(this,arguments)||this;return e.title=w("color.bgColor"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',e.mark="bgColor",e}function B7(){var e=null!==x7&&x7.apply(this,arguments)||this;return e.title=w("color.color"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',e.mark="color",e}function F7(){this.tag="button",this.showDropPanel=!0,this.$content=null}function T7(e){return(e=void 0===e?"r":e)+"-"+Od()}function _7(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function P7(n,r,o,i){return GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).checkLink)?[4,t(o,i)]:[3,2];case 1:if("string"==typeof(t=e.sent()))return r.alert(t,"error"),[2,!1];if(null==t)return[2,!1];e.label=2;case 2:return[2,!0]}})})}function j7(n,r,o){return GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).parseLinkUrl)?[4,t(o)]:[3,2];case 1:return[2,e.sent()];case 2:return[2,o]}})})}function N7(n){return null==n.selection||!!I.getSelectedElems(n).some(function(e){var t=e.type;return!!n.isVoid(e)||!!["pre","code","link"].includes(t)||void 0})}function I7(e,t){return{type:"link",url:_7(e),children:t?[{text:t}]:[]}}function L7(o,i,a){GS(this,void 0,void 0,function(){var t,n,r;return qS(this,function(e){switch(e.label){case 0:return!a||(i=i||a,o.restoreSelection(),N7(o))?[2]:[4,P7("insertLink",o,i,a)];case 1:return e.sent()?[4,j7("insertLink",o,a)]:[2];case 2:return t=e.sent(),null!=(n=o.selection)&&(z.isCollapsed(n)?(o.insertText(" "),r=I7(t,i),j.insertNodes(o,r),o.insertFragment([{text:" "}])):P.string(o,n)!==i?(o.deleteFragment(),r=I7(t,i),j.insertNodes(o,r)):(r=I7(t),j.wrapNodes(o,r,{split:!0}),j.collapse(o,{edge:"end"}))),[2]}})})}r8({target:"Array",proto:!0},{includes:function(e){return O7(this,e,1<arguments.length?arguments[1]:void 0)}}),OD("includes");g={type:"link",renderElem:function(e,t,n){var r=e.url,e=e.target;return pp("a",{href:r,target:void 0===e?"_blank":e},t)}},l={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return 0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),{type:"link",url:e.attr("href")||"",target:e.attr("target")||"",children:t}}};function R7(){return T7("w-e-insert-link")}z7.prototype.getValue=function(e){return""},z7.prototype.isActive=function(e){return!1},z7.prototype.exec=function(e,t){},z7.prototype.isDisabled=N7,z7.prototype.getModalPositionNode=function(e){return null},z7.prototype.getModalContentElem=function(n){var r,e=n.selection,o=this.textInputId,i=this.urlInputId,t=this.buttonId,a=YS(YE(w("link.text"),o),2),u=a[0],s=N(a[1]),a=YS(YE(w("link.url"),i),2),l=a[0],a=N(a[1]),c=YS(XE(t,w("common.ok")),1)[0],t=(null==this.$content&&((r=N("<div></div>")).on("click","#"+t,function(e){e.preventDefault();var e=r.find("#"+o).val(),t=r.find("#"+i).val();L7(n,e,t),n.hidePanelOrModal()}),this.$content=r),this.$content);return t.empty(),t.append(u),t.append(l),t.append(c),null==e||z.isCollapsed(e)?s.val(""):(u=P.string(n,e),s.val(u)),a.val(""),setTimeout(function(){s.focus()}),t[0]};var M7=z7;function z7(){this.title=w("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=R7(),this.urlInputId=R7(),this.buttonId=R7()}function H7(){return T7("w-e-update-link")}function $7(e,t,n){return 0===t?n:t%2==1?$7(e,t-1,n*e):$7(e*e,t/2,n)}function V7(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Q7(o/1e7)}function U7(e,t){for(var n=6,r=0;0<=--n;)r+=e[n],e[n]=Q7(r/t),r=r%t*1e7}function W7(e){for(var t,n=6,r="";0<=--n;)""===r&&0!==n&&0===e[n]||(t=J7(e[n]),r=""===r?t:r+e9("0",7-t.length)+t);return r}i9.prototype.getSelectedLinkElem=function(e){e=I.getSelectedNodeByType(e,"link");return null==e?null:e},i9.prototype.getValue=function(e){e=this.getSelectedLinkElem(e);return e&&e.url||""},i9.prototype.isActive=function(e){return!1},i9.prototype.exec=function(e,t){},i9.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},i9.prototype.getModalPositionNode=function(e){return I.getSelectedNodeByType(e,"link")},i9.prototype.getModalContentElem=function(n){var r,o=this.urlInputId,e=this.buttonId,t=YS(YE(w("link.url"),o),2),i=t[0],a=N(t[1]),t=YS(XE(e,w("common.ok")),1)[0],e=(null==this.$content&&((r=N("<div></div>")).on("click","button",function(e){e.preventDefault(),n.restoreSelection();var e=I.getSelectedNodeByType(n,"link"),e=e?R.string(e):"",t=r.find("#"+o).val();!function(n,r,o){GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return o?[4,P7("editLink",n,r,o)]:[2];case 1:return e.sent()?[4,j7("editLink",n,o)]:[2];case 2:return t=e.sent(),t={url:_7(t)},j.setNodes(n,t,{match:function(e){return I.checkNodeType(e,"link")}}),[2]}})})}(n,e,t),n.hidePanelOrModal()}),this.$content=r),this.$content),i=(e.empty(),e.append(i),e.append(t),this.getValue(n));return a.val(i),setTimeout(function(){a.focus()}),e[0]};var G7=i9,q7=(o9.prototype.getValue=function(e){return""},o9.prototype.isActive=function(e){return!1},o9.prototype.isDisabled=function(e){return null==e.selection||null==I.getSelectedNodeByType(e,"link")},o9.prototype.exec=function(e,t){this.isDisabled(e)||j.unwrapNodes(e,{match:function(e){return I.checkNodeType(e,"link")}})},o9),K7=(r9.prototype.getSelectedLinkElem=function(e){e=I.getSelectedNodeByType(e,"link");return null==e?null:e},r9.prototype.getValue=function(e){e=this.getSelectedLinkElem(e);return e&&e.url||""},r9.prototype.isActive=function(e){return!1},r9.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},r9.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},r9),i={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},d={renderElems:[g],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e.url,e=e.target;return'<a href="'+n+'" target="'+(void 0===e?"_blank":e)+'">'+t+"</a>"}}],parseElemsHtml:[l],menus:[{key:"insertLink",factory:function(){return new M7},config:i},{key:"editLink",factory:function(){return new G7},config:i},{key:"unLink",factory:function(){return new q7}},{key:"viewLink",factory:function(){return new K7}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode,o=(e.insertNode,e.insertText,e);return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");!function(e){if("string"==typeof e){var e=e.match(S7);if(e)return(e=e[1])&&(C7.test(e)||A7.test(e))}}(t)?n(e):N7(o)||null!=(e=o.selection)&&(e=P.string(o,e),L7(o,e,t))},o.normalizeNode=function(e){var e=YS(e,2),t=e[0],e=e[1];return"link"===I.getNodeType(t)&&""===R.string(t)?j.removeNodes(o,{at:e}):r([t,e])},o}},Y7=x(1..valueOf),X7=Y6.RangeError,Z7=Y6.RangeError,J7=Y6.String,Q7=Math.floor,e9=x(function(e){var t=lD(z6(this)),n="",r=A8(e);if(r<0||r==1/0)throw X7("Wrong number of repetitions");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),t9=x("".slice),n9=x(1..toFixed);function r9(){this.title=w("link.view"),this.iconSvg=mC,this.tag="button"}function o9(){this.title=w("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}function i9(){this.title=w("link.edit"),this.iconSvg=yC,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=H7(),this.buttonId=H7()}function a9(e,t){return"w-e-image-container-"+I.findKey(e,t).id}r8({target:"Number",proto:!0,forced:R6(function(){return"0.000"!==n9(8e-5,3)||"1"!==n9(.9,0)||"1.25"!==n9(1.255,2)||"1000000000000000128"!==n9(0xde0b6b3a7640080,0)})||!R6(function(){n9({})})},{toFixed:function(e){var t,n,r,o=Y7(this),e=A8(e),i=[0,0,0,0,0,0],a="",u="0";if(e<0||20<e)throw Z7("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return J7(o);if(o<0&&(a="-",o=-o),1e-21<o)if(r=(t=function(){for(var e=0,t=o*$7(2,69,1);4096<=t;)e+=12,t/=4096;for(;2<=t;)e+=1,t/=2;return e}()-69)<0?o*$7(2,-t,1):o/$7(2,t,1),r*=4503599627370496,0<(t=52-t)){for(V7(i,0,r),n=e;7<=n;)V7(i,1e7,0),n-=7;for(V7(i,$7(10,n,1),0),n=t-1;23<=n;)U7(i,1<<23),n-=23;U7(i,1<<n),V7(i,1,1),U7(i,2),u=W7(i)}else V7(i,0,r),V7(i,1<<-t,0),u=W7(i)+e9("0",e);return 0<e?a+((r=u.length)<=e?"0."+e9("0",e-r)+u:t9(u,0,r-e)+"."+t9(u,r-e)):a+u}});a={type:"image",renderElem:function(e,t,n){var r,o,i,a,u,s,l,c,f,d,p=e.src,h=e.alt,h=void 0===h?"":h,g=e.href,g=void 0===g?"":g,v=e.style,v=void 0===v?{}:v,y=v.width,y=void 0===y?"":y,v=v.height,v=void 0===v?"":v,m=I.isNodeSelected(n,e),b={},b=(y&&(b.width="100%"),v&&(b.height="100%"),pp("img",{style:b,src:p,alt:h,"data-href":g})),p=n.isDisabled();return m&&!p?(r=n,o=e,h=b,g={width:y,height:v},i=N("body"),a=a9(r,o),m=g.width,g=g.height,l=s=u=0,c=!1,f=null,d=zd(function(e){e.preventDefault();var e=e.clientX,e=s+(c?u-e:e-u),t=l*(e/s);null==f||e<=15||t<=15||(f.css("width",e+"px"),f.css("height",t+"px"))},100),p={},m&&(p.width=m),g&&(p.height=g),pp("div",{id:a,style:p,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=N(e.target);if(t.hasClass("w-e-image-dragger")){e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(c=!0);t=e.clientX;if(f=function(){var e=N("#"+a);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t,0===(t=f.find("img")).length)throw new Error("Cannot find image elem");s=t.width(),l=t.height(),i.on("mousemove",d),i.on("mouseup",w),(t=I.getHoverbar(r))&&t.hideAndClean()}}}},h,pp("div",{className:"w-e-image-dragger left-top"}),pp("div",{className:"w-e-image-dragger right-top"}),pp("div",{className:"w-e-image-dragger left-bottom"}),pp("div",{className:"w-e-image-dragger right-bottom"}))):(m=n,g=e,p=b,n=(h={width:y,height:v}).width,h=h.height,e={},n&&(e.width=n),h&&(e.height=h),pp("div",{id:a9(m,g),style:e,className:"w-e-image-container"},p));function w(e){var t,n;i.off("mousemove",d),null!=f&&(n=f.width().toFixed(2),t=f.height().toFixed(2),n={style:WS(WS({},o.style),{width:n+"px",height:t+"px"})},j.setNodes(r,n,{at:I.findPath(r,o)}),i.off("mouseup",w))}}},vD={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var e=N(e),r=e.attr("data-href")||"",r=decodeURIComponent(r);return{type:"image",src:e.attr("src")||"",alt:e.attr("alt")||"",href:r,style:{width:$S(e,"width"),height:$S(e,"height")},children:[{text:""}]}}};function u9(n,r,o,i,a){return void 0===i&&(i=""),void 0===a&&(a=""),GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).checkImage)?[4,t(o,i,a)]:[3,2];case 1:if("string"==typeof(t=e.sent()))return r.alert(t,"error"),[2,!1];if(null==t)return[2,!1];e.label=2;case 2:return[2,!0]}})})}function s9(n,r,o){return GS(this,void 0,void 0,function(){var t;return qS(this,function(e){switch(e.label){case 0:return(t=r.getMenuConfig(n).parseImageSrc)?[4,t(o)]:[3,2];case 1:return[2,e.sent()];case 2:return[2,o]}})})}function l9(r,o,i,a){return void 0===i&&(i=""),void 0===a&&(a=""),GS(this,void 0,void 0,function(){var t,n;return qS(this,function(e){switch(e.label){case 0:return[4,u9("insertImage",r,o,i,a)];case 1:return e.sent()?[4,s9("insertImage",r,o)]:[2];case 2:return t=e.sent(),t={type:"image",src:_7(t),href:a,alt:i,style:{},children:[{text:""}]},null===r.selection&&r.restoreSelection(),I.getSelectedNodeByType(r,"image")&&r.move(1),!c9(r)&&(j.insertNodes(r,t),n=r.getMenuConfig("insertImage").onInsertedImage)&&n(t),[2]}})})}function c9(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!YS(P.nodes(n,{match:function(e){var t=I.getNodeType(e);return"code"===t||"pre"===t||"link"===t||"list-item"===t||!!t.startsWith("header")||"blockquote"===t||!!P.isVoid(n,e)},universal:!0}),1)[0]}function f9(){return T7("w-e-insert-image")}g9.prototype.getValue=function(e){return""},g9.prototype.isActive=function(e){return!1},g9.prototype.exec=function(e,t){},g9.prototype.isDisabled=c9,g9.prototype.getModalPositionNode=function(e){return null},g9.prototype.getModalContentElem=function(r){var o,i=this,a=this.srcInputId,u=this.altInputId,s=this.hrefInputId,e=this.buttonId,t=YS(YE(w("image.src"),a),2),n=t[0],l=N(t[1]),t=YS(YE(w("image.desc"),u),2),c=t[0],t=N(t[1]),f=YS(YE(w("image.link"),s),2),d=f[0],f=N(f[1]),p=YS(XE(e,w("common.ok")),1)[0],e=(null==this.$content&&((o=N("<div></div>")).on("click","#"+e,function(e){e.preventDefault();var e=o.find("#"+a).val().trim(),t=o.find("#"+u).val().trim(),n=o.find("#"+s).val().trim();i.insertImage(r,e,t,n),r.hidePanelOrModal()}),this.$content=o),this.$content);return e.empty(),e.append(n),e.append(c),e.append(d),e.append(p),l.val(""),t.val(""),f.val(""),setTimeout(function(){l.focus()}),e[0]},g9.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||l9(e,t,n,r))};var d9=g9,p9=(h9.prototype.getValue=function(e){return""},h9.prototype.isActive=function(e){return!1},h9.prototype.isDisabled=function(e){return null==e.selection||null==I.getSelectedNodeByType(e,"image")},h9.prototype.exec=function(e,t){this.isDisabled(e)||j.removeNodes(e,{match:function(e){return I.checkNodeType(e,"image")}})},h9);function h9(){this.title=w("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}function g9(){this.title=w("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=f9(),this.altInputId=f9(),this.hrefInputId=f9(),this.buttonId=f9()}function v9(){return T7("w-e-edit-image")}R9.prototype.getValue=function(e){return""},R9.prototype.getImageNode=function(e){return I.getSelectedNodeByType(e,"image")},R9.prototype.isActive=function(e){return!1},R9.prototype.exec=function(e,t){},R9.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"image")},R9.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},R9.prototype.getModalContentElem=function(r){var o=this,i=this.srcInputId,a=this.altInputId,u=this.hrefInputId,e=this.buttonId,t=this.getImageNode(r);if(null==t)throw new Error("Not found selected image node");var s,n=YS(YE(w("image.src"),i),2),l=n[0],c=N(n[1]),n=YS(YE(w("image.desc"),a),2),f=n[0],n=N(n[1]),d=YS(YE(w("image.link"),u),2),p=d[0],d=N(d[1]),h=YS(XE(e,w("common.ok")),1)[0],e=(null==this.$content&&((s=N("<div></div>")).on("click","#"+e,function(e){e.preventDefault();var e=s.find("#"+i).val(),t=s.find("#"+a).val(),n=s.find("#"+u).val();o.updateImage(r,e,t,n),r.hidePanelOrModal()}),this.$content=s),this.$content);e.empty(),e.append(l),e.append(f),e.append(p),e.append(h);l=t.src,f=t.alt,p=void 0===f?"":f,h=t.href,f=void 0===h?"":h;return c.val(l),n.val(p),d.val(f),setTimeout(function(){c.focus()}),e[0]},R9.prototype.updateImage=function(e,t,n,r,s){void 0===n&&(n=""),void 0===r&&(r=""),void 0===s&&(s={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(r,o,i,a,u){void 0===i&&(i=""),void 0===a&&(a=""),void 0===s&&(u={}),GS(this,void 0,void 0,function(){var t,n;return qS(this,function(e){switch(e.label){case 0:return[4,u9("editImage",r,o,i,a)];case 1:return e.sent()?[4,s9("editImage",r,o)]:[2];case 2:return n=e.sent(),null!=(t=I.getSelectedNodeByType(r,"image"))&&(t=t.style,n={src:n,alt:i,href:a,style:WS(WS({},void 0===t?{}:t),u)},j.setNodes(r,n,{match:function(e){return I.checkNodeType(e,"image")}}),t=I.getSelectedNodeByType(r,"image"),n=r.getMenuConfig("editImage").onUpdatedImage)&&n(t),[2]}})})}(e,t,n,r,s))};var y9,m9,b9,w9=R9,x9=(L9.prototype.getValue=function(e){e=I.getSelectedNodeByType(e,"image");return e&&e.href||""},L9.prototype.isActive=function(e){return!1},L9.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},L9.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},L9),h=(I9.prototype.getValue=function(e){return""},I9.prototype.isActive=function(e){return!1},I9.prototype.getSelectedNode=function(e){return I.getSelectedNodeByType(e,"image")},I9.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},I9.prototype.exec=function(e,t){var n,r;this.isDisabled(e)||null!=(r=this.getSelectedNode(e))&&((n=I.getHoverbar(e))&&n.hideAndClean(),n=r.style,r={style:WS(WS({},void 0===n?{}:n),{width:this.value,height:""})},j.setNodes(e,r,{match:function(e){return I.checkNodeType(e,"image")}}))},I9),E9=(US(N9,b9=h),N9),D9=(US(j9,m9=h),j9),S9=(US(P9,y9=h),P9),v={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},n={renderElems:[a],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e.src,r=e.alt,o=e.href,e=e.style,e=void 0===e?{}:e,i=e.width,i=void 0===i?"":i,e=e.height,e=void 0===e?"":e,a="";return i&&(a+="width: "+i+";"),e&&(a+="height: "+e+";"),'<img src="'+n+'" alt="'+(void 0===r?"":r)+'" data-href="'+(void 0===o?"":o)+'" style="'+a+'"/>'}}],parseElemsHtml:[vD],menus:[{key:"insertImage",factory:function(){return new d9},config:v},{key:"deleteImage",factory:function(){return new p9}},{key:"editImage",factory:function(){return new w9},config:v},{key:"viewImageLink",factory:function(){return new x9}},{key:"imageWidth30",factory:function(){return new E9}},{key:"imageWidth50",factory:function(){return new D9}},{key:"imageWidth100",factory:function(){return new S9}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;return e.isInline=function(e){return"image"===e.type||t(e)},e.isVoid=function(e){return"image"===e.type||n(e)},e}},c={type:"todo",renderElem:function(n,e,r){var t=!1;return r.isDisabled()&&(t=!0),pp("div",{style:{margin:"5px 0"}},pp("span",{contentEditable:!1,style:{marginRight:"0.5em"}},pp("input",{type:"checkbox",checked:n.checked,disabled:t,on:{change:function(e){var t=I.findPath(r,n),e={checked:e.target.checked};j.setNodes(r,e,{at:t})}}})),pp("span",null,e))}},C9=(_9.prototype.getValue=function(e){return""},_9.prototype.isActive=function(e){return!!I.getSelectedNodeByType(e,"todo")},_9.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!(!P.isVoid(t,e)||!P.isBlock(t,e))||(e=e.type,!!["pre","table","list-item"].includes(e))||void 0})},_9.prototype.exec=function(e,t){var n=this.isActive(e);j.setNodes(e,{type:n?"paragraph":"todo"})},_9),g={renderElems:[c],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var e=N(e).find("li"),t=N('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return t.append(n),e.children()[0].remove(),t[0].innerHTML=t[0].innerHTML+e[0].innerHTML,t[0]}}],parseElemsHtml:[{selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var e=N(e),r=(0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),!1);return{type:"todo",checked:r=null!=e.find('input[type="checkbox"]').attr("checked")?!0:r,children:t}}}],menus:[{key:"todo",factory:function(){return new C9}}],editorPlugin:function(n){var r=n.deleteBackward,e=n;return e.deleteBackward=function(e){var t=n.selection;if(t&&z.isCollapsed(t)){t=I.getSelectedNodeByType(n,"todo");if(t&&0===R.string(t).length)return void j.setNodes(n,{type:"paragraph"},{mode:"highest"})}r(e)},e}},l={type:"blockquote",renderElem:function(e,t,n){return pp("blockquote",null,t)}},i={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return{type:"blockquote",children:t=0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length?[{text:e.text().replace(/\s+/gm," ")}]:t}}},A9=(T9.prototype.getValue=function(e){return""},T9.prototype.isActive=function(e){return!!I.getSelectedNodeByType(e,"blockquote")},T9.prototype.isDisabled=function(e){return null==e.selection||!YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||"blockquote"===e},universal:!0,mode:"highest"}),1)[0]},T9.prototype.exec=function(e,t){var n;this.isDisabled(e)||(n=this.isActive(e)?"paragraph":"blockquote",j.setNodes(e,{type:n},{mode:"highest"}))},T9),h={key:"blockquote",factory:function(){return new A9}},O9=x([].slice),a=s8("slice"),k9=q6("species"),B9=Y6.Array,F9=Math.max;function T9(){this.title=w("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}function _9(){this.title=w("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}function P9(){var e=null!==y9&&y9.apply(this,arguments)||this;return e.title="100%",e.value="100%",e}function j9(){var e=null!==m9&&m9.apply(this,arguments)||this;return e.title="50%",e.value="50%",e}function N9(){var e=null!==b9&&b9.apply(this,arguments)||this;return e.title="30%",e.value="30%",e}function I9(){this.tag="button"}function L9(){this.title=w("image.viewLink"),this.iconSvg=mC,this.tag="button"}function R9(){this.title=w("image.edit"),this.iconSvg=yC,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=v9(),this.altInputId=v9(),this.hrefInputId=v9(),this.buttonId=v9()}r8({target:"Array",proto:!0,forced:!a},{slice:function(e,t){var n,r,o,i=H6(this),a=Q5(i),u=J5(e,a),s=J5(void 0===t?a:t,a);if(q8(i)&&(n=i.constructor,(n=rD(n)&&(n===B9||q8(n.prototype))||f5(n)&&null===(n=n[k9])?void 0:n)===B9||void 0===n))return O9(i,u,s);for(r=new(void 0===n?B9:n)(F9(s-u,0)),o=0;u<s;u++,o++)u in i&&BD(r,o,i[u]);return r.length=o,r}});var vD={renderElems:[l],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[i],menus:[h],editorPlugin:function(r){var o=r.insertBreak,i=r.insertText,a=r;return a.insertBreak=function(){var e=a.selection;if(null==e)return o();var t=YS(P.nodes(r,{match:function(e){return I.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!t)return o();var t=t[0],n=I.findPath(r,t),n=P.end(r,n);if(bc.equals(n,e.focus)){n=R.string(t);if(n&&"\n"===n.slice(-1))return r.deleteBackward("character"),void j.insertNodes(a,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}i("\n")},a}},M9=($9.prototype.exec=function(e,t){},$9.prototype.getValue=function(e){return""},$9.prototype.isActive=function(e){return!1},$9.prototype.isDisabled=function(t){return null==t.selection||!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0]},$9.prototype.getPanelContentElem=function(n){null==this.$content&&((e=N('<ul class="w-e-panel-content-emotion"></ul>')).on("click","li",function(e){var t=e.target;null!=t&&(e.preventDefault(),e=N(t).text(),n.insertText(e))}),this.$content=e);var t=this.$content;if(null==t)return document.createElement("ul");t.empty();var e=n.getMenuConfig("emotion").emotions;return(void 0===e?[]:e).forEach(function(e){e=N("<li>"+e+"</li>");t.append(e)}),t[0]},$9),v={menus:[{key:"emotion",factory:function(){return new M9},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},z9={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},c={selector:"font",preParseHtml:function(e){var t=N(e);return"font"!==HS(t)?e:((e=t.attr("size")||"")&&(t.removeAttr("size"),t.css("font-size",z9[e])),(e=t.attr("face")||"")&&(t.removeAttr("face"),t.css("font-family",e)),t[0])}},H9=x("".indexOf);function $9(){this.title=w("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}r8({target:"String",proto:!0,forced:!HC("includes")},{includes:function(e){return!!~H9(lD(z6(this)),lD(zC(e)),1<arguments.length?arguments[1]:void 0)}});function V9(e){return e&&e.Math==Math&&e}function U9(e){try{return!!e()}catch(e){return!0}}function W9(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function G9(e){return OA(AA(e),8,-1)}function q9(e){if(null==e)throw TA("Can't call method on "+e);return e}function K9(e){return FA(q9(e))}function Y9(e){return"object"==typeof e?null!==e:wA(e)}function X9(e){return wA(e)?e:void 0}function Z9(e,t){return arguments.length<2?X9(_A[e])||X9(pA[e]):_A[e]&&_A[e][t]||pA[e]&&pA[e][t]}function J9(e){return WA(q9(e))}function Q9(e){return"Symbol("+(void 0===e?"":e)+")_"+XA(++KA+YA,36)}function eA(e){var t;return qA(ZA,e)&&(NA||"string"==typeof ZA[e])||(t="Symbol."+e,NA&&qA(JA,e)?ZA[e]=JA[e]:ZA[e]=(IA&&QA?QA:eO)(t)),ZA[e]}function tA(e){return e=function(e,t){if(!Y9(e)||RA(e))return e;var n,r,o=null==(o=e[nO])?void 0:HA(o);if(o){if(o=DA(o,e,t=void 0===t?"default":t),!Y9(o)||RA(o))return o;throw tO("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&wA(n=o.toString)&&!Y9(r=DA(n,o)))return r;if(wA(n=o.valueOf)&&!Y9(r=DA(n,o)))return r;if("string"!==e&&wA(n=o.toString)&&!Y9(r=DA(n,o)))return r;throw $A("Can't convert object to primitive value")}(e,"string"),RA(e)?e:e+""}function nA(e){return oO?rO.createElement(e):{}}function rA(e,t){return(e=lO[sO(e)])==fO||e!=cO&&(wA(t)?U9(t):!!t)}function oA(e,t){return HA(e),void 0===t?e:pO?pO(e,t):function(){return e.apply(t,arguments)}}function iA(e){if(Y9(e))return e;throw gO(hO(e)+" is not an object")}function aA(r){function o(e,t,n){if(this instanceof o){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return vA(r,this,arguments)}return o.prototype=r.prototype,o}function uA(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat,c=e.proto,f=s?pA:l?pA[u]:(pA[u]||{}).prototype,d=s?_A:_A[u]||bO(_A,u,{})[u],p=d.prototype;for(n in t)i=!dO(s?n:u+(l?".":"#")+n,e.forced)&&f&&qA(f,n),o=d[n],i&&(a=e.noTargetGet?(a=wO(f,n))&&a.value:f[n]),r=i&&a?a:t[n],i&&typeof o==typeof r||(i=e.bind&&i?oA(r,pA):e.wrap&&i?aA(r):c&&wA(r)?bA(r):r,(e.sham||r&&r.sham||o&&o.sham)&&bO(i,"sham",!0),bO(d,n,i),c&&(qA(_A,o=u+"Prototype")||bO(_A,o,{}),bO(_A[o],n,r),e.real)&&p&&!p[n]&&bO(p,n,r))}function sA(e){return 0<(e=e.length)?CO(SO(e),9007199254740991):0}function lA(e,t,n){(t=tA(t))in e?mO.f(e,t,W9(0,n)):e[t]=n}function cA(){}function fA(e){if(!wA(e))return!1;try{return jO(cA,PO,e),!0}catch(e){return!1}}function dA(e,t){return new(void 0===(n=xO(e=e)&&(n=e.constructor,RO(n)&&(n===zO||xO(n.prototype))||Y9(n)&&null===(n=n[MO]))?void 0:n)?zO:n)(0===t?0:t);var n}var pA=V9("object"==typeof globalThis&&globalThis)||V9("object"==typeof window&&window)||V9("object"==typeof self&&self)||V9("object"==typeof o1&&o1)||function(){return this}()||Function("return this")(),a=Function.prototype,hA=a.apply,l=a.bind,gA=a.call,vA="object"==typeof Reflect&&Reflect.apply||(l?gA.bind(hA):function(){return gA.apply(hA,arguments)}),i=Function.prototype,h=i.bind,yA=i.call,mA=h&&h.bind(yA),bA=h?function(e){return e&&mA(yA,e)}:function(e){return e&&function(){return yA.apply(e,arguments)}},wA=function(e){return"function"==typeof e},xA=!U9(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),EA=Function.prototype.call,DA=EA.bind?EA.bind(EA):function(){return EA.apply(EA,arguments)},o1={}.propertyIsEnumerable,SA=Object.getOwnPropertyDescriptor,CA={f:SA&&!o1.call({1:2},1)?function(e){e=SA(this,e);return!!e&&e.enumerable}:o1},AA=bA({}.toString),OA=bA("".slice),kA=pA.Object,BA=bA("".split),FA=U9(function(){return!kA("z").propertyIsEnumerable(0)})?function(e){return"String"==G9(e)?BA(e,""):kA(e)}:kA,TA=pA.TypeError,_A={},PA=bA({}.isPrototypeOf),a=Z9("navigator","userAgent")||"",l=pA.process,i=pA.Deno,h=l&&l.versions||i&&i.version,o1=h&&h.v8,jA=E=!(E=o1?0<(tk=o1.split("."))[0]&&tk[0]<4?1:+(tk[0]+tk[1]):E)&&a&&(!(tk=a.match(/Edge\/(\d+)/))||74<=tk[1])&&(tk=a.match(/Chrome\/(\d+)/))?+tk[1]:E,NA=!!Object.getOwnPropertySymbols&&!U9(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jA&&jA<41}),IA=NA&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,LA=pA.Object,RA=IA?function(e){return"symbol"==typeof e}:function(e){var t=Z9("Symbol");return wA(t)&&PA(t.prototype,LA(e))},MA=pA.String,zA=pA.TypeError,HA=function(e){if(wA(e))return e;throw zA(function(e){try{return MA(e)}catch(e){return"Object"}}(e)+" is not a function")},$A=pA.TypeError,VA=Object.defineProperty,UA=pA["__core-js_shared__"]||function(t,n){try{VA(pA,t,{value:n,configurable:!0,writable:!0})}catch(e){pA[t]=n}return n}("__core-js_shared__",{}),l=I6(function(e){(e.exports=function(e,t){return UA[e]||(UA[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),WA=pA.Object,GA=bA({}.hasOwnProperty),qA=Object.hasOwn||function(e,t){return GA(J9(e),t)},KA=0,YA=Math.random(),XA=bA(1..toString),ZA=l("wks"),JA=pA.Symbol,QA=JA&&JA.for,eO=IA?JA:JA&&JA.withoutSetter||Q9,tO=pA.TypeError,nO=eA("toPrimitive"),rO=pA.document,oO=Y9(rO)&&Y9(rO.createElement),iO=!xA&&!U9(function(){return 7!=Object.defineProperty(nA("div"),"a",{get:function(){return 7}}).a}),aO=Object.getOwnPropertyDescriptor,i={f:xA?aO:function(e,t){if(e=K9(e),t=tA(t),iO)try{return aO(e,t)}catch(e){}if(qA(e,t))return W9(!DA(CA.f,e,t),e[t])}},uO=/#|\.prototype\./,sO=rA.normalize=function(e){return String(e).replace(uO,".").toLowerCase()},lO=rA.data={},cO=rA.NATIVE="N",fO=rA.POLYFILL="P",dO=rA,pO=bA(bA.bind),hO=pA.String,gO=pA.TypeError,vO=pA.TypeError,yO=Object.defineProperty,mO={f:xA?yO:function(e,t,n){if(iA(e),t=tA(t),iA(n),iO)try{return yO(e,t,n)}catch(e){}if("get"in n||"set"in n)throw vO("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bO=xA?function(e,t,n){return mO.f(e,t,W9(1,n))}:function(e,t,n){return e[t]=n,e},wO=i.f,xO=Array.isArray||function(e){return"Array"==G9(e)},EO=Math.ceil,DO=Math.floor,SO=function(e){e=+e;return e!=e||0==e?0:(0<e?DO:EO)(e)},CO=Math.min,h={},AO=(h[eA("toStringTag")]="z","[object z]"===String(h)),OO=eA("toStringTag"),kO=pA.Object,BO="Arguments"==G9(function(){return arguments}()),FO=AO?G9:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=kO(e),OO))?t:BO?G9(e):"Object"==(t=G9(e))&&wA(e.callee)?"Arguments":t},TO=bA(Function.toString),_O=(wA(UA.inspectSource)||(UA.inspectSource=function(e){return TO(e)}),UA.inspectSource),PO=[],jO=Z9("Reflect","construct"),NO=/^\s*(?:class|function)\b/,IO=bA(NO.exec),LO=!NO.exec(cA),RO=!jO||U9(function(){var e;return fA(fA.call)||!fA(Object)||!fA(function(){e=!0})||e})?function(e){if(!wA(e))return!1;switch(FO(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LO||!!IO(NO,_O(e))}:fA,MO=eA("species"),zO=pA.Array,HO=eA("species"),$O=eA("isConcatSpreadable"),VO=pA.TypeError,o1=51<=jA||!U9(function(){var e=[];return e[$O]=!1,e.concat()[0]!==e}),a=51<=jA||!U9(function(){var e=[];return(e.constructor={})[HO]=function(){return{foo:1}},1!==e.concat(Boolean).foo});uA({target:"Array",proto:!0,forced:!o1||!a},{concat:function(e){for(var t,n,r,o,i,a=J9(this),u=dA(a,0),s=0,l=-1,c=arguments.length;l<c;l++)if(o=r=-1===l?a:arguments[l],i=void 0,!Y9(o)||(void 0!==(i=o[$O])?!i:!xO(o))){if(9007199254740991<=s)throw VO("Maximum allowed index exceeded");lA(u,s++,r)}else{if(9007199254740991<s+(n=sA(r)))throw VO("Maximum allowed index exceeded");for(t=0;t<n;t++,s++)t in r&&lA(u,s,r[t])}return u.length=s,u}});function UO(e){if("Symbol"===FO(e))throw TypeError("Cannot convert a Symbol value to a string");return JO(e)}function WO(e,t){return(e=SO(e))<0?QO(e+t,0):ek(e,t)}function GO(u){return function(e,t,n){var r,o=K9(e),i=sA(o),a=WO(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function qO(e,t){var n,r=K9(e),o=0,i=[];for(n in r)!qA(nk,n)&&qA(r,n)&&ok(i,n);for(;t.length>o;)!qA(r,n=t[o++])||~rk(i,n)||ok(i,n);return i}function KO(e){return lk[e]||(lk[e]=Q9(e))}function YO(){}function XO(e){e.write(fk("")),e.close();var t=e.parentWindow.Object;return e=null,t}var ZO,JO=pA.String,QO=Math.max,ek=Math.min,tk={includes:GO(!0),indexOf:GO(!1)},nk={},rk=tk.indexOf,ok=bA([].push),ik=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ak=Object.keys||function(e){return qO(e,ik)},uk=xA?Object.defineProperties:function(e,t){iA(e);for(var n,r=K9(t),o=ak(t),i=o.length,a=0;a<i;)mO.f(e,n=o[a++],r[n]);return e},sk=Z9("document","documentElement"),lk=l("keys"),ck=KO("IE_PROTO"),fk=function(e){return"<script>"+e+"<\/script>"},dk=function(){try{ZO=new ActiveXObject("htmlfile")}catch(e){}var e,t;dk="undefined"==typeof document||document.domain&&ZO?XO(ZO):((t=nA("iframe")).style.display="none",sk.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(fk("document.F=Object")),e.close(),e.F);for(var n=ik.length;n--;)delete dk.prototype[ik[n]];return dk()};nk[ck]=!0;function pk(e,t,n,r){r&&r.enumerable?e[t]=n:bO(e,t,n)}function hk(e){var t=_A.Symbol||(_A.Symbol={});qA(t,e)||$k(t,e,{value:Hk.f(e)})}function gk(e,t,n,r){e&&(n=n?e:e.prototype,qA(n,Wk)||Uk(n,Wk,{configurable:!0,value:t}),r)&&!AO&&bO(n,"toString",Vk)}function vk(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=J9(e),u=FA(a),s=oA(t,n),l=sA(u),c=0,t=r||dA,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:qk(f,o)}else switch(d){case 4:return!1;case 7:qk(f,o)}return y?-1:g||v?v:f}}function yk(e,t){var n=sB[e]=Pk(eB);return Xk(n,{type:"Symbol",tag:e,description:t}),xA||(n.description=t),n}function mk(e,t,n){return e===Jk&&mk(lB,t,n),iA(e),t=tA(t),iA(n),(qA(sB,t)?(n.enumerable?(qA(e,Yk)&&e[Yk][t]&&(e[Yk][t]=!1),n=Pk(n,{enumerable:W9(0,!1)})):(qA(e,Yk)||oB(e,Yk,W9(1,{})),e[Yk][t]=!0),pB):oB)(e,t,n)}function bk(t,e){iA(t);var n=K9(e),e=ak(n).concat(Dk(n));return Kk(e,function(e){xA&&!DA(wk,n,e)||mk(t,e,n[e])}),t}function wk(e){var e=tA(e),t=DA(aB,this,e);return!(this===Jk&&qA(sB,e)&&!qA(lB,e))&&(!(t||!qA(this,e)||!qA(sB,e)||qA(this,Yk)&&this[Yk][e])||t)}function xk(e,t){var n,e=K9(e),t=tA(t);if(e!==Jk||!qA(sB,t)||qA(lB,t))return!(n=rB(e,t))||!qA(sB,t)||qA(e,Yk)&&e[Yk][t]||(n.enumerable=!0),n}function Ek(e){var e=iB(K9(e)),t=[];return Kk(e,function(e){qA(sB,e)||qA(nk,e)||uB(t,e)}),t}function Dk(e){var t=e===Jk,e=iB(t?lB:K9(e)),n=[];return Kk(e,function(e){!qA(sB,e)||t&&!qA(Jk,e)||uB(n,sB[e])}),n}var Sk,Ck,Ak,Ok,kk,Bk,Fk,Tk,_k,Pk=Object.create||function(e,t){var n;return null!==e?(YO.prototype=iA(e),n=new YO,YO.prototype=null,n[ck]=e):n=dk(),void 0===t?n:uk(n,t)},jk=ik.concat("length","prototype"),E={f:Object.getOwnPropertyNames||function(e){return qO(e,jk)}},Nk=pA.Array,Ik=Math.max,Lk=E.f,Rk="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h={f:function(e){if(!Rk||"Window"!=G9(e))return Lk(K9(e));var t=e;try{return Lk(t)}catch(t){for(var n=Rk,e=sA(n),r=WO(void 0,e),o=WO(e,e),i=Nk(Ik(o-r,0)),a=0;r<o;r++,a++)lA(i,a,n[r]);return i.length=a,i}}},Mk={f:Object.getOwnPropertySymbols},zk=bA([].slice),Hk={f:eA},$k=mO.f,Vk=AO?{}.toString:function(){return"[object "+FO(this)+"]"},Uk=mO.f,Wk=eA("toStringTag"),o1=pA.WeakMap,a=wA(o1)&&/native code/.test(_O(o1)),Gk=pA.TypeError,tk=pA.WeakMap,o1=(Fk=a||UA.state?(Sk=UA.state||(UA.state=new tk),Ck=bA(Sk.get),Ak=bA(Sk.has),Ok=bA(Sk.set),kk=function(e,t){if(Ak(Sk,e))throw new Gk("Object already initialized");return t.facade=e,Ok(Sk,e,t),t},Bk=function(e){return Ck(Sk,e)||{}},function(e){return Ak(Sk,e)}):(Tk=KO("state"),nk[Tk]=!0,kk=function(e,t){if(qA(e,Tk))throw new Gk("Object already initialized");return t.facade=e,bO(e,Tk,t),t},Bk=function(e){return qA(e,Tk)?e[Tk]:{}},function(e){return qA(e,Tk)}),{set:kk,get:Bk,has:Fk,enforce:function(e){return Fk(e)?Bk(e):kk(e,{})},getterFor:function(t){return function(e){if(Y9(e)&&(e=Bk(e)).type===t)return e;throw Gk("Incompatible receiver, "+t+" required")}}}),qk=bA([].push),Kk=[vk(0),vk(1),vk(2),vk(3),vk(4),vk(5),vk(6),vk(7)][0],Yk=KO("hidden"),a=eA("toPrimitive"),Xk=o1.set,Zk=o1.getterFor("Symbol"),Jk=Object.prototype,Qk=pA.Symbol,eB=Qk&&Qk.prototype,tB=pA.TypeError,tk=pA.QObject,nB=Z9("JSON","stringify"),rB=i.f,oB=mO.f,iB=h.f,aB=CA.f,uB=bA([].push),sB=l("symbols"),lB=l("op-symbols"),cB=l("string-to-symbol-registry"),fB=l("symbol-to-string-registry"),l=l("wks"),dB=!tk||!tk.prototype||!tk.prototype.findChild,pB=xA&&U9(function(){return 7!=Pk(oB({},"a",{get:function(){return oB(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=rB(Jk,t);r&&delete Jk[t],oB(e,t,n),r&&e!==Jk&&oB(Jk,t,r)}:oB;NA||(eB=(Qk=function(){if(PA(eB,this))throw tB("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?UO(arguments[0]):void 0,t=Q9(e),n=function(e){this===Jk&&DA(n,lB,e),qA(this,Yk)&&qA(this[Yk],t)&&(this[Yk][t]=!1),pB(this,t,W9(1,e))};return xA&&dB&&pB(Jk,t,{configurable:!0,set:n}),yk(t,e)}).prototype,pk(eB,"toString",function(){return Zk(this).tag}),pk(Qk,"withoutSetter",function(e){return yk(Q9(e),e)}),CA.f=wk,mO.f=mk,i.f=xk,E.f=h.f=Ek,Mk.f=Dk,Hk.f=function(e){return yk(eA(e),e)},xA&&oB(eB,"description",{configurable:!0,get:function(){return Zk(this).description}})),uA({global:!0,wrap:!0,forced:!NA,sham:!NA},{Symbol:Qk}),Kk(ak(l),function(e){hk(e)}),uA({target:"Symbol",stat:!0,forced:!NA},{for:function(e){var t,e=UO(e);return qA(cB,e)?cB[e]:(t=Qk(e),cB[e]=t,fB[t]=e,t)},keyFor:function(e){if(!RA(e))throw tB(e+" is not a symbol");if(qA(fB,e))return fB[e]},useSetter:function(){dB=!0},useSimple:function(){dB=!1}}),uA({target:"Object",stat:!0,forced:!NA,sham:!xA},{create:function(e,t){return void 0===t?Pk(e):bk(Pk(e),t)},defineProperty:mk,defineProperties:bk,getOwnPropertyDescriptor:xk}),uA({target:"Object",stat:!0,forced:!NA},{getOwnPropertyNames:Ek,getOwnPropertySymbols:Dk}),uA({target:"Object",stat:!0,forced:U9(function(){Mk.f(1)})},{getOwnPropertySymbols:function(e){return Mk.f(J9(e))}}),nB&&(tk=!NA||U9(function(){var e=Qk();return"[null]"!=nB([e])||"{}"!=nB({a:e})||"{}"!=nB(Object(e))}),uA({target:"JSON",stat:!0,forced:tk},{stringify:function(e,t,n){var r=zk(arguments),o=t;if((Y9(t)||void 0!==e)&&!RA(e))return xO(t)||(t=function(e,t){if(wA(o)&&(t=DA(o,this,e,t)),!RA(t))return t}),r[1]=t,vA(nB,null,r)}})),eB[a]||(_k=eB.valueOf,pk(eB,a,function(e){return DA(_k,this)})),gk(Qk,"Symbol"),nk[Yk]=!0,hk("asyncIterator"),hk("hasInstance"),hk("isConcatSpreadable"),hk("iterator"),hk("match"),hk("matchAll"),hk("replace"),hk("search"),hk("species"),hk("split"),hk("toPrimitive"),hk("toStringTag"),hk("unscopables"),gk(pA.JSON,"JSON",!0);var i=_A.Symbol,E=Function.prototype,h=xA&&Object.getOwnPropertyDescriptor,l=qA(E,"name"),tk={EXISTS:l,PROPER:l&&"something"===function(){}.name,CONFIGURABLE:l&&(!xA||h(E,"name").configurable)},a=!U9(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hB=KO("IE_PROTO"),gB=pA.Object,vB=gB.prototype,yB=a?gB.getPrototypeOf:function(e){var t,e=J9(e);return qA(e,hB)?e[hB]:(t=e.constructor,wA(t)&&e instanceof t?t.prototype:e instanceof gB?vB:null)},mB=eA("iterator"),l=!1;[].keys&&("next"in(h=[].keys())?(E=yB(yB(h)))!==Object.prototype&&(bB=E):l=!0);var bB=null==bB||U9(function(){var e={};return bB[mB].call(e)!==e})?{}:Pk(bB),a=(wA(bB[mB])||pk(bB,mB,function(){return this}),{IteratorPrototype:bB,BUGGY_SAFARI_ITERATORS:l}),wB=a.IteratorPrototype;if((pA.String,pA.TypeError,!Object.setPrototypeOf)&&"__proto__"in{})try{bA(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)({},[])}catch(e){}function xB(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!SB&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=Pk(wB,{next:W9(1,r)}),gk(g,s,!1,!0);var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[CB]||d["@@iterator"]||o&&d[o],h=!SB&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=yB(g.call(new e)))!==Object.prototype&&s.next&&(gk(s,r,!0,!0),r,0),DB&&"values"==o&&p&&"values"!==p.name&&(f=!0,h=function(){return DA(p,this)}),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!SB&&!f&&c in d||pk(d,c,l[c]);else uA({target:t,proto:!0,forced:SB||f},l);a&&d[CB]!==h&&pk(d,CB,h,{name:o})}var EB,DB=tk.PROPER,SB=a.BUGGY_SAFARI_ITERATORS,CB=eA("iterator"),AB=o1.set,OB=o1.getterFor("Array Iterator"),kB=(xB(Array,"Array",function(e,t){AB(this,{type:"Array Iterator",target:K9(e),index:0,kind:t})},function(){var e=OB(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),eA("toStringTag"));for(EB in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var BB=pA[EB],BB=BB&&BB.prototype;BB&&FO(BB)!==kB&&bO(BB,kB,EB),EB,0}function FB(o){return function(e,t){var n,e=UO(q9(e)),t=SO(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=HB(e,t))<55296||56319<n||t+1===r||(r=HB(e,t+1))<56320||57343<r?o?zB(e,t):n:o?$B(e,t,t+2):r-56320+(n-55296<<10)+65536}}var TB,_B,PB,jB,NB,IB,LB,RB,h=i,MB=(hk("asyncDispose"),hk("dispose"),hk("matcher"),hk("metadata"),hk("observable"),hk("patternMatch"),hk("replaceAll"),h),zB=bA("".charAt),HB=bA("".charCodeAt),$B=bA("".slice),VB=(FB(!1),FB(!0)),UB=o1.set,WB=o1.getterFor("String Iterator"),GB=(xB(String,"String",function(e){UB(this,{type:"String Iterator",string:UO(e),index:0})},function(){var e=WB(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=VB(t,n),e.index+=t.length,{value:t,done:!1})}),Hk.f("iterator")),qB=(E=I6(function(t){function n(e){return t.exports=n="function"==typeof MB&&"symbol"==typeof GB?function(e){return typeof e}:function(e){return e&&"function"==typeof MB&&e.constructor===MB&&e!==MB.prototype?"symbol":typeof e},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0}))&&E.__esModule&&Object.prototype.hasOwnProperty.call(E,"default")?E.default:E,l=E8.EXISTS,tk=K5.f,a=Function.prototype,KB=x(a.toString),YB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,XB=x(YB.exec),i=(X6&&!l&&tk(a,"name",{configurable:!0,get:function(){try{return XB(YB,KB(this))[1]}catch(e){return""}}}),SF.prototype.isActive=function(e){return!1},SF.prototype.getValue=function(e){var t=this.mark,e=P.marks(e);return e&&e[t]?e[t]:""},SF.prototype.isDisabled=function(t){return null==t.selection||(this.mark,!!YS(P.nodes(t,{match:function(e){return"pre"===I.getNodeType(e)||!!P.isVoid(t,e)},universal:!0}),1)[0])},SF.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},SF),ZB=(US(DF,RB=i),DF.prototype.getOptions=function(e){var n=[],t=e.getMenuConfig(this.mark).fontSizeList,t=void 0===t?[]:t,r=(n.push({text:w("fontSize.default"),value:""}),t.forEach(function(e){var t;"string"==typeof e?n.push({text:e,value:e}):"object"===qB(e)&&(t=e.name,e=e.value,n.push({text:t,value:e}))}),this.getValue(e));return n.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),n},DF),JB=(US(EF,LB=i),EF.prototype.getOptions=function(e){var n=[],t=e.getMenuConfig(this.mark).fontFamilyList,t=void 0===t?[]:t,r=(n.push({text:w("fontFamily.default"),value:""}),t.forEach(function(e){var t;"string"==typeof e?n.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}}):"object"===qB(e)&&(t=e.name,e=e.value,n.push({text:t,value:e,styleForRenderMenuList:{"font-family":e}}))}),this.getValue(e));return n.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),n},EF),h={renderStyle:function(e,t){var n=e.fontSize,e=e.fontFamily;return n&&b7(t,{fontSize:n}),e&&b7(t,{fontFamily:e}),t},styleToHtml:function(e,t){var n,r;return H.isText(e)&&(r=e.fontSize,e=e.fontFamily,r||e)?(!MS(t)&&"span"===HS(n=N(t))||(n=N("<span>"+t+"</span>")),r&&n.css("font-size",r),e&&n.css("font-family",e),zS(n)):t},preParseHtml:[c],parseStyleHtml:function(e,t,n){var r,o,i,a,e=N(e);return H.isText(t)?(r=t,a=void 0===(a=n.getMenuConfig("fontSize").fontSizeList)?[]:a,o=$S(e,"font-size"),a=a.find(function(e){return e.value&&e.value===o})||a.includes(o),o&&a&&(r.fontSize=o),n=void 0===(a=n.getMenuConfig("fontFamily").fontFamilyList)?[]:a,i=$S(e,"font-family").replace(/"/g,""),a=n.find(function(e){return e.value&&e.value===i})||n.includes(i),i&&a&&(r.fontFamily=i),r):t},menus:[{key:"fontSize",factory:function(){return new ZB},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new JB},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},o1={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var e=N(e),t=$S(e,"padding-left");return/\dem/.test(t)&&e.css("text-indent","2em"),/\dpx/.test(t)&&parseInt(t,10)%32==0&&e.css("text-indent","2em"),e[0]}},E=(xF.prototype.getValue=function(e){e=YS(P.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null!=e&&YS(e,1)[0].indent||""},xF.prototype.isActive=function(e){return!1},xF.prototype.getMatchNode=function(e){e=YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},xF),QB=(US(wF,IB=E),wF.prototype.isDisabled=function(e){e=this.getMatchNode(e);return null==e||!e.indent},wF.prototype.exec=function(e,t){j.setNodes(e,{indent:null},{match:function(e){return _.isElement(e)}})},wF),eF=(US(bF,NB=E),bF.prototype.isDisabled=function(e){e=this.getMatchNode(e);return null==e||!!e.indent},bF.prototype.exec=function(e,t){j.setNodes(e,{indent:"2em"},{match:function(e){return _.isElement(e)},mode:"highest"})},bF),l={renderStyle:function(e,t){var n;return _.isElement(e)?(n=t,(e=e.indent)&&b7(n,{textIndent:e}),n):t},styleToHtml:function(e,t){var n;return _.isElement(e)&&(e=e.indent)?((n=N(t)).css("text-indent",e),zS(n)):t},preParseHtml:[o1],parseStyleHtml:function(e,t,n){var r,o,e=N(e);return _.isElement(t)?(r=t,e=$S(e,"text-indent"),o=parseInt(e,10),e&&0<o&&(r.indent=e),r):t},menus:[{key:"indent",factory:function(){return new eF}},{key:"delIndent",factory:function(){return new QB}}]},tk=(mF.prototype.getValue=function(e){return""},mF.prototype.isActive=function(e){return!1},mF.prototype.getMatchNode=function(e){e=YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return"paragraph"===e||"blockquote"===e||!!e.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},mF.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!(!P.isVoid(t,e)||!P.isBlock(t,e))||(e=e.type,!!["pre","code"].includes(e))||void 0})},mF),tF=(US(yF,jB=tk),yF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"left"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},yF),nF=(US(vF,PB=tk),vF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"right"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},vF),rF=(US(gF,_B=tk),gF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"center"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},gF),oF=(US(hF,TB=tk),hF.prototype.exec=function(t,e){j.setNodes(t,{textAlign:"justify"},{match:function(e){return _.isElement(e)&&!t.isInline(e)}})},hF),a={renderStyle:function(e,t){var n;return _.isElement(e)?(n=t,(e=e.textAlign)&&b7(n,{textAlign:e}),n):t},styleToHtml:function(e,t){var n;return _.isElement(e)&&(e=e.textAlign)?((n=N(t)).css("text-align",e),zS(n)):t},parseStyleHtml:function(e,t,n){var r,e=N(e);return _.isElement(t)?(r=t,(e=$S(e,"text-align"))&&(r.textAlign=e),r):t},menus:[{key:"justifyLeft",factory:function(){return new tF}},{key:"justifyRight",factory:function(){return new nF}},{key:"justifyCenter",factory:function(){return new rF}},{key:"justifyJustify",factory:function(){return new oF}}]},iF=(pF.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,n=void 0===n?[]:n,r=(t.push({text:w("lineHeight.default"),value:""}),n.forEach(function(e){t.push({text:e,value:e})}),this.getValue(e));return t.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),t},pF.prototype.getMatchNode=function(e){e=YS(P.nodes(e,{match:function(e){e=I.getNodeType(e);return!!e.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(e)},universal:!0,mode:"highest"}),1)[0];return null==e?null:e[0]},pF.prototype.isActive=function(e){return!1},pF.prototype.getValue=function(e){e=this.getMatchNode(e);return null!=e&&_.isElement(e)&&e.lineHeight||""},pF.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},pF.prototype.exec=function(e,t){j.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},pF),i={renderStyle:function(e,t){var n;return _.isElement(e)?(n=t,(e=e.lineHeight)&&b7(n,{lineHeight:e}),n):t},styleToHtml:function(e,t){var n;return _.isElement(e)&&(e=e.lineHeight)?((n=N(t)).css("line-height",e),zS(n)):t},parseStyleHtml:function(e,t,n){var r,e=N(e);return _.isElement(t)?(r=t,n=void 0===(n=n.getMenuConfig("lineHeight").lineHeightList)?[]:n,(e=$S(e,"line-height"))&&n.includes(e)&&(r.lineHeight=e),r):t},menus:[{key:"lineHeight",factory:function(){return new iF},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},aF=(dF.prototype.getValue=function(e){return""},dF.prototype.isActive=function(e){return!1},dF.prototype.isDisabled=function(e){return null==e.selection},dF.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},dF),uF=(fF.prototype.getValue=function(e){return""},fF.prototype.isActive=function(e){return!1},fF.prototype.isDisabled=function(e){return null==e.selection},fF.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},fF),c={menus:[{key:"redo",factory:function(){return new aF}},{key:"undo",factory:function(){return new uF}}]},E={type:"divider",renderElem:function(e,t,n){return Zd("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:I.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Zd("hr")])}},sF=(cF.prototype.getValue=function(e){return""},cF.prototype.isActive=function(e){return!1},cF.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!!t.isVoid(e)||"table"===(e=I.getNodeType(e))||"pre"===e||void 0})},cF.prototype.exec=function(e,t){j.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},cF),o1={renderElems:[E],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new sF}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var e=YS(e,2),t=e[0],e=e[1];if("divider"!==I.getNodeType(t))return n([t,e]);I.isLastNode(r,t)&&j.insertNodes(r,I.genEmptyParagraph(),{at:[e[0]+1]})},r}},lF=f.map;function cF(){this.title=w("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}function fF(){this.title=w("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}function dF(){this.title=w("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}function pF(){this.title=w("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}function hF(){var e=null!==TB&&TB.apply(this,arguments)||this;return e.title=w("justify.justify"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',e}function gF(){var e=null!==_B&&_B.apply(this,arguments)||this;return e.title=w("justify.center"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}function vF(){var e=null!==PB&&PB.apply(this,arguments)||this;return e.title=w("justify.right"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}function yF(){var e=null!==jB&&jB.apply(this,arguments)||this;return e.title=w("justify.left"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',e}function mF(){this.tag="button"}function bF(){var e=null!==NB&&NB.apply(this,arguments)||this;return e.title=w("indent.increase"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',e}function wF(){var e=null!==IB&&IB.apply(this,arguments)||this;return e.title=w("indent.decrease"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',e}function xF(){this.tag="button"}function EF(){var e=null!==LB&&LB.apply(this,arguments)||this;return e.title=w("fontFamily.title"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',e.mark="fontFamily",e.selectPanelWidth=150,e}function DF(){var e=null!==RB&&RB.apply(this,arguments)||this;return e.title=w("fontSize.title"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',e.mark="fontSize",e}function SF(){this.tag="select",this.width=80}r8({target:"Array",proto:!0,forced:!s8("map")},{map:function(e){return lF(this,e,1<arguments.length?arguments[1]:void 0)}});var CF=x([].join),E=s5!=Object,f=rC("join",","),AF=(r8({target:"Array",proto:!0,forced:E||!f},{join:function(e){return CF(H6(this),void 0===e?",":e)}}),OF.prototype.getSelectCodeElem=function(e){var t=I.getSelectedNodeByType(e,"code");return null==t||null==(e=I.getParentNode(e,t))||"pre"!==I.getNodeType(e)?null:t},OF.prototype.getValue=function(e){e=this.getSelectCodeElem(e);return null!=e&&e.language||""},OF.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},OF.prototype.isDisabled=function(t){var e;return null==t.selection||!!(e=I.getSelectedElems(t)).some(function(e){return t.isVoid(e)})||!e.some(function(e){e=I.getNodeType(e);if("pre"===e||"paragraph"===e)return!0})},OF.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},OF.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);null!=t&&(t=R.string(t),j.removeNodes(e,{mode:"highest"}),t=t.split("\n").map(function(e){return{type:"paragraph",children:[{text:e}]}}),j.insertNodes(e,t,{mode:"highest"}))},OF.prototype.changeToCodeBlock=function(t,e){var n,r,o=[],i=P.nodes(t,{match:function(e){return t.children.includes(e)},universal:!0});try{for(var a=KS(i),u=a.next();!u.done;u=a.next()){var s=YS(u.value,1)[0];s&&o.push(R.string(s))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}j.removeNodes(t,{mode:"highest"});i={type:"pre",children:[{type:"code",language:e,children:[{text:o.join("\n")}]}]};j.insertNodes(t,i,{mode:"highest"})},OF),E={key:"codeBlock",factory:function(){return new AF}};function OF(){this.title=w("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}r8({target:"String",proto:!0,forced:JS("anchor")},{anchor:function(e){return ZS(this,"a","name",e)}}),DD("match",function(r,u,s){return[function(e){var t=z6(this),n=null==e?void 0:V6(e,r);return n?J6(n,e,t):new RegExp(e)[r](lD(t))},function(e){var t=W5(this),n=lD(e),e=s(u,t,n);if(e.done)return e.value;if(!t.global)return AD(t,n);for(var r=t.unicode,o=[],i=t.lastIndex=0;null!==(a=AD(t,n));){var a=lD(a[0]);""===(o[i]=a)&&(t.lastIndex=CD(n,F8(t.lastIndex),r)),i++}return 0===i?null:o}]});var f={menus:[E],editorPlugin:function(e){var n=e.insertBreak,r=e.normalizeNode,o=e.insertData,i=(e.insertNode,e);return i.insertBreak=function(){var e=I.getSelectedNodeByType(i,"code");if(null!=e){e=null==(t=i.selection)||(e=R.string(e),t=t.anchor.offset,0===(t=(e=e.slice(0,t).split("\n")).length))?"":e[t-1];if(e){var t=e.match(/^\s+/);if(null!=t&&null!=t[0])return e=t[0],void i.insertText("\n"+e)}i.insertText("\n")}else n()},i.normalizeNode=function(e){var e=YS(e,2),t=e[0],e=e[1],n=I.getNodeType(t);return"code"===n&&e.length<=1&&j.setNodes(i,{type:"paragraph"},{at:e}),"pre"===n&&(I.isLastNode(i,t)&&j.insertNodes(i,I.genEmptyParagraph(),{at:[e[0]+1]}),"code"!==I.getNodeType(t.children[0]))&&(j.unwrapNodes(i),j.setNodes(i,{type:"paragraph"},{mode:"highest"})),r([t,e])},i.insertData=function(e){var t;null!=I.getSelectedNodeByType(i,"code")?(t=e.getData("text/plain"),P.insertText(i,t)):o(e)},i},renderElems:[{type:"pre",renderElem:function(e,t,n){return pp("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return pp("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t,n=N(e);return"code"!==HS(n)||0===(t=n.find("xmp")).length?e:(e=t.text(),t.remove(),n.text(e),n[0])}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:N(e)[0].textContent||""}]}}},{selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){e=N(e);return{type:"pre",children:(t=0===(t=t.filter(function(e){return"code"===I.getNodeType(e)})).length?[{type:"code",language:"",children:[{text:e[0].textContent||""}]}]:t).filter(function(e){return"code"===I.getNodeType(e)})}}}]},kF=(TF.prototype.getValue=function(e){return""},TF.prototype.isActive=function(e){return e.isFullScreen},TF.prototype.isDisabled=function(e){return!1},TF.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},TF),E={menus:[{key:"fullScreen",factory:function(){return new kF}}]},BF=(FF.prototype.getValue=function(e){return""},FF.prototype.isActive=function(e){return!1},FF.prototype.isDisabled=function(e){e=e.selection;return null==e||!!z.isExpanded(e)},FF.prototype.exec=function(e,t){var n=e.selection;null!=n&&(n=[n.anchor.path[0]],j.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:n}),e.select(P.start(e,n)))},FF),jD=[jD,u,h,l,a,i,n,o1,v,d,f,vD,p,s,g,c,E,{menus:[{key:"enter",factory:function(){return new BF}}]}];function FF(){this.title=w("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}function TF(){this.title=w("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}g6("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),g6("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function _F(e){var t={exports:{}};return e(t,t.exports),t.exports}function PF(e){return e&&e.Math==Math&&e}function jF(e){try{return!!e()}catch(e){return!0}}function NF(e){return rT(nT(e),8,-1)}function IF(e){return aT(sT(e))}function LF(e){return dT(sT(e))}function RF(e){return"Symbol("+(void 0===e?"":e)+")_"+yT(++gT+vT,36)}function MF(e,t){return arguments.length<2?(n=JF[e],mT(n)?n:void 0):JF[e]&&JF[e][t];var n}function zF(e){var t;return hT(ET,e)&&(wT||"string"==typeof ET[e])||(t="Symbol."+e,wT&&hT(DT,e)?ET[e]=DT[e]:ET[e]=(xT&&ST?ST:CT)(t)),ET[e]}function HF(e){return TT?FT.createElement(e):{}}function $F(e){return e=function(e,t){if(!AT(e)||LT(e))return e;var n,r,o=$T(e,WT);if(o){if(o=jT(o,e,t=void 0===t?"default":t),!AT(o)||LT(o))return o;throw UT("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&mT(n=o.toString)&&!AT(r=jT(n,o)))return r;if(mT(n=o.valueOf)&&!AT(r=jT(n,o)))return r;if("string"!==e&&mT(n=o.toString)&&!AT(r=jT(n,o)))return r;throw VT("Can't convert object to primitive value")}(e,"string"),LT(e)?e:e+""}function VF(e,t){return(e=ZT(e))<0?JT(e+t,0):QT(e,t)}function UF(e){return t_(e.length)}function WF(u){return function(e,t,n){var r,o=IF(e),i=UF(o),a=VF(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function GF(e,t){var n,r=IF(e),o=0,i=[];for(n in r)!hT(n_,n)&&hT(r,n)&&o_(i,n);for(;t.length>o;)!hT(r,n=t[o++])||~r_(i,n)||o_(i,n);return i}function qF(e){return l_[e]||(l_[e]=RF(e))}function KF(){}function YF(e){e.write(f_("")),e.close();var t=e.parentWindow.Object;return e=null,t}function XF(e){g_[h_][e]=!0}var ZF,JF=PF("object"==typeof globalThis&&globalThis)||PF("object"==typeof window&&window)||PF("object"==typeof self&&self)||PF("object"==typeof u&&u)||function(){return this}()||Function("return this")(),h=Function.prototype,l=h.bind,QF=h.call,eT=l&&l.bind(QF),tT=l?function(e){return e&&eT(QF,e)}:function(e){return e&&function(){return QF.apply(e,arguments)}},nT=tT({}.toString),rT=tT("".slice),oT=JF.Object,iT=tT("".split),aT=jF(function(){return!oT("z").propertyIsEnumerable(0)})?function(e){return"String"==NF(e)?iT(e,""):oT(e)}:oT,uT=JF.TypeError,sT=function(e){if(null==e)throw uT("Can't call method on "+e);return e},lT=Object.defineProperty,cT=function(t,n){try{lT(JF,t,{value:n,configurable:!0,writable:!0})}catch(e){JF[t]=n}return n},fT=JF["__core-js_shared__"]||cT("__core-js_shared__",{}),a=_F(function(e){(e.exports=function(e,t){return fT[e]||(fT[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dT=JF.Object,pT=tT({}.hasOwnProperty),hT=Object.hasOwn||function(e,t){return pT(LF(e),t)},gT=0,vT=Math.random(),yT=tT(1..toString),mT=function(e){return"function"==typeof e},i=MF("navigator","userAgent")||"",n=JF.process,o1=JF.Deno,v=n&&n.versions||o1&&o1.version,d=v&&v.v8,bT=D=!(D=d?0<(TP=d.split("."))[0]&&TP[0]<4?1:+(TP[0]+TP[1]):D)&&i&&(!(TP=i.match(/Edge\/(\d+)/))||74<=TP[1])&&(TP=i.match(/Chrome\/(\d+)/))?+TP[1]:D,wT=!!Object.getOwnPropertySymbols&&!jF(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bT&&bT<41}),xT=wT&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ET=a("wks"),DT=JF.Symbol,ST=DT&&DT.for,CT=xT?DT:DT&&DT.withoutSetter||RF,AT=function(e){return"object"==typeof e?null!==e:mT(e)},OT=JF.String,kT=JF.TypeError,BT=function(e){if(AT(e))return e;throw kT(OT(e)+" is not an object")},f=!jF(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),FT=JF.document,TT=AT(FT)&&AT(FT.createElement),_T=!f&&!jF(function(){return 7!=Object.defineProperty(HF("div"),"a",{get:function(){return 7}}).a}),PT=Function.prototype.call,jT=PT.bind?PT.bind(PT):function(){return PT.apply(PT,arguments)},NT=tT({}.isPrototypeOf),IT=JF.Object,LT=xT?function(e){return"symbol"==typeof e}:function(e){var t=MF("Symbol");return mT(t)&&NT(t.prototype,IT(e))},RT=JF.String,MT=function(e){try{return RT(e)}catch(e){return"Object"}},zT=JF.TypeError,HT=function(e){if(mT(e))return e;throw zT(MT(e)+" is not a function")},$T=function(e,t){e=e[t];return null==e?void 0:HT(e)},VT=JF.TypeError,UT=JF.TypeError,WT=zF("toPrimitive"),GT=JF.TypeError,qT=Object.defineProperty,KT={f:f?qT:function(e,t,n){if(BT(e),t=$F(t),BT(n),_T)try{return qT(e,t,n)}catch(e){}if("get"in n||"set"in n)throw GT("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},YT=Math.ceil,XT=Math.floor,ZT=function(e){e=+e;return e!=e||0==e?0:(0<e?XT:YT)(e)},JT=Math.max,QT=Math.min,e_=Math.min,t_=function(e){return 0<e?e_(ZT(e),9007199254740991):0},vD={includes:WF(!0),indexOf:WF(!1)},n_={},r_=vD.indexOf,o_=tT([].push),i_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a_=Object.keys||function(e){return GF(e,i_)},u_=f?Object.defineProperties:function(e,t){BT(e);for(var n,r=IF(t),o=a_(t),i=o.length,a=0;a<i;)KT.f(e,n=o[a++],r[n]);return e},s_=MF("document","documentElement"),l_=a("keys"),c_=qF("IE_PROTO"),f_=function(e){return"<script>"+e+"<\/script>"},d_=function(){try{ZF=new ActiveXObject("htmlfile")}catch(e){}var e,t;d_="undefined"==typeof document||document.domain&&ZF?YF(ZF):((t=HF("iframe")).style.display="none",s_.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f_("document.F=Object")),e.close(),e.F);for(var n=i_.length;n--;)delete d_.prototype[i_[n]];return d_()},p_=(n_[c_]=!0,Object.create||function(e,t){var n;return null!==e?(KF.prototype=BT(e),n=new KF,KF.prototype=null,n[c_]=e):n=d_(),void 0===t?n:u_(n,t)}),h_=zF("unscopables"),g_=Array.prototype,v_=(null==g_[h_]&&KT.f(g_,h_,{configurable:!0,value:p_(null)}),{}),y_=tT(Function.toString);mT(fT.inspectSource)||(fT.inspectSource=function(e){return y_(e)});function m_(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}var b_,w_,x_,E_,D_,S_,C_,A_,O_=fT.inspectSource,p=JF.WeakMap,s=mT(p)&&/native code/.test(O_(p)),k_=f?function(e,t,n){return KT.f(e,t,m_(1,n))}:function(e,t,n){return e[t]=n,e},B_=JF.TypeError,g=JF.WeakMap;C_=s||fT.state?(b_=fT.state||(fT.state=new g),w_=tT(b_.get),x_=tT(b_.has),E_=tT(b_.set),D_=function(e,t){if(x_(b_,e))throw new B_("Object already initialized");return t.facade=e,E_(b_,e,t),t},S_=function(e){return w_(b_,e)||{}},function(e){return x_(b_,e)}):(A_=qF("state"),n_[A_]=!0,D_=function(e,t){if(hT(e,A_))throw new B_("Object already initialized");return t.facade=e,k_(e,A_,t),t},S_=function(e){return hT(e,A_)?e[A_]:{}},function(e){return hT(e,A_)});function F_(e,t){return(e=uP[aP(e)])==lP||e!=sP&&(mT(t)?jF(t):!!t)}function T_(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?JF:s?JF[a]||cT(a,{}):(JF[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=fP(n,r))&&i.value:n[r],!cP(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;oP(o,i)}(e.sham||i&&i.sham)&&k_(o,"sham",!0),J_(n,r,o,e)}}function __(e,t,n){e&&!hT(e=n?e:e.prototype,mP)&&yP(e,mP,{configurable:!0,value:t})}function P_(){return this}function j_(){return this}function N_(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!AP&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=p_(bP,{next:m_(1,r)}),__(g,s,!1),v_[s]=P_;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[OP]||d["@@iterator"]||o&&d[o],h=!AP&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=gP(g.call(new e)))!==Object.prototype&&s.next&&(gP(s)!==CP&&(EP?EP(s,CP):mT(s[OP])||J_(s,OP,j_)),__(s,r,!0)),DP&&"values"==o&&p&&"values"!==p.name&&(SP?k_(d,"name","values"):(f=!0,h=function(){return jT(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!AP&&!f&&c in d||J_(d,c,l[c]);else T_({target:t,proto:!0,forced:AP||f},l);return d[OP]!==h&&J_(d,OP,h,{name:o}),v_[t]=h,l}function I_(e){if("Symbol"===NP(e))throw TypeError("Cannot convert a Symbol value to a string");return IP(e)}function L_(o){return function(e,t){var n,e=I_(sT(e)),t=ZT(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=RP(e,t))<55296||56319<n||t+1===r||(r=RP(e,t+1))<56320||57343<r?o?LP(e,t):n:o?MP(e,t,t+2):r-56320+(n-55296<<10)+65536}}function R_(e,t,n){for(var r in t)J_(e,r,t[r],n)}function M_(e,t){return HT(e),void 0===t?e:JP?JP(e,t):function(){return e.apply(t,arguments)}}function z_(e){if(null!=e)return $T(e,tj)||$T(e,"@@iterator")||v_[NP(e)]}function H_(e,t,n){var r,o;BT(e);try{if(!(r=$T(e,"return"))){if("throw"===t)throw n;return}r=jT(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;BT(r)}function $_(e,t){this.stopped=e,this.result=t}function V_(e,t,n){function r(e){return i&&H_(i,"normal",e),new $_(!0,e)}function o(e){return d?(BT(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=M_(t,f);if(p)i=e;else{if(!(n=z_(e)))throw rj(MT(e)+" is not iterable");if(void 0!==n&&(v_.Array===n||ej[QP]===n)){for(a=0,u=UF(e);a<u;a++)if((s=o(e[a]))&&NT(oj,s))return;return}i=function(e,t){t=arguments.length<2?z_(e):t;if(HT(t))return BT(jT(t,e));throw nj(MT(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=jT(l,i)).done;){try{s=o(c.value)}catch(e){H_(i,"throw",e)}if("object"==typeof s&&s&&NT(oj,s))return}}function U_(e,t){if(!NT(t,e))throw ij("Incorrect invocation")}var W_,G_={set:D_,get:S_,has:C_,enforce:function(e){return C_(e)?S_(e):D_(e,{})},getterFor:function(t){return function(e){if(AT(e)&&(e=S_(e)).type===t)return e;throw B_("Incompatible receiver, "+t+" required")}}},c={}.propertyIsEnumerable,q_=Object.getOwnPropertyDescriptor,K_={f:q_&&!c.call({1:2},1)?function(e){e=q_(this,e);return!!e&&e.enumerable}:c},Y_=Object.getOwnPropertyDescriptor,X_={f:f?Y_:function(e,t){if(e=IF(e),t=$F(t),_T)try{return Y_(e,t)}catch(e){}if(hT(e,t))return m_(!jT(K_.f,e,t),e[t])}},E=Function.prototype,u=f&&Object.getOwnPropertyDescriptor,h=hT(E,"name"),Z_={EXISTS:h,PROPER:h&&"something"===function(){}.name,CONFIGURABLE:h&&(!f||u(E,"name").configurable)},J_=_F(function(e){var s=Z_.CONFIGURABLE,t=G_.get,l=G_.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;mT(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hT(n,"name")||s&&n.name!==r)&&k_(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==JF?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:k_(e,t,n)):a?e[t]=n:cT(t,n)})(Function.prototype,"toString",function(){return mT(this)&&t(this).source||O_(this)})}),Q_=i_.concat("length","prototype"),eP={f:Object.getOwnPropertyNames||function(e){return GF(e,Q_)}},tP={f:Object.getOwnPropertySymbols},nP=tT([].concat),rP=MF("Reflect","ownKeys")||function(e){var t=eP.f(BT(e)),n=tP.f;return n?nP(t,n(e)):t},oP=function(e,t){for(var n=rP(t),r=KT.f,o=X_.f,i=0;i<n.length;i++){var a=n[i];hT(e,a)||r(e,a,o(t,a))}},iP=/#|\.prototype\./,aP=F_.normalize=function(e){return String(e).replace(iP,".").toLowerCase()},uP=F_.data={},sP=F_.NATIVE="N",lP=F_.POLYFILL="P",cP=F_,fP=X_.f,l=!jF(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dP=qF("IE_PROTO"),pP=JF.Object,hP=pP.prototype,gP=l?pP.getPrototypeOf:function(e){var t,e=LF(e);return hT(e,dP)?e[dP]:(t=e.constructor,mT(t)&&e instanceof t?t.prototype:e instanceof pP?hP:null)},vP=zF("iterator"),n=!1,d=([].keys&&("next"in(o1=[].keys())?(v=gP(gP(o1)))!==Object.prototype&&(W_=v):n=!0),null!=W_&&!jF(function(){var e={};return W_[vP].call(e)!==e})||(W_={}),mT(W_[vP])||J_(W_,vP,function(){return this}),{IteratorPrototype:W_,BUGGY_SAFARI_ITERATORS:n}),yP=KT.f,mP=zF("toStringTag"),bP=d.IteratorPrototype,wP=JF.String,xP=JF.TypeError,EP=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=tT(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){BT(e);var n=t;if("object"==typeof n||mT(n))return o?r(e,t):e.__proto__=t,e;throw xP("Can't set "+wP(n)+" as a prototype")}}():void 0),DP=Z_.PROPER,SP=Z_.CONFIGURABLE,CP=d.IteratorPrototype,AP=d.BUGGY_SAFARI_ITERATORS,OP=zF("iterator"),kP=G_.set,BP=G_.getterFor("Array Iterator"),FP=N_(Array,"Array",function(e,t){kP(this,{type:"Array Iterator",target:IF(e),index:0,kind:t})},function(){var e=BP(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),i=(v_.Arguments=v_.Array,XF("keys"),XF("values"),XF("entries"),{}),TP=(i[zF("toStringTag")]="z","[object z]"===String(i)),_P=zF("toStringTag"),PP=JF.Object,jP="Arguments"==NF(function(){return arguments}()),NP=TP?NF:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=PP(e),_P))?t:jP?NF(e):"Object"==(t=NF(e))&&mT(e.callee)?"Arguments":t},IP=(TP||J_(Object.prototype,"toString",TP?{}.toString:function(){return"[object "+NP(this)+"]"},{unsafe:!0}),JF.String),LP=tT("".charAt),RP=tT("".charCodeAt),MP=tT("".slice),D={codeAt:L_(!1),charAt:L_(!0)},zP=D.charAt,HP=G_.set,$P=G_.getterFor("String Iterator"),VP=(N_(String,"String",function(e){HP(this,{type:"String Iterator",string:I_(e),index:0})},function(){var e=$P(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=zP(t,n),e.index+=t.length,{value:t,done:!1})}),JF.Array),UP=Math.max,WP=eP.f,GP="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qP={f:function(e){if(!GP||"Window"!=NF(e))return WP(IF(e));var t=e;try{return WP(t)}catch(t){for(var n,r,o,i=GP,e=UF(i),a=VF(void 0,e),u=VF(e,e),s=VP(UP(u-a,0)),l=0;a<u;a++,l++)n=s,o=l,r=i[a],(o=$F(o))in n?KT.f(n,o,m_(0,r)):n[o]=r;return s.length=l,s}}},KP=jF(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),YP=Object.isExtensible,XP=jF(function(){YP(1)})||KP?function(e){return!!AT(e)&&(!KP||"ArrayBuffer"!=NF(e))&&(!YP||YP(e))}:YP,ZP=!jF(function(){return Object.isExtensible(Object.preventExtensions({}))}),p=_F(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=KT.f,r=!1,a=RF("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=eP.f,i=tT([].splice),e={};e[a]=1,o(e).length&&(eP.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},T_({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qP.f}))},fastKey:function(e,t){if(!AT(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!hT(e,a)){if(!XP(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!hT(e,a)){if(!XP(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return ZP&&r&&XP(e)&&!hT(e,a)&&n(e),e}};n_[a]=!0}),JP=tT(tT.bind),QP=zF("iterator"),ej=Array.prototype,tj=zF("iterator"),nj=JF.TypeError,rj=JF.TypeError,oj=$_.prototype,ij=JF.TypeError,aj=zF("iterator"),uj=!1;try{var sj=0,lj={next:function(){return{done:!!sj++}},return:function(){uj=!0}};lj[aj]=function(){return this},Array.from(lj,function(){throw 2})}catch(Fs){}function cj(){}function fj(e){if(!mT(e))return!1;try{return bj(cj,mj,e),!0}catch(e){return!1}}function dj(e,t){return new(void 0===(n=yj(e=e)&&(n=e.constructor,Dj(n)&&(n===Cj||yj(n.prototype))||AT(n)&&null===(n=n[Sj]))?void 0:n)?Cj:n)(0===t?0:t);var n}function pj(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=LF(e),u=aT(a),s=M_(t,n),l=UF(u),c=0,t=r||dj,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:Aj(f,o)}else switch(d){case 4:return!1;case 7:Aj(f,o)}return y?-1:g||v?v:f}}function hj(e){return e.frozen||(e.frozen=new gj)}function gj(){this.entries=[]}function vj(e,t){return Fj(e.entries,function(e){return e[0]===t})}var yj=Array.isArray||function(e){return"Array"==NF(e)},mj=[],bj=MF("Reflect","construct"),wj=/^\s*(?:class|function)\b/,xj=tT(wj.exec),Ej=!wj.exec(cj),Dj=!bj||jF(function(){var e;return fj(fj.call)||!fj(Object)||!fj(function(){e=!0})||e})?function(e){if(!mT(e))return!1;switch(NP(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ej||!!xj(wj,O_(e))}:fj,Sj=zF("species"),Cj=JF.Array,Aj=tT([].push),g={forEach:pj(0),map:pj(1),filter:pj(2),some:pj(3),every:pj(4),find:pj(5),findIndex:pj(6),filterReject:pj(7)},Oj=p.getWeakData,kj=G_.set,Bj=G_.getterFor,Fj=g.find,Tj=g.findIndex,_j=tT([].splice),Pj=0;gj.prototype={get:function(e){e=vj(this,e);if(e)return e[1]},has:function(e){return!!vj(this,e)},set:function(e,t){var n=vj(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=Tj(this.entries,function(e){return e[0]===t});return~e&&_j(this.entries,e,1),!!~e}};function jj(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}var Nj,Ij,Lj,Rj,Mj,zj,Hj,$j,Vj,Uj,Wj,Gj,c={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=Oj(BT(t),!0);return!0===o?hj(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){U_(e,a),kj(e,{type:n,id:Pj++,frozen:void 0}),null!=t&&V_(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=Bj(n);return R_(a,{delete:function(e){var t,n=u(this);return!!AT(e)&&(!0===(t=Oj(e))?hj(n).delete(e):t&&hT(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!AT(e)&&(!0===(t=Oj(e))?hj(n).has(e):t&&hT(t,n.id))}}),R_(a,r?{get:function(e){var t,n=u(this);if(AT(e))return!0===(t=Oj(e))?hj(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},qj=G_.enforce,h=!JF.ActiveXObject&&"ActiveXObject"in JF,i=(f=jj,u=c,Lj=-1!==(E="WeakMap").indexOf("Map"),Rj=-1!==E.indexOf("Weak"),Mj=Lj?"set":"add",zj=JF[E],Hj=zj&&zj.prototype,l={},cP(E,!mT($j=zj)||!(Rj||Hj.forEach&&!jF(function(){(new zj).entries().next()})))?($j=u.getConstructor(f,E,Lj,Mj),p.enable()):cP(E,!0)&&(o1=(Ij=new $j)[Mj](Rj?{}:-0,1)!=Ij,v=jF(function(){Ij.has(1)}),n=function(){if(!uj)return!1;var e=!1;try{var t={};t[aj]=function(){return{next:function(){return{done:e=!0}}}},new zj(t)}catch(e){}return e}(),d=!Rj&&jF(function(){for(var e=new zj,t=5;t--;)e[Mj](t,t);return!e.has(-0)}),n||((($j=f(function(e,t){U_(e,Hj);n=new zj,r=$j,EP&&mT(e=e.constructor)&&e!==r&&AT(e=e.prototype)&&e!==r.prototype&&EP(n,e);var n,r=n;return null!=t&&V_(t,r[Mj],{that:r,AS_ENTRIES:Lj}),r})).prototype=Hj).constructor=$j),(v||d)&&(Kj("delete"),Kj("has"),Lj)&&Kj("get"),(d||o1)&&Kj(Mj),Rj)&&Hj.clear&&delete Hj.clear,T_({global:!0,forced:(l[E]=$j)!=zj},l),__($j,E),Rj||u.setStrong($j,E,Lj),$j);function Kj(e){var n=tT(Hj[e]);J_(Hj,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(Rj&&!AT(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return Rj&&!AT(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(Rj&&!AT(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}s&&h&&(Nj=c.getConstructor(jj,"WeakMap",!0),p.enable(),TP=i.prototype,Vj=tT(TP.delete),Uj=tT(TP.has),Wj=tT(TP.get),Gj=tT(TP.set),R_(TP,{delete:function(e){var t;return AT(e)&&!XP(e)?((t=qj(this)).frozen||(t.frozen=new Nj),Vj(this,e)||t.frozen.delete(e)):Vj(this,e)},has:function(e){var t;return AT(e)&&!XP(e)?((t=qj(this)).frozen||(t.frozen=new Nj),Uj(this,e)||t.frozen.has(e)):Uj(this,e)},get:function(e){var t;return!AT(e)||XP(e)||((t=qj(this)).frozen||(t.frozen=new Nj),Uj(this,e))?Wj(this,e):t.frozen.get(e)},set:function(e,t){var n;return!AT(e)||XP(e)||((n=qj(this)).frozen||(n.frozen=new Nj),Uj(this,e))?Gj(this,e,t):n.frozen.set(e,t),this}}));function Yj(e,t){if(e){if(e[Jj]!==eN)try{k_(e,Jj,eN)}catch(t){e[Jj]=eN}if(e[Qj]||k_(e,Qj,t),Zj[t])for(var n in FP)if(e[n]!==FP[n])try{k_(e,n,FP[n])}catch(t){e[n]=FP[n]}}}var Xj,Zj={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},lj=HF("span").classList,n=lj&&lj.constructor&&lj.constructor.prototype,f=n===Object.prototype?void 0:n,Jj=zF("iterator"),Qj=zF("toStringTag"),eN=FP.values;for(Xj in Zj)Yj(JF[Xj]&&JF[Xj].prototype,Xj);Yj(f,"DOMTokenList");var tN=new WeakMap,v={type:"list-item",renderElem:function(f,e,t){tN.set(f,t);var n=f.level,r=void 0===n?0:n,n=f.ordered,o={margin:"5px 0 5px "+20*r+"px"},i="";return i=void 0!==n&&n?function(e){var t=f.type,n=f.level,r=void 0===n?0:n,n=f.ordered,o=void 0!==n&&n;if(!o)return-1;var i=1,a=I.findPath(e,f);if(0===a[0])return 1;for(;0<a[0];){var u=M.previous(a),s=P.node(e,u);if(null==s)break;var s=s[0],l=s.level,l=void 0===l?0:l,c=s.type,s=s.ordered;if(c!==t)break;if(l<r)break;if(l===r){if(s!==o)break;i++}a=u}return i}(t)+".":function(){var e="";switch(void 0===r?0:r){case 0:e="•";break;case 1:e="◦";break;default:e="▪"}return e}(),pp("div",{style:o},pp("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(){var e,t=f.children||[],n=t.length;if(0===n)return"";for(var r=0;r<n&&!e;r++){var o=t[r];H.isText(o)&&(e=o)}return null!=e&&e.color||""}()},"data-w-e-reserve":!0},i),pp("span",null,e))}},nN=function(e,t){return(nN=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function rN(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nN(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function oN(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function iN(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function aN(t){return P.nodes(t,{at:t.selection||void 0,match:function(e){return 1===I.findPath(t,e).length}})}var uN=vD.includes;T_({target:"Array",proto:!0},{includes:function(e){return uN(this,e,1<arguments.length?arguments[1]:void 0)}}),XF("includes");function sN(){var e=BT(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}var lN,cN,fN=JF.RegExp,d=jF(function(){var e=fN("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),o1=d||jF(function(){return!fN("a","y").sticky}),l={BROKEN_CARET:d||jF(function(){var e=fN("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:o1,UNSUPPORTED_Y:d},dN=JF.RegExp,u=jF(function(){var e=dN(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),pN=JF.RegExp,E=jF(function(){var e=pN("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),hN=G_.get,gN=a("native-string-replace",String.prototype.replace),vN=RegExp.prototype.exec,yN=vN,mN=tT("".charAt),bN=tT("".indexOf),wN=tT("".replace),xN=tT("".slice),EN=(s=/b*/g,jT(vN,h=/a/,"a"),jT(vN,s,"a"),0!==h.lastIndex||0!==s.lastIndex),DN=l.BROKEN_CARET,SN=void 0!==/()??/.exec("")[1],CN=yN=EN||SN||DN||u||E?function(e){var t,n,r,o,i,a,u=this,s=hN(u),e=I_(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=jT(yN,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=DN&&u.sticky,f=jT(sN,u),s=u.source,d=0,p=e;if(l&&(f=wN(f,"y",""),-1===bN(f,"g")&&(f+="g"),p=xN(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==mN(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),SN&&(t=new RegExp("^"+s+"$(?!\\s)",f)),EN&&(n=u.lastIndex),r=jT(vN,l?t:u,p),l?r?(r.input=xN(r.input,d),r[0]=xN(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:EN&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),SN&&r&&1<r.length&&jT(gN,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=p_(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:yN,c=(T_({target:"RegExp",proto:!0,forced:/./.exec!==CN},{exec:CN}),PN.prototype.getListNode=function(e){var t=this.type;return I.getSelectedNodeByType(e,t)},PN.prototype.getValue=function(e){return""},PN.prototype.isActive=function(e){var e=this.getListNode(e);return null!=e&&(void 0!==(e=e.ordered)&&e)===this.ordered},PN.prototype.isDisabled=function(t){return null==t.selection||!!I.getSelectedElems(t).some(function(e){return!(!P.isVoid(t,e)||!P.isBlock(t,e))||(e=e.type,!!["pre","code","table"].includes(e))||void 0})},PN.prototype.exec=function(e,t){this.isActive(e)?j.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):j.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},PN),AN=(rN(_N,cN=c),_N),ON=(rN(TN,lN=c),TN),p={key:"bulletedList",factory:function(){return new AN}},i={key:"numberedList",factory:function(){return new ON}},kN=[],TP={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=(o=e,null==(l=tN.get(o))?0:(s=o.type,c=void 0!==(c=o.ordered)&&c,f=void 0===(f=o.level)?0:f,0===(o=I.findPath(l,o))[0]?f+1:(o=M.previous(o),(l=P.node(l,o))?(o=iN(l,1)[0],I.getNodeType(o)!==s?f+1:(l=o.ordered,(o=void 0===(s=o.level)?0:s)<f?f-o:f<o||o!==f||(void 0!==l&&l)===c?0:1)):0)));if(0<a)for(var u=0;u<a;u++)n+="<"+i+">",kN.push(i);s=e;var s,l,c,f,d=null==(o=tN.get(s))?0:(f=s.type,l=void 0!==(l=s.ordered)&&l,c=void 0===(c=s.level)?0:c,(s=I.findPath(o,s))[0]===o.children.length-1?c+1:(s=M.next(s),(o=P.node(o,s))?(s=iN(o,1)[0],I.getNodeType(s)!==f?c+1:(o=s.ordered,(s=void 0===(f=s.level)?0:f)<c?c-s:c<s||s!==c||(void 0!==o&&o)===l?0:1)):0));if(0<d)for(u=0;u<d;u++)r+="</"+kN.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},BN=zF("species"),FN=g.filter,lj=51<=bT||!jF(function(){var e=[];return(e.constructor={})[BN]=function(){return{foo:1}},1!==e.filter(Boolean).foo});function TN(){var e=null!==lN&&lN.apply(this,arguments)||this;return e.ordered=!0,e.title=w("listModule.orderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',e}function _N(){var e=null!==cN&&cN.apply(this,arguments)||this;return e.ordered=!1,e.title=w("listModule.unOrderedList"),e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',e}function PN(){this.type="list-item",this.tag="button"}T_({target:"Array",proto:!0,forced:!lj},{filter:function(e){return FN(this,e,1<arguments.length?arguments[1]:void 0)}});function jN(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&M_(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],0<i&&yj(s))l=UF(s),c=jN(e,t,s,l,c,i-1)-1;else{if(9007199254740991<=c)throw aI("Exceed the acceptable array length");e[c]=s}c++}f++}return c}var NN,IN,LN,RN,MN,zN,n=Function.prototype,HN=n.apply,f=n.bind,$N=n.call,VN="object"==typeof Reflect&&Reflect.apply||(f?$N.bind(HN):function(){return $N.apply(HN,arguments)}),UN=(zF("species"),RegExp.prototype),WN=D.charAt,GN=Math.floor,qN=tT("".charAt),KN=tT("".replace),YN=tT("".slice),XN=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ZN=/\$([$&'`]|\d{1,2})/g,JN=JF.TypeError,QN=zF("replace"),eI=Math.max,tI=Math.min,nI=tT([].concat),rI=tT([].push),oI=tT("".indexOf),iI=tT("".slice),vD="$0"==="a".replace(/./,"$0"),o1=!!/./[QN]&&""===/./[QN]("a","$0"),aI=(NN="replace",d=!!jF(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!vD||o1,MN=zF(NN),zN=!jF(function(){var e={};return e[MN]=function(){return 7},7!=""[NN](e)}),a=zN&&!jF(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[MN](""),!e}),zN&&a&&!d||(IN=tT(/./[MN]),LN=""[NN],RN=o1?"$":"$0",a=[function(e,t){var n=sT(this),r=null==e?void 0:$T(e,QN);return r?jT(r,e,n,t):jT(LN,I_(n),e,t)},function(e,t){var n,r,o,i,a=BT(this),u=I_(e);if("string"==typeof t&&-1===oI(t,RN)&&-1===oI(t,"$<")){e=a,n=u,r=t,i=tT(LN);var s=(s=e.exec)===CN||s===UN.exec?zN&&!o?{done:!0,value:IN(e,n,r)}:{done:!0,value:i(n,e,r)}:{done:!1};if(s.done)return s.value}var l,c=mT(t),f=(c||(t=I_(t)),a.global);f&&(l=a.unicode,a.lastIndex=0);for(var d,p,h=[];;){var g=function(e,t){var n=e.exec;if(mT(n))return null!==(n=jT(n,e,t))&&BT(n),n;if("RegExp"===NF(e))return jT(CN,e,t);throw JN("RegExp#exec called on incompatible receiver")}(a,u);if(null===g)break;if(rI(h,g),!f)break;""===I_(g[0])&&(a.lastIndex=(d=u,(p=t_(a.lastIndex))+(l?WN(d,p).length:1)))}for(var v,y="",m=0,b=0;b<h.length;b++){for(var w=I_((g=h[b])[0]),x=eI(tI(ZT(g.index),u.length),0),E=[],D=1;D<g.length;D++)rI(E,void 0===(v=g[D])?v:String(v));var S=g.groups,C=c?(C=nI([w],E,x,u),void 0!==S&&rI(C,S),I_(VN(t,void 0,C))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=ZN;return void 0!==l&&(l=LF(l),t=XN),KN(e,t,function(e,t){var n;switch(qN(t,0)){case"$":return"$";case"&":return i;case"`":return YN(a,0,u);case"'":return YN(a,c);case"<":n=l[YN(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=GN(o/10))&&r<=f?void 0===s[r-1]?qN(t,1):s[r-1]+qN(t,1):e;n=s[o-1]}return void 0===n?"":n})}(w,u,x,E,S,t);m<=x&&(y+=iI(u,m,x)+C,m=x+w.length)}return y+iI(u,m)}],J_(String.prototype,NN,a[0]),J_(UN,MN,a[1])),JF.TypeError),uI=jN;function sI(e){return e.length?e[0].tagName.toLowerCase():""}T_({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=LF(this),n=UF(t),r=dj(t,0);return r.length=uI(r,t,t,n,0,void 0===e?1:ZT(e)),r}}),XF("flat"),T_({global:!0},{globalThis:JF}),N.fn.append=nd,N.fn.attr=Mf,N.fn.parent=od;var h={renderElems:[v],editorPlugin:function(e){var r=e.deleteBackward,y=e.handleTab,o=e.normalizeNode,m=e;return m.deleteBackward=function(e){var t,n=m.selection;null==n||z.isExpanded(n)||null==(t=I.getSelectedNodeByType(m,"list-item"))||0!==n.focus.offset?r(e):0<(e=void 0===(n=t.level)?0:n)?j.setNodes(m,{level:e-1}):j.setNodes(m,{type:"paragraph",ordered:void 0,level:void 0})},m.handleTab=function(){var e,t,n,r,o=m.selection;if(null!=o){if(z.isCollapsed(o)){var i=I.getSelectedNodeByType(m,"list-item");if(null==i)return void y();if(0===o.focus.offset)return i=i.level,void j.setNodes(m,{level:(v=void 0===i?0:i)+1})}if(z.isExpanded(o)){var a=0,u=!1;try{for(var s=oN(aN(m)),l=s.next();!l.done;l=s.next()){var c=iN(l.value,1)[0];"list-item"===I.getNodeType(c)?a++:u=!0}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}if(u||a<=1)y();else try{for(var f=oN(aN(m)),d=f.next();!d.done;d=f.next()){var p=iN(d.value,2),h=(c=p[0],p[1]),g=c.level,v=void 0===g?0:g;j.setNodes(m,{level:v+1},{at:h})}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}else y()}else y()},m.normalizeNode=function(e){var e=iN(e,2),t=e[0],e=e[1],n=I.getNodeType(t);return"bulleted-list"!==n&&"numbered-list"!==n||j.unwrapNodes(m,{at:e}),o([t,e])},m},menus:[p,i],elemsToHtml:[TP],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=N(e);return 0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"list-item",ordered:"ol"===sI(r.parent()),level:function(){for(var e=0,t=r.parent(),n=sI(t);"ul"===n||"ol"===n;)n=sI(t=t.parent()),e++;return e-1}(),children:t}}}]},lI=O(function(e,t){var r="__lodash_hash_undefined__",I=9007199254740991,f="[object Arguments]",d="[object Array]",L="[object Boolean]",R="[object Date]",M="[object Error]",z="[object Function]",p="[object Map]",H="[object Number]",h="[object Object]",$="[object Promise]",V="[object RegExp]",g="[object Set]",U="[object String]",n="[object WeakMap]",W="[object ArrayBuffer]",v="[object DataView]",G=/^\[object .+?Constructor\]$/,q=/^(?:0|[1-9]\d*)$/,o={},i=(o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o[f]=o[d]=o[W]=o[L]=o[v]=o[R]=o[M]=o[z]=o[p]=o[H]=o[h]=o[V]=o[g]=o[U]=o[n]=!1,"object"==typeof je&&je&&je.Object===Object&&je),a="object"==typeof self&&self&&self.Object===Object&&self,a=i||a||Function("return this")(),t=t&&!t.nodeType&&t,u=t&&e&&!e.nodeType&&e,u=u&&u.exports===t,s=u&&i.process,t=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}(),i=t&&t.isTypedArray;function K(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var X,Z,t=Array.prototype,l=Function.prototype,c=Object.prototype,y=a["__core-js_shared__"],J=l.toString,m=c.hasOwnProperty,Q=(l=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",ee=c.toString,te=RegExp("^"+J.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=u?a.Buffer:void 0,l=a.Symbol,ne=a.Uint8Array,re=c.propertyIsEnumerable,oe=t.splice,b=l?l.toStringTag:void 0,ie=Object.getOwnPropertySymbols,u=y?y.isBuffer:void 0,ae=(X=Object.keys,Z=Object,function(e){return X(Z(e))}),t=T(a,"DataView"),w=T(a,"Map"),y=T(a,"Promise"),x=T(a,"Set"),a=T(a,"WeakMap"),E=T(Object,"create"),ue=P(t),se=P(w),le=P(y),ce=P(x),fe=P(a),l=l?l.prototype:void 0,de=l?l.valueOf:void 0;function D(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function A(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new C;++t<n;)this.add(e[t])}function O(e){e=this.__data__=new S(e);this.size=e.size}function k(e,t){for(var n=e.length;n--;)if(me(e[n][0],t))return n;return-1}function B(e){{if(null==e)return void 0===e?"[object Undefined]":"[object Null]";if(b&&b in Object(e)){var t=e,n=m.call(t,b),r=t[b];try{var o=!(t[b]=void 0)}catch(t){}var i=ee.call(t);return o&&(n?t[b]=r:delete t[b]),i}return ee.call(e)}}function pe(e){return N(e)&&B(e)==f}function he(e,t,n,r,o){return e===t||(null==e||null==t||!N(e)&&!N(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=j(e),u=j(t),s=a?d:_(e),u=u?d:_(t),l=(s=s==f?h:s)==h,c=(u=u==f?h:u)==h,u=s==u;if(u&&we(e)){if(!we(t))return!1;l=!(a=!0)}if(u&&!l)return i=i||new O,(a||Ce(e)?ge:function(e,t,n,r,o,i){switch(s){case v:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case W:return!(e.byteLength!=t.byteLength||!o(new ne(e),new ne(t)));case L:case R:case H:return me(+e,+t);case M:return e.name==t.name&&e.message==t.message;case V:case U:return e==t+"";case p:var a=K;case g:a=a||Y;if(e.size!=t.size&&!(1&n))return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);u=ge(a(e),a(t),n,r,o,i);return i.delete(e),u;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1})(e,t,n,r,o,i);if(!(1&n)){a=l&&m.call(e,"__wrapped__"),l=c&&m.call(t,"__wrapped__");if(a||l)return o(a?e.value():e,l?t.value():t,n,r,i=i||new O)}return!!u&&function(e,t,n,r,o,i){var a=1&n,u=ve(e),s=u.length;if(s!=ve(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:m.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p,h=a;++l<s;){var g,v=e[c=u[l]],y=t[c];if(!(void 0===(g=r?a?r(y,v,c,t,e,i):r(v,y,c,e,t,i):g)?v===y||o(v,y,n,r,i):g)){d=!1;break}h=h||"constructor"==c}return d&&!h&&(f=e.constructor)!=(p=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof f&&f instanceof f&&"function"==typeof p&&p instanceof p)&&(d=!1),i.delete(e),i.delete(t),d}(e,t,n,r,o,i=i||new O)}(e,t,n,r,he,o))}function ge(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&u<s))return!1;s=i.get(e);if(s&&i.get(t))return s==t;var l=-1,c=!0,f=2&n?new A:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var d,p=e[l],h=t[l];if(void 0!==(d=r?a?r(h,p,l,t,e,i):r(p,h,l,e,t,i):d)){if(d)continue;c=!1;break}if(f){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return 1}(t,function(e,t){return!f.has(t)&&(p===e||o(p,e,n,r,i))&&f.push(t)})){c=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){c=!1;break}}return i.delete(e),i.delete(t),c}function ve(e){var t=ye,n=Ae(e);if(j(e))return n;for(var r=n,o=t(e),i=-1,a=o.length,u=r.length;++i<a;)r[u+i]=o[i];return r}function F(e,t){var n,e=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?e["string"==typeof t?"string":"hash"]:e.map}function T(e,t){e=null==e?void 0:e[t];return!De(t=e)||Q&&Q in t||!(xe(t)?te:G).test(P(t))?void 0:e}D.prototype.clear=function(){this.__data__=E?E(null):{},this.size=0},D.prototype.delete=function(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e},D.prototype.get=function(e){var t,n=this.__data__;return E?(t=n[e])===r?void 0:t:m.call(n,e)?n[e]:void 0},D.prototype.has=function(e){var t=this.__data__;return E?void 0!==t[e]:m.call(t,e)},D.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=E&&void 0===t?r:t,this},S.prototype.clear=function(){this.__data__=[],this.size=0},S.prototype.delete=function(e){var t=this.__data__,e=k(t,e);return!(e<0||(e==t.length-1?t.pop():oe.call(t,e,1),--this.size,0))},S.prototype.get=function(e){var t=this.__data__,e=k(t,e);return e<0?void 0:t[e][1]},S.prototype.has=function(e){return-1<k(this.__data__,e)},S.prototype.set=function(e,t){var n=this.__data__,r=k(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},C.prototype.clear=function(){this.size=0,this.__data__={hash:new D,map:new(w||S),string:new D}},C.prototype.delete=function(e){e=F(this,e).delete(e);return this.size-=e?1:0,e},C.prototype.get=function(e){return F(this,e).get(e)},C.prototype.has=function(e){return F(this,e).has(e)},C.prototype.set=function(e,t){var n=F(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},A.prototype.add=A.prototype.push=function(e){return this.__data__.set(e,r),this},A.prototype.has=function(e){return this.__data__.has(e)},O.prototype.clear=function(){this.__data__=new S,this.size=0},O.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},O.prototype.get=function(e){return this.__data__.get(e)},O.prototype.has=function(e){return this.__data__.has(e)},O.prototype.set=function(e,t){var n=this.__data__;if(n instanceof S){var r=n.__data__;if(!w||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new C(r)}return n.set(e,t),this.size=n.size,this};var ye=ie?function(e){if(null==e)return[];e=Object(e);for(var t=ie(e),n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];re.call(e,a)&&(i[o++]=a)}return i}:function(){return[]},_=B;function P(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function me(e,t){return e===t||e!=e&&t!=t}(t&&_(new t(new ArrayBuffer(1)))!=v||w&&_(new w)!=p||y&&_(y.resolve())!=$||x&&_(new x)!=g||a&&_(new a)!=n)&&(_=function(e){var t=B(e),e=t==h?e.constructor:void 0,e=e?P(e):"";if(e)switch(e){case ue:return v;case se:return p;case le:return $;case ce:return g;case fe:return n}return t});var be=pe(function(){return arguments}())?pe:function(e){return N(e)&&m.call(e,"callee")&&!re.call(e,"callee")},j=Array.isArray,we=u||function(){return!1};function xe(e){if(De(e))return(e=B(e))==z||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ee(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=I}function De(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function N(e){return null!=e&&"object"==typeof e}var Se,Ce=i?(Se=i,function(e){return Se(e)}):function(e){return N(e)&&Ee(e.length)&&!!o[B(e)]};function Ae(e){return(null!=e&&Ee(e.length)&&!xe(e)?function(e){var t,n,r,o=j(e),i=!o&&be(e),a=!o&&!i&&we(e),u=!o&&!i&&!a&&Ce(e),s=o||i||a||u,l=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=l.length;for(t in e)!m.call(e,t)||s&&("length"==t||a&&("offset"==t||"parent"==t)||u&&("buffer"==t||"byteLength"==t||"byteOffset"==t)||(n=t,r=c,(r=null==r?I:r)&&("number"==typeof n||q.test(n))&&-1<n&&n%1==0&&n<r))||l.push(t);return l}:function(e){if(e!==("function"==typeof(t=e&&e.constructor)&&t.prototype||c))return ae(e);var t,n,r=[];for(n in Object(e))m.call(e,n)&&"constructor"!=n&&r.push(n);return r})(e)}e.exports=function(e,t){return he(e,t)}}),s=(g6("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),g6("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{});function cI(e){var t={exports:{}};return e(t,t.exports),t.exports}function fI(e){return e&&e.Math==Math&&e}function dI(e){try{return!!e()}catch(e){return!0}}function pI(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function hI(e){return jI(PI(e),8,-1)}function gI(e){if(null==e)throw RI("Can't call method on "+e);return e}function vI(e){return LI(gI(e))}function yI(e,t){return arguments.length<2?(n=CI[e],MI(n)?n:void 0):CI[e]&&CI[e][t];var n}function mI(e,t){return null==(e=e[t])?void 0:XI(e)}function bI(t,n){try{JI(CI,t,{value:n,configurable:!0,writable:!0})}catch(e){CI[t]=n}return n}function wI(e){return eL(gI(e))}function xI(e){return"Symbol("+(void 0===e?"":e)+")_"+iL(++rL+oL,36)}function EI(e){var t;return nL(aL,e)&&(VI||"string"==typeof aL[e])||(t="Symbol."+e,VI&&nL(uL,e)?aL[e]=uL[e]:aL[e]=(UI&&sL?sL:lL)(t)),aL[e]}function DI(e){return e=function(e,t){if(!zI(e)||GI(e))return e;var n,r,o=mI(e,fL);if(o){if(o=OI(o,e,t=void 0===t?"default":t),!zI(o)||GI(o))return o;throw cL("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&MI(n=o.toString)&&!zI(r=OI(n,o)))return r;if(MI(n=o.valueOf)&&!zI(r=OI(n,o)))return r;if("string"!==e&&MI(n=o.toString)&&!zI(r=OI(n,o)))return r;throw ZI("Can't convert object to primitive value")}(e,"string"),GI(e)?e:e+""}function SI(e){return pL?dL.createElement(e):{}}var CI=fI("object"==typeof globalThis&&globalThis)||fI("object"==typeof window&&window)||fI("object"==typeof self&&self)||fI("object"==typeof s&&s)||function(){return this}()||Function("return this")(),l=!dI(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),AI=Function.prototype.call,OI=AI.bind?AI.bind(AI):function(){return AI.apply(AI,arguments)},u={}.propertyIsEnumerable,kI=Object.getOwnPropertyDescriptor,BI={f:kI&&!u.call({1:2},1)?function(e){e=kI(this,e);return!!e&&e.enumerable}:u},E=Function.prototype,c=E.bind,FI=E.call,TI=c&&c.bind(FI),_I=c?function(e){return e&&TI(FI,e)}:function(e){return e&&function(){return FI.apply(e,arguments)}},PI=_I({}.toString),jI=_I("".slice),NI=CI.Object,II=_I("".split),LI=dI(function(){return!NI("z").propertyIsEnumerable(0)})?function(e){return"String"==hI(e)?II(e,""):NI(e)}:NI,RI=CI.TypeError,MI=function(e){return"function"==typeof e},zI=function(e){return"object"==typeof e?null!==e:MI(e)},HI=_I({}.isPrototypeOf),g=yI("navigator","userAgent")||"",lj=CI.process,n=CI.Deno,f=lj&&lj.versions||n&&n.version,D=f&&f.v8,$I=S=!(S=D?0<(wM=D.split("."))[0]&&wM[0]<4?1:+(wM[0]+wM[1]):S)&&g&&(!(wM=g.match(/Edge\/(\d+)/))||74<=wM[1])&&(wM=g.match(/Chrome\/(\d+)/))?+wM[1]:S,VI=!!Object.getOwnPropertySymbols&&!dI(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$I&&$I<41}),UI=VI&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,WI=CI.Object,GI=UI?function(e){return"symbol"==typeof e}:function(e){var t=yI("Symbol");return MI(t)&&HI(t.prototype,WI(e))},qI=CI.String,KI=function(e){try{return qI(e)}catch(e){return"Object"}},YI=CI.TypeError,XI=function(e){if(MI(e))return e;throw YI(KI(e)+" is not a function")},ZI=CI.TypeError,JI=Object.defineProperty,QI=CI["__core-js_shared__"]||bI("__core-js_shared__",{}),vD=cI(function(e){(e.exports=function(e,t){return QI[e]||(QI[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),eL=CI.Object,tL=_I({}.hasOwnProperty),nL=Object.hasOwn||function(e,t){return tL(wI(e),t)},rL=0,oL=Math.random(),iL=_I(1..toString),aL=vD("wks"),uL=CI.Symbol,sL=uL&&uL.for,lL=UI?uL:uL&&uL.withoutSetter||xI,cL=CI.TypeError,fL=EI("toPrimitive"),dL=CI.document,pL=zI(dL)&&zI(dL.createElement),hL=!l&&!dI(function(){return 7!=Object.defineProperty(SI("div"),"a",{get:function(){return 7}}).a}),gL=Object.getOwnPropertyDescriptor,vL={f:l?gL:function(e,t){if(e=vI(e),t=DI(t),hL)try{return gL(e,t)}catch(e){}if(nL(e,t))return pI(!OI(BI.f,e,t),e[t])}},yL=CI.String,mL=CI.TypeError,bL=function(e){if(zI(e))return e;throw mL(yL(e)+" is not an object")},wL=CI.TypeError,xL=Object.defineProperty,EL={f:l?xL:function(e,t,n){if(bL(e),t=DI(t),bL(n),hL)try{return xL(e,t,n)}catch(e){}if("get"in n||"set"in n)throw wL("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},DL=l?function(e,t,n){return EL.f(e,t,pI(1,n))}:function(e,t,n){return e[t]=n,e},SL=_I(Function.toString);MI(QI.inspectSource)||(QI.inspectSource=function(e){return SL(e)});function CL(e){return $L[e]||($L[e]=xI(e))}function AL(e,t){return(e=XL(e))<0?ZL(e+t,0):JL(e,t)}function OL(e){return eR(e.length)}function kL(u){return function(e,t,n){var r,o=vI(e),i=OL(o),a=AL(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function BL(e,t){var n,r=vI(e),o=0,i=[];for(n in r)!nL(VL,n)&&nL(r,n)&&nR(i,n);for(;t.length>o;)!nL(r,n=t[o++])||~tR(i,n)||nR(i,n);return i}function FL(e,t){return(e=fR[cR(e)])==pR||e!=dR&&(MI(t)?dI(t):!!t)}function TL(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?CI:s?CI[a]||bI(a,{}):(CI[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=gR(n,r))&&i.value:n[r],!hR(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=sR(c),d=EL.f,p=vL.f,h=0;h<f.length;h++){var g=f[h];nL(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&DL(o,"sham",!0),qL(n,r,o,e)}}function _L(e){if("Symbol"===bR(e))throw TypeError("Cannot convert a Symbol value to a string");return wR(e)}var PL,jL,NL,IL,LL,RL,ML,zL,HL=QI.inspectSource,d=CI.WeakMap,o1=MI(d)&&/native code/.test(HL(d)),$L=vD("keys"),VL={},UL=CI.TypeError,a=CI.WeakMap,WL=(ML=o1||QI.state?(PL=QI.state||(QI.state=new a),jL=_I(PL.get),NL=_I(PL.has),IL=_I(PL.set),LL=function(e,t){if(NL(PL,e))throw new UL("Object already initialized");return t.facade=e,IL(PL,e,t),t},RL=function(e){return jL(PL,e)||{}},function(e){return NL(PL,e)}):(zL=CL("state"),VL[zL]=!0,LL=function(e,t){if(nL(e,zL))throw new UL("Object already initialized");return t.facade=e,DL(e,zL,t),t},RL=function(e){return nL(e,zL)?e[zL]:{}},function(e){return nL(e,zL)}),{set:LL,get:RL,has:ML,enforce:function(e){return ML(e)?RL(e):LL(e,{})},getterFor:function(t){return function(e){if(zI(e)&&(e=RL(e)).type===t)return e;throw UL("Incompatible receiver, "+t+" required")}}}),v=Function.prototype,p=l&&Object.getOwnPropertyDescriptor,i=nL(v,"name"),GL={EXISTS:i,PROPER:i&&"something"===function(){}.name,CONFIGURABLE:i&&(!l||p(v,"name").configurable)},qL=cI(function(e){var s=GL.CONFIGURABLE,t=WL.get,l=WL.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;MI(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nL(n,"name")||s&&n.name!==r)&&DL(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==CI?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:DL(e,t,n)):a?e[t]=n:bI(t,n)})(Function.prototype,"toString",function(){return MI(this)&&t(this).source||HL(this)})}),KL=Math.ceil,YL=Math.floor,XL=function(e){e=+e;return e!=e||0==e?0:(0<e?YL:KL)(e)},ZL=Math.max,JL=Math.min,QL=Math.min,eR=function(e){return 0<e?QL(XL(e),9007199254740991):0},tR=(kL(!0),kL(!1)),nR=_I([].push),rR=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oR=rR.concat("length","prototype"),iR={f:Object.getOwnPropertyNames||function(e){return BL(e,oR)}},aR={f:Object.getOwnPropertySymbols},uR=_I([].concat),sR=yI("Reflect","ownKeys")||function(e){var t=iR.f(bL(e)),n=aR.f;return n?uR(t,n(e)):t},lR=/#|\.prototype\./,cR=FL.normalize=function(e){return String(e).replace(lR,".").toLowerCase()},fR=FL.data={},dR=FL.NATIVE="N",pR=FL.POLYFILL="P",hR=FL,gR=vL.f,TP={},s=(TP[EI("toStringTag")]="z","[object z]"===String(TP)),vR=EI("toStringTag"),yR=CI.Object,mR="Arguments"==hI(function(){return arguments}()),bR=s?hI:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=yR(e),vR))?t:mR?hI(e):"Object"==(t=hI(e))&&MI(e.callee)?"Arguments":t},wR=CI.String,xR=/"/g,ER=_I("".replace);TL({target:"String",proto:!0,forced:dI(function(){var e="".anchor('"');return e!==e.toLowerCase()||3<e.split('"').length})},{anchor:function(e){return e=e,t=_L(gI(this)),n="<a",(n+=' name="'+ER(_L(e),xR,"&quot;")+'"')+">"+t+"</a>";var t,n}});function DR(){var e=bL(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function SR(){}function CR(e){e.write(_R("")),e.close();var t=e.parentWindow.Object;return e=null,t}var AR,OR=CI.RegExp,u=dI(function(){var e=OR("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),E=u||dI(function(){return!OR("a","y").sticky}),c={BROKEN_CARET:u||dI(function(){var e=OR("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:E,UNSUPPORTED_Y:u},kR=Object.keys||function(e){return BL(e,rR)},BR=l?Object.defineProperties:function(e,t){bL(e);for(var n,r=vI(t),o=kR(t),i=o.length,a=0;a<i;)EL.f(e,n=o[a++],r[n]);return e},FR=yI("document","documentElement"),TR=CL("IE_PROTO"),_R=function(e){return"<script>"+e+"<\/script>"},PR=function(){try{AR=new ActiveXObject("htmlfile")}catch(e){}var e,t;PR="undefined"==typeof document||document.domain&&AR?CR(AR):((t=SI("iframe")).style.display="none",FR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_R("document.F=Object")),e.close(),e.F);for(var n=rR.length;n--;)delete PR.prototype[rR[n]];return PR()};VL[TR]=!0;function jR(){}function NR(e){if(!MI(e))return!1;try{return tM(jR,eM,e),!0}catch(e){return!1}}function IR(e,t,n){(t=DI(t))in e?EL.f(e,t,pI(0,n)):e[t]=n}function LR(t){return 51<=$I||!dI(function(){var e=[];return(e.constructor={})[aM]=function(){return{foo:1}},1!==e[t](Boolean).foo})}var RR=Object.create||function(e,t){var n;return null!==e?(SR.prototype=bL(e),n=new SR,SR.prototype=null,n[TR]=e):n=PR(),void 0===t?n:BR(n,t)},MR=CI.RegExp,lj=dI(function(){var e=MR(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),zR=CI.RegExp,n=dI(function(){var e=zR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),HR=WL.get,$R=vD("native-string-replace",String.prototype.replace),VR=RegExp.prototype.exec,UR=VR,WR=_I("".charAt),GR=_I("".indexOf),qR=_I("".replace),KR=_I("".slice),YR=(f=/b*/g,OI(VR,D=/a/,"a"),OI(VR,f,"a"),0!==D.lastIndex||0!==f.lastIndex),XR=c.BROKEN_CARET,ZR=void 0!==/()??/.exec("")[1],JR=UR=YR||ZR||XR||lj||n?function(e){var t,n,r,o,i,a,u=this,s=HR(u),e=_L(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=OI(UR,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=XR&&u.sticky,f=OI(DR,u),s=u.source,d=0,p=e;if(l&&(f=qR(f,"y",""),-1===GR(f,"g")&&(f+="g"),p=KR(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==WR(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),ZR&&(t=new RegExp("^"+s+"$(?!\\s)",f)),YR&&(n=u.lastIndex),r=OI(VR,l?t:u,p),l?r?(r.input=KR(r.input,d),r[0]=KR(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:YR&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),ZR&&r&&1<r.length&&OI($R,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=RR(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:UR,QR=(TL({target:"RegExp",proto:!0,forced:/./.exec!==JR},{exec:JR}),Array.isArray||function(e){return"Array"==hI(e)}),eM=[],tM=yI("Reflect","construct"),nM=/^\s*(?:class|function)\b/,rM=_I(nM.exec),oM=!nM.exec(jR),iM=!tM||dI(function(){var e;return NR(NR.call)||!NR(Object)||!NR(function(){e=!0})||e})?function(e){if(!MI(e))return!1;switch(bR(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oM||!!rM(nM,HL(e))}:NR,aM=EI("species"),uM=_I([].slice),g=LR("slice"),sM=EI("species"),lM=CI.Array,cM=Math.max;function fM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function dM(e){var t=e.selection;if(null!=t){var n=fM(P.nodes(e,{match:function(e){return I.checkNodeType(e,"table-cell")}}),1)[0];if(n){n=fM(n,2)[1],e=P.start(e,n);if(bc.equals(t.anchor,e))return 1}}}function pM(e,t){var n,r,t=P.nodes(e,{at:t,match:function(e){return"table"===I.getNodeType(e)}}),o=!1;try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),a=i.next();!a.done;a=i.next())a.value,o=!0}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}TL({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,r,o,i=vI(this),a=OL(i),u=AL(e,a),s=AL(void 0===t?a:t,a);if(QR(i)&&(n=i.constructor,(n=iM(n)&&(n===lM||QR(n.prototype))||zI(n)&&null===(n=n[sM])?void 0:n)===lM||void 0===n))return uM(i,u,s);for(r=new(void 0===n?lM:n)(cM(s-u,0)),o=0;u<s;u++,o++)u in i&&IR(r,o,i[u]);return r.length=o,r}});function hM(e,t){return new(void 0===(n=QR(e=e)&&(n=e.constructor,iM(n)&&(n===mM||QR(n.prototype))||zI(n)&&null===(n=n[yM]))?void 0:n)?mM:n)(0===t?0:t);var n}function gM(h){var g=1==h,v=2==h,y=3==h,m=4==h,b=6==h,w=7==h,x=5==h||b;return function(e,t,n,r){for(var o,i,a,u,s=wI(e),l=LI(s),c=(u=n,XI(a=t),void 0===u?a:vM?vM(a,u):function(){return a.apply(u,arguments)}),f=OL(l),d=0,n=r||hM,p=g?n(e,f):v||w?n(e,0):void 0;d<f;d++)if((x||d in l)&&(i=c(o=l[d],d,s),h))if(g)p[d]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return d;case 2:bM(p,o)}else switch(h){case 4:return!1;case 7:bM(p,o)}return b?-1:y||m?m:p}}var vM=_I(_I.bind),yM=EI("species"),mM=CI.Array,bM=_I([].push),wM={forEach:gM(0),map:gM(1),filter:gM(2),some:gM(3),every:gM(4),find:gM(5),findIndex:gM(6),filterReject:gM(7)},xM=wM.map;function EM(e){e=e.children||[];return 0!==e.length&&(e[0]||{}).children||[]}function DM(e){return EM(e).every(function(e){return!!e.isHeader})}TL({target:"Array",proto:!0,forced:!LR("map")},{map:function(e){return xM(this,e,1<arguments.length?arguments[1]:void 0)}}),s||qL(Object.prototype,"toString",s?{}.toString:function(){return"[object "+bR(this)+"]"},{unsafe:!0});function SM(n,e,t,r){var a,o=EI(n),u=!dI(function(){var e={};return e[o]=function(){return 7},7!=""[n](e)}),i=u&&!dI(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[MM]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});u&&i&&!t||(a=_I(/./[o]),i=e(o,""[n],function(e,t,n,r,o){var e=_I(e),i=t.exec;return i===JR||i===zM.exec?u&&!o?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),qL(String.prototype,n,i[0]),qL(zM,o,i[1])),r&&DL(zM[o],"sham",!0)}function CM(o){return function(e,t){var n,e=_L(gI(e)),t=XL(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=WM(e,t))<55296||56319<n||t+1===r||(r=WM(e,t+1))<56320||57343<r?o?UM(e,t):n:o?GM(e,t,t+2):r-56320+(n-55296<<10)+65536}}function AM(e,t,n){return t+(n?qM(e,t).length:1)}function OM(e,t,n){for(var r=OL(e),o=AL(t,r),i=AL(void 0===n?r:n,r),a=KM(YM(i-o,0)),u=0;o<i;o++,u++)IR(a,u,e[o]);return a.length=u,a}function kM(e,t){var n=e.exec;if(MI(n))return null!==(n=OI(n,e,t))&&bL(n),n;if("RegExp"===hI(e))return OI(JR,e,t);throw XM("RegExp#exec called on incompatible receiver")}function BM(t){return function(e){e=_L(gI(e));return 1&t&&(e=oz(e,iz,"")),e=2&t?oz(e,az,""):e}}var FM,S=GL.PROPER,TM=RegExp.prototype,_M=TM.toString,PM=_I(DR),d=dI(function(){return"/a/b"!=_M.call({source:"a",flags:"b"})}),o1=S&&"toString"!=_M.name,a=((d||o1)&&qL(RegExp.prototype,"toString",function(){var e=bL(this),t=_L(e.source),n=e.flags;return"/"+t+"/"+_L(void 0!==n||!HI(TM,e)||"flags"in TM?n:PM(e))},{unsafe:!0}),EI("unscopables")),i=Array.prototype,jM=(null==i[a]&&EL.f(i,a,{configurable:!0,value:RR(null)}),wM.find),NM=!0,p=("find"in[]&&Array(1).find(function(){NM=!1}),TL({target:"Array",proto:!0,forced:NM},{find:function(e){return jM(this,e,1<arguments.length?arguments[1]:void 0)}}),i[a].find=!0,Function.prototype),IM=p.apply,v=p.bind,LM=p.call,RM="object"==typeof Reflect&&Reflect.apply||(v?LM.bind(IM):function(){return LM.apply(IM,arguments)}),MM=EI("species"),zM=RegExp.prototype,HM=EI("match"),$M=CI.TypeError,VM=EI("species"),UM=_I("".charAt),WM=_I("".charCodeAt),GM=_I("".slice),qM=(CM(!1),CM(!0)),KM=CI.Array,YM=Math.max,XM=CI.TypeError,ZM=c.UNSUPPORTED_Y,JM=Math.min,QM=[].push,ez=_I(/./.exec),tz=_I(QM),nz=_I("".slice),rz=(SM("split",function(o,h,g){var v="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=_L(gI(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!zI(t=e)||!(void 0!==(s=t[HM])?s:"RegExp"==hI(t)))return OI(h,n,e,r);for(var o,i,a,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,s+"g");(o=OI(JR,c,n))&&!((i=c.lastIndex)>l&&(tz(u,nz(n,l,o.index)),1<o.length&&o.index<n.length&&RM(QM,u,OM(o,1)),a=o[0].length,l=i,r<=u.length));)c.lastIndex===o.index&&c.lastIndex++;return l===n.length?!a&&ez(c,"")||tz(u,""):tz(u,nz(n,l)),r<u.length?OM(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:OI(h,this,e,t)}:h;return[function(e,t){var n=gI(this),r=null==e?void 0:mI(e,o);return r?OI(r,e,n,t):OI(v,_L(n),e,t)},function(e,t){var r=bL(this),n=_L(e),e=g(v,r,n,t,v!==h);if(e.done)return e.value;var e=function(e){var t,n=bL(r).constructor;if(void 0===n||null==(t=bL(n)[VM]))return e;n=t;if(iM(n))return n;throw $M(KI(n)+" is not a constructor")}(RegExp),o=r.unicode,i=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(ZM?"g":"y"),a=new e(ZM?"^(?:"+r.source+")":r,i),u=void 0===t?4294967295:t>>>0;if(0==u)return[];if(0===n.length)return null===kM(a,n)?[n]:[];for(var s=0,l=0,c=[];l<n.length;){a.lastIndex=ZM?0:l;var f,d=kM(a,ZM?nz(n,l):n);if(null===d||(f=JM(eR(a.lastIndex+(ZM?l:0)),n.length))===s)l=AM(n,l,o);else{if(tz(c,nz(n,s,l)),c.length===u)return c;for(var p=1;p<=d.length-1;p++)if(tz(c,d[p]),c.length===u)return c;l=s=f}}return tz(c,nz(n,s)),c}]},!!dI(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),ZM),"\t\n\v\f\r                 \u2028\u2029\ufeff"),oz=_I("".replace),TP="["+rz+"]",iz=RegExp("^"+TP+TP+"*"),az=RegExp(TP+TP+"*$"),E={start:BM(1),end:BM(2),trim:BM(3)},uz=GL.PROPER,sz=E.trim;function lz(e){return e.length?e[0].tagName.toLowerCase():""}TL({target:"String",proto:!0,forced:(FM="trim",dI(function(){return rz.trim()||"​…᠎"!=="​…᠎".trim()||uz&&rz.trim.name!==FM}))},{trim:function(){return sz(this)}}),TL({global:!0},{globalThis:CI}),N.fn.append=nd,N.fn.on=Vf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.val=$f,N.fn.html=Qf,N.fn.dataset=Hf,N.fn.addClass=If,N.fn.removeClass=Lf,N.fn.children=ud,N.fn.each=Zf,N.fn.find=ad;var cz=!1,fz=0,dz=0,pz=null,hz=null,gz=N("body");function vz(e){cz=!1,pz=hz=null,gz.off("mousemove",wz),gz.off("mouseup",vz)}gz.on("mousedown",function(e){var t=e.target;"TH"!==t.tagName&&"TD"!==t.tagName||"col-resize"!==t.style.cursor||(t.style.cursor="auto",e.preventDefault(),cz=!0,e=e.clientX,fz=e,e=t.getBoundingClientRect().width,dz=e,gz.on("mousemove",wz),gz.on("mouseup",vz))});function yz(t){if(t&&t.forEach!==$z)try{DL(t,"forEach",$z)}catch(e){t.forEach=$z}}var mz,bz,wz=zd(function(e){cz&&null!=hz&&null!=pz&&(e.preventDefault(),e=e.clientX,e=dz+(e-fz),(e=Math.floor(100*e)/100)<30&&(e=30),j.setNodes(hz,{width:e.toString()},{at:pz}))},100),u={type:"table",renderElem:function(r,e,o){a=r;var t,n,i=!((u=o).isDisabled()||null!=(n=u.selection)&&!z.isCollapsed(n)&&(t=n.anchor,n=n.focus,a=I.findPath(u,a),i=P.start(u,a),u=P.end(u,a),a=bc.compare(t,u)<=0&&0<=bc.compare(t,i),u=bc.compare(n,u)<=0&&0<=bc.compare(n,i),!(a&&u&&M.equals(t.path.slice(0,3),n.path.slice(0,3))))),a=r.width,u=void 0===a?"auto":a;return pp("div",{className:"table-container","data-selected":I.isNodeSelected(o,r),on:{mousedown:function(e){var t,n;"DIV"===e.target.tagName&&e.preventDefault(),o.isDisabled()||(e=I.findPath(o,r),t=P.start(o,e),null!=(n=o.selection)&&n.anchor.path[0]===e[0])||o.select(t)}}},pp("table",{width:u,contentEditable:i},pp("colgroup",null,EM(r).map(function(e){e=e.width;return pp("col",{width:void 0===e?"auto":e})})),pp("tbody",null,e)))}},l={type:"table-row",renderElem:function(e,t,n){return pp("tr",null,t)}},vD={type:"table-cell",renderElem:function(u,e,s){r=s,t=u;var t,n=null!=(n=I.getParentNode(r,t))&&null!=(r=I.getParentNode(r,n))&&EM(r).some(function(e){return e===t}),r=u.colSpan,r=void 0===r?1:r,o=u.rowSpan,o=void 0===o?1:o,i=u.isHeader;return n?pp(void 0!==i&&i?"th":"td",{colSpan:r,rowSpan:o,style:{borderRightWidth:"3px"},on:{mousemove:zd(function(e){var t,n,r,o,i,a=this.elm;null!=a&&(t=(o=a.getBoundingClientRect()).left,n=o.width,r=o.top,o=o.height,i=e.clientX,e=e.clientY,cz||(t+n-5<i&&i<t+n&&r<e&&e<r+o?(a.style.cursor="col-resize",hz=s,pz=I.findPath(s,u)):cz||(a.style.cursor="auto",pz=hz=null)))},100)}},e):pp("td",{colSpan:r,rowSpan:o},e)}},D={selector:"table",preParseHtml:function(e){var t,n=N(e);return"table"!==lz(n)||0===(t=n.find("tbody")).length?e:(e=n.find("tr"),n.append(e),t.remove(),n[0])}},xz=wM.filter,Ez=(TL({target:"Array",proto:!0,forced:!LR("filter")},{filter:function(e){return xz(this,e,1<arguments.length?arguments[1]:void 0)}}),Math.floor),Dz=_I("".charAt),Sz=_I("".replace),Cz=_I("".slice),Az=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Oz=/\$([$&'`]|\d{1,2})/g,kz=EI("replace"),Bz=Math.max,Fz=Math.min,Tz=_I([].concat),_z=_I([].push),Pz=_I("".indexOf),jz=_I("".slice),f="$0"==="a".replace(/./,"$0"),Nz=!!/./[kz]&&""===/./[kz]("a","$0"),lj=(SM("replace",function(e,b,w){var x=Nz?"$":"$0";return[function(e,t){var n=gI(this),r=null==e?void 0:mI(e,kz);return r?OI(r,e,n,t):OI(b,_L(n),e,t)},function(e,t){var n=bL(this),r=_L(e);if("string"==typeof t&&-1===Pz(t,x)&&-1===Pz(t,"$<")){e=w(b,n,r,t);if(e.done)return e.value}var o,i=MI(t),a=(i||(t=_L(t)),n.global);a&&(o=n.unicode,n.lastIndex=0);for(var u=[];;){var s=kM(n,r);if(null===s)break;if(_z(u,s),!a)break;""===_L(s[0])&&(n.lastIndex=AM(r,eR(n.lastIndex),o))}for(var l,c="",f=0,d=0;d<u.length;d++){for(var p=_L((s=u[d])[0]),h=Bz(Fz(XL(s.index),r.length),0),g=[],v=1;v<s.length;v++)_z(g,void 0===(l=s[v])?l:String(l));var y=s.groups,m=i?(m=Tz([p],g,h,r),void 0!==y&&_z(m,y),_L(RM(t,void 0,m))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=Oz;return void 0!==l&&(l=wI(l),t=Az),Sz(e,t,function(e,t){var n;switch(Dz(t,0)){case"$":return"$";case"&":return i;case"`":return Cz(a,0,u);case"'":return Cz(a,c);case"<":n=l[Cz(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=Ez(o/10))&&r<=f?void 0===s[r-1]?Dz(t,1):s[r-1]+Dz(t,1):e;n=s[o-1]}return void 0===n?"":n})}(p,r,h,g,y,t);f<=h&&(c+=jz(r,f,h)+m,f=h+p.length)}return c+jz(r,f)}]},!!dI(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!f||Nz),{selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var e=N(e),r=(0===(t=t.filter(function(e){return!!H.isText(e)||!!n.isInline(e)})).length&&(t=[{text:e.text().replace(/\s+/gm," ")}]),parseInt(e.attr("colSpan")||"1")),o=parseInt(e.attr("rowSpan")||"1"),i=e.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===lz(e),colSpan:r,rowSpan:o,width:i,children:t}}}),n={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(e){return"table-cell"===I.getNodeType(e)})}}},g={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var i=N(e),e="auto";return"100%"===function(){for(var e="",t=(i.attr("style")||"").split(";"),n=t.length,r=0;r<n;r++){var o=t[r];o&&"width"===(o=o.split(":"))[0].trim()&&(e=o[1].trim())}return e}()&&(e="100%"),{type:"table",width:e="100%"===i.attr("width")?"100%":e,children:t.filter(function(e){return"table-row"===I.getNodeType(e)})}}},Iz=(Gz.prototype.getValue=function(e){return""},Gz.prototype.isActive=function(e){return!1},Gz.prototype.exec=function(e,t){},Gz.prototype.isDisabled=function(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!I.getSelectedElems(n).some(function(e){var t=I.getNodeType(e);return"pre"===t||"table"===t||"list-item"===t||!!n.isVoid(e)})},Gz.prototype.getPanelContentElem=function(n){var r=this;if(this.$content)return this.$content[0];for(var e=N('<div class="w-e-panel-content-table"></div>'),t=N("<span>0 &times; 0</span>"),i=N("<table></table>"),o=0;o<10;o++){for(var a=N("<tr></tr>"),u=0;u<10;u++){var s=N("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",o.toString()),a.append(s),s.on("mouseenter",function(e){var r,o,e=e.target;null!=e&&(e=N(e).dataset(),r=e.x,o=e.y,t[0].innerHTML=r+1+" &times; "+(o+1),i.children().each(function(e){N(e).children().each(function(e){var e=N(e),t=e.dataset(),n=t.x,t=t.y;n<=r&&t<=o?e.addClass("active"):e.removeClass("active")})}))}),s.on("click",function(e){e.preventDefault();var t,e=e.target;null!=e&&(t=(e=N(e).dataset()).x,e=e.y,r.insertTable(n,e+1,t+1))})}i.append(a)}return e.append(i),e.append(t),(this.$content=e)[0]},Gz.prototype.insertTable=function(e,t,n){var t=parseInt(t,10),n=parseInt(n,10);t&&n&&!(t<=0||n<=0)&&(I.isSelectedEmptyParagraph(e)&&j.removeNodes(e,{mode:"highest"}),t=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(t,n),j.insertNodes(e,t,{mode:"highest"}))},Gz),Lz=(Wz.prototype.getValue=function(e){return""},Wz.prototype.isActive=function(e){return!1},Wz.prototype.isDisabled=function(e){return null==e.selection||null==I.getSelectedNodeByType(e,"table")},Wz.prototype.exec=function(e,t){this.isDisabled(e)||j.removeNodes(e,{mode:"highest"})},Wz),Rz=(Uz.prototype.getValue=function(e){return""},Uz.prototype.isActive=function(e){return!1},Uz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},Uz.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=fM(P.nodes(e,{match:function(e){return I.checkNodeType(e,"table-cell")},universal:!0}),1),n=fM(n[0],2),r=n[0],n=n[1],r=I.getParentNode(e,r),o=(null==r?void 0:r.children.length)||0;if(0!==o){for(var i={type:"table-row",children:[]},a=0;a<o;a++)i.children.push({type:"table-cell",children:[{text:""}]});r=M.parent(n),n=M.next(r);j.insertNodes(e,i,{at:n})}}},Uz),Mz=(Vz.prototype.getValue=function(e){return""},Vz.prototype.isActive=function(e){return!1},Vz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table-row")},Vz.prototype.exec=function(e,t){var n,r;this.isDisabled(e)||(n=fM(P.nodes(e,{match:function(e){return I.checkNodeType(e,"table-row")},universal:!0}),1),r=(n=fM(n[0],2))[0],n=n[1],((null==(r=I.getParentNode(e,r))?void 0:r.children.length)||0)<=1?j.removeNodes(e,{mode:"highest"}):j.removeNodes(e,{at:n}))},Vz),zz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},s=SI("span").classList,S=s&&s.constructor&&s.constructor.prototype,d=S===Object.prototype?void 0:S,Hz=wM.forEach,$z=(mz=[].forEach)&&dI(function(){mz.call(null,function(){throw 1},1)})?[].forEach:function(e){return Hz(this,e,1<arguments.length?arguments[1]:void 0)};function Vz(){this.title=w("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}function Uz(){this.title=w("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}function Wz(){this.title=w("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}function Gz(){this.title=w("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}for(bz in zz)zz[bz]&&yz(CI[bz]&&CI[bz].prototype);yz(d);eH.prototype.getValue=function(e){return""},eH.prototype.isActive=function(e){return!1},eH.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},eH.prototype.exec=function(r,e){var t,o,n,i;this.isDisabled(r)||(n=fM(P.nodes(r,{match:function(e){return I.checkNodeType(e,"table-cell")},universal:!0}),1),t=(n=fM(n[0],2))[0],o=n[1],null!=(n=I.getParentNode(r,t))&&null!=(i=I.getParentNode(r,n))&&(i.children||[]).forEach(function(e,n){_.isElement(e)&&(e.children||[]).forEach(function(e){var t,e=I.findPath(r,e);e.length===o.length&&lI(e.slice(-1),o.slice(-1))&&(t={type:"table-cell",children:[{text:""}]},0===n&&DM(i)&&(t.isHeader=!0),j.insertNodes(r,t,{at:e}))})}))};var qz=eH,Kz=(Qz.prototype.getValue=function(e){return""},Qz.prototype.isActive=function(e){return!1},Qz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table-cell")},Qz.prototype.exec=function(t,e){var n,r,o;this.isDisabled(t)||(r=fM(P.nodes(t,{match:function(e){return I.checkNodeType(e,"table-cell")},universal:!0}),1),o=(r=fM(r[0],2))[0],n=r[1],o=(null==(r=I.getParentNode(t,o))?void 0:r.children.length)||0,!r||o<=1?j.removeNodes(t,{mode:"highest"}):null!=(o=I.getParentNode(t,r))&&(o.children||[]).forEach(function(e){_.isElement(e)&&(e.children||[]).forEach(function(e){e=I.findPath(t,e);e.length===n.length&&lI(e.slice(-1),n.slice(-1))&&j.removeNodes(t,{at:e})})}))},Qz),Yz=(Jz.prototype.getValue=function(e){e=I.getSelectedNodeByType(e,"table");return null!=e&&DM(e)},Jz.prototype.isActive=function(e){return!!this.getValue(e)},Jz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},Jz.prototype.exec=function(t,e){var n;this.isDisabled(t)||(n=!e,null!=(e=I.getSelectedNodeByType(t,"table"))&&EM(e).forEach(function(e){return j.setNodes(t,{isHeader:n},{at:I.findPath(t,e)})}))},Jz),Xz=(Zz.prototype.getValue=function(e){e=I.getSelectedNodeByType(e,"table");return null!=e&&"100%"===e.width},Zz.prototype.isActive=function(e){return!!this.getValue(e)},Zz.prototype.isDisabled=function(e){var t=e.selection;return null==t||!z.isCollapsed(t)||null==I.getSelectedNodeByType(e,"table")},Zz.prototype.exec=function(e,t){this.isDisabled(e)||j.setNodes(e,{width:t?"auto":"100%"},{mode:"highest"})},Zz),o1={renderElems:[u,l,vD],elemsToHtml:[{type:"table",elemToHtml:function(e,t){e=e.width;return'<table style="width: '+(void 0===e?"auto":e)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e.colSpan,r=e.rowSpan,o=e.isHeader,e=e.width,o=void 0!==o&&o?"th":"td";return"<"+o+' colSpan="'+(void 0===n?1:n)+'" rowSpan="'+(void 0===r?1:r)+'" width="'+(void 0===e?"auto":e)+'">'+t+"</"+o+">"}}],preParseHtml:[D],parseElemsHtml:[lj,n,g],menus:[{key:"insertTable",factory:function(){return new Iz}},{key:"deleteTable",factory:function(){return new Lz}},{key:"insertTableRow",factory:function(){return new Rz}},{key:"deleteTableRow",factory:function(){return new Mz}},{key:"insertTableCol",factory:function(){return new qz}},{key:"deleteTableCol",factory:function(){return new Kz}},{key:"tableHeader",factory:function(){return new Yz}},{key:"tableFullWidth",factory:function(){return new Xz}}],editorPlugin:function(n){var e=n.insertBreak,r=n.deleteBackward,t=n.deleteForward,o=n.normalizeNode,i=n.insertData,a=n.handleTab,u=n.selectAll,s=n;return s.insertBreak=function(){null==I.getSelectedNodeByType(s,"table")?e():s.insertText("\n")},s.deleteBackward=function(e){if(!dM(s)){var t=s.selection;if(t){var n=P.before(s,t);if(n){n=pM(s,n),t=pM(s,t);if(n&&!t)return}}r(e)}},s.handleTab=function(){var e,t;I.getSelectedNodeByType(s,"table")?(e=P.above(n),I.checkNodeType(e[0],"table-cell")&&j.select(n,e[1]),(e=P.next(n))?(e[0]&&e[0].text&&(e=null!=(t=P.above(n,{at:e[1]}))?t:e),j.select(n,e[1])):(e=(t=s.children||[]).length,I.checkNodeType(t[e-1],"table")&&(t=I.genEmptyParagraph(),j.insertNodes(s,t,{at:[e]}),s.handleTab()))):a()},s.deleteForward=function(e){dM(s)||t(e)},s.normalizeNode=function(e){var e=fM(e,2),t=e[0],e=e[1];if("table"!==I.getNodeType(t))return o([t,e]);I.isLastNode(s,t)&&(t=I.genEmptyParagraph(),j.insertNodes(s,t,{at:[e[0]+1]}))},s.insertData=function(e){var t;null==I.getSelectedNodeByType(s,"table")||"\n"===(t=e.getData("text/plain"))||/<img[^>]+>/.test(e.getData("text/html"))?i(e):P.insertText(s,t)},s.selectAll=function(){var e,t,n=s.selection;null!=n&&null!=(e=I.getSelectedNodeByType(s,"table-cell"))&&(t=n.anchor,n=n.focus,M.equals(t.path.slice(0,3),n.path.slice(0,3)))&&0!==R.string(e).length?(t=I.findPath(s,e),n={anchor:P.start(s,t),focus:P.end(s,t)},s.select(n)):u()},s}};function Zz(){this.title=w("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}function Jz(){this.title=w("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}function Qz(){this.title=w("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}function eH(){this.title=w("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}g6("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),g6("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var tH=function(){return(tH=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function nH(e,a,u,s){return new(u=u||Promise)(function(n,t){function r(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof u?t:new u(function(e){e(t)})).then(r,o)}i((s=s.apply(e,a||[])).next())})}function rH(r,o){var i,a,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(u=2&t[0]?a.return:t[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,t[1])).done)return u;switch(a=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,a=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!((u=0<(u=s.trys).length&&u[u.length-1])||6!==t[0]&&2!==t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3]))s.label=t[1];else if(6===t[0]&&s.label<u[1])s.label=u[1],u=t;else{if(!(u&&s.label<u[2])){u[2]&&s.ops.pop(),s.trys.pop();continue}s.label=u[2],s.ops.push(t)}}t=o.call(r,s)}catch(e){t=[6,e],a=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}function oH(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function iH(e){var t={exports:{}};return e(t,t.exports),t.exports}function aH(e){return e&&e.Math==Math&&e}function uH(e){try{return!!e()}catch(e){return!0}}function sH(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function lH(e){return OH(AH(e),8,-1)}function cH(e){if(null==e)throw TH("Can't call method on "+e);return e}function fH(e){return FH(cH(e))}function dH(e,t){return arguments.length<2?(n=C[e],_H(n)?n:void 0):C[e]&&C[e][t];var n}function pH(t,n){try{GH(C,t,{value:n,configurable:!0,writable:!0})}catch(e){C[t]=n}return n}function hH(e){return KH(cH(e))}function gH(e){return"Symbol("+(void 0===e?"":e)+")_"+QH(++ZH+JH,36)}function vH(e){var t;return XH(e$,e)&&(IH||"string"==typeof e$[e])||(t="Symbol."+e,IH&&XH(t$,e)?e$[e]=t$[e]:e$[e]=(LH&&n$?n$:r$)(t)),e$[e]}function yH(e){return e=function(e,t){if(!PH(e)||MH(e))return e;var n,r,o=UH(e,i$);if(o){if(o=wH(o,e,t=void 0===t?"default":t),!PH(o)||MH(o))return o;throw o$("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&_H(n=o.toString)&&!PH(r=wH(n,o)))return r;if(_H(n=o.valueOf)&&!PH(r=wH(n,o)))return r;if("string"!==e&&_H(n=o.toString)&&!PH(r=wH(n,o)))return r;throw WH("Can't convert object to primitive value")}(e,"string"),MH(e)?e:e+""}function mH(e){return u$?a$.createElement(e):{}}var C=aH("object"==typeof globalThis&&globalThis)||aH("object"==typeof window&&window)||aH("object"==typeof self&&self)||aH("object"==typeof i&&i)||function(){return this}()||Function("return this")(),a=!uH(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),bH=Function.prototype.call,wH=bH.bind?bH.bind(bH):function(){return bH.apply(bH,arguments)},p={}.propertyIsEnumerable,xH=Object.getOwnPropertyDescriptor,EH={f:xH&&!p.call({1:2},1)?function(e){e=xH(this,e);return!!e&&e.enumerable}:p},v=Function.prototype,c=v.bind,DH=v.call,SH=c&&c.bind(DH),CH=c?function(e){return e&&SH(DH,e)}:function(e){return e&&function(){return DH.apply(e,arguments)}},AH=CH({}.toString),OH=CH("".slice),kH=C.Object,BH=CH("".split),FH=uH(function(){return!kH("z").propertyIsEnumerable(0)})?function(e){return"String"==lH(e)?BH(e,""):kH(e)}:kH,TH=C.TypeError,_H=function(e){return"function"==typeof e},PH=function(e){return"object"==typeof e?null!==e:_H(e)},jH=CH({}.isPrototypeOf),TP=dH("navigator","userAgent")||"",E=C.process,f=C.Deno,s=E&&E.versions||f&&f.version,S=s&&s.v8,NH=pU=!(pU=S?0<(fU=S.split("."))[0]&&fU[0]<4?1:+(fU[0]+fU[1]):pU)&&TP&&(!(fU=TP.match(/Edge\/(\d+)/))||74<=fU[1])&&(fU=TP.match(/Chrome\/(\d+)/))?+fU[1]:pU,IH=!!Object.getOwnPropertySymbols&&!uH(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&NH&&NH<41}),LH=IH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,RH=C.Object,MH=LH?function(e){return"symbol"==typeof e}:function(e){var t=dH("Symbol");return _H(t)&&jH(t.prototype,RH(e))},zH=C.String,HH=function(e){try{return zH(e)}catch(e){return"Object"}},$H=C.TypeError,VH=function(e){if(_H(e))return e;throw $H(HH(e)+" is not a function")},UH=function(e,t){e=e[t];return null==e?void 0:VH(e)},WH=C.TypeError,GH=Object.defineProperty,qH=C["__core-js_shared__"]||pH("__core-js_shared__",{}),wM=iH(function(e){(e.exports=function(e,t){return qH[e]||(qH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),KH=C.Object,YH=CH({}.hasOwnProperty),XH=Object.hasOwn||function(e,t){return YH(hH(e),t)},ZH=0,JH=Math.random(),QH=CH(1..toString),e$=wM("wks"),t$=C.Symbol,n$=t$&&t$.for,r$=LH?t$:t$&&t$.withoutSetter||gH,o$=C.TypeError,i$=vH("toPrimitive"),a$=C.document,u$=PH(a$)&&PH(a$.createElement),s$=!a&&!uH(function(){return 7!=Object.defineProperty(mH("div"),"a",{get:function(){return 7}}).a}),l$=Object.getOwnPropertyDescriptor,c$={f:a?l$:function(e,t){if(e=fH(e),t=yH(t),s$)try{return l$(e,t)}catch(e){}if(XH(e,t))return sH(!wH(EH.f,e,t),e[t])}},f$=C.String,d$=C.TypeError,p$=function(e){if(PH(e))return e;throw d$(f$(e)+" is not an object")},h$=C.TypeError,g$=Object.defineProperty,v$={f:a?g$:function(e,t,n){if(p$(e),t=yH(t),p$(n),s$)try{return g$(e,t,n)}catch(e){}if("get"in n||"set"in n)throw h$("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},y$=a?function(e,t,n){return v$.f(e,t,sH(1,n))}:function(e,t,n){return e[t]=n,e},m$=CH(Function.toString);_H(qH.inspectSource)||(qH.inspectSource=function(e){return m$(e)});function b$(e){return L$[e]||(L$[e]=gH(e))}function w$(e,t){return(e=W$(e))<0?G$(e+t,0):q$(e,t)}function x$(e){return Y$(e.length)}function E$(u){return function(e,t,n){var r,o=fH(e),i=x$(o),a=w$(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function D$(e,t){var n,r=fH(e),o=0,i=[];for(n in r)!XH(R$,n)&&XH(r,n)&&Z$(i,n);for(;t.length>o;)!XH(r,n=t[o++])||~X$(i,n)||Z$(i,n);return i}function S$(e,t){return(e=aV[iV(e)])==sV||e!=uV&&(_H(t)?uH(t):!!t)}function C$(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?C:s?C[a]||pH(a,{}):(C[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=cV(n,r))&&i.value:n[r],!lV(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=rV(c),d=v$.f,p=c$.f,h=0;h<f.length;h++){var g=f[h];XH(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&y$(o,"sham",!0),$$(n,r,o,e)}}function A$(e){if("Symbol"===hV(e))throw TypeError("Cannot convert a Symbol value to a string");return gV(e)}function O$(t){return function(e){e=A$(cH(e));return 1&t&&(e=yV(e,mV,"")),e=2&t?yV(e,bV,""):e}}var k$,B$,F$,T$,_$,P$,j$,N$,I$=qH.inspectSource,d=C.WeakMap,u=_H(d)&&/native code/.test(I$(d)),L$=wM("keys"),R$={},M$=C.TypeError,l=C.WeakMap,z$=(j$=u||qH.state?(k$=qH.state||(qH.state=new l),B$=CH(k$.get),F$=CH(k$.has),T$=CH(k$.set),_$=function(e,t){if(F$(k$,e))throw new M$("Object already initialized");return t.facade=e,T$(k$,e,t),t},P$=function(e){return B$(k$,e)||{}},function(e){return F$(k$,e)}):(N$=b$("state"),R$[N$]=!0,_$=function(e,t){if(XH(e,N$))throw new M$("Object already initialized");return t.facade=e,y$(e,N$,t),t},P$=function(e){return XH(e,N$)?e[N$]:{}},function(e){return XH(e,N$)}),{set:_$,get:P$,has:j$,enforce:function(e){return j$(e)?P$(e):_$(e,{})},getterFor:function(t){return function(e){if(PH(e)&&(e=P$(e)).type===t)return e;throw M$("Incompatible receiver, "+t+" required")}}}),vD=Function.prototype,D=a&&Object.getOwnPropertyDescriptor,lj=XH(vD,"name"),H$={EXISTS:lj,PROPER:lj&&"something"===function(){}.name,CONFIGURABLE:lj&&(!a||D(vD,"name").configurable)},$$=iH(function(e){var s=H$.CONFIGURABLE,t=z$.get,l=z$.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;_H(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!XH(n,"name")||s&&n.name!==r)&&y$(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==C?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:y$(e,t,n)):a?e[t]=n:pH(t,n)})(Function.prototype,"toString",function(){return _H(this)&&t(this).source||I$(this)})}),V$=Math.ceil,U$=Math.floor,W$=function(e){e=+e;return e!=e||0==e?0:(0<e?U$:V$)(e)},G$=Math.max,q$=Math.min,K$=Math.min,Y$=function(e){return 0<e?K$(W$(e),9007199254740991):0},n={includes:E$(!0),indexOf:E$(!1)},X$=n.indexOf,Z$=CH([].push),J$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Q$=J$.concat("length","prototype"),eV={f:Object.getOwnPropertyNames||function(e){return D$(e,Q$)}},tV={f:Object.getOwnPropertySymbols},nV=CH([].concat),rV=dH("Reflect","ownKeys")||function(e){var t=eV.f(p$(e)),n=tV.f;return n?nV(t,n(e)):t},oV=/#|\.prototype\./,iV=S$.normalize=function(e){return String(e).replace(oV,".").toLowerCase()},aV=S$.data={},uV=S$.NATIVE="N",sV=S$.POLYFILL="P",lV=S$,cV=c$.f,g={},i=(g[vH("toStringTag")]="z","[object z]"===String(g)),fV=vH("toStringTag"),dV=C.Object,pV="Arguments"==lH(function(){return arguments}()),hV=i?lH:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=dV(e),fV))?t:pV?lH(e):"Object"==(t=lH(e))&&_H(e.callee)?"Arguments":t},gV=C.String,vV="\t\n\v\f\r                 \u2028\u2029\ufeff",yV=CH("".replace),p="["+vV+"]",mV=RegExp("^"+p+p+"*"),bV=RegExp(p+p+"*$"),v={start:O$(1),end:O$(2),trim:O$(3)},wV=H$.PROPER,xV=v.trim;function EV(e){return e.length?e[0].tagName.toLowerCase():""}function DV(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");e=N(e);return e.attr("width",t),e.attr("height",n),e[0].outerHTML}C$({target:"String",proto:!0,forced:uH(function(){return vV.trim()||"​…᠎"!=="​…᠎".trim()||wV&&"trim"!==vV.trim.name})},{trim:function(){return xV(this)}}),C$({global:!0},{globalThis:C}),N.fn.append=nd,N.fn.on=Vf,e&&(N.fn.focus=e),N.fn.attr=Mf,N.fn.val=$f,N.fn.html=Qf,N.fn.parent=od,N.fn.hasClass=Rf,N.fn.empty=ld;function SV(){}function CV(e){e.write(LV("")),e.close();var t=e.parentWindow.Object;return e=null,t}function AV(e){HV[zV][e]=!0}function OV(e,t){return VH(e),void 0===t?e:VV?VV(e,t):function(){return e.apply(t,arguments)}}function kV(){}function BV(e){if(!_H(e))return!1;try{return GV(kV,WV,e),!0}catch(e){return!1}}function FV(e,t){return new(void 0===(n=UV(e=e)&&(n=e.constructor,XV(n)&&(n===JV||UV(n.prototype))||PH(n)&&null===(n=n[ZV]))?void 0:n)?JV:n)(0===t?0:t);var n}function TV(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=hH(e),u=FH(a),s=OV(t,n),l=x$(u),c=0,t=r||FV,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:QV(f,o)}else switch(d){case 4:return!1;case 7:QV(f,o)}return y?-1:g||v?v:f}}var _V,c={type:"video",renderElem:function(e,t,n){var r=e.src,r=void 0===r?"":r,o=e.poster,o=void 0===o?"":o,i=e.width,i=void 0===i?"auto":i,a=e.height,a=void 0===a?"auto":a,n=I.isNodeSelected(n,e),o=0===r.trim().indexOf("<iframe ")?pp("div",{className:"w-e-textarea-video-container","data-selected":n?"true":"",innerHTML:DV(r,i,a)}):(e=pp("video",{poster:o,controls:!0},pp("source",{src:r,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频"),"auto"!==i&&(e.data.width=i),"auto"!==a&&(e.data.height=a),pp("div",{className:"w-e-textarea-video-container","data-selected":n?"true":""},e));return Zd("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},o)}},E={type:"video",elemToHtml:function(e,t){var n=e.src,n=void 0===n?"":n,r=e.poster,r=void 0===r?"":r,o=e.width,o=void 0===o?"auto":o,e=e.height,e=void 0===e?"auto":e,i='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===n.trim().indexOf("<iframe ")?i+=DV(n,o,e):i+='<video poster="'+r+'" controls="true" width="'+o+'" height="'+e+'"><source src="'+n+'" type="video/mp4"/></video>',i+"\n</div>"}},PV=Object.keys||function(e){return D$(e,J$)},jV=a?Object.defineProperties:function(e,t){p$(e);for(var n,r=fH(t),o=PV(t),i=o.length,a=0;a<i;)v$.f(e,n=o[a++],r[n]);return e},NV=dH("document","documentElement"),IV=b$("IE_PROTO"),LV=function(e){return"<script>"+e+"<\/script>"},RV=function(){try{_V=new ActiveXObject("htmlfile")}catch(e){}var e,t;RV="undefined"==typeof document||document.domain&&_V?CV(_V):((t=mH("iframe")).style.display="none",NV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(LV("document.F=Object")),e.close(),e.F);for(var n=J$.length;n--;)delete RV.prototype[J$[n]];return RV()},MV=(R$[IV]=!0,Object.create||function(e,t){var n;return null!==e?(SV.prototype=p$(e),n=new SV,SV.prototype=null,n[IV]=e):n=RV(),void 0===t?n:jV(n,t)}),zV=vH("unscopables"),HV=Array.prototype,$V=(null==HV[zV]&&v$.f(HV,zV,{configurable:!0,value:MV(null)}),n.includes),f=(C$({target:"Array",proto:!0},{includes:function(e){return $V(this,e,1<arguments.length?arguments[1]:void 0)}}),AV("includes"),{selector:"iframe,video,p",preParseHtml:function(e){var e=N(e),t=e,n=("p"===EV(e)&&1===(e=e.children()).length&&(n=(e=e[0]).tagName.toLowerCase(),["iframe","video"].includes(n))&&(t=N(e)),EV(t));return("iframe"!==n&&"video"!==n||"video"===t.parent().attr("data-w-e-type")?t:((e=N('<div data-w-e-type="video" data-w-e-is-void></div>')).append(t),e))[0]}}),VV=CH(CH.bind),UV=Array.isArray||function(e){return"Array"==lH(e)},WV=[],GV=dH("Reflect","construct"),qV=/^\s*(?:class|function)\b/,KV=CH(qV.exec),YV=!qV.exec(kV),XV=!GV||uH(function(){var e;return BV(BV.call)||!BV(Object)||!BV(function(){e=!0})||e})?function(e){if(!_H(e))return!1;switch(hV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return YV||!!KV(qV,I$(e))}:BV,ZV=vH("species"),JV=C.Array,QV=CH([].push),s={forEach:TV(0),map:TV(1),filter:TV(2),some:TV(3),every:TV(4),find:TV(5),findIndex:TV(6),filterReject:TV(7)},eU=s.find,tU=!0,S=("find"in[]&&Array(1).find(function(){tU=!1}),C$({target:"Array",proto:!0,forced:tU},{find:function(e){return eU(this,e,1<arguments.length?arguments[1]:void 0)}}),AV("find"),i?{}.toString:function(){return"[object "+hV(this)+"]"});function nU(e,t,n,r){return{type:"video",src:e,poster:t=void 0===t?"":t,width:n=void 0===n?"auto":n,height:r=void 0===r?"auto":r,children:[{text:""}]}}i||$$(Object.prototype,"toString",S,{unsafe:!0});function rU(){var e=p$(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function oU(o){return function(e,t){var n,e=A$(cH(e)),t=W$(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=PU(e,t))<55296||56319<n||t+1===r||(r=PU(e,t+1))<56320||57343<r?o?_U(e,t):n:o?jU(e,t,t+2):r-56320+(n-55296<<10)+65536}}var iU,aU,uU,sU,lU,cU,fU={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var e=N(e),r="",o="auto",i="auto",a=e.find("iframe");return 0<a.length?(o=a.attr("width")||"auto",i=a.attr("height")||"auto",nU(r=a[0].outerHTML,"",o,i)):((r=(a=e.find("video")).attr("src")||"")||0<a.length&&(r=a.find("source").attr("src")||""),o=a.attr("width")||"auto",i=a.attr("height")||"auto",nU(r,a.attr("poster")||"",o,i))}},dU=C.RegExp,pU=uH(function(){var e=dU("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),d=pU||uH(function(){return!dU("a","y").sticky}),l={BROKEN_CARET:pU||uH(function(){var e=dU("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:d,UNSUPPORTED_Y:pU},hU=C.RegExp,lj=uH(function(){var e=hU(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),gU=C.RegExp,D=uH(function(){var e=gU("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),vU=z$.get,yU=wM("native-string-replace",String.prototype.replace),mU=RegExp.prototype.exec,bU=mU,wU=CH("".charAt),xU=CH("".indexOf),EU=CH("".replace),DU=CH("".slice),SU=(vD=/b*/g,wH(mU,g=/a/,"a"),wH(mU,vD,"a"),0!==g.lastIndex||0!==vD.lastIndex),CU=l.BROKEN_CARET,AU=void 0!==/()??/.exec("")[1],OU=bU=SU||AU||CU||lj||D?function(e){var t,n,r,o,i,a,u=this,s=vU(u),e=A$(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=wH(bU,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=CU&&u.sticky,f=wH(rU,u),s=u.source,d=0,p=e;if(l&&(f=EU(f,"y",""),-1===xU(f,"g")&&(f+="g"),p=DU(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==wU(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),AU&&(t=new RegExp("^"+s+"$(?!\\s)",f)),SU&&(n=u.lastIndex),r=wH(mU,l?t:u,p),l?r?(r.input=DU(r.input,d),r[0]=DU(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:SU&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),AU&&r&&1<r.length&&wH(yU,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=MV(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:bU,p=(C$({target:"RegExp",proto:!0,forced:/./.exec!==OU},{exec:OU}),Function.prototype),kU=p.apply,v=p.bind,BU=p.call,FU="object"==typeof Reflect&&Reflect.apply||(v?BU.bind(kU):function(){return BU.apply(kU,arguments)}),TU=(vH("species"),RegExp.prototype),_U=CH("".charAt),PU=CH("".charCodeAt),jU=CH("".slice),e={codeAt:oU(!1),charAt:oU(!0)},NU=e.charAt,IU=Math.floor,LU=CH("".charAt),RU=CH("".replace),MU=CH("".slice),zU=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,HU=/\$([$&'`]|\d{1,2})/g,$U=C.TypeError,VU=vH("replace"),UU=Math.max,WU=Math.min,GU=CH([].concat),qU=CH([].push),KU=CH("".indexOf),YU=CH("".slice),n="$0"==="a".replace(/./,"$0"),i=!!/./[VU]&&""===/./[VU]("a","$0");function XU(e){return(e=void 0===e?"r":e)+"-"+Od()}iU="replace",S=!!uH(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!n||i,lU=vH(iU),cU=!uH(function(){var e={};return e[lU]=function(){return 7},7!=""[iU](e)}),d=cU&&!uH(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[lU](""),!e}),cU&&d&&!S||(aU=CH(/./[lU]),uU=""[iU],sU=i?"$":"$0",d=[function(e,t){var n=cH(this),r=null==e?void 0:UH(e,VU);return r?wH(r,e,n,t):wH(uU,A$(n),e,t)},function(e,t){var n,r,o,i,a=p$(this),u=A$(e);if("string"==typeof t&&-1===KU(t,sU)&&-1===KU(t,"$<")){e=a,n=u,r=t,i=CH(uU);var s=(s=e.exec)===OU||s===TU.exec?cU&&!o?{done:!0,value:aU(e,n,r)}:{done:!0,value:i(n,e,r)}:{done:!1};if(s.done)return s.value}var l,c=_H(t),f=(c||(t=A$(t)),a.global);f&&(l=a.unicode,a.lastIndex=0);for(var d,p,h=[];;){var g=function(e,t){var n=e.exec;if(_H(n))return null!==(n=wH(n,e,t))&&p$(n),n;if("RegExp"===lH(e))return wH(OU,e,t);throw $U("RegExp#exec called on incompatible receiver")}(a,u);if(null===g)break;if(qU(h,g),!f)break;""===A$(g[0])&&(a.lastIndex=(d=u,(p=Y$(a.lastIndex))+(l?NU(d,p).length:1)))}for(var v,y="",m=0,b=0;b<h.length;b++){for(var w=A$((g=h[b])[0]),x=UU(WU(W$(g.index),u.length),0),E=[],D=1;D<g.length;D++)qU(E,void 0===(v=g[D])?v:String(v));var S=g.groups,C=c?(C=GU([w],E,x,u),void 0!==S&&qU(C,S),A$(FU(t,void 0,C))):function(i,a,u,s,l,e){var c=u+i.length,f=s.length,t=HU;return void 0!==l&&(l=hH(l),t=zU),RU(e,t,function(e,t){var n;switch(LU(t,0)){case"$":return"$";case"&":return i;case"`":return MU(a,0,u);case"'":return MU(a,c);case"<":n=l[MU(t,1,-1)];break;default:var r,o=+t;if(0==o)return e;if(f<o)return 0!==(r=IU(o/10))&&r<=f?void 0===s[r-1]?LU(t,1):s[r-1]+LU(t,1):e;n=s[o-1]}return void 0===n?"":n})}(w,u,x,E,S,t);m<=x&&(y+=YU(u,m,x)+C,m=x+w.length)}return y+YU(u,m)}],$$(String.prototype,iU,d[0]),$$(TU,lU,d[1]));function ZU(e,t,n){for(var r in t)$$(e,r,t[r],n);return e}function JU(e,t,n){e&&!XH(e=n?e:e.prototype,sW)&&uW(e,sW,{configurable:!0,value:t})}function QU(e,t){if(!jH(t,e))throw lW("Incorrect invocation")}function eW(e){if(null!=e)return UH(e,pW)||UH(e,"@@iterator")||cW[hV(e)]}function tW(e,t,n){var r,o;p$(e);try{if(!(r=UH(e,"return"))){if("throw"===t)throw n;return}r=wH(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;p$(r)}function nW(e,t){this.stopped=e,this.result=t}function rW(e,t,n){function r(e){return i&&tW(i,"normal",e),new nW(!0,e)}function o(e){return d?(p$(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=OV(t,f);if(p)i=e;else{if(!(n=eW(e)))throw gW(HH(e)+" is not iterable");if(void 0!==n&&(cW.Array===n||dW[fW]===n)){for(a=0,u=x$(e);a<u;a++)if((s=o(e[a]))&&jH(vW,s))return;return}i=function(e,t){t=arguments.length<2?eW(e):t;if(VH(t))return p$(wH(t,e));throw hW(HH(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=wH(l,i)).done;){try{s=o(c.value)}catch(e){tW(i,"throw",e)}if("object"==typeof s&&s&&jH(vW,s))return}}var pU=C.Promise,oW=C.String,iW=C.TypeError,aW=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=CH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){p$(e);var n=t;if("object"==typeof n||_H(n))return o?r(e,t):e.__proto__=t,e;throw iW("Can't set "+oW(n)+" as a prototype")}}():void 0),uW=v$.f,sW=vH("toStringTag"),wM=vH("species"),lW=C.TypeError,cW={},fW=vH("iterator"),dW=Array.prototype,pW=vH("iterator"),hW=C.TypeError,gW=C.TypeError,vW=nW.prototype,yW=vH("iterator"),mW=!1;try{var bW=0,wW={next:function(){return{done:!!bW++}},return:function(){mW=!0}};wW[yW]=function(){return this},Array.from(wW,function(){throw 2})}catch(Fs){}function xW(e,t){if(!t&&!mW)return!1;var n=!1;try{var r={};r[yW]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}var EW,DW,SW=C.TypeError,CW=vH("species"),AW=CH([].slice),g=/(?:ipad|iphone|ipod).*applewebkit/i.test(TP),OW="process"==lH(C.process),vD=C.setImmediate,l=C.clearImmediate,kW=C.process,BW=C.Dispatch,FW=C.Function,lj=C.MessageChannel,TW=C.String,_W=0,PW={};try{EW=C.location}catch(Fs){}function jW(e){return function(){LW(e)}}function NW(e){LW(e.data)}function IW(e){C.postMessage(TW(e),EW.protocol+"//"+EW.host)}var LW=function(e){var t;XH(PW,e)&&(t=PW[e],delete PW[e],t())};vD&&l||(vD=function(e){var t=AW(arguments,1);return PW[++_W]=function(){FU(_H(e)?e:FW(e),void 0,t)},DW(_W),_W},l=function(e){delete PW[e]},OW?DW=function(e){kW.nextTick(jW(e))}:BW&&BW.now?DW=function(e){BW.now(jW(e))}:lj&&!g?(p=(D=new lj).port2,D.port1.onmessage=NW,DW=OV(p.postMessage,p)):C.addEventListener&&_H(C.postMessage)&&!C.importScripts&&EW&&"file:"!==EW.protocol&&!uH(IW)?(DW=IW,C.addEventListener("message",NW,!1)):DW="onreadystatechange"in mH("script")?function(e){NV.appendChild(mH("script")).onreadystatechange=function(){NV.removeChild(this),LW(e)}}:function(e){setTimeout(jW(e),0)});var RW,MW,zW,HW,$W,VW,UW,v={set:vD,clear:l},n=/ipad|iphone|ipod/i.test(TP)&&void 0!==C.Pebble,S=/web0s(?!.*chrome)/i.test(TP),i=c$.f,WW=v.set,d=C.MutationObserver||C.WebKitMutationObserver,wW=C.document,GW=C.process,lj=C.Promise,D=i(C,"queueMicrotask"),p=D&&D.value;p||(RW=function(){var e,t;for(OW&&(e=GW.domain)&&e.exit();MW;){t=MW.fn,MW=MW.next;try{t()}catch(e){throw MW?HW():zW=void 0,e}}zW=void 0,e&&e.enter()},HW=g||OW||S||!d||!wW?!n&&lj&&lj.resolve?((vD=lj.resolve(void 0)).constructor=lj,UW=OV(vD.then,vD),function(){UW(RW)}):OW?function(){GW.nextTick(RW)}:(WW=OV(WW,C),function(){WW(RW)}):($W=!0,VW=wW.createTextNode(""),new d(RW).observe(VW,{characterData:!0}),function(){VW.data=$W=!$W}));function qW(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=VH(n),this.reject=VH(r)}var KW,YW,XW,ZW,JW=p||function(e){e={fn:e,next:void 0};zW&&(zW.next=e),MW||(MW=e,HW()),zW=e},QW={f:function(e){return new qW(e)}},eG=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tG="object"==typeof window,nG=v.set,rG=vH("species"),oG="Promise",iG=z$.getterFor(oG),aG=z$.set,uG=z$.getterFor(oG),l=pU&&pU.prototype,sG=pU,lG=l,cG=C.TypeError,fG=C.document,dG=C.process,pG=QW.f,hG=pG,gG=!!(fG&&fG.createEvent&&C.dispatchEvent),vG=_H(C.PromiseRejectionEvent),yG=!1,TP=lV(oG,function(){var e,t=I$(sG),n=t!==String(sG);return!n&&66===NH||!(51<=NH&&/native code/.test(t))&&(t=function(e){e(function(){},function(){})},((e=new sG(function(e){e(1)})).constructor={})[rG]=t,!(yG=e.then(function(){})instanceof t)||!n&&tG&&!vG)}),i=TP||!xW(function(e){sG.all(e).catch(function(){})}),mG=function(e){var t;return!(!PH(e)||!_H(t=e.then))&&t},bG=function(d,p){var h;d.notified||(d.notified=!0,h=d.reactions,JW(function(){for(var r,e=d.value,t=1==d.state,n=0;h.length>n;){var o,i,a,u=h[n++],s=t?u.ok:u.fail,l=u.resolve,c=u.reject,f=u.domain;try{s?(t||(2===d.rejection&&function(t){wH(nG,C,function(){var e=t.facade;OW?dG.emit("rejectionHandled",e):wG("rejectionhandled",e,t.value)})}(d),d.rejection=1),!0===s?o=e:(f&&f.enter(),o=s(e),f&&(f.exit(),a=!0)),o===u.promise?c(cG("Promise-chain cycle")):(i=mG(o))?wH(i,o,l,c):l(o)):c(e)}catch(e){f&&!a&&f.exit(),c(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&(r=d,wH(nG,C,function(){var e,t=r.facade,n=r.value;if(xG(r)&&(e=eG(function(){OW?dG.emit("unhandledRejection",n,t):wG("unhandledrejection",t,n)}),r.rejection=OW||xG(r)?2:1,e.error))throw e.value}))}))},wG=function(e,t,n){var r;gG?((r=fG.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),C.dispatchEvent(r)):r={promise:t,reason:n},!vG&&(t=C["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){var n=C.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},xG=function(e){return 1!==e.rejection&&!e.parent},EG=function(t,n,r){return function(e){t(n,e,r)}},DG=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,bG(e,!0))},SG=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw cG("Promise can't be resolved itself");var r=mG(e);r?JW(function(){var t={done:!1};try{wH(r,e,EG(SG,t,n),EG(DG,t,n))}catch(e){DG(t,e,n)}}):(n.value=e,n.state=1,bG(n,!1))}catch(e){DG({done:!1},e,n)}}};if(TP&&(lG=(sG=function(e){QU(this,lG),VH(e),wH(KW,this);var t=iG(this);try{e(EG(SG,t),EG(DG,t))}catch(e){DG(t,e)}}).prototype,(KW=function(e){aG(this,{type:oG,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ZU(lG,{then:function(e,t){var n=uG(this),r=n.reactions,o=pG(function(e,t){var n,e=p$(e).constructor;if(void 0===e||null==(n=p$(e)[CW]))return t;e=n;if(XV(e))return e;throw SW(HH(e)+" is not a constructor")}(this,sG));return o.ok=!_H(e)||e,o.fail=_H(t)&&t,o.domain=OW?dG.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&bG(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),YW=function(){var e=new KW,t=iG(e);this.promise=e,this.resolve=EG(SG,t),this.reject=EG(DG,t)},QW.f=pG=function(e){return e===sG||e===XW?new YW:hG(e)},_H(pU))&&l!==Object.prototype){ZW=l.then,yG||($$(l,"then",function(e,t){var n=this;return new sG(function(e,t){wH(ZW,n,e,t)}).then(e,t)},{unsafe:!0}),$$(l,"catch",lG.catch,{unsafe:!0}));try{delete l.constructor}catch(Fs){}aW&&aW(l,lG)}function CG(a,u,s){return void 0===s&&(s=""),nH(this,void 0,void 0,function(){var t,n,r,o,i;return rH(this,function(e){switch(e.label){case 0:return u?(a.restoreSelection(),n=a.getMenuConfig("insertVideo"),t=n.onInsertedVideo,r=n.checkVideo,n=n.parseVideoSrc,[4,r(u,s)]):[2];case 1:return"string"==typeof(r=e.sent())?(a.alert(r,"error"),[2]):null==r?[2]:[4,n(u)];case 2:return 0!==(o=e.sent()).trim().indexOf("<iframe ")&&(o=o.replace(/</g,"&lt;").replace(/>/g,"&gt;")),i={type:"video",src:o,poster:s,children:[{text:""}]},Promise.resolve().then(function(){j.insertNodes(a,i)}),t(i),[2]}})})}function AG(){return XU("w-e-insert-video")}C$({global:!0,wrap:!0,forced:TP},{Promise:sG}),JU(sG,oG,!1),D=dH("Promise"),g=v$.f,a&&D&&!D[wM]&&g(D,wM,{configurable:!0,get:function(){return this}}),XW=dH(oG),C$({target:oG,stat:!0,forced:TP},{reject:function(e){var t=pG(this);return wH(t.reject,void 0,e),t.promise}}),C$({target:oG,stat:!0,forced:TP},{resolve:function(e){return e=e,p$(t=this),PH(e)&&e.constructor===t?e:((0,(t=QW.f(t)).resolve)(e),t.promise);var t}}),C$({target:oG,stat:!0,forced:i},{all:function(e){var u=this,t=pG(u),s=t.resolve,l=t.reject,n=eG(function(){var r=VH(u.resolve),o=[],i=0,a=1;rW(e,function(e){var t=i++,n=!1;a++,wH(r,u,e).then(function(e){n||(n=!0,o[t]=e,--a)||s(o)},l)}),--a||s(o)});return n.error&&l(n.value),t.promise},race:function(e){var n=this,r=pG(n),o=r.reject,t=eG(function(){var t=VH(n.resolve);rW(e,function(e){wH(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}});FG.prototype.getValue=function(e){return""},FG.prototype.isActive=function(e){return!1},FG.prototype.exec=function(e,t){},FG.prototype.isDisabled=function(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!I.getSelectedElems(n).some(function(e){var t=I.getNodeType(e);return"pre"===t||"list-item"===t||!!n.isVoid(e)})},FG.prototype.getModalPositionNode=function(e){return null},FG.prototype.getModalContentElem=function(o){var i,e=this,a=this.srcInputId,u=this.posterInputId,t=this.buttonId,n=oH(YE(w("videoModule.videoSrc"),a,w("videoModule.videoSrcPlaceHolder")),2),r=n[0],n=n[1],s=oH(YE(w("videoModule.videoPoster"),u,w("videoModule.videoPosterPlaceHolder")),2),l=s[0],s=s[1],c=N(n),n=N(s),s=oH(XE(t,w("videoModule.ok")),1)[0],t=(null==this.$content&&((i=N("<div></div>")).on("click","#"+t,function(r){return nH(e,void 0,void 0,function(){var t,n;return rH(this,function(e){switch(e.label){case 0:return r.preventDefault(),t=i.find("#"+a).val().trim(),n=i.find("#"+u).val().trim(),[4,CG(o,t,n)];case 1:return e.sent(),o.hidePanelOrModal(),[2]}})})}),this.$content=i),this.$content);return t.empty(),t.append(r),t.append(l),t.append(s),c.val(""),n.val(""),setTimeout(function(){c.focus()}),t[0]};var OG,kG=FG,BG=CH([].join),S=FH!=Object,n=!!(OG=[].join)&&uH(function(){OG.call(null,",",1)});function FG(){this.title=w("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=AG(),this.posterInputId=AG(),this.buttonId=AG()}C$({target:"Array",proto:!0,forced:S||!n},{join:function(e){return BG(fH(this),void 0===e?",":e)}});function TG(){return this}function _G(){return this}function PG(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!KG&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=MV(UG,{next:sH(1,r)}),JU(g,s,!1),cW[s]=TG;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[YG]||d["@@iterator"]||o&&d[o],h=!KG&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=$G(g.call(new e)))!==Object.prototype&&s.next&&($G(s)!==qG&&(aW?aW(s,qG):_H(s[YG])||$$(s,YG,_G)),JU(s,r,!0)),WG&&"values"==o&&p&&"values"!==p.name&&(GG?y$(d,"name","values"):(f=!0,h=function(){return wH(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!KG&&!f&&c in d||$$(d,c,l[c]);else C$({target:t,proto:!0,forced:KG||f},l);return d[YG]!==h&&$$(d,YG,h,{name:o}),cW[t]=h,l}function jG(e,t,n){(t=yH(t))in e?v$.f(e,t,sH(0,n)):e[t]=n}function NG(e){return e.frozen||(e.frozen=new IG)}function IG(){this.entries=[]}function LG(e,t){return hq(e.entries,function(e){return e[0]===t})}var RG,lj=!uH(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),MG=b$("IE_PROTO"),zG=C.Object,HG=zG.prototype,$G=lj?zG.getPrototypeOf:function(e){var t,e=hH(e);return XH(e,MG)?e[MG]:(t=e.constructor,_H(t)&&e instanceof t?t.prototype:e instanceof zG?HG:null)},VG=vH("iterator"),vD=!1,p=([].keys&&("next"in(wW=[].keys())?(d=$G($G(wW)))!==Object.prototype&&(RG=d):vD=!0),null!=RG&&!uH(function(){var e={};return RG[VG].call(e)!==e})||(RG={}),_H(RG[VG])||$$(RG,VG,function(){return this}),{IteratorPrototype:RG,BUGGY_SAFARI_ITERATORS:vD}),UG=p.IteratorPrototype,WG=H$.PROPER,GG=H$.CONFIGURABLE,qG=p.IteratorPrototype,KG=p.BUGGY_SAFARI_ITERATORS,YG=vH("iterator"),XG=z$.set,ZG=z$.getterFor("Array Iterator"),JG=PG(Array,"Array",function(e,t){XG(this,{type:"Array Iterator",target:fH(e),index:0,kind:t})},function(){var e=ZG(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),QG=(cW.Arguments=cW.Array,AV("keys"),AV("values"),AV("entries"),e.charAt),eq=z$.set,tq=z$.getterFor("String Iterator"),nq=(PG(String,"String",function(e){eq(this,{type:"String Iterator",string:A$(e),index:0})},function(){var e=tq(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=QG(t,n),e.index+=t.length,{value:t,done:!1})}),C.Array),rq=Math.max,oq=eV.f,iq="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aq={f:function(e){if(!iq||"Window"!=lH(e))return oq(fH(e));var t=e;try{return oq(t)}catch(t){for(var n=iq,e=x$(n),r=w$(void 0,e),o=w$(e,e),i=nq(rq(o-r,0)),a=0;r<o;r++,a++)jG(i,a,n[r]);return i.length=a,i}}},uq=uH(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),sq=Object.isExtensible,lq=uH(function(){sq(1)})||uq?function(e){return!!PH(e)&&(!uq||"ArrayBuffer"!=lH(e))&&(!sq||sq(e))}:sq,cq=!uH(function(){return Object.isExtensible(Object.preventExtensions({}))}),v=iH(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=v$.f,r=!1,a=gH("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=eV.f,i=CH([].splice),e={};e[a]=1,o(e).length&&(eV.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},C$({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:aq.f}))},fastKey:function(e,t){if(!PH(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!XH(e,a)){if(!lq(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!XH(e,a)){if(!lq(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return cq&&r&&lq(e)&&!XH(e,a)&&n(e),e}};R$[a]=!0}),fq=v.getWeakData,dq=z$.set,pq=z$.getterFor,hq=s.find,gq=s.findIndex,vq=CH([].splice),yq=0;IG.prototype={get:function(e){e=LG(this,e);if(e)return e[1]},has:function(e){return!!LG(this,e)},set:function(e,t){var n=LG(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=gq(this.entries,function(e){return e[0]===t});return~e&&vq(this.entries,e,1),!!~e}};function mq(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}var bq,wq,xq,Eq,Dq,Sq,Cq,Aq,Oq,kq,Bq,Fq,pU={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=fq(p$(t),!0);return!0===o?NG(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){QU(e,a),dq(e,{type:n,id:yq++,frozen:void 0}),null!=t&&rW(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=pq(n);return ZU(a,{delete:function(e){var t,n=u(this);return!!PH(e)&&(!0===(t=fq(e))?NG(n).delete(e):t&&XH(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!PH(e)&&(!0===(t=fq(e))?NG(n).has(e):t&&XH(t,n.id))}}),ZU(a,r?{get:function(e){var t,n=u(this);if(PH(e))return!0===(t=fq(e))?NG(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},Tq=z$.enforce,l=!C.ActiveXObject&&"ActiveXObject"in C,d=(g=mq,D=pU,xq=-1!==(TP="WeakMap").indexOf("Map"),Eq=-1!==TP.indexOf("Weak"),Dq=xq?"set":"add",Sq=C[TP],Cq=Sq&&Sq.prototype,i={},lV(TP,!_H(Aq=Sq)||!(Eq||Cq.forEach&&!uH(function(){(new Sq).entries().next()})))?(Aq=D.getConstructor(g,TP,xq,Dq),v.enable()):lV(TP,!0)&&(S=(wq=new Aq)[Dq](Eq?{}:-0,1)!=wq,n=uH(function(){wq.has(1)}),lj=xW(function(e){new Sq(e)}),wW=!Eq&&uH(function(){for(var e=new Sq,t=5;t--;)e[Dq](t,t);return!e.has(-0)}),lj||(((Aq=g(function(e,t){QU(e,Cq);n=new Sq,r=Aq,aW&&_H(e=e.constructor)&&e!==r&&PH(e=e.prototype)&&e!==r.prototype&&aW(n,e);var n,r=n;return null!=t&&rW(t,r[Dq],{that:r,AS_ENTRIES:xq}),r})).prototype=Cq).constructor=Aq),(n||wW)&&(_q("delete"),_q("has"),xq)&&_q("get"),(wW||S)&&_q(Dq),Eq)&&Cq.clear&&delete Cq.clear,C$({global:!0,forced:(i[TP]=Aq)!=Sq},i),JU(Aq,TP),Eq||D.setStrong(Aq,TP,xq),Aq);function _q(e){var n=CH(Cq[e]);$$(Cq,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(Eq&&!PH(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return Eq&&!PH(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(Eq&&!PH(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}u&&l&&(bq=pU.getConstructor(mq,"WeakMap",!0),v.enable(),vD=d.prototype,Oq=CH(vD.delete),kq=CH(vD.has),Bq=CH(vD.get),Fq=CH(vD.set),ZU(vD,{delete:function(e){var t;return PH(e)&&!lq(e)?((t=Tq(this)).frozen||(t.frozen=new bq),Oq(this,e)||t.frozen.delete(e)):Oq(this,e)},has:function(e){var t;return PH(e)&&!lq(e)?((t=Tq(this)).frozen||(t.frozen=new bq),kq(this,e)||t.frozen.has(e)):kq(this,e)},get:function(e){var t;return!PH(e)||lq(e)||((t=Tq(this)).frozen||(t.frozen=new bq),kq(this,e))?Bq(this,e):t.frozen.get(e)},set:function(e,t){var n;return!PH(e)||lq(e)||((n=Tq(this)).frozen||(n.frozen=new bq),kq(this,e))?Fq(this,e,t):n.frozen.set(e,t),this}}));function Pq(e,t){if(e){if(e[Iq]!==Rq)try{y$(e,Iq,Rq)}catch(t){e[Iq]=Rq}if(e[Lq]||y$(e,Lq,t),Nq[t])for(var n in JG)if(e[n]!==JG[n])try{y$(e,n,JG[n])}catch(t){e[n]=JG[n]}}}var jq,Nq={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},p=mH("span").classList,e=p&&p.constructor&&p.constructor.prototype,s=e===Object.prototype?void 0:e,Iq=vH("iterator"),Lq=vH("toStringTag"),Rq=JG.values;for(jq in Nq)Pq(C[jq]&&C[jq].prototype,jq);Pq(s,"DOMTokenList");var g=H$.EXISTS,n=v$.f,S=Function.prototype,Mq=CH(S.toString),zq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Hq=CH(zq.exec),$q=(a&&!g&&n(S,"name",{configurable:!0,get:function(){try{return Hq(zq,Mq(this))[1]}catch(e){return""}}}),vH("species")),i=51<=NH||!uH(function(){var e=[];return(e.constructor={})[$q]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),Vq=vH("species"),Uq=C.Array,Wq=Math.max;function Gq(e){return e.getMenuConfig("uploadVideo")}C$({target:"Array",proto:!0,forced:!i},{slice:function(e,t){var n,r,o,i=fH(this),a=x$(i),u=w$(e,a),s=w$(void 0===t?a:t,a);if(UV(i)&&(n=i.constructor,(n=XV(n)&&(n===Uq||UV(n.prototype))||PH(n)&&null===(n=n[Vq])?void 0:n)===Uq||void 0===n))return AW(i,u,s);for(r=new(void 0===n?Uq:n)(Wq(s-u,0)),o=0;u<s;u++,o++)u in i&&jG(r,o,i[u]);return r.length=o,r}});var qq=new WeakMap;function Kq(p,h){return nH(this,void 0,void 0,function(){var l,c,f,d;return rH(this,function(e){switch(e.label){case 0:return o=p,null==(s=qq.get(o))&&(t=Gq(o),i=t.onSuccess,n=t.onProgress,a=t.onFailed,u=t.customInsert,r=t.onError,s=E3(tH(tH({},t),{onProgress:function(e){o.showProgressBar(e),n&&n(e)},onSuccess:function(e,t){var n,r;(u?(u(t,function(e,t){return CG(o,e,t)}),i):(n=t.errno,r=void 0===(r=t.data)?{}:r,0===(void 0===n?1:n)?(n=r.url,r=r.poster,CG(o,void 0===n?"":n,void 0===r?"":r),i):a))(e,t)},onError:function(e,t,n){r(e,t,n)}})),qq.set(o,s)),l=s,c=h.name,f=h.type,d=h.size,l.addFile({name:c,type:f,size:d,data:h}),[4,l.upload()];case 1:return e.sent(),[2]}var o,t,i,n,a,u,r,s})})}Qq.prototype.getValue=function(e){return""},Qq.prototype.isActive=function(e){return!1},Qq.prototype.exec=function(n,e){var t,r=this.getMenuConfig(n),o=r.allowedFileTypes,o=void 0===o?[]:o,r=r.customBrowseAndUpload;r?r(function(e,t){return CG(n,e,t)}):(r="",0<o.length&&(r='accept="'+o.join(", ")+'"'),o=N("body"),(t=N('<input type="file" '+r+" multiple/>")).hide(),o.append(t),t.click(),t.on("change",function(){var e=t[0].files;!function(u,s){var l,c;nH(this,void 0,void 0,function(){var t,n,r,o,i,a;return rH(this,function(e){switch(e.label){case 0:if(null==s)return[2];t=Array.prototype.slice.call(s),n=Gq(u).customUpload,e.label=1;case 1:e.trys.push([1,9,10,15]),r=function(a){var e,t;if(Symbol.asyncIterator)return(t=a[Symbol.asyncIterator])?t.call(a):(a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);throw new TypeError("Symbol.asyncIterator is not defined.");function n(i){e[i]=a[i]&&function(o){return new Promise(function(e,t){var n,r;n=e,e=t,r=(o=a[i](o)).done,t=o.value,Promise.resolve(t).then(function(e){n({value:e,done:r})},e)})}}}(t),e.label=2;case 2:return[4,r.next()];case 3:return(o=e.sent()).done?[3,8]:(i=o.value,n?[4,n(i,function(e,t){return CG(u,e,t)})]:[3,5]);case 4:return e.sent(),[3,7];case 5:return[4,Kq(u,i)];case 6:e.sent(),e.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return a=e.sent(),l={error:a},[3,15];case 10:return e.trys.push([10,,13,14]),o&&!o.done&&(c=r.return)?[4,c.call(r)]:[3,12];case 11:e.sent(),e.label=12;case 12:return[3,14];case 13:if(l)throw l.error;return[7];case 14:return[7];case 15:return[2]}})})}(n,e)}))},Qq.prototype.isDisabled=function(n){var e=n.selection;return null==e||!z.isCollapsed(e)||!!I.getSelectedElems(n).some(function(e){var t=I.getNodeType(e);return"pre"===t||"list-item"===t||!!n.isVoid(e)})},Qq.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")};var Yq=Qq,D=H$.PROPER,Xq=RegExp.prototype,Zq=Xq.toString,Jq=CH(rU),u=uH(function(){return"/a/b"!=Zq.call({source:"a",flags:"b"})}),l=D&&"toString"!=Zq.name;function Qq(){this.title=w("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}function eK(){return XU("w-e-insert-video")}(u||l)&&$$(RegExp.prototype,"toString",function(){var e=p$(this),t=A$(e.source),n=e.flags;return"/"+t+"/"+A$(void 0!==n||!jH(Xq,e)||"flags"in Xq?n:Jq(e))},{unsafe:!0});nK.prototype.getSelectedVideoNode=function(e){return I.getSelectedNodeByType(e,"video")},nK.prototype.getValue=function(e){return""},nK.prototype.isActive=function(e){return!1},nK.prototype.exec=function(e,t){},nK.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},nK.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},nK.prototype.getModalContentElem=function(n){var r,o=this.widthInputId,i=this.heightInputId,e=this.buttonId,t=oH(YE(w("videoModule.width"),o,"auto"),2),a=t[0],u=N(t[1]),t=oH(YE(w("videoModule.height"),i,"auto"),2),s=t[0],t=N(t[1]),l=oH(XE(e,w("videoModule.ok")),1)[0],e=(null==this.$content&&((r=N("<div></div>")).on("click","#"+e,function(e){e.preventDefault();var e=r.find("#"+o).val().trim(),t=r.find("#"+i).val().trim(),e=parseInt(e),t=parseInt(t),e=e?e.toString():"auto",t=t?t.toString():"auto";n.restoreSelection(),j.setNodes(n,{width:e,height:t},{match:function(e){return I.checkNodeType(e,"video")}}),n.hidePanelOrModal()}),this.$content=r),this.$content),a=(e.empty(),e.append(a),e.append(s),e.append(l),this.getSelectedVideoNode(n));return null!=a&&(s=a.width,a=void 0===(l=a.height)?"auto":l,u.val(void 0===s?"auto":s),t.val(a),setTimeout(function(){u.focus()})),e[0]};var tK=nK,pU={renderElems:[c],elemsToHtml:[E],preParseHtml:[f],parseElemsHtml:[fU],menus:[{key:"insertVideo",factory:function(){return new kG},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Yq},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new tK}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var e=oH(e,2),t=e[0],e=e[1];return"video"===I.getNodeType(t)&&I.isLastNode(r,t)&&j.insertNodes(r,I.genEmptyParagraph(),{at:[e[0]+1]}),n([t,e])},r}};function nK(){this.title=w("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=eK(),this.heightInputId=eK(),this.buttonId=eK()}g6("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),g6("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function rK(e){var t={exports:{}};return e(t,t.exports),t.exports}function oK(e){return e&&e.Math==Math&&e}function iK(e){try{return!!e()}catch(e){return!0}}function aK(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function uK(e){return CK(SK(e),8,-1)}function sK(e){if(null==e)throw BK("Can't call method on "+e);return e}function lK(e){return kK(sK(e))}function cK(e,t){return arguments.length<2?(n=A[e],FK(n)?n:void 0):A[e]&&A[e][t];var n}function fK(t,n){try{UK(A,t,{value:n,configurable:!0,writable:!0})}catch(e){A[t]=n}return n}function dK(e){return GK(sK(e))}function pK(e){return"Symbol("+(void 0===e?"":e)+")_"+ZK(++YK+XK,36)}function hK(e){var t;return KK(JK,e)&&(jK||"string"==typeof JK[e])||(t="Symbol."+e,jK&&KK(QK,e)?JK[e]=QK[e]:JK[e]=(NK&&eY?eY:tY)(t)),JK[e]}function gK(e){return e=function(e,t){if(!TK(e)||LK(e))return e;var n,r,o=$K(e,rY);if(o){if(o=mK(o,e,t=void 0===t?"default":t),!TK(o)||LK(o))return o;throw nY("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&FK(n=o.toString)&&!TK(r=mK(n,o)))return r;if(FK(n=o.valueOf)&&!TK(r=mK(n,o)))return r;if("string"!==e&&FK(n=o.toString)&&!TK(r=mK(n,o)))return r;throw VK("Can't convert object to primitive value")}(e,"string"),LK(e)?e:e+""}function vK(e){return iY?oY.createElement(e):{}}var A=oK("object"==typeof globalThis&&globalThis)||oK("object"==typeof window&&window)||oK("object"==typeof self&&self)||oK("object"==typeof v&&v)||function(){return this}()||Function("return this")(),d=!iK(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),yK=Function.prototype.call,mK=yK.bind?yK.bind(yK):function(){return yK.apply(yK,arguments)},vD={}.propertyIsEnumerable,bK=Object.getOwnPropertyDescriptor,wK={f:bK&&!vD.call({1:2},1)?function(e){e=bK(this,e);return!!e&&e.enumerable}:vD},p=Function.prototype,e=p.bind,xK=p.call,EK=e&&e.bind(xK),DK=e?function(e){return e&&EK(xK,e)}:function(e){return e&&function(){return xK.apply(e,arguments)}},SK=DK({}.toString),CK=DK("".slice),AK=A.Object,OK=DK("".split),kK=iK(function(){return!AK("z").propertyIsEnumerable(0)})?function(e){return"String"==uK(e)?OK(e,""):AK(e)}:AK,BK=A.TypeError,FK=function(e){return"function"==typeof e},TK=function(e){return"object"==typeof e?null!==e:FK(e)},_K=DK({}.isPrototypeOf),s=cK("navigator","userAgent")||"",a=A.process,g=A.Deno,n=a&&a.versions||g&&g.version,S=n&&n.v8,PK=qJ=!(qJ=S?0<(hQ=S.split("."))[0]&&hQ[0]<4?1:+(hQ[0]+hQ[1]):qJ)&&s&&(!(hQ=s.match(/Edge\/(\d+)/))||74<=hQ[1])&&(hQ=s.match(/Chrome\/(\d+)/))?+hQ[1]:qJ,jK=!!Object.getOwnPropertySymbols&&!iK(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&PK&&PK<41}),NK=jK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,IK=A.Object,LK=NK?function(e){return"symbol"==typeof e}:function(e){var t=cK("Symbol");return FK(t)&&_K(t.prototype,IK(e))},RK=A.String,MK=function(e){try{return RK(e)}catch(e){return"Object"}},zK=A.TypeError,HK=function(e){if(FK(e))return e;throw zK(MK(e)+" is not a function")},$K=function(e,t){e=e[t];return null==e?void 0:HK(e)},VK=A.TypeError,UK=Object.defineProperty,WK=A["__core-js_shared__"]||fK("__core-js_shared__",{}),i=rK(function(e){(e.exports=function(e,t){return WK[e]||(WK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),GK=A.Object,qK=DK({}.hasOwnProperty),KK=Object.hasOwn||function(e,t){return qK(dK(e),t)},YK=0,XK=Math.random(),ZK=DK(1..toString),JK=i("wks"),QK=A.Symbol,eY=QK&&QK.for,tY=NK?QK:QK&&QK.withoutSetter||pK,nY=A.TypeError,rY=hK("toPrimitive"),oY=A.document,iY=TK(oY)&&TK(oY.createElement),aY=!d&&!iK(function(){return 7!=Object.defineProperty(vK("div"),"a",{get:function(){return 7}}).a}),uY=Object.getOwnPropertyDescriptor,sY={f:d?uY:function(e,t){if(e=lK(e),t=gK(t),aY)try{return uY(e,t)}catch(e){}if(KK(e,t))return aK(!mK(wK.f,e,t),e[t])}},lY=A.String,cY=A.TypeError,fY=function(e){if(TK(e))return e;throw cY(lY(e)+" is not an object")},dY=A.TypeError,pY=Object.defineProperty,hY={f:d?pY:function(e,t,n){if(fY(e),t=gK(t),fY(n),aY)try{return pY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw dY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},gY=d?function(e,t,n){return hY.f(e,t,aK(1,n))}:function(e,t,n){return e[t]=n,e},vY=DK(Function.toString);FK(WK.inspectSource)||(WK.inspectSource=function(e){return vY(e)});function yY(e){return IY[e]||(IY[e]=pK(e))}function mY(e,t){return(e=UY(e))<0?WY(e+t,0):GY(e,t)}function bY(e){return KY(e.length)}function wY(u){return function(e,t,n){var r,o=lK(e),i=bY(o),a=mY(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function xY(e,t){var n,r=lK(e),o=0,i=[];for(n in r)!KK(LY,n)&&KK(r,n)&&XY(i,n);for(;t.length>o;)!KK(r,n=t[o++])||~YY(i,n)||XY(i,n);return i}function EY(e,t){return(e=iX[oX(e)])==uX||e!=aX&&(FK(t)?iK(t):!!t)}function DY(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?A:s?A[a]||fK(a,{}):(A[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=lX(n,r))&&i.value:n[r],!sX(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=nX(c),d=hY.f,p=sY.f,h=0;h<f.length;h++){var g=f[h];KK(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&gY(o,"sham",!0),HY(n,r,o,e)}}function SY(){}function CY(e){if(!FK(e))return!1;try{return vX(SY,gX,e),!0}catch(e){return!1}}function AY(e,t,n){(t=gK(t))in e?hY.f(e,t,aK(0,n)):e[t]=n}var OY,kY,BY,FY,TY,_Y,PY,jY,NY=WK.inspectSource,D=A.WeakMap,u=FK(D)&&/native code/.test(NY(D)),IY=i("keys"),LY={},RY=A.TypeError,l=A.WeakMap,MY=(PY=u||WK.state?(OY=WK.state||(WK.state=new l),kY=DK(OY.get),BY=DK(OY.has),FY=DK(OY.set),TY=function(e,t){if(BY(OY,e))throw new RY("Object already initialized");return t.facade=e,FY(OY,e,t),t},_Y=function(e){return kY(OY,e)||{}},function(e){return BY(OY,e)}):(jY=yY("state"),LY[jY]=!0,TY=function(e,t){if(KK(e,jY))throw new RY("Object already initialized");return t.facade=e,gY(e,jY,t),t},_Y=function(e){return KK(e,jY)?e[jY]:{}},function(e){return KK(e,jY)}),{set:TY,get:_Y,has:PY,enforce:function(e){return PY(e)?_Y(e):TY(e,{})},getterFor:function(t){return function(e){if(TK(e)&&(e=_Y(e)).type===t)return e;throw RY("Incompatible receiver, "+t+" required")}}}),c=Function.prototype,E=d&&Object.getOwnPropertyDescriptor,f=KK(c,"name"),zY={EXISTS:f,PROPER:f&&"something"===function(){}.name,CONFIGURABLE:f&&(!d||E(c,"name").configurable)},HY=rK(function(e){var s=zY.CONFIGURABLE,t=MY.get,l=MY.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;FK(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!KK(n,"name")||s&&n.name!==r)&&gY(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==A?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:gY(e,t,n)):a?e[t]=n:fK(t,n)})(Function.prototype,"toString",function(){return FK(this)&&t(this).source||NY(this)})}),$Y=Math.ceil,VY=Math.floor,UY=function(e){e=+e;return e!=e||0==e?0:(0<e?VY:$Y)(e)},WY=Math.max,GY=Math.min,qY=Math.min,KY=function(e){return 0<e?qY(UY(e),9007199254740991):0},YY=(wY(!0),wY(!1)),XY=DK([].push),ZY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],JY=ZY.concat("length","prototype"),QY={f:Object.getOwnPropertyNames||function(e){return xY(e,JY)}},eX={f:Object.getOwnPropertySymbols},tX=DK([].concat),nX=cK("Reflect","ownKeys")||function(e){var t=QY.f(fY(e)),n=eX.f;return n?tX(t,n(e)):t},rX=/#|\.prototype\./,oX=EY.normalize=function(e){return String(e).replace(rX,".").toLowerCase()},iX=EY.data={},aX=EY.NATIVE="N",uX=EY.POLYFILL="P",sX=EY,lX=sY.f,cX=Array.isArray||function(e){return"Array"==uK(e)},fU={},v=(fU[hK("toStringTag")]="z","[object z]"===String(fU)),fX=hK("toStringTag"),dX=A.Object,pX="Arguments"==uK(function(){return arguments}()),hX=v?uK:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=dX(e),fX))?t:pX?uK(e):"Object"==(t=uK(e))&&FK(e.callee)?"Arguments":t},gX=[],vX=cK("Reflect","construct"),yX=/^\s*(?:class|function)\b/,mX=DK(yX.exec),bX=!yX.exec(SY),wX=!vX||iK(function(){var e;return CY(CY.call)||!CY(Object)||!CY(function(){e=!0})||e})?function(e){if(!FK(e))return!1;switch(hX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bX||!!mX(yX,NY(e))}:CY,xX=hK("species"),EX=DK([].slice),vD=51<=PK||!iK(function(){var e=[];return(e.constructor={})[xX]=function(){return{foo:1}},1!==e.slice(Boolean).foo}),DX=hK("species"),SX=A.Array,CX=Math.max,p=(DY({target:"Array",proto:!0,forced:!vD},{slice:function(e,t){var n,r,o,i=lK(this),a=bY(i),u=mY(e,a),s=mY(void 0===t?a:t,a);if(cX(i)&&(n=i.constructor,(n=wX(n)&&(n===SX||cX(n.prototype))||TK(n)&&null===(n=n[DX])?void 0:n)===SX||void 0===n))return EX(i,u,s);for(r=new(void 0===n?SX:n)(CX(s-u,0)),o=0;u<s;u++,o++)u in i&&AY(r,o,i[u]);return r.length=o,r}}),v?{}.toString:function(){return"[object "+hX(this)+"]"});v||HY(Object.prototype,"toString",p,{unsafe:!0});function AX(e){if("Symbol"===hX(e))throw TypeError("Cannot convert a Symbol value to a string");return TX(e)}function OX(){var e=fY(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function kX(){}function BX(e){e.write(LX("")),e.close();var t=e.parentWindow.Object;return e=null,t}var FX,TX=A.String,_X=A.RegExp,e=iK(function(){var e=_X("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),a=e||iK(function(){return!_X("a","y").sticky}),g={BROKEN_CARET:e||iK(function(){var e=_X("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:a,UNSUPPORTED_Y:e},PX=Object.keys||function(e){return xY(e,ZY)},jX=d?Object.defineProperties:function(e,t){fY(e);for(var n,r=lK(t),o=PX(t),i=o.length,a=0;a<i;)hY.f(e,n=o[a++],r[n]);return e},NX=cK("document","documentElement"),IX=yY("IE_PROTO"),LX=function(e){return"<script>"+e+"<\/script>"},RX=function(){try{FX=new ActiveXObject("htmlfile")}catch(e){}var e,t;RX="undefined"==typeof document||document.domain&&FX?BX(FX):((t=vK("iframe")).style.display="none",NX.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(LX("document.F=Object")),e.close(),e.F);for(var n=ZY.length;n--;)delete RX.prototype[ZY[n]];return RX()};LY[IX]=!0;function MX(e,t){var n,e=fY(e).constructor;if(void 0===e||null==(n=fY(e)[mZ]))return t;if(wX(e=n))return e;throw yZ(MK(e)+" is not a constructor")}function zX(o){return function(e,t){var n,e=AX(sK(e)),t=UY(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=wZ(e,t))<55296||56319<n||t+1===r||(r=wZ(e,t+1))<56320||57343<r?o?bZ(e,t):n:o?xZ(e,t,t+2):r-56320+(n-55296<<10)+65536}}function HX(e,t,n){for(var r=bY(e),o=mY(t,r),i=mY(void 0===n?r:n,r),a=DZ(SZ(i-o,0)),u=0;o<i;o++,u++)AY(a,u,e[o]);return a.length=u,a}function $X(e,t){var n=e.exec;if(FK(n))return null!==(n=mK(n,e,t))&&fY(n),n;if("RegExp"===uK(e))return mK(cZ,e,t);throw CZ("RegExp#exec called on incompatible receiver")}var VX,UX,WX,GX,qX,KX,YX,XX=Object.create||function(e,t){var n;return null!==e?(kX.prototype=fY(e),n=new kX,kX.prototype=null,n[IX]=e):n=RX(),void 0===t?n:jX(n,t)},ZX=A.RegExp,n=iK(function(){var e=ZX(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),JX=A.RegExp,S=iK(function(){var e=JX("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),QX=MY.get,eZ=i("native-string-replace",String.prototype.replace),tZ=RegExp.prototype.exec,nZ=tZ,rZ=DK("".charAt),oZ=DK("".indexOf),iZ=DK("".replace),aZ=DK("".slice),uZ=(hQ=/b*/g,mK(tZ,qJ=/a/,"a"),mK(tZ,hQ,"a"),0!==qJ.lastIndex||0!==hQ.lastIndex),sZ=g.BROKEN_CARET,lZ=void 0!==/()??/.exec("")[1],cZ=nZ=uZ||lZ||sZ||n||S?function(e){var t,n,r,o,i,a,u=this,s=QX(u),e=AX(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=mK(nZ,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=sZ&&u.sticky,f=mK(OX,u),s=u.source,d=0,p=e;if(l&&(f=iZ(f,"y",""),-1===oZ(f,"g")&&(f+="g"),p=aZ(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==rZ(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),lZ&&(t=new RegExp("^"+s+"$(?!\\s)",f)),uZ&&(n=u.lastIndex),r=mK(tZ,l?t:u,p),l?r?(r.input=aZ(r.input,d),r[0]=aZ(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:uZ&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),lZ&&r&&1<r.length&&mK(eZ,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=XX(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:nZ,D=(DY({target:"RegExp",proto:!0,forced:/./.exec!==cZ},{exec:cZ}),Function.prototype),fZ=D.apply,l=D.bind,dZ=D.call,pZ="object"==typeof Reflect&&Reflect.apply||(l?dZ.bind(fZ):function(){return dZ.apply(fZ,arguments)}),hZ=hK("species"),gZ=RegExp.prototype,vZ=hK("match"),yZ=A.TypeError,mZ=hK("species"),bZ=DK("".charAt),wZ=DK("".charCodeAt),xZ=DK("".slice),f={codeAt:zX(!1),charAt:zX(!0)},EZ=f.charAt,DZ=A.Array,SZ=Math.max,CZ=A.TypeError,AZ=g.UNSUPPORTED_Y,OZ=Math.min,kZ=[].push,BZ=DK(/./.exec),FZ=DK(kZ),TZ=DK("".slice),_Z=(VX="split",E=!!iK(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),c=AZ,KX=hK(VX),YX=!iK(function(){var e={};return e[KX]=function(){return 7},7!=""[VX](e)}),fU=YX&&!iK(function(){var e=!1,t=/a/;return(t={constructor:{}}).constructor[hZ]=function(){return t},t.flags="",t[KX]=/./[KX],t.exec=function(){return e=!0,null},t[KX](""),!e}),YX&&fU&&!E||(UX=DK(/./[KX]),WX=KX,GX=""[VX],qX="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=AX(sK(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!TK(t=e)||!(void 0!==(s=t[vZ])?s:"RegExp"==uK(t)))return mK(GX,n,e,r);for(var o,i,a,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,s+"g");(o=mK(cZ,c,n))&&!((i=c.lastIndex)>l&&(FZ(u,TZ(n,l,o.index)),1<o.length&&o.index<n.length&&pZ(kZ,u,HX(o,1)),a=o[0].length,l=i,r<=u.length));)c.lastIndex===o.index&&c.lastIndex++;return l===n.length?!a&&BZ(c,"")||FZ(u,""):FZ(u,TZ(n,l)),r<u.length?HX(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:mK(GX,this,e,t)}:GX,fU=[function(e,t){var n=sK(this),r=null==e?void 0:$K(e,WX);return r?mK(r,e,n,t):mK(qX,AX(n),e,t)},function(e,t){var n,r,o=fY(this),i=AX(e),a=(e=o,n=i,r=t,u=qX!==GX,l=DK(qX),(a=e.exec)===cZ||a===gZ.exec?YX&&!u?{done:!0,value:UX(e,n,r)}:{done:!0,value:l(n,e,r)}:{done:!1});if(a.done)return a.value;var u=MX(o,RegExp),s=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(AZ?"g":"y"),c=new u(AZ?"^(?:"+o.source+")":o,l),f=void 0===t?4294967295:t>>>0;if(0==f)return[];if(0===i.length)return null===$X(c,i)?[i]:[];for(var d,p,h=0,g=0,v=[];g<i.length;){c.lastIndex=AZ?0:g;var y,m=$X(c,AZ?TZ(i,g):i);if(null===m||(y=OZ(KY(c.lastIndex+(AZ?g:0)),i.length))===h)d=i,g=(p=g)+(s?EZ(d,p).length:1);else{if(FZ(v,TZ(i,h,g)),v.length===f)return v;for(var b=1;b<=m.length-1;b++)if(FZ(v,m[b]),v.length===f)return v;g=h=y}}return FZ(v,TZ(i,h)),v}],HY(String.prototype,VX,fU[0]),HY(gZ,KX,fU[1])),c&&gY(gZ[KX],"sham",!0),function(){return(_Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)});function PZ(e,a,u,s){return new(u=u||Promise)(function(n,t){function r(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof u?t:new u(function(e){e(t)})).then(r,o)}i((s=s.apply(e,a||[])).next())})}function jZ(r,o){var i,a,u,s={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,a&&(u=2&t[0]?a.return:t[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,t[1])).done)return u;switch(a=0,(t=u?[2&t[0],u.value]:t)[0]){case 0:case 1:u=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,a=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!((u=0<(u=s.trys).length&&u[u.length-1])||6!==t[0]&&2!==t[0])){s=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3]))s.label=t[1];else if(6===t[0]&&s.label<u[1])s.label=u[1],u=t;else{if(!(u&&s.label<u[2])){u[2]&&s.ops.pop(),s.trys.pop();continue}s.label=u[2],s.ops.push(t)}}t=o.call(r,s)}catch(e){t=[6,e],a=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}var NZ=hK("unscopables"),IZ=Array.prototype;null==IZ[NZ]&&hY.f(IZ,NZ,{configurable:!0,value:XX(null)});function LZ(e){IZ[NZ][e]=!0}function RZ(e,t,n){e&&!KK(e=n?e:e.prototype,rJ)&&nJ(e,rJ,{configurable:!0,value:t})}function MZ(){return this}function zZ(){return this}function HZ(e,t,n,r,o,i,a){function u(e){if(e===o&&h)return h;if(!fJ&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t+" Iterator",(g=n).prototype=XX(oJ,{next:aK(1,r)}),RZ(g,s,!1),XZ[s]=MZ;var s,l,c,r=t+" Iterator",f=!1,d=e.prototype,p=d[dJ]||d["@@iterator"]||o&&d[o],h=!fJ&&p||u(o),g="Array"==t&&d.entries||p;if(g&&(s=eJ(g.call(new e)))!==Object.prototype&&s.next&&(eJ(s)!==cJ&&(uJ?uJ(s,cJ):FK(s[dJ])||HY(s,dJ,zZ)),RZ(s,r,!0)),sJ&&"values"==o&&p&&"values"!==p.name&&(lJ?gY(d,"name","values"):(f=!0,h=function(){return mK(p,this)})),o)if(l={values:u("values"),keys:i?h:u("keys"),entries:u("entries")},a)for(c in l)!fJ&&!f&&c in d||HY(d,c,l[c]);else DY({target:t,proto:!0,forced:fJ||f},l);return d[dJ]!==h&&HY(d,dJ,h,{name:o}),XZ[t]=h,l}function $Z(e,t,n){for(var r in t)HY(e,r,t[r],n);return e}function VZ(e,t){return HK(e),void 0===t?e:AJ?AJ(e,t):function(){return e.apply(t,arguments)}}function UZ(e){if(null!=e)return $K(e,BJ)||$K(e,"@@iterator")||XZ[hX(e)]}function WZ(e,t,n){var r,o;fY(e);try{if(!(r=$K(e,"return"))){if("throw"===t)throw n;return}r=mK(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;fY(r)}function GZ(e,t){this.stopped=e,this.result=t}function qZ(e,t,n){function r(e){return i&&WZ(i,"normal",e),new GZ(!0,e)}function o(e){return d?(fY(e),h?g(e[0],e[1],r):g(e[0],e[1])):h?g(e,r):g(e)}var i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=VZ(t,f);if(p)i=e;else{if(!(n=UZ(e)))throw TJ(MK(e)+" is not iterable");if(void 0!==n&&(XZ.Array===n||kJ[OJ]===n)){for(a=0,u=bY(e);a<u;a++)if((s=o(e[a]))&&_K(_J,s))return;return}i=function(e,t){t=arguments.length<2?UZ(e):t;if(HK(t))return fY(mK(t,e));throw FJ(MK(e)+" is not iterable")}(e,n)}for(l=i.next;!(c=mK(l,i)).done;){try{s=o(c.value)}catch(e){WZ(i,"throw",e)}if("object"==typeof s&&s&&_K(_J,s))return}}function KZ(e,t){if(!_K(t,e))throw PJ("Incorrect invocation")}var YZ,XZ={},vD=!iK(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ZZ=yY("IE_PROTO"),JZ=A.Object,QZ=JZ.prototype,eJ=vD?JZ.getPrototypeOf:function(e){var t,e=dK(e);return KK(e,ZZ)?e[ZZ]:(t=e.constructor,FK(t)&&e instanceof t?t.prototype:e instanceof JZ?QZ:null)},tJ=hK("iterator"),v=!1,e=([].keys&&("next"in(p=[].keys())?(a=eJ(eJ(p)))!==Object.prototype&&(YZ=a):v=!0),null!=YZ&&!iK(function(){var e={};return YZ[tJ].call(e)!==e})||(YZ={}),FK(YZ[tJ])||HY(YZ,tJ,function(){return this}),{IteratorPrototype:YZ,BUGGY_SAFARI_ITERATORS:v}),nJ=hY.f,rJ=hK("toStringTag"),oJ=e.IteratorPrototype,iJ=A.String,aJ=A.TypeError,uJ=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=DK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(r){}return function(e,t){fY(e);var n=t;if("object"==typeof n||FK(n))return o?r(e,t):e.__proto__=t,e;throw aJ("Can't set "+iJ(n)+" as a prototype")}}():void 0),sJ=zY.PROPER,lJ=zY.CONFIGURABLE,cJ=e.IteratorPrototype,fJ=e.BUGGY_SAFARI_ITERATORS,dJ=hK("iterator"),pJ=MY.set,hJ=MY.getterFor("Array Iterator"),gJ=HZ(Array,"Array",function(e,t){pJ(this,{type:"Array Iterator",target:lK(e),index:0,kind:t})},function(){var e=hJ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),vJ=(XZ.Arguments=XZ.Array,LZ("keys"),LZ("values"),LZ("entries"),f.charAt),yJ=MY.set,mJ=MY.getterFor("String Iterator"),bJ=(HZ(String,"String",function(e){yJ(this,{type:"String Iterator",string:AX(e),index:0})},function(){var e=mJ(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(t=vJ(t,n),e.index+=t.length,{value:t,done:!1})}),QY.f),wJ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xJ={f:function(e){if(!wJ||"Window"!=uK(e))return bJ(lK(e));var t=e;try{return bJ(t)}catch(t){return HX(wJ)}}},EJ=iK(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})}),DJ=Object.isExtensible,SJ=iK(function(){DJ(1)})||EJ?function(e){return!!TK(e)&&(!EJ||"ArrayBuffer"!=uK(e))&&(!DJ||DJ(e))}:DJ,CJ=!iK(function(){return Object.isExtensible(Object.preventExtensions({}))}),i=rK(function(e){function n(e){t(e,a,{value:{objectID:"O"+o++,weakData:{}}})}var t=hY.f,r=!1,a=pK("meta"),o=0,u=e.exports={enable:function(){u.enable=function(){},r=!0;var o=QY.f,i=DK([].splice),e={};e[a]=1,o(e).length&&(QY.f=function(e){for(var t=o(e),n=0,r=t.length;n<r;n++)if(t[n]===a){i(t,n,1);break}return t},DY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:xJ.f}))},fastKey:function(e,t){if(!TK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!KK(e,a)){if(!SJ(e))return"F";if(!t)return"E";n(e)}return e[a].objectID},getWeakData:function(e,t){if(!KK(e,a)){if(!SJ(e))return!0;if(!t)return!1;n(e)}return e[a].weakData},onFreeze:function(e){return CJ&&r&&SJ(e)&&!KK(e,a)&&n(e),e}};LY[a]=!0}),AJ=DK(DK.bind),OJ=hK("iterator"),kJ=Array.prototype,BJ=hK("iterator"),FJ=A.TypeError,TJ=A.TypeError,_J=GZ.prototype,PJ=A.TypeError,jJ=hK("iterator"),NJ=!1;try{var IJ=0,LJ={next:function(){return{done:!!IJ++}},return:function(){NJ=!0}};LJ[jJ]=function(){return this},Array.from(LJ,function(){throw 2})}catch(Fs){}function RJ(e,t){if(!t&&!NJ)return!1;var n=!1;try{var r={};r[jJ]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}function MJ(e,t){return new(void 0===(n=cX(e=e)&&(n=e.constructor,wX(n)&&(n===WJ||cX(n.prototype))||TK(n)&&null===(n=n[UJ]))?void 0:n)?WJ:n)(0===t?0:t);var n}function zJ(d){var p=1==d,h=2==d,g=3==d,v=4==d,y=6==d,m=7==d,b=5==d||y;return function(e,t,n,r){for(var o,i,a=dK(e),u=kK(a),s=VZ(t,n),l=bY(u),c=0,t=r||MJ,f=p?t(e,l):h||m?t(e,0):void 0;c<l;c++)if((b||c in u)&&(i=s(o=u[c],c,a),d))if(p)f[c]=i;else if(i)switch(d){case 3:return!0;case 5:return o;case 6:return c;case 2:GJ(f,o)}else switch(d){case 4:return!1;case 7:GJ(f,o)}return y?-1:g||v?v:f}}function HJ(e){return e.frozen||(e.frozen=new $J)}function $J(){this.entries=[]}function VJ(e,t){return ZJ(e.entries,function(e){return e[0]===t})}var UJ=hK("species"),WJ=A.Array,GJ=DK([].push),qJ={forEach:zJ(0),map:zJ(1),filter:zJ(2),some:zJ(3),every:zJ(4),find:zJ(5),findIndex:zJ(6),filterReject:zJ(7)},KJ=i.getWeakData,YJ=MY.set,XJ=MY.getterFor,ZJ=qJ.find,JJ=qJ.findIndex,QJ=DK([].splice),eQ=0;$J.prototype={get:function(e){e=VJ(this,e);if(e)return e[1]},has:function(e){return!!VJ(this,e)},set:function(e,t){var n=VJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(t){var e=JJ(this.entries,function(e){return e[0]===t});return~e&&QJ(this.entries,e,1),!!~e}};function tQ(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}var nQ,rQ,oQ,iQ,aQ,uQ,sQ,lQ,cQ,fQ,dQ,pQ,hQ={getConstructor:function(e,n,r,o){function i(e,t,n){var r=u(e),o=KJ(fY(t),!0);return!0===o?HJ(r).set(t,n):o[r.id]=n,e}var e=e(function(e,t){KZ(e,a),YJ(e,{type:n,id:eQ++,frozen:void 0}),null!=t&&qZ(t,e[o],{that:e,AS_ENTRIES:r})}),a=e.prototype,u=XJ(n);return $Z(a,{delete:function(e){var t,n=u(this);return!!TK(e)&&(!0===(t=KJ(e))?HJ(n).delete(e):t&&KK(t,n.id)&&delete t[n.id])},has:function(e){var t,n=u(this);return!!TK(e)&&(!0===(t=KJ(e))?HJ(n).has(e):t&&KK(t,n.id))}}),$Z(a,r?{get:function(e){var t,n=u(this);if(TK(e))return!0===(t=KJ(e))?HJ(n).get(e):t?t[n.id]:void 0},set:function(e,t){return i(this,e,t)}}:{add:function(e){return i(this,e,!0)}}),e}},gQ=MY.enforce,n=!A.ActiveXObject&&"ActiveXObject"in A,a=(S=tQ,D=hQ,oQ=-1!==(l="WeakMap").indexOf("Map"),iQ=-1!==l.indexOf("Weak"),aQ=oQ?"set":"add",uQ=A[l],sQ=uQ&&uQ.prototype,g={},sX(l,!FK(lQ=uQ)||!(iQ||sQ.forEach&&!iK(function(){(new uQ).entries().next()})))?(lQ=D.getConstructor(S,l,oQ,aQ),i.enable()):sX(l,!0)&&(E=(rQ=new lQ)[aQ](iQ?{}:-0,1)!=rQ,c=iK(function(){rQ.has(1)}),vD=RJ(function(e){new uQ(e)}),p=!iQ&&iK(function(){for(var e=new uQ,t=5;t--;)e[aQ](t,t);return!e.has(-0)}),vD||(((lQ=S(function(e,t){KZ(e,sQ);n=new uQ,r=lQ,uJ&&FK(e=e.constructor)&&e!==r&&TK(e=e.prototype)&&e!==r.prototype&&uJ(n,e);var n,r=n;return null!=t&&qZ(t,r[aQ],{that:r,AS_ENTRIES:oQ}),r})).prototype=sQ).constructor=lQ),(c||p)&&(vQ("delete"),vQ("has"),oQ)&&vQ("get"),(p||E)&&vQ(aQ),iQ)&&sQ.clear&&delete sQ.clear,DY({global:!0,forced:(g[l]=lQ)!=uQ},g),RZ(lQ,l),iQ||D.setStrong(lQ,l,oQ),lQ);function vQ(e){var n=DK(sQ[e]);HY(sQ,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(iQ&&!TK(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return iQ&&!TK(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(iQ&&!TK(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})}u&&n&&(nQ=hQ.getConstructor(tQ,"WeakMap",!0),i.enable(),v=a.prototype,cQ=DK(v.delete),fQ=DK(v.has),dQ=DK(v.get),pQ=DK(v.set),$Z(v,{delete:function(e){var t;return TK(e)&&!SJ(e)?((t=gQ(this)).frozen||(t.frozen=new nQ),cQ(this,e)||t.frozen.delete(e)):cQ(this,e)},has:function(e){var t;return TK(e)&&!SJ(e)?((t=gQ(this)).frozen||(t.frozen=new nQ),fQ(this,e)||t.frozen.has(e)):fQ(this,e)},get:function(e){var t;return!TK(e)||SJ(e)||((t=gQ(this)).frozen||(t.frozen=new nQ),fQ(this,e))?dQ(this,e):t.frozen.get(e)},set:function(e,t){var n;return!TK(e)||SJ(e)||((n=gQ(this)).frozen||(n.frozen=new nQ),fQ(this,e))?pQ(this,e,t):n.frozen.set(e,t),this}}));function yQ(e,t){if(e){if(e[wQ]!==EQ)try{gY(e,wQ,EQ)}catch(t){e[wQ]=EQ}if(e[xQ]||gY(e,xQ,t),bQ[t])for(var n in gJ)if(e[n]!==gJ[n])try{gY(e,n,gJ[n])}catch(t){e[n]=gJ[n]}}}var mQ,bQ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},e=vK("span").classList,f=e&&e.constructor&&e.constructor.prototype,LJ=f===Object.prototype?void 0:f,wQ=hK("iterator"),xQ=hK("toStringTag"),EQ=gJ.values;for(mQ in bQ)yQ(A[mQ]&&A[mQ].prototype,mQ);yQ(LJ,"DOMTokenList");function DQ(e,t){var n=[][e];return!!n&&iK(function(){n.call(null,t||function(){throw 1},1)})}function SQ(t){if(t&&t.forEach!==OQ)try{gY(t,"forEach",OQ)}catch(e){t.forEach=OQ}}var CQ,AQ=qJ.forEach,OQ=DQ("forEach")?[].forEach:function(e){return AQ(this,e,1<arguments.length?arguments[1]:void 0)};for(CQ in bQ)bQ[CQ]&&SQ(A[CQ]&&A[CQ].prototype);SQ(LJ);var kQ,BQ,S=A.Promise,c=hK("species"),p=/(?:ipad|iphone|ipod).*applewebkit/i.test(s),FQ="process"==uK(A.process),E=A.setImmediate,g=A.clearImmediate,TQ=A.process,_Q=A.Dispatch,PQ=A.Function,D=A.MessageChannel,jQ=A.String,NQ=0,IQ={};try{kQ=A.location}catch(Fs){}function LQ(e){return function(){zQ(e)}}function RQ(e){zQ(e.data)}function MQ(e){A.postMessage(jQ(e),kQ.protocol+"//"+kQ.host)}var zQ=function(e){var t;KK(IQ,e)&&(t=IQ[e],delete IQ[e],t())};E&&g||(E=function(e){var t=EX(arguments,1);return IQ[++NQ]=function(){pZ(FK(e)?e:PQ(e),void 0,t)},BQ(NQ),NQ},g=function(e){delete IQ[e]},FQ?BQ=function(e){TQ.nextTick(LQ(e))}:_Q&&_Q.now?BQ=function(e){_Q.now(LQ(e))}:D&&!p?(u=(l=new D).port2,l.port1.onmessage=RQ,BQ=VZ(u.postMessage,u)):A.addEventListener&&FK(A.postMessage)&&!A.importScripts&&kQ&&"file:"!==kQ.protocol&&!iK(MQ)?(BQ=MQ,A.addEventListener("message",RQ,!1)):BQ="onreadystatechange"in vK("script")?function(e){NX.appendChild(vK("script")).onreadystatechange=function(){NX.removeChild(this),zQ(e)}}:function(e){setTimeout(LQ(e),0)});var HQ,$Q,VQ,UQ,WQ,GQ,qQ,n={set:E,clear:g},hQ=/ipad|iphone|ipod/i.test(s)&&void 0!==A.Pebble,i=/web0s(?!.*chrome)/i.test(s),a=sY.f,KQ=n.set,v=A.MutationObserver||A.WebKitMutationObserver,e=A.document,YQ=A.process,f=A.Promise,qJ=a(A,"queueMicrotask"),LJ=qJ&&qJ.value;LJ||(HQ=function(){var e,t;for(FQ&&(e=YQ.domain)&&e.exit();$Q;){t=$Q.fn,$Q=$Q.next;try{t()}catch(e){throw $Q?UQ():VQ=void 0,e}}VQ=void 0,e&&e.enter()},UQ=p||FQ||i||!v||!e?!hQ&&f&&f.resolve?((D=f.resolve(void 0)).constructor=f,qQ=VZ(D.then,D),function(){qQ(HQ)}):FQ?function(){YQ.nextTick(HQ)}:(KQ=VZ(KQ,A),function(){KQ(HQ)}):(WQ=!0,GQ=e.createTextNode(""),new v(HQ).observe(GQ,{characterData:!0}),function(){GQ.data=WQ=!WQ}));function XQ(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=HK(n),this.reject=HK(r)}var ZQ,JQ,QQ,eee,tee=LJ||function(e){e={fn:e,next:void 0};VQ&&(VQ.next=e),$Q||($Q=e,UQ()),VQ=e},nee={f:function(e){return new XQ(e)}},ree=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},oee="object"==typeof window,iee=n.set,aee=hK("species"),uee="Promise",see=MY.getterFor(uee),lee=MY.set,cee=MY.getterFor(uee),l=S&&S.prototype,fee=S,dee=l,pee=A.TypeError,hee=A.document,gee=A.process,vee=nee.f,yee=vee,mee=!!(hee&&hee.createEvent&&A.dispatchEvent),bee=FK(A.PromiseRejectionEvent),wee=!1,u=sX(uee,function(){var e,t=NY(fee),n=t!==String(fee);return!n&&66===PK||!(51<=PK&&/native code/.test(t))&&(t=function(e){e(function(){},function(){})},((e=new fee(function(e){e(1)})).constructor={})[aee]=t,!(wee=e.then(function(){})instanceof t)||!n&&oee&&!bee)}),E=u||!RJ(function(e){fee.all(e).catch(function(){})}),xee=function(e){var t;return!(!TK(e)||!FK(t=e.then))&&t},Eee=function(d,p){var h;d.notified||(d.notified=!0,h=d.reactions,tee(function(){for(var r,e=d.value,t=1==d.state,n=0;h.length>n;){var o,i,a,u=h[n++],s=t?u.ok:u.fail,l=u.resolve,c=u.reject,f=u.domain;try{s?(t||(2===d.rejection&&function(t){mK(iee,A,function(){var e=t.facade;FQ?gee.emit("rejectionHandled",e):Dee("rejectionhandled",e,t.value)})}(d),d.rejection=1),!0===s?o=e:(f&&f.enter(),o=s(e),f&&(f.exit(),a=!0)),o===u.promise?c(pee("Promise-chain cycle")):(i=xee(o))?mK(i,o,l,c):l(o)):c(e)}catch(e){f&&!a&&f.exit(),c(e)}}d.reactions=[],d.notified=!1,p&&!d.rejection&&(r=d,mK(iee,A,function(){var e,t=r.facade,n=r.value;if(See(r)&&(e=ree(function(){FQ?gee.emit("unhandledRejection",n,t):Dee("unhandledrejection",t,n)}),r.rejection=FQ||See(r)?2:1,e.error))throw e.value}))}))},Dee=function(e,t,n){var r;mee?((r=hee.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),A.dispatchEvent(r)):r={promise:t,reason:n},!bee&&(t=A["on"+e])?t(r):"unhandledrejection"===e&&function(e,t){var n=A.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},See=function(e){return 1!==e.rejection&&!e.parent},Cee=function(t,n,r){return function(e){t(n,e,r)}},Aee=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=2,Eee(e,!0))},Oee=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw pee("Promise can't be resolved itself");var r=xee(e);r?tee(function(){var t={done:!1};try{mK(r,e,Cee(Oee,t,n),Cee(Aee,t,n))}catch(e){Aee(t,e,n)}}):(n.value=e,n.state=1,Eee(n,!1))}catch(e){Aee({done:!1},e,n)}}};if(u&&(dee=(fee=function(e){KZ(this,dee),HK(e),mK(ZQ,this);var t=see(this);try{e(Cee(Oee,t),Cee(Aee,t))}catch(e){Aee(t,e)}}).prototype,(ZQ=function(e){lee(this,{type:uee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=$Z(dee,{then:function(e,t){var n=cee(this),r=n.reactions,o=vee(MX(this,fee));return o.ok=!FK(e)||e,o.fail=FK(t)&&t,o.domain=FQ?gee.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Eee(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),JQ=function(){var e=new ZQ,t=see(e);this.promise=e,this.resolve=Cee(Oee,t),this.reject=Cee(Aee,t)},nee.f=vee=function(e){return e===fee||e===QQ?new JQ:yee(e)},FK(S))&&l!==Object.prototype){eee=l.then,wee||(HY(l,"then",function(e,t){var n=this;return new fee(function(e,t){mK(eee,n,e,t)}).then(e,t)},{unsafe:!0}),HY(l,"catch",dee.catch,{unsafe:!0}));try{delete l.constructor}catch(Fs){}uJ&&uJ(l,dee)}DY({global:!0,wrap:!0,forced:u},{Promise:fee}),RZ(fee,uee,!1),g=cK("Promise"),s=hY.f,d&&g&&!g[c]&&s(g,c,{configurable:!0,get:function(){return this}}),QQ=cK(uee),DY({target:uee,stat:!0,forced:u},{reject:function(e){var t=vee(this);return mK(t.reject,void 0,e),t.promise}}),DY({target:uee,stat:!0,forced:u},{resolve:function(e){return e=e,fY(t=this),TK(e)&&e.constructor===t?e:((0,(t=nee.f(t)).resolve)(e),t.promise);var t}}),DY({target:uee,stat:!0,forced:E},{all:function(e){var u=this,t=vee(u),s=t.resolve,l=t.reject,n=ree(function(){var r=HK(u.resolve),o=[],i=0,a=1;qZ(e,function(e){var t=i++,n=!1;a++,mK(r,u,e).then(function(e){n||(n=!0,o[t]=e,--a)||s(o)},l)}),--a||s(o)});return n.error&&l(n.value),t.promise},race:function(e){var n=this,r=vee(n),o=r.reject,t=ree(function(){var t=HK(n.resolve);qZ(e,function(e){mK(t,n,e).then(r.resolve,o)})});return t.error&&o(t.value),r.promise}});var a=zY.PROPER,kee=RegExp.prototype,Bee=kee.toString,Fee=DK(OX),qJ=iK(function(){return"/a/b"!=Bee.call({source:"a",flags:"b"})}),p=a&&"toString"!=Bee.name,i=((qJ||p)&&HY(RegExp.prototype,"toString",function(){var e=fY(this),t=AX(e.source),n=e.flags;return"/"+t+"/"+AX(void 0!==n||!_K(kee,e)||"flags"in kee?n:Fee(e))},{unsafe:!0}),zY.EXISTS),hQ=hY.f,f=Function.prototype,Tee=DK(f.toString),_ee=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Pee=DK(_ee.exec),jee=(d&&!i&&hQ(f,"name",{configurable:!0,get:function(){try{return Pee(_ee,Tee(this))[1]}catch(e){return""}}}),new WeakMap);function Nee(e){return e.getMenuConfig("uploadImage")}function Iee(p,h){return PZ(this,void 0,void 0,function(){var l,c,f,d;return jZ(this,function(e){switch(e.label){case 0:return i=p,null==(o=jee.get(i))&&(t=Nee(i),a=t.onSuccess,n=t.onProgress,u=t.onFailed,s=t.customInsert,r=t.onError,o=E3(_Z(_Z({},t),{onProgress:function(e){i.showProgressBar(e),n&&n(e)},onSuccess:function(e,t){var n,r,o;(s?(s(t,function(e,t,n){return l9(i,e,t,n)}),a):(n=t.errno,o=void 0===(o=t.data)?{}:o,0===(void 0===n?1:n)?(Array.isArray(o)?o.forEach(function(e){var t=e.url,n=e.alt,e=e.href;l9(i,void 0===t?"":t,void 0===n?"":n,void 0===e?"":e)}):(n=o.url,r=o.alt,o=o.href,l9(i,void 0===n?"":n,void 0===r?"":r,void 0===o?"":o)),a):u))(e,t)},onError:function(e,t,n){r(e,t,n)}})),jee.set(i,o)),l=o,c=h.name,f=h.type,d=h.size,l.addFile({name:c,type:f,size:d,data:h}),[4,l.upload()];case 1:return e.sent(),[2]}var i,t,a,n,u,s,r,o})})}function Lee(s,l){var c,f;PZ(this,void 0,void 0,function(){var t,n,r,o,i,a,u;return jZ(this,function(e){switch(e.label){case 0:if(null==l)return[2];t=Array.prototype.slice.call(l),r=Nee(s),n=r.customUpload,r=r.base64LimitSize,e.label=1;case 1:e.trys.push([1,11,12,17]),o=function(a){var e,t;if(Symbol.asyncIterator)return(t=a[Symbol.asyncIterator])?t.call(a):(a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);throw new TypeError("Symbol.asyncIterator is not defined.");function n(i){e[i]=a[i]&&function(o){return new Promise(function(e,t){var n,r;n=e,e=t,r=(o=a[i](o)).done,t=o.value,Promise.resolve(t).then(function(e){n({value:e,done:r})},e)})}}}(t),e.label=2;case 2:return[4,o.next()];case 3:return(i=e.sent()).done?[3,10]:(a=i.value,u=a.size,r&&u<=r?[4,function(o,i){return PZ(this,void 0,void 0,function(){return jZ(this,function(e){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(i),r.onload=function(){var e,t=r.result;t&&(e=0===(t=t.toString()).indexOf("data:image")?"":t,l9(o,t,i.name,e),n("ok"))}})]})})}(s,a)]:[3,5]);case 4:return e.sent(),[3,9];case 5:return n?[4,n(a,function(e,t,n){return l9(s,e,t,n)})]:[3,7];case 6:return e.sent(),[3,9];case 7:return[4,Iee(s,a)];case 8:e.sent(),e.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return u=e.sent(),c={error:u},[3,17];case 12:return e.trys.push([12,,15,16]),i&&!i.done&&(f=o.return)?[4,f.call(o)]:[3,14];case 13:e.sent(),e.label=14;case 14:return[3,16];case 15:if(c)throw c.error;return[7];case 16:return[7];case 17:return[2]}})})}var Ree=DK([].join),D=kK!=Object,e=DQ("join",","),Mee=(DY({target:"Array",proto:!0,forced:D||!e},{join:function(e){return Ree(lK(this),void 0===e?",":e)}}),N.fn.append=nd,N.fn.on=Vf,N.fn.remove=sd,N.fn.val=$f,r&&(N.fn.click=r),N.fn.hide=Kf,zee.prototype.getValue=function(e){return""},zee.prototype.isActive=function(e){return!1},zee.prototype.isDisabled=c9,zee.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},zee.prototype.exec=function(r,e){var t,n=this.getMenuConfig(r),o=n.allowedFileTypes,o=void 0===o?[]:o,n=n.customBrowseAndUpload;n?n(function(e,t,n){return l9(r,e,t,n)}):(n="",0<o.length&&(n='accept="'+o.join(", ")+'"'),o=N("body"),(t=N('<input type="file" '+n+" multiple/>")).hide(),o.append(t),t.click(),t.on("change",function(){var e=t[0].files;Lee(r,e)}))},zee),v={menus:[{key:"uploadImage",factory:function(){return new Mee},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(n){var r=n.insertData,o=n;return o.insertData=function(e){var t;!c9(o)&&!e.getData("text/plain")&&!((t=e.files).length<=0)&&Array.prototype.slice.call(t).some(function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]})?Lee(n,t):r(e)},o}};function zee(){this.title=w("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}g6("en",{highLightModule:{selectLang:"Language"}}),g6("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Hee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function $ee(e){var t={exports:{}};return e(t,t.exports),t.exports}function Vee(e){return e&&e.Math==Math&&e}function Uee(t,n){try{nte(tte,t,{value:n,configurable:!0,writable:!0})}catch(e){tte[t]=n}return n}function Wee(e){if(null==e)throw ute("Can't call method on "+e);return e}function Gee(e){return ste(Wee(e))}function qee(e){return"Symbol("+(void 0===e?"":e)+")_"+pte(++fte+dte,36)}function Kee(e,t){return arguments.length<2?(n=tte[e],hte(n)?n:void 0):tte[e]&&tte[e][t];var n}function Yee(e){try{return!!e()}catch(e){return!0}}function Xee(e){var t;return cte(mte,e)&&(vte||"string"==typeof mte[e])||(t="Symbol."+e,vte&&cte(bte,e)?mte[e]=bte[e]:mte[e]=(yte&&wte?wte:xte)(t)),mte[e]}function Zee(e){return Cte?Ste.createElement(e):{}}function Jee(e,t){return null==(e=e[t])?void 0:Rte(e)}function Qee(e){return e=function(e,t){if(!Dte(e)||jte(e))return e;var n,r,o=Jee(e,Hte);if(o){if(o=Tte(o,e,t=void 0===t?"default":t),!Dte(o)||jte(o))return o;throw zte("Can't convert object to primitive value")}o=e,e=t=void 0===t?"number":t;if("string"===e&&hte(n=o.toString)&&!Dte(r=Tte(n,o)))return r;if(hte(n=o.valueOf)&&!Dte(r=Tte(n,o)))return r;if("string"!==e&&hte(n=o.toString)&&!Dte(r=Tte(n,o)))return r;throw Mte("Can't convert object to primitive value")}(e,"string"),jte(e)?e:e+""}function ete(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}var tte=Vee("object"==typeof globalThis&&globalThis)||Vee("object"==typeof window&&window)||Vee("object"==typeof self&&self)||Vee("object"==typeof Hee&&Hee)||function(){return this}()||Function("return this")(),nte=Object.defineProperty,rte=tte["__core-js_shared__"]||Uee("__core-js_shared__",{}),LJ=$ee(function(e){(e.exports=function(e,t){return rte[e]||(rte[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),n=Function.prototype,S=n.bind,ote=n.call,ite=S&&S.bind(ote),ate=S?function(e){return e&&ite(ote,e)}:function(e){return e&&function(){return ote.apply(e,arguments)}},ute=tte.TypeError,ste=tte.Object,lte=ate({}.hasOwnProperty),cte=Object.hasOwn||function(e,t){return lte(Gee(e),t)},fte=0,dte=Math.random(),pte=ate(1..toString),hte=function(e){return"function"==typeof e},l=Kee("navigator","userAgent")||"",s=tte.process,g=tte.Deno,c=s&&s.versions||g&&g.version,u=c&&c.v8,gte=Vre=!(Vre=u?0<(cre=u.split("."))[0]&&cre[0]<4?1:+(cre[0]+cre[1]):Vre)&&l&&(!(cre=l.match(/Edge\/(\d+)/))||74<=cre[1])&&(cre=l.match(/Chrome\/(\d+)/))?+cre[1]:Vre,vte=!!Object.getOwnPropertySymbols&&!Yee(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gte&&gte<41}),yte=vte&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mte=LJ("wks"),bte=tte.Symbol,wte=bte&&bte.for,xte=yte?bte:bte&&bte.withoutSetter||qee,E={},a=(E[Xee("toStringTag")]="z","[object z]"===String(E)),Ete=!Yee(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),Dte=function(e){return"object"==typeof e?null!==e:hte(e)},Ste=tte.document,Cte=Dte(Ste)&&Dte(Ste.createElement),Ate=!Ete&&!Yee(function(){return 7!=Object.defineProperty(Zee("div"),"a",{get:function(){return 7}}).a}),Ote=tte.String,kte=tte.TypeError,Bte=function(e){if(Dte(e))return e;throw kte(Ote(e)+" is not an object")},Fte=Function.prototype.call,Tte=Fte.bind?Fte.bind(Fte):function(){return Fte.apply(Fte,arguments)},_te=ate({}.isPrototypeOf),Pte=tte.Object,jte=yte?function(e){return"symbol"==typeof e}:function(e){var t=Kee("Symbol");return hte(t)&&_te(t.prototype,Pte(e))},Nte=tte.String,Ite=function(e){try{return Nte(e)}catch(e){return"Object"}},Lte=tte.TypeError,Rte=function(e){if(hte(e))return e;throw Lte(Ite(e)+" is not a function")},Mte=tte.TypeError,zte=tte.TypeError,Hte=Xee("toPrimitive"),$te=tte.TypeError,Vte=Object.defineProperty,Ute={f:Ete?Vte:function(e,t,n){if(Bte(e),t=Qee(t),Bte(n),Ate)try{return Vte(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $te("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wte=Ete?function(e,t,n){return Ute.f(e,t,ete(1,n))}:function(e,t,n){return e[t]=n,e},Gte=ate(Function.toString);hte(rte.inspectSource)||(rte.inspectSource=function(e){return Gte(e)});function qte(e){return one[e]||(one[e]=qee(e))}function Kte(e){return fne(cne(e),8,-1)}var Yte,Xte,Zte,Jte,Qte,ene,tne,nne,rne=rte.inspectSource,qJ=tte.WeakMap,p=hte(qJ)&&/native code/.test(rne(qJ)),one=LJ("keys"),ine={},ane=tte.TypeError,d=tte.WeakMap,une=(tne=p||rte.state?(Yte=rte.state||(rte.state=new d),Xte=ate(Yte.get),Zte=ate(Yte.has),Jte=ate(Yte.set),Qte=function(e,t){if(Zte(Yte,e))throw new ane("Object already initialized");return t.facade=e,Jte(Yte,e,t),t},ene=function(e){return Xte(Yte,e)||{}},function(e){return Zte(Yte,e)}):(nne=qte("state"),ine[nne]=!0,Qte=function(e,t){if(cte(e,nne))throw new ane("Object already initialized");return t.facade=e,Wte(e,nne,t),t},ene=function(e){return cte(e,nne)?e[nne]:{}},function(e){return cte(e,nne)}),{set:Qte,get:ene,has:tne,enforce:function(e){return tne(e)?ene(e):Qte(e,{})},getterFor:function(t){return function(e){if(Dte(e)&&(e=ene(e)).type===t)return e;throw ane("Incompatible receiver, "+t+" required")}}}),i=Function.prototype,hQ=Ete&&Object.getOwnPropertyDescriptor,f=cte(i,"name"),sne={EXISTS:f,PROPER:f&&"something"===function(){}.name,CONFIGURABLE:f&&(!Ete||hQ(i,"name").configurable)},lne=$ee(function(e){var s=sne.CONFIGURABLE,t=une.get,l=une.enforce,c=String(String).split("String");(e.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,u=!!r&&!!r.noTargetGet,r=r&&void 0!==r.name?r.name:t;hte(n)&&("Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cte(n,"name")||s&&n.name!==r)&&Wte(n,"name",r),(o=l(n)).source||(o.source=c.join("string"==typeof r?r:""))),e!==tte?(i?!u&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Wte(e,t,n)):a?e[t]=n:Uee(t,n)})(Function.prototype,"toString",function(){return hte(this)&&t(this).source||rne(this)})}),cne=ate({}.toString),fne=ate("".slice),dne=Xee("toStringTag"),pne=tte.Object,hne="Arguments"==Kte(function(){return arguments}()),gne=a?Kte:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=pne(e),dne))?t:hne?Kte(e):"Object"==(t=Kte(e))&&hte(e.callee)?"Arguments":t};a||lne(Object.prototype,"toString",a?{}.toString:function(){return"[object "+gne(this)+"]"},{unsafe:!0});function vne(e){return Pne(e.length)}function yne(){}function mne(e){if(!hte(e))return!1;try{return Ine(yne,Nne,e),!0}catch(e){return!1}}function bne(e,t){return new(void 0===(n=jne(e=e)&&(n=e.constructor,zne(n)&&(n===$ne||jne(n.prototype))||Dte(n)&&null===(n=n[Hne]))?void 0:n)?$ne:n)(0===t?0:t);var n}function wne(h){var g=1==h,v=2==h,y=3==h,m=4==h,b=6==h,w=7==h,x=5==h||b;return function(e,t,n,r){for(var o,i,a,u,s=Gee(e),l=kne(s),c=(u=n,Rte(a=t),void 0===u?a:Cne?Cne(a,u):function(){return a.apply(u,arguments)}),f=vne(l),d=0,n=r||bne,p=g?n(e,f):v||w?n(e,0):void 0;d<f;d++)if((x||d in l)&&(i=c(o=l[d],d,s),h))if(g)p[d]=i;else if(i)switch(h){case 3:return!0;case 5:return o;case 6:return d;case 2:Vne(p,o)}else switch(h){case 4:return!1;case 7:Vne(p,o)}return b?-1:y||m?m:p}}function xne(t){if(t&&t.forEach!==Wne)try{Wte(t,"forEach",Wne)}catch(e){t.forEach=Wne}}var Ene,Dne,Sne={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},D=Zee("span").classList,e=D&&D.constructor&&D.constructor.prototype,r=e===Object.prototype?void 0:e,Cne=ate(ate.bind),Ane=tte.Object,One=ate("".split),kne=Yee(function(){return!Ane("z").propertyIsEnumerable(0)})?function(e){return"String"==Kte(e)?One(e,""):Ane(e)}:Ane,Bne=Math.ceil,Fne=Math.floor,Tne=function(e){e=+e;return e!=e||0==e?0:(0<e?Fne:Bne)(e)},_ne=Math.min,Pne=function(e){return 0<e?_ne(Tne(e),9007199254740991):0},jne=Array.isArray||function(e){return"Array"==Kte(e)},Nne=[],Ine=Kee("Reflect","construct"),Lne=/^\s*(?:class|function)\b/,Rne=ate(Lne.exec),Mne=!Lne.exec(yne),zne=!Ine||Yee(function(){var e;return mne(mne.call)||!mne(Object)||!mne(function(){e=!0})||e})?function(e){if(!hte(e))return!1;switch(gne(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mne||!!Rne(Lne,rne(e))}:mne,Hne=Xee("species"),$ne=tte.Array,Vne=ate([].push),Une=[wne(0),wne(1),wne(2),wne(3),wne(4),wne(5),wne(6),wne(7)][0],Wne=(Ene=[].forEach)&&Yee(function(){Ene.call(null,function(){throw 1},1)})?[].forEach:function(e){return Une(this,e,1<arguments.length?arguments[1]:void 0)};for(Dne in Sne)Sne[Dne]&&xne(tte[Dne]&&tte[Dne].prototype);xne(r);function Gne(e){return kne(Wee(e))}function qne(e,t){return(e=Tne(e))<0?wre(e+t,0):xre(e,t)}function Kne(u){return function(e,t,n){var r,o=Gne(e),i=vne(o),a=qne(n,i);if(u&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===t)return u||a||0;return!u&&-1}}function Yne(e,t){var n,r=Gne(e),o=0,i=[];for(n in r)!cte(ine,n)&&cte(r,n)&&Dre(i,n);for(;t.length>o;)!cte(r,n=t[o++])||~Ere(i,n)||Dre(i,n);return i}function Xne(e,t){return(e=_re[Tre(e)])==jre||e!=Pre&&(hte(t)?Yee(t):!!t)}function Zne(e,t){var n,r,o,i,a=e.target,u=e.global,s=e.stat;if(n=u?tte:s?tte[a]||Uee(a,{}):(tte[a]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(i=Ire(n,r))&&i.value:n[r],!Nre(u?r:a+(s?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;g=h=p=d=f=void 0;for(var l=o,c=i,f=Bre(c),d=Ute.f,p=bre.f,h=0;h<f.length;h++){var g=f[h];cte(l,g)||d(l,g,p(c,g))}}(e.sham||i&&i.sham)&&Wte(o,"sham",!0),lne(n,r,o,e)}}var Jne,Qne,ere,tre,nre,rre,ore,ire,are,ure,sre,lre,cre,fre,dre,pre,hre,gre,t={}.propertyIsEnumerable,vre=Object.getOwnPropertyDescriptor,yre={f:vre&&!t.call({1:2},1)?function(e){e=vre(this,e);return!!e&&e.enumerable}:t},mre=Object.getOwnPropertyDescriptor,bre={f:Ete?mre:function(e,t){if(e=Gne(e),t=Qee(t),Ate)try{return mre(e,t)}catch(e){}if(cte(e,t))return ete(!Tte(yre.f,e,t),e[t])}},wre=Math.max,xre=Math.min,Ere=(Kne(!0),Kne(!1)),Dre=ate([].push),Sre=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cre=Sre.concat("length","prototype"),Are={f:Object.getOwnPropertyNames||function(e){return Yne(e,Cre)}},Ore={f:Object.getOwnPropertySymbols},kre=ate([].concat),Bre=Kee("Reflect","ownKeys")||function(e){var t=Are.f(Bte(e)),n=Ore.f;return n?kre(t,n(e)):t},Fre=/#|\.prototype\./,Tre=Xne.normalize=function(e){return String(e).replace(Fre,".").toLowerCase()},_re=Xne.data={},Pre=Xne.NATIVE="N",jre=Xne.POLYFILL="P",Nre=Xne,Ire=bre.f,Lre=Object.keys||function(e){return Yne(e,Sre)},Rre=Object.assign,Mre=Object.defineProperty,zre=ate([].concat),n=!Rre||Yee(function(){var e,t,n,r;return Ete&&1!==Rre({b:1},Rre(Mre({},"a",{enumerable:!0,get:function(){Mre(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=Rre({},e)[n])||Lre(Rre({},t)).join("")!=r})?function(e,t){for(var n=Gee(e),r=arguments.length,o=1,i=Ore.f,a=yre.f;o<r;)for(var u,s=kne(arguments[o++]),l=i?zre(Lre(s),i(s)):Lre(s),c=l.length,f=0;f<c;)u=l[f++],Ete&&!Tte(a,s,u)||(n[u]=s[u]);return n}:Rre,Hre=(Zne({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n}),$ee(function(e){s="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},l=/\blang(?:uage)?-([\w-]+)\b/i,t=0,o={},F={manual:s.Prism&&s.Prism.manual,disableWorkerMessageHandler:s.Prism&&s.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof T?new T(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function n(e,r){var o,t;switch(r=r||{},F.util.type(e)){case"Object":if(t=F.util.objId(e),r[t])return r[t];for(var i in o={},r[t]=o,e)e.hasOwnProperty(i)&&(o[i]=n(e[i],r));return o;case"Array":return t=F.util.objId(e),r[t]||(o=[],r[t]=o,e.forEach(function(e,t){o[t]=n(e,r)}),o);default:return e}},getLanguage:function(e){for(;e&&!l.test(e.className);)e=e.parentElement;return e?(e.className.match(l)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(e.stack)||[])[1];if(t){var n,r=document.getElementsByTagName("script");for(n in r)if(r[n].src==t)return r[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(e,t){var n,r=F.util.clone(F.languages[e]);for(n in t)r[n]=t[n];return r},insertBefore:function(n,e,t,r){var o,i=(r=r||F.languages)[n],a={};for(o in i)if(i.hasOwnProperty(o)){if(o==e)for(var u in t)t.hasOwnProperty(u)&&(a[u]=t[u]);t.hasOwnProperty(o)||(a[o]=i[o])}var s=r[n];return r[n]=a,F.languages.DFS(F.languages,function(e,t){t===s&&e!=n&&(this[e]=a)}),a},DFS:function e(t,n,r,o){o=o||{};var i,a,u,s=F.util.objId;for(i in t)t.hasOwnProperty(i)&&(n.call(t,i,t[i],r||i),a=t[i],"Object"!==(u=F.util.type(a))||o[s(a)]?"Array"!==u||o[s(a)]||(o[s(a)]=!0,e(a,n,i,o)):(o[s(a)]=!0,e(a,n,null,o)))}},plugins:{},highlightAll:function(e,t){F.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};F.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),F.hooks.run("before-all-elements-highlight",r);for(var o,i=0;o=r.elements[i++];)F.highlightElement(o,!0===t,r.callback)},highlightElement:function(e,t,n){var r=F.util.getLanguage(e),o=F.languages[r],i=(e.className=e.className.replace(l,"").replace(/\s+/g," ")+" language-"+r,e.parentElement),a=(i&&"pre"===i.nodeName.toLowerCase()&&(i.className=i.className.replace(l,"").replace(/\s+/g," ")+" language-"+r),{element:e,language:r,grammar:o,code:e.textContent});function u(e){a.highlightedCode=e,F.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,F.hooks.run("after-highlight",a),F.hooks.run("complete",a),n&&n.call(a.element)}F.hooks.run("before-sanity-check",a),(i=a.element.parentElement)&&"pre"===i.nodeName.toLowerCase()&&!i.hasAttribute("tabindex")&&i.setAttribute("tabindex","0"),a.code?(F.hooks.run("before-highlight",a),a.grammar?t&&s.Worker?((r=new Worker(F.filename)).onmessage=function(e){u(e.data)},r.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))):u(F.highlight(a.code,a.grammar,a.language)):u(F.util.encode(a.code))):(F.hooks.run("complete",a),n&&n.call(a.element))},highlight:function(e,t,n){e={code:e,grammar:t,language:n};return F.hooks.run("before-tokenize",e),e.tokens=F.tokenize(e.code,e.grammar),F.hooks.run("after-tokenize",e),T.stringify(F.util.encode(e.tokens),e.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}for(var o=new d,i=(P(o,o.head,e),function e(t,n,r,o,i,a){for(var u in r)if(r.hasOwnProperty(u)&&r[u]){var s=r[u];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(a&&a.cause==u+","+l)return;var c,f=s[l],d=f.inside,p=!!f.lookbehind,h=!!f.greedy,g=f.alias;h&&!f.pattern.global&&(c=f.pattern.toString().match(/[imsuy]*$/)[0],f.pattern=RegExp(f.pattern.source,c+"g"));for(var v=f.pattern||f,y=o.next,m=i;y!==n.tail&&!(a&&m>=a.reach);m+=y.value.length,y=y.next){var b=y.value;if(n.length>t.length)return;if(!(b instanceof T)){var w,x=1;if(h){if(!(w=_(v,m,t,p)))break;var E=w.index,D=w.index+w[0].length,S=m;for(S+=y.value.length;S<=E;)S+=(y=y.next).value.length;if(m=S-=y.value.length,y.value instanceof T)continue;for(var C=y;C!==n.tail&&(S<D||"string"==typeof C.value);C=C.next)x++,S+=C.value.length;x--,b=t.slice(m,S),w.index-=m}else if(!(w=_(v,0,b,p)))continue;E=w.index;var A=w[0],O=b.slice(0,E),k=b.slice(E+A.length),b=m+b.length,B=(a&&b>a.reach&&(a.reach=b),y.prev);O&&(B=P(n,B,O),m+=O.length),j(n,B,x),y=P(n,B,new T(u,d?F.tokenize(A,d):A,g,A)),k&&P(n,y,k),1<x&&(O={cause:u+","+l,reach:b},e(t,n,r,y.prev,m,O),a)&&O.reach>a.reach&&(a.reach=O.reach)}}}}}(e,o,t,o.head,0),o),a=[],u=i.head.next;u!==i.tail;)a.push(u.value),u=u.next;return a},hooks:{all:{},add:function(e,t){var n=F.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=F.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:T},s.Prism=F,T.stringify=function t(e,n){if("string"==typeof e)return e;var r;if(Array.isArray(e))return r="",e.forEach(function(e){r+=t(e,n)}),r;var o,i={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},e=e.alias,a=(e&&(Array.isArray(e)?Array.prototype.push.apply(i.classes,e):i.classes.push(e)),F.hooks.run("wrap",i),"");for(o in i.attributes)a+=" "+o+'="'+(i.attributes[o]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+a+">"+i.content+"</"+i.tag+">"},s.document?((o=F.util.currentScript())&&(F.filename=o.src,o.hasAttribute("data-manual"))&&(F.manual=!0),F.manual||("loading"===(i=document.readyState)||"interactive"===i&&o&&o.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16))):s.addEventListener&&!F.disableWorkerMessageHandler&&s.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,n=e.code,e=e.immediateClose;s.postMessage(F.highlight(n,F.languages[t],t)),e&&s.close()},!1);var s,l,t,F,a,u,c,r,n,o,i,f=F;function T(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function _(e,t,n,r){e.lastIndex=t;t=e.exec(n);return t&&r&&t[1]&&(e=t[1].length,t.index+=e,t[0]=t[0].slice(e)),t}function d(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function P(e,t,n){var r=t.next,n={value:n,prev:t,next:r};return t.next=n,r.prev=n,e.length++,n}function j(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;(t.next=r).prev=t,e.length-=o}function p(){F.manual||F.highlightAll()}function h(e,t){var n=(n=e.className).replace(r," ")+" language-"+t;e.className=n.replace(/\s+/g," ").trim()}e.exports&&(e.exports=f),void 0!==Hee&&(Hee.Prism=f),f.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},f.languages.markup.tag.inside["attr-value"].inside.entity=f.languages.markup.entity,f.languages.markup.doctype.inside["internal-subset"].inside=f.languages.markup,f.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(f.languages.markup.tag,"addInlined",{value:function(e,t){var n={},n=(n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:f.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),t=(n["language-"+t]={pattern:/[\s\S]+/,inside:f.languages[t]},{});t[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},f.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(f.languages.markup.tag,"addAttribute",{value:function(e,t){f.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:f.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),f.languages.html=f.languages.markup,f.languages.mathml=f.languages.markup,f.languages.svg=f.languages.markup,f.languages.xml=f.languages.extend("markup",{}),f.languages.ssml=f.languages.xml,f.languages.atom=f.languages.xml,f.languages.rss=f.languages.xml,i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,(o=f).languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css,(i=o.languages.markup)&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css")),f.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},f.languages.javascript=f.languages.extend("clike",{"class-name":[f.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),f.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,f.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:f.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:f.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:f.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:f.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:f.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),f.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:f.languages.javascript}},string:/[\s\S]+/}}}),f.languages.markup&&(f.languages.markup.tag.addInlined("script","javascript"),f.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),f.languages.js=f.languages.javascript,void 0!==f&&"undefined"!=typeof document&&(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',r=/\blang(?:uage)?-([\w-]+)\b/i,f.hooks.add("before-highlightall",function(e){e.selector+=", "+c}),f.hooks.add("before-sanity-check",function(e){var t,n,r,o,i=e.element;i.matches(c)&&(e.code="",i.setAttribute(u,"loading"),(t=i.appendChild(document.createElement("CODE"))).textContent="Loading…",n=i.getAttribute("data-src"),"none"===(e=e.language)&&(r=(/\.(\w+)$/.exec(n)||[,"none"])[1],e=a[r]||r),h(t,e),h(i,e),(r=f.plugins.autoloader)&&r.loadLanguages(e),(o=new XMLHttpRequest).open("GET",n,!0),o.onreadystatechange=function(){4==o.readyState&&(o.status<400&&o.responseText?(i.setAttribute(u,"loaded"),t.textContent=o.responseText,f.highlightElement(t)):(i.setAttribute(u,"failed"),400<=o.status?t.textContent="✖ Error "+o.status+" while fetching file: "+o.statusText:t.textContent="✖ Error: File does not exist or is empty"))},o.send(null))}),n=!(f.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(c),r=0;t=n[r++];)f.highlightElement(t)}}),f.fileHighlight=function(){n||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),n=!0),f.plugins.fileHighlight.highlight.apply(this,arguments)})})),$re=(fre=Prism,S=fre.util.clone(fre.languages.javascript),dre=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,pre=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,hre=Qre(hre=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source).source,fre.languages.jsx=fre.languages.extend("markup",S),fre.languages.jsx.tag.pattern=Qre(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),fre.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,fre.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,fre.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,fre.languages.jsx.tag.inside.comment=S.comment,fre.languages.insertBefore("inside","attr-name",{spread:{pattern:Qre(/<SPREAD>/.source),inside:fre.languages.jsx}},fre.languages.jsx.tag),fre.languages.insertBefore("inside","special-attr",{script:{pattern:Qre(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:fre.languages.jsx},alias:"language-javascript"}},fre.languages.jsx.tag),gre=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(gre).join(""):""},fre.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||eoe(e.tokens)}),(s=Prism).languages.typescript=s.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),s.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete s.languages.typescript.parameter,delete(g=s.languages.extend("typescript",{}))["class-name"],s.languages.typescript["class-name"].inside=g,s.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:g}}}}),s.languages.ts=s.languages.typescript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={},n=(n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),t=(n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]},{});t[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],lre=Prism,c=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,u=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],l=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,cre=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,Vre=/[{}\[\](),:;]/,lre.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:c,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:l,operator:cre,punctuation:Vre},E=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:E={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:lre.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:E}}],lre.languages.insertBefore("php","variable",{string:E,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:c,string:E,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:u,number:l,operator:cre,punctuation:Vre}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),lre.hooks.add("before-tokenize",function(e){/<\?/.test(e.code)&&lre.languages["markup-templating"].buildPlaceholders(e,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),lre.hooks.add("after-tokenize",function(e){lre.languages["markup-templating"].tokenizePlaceholders(e,"php")}),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,qJ=Prism,sre=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,p=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,d={pattern:RegExp(p+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},qJ.languages.java=qJ.languages.extend("clike",{"class-name":[d,{pattern:RegExp(p+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:d.inside}],keyword:sre,function:[qJ.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),qJ.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),qJ.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":d,keyword:sre,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return sre.source})),lookbehind:!0,inside:{punctuation:/\./}}}),f=Prism,are=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,ure=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return are.source}),f.languages.cpp=f.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return are.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:are,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),f.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return ure})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),f.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:f.languages.cpp}}}}),f.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),f.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:f.languages.extend("cpp",{})}}),f.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},f.languages.cpp["base-clause"]),ore=Prism,hQ="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield",e=Zre(D="class enum interface record struct"),r=RegExp(Zre(hQ+" "+D+" "+i+" "+a)),i=Zre(D+" "+i+" "+a),hQ=Zre(hQ+" "+D+" "+a),D=Xre(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),a=Xre(/\((?:[^()]|<<self>>)*\)/.source,2),n=Kre(/<<0>>(?:\s*<<1>>)?/.source,[t=/@?\b[A-Za-z_]\w*\b/.source,D]),i=Kre(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[i,n]),g=Kre(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[i,S=/\[\s*(?:,\s*)*\]/.source]),s=Kre(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[D,a,S]),s=Kre(/\(<<0>>+(?:,<<0>>+)+\)/.source,[s]),s=Kre(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[s,i,S]),S={keyword:r,punctuation:/[<>()?,.:[\]]/},c=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,ore.languages.csharp=ore.languages.extend("clike",{string:[{pattern:Yre(/(^|[^$\\])<<0>>/.source,[/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source]),lookbehind:!0,greedy:!0},{pattern:Yre(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0},{pattern:RegExp(c),greedy:!0,alias:"character"}],"class-name":[{pattern:Yre(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[i]),lookbehind:!0,inside:S},{pattern:Yre(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[t,s]),lookbehind:!0,inside:S},{pattern:Yre(/(\busing\s+)<<0>>(?=\s*=)/.source,[t]),lookbehind:!0},{pattern:Yre(/(\b<<0>>\s+)<<1>>/.source,[e,n]),lookbehind:!0,inside:S},{pattern:Yre(/(\bcatch\s*\(\s*)<<0>>/.source,[i]),lookbehind:!0,inside:S},{pattern:Yre(/(\bwhere\s+)<<0>>/.source,[t]),lookbehind:!0},{pattern:Yre(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[g]),lookbehind:!0,inside:S},{pattern:Yre(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[s,hQ,t]),inside:S}],keyword:r,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),ore.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),ore.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:Yre(/([(,]\s*)<<0>>(?=\s*:)/.source,[t]),lookbehind:!0,alias:"punctuation"}}),ore.languages.insertBefore("csharp","class-name",{namespace:{pattern:Yre(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[t]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:Yre(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[a]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:Yre(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[s,i]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:Yre(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[s]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:Yre(/<<0>>\s*<<1>>(?=\s*\()/.source,[t,D]),inside:{function:Yre(/^<<0>>/.source,[t]),generic:{pattern:RegExp(D),alias:"class-name",inside:S}}},"type-list":{pattern:Yre(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[e,n,t,s,r.source,a,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:Yre(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[n,a]),lookbehind:!0,greedy:!0,inside:ore.languages.csharp},keyword:r,"class-name":{pattern:RegExp(s),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}}),hQ=Kre(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[g=E+"|"+c]),D=Xre(Kre(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[hQ]),2),e=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,t=Kre(/<<0>>(?:\s*\(<<1>>*\))?/.source,[i,D]),ore.languages.insertBefore("csharp","class-name",{attribute:{pattern:Yre(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[e,t]),lookbehind:!0,greedy:!0,inside:{target:{pattern:Yre(/^<<0>>(?=\s*:)/.source,[e]),alias:"keyword"},"attribute-arguments":{pattern:Yre(/\(<<0>>*\)/.source,[D]),inside:ore.languages.csharp},"class-name":{pattern:RegExp(i),inside:{punctuation:/\./}},punctuation:/[:,]/}}}),ire=/:[^}\r\n]+/.source,n=Xre(Kre(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[hQ]),2),a=Kre(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[n,ire]),r=Xre(Kre(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[g]),2),s=Kre(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[r,ire]),ore.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:Yre(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[a]),lookbehind:!0,greedy:!0,inside:Jre(a,n)},{pattern:Yre(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[s]),lookbehind:!0,greedy:!0,inside:Jre(s,r)}]}),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(u=Prism).languages.ruby=u.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/}),l={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:u.languages.ruby}},delete u.languages.ruby.function,u.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:l}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:l}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:u.languages.ruby}}}),u.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),u.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:l}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:l}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:l}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],u.languages.rb=u.languages.ruby,Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),Prism),Vre="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",p={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},qJ={bash:p,environment:{pattern:RegExp("\\$"+Vre),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Vre),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};$re.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Vre),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:qJ},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:p}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:qJ},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:qJ.entity}}],environment:{pattern:RegExp("\\$?"+Vre),alias:"constant"},variable:qJ.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},p.inside=$re.languages.bash;for(var Ure=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Wre=qJ.variable[1].inside,Gre=0;Gre<Ure.length;Gre++)Wre[Ure[Gre]]=$re.languages.bash[Ure[Gre]];function qre(e){return e=e.replace(/<inner>/g,function(){return Qne}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}function Kre(e,n){return e.replace(/<<(\d+)>>/g,function(e,t){return"(?:"+n[+t]+")"})}function Yre(e,t,n){return RegExp(Kre(e,t),n||"")}function Xre(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}function Zre(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}function Jre(e,t){return{interpolation:{pattern:Yre(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[e]),lookbehind:!0,inside:{"format-string":{pattern:Yre(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[t,ire]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:ore.languages.csharp}}},string:/[\s\S]+/}}function Qre(e,t){return e=e.replace(/<S>/g,function(){return dre}).replace(/<BRACES>/g,function(){return pre}).replace(/<SPREAD>/g,function(){return hre}),RegExp(e,t)}function eoe(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],o=!1;"string"!=typeof r&&("tag"===r.type&&r.content[0]&&"tag"===r.content[0].type?"</"===r.content[0].content[0].content?0<t.length&&t[t.length-1].tagName===gre(r.content[0].content[1])&&t.pop():"/>"!==r.content[r.content.length-1].content&&t.push({tagName:gre(r.content[0].content[1]),openedBraces:0}):0<t.length&&"punctuation"===r.type&&"{"===r.content?t[t.length-1].openedBraces++:0<t.length&&0<t[t.length-1].openedBraces&&"punctuation"===r.type&&"}"===r.content?t[t.length-1].openedBraces--:o=!0),(o||"string"==typeof r)&&0<t.length&&0===t[t.length-1].openedBraces&&(o=gre(r),n<e.length-1&&("string"==typeof e[n+1]||"plain-text"===e[n+1].type)&&(o+=gre(e[n+1]),e.splice(n+1,1)),0<n&&("string"==typeof e[n-1]||"plain-text"===e[n-1].type)&&(o=gre(e[n-1])+o,e.splice(n-1,1),n--),e[n]=new fre.Token("plain-text",o,null,o)),r.content&&"string"!=typeof r.content&&eoe(r.content)}}$re.languages.shell=$re.languages.bash,Jne=Prism,Qne=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source,ere=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,d=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return ere}),f=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,Jne.languages.markdown=Jne.languages.extend("markup",{}),Jne.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Jne.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+d+f+"(?:"+d+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+d+f+")(?:"+d+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(ere),inside:Jne.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+d+")"+f+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+d+"$"),inside:{"table-header":{pattern:RegExp(ere),alias:"important",inside:Jne.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:qre(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:qre(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:qre(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:qre(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(e){t!==e&&(Jne.languages.markdown[t].inside.content.inside[e]=Jne.languages.markdown[e])})}),Jne.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i,a=t[n];"code"===a.type?(i=a.content[1],o=a.content[3],i&&o&&"code-language"===i.type&&"code-block"===o.type&&"string"==typeof i.content&&(i=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),i="language-"+(i=(/[a-z][\w-]*/i.exec(i)||[""])[0].toLowerCase()),o.alias?"string"==typeof o.alias?o.alias=[o.alias,i]:o.alias.push(i):o.alias=[i])):e(a.content)}}(e.tokens)}),Jne.hooks.add("wrap",function(e){if("code-block"===e.type){for(var t="",n=0,r=e.classes.length;n<r;n++){var o=e.classes[n],o=/language-(.+)/.exec(o);if(o){t=o[1];break}}var i,a=Jne.languages[t];a?e.content=Jne.highlight(e.content.replace(tre,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),rre(n)):nre[t]||e}),a,t):t&&"none"!==t&&Jne.plugins.autoloader&&(i="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),e.attributes.id=i,Jne.plugins.autoloader.loadLanguages(t,function(){var e=document.getElementById(i);e&&(e.innerHTML=Jne.highlight(e.textContent,Jne.languages[t],t))}))}}),tre=RegExp(Jne.languages.markup.tag.pattern.source,"gi"),nre={amp:"&",lt:"<",gt:">",quot:'"'},rre=String.fromCodePoint||String.fromCharCode,Jne.languages.md=Jne.languages.markdown,Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){var t,n;"groovy"===e.language&&"string"===e.type&&"'"!=(t=e.content[0])&&(n="$"===t?/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/:/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/,e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring"))});var toe=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function noe(e){if("Symbol"===gne(e))throw TypeError("Cannot convert a Symbol value to a string");return uoe(e)}function roe(){var e=Bte(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function ooe(){}function ioe(e){e.write(doe("")),e.close();var t=e.parentWindow.Object;return e=null,t}var aoe,uoe=tte.String,soe=tte.RegExp,S=Yee(function(){var e=soe("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),E=S||Yee(function(){return!soe("a","y").sticky}),c={BROKEN_CARET:S||Yee(function(){var e=soe("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:E,UNSUPPORTED_Y:S},loe=Ete?Object.defineProperties:function(e,t){Bte(e);for(var n,r=Gne(t),o=Lre(t),i=o.length,a=0;a<i;)Ute.f(e,n=o[a++],r[n]);return e},coe=Kee("document","documentElement"),foe=qte("IE_PROTO"),doe=function(e){return"<script>"+e+"<\/script>"},poe=function(){try{aoe=new ActiveXObject("htmlfile")}catch(e){}var e,t;poe="undefined"==typeof document||document.domain&&aoe?ioe(aoe):((t=Zee("iframe")).style.display="none",coe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(doe("document.F=Object")),e.close(),e.F);for(var n=Sre.length;n--;)delete poe.prototype[Sre[n]];return poe()};ine[foe]=!0;function hoe(o){return function(e,t){var n,e=noe(Wee(e)),t=Tne(t),r=e.length;return t<0||r<=t?o?"":void 0:(n=Koe(e,t))<55296||56319<n||t+1===r||(r=Koe(e,t+1))<56320||57343<r?o?qoe(e,t):n:o?Yoe(e,t,t+2):r-56320+(n-55296<<10)+65536}}function goe(e,t,n){for(var r,o,i,a=vne(e),u=qne(t,a),s=qne(void 0===n?a:n,a),l=Zoe(Joe(s-u,0)),c=0;u<s;u++,c++)r=l,i=c,o=e[u],(i=Qee(i))in r?Ute.f(r,i,ete(0,o)):r[i]=o;return l.length=c,l}function voe(e,t){var n=e.exec;if(hte(n))return null!==(n=Tte(n,e,t))&&Bte(n),n;if("RegExp"===Kte(e))return Tte(Roe,e,t);throw Qoe("RegExp#exec called on incompatible receiver")}var yoe,moe,boe,woe,xoe,Eoe,Doe,Soe=Object.create||function(e,t){var n;return null!==e?(ooe.prototype=Bte(e),n=new ooe,ooe.prototype=null,n[foe]=e):n=poe(),void 0===t?n:loe(n,t)},Coe=tte.RegExp,t=Yee(function(){var e=Coe(".","s");return!e.dotAll||!e.exec("\n")||"s"!==e.flags}),Aoe=tte.RegExp,e=Yee(function(){var e=Aoe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Ooe=une.get,koe=LJ("native-string-replace",String.prototype.replace),Boe=RegExp.prototype.exec,Foe=Boe,Toe=ate("".charAt),_oe=ate("".indexOf),Poe=ate("".replace),joe=ate("".slice),Noe=(D=/b*/g,Tte(Boe,i=/a/,"a"),Tte(Boe,D,"a"),0!==i.lastIndex||0!==D.lastIndex),Ioe=c.BROKEN_CARET,Loe=void 0!==/()??/.exec("")[1],Roe=Foe=Noe||Loe||Ioe||t||e?function(e){var t,n,r,o,i,a,u=this,s=Ooe(u),e=noe(e),l=s.raw;if(l)return l.lastIndex=u.lastIndex,f=Tte(Foe,l,e),u.lastIndex=l.lastIndex,f;var c=s.groups,l=Ioe&&u.sticky,f=Tte(roe,u),s=u.source,d=0,p=e;if(l&&(f=Poe(f,"y",""),-1===_oe(f,"g")&&(f+="g"),p=joe(e,u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==Toe(e,u.lastIndex-1))&&(s="(?: "+s+")",p=" "+p,d++),t=new RegExp("^(?:"+s+")",f)),Loe&&(t=new RegExp("^"+s+"$(?!\\s)",f)),Noe&&(n=u.lastIndex),r=Tte(Boe,l?t:u,p),l?r?(r.input=joe(r.input,d),r[0]=joe(r[0],d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:Noe&&r&&(u.lastIndex=u.global?r.index+r[0].length:n),Loe&&r&&1<r.length&&Tte(koe,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&c)for(r.groups=i=Soe(null),o=0;o<c.length;o++)i[(a=c[o])[0]]=r[a[1]];return r}:Foe,g=(Zne({target:"RegExp",proto:!0,forced:/./.exec!==Roe},{exec:Roe}),Function.prototype),Moe=g.apply,a=g.bind,zoe=g.call,Hoe="object"==typeof Reflect&&Reflect.apply||(a?zoe.bind(Moe):function(){return zoe.apply(Moe,arguments)}),$oe=Xee("species"),Voe=RegExp.prototype,Uoe=Xee("match"),Woe=tte.TypeError,Goe=Xee("species"),qoe=ate("".charAt),Koe=ate("".charCodeAt),Yoe=ate("".slice),Xoe=(hoe(!1),hoe(!0)),Zoe=tte.Array,Joe=Math.max,Qoe=tte.TypeError,eie=c.UNSUPPORTED_Y,tie=Math.min,nie=[].push,rie=ate(/./.exec),oie=ate(nie),iie=ate("".slice),l=(yoe="split",n=!!Yee(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),s=eie,Eoe=Xee(yoe),Doe=!Yee(function(){var e={};return e[Eoe]=function(){return 7},7!=""[yoe](e)}),r=Doe&&!Yee(function(){var e=!1,t=/a/;return(t={constructor:{}}).constructor[$oe]=function(){return t},t.flags="",t[Eoe]=/./[Eoe],t.exec=function(){return e=!0,null},t[Eoe](""),!e}),Doe&&r&&!n||(moe=ate(/./[Eoe]),boe=Eoe,woe=""[yoe],xoe="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=noe(Wee(this)),r=void 0===t?4294967295:t>>>0;if(0==r)return[];if(void 0===e)return[n];if(!Dte(t=e)||!(void 0!==(s=t[Uoe])?s:"RegExp"==Kte(t)))return Tte(woe,n,e,r);for(var o,i,a,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,s+"g");(o=Tte(Roe,c,n))&&!((i=c.lastIndex)>l&&(oie(u,iie(n,l,o.index)),1<o.length&&o.index<n.length&&Hoe(nie,u,goe(o,1)),a=o[0].length,l=i,r<=u.length));)c.lastIndex===o.index&&c.lastIndex++;return l===n.length?!a&&rie(c,"")||oie(u,""):oie(u,iie(n,l)),r<u.length?goe(u,0,r):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Tte(woe,this,e,t)}:woe,r=[function(e,t){var n=Wee(this),r=null==e?void 0:Jee(e,boe);return r?Tte(r,e,n,t):Tte(xoe,noe(n),e,t)},function(e,t){var n,r,o=Bte(this),i=noe(e),a=(e=o,n=i,r=t,u=xoe!==woe,l=ate(xoe),(a=e.exec)===Roe||a===Voe.exec?Doe&&!u?{done:!0,value:moe(e,n,r)}:{done:!0,value:l(n,e,r)}:{done:!1});if(a.done)return a.value;var u=function(e){var t,n=Bte(o).constructor;if(void 0===n||null==(t=Bte(n)[Goe]))return e;n=t;if(zne(n))return n;throw Woe(Ite(n)+" is not a constructor")}(RegExp),s=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(eie?"g":"y"),c=new u(eie?"^(?:"+o.source+")":o,l),f=void 0===t?4294967295:t>>>0;if(0==f)return[];if(0===i.length)return null===voe(c,i)?[i]:[];for(var d,p,h=0,g=0,v=[];g<i.length;){c.lastIndex=eie?0:g;var y,m=voe(c,eie?iie(i,g):i);if(null===m||(y=tie(Pne(c.lastIndex+(eie?g:0)),i.length))===h)d=i,g=(p=g)+(s?Xoe(d,p).length:1);else{if(oie(v,iie(i,h,g)),v.length===f)return v;for(var b=1;b<=m.length-1;b++)if(oie(v,m[b]),v.length===f)return v;g=h=y}}return oie(v,iie(i,h)),v}],lne(String.prototype,yoe,r[0]),lne(Voe,Eoe,r[1])),s&&Wte(Voe[Eoe],"sham",!0),Zne({global:!0},{globalThis:tte}),N.fn.attr=Mf,sne.PROPER),aie=RegExp.prototype,uie=aie.toString,sie=ate(roe),u=Yee(function(){return"/a/b"!=uie.call({source:"a",flags:"b"})}),Vre=l&&"toString"!=uie.name,lie=((u||Vre)&&lne(RegExp.prototype,"toString",function(){var e=Bte(this),t=noe(e.source),n=e.flags;return"/"+t+"/"+noe(void 0!==n||!_te(aie,e)||"flags"in aie?n:sie(e))},{unsafe:!0}),die.prototype.getOptions=function(e){var n=[],t=e.getMenuConfig("codeSelectLang").codeLangs,t=void 0===t?[]:t,r=(n.push({text:"plain text",value:""}),t.forEach(function(e){var t=e.text,e=e.value;n.push({text:t,value:e})}),this.getValue(e));return n.forEach(function(e){e.value===r?e.selected=!0:delete e.selected}),n},die.prototype.isActive=function(e){return!1},die.prototype.getValue=function(e){var t,n=this.getSelectCodeElem(e);return null!=n&&_.isElement(n)&&(t=n.language.toString(),(void 0===(n=e.getMenuConfig("codeSelectLang").codeLangs)?[]:n).some(function(e){return e.value===t}))?t:""},die.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},die.prototype.exec=function(e,t){null!=this.getSelectCodeElem(e)&&(t={language:t.toString()},j.setNodes(e,t,{match:function(e){return I.checkNodeType(e,"code")}}))},die.prototype.getSelectCodeElem=function(e){var t=I.getSelectedNodeByType(e,"code");return null==t||(e=I.getParentNode(e,t),!_.isElement(e))||"pre"!==e.type?null:t},die),p={renderStyle:function(e,t){var n=e,e=t,r="";{var o;toe.forEach(function(e){n[e]&&(r=e)}),r&&(o=r="token "+r,null==(t=e).data&&(t.data={}),null==(t=t.data).props&&(t.props={}),Object.assign(t.props,{className:o}))}return e},parseStyleHtml:function(e,t,n){var r,e=N(e);return!_.isElement(t)||"code"!==I.getNodeType(t)?t:(r=t,0===(e=e.attr("class")||"").indexOf("language-")?r.language=e.split("-")[1]||"":r.language=e.toLowerCase(),r)},menus:[{key:"codeSelectLang",factory:function(){return new lie},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){e=e.language,e=void 0===e?"":e;return"<code "+(e?'class="language-'+e+'"':"")+">"+t+"</code>"}}]},cie=/"/g,fie=ate("".replace);function die(){this.title=w("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}Zne({target:"String",proto:!0,forced:Yee(function(){var e="".anchor('"');return e!==e.toLowerCase()||3<e.split('"').length})},{anchor:function(e){return e=e,t=noe(Wee(this)),n="<a",(n+=' name="'+fie(noe(e),cie,"&quot;")+'"')+">"+t+"</a>";var t,n}});function pie(a){var e,t,n,r=(u=function(e){var t="function"==typeof Symbol&&a[Symbol.iterator];if(!t)return a;var n,r,o=t.call(a),i=[];try{for(;(void 0===e||0<e--)&&!(n=o.next()).done;)i.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}return i}(2))[0],o=u[1],i=[],u=function(e){if(H.isText(e)){e=I.getParentNode(null,e);if(e&&"code"===I.getNodeType(e)){var t=I.getParentNode(null,e);if(t&&"pre"===I.getNodeType(t))return e}}return null}(r);if(null!=u){u=u.language,u=void 0===u?"":u;if(u){var r=u&&(u=Hre.languages[u])?Hre.tokenize(r.text,u):[],s=0;try{for(var l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),c=l.next();!c.done;c=l.next()){var f=c.value,d=s+function n(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+n(t)},0)}(f);"string"!=typeof f&&i.push(((n={})[f.type]=!0,n.anchor={path:o,offset:s},n.focus={path:o,offset:d},n)),s=d}}catch(a){e={error:a}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}}}return i}var hie=function(){return(hie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},gie=(vie.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=hie(hie({},this.editorConfig),e)},vie.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=hie(hie({},this.simpleEditorConfig),e)},vie.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=hie(hie({},this.toolbarConfig),e)},vie.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=hie(hie({},this.simpleToolbarConfig),e)},vie.registerPlugin=function(e){this.plugins.push(e)},vie.registerMenu=function(e,t){var n=e.key,r=e.factory,e=e.config,e=bb(bb({},e),t||{});if(null!=lw[n])throw new Error("Duplicated key '"+n+"' in menu items");lw[n]=r,null!=e&&(sw[n]=e)},vie.registerRenderElem=function(e){var t;t=e.type,e=e.renderElem,oE[t||""]=e},vie.registerRenderStyle=function(e){rE.push(e)},vie.registerElemToHtml=function(e){var t;t=e.type,e=e.elemToHtml,mw[t||""]=e},vie.registerStyleToHtml=function(e){yw.push(e)},vie.registerPreParseHtml=function(e){L4.push(e)},vie.registerParseElemHtml=function(e){var t;t=e.selector,e=e.parseElemHtml,M4[t]=e},vie.registerParseStyleHtml=function(e){R4.push(e)},vie.registerModule=function(e){yie(e)},vie.editorConfig={},vie.simpleEditorConfig={},vie.toolbarConfig={},vie.simpleToolbarConfig={},vie.plugins=[],vie);function vie(){throw new Error("不能实例化\nCan not construct a instance")}function yie(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,e=e.editorPlugin;t&&t.forEach(function(e){return gie.registerMenu(e)}),n&&n.forEach(function(e){return gie.registerRenderElem(e)}),r&&gie.registerRenderStyle(r),o&&o.forEach(function(e){return gie.registerElemToHtml(e)}),i&&gie.registerStyleToHtml(i),a&&a.forEach(function(e){return gie.registerPreParseHtml(e)}),u&&u.forEach(function(e){return gie.registerParseElemHtml(e)}),s&&gie.registerParseStyleHtml(s),e&&gie.registerPlugin(e)}jD.forEach(yie),yie(h),yie(o1),yie(pU),yie(v),yie(p);qJ='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',f={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},d={hoverbarKeys:hie(hie({},f),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})},gie.setEditorConfig(hie(hie({},d),{decorate:pie})),E={hoverbarKeys:f},gie.setSimpleEditorConfig(hie(hie({},E),{decorate:pie})),S={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:w("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:w("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:w("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:w("editor.image"),iconSvg:qJ,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:w("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]},gie.setToolbarConfig(S),LJ={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:w("editor.image"),iconSvg:qJ,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function mie(e){var t=(e=void 0===e?{}:e).selector,t=void 0===t?"":t,n=e.content,n=void 0===n?[]:n,r=e.html,o=e.config,o=void 0===o?{}:o,e=e.mode,e="simple"===(void 0===e?"default":e)?gie.simpleEditorConfig:gie.editorConfig,i=hie(hie({},e.hoverbarKeys||{}),o.hoverbarKeys||{});return p3({selector:t,config:hie(hie(hie({},e),o),{hoverbarKeys:i}),content:n,html:r,plugins:gie.plugins})}function bie(e){var t=e.selector,n=e.editor,r=e.config,r=void 0===r?{}:r,e=e.mode,e=void 0===e?"default":e;if(t){e="simple"===e?gie.simpleToolbarConfig:gie.toolbarConfig,t={selector:t,config:hie(hie({},e),r)};if(null==n)throw new Error("Cannot create toolbar, because editor is null");e=t.selector,t=void 0===(t=t.config)?{}:t;if(px(n,"data-w-e-toolbar",e))throw new Error("Repeated create toolbar by selector '"+e+"'");return t=bb({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},t||{}),e=new y3(e,t),m2.set(e,n),b2.set(n,e),e}throw new Error("Cannot find 'selector' when create toolbar")}gie.setSimpleToolbarConfig(LJ)}.call(this,Eie(30))},757:function(e,t,n){var r=n(758);"string"==typeof r&&(r=[[e.i,r,""]]);n(88)(r,{insertAt:"top",hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},758:function(e,t,n){(t=n(87)(!1)).push([e.i,':root,\n:host {\n --w-e-textarea-bg-color: #fff;\n --w-e-textarea-color: #333;\n --w-e-textarea-border-color: #ccc;\n --w-e-textarea-slight-border-color: #e8e8e8;\n --w-e-textarea-slight-color: #d4d4d4;\n --w-e-textarea-slight-bg-color: #f5f2f0;\n --w-e-textarea-selected-border-color: #B4D5FF;\n --w-e-textarea-handler-bg-color: #4290f7;\n --w-e-toolbar-color: #595959;\n --w-e-toolbar-bg-color: #fff;\n --w-e-toolbar-active-color: #333;\n --w-e-toolbar-active-bg-color: #f1f1f1;\n --w-e-toolbar-disabled-color: #999;\n --w-e-toolbar-border-color: #e8e8e8;\n --w-e-modal-button-bg-color: #fafafa;\n --w-e-modal-button-border-color: #d9d9d9;\n}\n.w-e-text-container *,\n.w-e-toolbar * {\n box-sizing: border-box;\n margin: 0;\n outline: none;\n padding: 0;\n}\n.w-e-text-container blockquote,\n.w-e-text-container li,\n.w-e-text-container p,\n.w-e-text-container td,\n.w-e-text-container th,\n.w-e-toolbar * {\n line-height: 1.5;\n}\n.w-e-text-container {\n background-color: var(--w-e-textarea-bg-color);\n color: var(--w-e-textarea-color);\n height: 100%;\n position: relative;\n}\n.w-e-text-container .w-e-scroll {\n -webkit-overflow-scrolling: touch;\n height: 100%;\n}\n.w-e-text-container [data-slate-editor] {\n word-wrap: break-word;\n border-top: 1px solid transparent;\n min-height: 100%;\n outline: 0;\n padding: 0 10px;\n white-space: pre-wrap;\n}\n.w-e-text-container [data-slate-editor] p {\n margin: 15px 0;\n}\n.w-e-text-container [data-slate-editor] h1,\n.w-e-text-container [data-slate-editor] h2,\n.w-e-text-container [data-slate-editor] h3,\n.w-e-text-container [data-slate-editor] h4,\n.w-e-text-container [data-slate-editor] h5 {\n margin: 20px 0;\n}\n.w-e-text-container [data-slate-editor] img {\n cursor: default;\n display: inline!important;\n max-width: 100%;\n min-height: 20px;\n min-width: 20px;\n}\n.w-e-text-container [data-slate-editor] span {\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] [data-selected=true] {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-placeholder {\n font-style: italic;\n left: 10px;\n top: 17px;\n width: 90%;\n}\n.w-e-max-length-info,\n.w-e-text-placeholder {\n color: var(--w-e-textarea-slight-color);\n pointer-events: none;\n position: absolute;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.w-e-max-length-info {\n bottom: 0.5em;\n right: 1em;\n}\n.w-e-bar {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n padding: 0 5px;\n}\n.w-e-bar svg {\n fill: var(--w-e-toolbar-color);\n height: 14px;\n width: 14px;\n}\n.w-e-bar-show {\n display: flex;\n}\n.w-e-bar-hidden {\n display: none;\n}\n.w-e-hover-bar {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 5px #0000001f;\n position: absolute;\n}\n.w-e-toolbar {\n flex-wrap: wrap;\n position: relative;\n}\n.w-e-bar-divider {\n background-color: var(--w-e-toolbar-border-color);\n display: inline-flex;\n height: 40px;\n margin: 0 5px;\n width: 1px;\n}\n.w-e-bar-item {\n display: flex;\n height: 40px;\n padding: 4px;\n position: relative;\n text-align: center;\n}\n.w-e-bar-item,\n.w-e-bar-item button {\n align-items: center;\n justify-content: center;\n}\n.w-e-bar-item button {\n background: transparent;\n border: none;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n display: inline-flex;\n height: 32px;\n overflow: hidden;\n padding: 0 8px;\n white-space: nowrap;\n}\n.w-e-bar-item button:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item button .title {\n margin-left: 5px;\n}\n.w-e-bar-item .active {\n background-color: var(--w-e-toolbar-active-bg-color);\n color: var(--w-e-toolbar-active-color);\n}\n.w-e-bar-item .disabled {\n color: var(--w-e-toolbar-disabled-color);\n cursor: not-allowed;\n}\n.w-e-bar-item .disabled svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover {\n background-color: var(--w-e-toolbar-bg-color);\n color: var(--w-e-toolbar-disabled-color);\n}\n.w-e-bar-item .disabled:hover svg {\n fill: var(--w-e-toolbar-disabled-color);\n}\n.w-e-menu-tooltip-v5:before {\n background-color: var(--w-e-toolbar-active-color);\n border-radius: 5px;\n color: var(--w-e-toolbar-bg-color);\n content: attr(data-tooltip);\n font-size: 0.75em;\n opacity: 0;\n padding: 5px 10px;\n position: absolute;\n text-align: center;\n top: 40px;\n transition: opacity 0.6s;\n visibility: hidden;\n white-space: pre;\n z-index: 1;\n}\n.w-e-menu-tooltip-v5:after {\n border: 5px solid transparent;\n border-bottom: 5px solid var(--w-e-toolbar-active-color);\n content: "";\n opacity: 0;\n position: absolute;\n top: 30px;\n transition: opacity 0.6s;\n visibility: hidden;\n}\n.w-e-menu-tooltip-v5:hover:after,\n.w-e-menu-tooltip-v5:hover:before {\n opacity: 1;\n visibility: visible;\n}\n.w-e-menu-tooltip-v5.tooltip-right:before {\n left: 100%;\n top: 10px;\n}\n.w-e-menu-tooltip-v5.tooltip-right:after {\n border-bottom-color: transparent;\n border-left-color: transparent;\n border-right-color: var(--w-e-toolbar-active-color);\n border-top-color: transparent;\n left: 100%;\n margin-left: -10px;\n top: 16px;\n}\n.w-e-bar-item-group .w-e-bar-item-menus-container {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n display: none;\n left: 0;\n margin-top: 40px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-item-group:hover .w-e-bar-item-menus-container {\n display: block;\n}\n.w-e-select-list {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n left: 0;\n margin-top: 40px;\n max-height: 350px;\n min-width: 100px;\n overflow-y: auto;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-select-list ul {\n line-height: 1;\n list-style: none;\n}\n.w-e-select-list ul .selected {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li {\n cursor: pointer;\n padding: 7px 0 7px 25px;\n position: relative;\n text-align: left;\n white-space: nowrap;\n}\n.w-e-select-list ul li:hover {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-select-list ul li svg {\n left: 0;\n margin-left: 5px;\n margin-top: -7px;\n position: absolute;\n top: 50%;\n}\n.w-e-bar-bottom .w-e-select-list {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-drop-panel {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n margin-top: 40px;\n min-width: 200px;\n padding: 10px;\n position: absolute;\n top: 0;\n z-index: 1;\n}\n.w-e-bar-bottom .w-e-drop-panel {\n bottom: 0;\n margin-bottom: 40px;\n margin-top: 0;\n top: inherit;\n}\n.w-e-modal {\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px;\n box-shadow: 0 2px 10px #0000001f;\n color: var(--w-e-toolbar-color);\n font-size: 14px;\n min-height: 40px;\n min-width: 100px;\n padding: 20px 15px 0;\n position: absolute;\n text-align: left;\n z-index: 1;\n}\n.w-e-modal .btn-close {\n cursor: pointer;\n line-height: 1;\n padding: 5px;\n position: absolute;\n right: 8px;\n top: 7px;\n}\n.w-e-modal .btn-close svg {\n fill: var(--w-e-toolbar-color);\n height: 10px;\n width: 10px;\n}\n.w-e-modal .babel-container {\n display: block;\n margin-bottom: 15px;\n}\n.w-e-modal .babel-container span {\n display: block;\n margin-bottom: 10px;\n}\n.w-e-modal .button-container {\n margin-bottom: 15px;\n}\n.w-e-modal button {\n background-color: var(--w-e-modal-button-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n cursor: pointer;\n font-weight: 400;\n height: 32px;\n padding: 4.5px 15px;\n text-align: center;\n touch-action: manipulation;\n transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n white-space: nowrap;\n}\n.w-e-modal input[type=number],\n.w-e-modal input[type=text],\n.w-e-modal textarea {\n font-feature-settings: "tnum";\n background-color: var(--w-e-toolbar-bg-color);\n border: 1px solid var(--w-e-modal-button-border-color);\n border-radius: 4px;\n color: var(--w-e-toolbar-color);\n font-variant: tabular-nums;\n padding: 4.5px 11px;\n transition: all 0.3s;\n width: 100%;\n}\n.w-e-modal textarea {\n min-height: 60px;\n}\nbody .w-e-modal,\nbody .w-e-modal * {\n box-sizing: border-box;\n}\n.w-e-progress-bar {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 1px;\n position: absolute;\n transition: width 0.3s;\n width: 0;\n}\n.w-e-full-screen-container {\n bottom: 0!important;\n display: flex!important;\n flex-direction: column!important;\n height: 100%!important;\n left: 0!important;\n margin: 0!important;\n padding: 0!important;\n position: fixed;\n right: 0!important;\n top: 0!important;\n width: 100% !important;\n}\n.w-e-full-screen-container [data-w-e-textarea=true] {\n flex: 1 !important;\n}\n.w-e-text-container [data-slate-editor] code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-radius: 3px;\n font-family: monospace;\n padding: 3px;\n}\n.w-e-panel-content-color {\n list-style: none;\n text-align: left;\n width: 230px;\n}\n.w-e-panel-content-color li {\n border: 1px solid var(--w-e-toolbar-bg-color);\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 2px;\n}\n.w-e-panel-content-color li:hover {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color li .color-block {\n border: 1px solid var(--w-e-toolbar-border-color);\n border-radius: 3px 3px;\n height: 17px;\n width: 17px;\n}\n.w-e-panel-content-color .active {\n border-color: var(--w-e-toolbar-color);\n}\n.w-e-panel-content-color .clear {\n line-height: 1.5;\n margin-bottom: 5px;\n width: 100%;\n}\n.w-e-panel-content-color .clear svg {\n height: 16px;\n margin-bottom: -4px;\n width: 16px;\n}\n.w-e-text-container [data-slate-editor] blockquote {\n background-color: var(--w-e-textarea-slight-bg-color);\n border-left: 8px solid var(--w-e-textarea-selected-border-color);\n display: block;\n font-size: 100%;\n line-height: 1.5;\n margin: 10px 0;\n padding: 10px;\n}\n.w-e-panel-content-emotion {\n font-size: 20px;\n list-style: none;\n text-align: left;\n width: 300px;\n}\n.w-e-panel-content-emotion li {\n border-radius: 3px 3px;\n cursor: pointer;\n display: inline-block;\n padding: 0 5px;\n}\n.w-e-panel-content-emotion li:hover {\n background-color: var(--w-e-textarea-slight-bg-color);\n}\n.w-e-textarea-divider {\n border-radius: 3px;\n margin: 20px auto;\n padding: 20px;\n}\n.w-e-textarea-divider hr {\n background-color: var(--w-e-textarea-border-color);\n border: 0;\n display: block;\n height: 1px;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n background-color: var(--w-e-textarea-slight-bg-color);\n border: 1px solid var(--w-e-textarea-slight-border-color);\n border-radius: 4px 4px;\n display: block;\n font-size: 14px;\n padding: 10px;\n text-indent: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container {\n display: inline-block;\n margin: 0 3px;\n}\n.w-e-text-container [data-slate-editor] .w-e-image-container:hover {\n box-shadow: 0 0 0 2px var(--w-e-textarea-selected-border-color);\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container {\n overflow: hidden;\n position: relative;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .w-e-image-dragger {\n background-color: var(--w-e-textarea-handler-bg-color);\n height: 7px;\n position: absolute;\n width: 7px;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-top {\n cursor: nwse-resize;\n left: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-top {\n cursor: nesw-resize;\n right: 0;\n top: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .left-bottom {\n bottom: 0;\n cursor: nesw-resize;\n left: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container .right-bottom {\n bottom: 0;\n cursor: nwse-resize;\n right: 0;\n}\n.w-e-text-container [data-slate-editor] .w-e-selected-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [contenteditable=false] .w-e-image-container:hover {\n box-shadow: none;\n}\n.w-e-text-container [data-slate-editor] .table-container {\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin-top: 10px;\n overflow-x: auto;\n padding: 10px;\n width: 100%;\n}\n.w-e-text-container [data-slate-editor] table {\n border-collapse: collapse;\n}\n.w-e-text-container [data-slate-editor] table td,\n.w-e-text-container [data-slate-editor] table th {\n border: 1px solid var(--w-e-textarea-border-color);\n line-height: 1.5;\n min-width: 30px;\n padding: 3px 5px;\n text-align: left;\n}\n.w-e-text-container [data-slate-editor] table th {\n background-color: var(--w-e-textarea-slight-bg-color);\n font-weight: 700;\n text-align: center;\n}\n.w-e-panel-content-table {\n background-color: var(--w-e-toolbar-bg-color);\n}\n.w-e-panel-content-table table {\n border-collapse: collapse;\n}\n.w-e-panel-content-table td {\n border: 1px solid var(--w-e-toolbar-border-color);\n cursor: pointer;\n height: 15px;\n padding: 3px 5px;\n width: 20px;\n}\n.w-e-panel-content-table td.active {\n background-color: var(--w-e-toolbar-active-bg-color);\n}\n.w-e-textarea-video-container {\n background-image: linear-gradient(45deg, #eee 25%, transparent 0, transparent 75%, #eee 0, #eee), linear-gradient(45deg, #eee 25%, #fff 0, #fff 75%, #eee 0, #eee);\n background-position: 0 0,10px 10px;\n background-size: 20px 20px;\n border: 1px dashed var(--w-e-textarea-border-color);\n border-radius: 5px;\n margin: 10px auto 0;\n padding: 10px 0;\n text-align: center;\n}\n.w-e-text-container [data-slate-editor] pre > code {\n word-wrap: normal;\n font-family: Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;\n -webkit-hyphens: none;\n hyphens: none;\n line-height: 1.5;\n margin: 0.5em 0;\n overflow: auto;\n padding: 1em;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n text-align: left;\n text-shadow: 0 1px #fff;\n white-space: pre;\n word-break: normal;\n word-spacing: normal;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.cdata,\n.w-e-text-container [data-slate-editor] pre > code .token.comment,\n.w-e-text-container [data-slate-editor] pre > code .token.doctype,\n.w-e-text-container [data-slate-editor] pre > code .token.prolog {\n color: #708090;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.punctuation {\n color: #999;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.namespace {\n opacity: 0.7;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.boolean,\n.w-e-text-container [data-slate-editor] pre > code .token.constant,\n.w-e-text-container [data-slate-editor] pre > code .token.deleted,\n.w-e-text-container [data-slate-editor] pre > code .token.number,\n.w-e-text-container [data-slate-editor] pre > code .token.property,\n.w-e-text-container [data-slate-editor] pre > code .token.symbol,\n.w-e-text-container [data-slate-editor] pre > code .token.tag {\n color: #905;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.attr-name,\n.w-e-text-container [data-slate-editor] pre > code .token.builtin,\n.w-e-text-container [data-slate-editor] pre > code .token.char,\n.w-e-text-container [data-slate-editor] pre > code .token.inserted,\n.w-e-text-container [data-slate-editor] pre > code .token.selector,\n.w-e-text-container [data-slate-editor] pre > code .token.string {\n color: #690;\n}\n.w-e-text-container [data-slate-editor] pre > code .language-css .token.string,\n.w-e-text-container [data-slate-editor] pre > code .style .token.string,\n.w-e-text-container [data-slate-editor] pre > code .token.entity,\n.w-e-text-container [data-slate-editor] pre > code .token.operator,\n.w-e-text-container [data-slate-editor] pre > code .token.url {\n color: #9a6e3a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.atrule,\n.w-e-text-container [data-slate-editor] pre > code .token.attr-value,\n.w-e-text-container [data-slate-editor] pre > code .token.keyword {\n color: #07a;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.class-name,\n.w-e-text-container [data-slate-editor] pre > code .token.function {\n color: #dd4a68;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.important,\n.w-e-text-container [data-slate-editor] pre > code .token.regex,\n.w-e-text-container [data-slate-editor] pre > code .token.variable {\n color: #e90;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.bold,\n.w-e-text-container [data-slate-editor] pre > code .token.important {\n font-weight: 700;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.italic {\n font-style: italic;\n}\n.w-e-text-container [data-slate-editor] pre > code .token.entity {\n cursor: help;\n}\n',""]),e.exports=t}}]);