@para-ui/core 3.0.91 → 3.0.92-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoBox/index.js +1 -1
- package/AutoTips/index.js +2 -2
- package/Breadcrumbs/index.js +1 -1
- package/Button/index.js +2 -2
- package/ButtonGroup/index.js +2 -2
- package/Carousel/index.js +1 -1
- package/Cascader/index.js +1 -1
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +1 -1
- package/Collapse/index.js +1 -1
- package/CollapseBox/index.js +1 -1
- package/CollapseLayout/index.js +1 -1
- package/ComboSelect/index.js +3 -3
- package/Container/index.js +1 -1
- package/DatePicker/index.js +2 -2
- package/Desktop/index.js +2 -2
- package/DragVerify/index.js +1 -1
- package/Drawer/index.js +2 -2
- package/Dropdown/index.js +1 -1
- package/DynamicMultiBox/index.js +3 -3
- package/Empty/index.js +1 -1
- package/Form/index.js +3 -3
- package/FormItem/index.js +3 -3
- package/FunctionModal/index.js +3 -3
- package/Help/index.js +1 -1
- package/HelperText/index.js +1 -1
- package/InputLang/index.js +2 -2
- package/InputNumber/index.js +1 -1
- package/Label/index.js +1 -1
- package/Loading/index.js +1 -1
- package/Menu/index.js +1 -1
- package/Message/index.js +1 -1
- package/Modal/index.js +3 -3
- package/MultiBox/index.js +2 -2
- package/Notification/index.js +1 -1
- package/OperateBtn/index.js +2 -2
- package/PageHeader/index.js +2 -2
- package/Pagination/index.js +2 -2
- package/ParauiProvider/index.d.ts +1 -0
- package/ParauiProvider/index.js +4 -1
- package/PasswordRules/index.js +1 -1
- package/PopConfirm/index.js +2 -2
- package/Popover/index.js +1 -1
- package/Progress/index.js +1 -1
- package/Querying/index.js +1 -1
- package/README.md +11 -0
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Search/index.js +2 -2
- package/Select/index.js +2 -2
- package/SelectInput/index.js +1 -1
- package/Selector/index.js +5 -5
- package/SelectorPicker/index.js +2 -2
- package/SingleBox/index.js +2 -2
- package/Slider/index.js +1 -1
- package/Split/index.js +1 -1
- package/Status/index.js +1 -1
- package/Stepper/index.js +1 -1
- package/Styles/theme/theme-api.scss +75 -0
- package/Styles/theme/theme-default.scss +74 -0
- package/Styles/theme.scss +1 -69
- package/Switch/index.js +1 -1
- package/Table/index.js +5 -5
- package/Tabs/index.js +2 -2
- package/Tag/index.js +1 -1
- package/TextEditor/index.js +20 -2
- package/TextEditor/lang/en_US.d.ts +4 -0
- package/TextEditor/lang/index.d.ts +9 -0
- package/TextEditor/lang/zh_CN.d.ts +4 -0
- package/TextField/index.js +2 -2
- package/TimePicker/index.js +1 -1
- package/Timeline/index.js +1 -1
- package/Title/index.js +1 -1
- package/ToggleButton/index.js +2 -2
- package/Tooltip/index.js +1 -1
- package/Transfer/index.js +2 -2
- package/Tree/index.js +2 -2
- package/Upload/index.js +6 -6
- package/_verture/{index-77f9e0fb.js → index-0732ec3c.js} +1 -1
- package/_verture/{index-fbe34f08.js → index-1a55db55.js} +2 -2
- package/_verture/{index-a6157b4f.js → index-8165c339.js} +2 -2
- package/index.js +4 -4
- package/locale/en-US.d.ts +3 -0
- package/locale/index.d.ts +6 -0
- package/locale/index.js +6 -0
- package/locale/zh-CN.d.ts +3 -0
- package/package.json +8 -2
- package/umd/ParauiProvider.js +1 -1
- package/umd/TextEditor.js +10 -10
- package/umd/locale.js +1 -1
- /package/_verture/{modalContext-630bdb73.js → modalContext-5439180f.js} +0 -0
package/umd/TextEditor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","react-dom","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("react-dom"),require("@paraview/lib")):e.ParaUI=t(e.react,e["react-dom"],e["@paraview/lib"])}(self,(function(e,t,n){return function(){var
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@para-ui/core/GlobalContext"),require("@paraview/lib")):"function"==typeof define&&define.amd?define(["react","react-dom","@para-ui/core/GlobalContext","@paraview/lib"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("react-dom"),require("@para-ui/core/GlobalContext"),require("@paraview/lib")):e.ParaUI=t(e.react,e["react-dom"],e["@para-ui/core/GlobalContext"],e["@paraview/lib"])}(self,(function(e,t,n,r){return function(){var o={97435:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(85893);
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -38,8 +38,8 @@ object-assign
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/n(27418);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},85893:function(e,t,n){"use strict";e.exports=n(75251)},91033:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},u=2;var s=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&c()}function s(){a(i)}function c(){var e=Date.now();if(n){if(e-o<u)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return c}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},h=w(0,0,0,0);function v(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+v(e["border-"+n+"-width"])}),0)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=v(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=v(r.width),s=v(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=g(r,"left","right")+i),Math.round(s+a)!==n&&(s-=g(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var c=Math.round(u+i)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return w(o.left,o.top,u,s)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?m(e)?function(e){var t=e.getBBox();return w(0,0,t.width,t.height)}(e):y(e):h}function w(e,t,n,r){return{x:e,y:t,width:n,height:r}}var x=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(e,t){var n,r,o,i,a,u,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),d(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);d(this,{target:e,contentRect:c})},S=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new x(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new r,D=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new S(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var O=void 0!==i.ResizeObserver?i.ResizeObserver:D;t.default=O},98005:function(e,t,n){var r=n(93379),o=n(22989);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},62195:function(e,t,n){var r=n(93379),o=n(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},2026:function(e,t,n){var r=n(93379),o=n(19916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},80666:function(e,t,n){var r=n(93379),o=n(84928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},96354:function(e,t,n){var r=n(93379),o=n(6273);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},42560:function(e,t,n){var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function u(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:g(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function g(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=c(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=c(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(e,t),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},37464:function(e,t,n){"use strict";n.d(t,{W:function(){return r},Z:function(){return o}});var r="paraui-v3",o="component"},79389:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});var r=n(8156),o=n.n(r),i=n(77918),a=n(85893),u=n(97435),s=function(e){return(0,a.jsx)(u.l,Object.assign({dataName:"Help",path:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M512 128a384 384 0 1 1-384 384 384 384 0 0 1 384-384m0-64a448 448 0 1 0 448 448 448 448 0 0 0-448-448z","p-id":"11281"}),(0,a.jsx)("path",{d:"M533.76 654.08H465.92v-19.2a140.8 140.8 0 0 1 64-128A135.04 135.04 0 0 0 598.4 403.2 79.36 79.36 0 0 0 518.4 320Q430.72 320 408.32 429.44l-72.32-18.56A168.32 168.32 0 0 1 528.64 256a144 144 0 0 1 152.32 138.88A167.68 167.68 0 0 1 588.8 544a108.8 108.8 0 0 0-55.04 96zM458.24 704h82.56v88.96H458.24z","p-id":"11282"})]})},e))},c=n(86010),l=n(37464);n(62195);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=function(e){var t=e.title,n=void 0===t?"":t,r=e.children,a=e.arrow,u=void 0===a||a,p=e.className,h=e.placement,v=void 0===h?"top":h,g=d(e,["title","children","arrow","className","placement"]);return o().createElement(i.default,f({title:n,arrow:u,placement:v},g),o().createElement("span",{className:(0,c.Z)(l.W+"-help",p)},r||o().createElement(s,null)))}},18799:function(e,t,n){"use strict";var r=n(8156),o=n.n(r),i=n(37464);n(2026);t.default=function(e){var t=e.className,n=e.style,r=e.error,a=void 0!==r&&r,u=e.hideErrorDom,s=void 0!==u&&u,c=e.helperText;if(null===s)return null;if(!a&&s)return null;var l;return o().createElement("p",{className:(l="".concat(i.W,"-helper-text"),t&&(l+=" "+t),a&&(l+=" ".concat(i.W,"-helper-text-error")),l),style:n},c)}},50134:function(e,t,n){"use strict";var r=n(8156),o=n.n(r),i=n(79389),a=n(37464);n(80666);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(e){var t=e.className,n=e.helpClassName,r=e.style,c=e.label,l=e.labelSign,f=e.required,d=void 0!==f&&f,p=e.tooltip,h=e.tooltipType,v=void 0===h?"icon":h,g=e.placement,y=e.arrow,m=e.tooltipIcon,b=e.onClick,w=s(e,["className","helpClassName","style","label","labelSign","required","tooltip","tooltipType","placement","arrow","tooltipIcon","onClick"]),x=function(){var e=a.W+"-label";return v&&(e+=" ".concat(a.W,"-label-").concat(v)),p&&(e+=" ".concat(a.W,"-label-tooltip")),t&&(e+=" "+t),e},E=function(e){b&&b(e)};return o().createElement(o().Fragment,null,"icon"===v&&o().createElement("label",{className:x(),style:r,onClick:E},o().createElement(o().Fragment,null,c),d&&o().createElement("span",{className:"label-required"},"*"),l&&o().createElement("span",null,l),p&&o().createElement(i.default,u({title:p,placement:g,arrow:y,className:n},w),m)),"line"===v&&o().createElement(i.default,u({title:p||"",placement:g,arrow:y,className:n},w),o().createElement("label",{className:x(),style:r,onClick:E},o().createElement(o().Fragment,null,c),d&&o().createElement("span",{className:"label-required"},"*"),l&&o().createElement("span",null,l))))}},77918:function(e,t,n){"use strict";n.d(t,{default:function(){return O}});var r=n(8156),o=n.n(r),i=n(79483),a=n(24375),u=n(86010),s=n(37464);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function f(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var d={adjustX:1,adjustY:1},p={adjustX:0,adjustY:0},h=[0,0];function v(e){return"boolean"==typeof e?e?d:p:l({},p,e)}function g(e){var t=e.arrowWidth,n=void 0===t?4:t,r=e.horizontalArrowShift,o=void 0===r?16:r,i=e.verticalArrowShift,u=void 0===i?8:i,s=e.autoAdjustOverflow,c=e.arrowPointAtCenter,d={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-(o+n),-8]},leftTop:{points:["tr","cl"],offset:[-8,-(u+n)]},topRight:{points:["br","tc"],offset:[o+n,-8]},rightTop:{points:["tl","cr"],offset:[8,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[o+n,8]},rightBottom:{points:["bl","cr"],offset:[8,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(o+n),8]},leftBottom:{points:["br","cl"],offset:[-8,u+n]}};return Object.keys(d).forEach((function(e){var t,n;d[e]=c?f(l({},d[e]),{overflow:v(s),targetOffset:h}):f(l({},a.Ct[e]),{offset:(t=e,n=b(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}},{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:v(s)}),d[e].ignoreShake=!0})),d}var y=function(e,t){var n={},r=l({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}};function m(e){var t=o().isValidElement(e)?e:o().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=y(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":null}),c=f(l({},i),{pointerEvents:"none"}),d=o().cloneElement(t,{style:c,className:null});return o().createElement("span",{style:a,className:(0,u.Z)(t.props.className,"".concat(s.Z,"-tooltip-disabled-compatible-wrapper"))},d)}return t}function b(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}n(42560);function w(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 x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t){return 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=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D=o().forwardRef((function(e,t){var n,r=C(o().useState(e.defaultVisible),2),a=r[0],c=r[1],l=o().useRef(),f=o().useRef(),d=C(o().useState([0,0]),2),p=d[0],h=d[1];o().useEffect((function(){var t;("visible"in e||"open"in e)&&c(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var v=function(){var t=e.title;return!t&&0!==t},y=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||g({arrowPointAtCenter:n,autoAdjustOverflow:r})},w=e.prefixCls,D=void 0===w?"".concat(s.Z,"-tooltip"):w,O=e.getPopupContainer,A=e.overlayClassName,k=e.overlayInnerStyle,T=e.overlayStyle,B=e.children,_=e.title,P=e.placement,F=e.isPopover,j=e.followCursor,N=e.maxWidth,L=S(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth"]),I=a;"visible"in e||"open"in e||!v()||(I=!1);var R=(0,u.Z)(!F&&"".concat(s.W,"-tooltip"),A,!e.arrow&&"".concat(s.W,"-tooltip-hide-arrow")),M=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}({},T);return N&&(M.maxWidth=N),o().createElement(i.Z,E({},L,{prefixCls:D,placement:j?"top":b(P),overlayClassName:R,getTooltipContainer:O,ref:t||f,builtinPlacements:y(),overlay:_,visible:I,align:{targetOffset:p},onVisibleChange:function(t){var n;("visible"in e||"open"in e||c(!v()&&t),v())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=y(),r=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:M,overlayInnerStyle:k,arrowContent:e.arrow?o().createElement("span",{className:"".concat(s.Z,"-tooltip-arrow-content")}):null,motion:{motionName:"".concat(s.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),j?o().createElement("div",{style:{display:"inline-block"},ref:l,onMouseMove:function(e){if(l.current){var t,n,r,o,i=(null===(t=null===(n=f.current)||void 0===n||null===(r=n.popupRef)||void 0===r||null===(o=r.current)||void 0===o?void 0:o.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,u=l.current.getBoundingClientRect(),s=u.x,c=u.y,d=u.width,p=e.clientX-(s+d/2),v=e.clientY-c+i+a;setTimeout((function(){h([-p,-v])}))}}},m(B)):m(B))}));D.displayName="Tooltip",D.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,arrow:!1,defaultVisible:!1,followCursor:!1};var O=D},58543:function(e){"use strict";e.exports=n},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15861:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,s,"next",e)}function s(e){r(a,o,i,u,s,"throw",e)}u(void 0)}))}}n.d(t,{Z:function(){return o}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67343);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29388:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(61120),o=n(78814),i=n(82963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67343);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},61120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},60136:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(89611);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},78814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},31902:function(e,t,n){"use strict";function r(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,c=!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){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(t,{Z:function(){return r}})},25267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},82963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(97326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},74165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002);function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
42
|
-
o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new A(r||[]);return i(a,"_invoke",{value:S(e,n,u)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function g(){}var y={};l(y,u,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(k([])));b&&b!==t&&n.call(b,u)&&(y=b);var w=g.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(i,a,u,s){var c=d(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,s)}),(function(e){o("throw",e,u,s)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=C(a,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function k(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function u(e,t){return(0,r.Z)(e)||(0,o.Z)(e,t)||(0,i.Z)(e,t)||(0,a.Z)()}},35512:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},67343:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(35512);function i(e){var t=(0,o.Z)(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e](n,n.exports,i),n.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return function(){"use strict";i.r(a),i.d(a,{default:function(){return zge}});var e=i(8156),t=i.n(e),n=i(50134),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var u,s,c=function(e){return e&&e.Math==Math&&e},l=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||function(){return this}()||Function("return this")(),f=Function.prototype,d=f.apply,p=f.bind,h=f.call,v="object"==typeof Reflect&&Reflect.apply||(p?h.bind(d):function(){return h.apply(d,arguments)}),g=Function.prototype,y=g.bind,m=g.call,b=y&&y.bind(m),w=y?function(e){return e&&b(m,e)}:function(e){return e&&function(){return m.apply(e,arguments)}},x=function(e){return"function"==typeof e},E=function(e){try{return!!e()}catch(e){return!0}},S=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,D=C.bind?C.bind(C):function(){return C.apply(C,arguments)},O={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,k=A&&!O.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:O,T={f:k},B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=w({}.toString),P=w("".slice),F=function(e){return P(_(e),8,-1)},j=l.Object,N=w("".split),L=E((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?N(e,""):j(e)}:j,I=l.TypeError,R=function(e){if(null==e)throw I("Can't call method on "+e);return e},M=function(e){return L(R(e))},z=function(e){return"object"==typeof e?null!==e:x(e)},H={},$=function(e){return x(e)?e:void 0},V=function(e,t){return arguments.length<2?$(H[e])||$(l[e]):H[e]&&H[e][t]||l[e]&&l[e][t]},U=w({}.isPrototypeOf),Z=V("navigator","userAgent")||"",W=l.process,G=l.Deno,q=W&&W.versions||G&&G.version,K=q&&q.v8;K&&(s=(u=K.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!s&&Z&&(!(u=Z.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=Z.match(/Chrome\/(\d+)/))&&(s=+u[1]);var Y,X=s,J=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Q=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=l.Object,te=Q?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return x(t)&&U(t.prototype,ee(e))},ne=l.String,re=function(e){try{return ne(e)}catch(e){return"Object"}},oe=l.TypeError,ie=function(e){if(x(e))return e;throw oe(re(e)+" is not a function")},ae=function(e,t){var n=e[t];return null==n?void 0:ie(n)},ue=l.TypeError,se=Object.defineProperty,ce=l["__core-js_shared__"]||function(e,t){try{se(l,e,{value:t,configurable:!0,writable:!0})}catch(n){l[e]=t}return t}("__core-js_shared__",{}),le=o((function(e){(e.exports=function(e,t){return ce[e]||(ce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),fe=l.Object,de=function(e){return fe(R(e))},pe=w({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return pe(de(e),t)},ve=0,ge=Math.random(),ye=w(1..toString),me=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ye(++ve+ge,36)},be=le("wks"),we=l.Symbol,xe=we&&we.for,Ee=Q?we:we&&we.withoutSetter||me,Se=function(e){if(!he(be,e)||!J&&"string"!=typeof be[e]){var t="Symbol."+e;J&&he(we,e)?be[e]=we[e]:be[e]=Q&&xe?xe(t):Ee(t)}return be[e]},Ce=l.TypeError,De=Se("toPrimitive"),Oe=function(e){var t=function(e,t){if(!z(e)||te(e))return e;var n,r=ae(e,De);if(r){if(void 0===t&&(t="default"),n=D(r,e,t),!z(n)||te(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&x(n=e.toString)&&!z(r=D(n,e)))return r;if(x(n=e.valueOf)&&!z(r=D(n,e)))return r;if("string"!==t&&x(n=e.toString)&&!z(r=D(n,e)))return r;throw ue("Can't convert object to primitive value")}(e,t)}(e,"string");return te(t)?t:t+""},Ae=l.document,ke=z(Ae)&&z(Ae.createElement),Te=function(e){return ke?Ae.createElement(e):{}},Be=!S&&!E((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),_e=Object.getOwnPropertyDescriptor,Pe=S?_e:function(e,t){if(e=M(e),t=Oe(t),Be)try{return _e(e,t)}catch(e){}if(he(e,t))return B(!D(T.f,e,t),e[t])},Fe={f:Pe},je=/#|\.prototype\./,Ne=function(e,t){var n=Ie[Le(e)];return n==Me||n!=Re&&(x(t)?E(t):!!t)},Le=Ne.normalize=function(e){return String(e).replace(je,".").toLowerCase()},Ie=Ne.data={},Re=Ne.NATIVE="N",Me=Ne.POLYFILL="P",ze=Ne,He=w(w.bind),$e=function(e,t){return ie(e),void 0===t?e:He?He(e,t):function(){return e.apply(t,arguments)}},Ve=l.String,Ue=l.TypeError,Ze=function(e){if(z(e))return e;throw Ue(Ve(e)+" is not an object")},We=l.TypeError,Ge=Object.defineProperty,qe=S?Ge:function(e,t,n){if(Ze(e),t=Oe(t),Ze(n),Be)try{return Ge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw We("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ke={f:qe},Ye=S?function(e,t,n){return Ke.f(e,t,B(1,n))}:function(e,t,n){return e[t]=n,e},Xe=Fe.f,Je=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return v(e,this,arguments)};return t.prototype=e.prototype,t},Qe=function(e,t){var n,r,o,i,a,u,s,c,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?l:p?l[f]:(l[f]||{}).prototype,g=d?H:H[f]||Ye(H,f,{})[f],y=g.prototype;for(o in t)n=!ze(d?o:f+(p?".":"#")+o,e.forced)&&v&&he(v,o),a=g[o],n&&(u=e.noTargetGet?(c=Xe(v,o))&&c.value:v[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?$e(i,l):e.wrap&&n?Je(i):h&&x(i)?w(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ye(s,"sham",!0),Ye(g,o,s),h&&(he(H,r=f+"Prototype")||Ye(H,r,{}),Ye(H[r],o,i),e.real&&y&&!y[o]&&Ye(y,o,i)))},et=le("keys"),tt=function(e){return et[e]||(et[e]=me(e))},nt=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rt=tt("IE_PROTO"),ot=l.Object,it=ot.prototype,at=nt?ot.getPrototypeOf:function(e){var t=de(e);if(he(t,rt))return t[rt];var n=t.constructor;return x(n)&&t instanceof n?n.prototype:t instanceof ot?it:null},ut=l.String,st=l.TypeError,ct=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ze(n),function(e){if("object"==typeof e||x(e))return e;throw st("Can't set "+ut(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),lt=Math.ceil,ft=Math.floor,dt=function(e){var t=+e;return t!=t||0===t?0:(t>0?ft:lt)(t)},pt=Math.max,ht=Math.min,vt=function(e,t){var n=dt(e);return n<0?pt(n+t,0):ht(n,t)},gt=Math.min,yt=function(e){return(t=e.length)>0?gt(dt(t),9007199254740991):0;var t},mt=function(e){return function(t,n,r){var o,i=M(t),a=yt(i),u=vt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},bt={includes:mt(!0),indexOf:mt(!1)},wt={},xt=bt.indexOf,Et=w([].push),St=function(e,t){var n,r=M(e),o=0,i=[];for(n in r)!he(wt,n)&&he(r,n)&&Et(i,n);for(;t.length>o;)he(r,n=t[o++])&&(~xt(i,n)||Et(i,n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dt=Ct.concat("length","prototype"),Ot=Object.getOwnPropertyNames||function(e){return St(e,Dt)},At={f:Ot},kt={f:Object.getOwnPropertySymbols},Tt=w([].concat),Bt=V("Reflect","ownKeys")||function(e){var t=At.f(Ze(e)),n=kt.f;return n?Tt(t,n(e)):t},_t=Object.keys||function(e){return St(e,Ct)},Pt=S?Object.defineProperties:function(e,t){Ze(e);for(var n,r=M(t),o=_t(t),i=o.length,a=0;i>a;)Ke.f(e,n=o[a++],r[n]);return e},Ft=V("document","documentElement"),jt=tt("IE_PROTO"),Nt=function(){},Lt=function(e){return"<script>"+e+"<\/script>"},It=function(e){e.write(Lt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;Rt="undefined"!=typeof document?document.domain&&Y?It(Y):((t=Te("iframe")).style.display="none",Ft.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Lt("document.F=Object")),e.close(),e.F):It(Y);for(var n=Ct.length;n--;)delete Rt.prototype[Ct[n]];return Rt()};wt[jt]=!0;var Mt=Object.create||function(e,t){var n;return null!==e?(Nt.prototype=Ze(e),n=new Nt,Nt.prototype=null,n[jt]=e):n=Rt(),void 0===t?n:Pt(n,t)},zt=function(e,t,n){var r=Oe(t);r in e?Ke.f(e,r,B(0,n)):e[r]=n},Ht=l.Array,$t=Math.max,Vt=function(e,t,n){for(var r=yt(e),o=vt(t,r),i=vt(void 0===n?r:n,r),a=Ht($t(i-o,0)),u=0;o<i;o++,u++)zt(a,u,e[o]);return a.length=u,a},Ut=w("".replace),Zt=w("".split),Wt=w([].join),Gt=String(Error("zxcasd").stack),qt=/\n\s*at [^:]*:[^\n]*/,Kt=qt.test(Gt),Yt=/@[^\n]*\n/.test(Gt)&&!/zxcasd/.test(Gt),Xt=function(e,t){if("string"!=typeof e)return e;if(Kt)for(;t--;)e=Ut(e,qt,"");else if(Yt)return Wt(Vt(Zt(e,"\n"),t),"\n");return e},Jt=function(e,t){z(t)&&"cause"in t&&Ye(e,"cause",t.cause)},Qt={},en=Se("iterator"),tn=Array.prototype,nn={};nn[Se("toStringTag")]="z";var rn="[object z]"===String(nn),on=Se("toStringTag"),an=l.Object,un="Arguments"==F(function(){return arguments}()),sn=rn?F:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=an(e),on))?n:un?F(t):"Object"==(r=F(t))&&x(t.callee)?"Arguments":r},cn=Se("iterator"),ln=function(e){if(null!=e)return ae(e,cn)||ae(e,"@@iterator")||Qt[sn(e)]},fn=l.TypeError,dn=function(e,t,n){var r,o;Ze(e);try{if(!(r=ae(e,"return"))){if("throw"===t)throw n;return n}r=D(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ze(r),n},pn=l.TypeError,hn=function(e,t){this.stopped=e,this.result=t},vn=hn.prototype,gn=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=$e(t,l),v=function(e){return r&&dn(r,"normal",e),new hn(!0,e)},g=function(e){return f?(Ze(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=ln(e)))throw pn(re(e)+" is not iterable");if(function(e){return void 0!==e&&(Qt.Array===e||tn[en]===e)}(o)){for(i=0,a=yt(e);a>i;i++)if((u=g(e[i]))&&U(vn,u))return u;return new hn(!1)}r=function(e,t){var n=arguments.length<2?ln(e):t;if(ie(n))return Ze(D(n,e));throw fn(re(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=D(s,r)).done;){try{u=g(c.value)}catch(e){dn(r,"throw",e)}if("object"==typeof u&&u&&U(vn,u))return u}return new hn(!1)},yn=l.String,mn=function(e){if("Symbol"===sn(e))throw TypeError("Cannot convert a Symbol value to a string");return yn(e)},bn=function(e,t){return void 0===e?arguments.length<2?"":t:mn(e)},wn=!E((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",B(1,7)),7!==e.stack)})),xn=Se("toStringTag"),En=l.Error,Sn=[].push,Cn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=U(Dn,this);ct?n=ct(new En(void 0),o?at(this):Dn):(n=o?this:Mt(Dn),Ye(n,xn,"Error")),Ye(n,"message",bn(t,"")),wn&&Ye(n,"stack",Xt(n.stack,1)),Jt(n,r);var i=[];return gn(e,Sn,{that:i}),Ye(n,"errors",i),n};ct?ct(Cn,En):function(e,t){for(var n=Bt(t),r=Ke.f,o=Fe.f,i=0;i<n.length;i++){var a=n[i];he(e,a)||r(e,a,o(t,a))}}(Cn,En);var Dn=Cn.prototype=Mt(En.prototype,{constructor:B(1,Cn),message:B(1,""),name:B(1,"AggregateError")});Qe({global:!0},{AggregateError:Cn});var On=w(Function.toString);x(ce.inspectSource)||(ce.inspectSource=function(e){return On(e)});var An,kn,Tn,Bn=ce.inspectSource,_n=l.WeakMap,Pn=x(_n)&&/native code/.test(Bn(_n)),Fn=l.TypeError,jn=l.WeakMap;if(Pn||ce.state){var Nn=ce.state||(ce.state=new jn),Ln=w(Nn.get),In=w(Nn.has),Rn=w(Nn.set);An=function(e,t){if(In(Nn,e))throw new Fn("Object already initialized");return t.facade=e,Rn(Nn,e,t),t},kn=function(e){return Ln(Nn,e)||{}},Tn=function(e){return In(Nn,e)}}else{var Mn=tt("state");wt[Mn]=!0,An=function(e,t){if(he(e,Mn))throw new Fn("Object already initialized");return t.facade=e,Ye(e,Mn,t),t},kn=function(e){return he(e,Mn)?e[Mn]:{}},Tn=function(e){return he(e,Mn)}}var zn,Hn,$n,Vn={set:An,get:kn,has:Tn,enforce:function(e){return Tn(e)?kn(e):An(e,{})},getterFor:function(e){return function(t){var n;if(!z(t)||(n=kn(t)).type!==e)throw Fn("Incompatible receiver, "+e+" required");return n}}},Un=Function.prototype,Zn=S&&Object.getOwnPropertyDescriptor,Wn=he(Un,"name"),Gn={EXISTS:Wn,PROPER:Wn&&"something"===function(){}.name,CONFIGURABLE:Wn&&(!S||S&&Zn(Un,"name").configurable)},qn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ye(e,t,n)},Kn=Se("iterator"),Yn=!1;[].keys&&("next"in($n=[].keys())?(Hn=at(at($n)))!==Object.prototype&&(zn=Hn):Yn=!0);var Xn=null==zn||E((function(){var e={};return zn[Kn].call(e)!==e}));zn=Xn?{}:Mt(zn),x(zn[Kn])||qn(zn,Kn,(function(){return this}));var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Yn},Qn=rn?{}.toString:function(){return"[object "+sn(this)+"]"},er=Ke.f,tr=Se("toStringTag"),nr=function(e,t,n,r){if(e){var o=n?e:e.prototype;he(o,tr)||er(o,tr,{configurable:!0,value:t}),r&&!rn&&Ye(o,"toString",Qn)}},rr=Jn.IteratorPrototype,or=function(){return this},ir=Gn.PROPER,ar=Jn.BUGGY_SAFARI_ITERATORS,ur=Se("iterator"),sr=function(){return this},cr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Mt(rr,{next:B(1,n)}),nr(e,o,!1,!0),Qt[o]=or}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!ar&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ur]||p["@@iterator"]||o&&p[o],v=!ar&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=at(g.call(new e)))!==Object.prototype&&u.next&&(nr(u,f,!0,!0),Qt[f]=sr),ir&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return D(h,this)}),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(ar||d||!(c in p))&&qn(p,c,s[c]);else Qe({target:t,proto:!0,forced:ar||d},s);return a&&p[ur]!==v&&qn(p,ur,v,{name:o}),Qt[t]=v,s},lr=Vn.set,fr=Vn.getterFor("Array Iterator");cr(Array,"Array",(function(e,t){lr(this,{type:"Array Iterator",target:M(e),index:0,kind:t})}),(function(){var e=fr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Qt.Arguments=Qt.Array;var dr=w("".charAt),pr=w("".charCodeAt),hr=w("".slice),vr=function(e){return function(t,n){var r,o,i=mn(R(t)),a=dt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=pr(i,a))<55296||r>56319||a+1===u||(o=pr(i,a+1))<56320||o>57343?e?dr(i,a):r:e?hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},gr=(vr(!1),vr(!0)),yr=Vn.set,mr=Vn.getterFor("String Iterator");cr(String,"String",(function(e){yr(this,{type:"String Iterator",string:mn(e),index:0})}),(function(){var e,t=mr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gr(n,r),t.index+=e.length,{value:e,done:!1})}));var br=H.AggregateError,wr=Se("toStringTag");for(var xr 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 Er=l[xr],Sr=Er&&Er.prototype;Sr&&sn(Sr)!==wr&&Ye(Sr,wr,xr),Qt[xr]=Qt.Array}var Cr,Dr,Or=br,Ar=function(e){return e&&e.Math==Math&&e},kr=Ar("object"==typeof globalThis&&globalThis)||Ar("object"==typeof window&&window)||Ar("object"==typeof self&&self)||Ar("object"==typeof r&&r)||function(){return this}()||Function("return this")(),Tr=function(e){try{return!!e()}catch(e){return!0}},Br=!Tr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_r=Function.prototype.call,Pr=_r.bind?_r.bind(_r):function(){return _r.apply(_r,arguments)},Fr={}.propertyIsEnumerable,jr=Object.getOwnPropertyDescriptor,Nr=jr&&!Fr.call({1:2},1)?function(e){var t=jr(this,e);return!!t&&t.enumerable}:Fr,Lr={f:Nr},Ir=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Function.prototype,Mr=Rr.bind,zr=Rr.call,Hr=Mr&&Mr.bind(zr),$r=Mr?function(e){return e&&Hr(zr,e)}:function(e){return e&&function(){return zr.apply(e,arguments)}},Vr=$r({}.toString),Ur=$r("".slice),Zr=function(e){return Ur(Vr(e),8,-1)},Wr=kr.Object,Gr=$r("".split),qr=Tr((function(){return!Wr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Zr(e)?Gr(e,""):Wr(e)}:Wr,Kr=kr.TypeError,Yr=function(e){if(null==e)throw Kr("Can't call method on "+e);return e},Xr=function(e){return qr(Yr(e))},Jr=function(e){return"function"==typeof e},Qr=function(e){return"object"==typeof e?null!==e:Jr(e)},eo=function(e){return Jr(e)?e:void 0},to=function(e,t){return arguments.length<2?eo(kr[e]):kr[e]&&kr[e][t]},no=$r({}.isPrototypeOf),ro=to("navigator","userAgent")||"",oo=kr.process,io=kr.Deno,ao=oo&&oo.versions||io&&io.version,uo=ao&&ao.v8;uo&&(Dr=(Cr=uo.split("."))[0]>0&&Cr[0]<4?1:+(Cr[0]+Cr[1])),!Dr&&ro&&(!(Cr=ro.match(/Edge\/(\d+)/))||Cr[1]>=74)&&(Cr=ro.match(/Chrome\/(\d+)/))&&(Dr=+Cr[1]);var so=Dr,co=!!Object.getOwnPropertySymbols&&!Tr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&so&&so<41})),lo=co&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fo=kr.Object,po=lo?function(e){return"symbol"==typeof e}:function(e){var t=to("Symbol");return Jr(t)&&no(t.prototype,fo(e))},ho=kr.String,vo=function(e){try{return ho(e)}catch(e){return"Object"}},go=kr.TypeError,yo=function(e){if(Jr(e))return e;throw go(vo(e)+" is not a function")},mo=function(e,t){var n=e[t];return null==n?void 0:yo(n)},bo=kr.TypeError,wo=Object.defineProperty,xo=function(e,t){try{wo(kr,e,{value:t,configurable:!0,writable:!0})}catch(n){kr[e]=t}return t},Eo=kr["__core-js_shared__"]||xo("__core-js_shared__",{}),So=o((function(e){(e.exports=function(e,t){return Eo[e]||(Eo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Co=kr.Object,Do=function(e){return Co(Yr(e))},Oo=$r({}.hasOwnProperty),Ao=Object.hasOwn||function(e,t){return Oo(Do(e),t)},ko=0,To=Math.random(),Bo=$r(1..toString),_o=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bo(++ko+To,36)},Po=So("wks"),Fo=kr.Symbol,jo=Fo&&Fo.for,No=lo?Fo:Fo&&Fo.withoutSetter||_o,Lo=function(e){if(!Ao(Po,e)||!co&&"string"!=typeof Po[e]){var t="Symbol."+e;co&&Ao(Fo,e)?Po[e]=Fo[e]:Po[e]=lo&&jo?jo(t):No(t)}return Po[e]},Io=kr.TypeError,Ro=Lo("toPrimitive"),Mo=function(e){var t=function(e,t){if(!Qr(e)||po(e))return e;var n,r=mo(e,Ro);if(r){if(void 0===t&&(t="default"),n=Pr(r,e,t),!Qr(n)||po(n))return n;throw Io("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Jr(n=e.toString)&&!Qr(r=Pr(n,e)))return r;if(Jr(n=e.valueOf)&&!Qr(r=Pr(n,e)))return r;if("string"!==t&&Jr(n=e.toString)&&!Qr(r=Pr(n,e)))return r;throw bo("Can't convert object to primitive value")}(e,t)}(e,"string");return po(t)?t:t+""},zo=kr.document,Ho=Qr(zo)&&Qr(zo.createElement),$o=function(e){return Ho?zo.createElement(e):{}},Vo=!Br&&!Tr((function(){return 7!=Object.defineProperty($o("div"),"a",{get:function(){return 7}}).a})),Uo=Object.getOwnPropertyDescriptor,Zo=Br?Uo:function(e,t){if(e=Xr(e),t=Mo(t),Vo)try{return Uo(e,t)}catch(e){}if(Ao(e,t))return Ir(!Pr(Lr.f,e,t),e[t])},Wo={f:Zo},Go=kr.String,qo=kr.TypeError,Ko=function(e){if(Qr(e))return e;throw qo(Go(e)+" is not an object")},Yo=kr.TypeError,Xo=Object.defineProperty,Jo=Br?Xo:function(e,t,n){if(Ko(e),t=Mo(t),Ko(n),Vo)try{return Xo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Yo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qo={f:Jo},ei=Br?function(e,t,n){return Qo.f(e,t,Ir(1,n))}:function(e,t,n){return e[t]=n,e},ti=$r(Function.toString);Jr(Eo.inspectSource)||(Eo.inspectSource=function(e){return ti(e)});var ni,ri,oi,ii=Eo.inspectSource,ai=kr.WeakMap,ui=Jr(ai)&&/native code/.test(ii(ai)),si=So("keys"),ci=function(e){return si[e]||(si[e]=_o(e))},li={},fi=kr.TypeError,di=kr.WeakMap;if(ui||Eo.state){var pi=Eo.state||(Eo.state=new di),hi=$r(pi.get),vi=$r(pi.has),gi=$r(pi.set);ni=function(e,t){if(vi(pi,e))throw new fi("Object already initialized");return t.facade=e,gi(pi,e,t),t},ri=function(e){return hi(pi,e)||{}},oi=function(e){return vi(pi,e)}}else{var yi=ci("state");li[yi]=!0,ni=function(e,t){if(Ao(e,yi))throw new fi("Object already initialized");return t.facade=e,ei(e,yi,t),t},ri=function(e){return Ao(e,yi)?e[yi]:{}},oi=function(e){return Ao(e,yi)}}var mi={set:ni,get:ri,has:oi,enforce:function(e){return oi(e)?ri(e):ni(e,{})},getterFor:function(e){return function(t){var n;if(!Qr(t)||(n=ri(t)).type!==e)throw fi("Incompatible receiver, "+e+" required");return n}}},bi=Function.prototype,wi=Br&&Object.getOwnPropertyDescriptor,xi=Ao(bi,"name"),Ei={EXISTS:xi,PROPER:xi&&"something"===function(){}.name,CONFIGURABLE:xi&&(!Br||Br&&wi(bi,"name").configurable)},Si=o((function(e){var t=Ei.CONFIGURABLE,n=mi.get,r=mi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Jr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ao(i,"name")||t&&i.name!==f)&&ei(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==kr?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ei(e,n,i)):c?e[n]=i:xo(n,i)})(Function.prototype,"toString",(function(){return Jr(this)&&n(this).source||ii(this)}))})),Ci=Math.ceil,Di=Math.floor,Oi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Di:Ci)(t)},Ai=Math.max,ki=Math.min,Ti=function(e,t){var n=Oi(e);return n<0?Ai(n+t,0):ki(n,t)},Bi=Math.min,_i=function(e){return e>0?Bi(Oi(e),9007199254740991):0},Pi=function(e){return _i(e.length)},Fi=function(e){return function(t,n,r){var o,i=Xr(t),a=Pi(i),u=Ti(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},ji=(Fi(!0),Fi(!1)),Ni=$r([].push),Li=function(e,t){var n,r=Xr(e),o=0,i=[];for(n in r)!Ao(li,n)&&Ao(r,n)&&Ni(i,n);for(;t.length>o;)Ao(r,n=t[o++])&&(~ji(i,n)||Ni(i,n));return i},Ii=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ri=Ii.concat("length","prototype"),Mi=Object.getOwnPropertyNames||function(e){return Li(e,Ri)},zi={f:Mi},Hi={f:Object.getOwnPropertySymbols},$i=$r([].concat),Vi=to("Reflect","ownKeys")||function(e){var t=zi.f(Ko(e)),n=Hi.f;return n?$i(t,n(e)):t},Ui=function(e,t){for(var n=Vi(t),r=Qo.f,o=Wo.f,i=0;i<n.length;i++){var a=n[i];Ao(e,a)||r(e,a,o(t,a))}},Zi=/#|\.prototype\./,Wi=function(e,t){var n=qi[Gi(e)];return n==Yi||n!=Ki&&(Jr(t)?Tr(t):!!t)},Gi=Wi.normalize=function(e){return String(e).replace(Zi,".").toLowerCase()},qi=Wi.data={},Ki=Wi.NATIVE="N",Yi=Wi.POLYFILL="P",Xi=Wi,Ji=Wo.f,Qi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?kr:c?kr[u]||xo(u,{}):(kr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ji(n,r))&&a.value:n[r],!Xi(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ui(i,o)}(e.sham||o&&o.sham)&&ei(i,"sham",!0),Si(n,r,i,e)}},ea={};ea[Lo("toStringTag")]="z";var ta,na="[object z]"===String(ea),ra=Lo("toStringTag"),oa=kr.Object,ia="Arguments"==Zr(function(){return arguments}()),aa=na?Zr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=oa(e),ra))?n:ia?Zr(t):"Object"==(r=Zr(t))&&Jr(t.callee)?"Arguments":r},ua=kr.String,sa=function(e){if("Symbol"===aa(e))throw TypeError("Cannot convert a Symbol value to a string");return ua(e)},ca=function(){var e=Ko(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},la=kr.RegExp,fa=Tr((function(){var e=la("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),da=fa||Tr((function(){return!la("a","y").sticky})),pa=fa||Tr((function(){var e=la("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ha={BROKEN_CARET:pa,MISSED_STICKY:da,UNSUPPORTED_Y:fa},va=Object.keys||function(e){return Li(e,Ii)},ga=Br?Object.defineProperties:function(e,t){Ko(e);for(var n,r=Xr(t),o=va(t),i=o.length,a=0;i>a;)Qo.f(e,n=o[a++],r[n]);return e},ya=to("document","documentElement"),ma=ci("IE_PROTO"),ba=function(){},wa=function(e){return"<script>"+e+"<\/script>"},xa=function(e){e.write(wa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{ta=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ea="undefined"!=typeof document?document.domain&&ta?xa(ta):((t=$o("iframe")).style.display="none",ya.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wa("document.F=Object")),e.close(),e.F):xa(ta);for(var n=Ii.length;n--;)delete Ea.prototype[Ii[n]];return Ea()};li[ma]=!0;var Sa,Ca,Da=Object.create||function(e,t){var n;return null!==e?(ba.prototype=Ko(e),n=new ba,ba.prototype=null,n[ma]=e):n=Ea(),void 0===t?n:ga(n,t)},Oa=kr.RegExp,Aa=Tr((function(){var e=Oa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ka=kr.RegExp,Ta=Tr((function(){var e=ka("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ba=mi.get,_a=So("native-string-replace",String.prototype.replace),Pa=RegExp.prototype.exec,Fa=Pa,ja=$r("".charAt),Na=$r("".indexOf),La=$r("".replace),Ia=$r("".slice),Ra=(Ca=/b*/g,Pr(Pa,Sa=/a/,"a"),Pr(Pa,Ca,"a"),0!==Sa.lastIndex||0!==Ca.lastIndex),Ma=ha.BROKEN_CARET,za=void 0!==/()??/.exec("")[1];(Ra||za||Ma||Aa||Ta)&&(Fa=function(e){var t,n,r,o,i,a,u,s=this,c=Ba(s),l=sa(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Pr(Fa,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=Ma&&s.sticky,h=Pr(ca,s),v=s.source,g=0,y=l;if(p&&(h=La(h,"y",""),-1===Na(h,"g")&&(h+="g"),y=Ia(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ja(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),za&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ra&&(r=s.lastIndex),o=Pr(Pa,p?n:s,y),p?o?(o.input=Ia(o.input,g),o[0]=Ia(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ra&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),za&&o&&o.length>1&&Pr(_a,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Da(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ha=Fa;Qi({target:"RegExp",proto:!0,forced:/./.exec!==Ha},{exec:Ha});Lo("species");var $a=RegExp.prototype,Va=$r("".charAt),Ua=$r("".charCodeAt),Za=$r("".slice),Wa=function(e){return function(t,n){var r,o,i=sa(Yr(t)),a=Oi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ua(i,a))<55296||r>56319||a+1===u||(o=Ua(i,a+1))<56320||o>57343?e?Va(i,a):r:e?Za(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ga={codeAt:Wa(!1),charAt:Wa(!0)},qa=Ga.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=kr.TypeError,Xa=function(e,t){var n=e.exec;if(Jr(n)){var r=Pr(n,e,t);return null!==r&&Ko(r),r}if("RegExp"===Zr(e))return Pr(Ha,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Lo(e),i=!Tr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Tr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=$r(/./[o]),s=function(e,t,n){return[function(t){var n=Yr(this),r=null==t?void 0:mo(t,e);return r?Pr(r,t,n):new RegExp(t)[e](sa(n))},function(e){var r=Ko(this),o=sa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=Xa(r,o));){var l=sa(u[0]);s[c]=l,""===l&&(r.lastIndex=Ka(o,_i(r.lastIndex),a)),c++}return 0===c?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=$r(e),s=t.exec;return s===Ha||s===$a.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Si(String.prototype,e,s[0]),Si($a,o,s[1])}}("match"),Qi({global:!0},{globalThis:kr});var Ja=!Tr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qa=ci("IE_PROTO"),eu=kr.Object,tu=eu.prototype,nu=Ja?eu.getPrototypeOf:function(e){var t=Do(e);if(Ao(t,Qa))return t[Qa];var n=t.constructor;return Jr(n)&&t instanceof n?n.prototype:t instanceof eu?tu:null},ru=kr.String,ou=kr.TypeError,iu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=$r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ko(n),function(e){if("object"==typeof e||Jr(e))return e;throw ou("Can't set "+ru(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),au=kr.Array,uu=Math.max,su=$r("".replace),cu=$r("".split),lu=$r([].join),fu=String(Error("zxcasd").stack),du=/\n\s*at [^:]*:[^\n]*/,pu=du.test(fu),hu=/@[^\n]*\n/.test(fu)&&!/zxcasd/.test(fu),vu=function(e,t){if("string"!=typeof e)return e;if(pu)for(;t--;)e=su(e,du,"");else if(hu)return lu(function(e,t,n){for(var r,o,i,a,u=Pi(e),s=Ti(t,u),c=Ti(u,u),l=au(uu(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],void 0,(a=Mo(o))in r?Qo.f(r,a,Ir(0,i)):r[a]=i;return l.length=f,l}(cu(e,"\n"),t),"\n");return e},gu=function(e,t){Qr(t)&&"cause"in t&&ei(e,"cause",t.cause)},yu=$r($r.bind),mu=function(e,t){return yo(e),void 0===t?e:yu?yu(e,t):function(){return e.apply(t,arguments)}},bu={},wu=Lo("iterator"),xu=Array.prototype,Eu=Lo("iterator"),Su=function(e){if(null!=e)return mo(e,Eu)||mo(e,"@@iterator")||bu[aa(e)]},Cu=kr.TypeError,Du=function(e,t,n){var r,o;Ko(e);try{if(!(r=mo(e,"return"))){if("throw"===t)throw n;return n}r=Pr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ko(r),n},Ou=kr.TypeError,Au=function(e,t){this.stopped=e,this.result=t},ku=Au.prototype,Tu=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=mu(t,l),v=function(e){return r&&Du(r,"normal",e),new Au(!0,e)},g=function(e){return f?(Ko(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Su(e)))throw Ou(vo(e)+" is not iterable");if(function(e){return void 0!==e&&(bu.Array===e||xu[wu]===e)}(o)){for(i=0,a=Pi(e);a>i;i++)if((u=g(e[i]))&&no(ku,u))return u;return new Au(!1)}r=function(e,t){var n=arguments.length<2?Su(e):t;if(yo(n))return Ko(Pr(n,e));throw Cu(vo(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Pr(s,r)).done;){try{u=g(c.value)}catch(e){Du(r,"throw",e)}if("object"==typeof u&&u&&no(ku,u))return u}return new Au(!1)},Bu=function(e,t){return void 0===e?arguments.length<2?"":t:sa(e)},_u=!Tr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ir(1,7)),7!==e.stack)})),Pu=Lo("toStringTag"),Fu=kr.Error,ju=[].push,Nu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=no(Lu,this);iu?n=iu(new Fu(void 0),o?nu(this):Lu):(n=o?this:Da(Lu),ei(n,Pu,"Error")),ei(n,"message",Bu(t,"")),_u&&ei(n,"stack",vu(n.stack,1)),gu(n,r);var i=[];return Tu(e,ju,{that:i}),ei(n,"errors",i),n};iu?iu(Nu,Fu):Ui(Nu,Fu);var Lu=Nu.prototype=Da(Fu.prototype,{constructor:Ir(1,Nu),message:Ir(1,""),name:Ir(1,"AggregateError")});Qi({global:!0},{AggregateError:Nu});var Iu=Lo("unscopables"),Ru=Array.prototype;null==Ru[Iu]&&Qo.f(Ru,Iu,{configurable:!0,value:Da(null)});var Mu,zu,Hu,$u=function(e){Ru[Iu][e]=!0},Vu=Lo("iterator"),Uu=!1;[].keys&&("next"in(Hu=[].keys())?(zu=nu(nu(Hu)))!==Object.prototype&&(Mu=zu):Uu=!0);var Zu=null==Mu||Tr((function(){var e={};return Mu[Vu].call(e)!==e}));Zu&&(Mu={}),Jr(Mu[Vu])||Si(Mu,Vu,(function(){return this}));var Wu={IteratorPrototype:Mu,BUGGY_SAFARI_ITERATORS:Uu},Gu=Qo.f,qu=Lo("toStringTag"),Ku=function(e,t,n){e&&!Ao(e=n?e:e.prototype,qu)&&Gu(e,qu,{configurable:!0,value:t})},Yu=Wu.IteratorPrototype,Xu=function(){return this},Ju=Ei.PROPER,Qu=Ei.CONFIGURABLE,es=Wu.IteratorPrototype,ts=Wu.BUGGY_SAFARI_ITERATORS,ns=Lo("iterator"),rs=function(){return this},os=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Da(Yu,{next:Ir(1,n)}),Ku(e,o,!1),bu[o]=Xu}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!ts&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ns]||p["@@iterator"]||o&&p[o],v=!ts&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=nu(g.call(new e)))!==Object.prototype&&u.next&&(nu(u)!==es&&(iu?iu(u,es):Jr(u[ns])||Si(u,ns,rs)),Ku(u,f,!0)),Ju&&"values"==o&&h&&"values"!==h.name&&(Qu?ei(p,"name","values"):(d=!0,v=function(){return Pr(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(ts||d||!(c in p))&&Si(p,c,s[c]);else Qi({target:t,proto:!0,forced:ts||d},s);return p[ns]!==v&&Si(p,ns,v,{name:o}),bu[t]=v,s},is=mi.set,as=mi.getterFor("Array Iterator"),us=os(Array,"Array",(function(e,t){is(this,{type:"Array Iterator",target:Xr(e),index:0,kind:t})}),(function(){var e=as(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bu.Arguments=bu.Array,$u("keys"),$u("values"),$u("entries");var ss=Ga.charAt,cs=mi.set,ls=mi.getterFor("String Iterator");os(String,"String",(function(e){cs(this,{type:"String Iterator",string:sa(e),index:0})}),(function(){var e,t=ls(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ss(n,r),t.index+=e.length,{value:e,done:!1})}));var fs,ds={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},ps=$o("span").classList,hs=ps&&ps.constructor&&ps.constructor.prototype,vs=hs===Object.prototype?void 0:hs,gs=Lo("iterator"),ys=Lo("toStringTag"),ms=us.values,bs=function(e,t){if(e){if(e[gs]!==ms)try{ei(e,gs,ms)}catch(t){e[gs]=ms}if(e[ys]||ei(e,ys,t),ds[t])for(var n in us)if(e[n]!==us[n])try{ei(e,n,us[n])}catch(t){e[n]=us[n]}}};for(var ws in ds)bs(kr[ws]&&kr[ws].prototype,ws);function xs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Es(){void 0===Or&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}bs(vs,"DOMTokenList"),void 0===i.g?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),xs(),Es()):i.g&&(null===(fs=i.g.navigator)||void 0===fs?void 0:fs.userAgent.match("QQBrowser"))&&(xs(),Es());var Ss=Array.isArray||function(e){return"Array"==F(e)},Cs=function(){},Ds=[],Os=V("Reflect","construct"),As=/^\s*(?:class|function)\b/,ks=w(As.exec),Ts=!As.exec(Cs),Bs=function(e){if(!x(e))return!1;try{return Os(Cs,Ds,e),!0}catch(e){return!1}},_s=!Os||E((function(){var e;return Bs(Bs.call)||!Bs(Object)||!Bs((function(){e=!0}))||e}))?function(e){if(!x(e))return!1;switch(sn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ts||!!ks(As,Bn(e))}:Bs,Ps=Se("species"),Fs=l.Array,js=function(e,t){return new(function(e){var t;return Ss(e)&&(t=e.constructor,(_s(t)&&(t===Fs||Ss(t.prototype))||z(t)&&null===(t=t[Ps]))&&(t=void 0)),void 0===t?Fs:t}(e))(0===t?0:t)},Ns=Se("species"),Ls=Se("isConcatSpreadable"),Is=l.TypeError,Rs=X>=51||!E((function(){var e=[];return e[Ls]=!1,e.concat()[0]!==e})),Ms=("concat",X>=51||!E((function(){var e=[];return(e.constructor={})[Ns]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),zs=function(e){if(!z(e))return!1;var t=e[Ls];return void 0!==t?!!t:Ss(e)};Qe({target:"Array",proto:!0,forced:!Rs||!Ms},{concat:function(e){var t,n,r,o,i,a=de(this),u=js(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(zs(i=-1===t?a:arguments[t])){if(s+(o=yt(i))>9007199254740991)throw Is("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&zt(u,s,i[n])}else{if(s>=9007199254740991)throw Is("Maximum allowed index exceeded");zt(u,s++,i)}return u.length=s,u}});var Hs=At.f,$s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vs={f:function(e){return $s&&"Window"==F(e)?function(e){try{return Hs(e)}catch(e){return Vt($s)}}(e):Hs(M(e))}},Us=w([].slice),Zs={f:Se},Ws=Ke.f,Gs=function(e){var t=H.Symbol||(H.Symbol={});he(t,e)||Ws(t,e,{value:Zs.f(e)})},qs=w([].push),Ks=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=de(s),v=L(h),g=$e(c,l),y=yt(v),m=0,b=f||js,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:qs(w,d)}else switch(e){case 4:return!1;case 7:qs(w,d)}return i?-1:r||o?o:w}},Ys=[Ks(0),Ks(1),Ks(2),Ks(3),Ks(4),Ks(5),Ks(6),Ks(7)][0],Xs=tt("hidden"),Js=Se("toPrimitive"),Qs=Vn.set,ec=Vn.getterFor("Symbol"),tc=Object.prototype,nc=l.Symbol,rc=nc&&nc.prototype,oc=l.TypeError,ic=l.QObject,ac=V("JSON","stringify"),uc=Fe.f,sc=Ke.f,cc=Vs.f,lc=T.f,fc=w([].push),dc=le("symbols"),pc=le("op-symbols"),hc=le("string-to-symbol-registry"),vc=le("symbol-to-string-registry"),gc=le("wks"),yc=!ic||!ic.prototype||!ic.prototype.findChild,mc=S&&E((function(){return 7!=Mt(sc({},"a",{get:function(){return sc(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=uc(tc,t);r&&delete tc[t],sc(e,t,n),r&&e!==tc&&sc(tc,t,r)}:sc,bc=function(e,t){var n=dc[e]=Mt(rc);return Qs(n,{type:"Symbol",tag:e,description:t}),S||(n.description=t),n},wc=function(e,t,n){e===tc&&wc(pc,t,n),Ze(e);var r=Oe(t);return Ze(n),he(dc,r)?(n.enumerable?(he(e,Xs)&&e[Xs][r]&&(e[Xs][r]=!1),n=Mt(n,{enumerable:B(0,!1)})):(he(e,Xs)||sc(e,Xs,B(1,{})),e[Xs][r]=!0),mc(e,r,n)):sc(e,r,n)},xc=function(e,t){Ze(e);var n=M(t),r=_t(n).concat(Dc(n));return Ys(r,(function(t){S&&!D(Ec,n,t)||wc(e,t,n[t])})),e},Ec=function(e){var t=Oe(e),n=D(lc,this,t);return!(this===tc&&he(dc,t)&&!he(pc,t))&&(!(n||!he(this,t)||!he(dc,t)||he(this,Xs)&&this[Xs][t])||n)},Sc=function(e,t){var n=M(e),r=Oe(t);if(n!==tc||!he(dc,r)||he(pc,r)){var o=uc(n,r);return!o||!he(dc,r)||he(n,Xs)&&n[Xs][r]||(o.enumerable=!0),o}},Cc=function(e){var t=cc(M(e)),n=[];return Ys(t,(function(e){he(dc,e)||he(wt,e)||fc(n,e)})),n},Dc=function(e){var t=e===tc,n=cc(t?pc:M(e)),r=[];return Ys(n,(function(e){!he(dc,e)||t&&!he(tc,e)||fc(r,dc[e])})),r};if(J||(rc=(nc=function(){if(U(rc,this))throw oc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?mn(arguments[0]):void 0,t=me(e),n=function(e){this===tc&&D(n,pc,e),he(this,Xs)&&he(this[Xs],t)&&(this[Xs][t]=!1),mc(this,t,B(1,e))};return S&&yc&&mc(tc,t,{configurable:!0,set:n}),bc(t,e)}).prototype,qn(rc,"toString",(function(){return ec(this).tag})),qn(nc,"withoutSetter",(function(e){return bc(me(e),e)})),T.f=Ec,Ke.f=wc,Fe.f=Sc,At.f=Vs.f=Cc,kt.f=Dc,Zs.f=function(e){return bc(Se(e),e)},S&&sc(rc,"description",{configurable:!0,get:function(){return ec(this).description}})),Qe({global:!0,wrap:!0,forced:!J,sham:!J},{Symbol:nc}),Ys(_t(gc),(function(e){Gs(e)})),Qe({target:"Symbol",stat:!0,forced:!J},{for:function(e){var t=mn(e);if(he(hc,t))return hc[t];var n=nc(t);return hc[t]=n,vc[n]=t,n},keyFor:function(e){if(!te(e))throw oc(e+" is not a symbol");if(he(vc,e))return vc[e]},useSetter:function(){yc=!0},useSimple:function(){yc=!1}}),Qe({target:"Object",stat:!0,forced:!J,sham:!S},{create:function(e,t){return void 0===t?Mt(e):xc(Mt(e),t)},defineProperty:wc,defineProperties:xc,getOwnPropertyDescriptor:Sc}),Qe({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:Cc,getOwnPropertySymbols:Dc}),Qe({target:"Object",stat:!0,forced:E((function(){kt.f(1)}))},{getOwnPropertySymbols:function(e){return kt.f(de(e))}}),ac){var Oc=!J||E((function(){var e=nc();return"[null]"!=ac([e])||"{}"!=ac({a:e})||"{}"!=ac(Object(e))}));Qe({target:"JSON",stat:!0,forced:Oc},{stringify:function(e,t,n){var r=Us(arguments),o=t;if((z(t)||void 0!==e)&&!te(e))return Ss(t)||(t=function(e,t){if(x(o)&&(t=D(o,this,e,t)),!te(t))return t}),r[1]=t,v(ac,null,r)}})}if(!rc[Js]){var Ac=rc.valueOf;qn(rc,Js,(function(e){return D(Ac,this)}))}nr(nc,"Symbol"),wt[Xs]=!0,Gs("asyncIterator"),Gs("hasInstance"),Gs("isConcatSpreadable"),Gs("iterator"),Gs("match"),Gs("matchAll"),Gs("replace"),Gs("search"),Gs("species"),Gs("split"),Gs("toPrimitive"),Gs("toStringTag"),Gs("unscopables"),nr(l.JSON,"JSON",!0);var kc=H.Symbol;Gs("asyncDispose"),Gs("dispose"),Gs("matcher"),Gs("metadata"),Gs("observable"),Gs("patternMatch"),Gs("replaceAll");var Tc=kc,Bc=Zs.f("iterator"),_c=o((function(e){function t(n){return"function"==typeof Tc&&"symbol"==typeof Bc?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Tc&&e.constructor===Tc&&e!==Tc.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Pc=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(_c),Fc=Wo.f,jc=Tr((function(){Fc(1)}));if(Qi({target:"Object",stat:!0,forced:!Br||jc,sham:!Br},{getOwnPropertyDescriptor:function(e,t){return Fc(Xr(e),t)}}),"object"===(void 0===i.g?"undefined":Pc(i.g))){var Nc=Object.getOwnPropertyDescriptor(i.g,"window");i.g.window&&!Nc.set||(i.g.window=i.g,i.g.requestAnimationFrame=function(){},i.g.navigator={userAgent:""},i.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},i.g.btoa=function(){},i.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=i.g.document&&null==i.g.document.getElementsByTagName&&(i.g.document.getElementsByTagName=function(){return[]})}
|
|
41
|
+
*/n(27418);var r=n(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},85893:function(e,t,n){"use strict";e.exports=n(75251)},91033:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},u=2;var s=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&c()}function s(){a(i)}function c(){var e=Date.now();if(n){if(e-o<u)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return c}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;c.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},h=w(0,0,0,0);function v(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+v(e["border-"+n+"-width"])}),0)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=v(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=v(r.width),s=v(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=g(r,"left","right")+i),Math.round(s+a)!==n&&(s-=g(r,"top","bottom")+a)),!function(e){return e===p(e).document.documentElement}(e)){var c=Math.round(u+i)-t,l=Math.round(s+a)-n;1!==Math.abs(c)&&(u-=c),1!==Math.abs(l)&&(s-=l)}return w(o.left,o.top,u,s)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?m(e)?function(e){var t=e.getBBox();return w(0,0,t.width,t.height)}(e):y(e):h}function w(e,t,n,r){return{x:e,y:t,width:n,height:r}}var x=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(e,t){var n,r,o,i,a,u,s,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),d(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);d(this,{target:e,contentRect:c})},S=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new x(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new r,D=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new S(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var O=void 0!==i.ResizeObserver?i.ResizeObserver:D;t.default=O},98005:function(e,t,n){var r=n(93379),o=n(22989);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},62195:function(e,t,n){var r=n(93379),o=n(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},2026:function(e,t,n){var r=n(93379),o=n(19916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},80666:function(e,t,n){var r=n(93379),o=n(84928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},96354:function(e,t,n){var r=n(93379),o=n(6273);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},42560:function(e,t,n){var r=n(93379),o=n(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function u(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],c=n[s]||0,l="".concat(s," ").concat(c);n[s]=c+1;var f=u(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:l,updater:g(d,t),references:1}),r.push(l)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function g(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=c(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=c(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=u(n[r]);a[o].references--}for(var i=s(e,t),c=0;c<n.length;c++){var l=u(n[c]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}n=i}}}},37464:function(e,t,n){"use strict";n.d(t,{W:function(){return r},Z:function(){return o}});var r="paraui-v3",o="component"},79389:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});var r=n(8156),o=n.n(r),i=n(77918),a=n(85893),u=n(97435),s=function(e){return(0,a.jsx)(u.l,Object.assign({dataName:"Help",path:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("path",{d:"M512 128a384 384 0 1 1-384 384 384 384 0 0 1 384-384m0-64a448 448 0 1 0 448 448 448 448 0 0 0-448-448z","p-id":"11281"}),(0,a.jsx)("path",{d:"M533.76 654.08H465.92v-19.2a140.8 140.8 0 0 1 64-128A135.04 135.04 0 0 0 598.4 403.2 79.36 79.36 0 0 0 518.4 320Q430.72 320 408.32 429.44l-72.32-18.56A168.32 168.32 0 0 1 528.64 256a144 144 0 0 1 152.32 138.88A167.68 167.68 0 0 1 588.8 544a108.8 108.8 0 0 0-55.04 96zM458.24 704h82.56v88.96H458.24z","p-id":"11282"})]})},e))},c=n(86010),l=n(37464);n(62195);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p=function(e){var t=e.title,n=void 0===t?"":t,r=e.children,a=e.arrow,u=void 0===a||a,p=e.className,h=e.placement,v=void 0===h?"top":h,g=d(e,["title","children","arrow","className","placement"]);return o().createElement(i.default,f({title:n,arrow:u,placement:v},g),o().createElement("span",{className:(0,c.Z)(l.W+"-help",p)},r||o().createElement(s,null)))}},18799:function(e,t,n){"use strict";var r=n(8156),o=n.n(r),i=n(37464);n(2026);t.default=function(e){var t=e.className,n=e.style,r=e.error,a=void 0!==r&&r,u=e.hideErrorDom,s=void 0!==u&&u,c=e.helperText;if(null===s)return null;if(!a&&s)return null;var l;return o().createElement("p",{className:(l="".concat(i.W,"-helper-text"),t&&(l+=" "+t),a&&(l+=" ".concat(i.W,"-helper-text-error")),l),style:n},c)}},50134:function(e,t,n){"use strict";var r=n(8156),o=n.n(r),i=n(79389),a=n(37464);n(80666);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(e){var t=e.className,n=e.helpClassName,r=e.style,c=e.label,l=e.labelSign,f=e.required,d=void 0!==f&&f,p=e.tooltip,h=e.tooltipType,v=void 0===h?"icon":h,g=e.placement,y=e.arrow,m=e.tooltipIcon,b=e.onClick,w=s(e,["className","helpClassName","style","label","labelSign","required","tooltip","tooltipType","placement","arrow","tooltipIcon","onClick"]),x=function(){var e=a.W+"-label";return v&&(e+=" ".concat(a.W,"-label-").concat(v)),p&&(e+=" ".concat(a.W,"-label-tooltip")),t&&(e+=" "+t),e},E=function(e){b&&b(e)};return o().createElement(o().Fragment,null,"icon"===v&&o().createElement("label",{className:x(),style:r,onClick:E},o().createElement(o().Fragment,null,c),d&&o().createElement("span",{className:"label-required"},"*"),l&&o().createElement("span",null,l),p&&o().createElement(i.default,u({title:p,placement:g,arrow:y,className:n},w),m)),"line"===v&&o().createElement(i.default,u({title:p||"",placement:g,arrow:y,className:n},w),o().createElement("label",{className:x(),style:r,onClick:E},o().createElement(o().Fragment,null,c),d&&o().createElement("span",{className:"label-required"},"*"),l&&o().createElement("span",null,l))))}},77918:function(e,t,n){"use strict";n.d(t,{default:function(){return O}});var r=n(8156),o=n.n(r),i=n(79483),a=n(24375),u=n(86010),s=n(37464);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){c(e,t,n[t])}))}return e}function f(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}var d={adjustX:1,adjustY:1},p={adjustX:0,adjustY:0},h=[0,0];function v(e){return"boolean"==typeof e?e?d:p:l({},p,e)}function g(e){var t=e.arrowWidth,n=void 0===t?4:t,r=e.horizontalArrowShift,o=void 0===r?16:r,i=e.verticalArrowShift,u=void 0===i?8:i,s=e.autoAdjustOverflow,c=e.arrowPointAtCenter,d={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tc"],offset:[-(o+n),-8]},leftTop:{points:["tr","cl"],offset:[-8,-(u+n)]},topRight:{points:["br","tc"],offset:[o+n,-8]},rightTop:{points:["tl","cr"],offset:[8,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[o+n,8]},rightBottom:{points:["bl","cr"],offset:[8,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(o+n),8]},leftBottom:{points:["br","cl"],offset:[-8,u+n]}};return Object.keys(d).forEach((function(e){var t,n;d[e]=c?f(l({},d[e]),{overflow:v(s),targetOffset:h}):f(l({},a.Ct[e]),{offset:(t=e,n=b(t),{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}},{left:{offset:[-8,0]},right:{offset:[8,0]},top:{offset:[0,-8]},bottom:{offset:[0,8]},topLeft:{offset:[0,-8]},leftTop:{offset:[-8,0]},topRight:{offset:[0,-8]},rightTop:{offset:[8,0]},bottomRight:{offset:[0,8]},rightBottom:{offset:[8,0]},bottomLeft:{offset:[0,8]},leftBottom:{offset:[-8,0]}}[n]).offset,overflow:v(s)}),d[e].ignoreShake=!0})),d}var y=function(e,t){var n={},r=l({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}};function m(e){var t=o().isValidElement(e)?e:o().createElement("span",null,e);if("button"===t.type&&t.props.disabled){var n=y(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=f(l({display:"inline-block"},r),{cursor:"not-allowed",width:t.props.block?"100%":null}),c=f(l({},i),{pointerEvents:"none"}),d=o().cloneElement(t,{style:c,className:null});return o().createElement("span",{style:a,className:(0,u.Z)(t.props.className,"".concat(s.Z,"-tooltip-disabled-compatible-wrapper"))},d)}return t}function b(e){return{"bottom-end":"bottomRight","bottom-start":"bottomLeft","left-end":"leftBottom","left-start":"leftTop","right-end":"rightBottom","right-start":"rightTop","top-end":"topRight","top-start":"topLeft"}[e]||e}n(42560);function w(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 x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function C(e,t){return 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=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var D=o().forwardRef((function(e,t){var n,r=C(o().useState(e.defaultVisible),2),a=r[0],c=r[1],l=o().useRef(),f=o().useRef(),d=C(o().useState([0,0]),2),p=d[0],h=d[1];o().useEffect((function(){var t;("visible"in e||"open"in e)&&c(!!(null!==(t=e.visible)&&void 0!==t?t:e.open))}),[null!==(n=e.visible)&&void 0!==n?n:e.open]);var v=function(){var t=e.title;return!t&&0!==t},y=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||g({arrowPointAtCenter:n,autoAdjustOverflow:r})},w=e.prefixCls,D=void 0===w?"".concat(s.Z,"-tooltip"):w,O=e.getPopupContainer,A=e.overlayClassName,k=e.overlayInnerStyle,T=e.overlayStyle,B=e.children,_=e.title,P=e.placement,F=e.isPopover,j=e.followCursor,N=e.maxWidth,L=S(e,["prefixCls","getPopupContainer","overlayClassName","overlayInnerStyle","overlayStyle","children","title","placement","isPopover","followCursor","maxWidth"]),I=a;"visible"in e||"open"in e||!v()||(I=!1);var R=(0,u.Z)(!F&&"".concat(s.W,"-tooltip"),A,!e.arrow&&"".concat(s.W,"-tooltip-hide-arrow")),M=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){x(e,t,n[t])}))}return e}({},T);return N&&(M.maxWidth=N),o().createElement(i.Z,E({},L,{prefixCls:D,placement:j?"top":b(P),overlayClassName:R,getTooltipContainer:O,ref:t||f,builtinPlacements:y(),overlay:_,visible:I,align:{targetOffset:p},onVisibleChange:function(t){var n;("visible"in e||"open"in e||c(!v()&&t),v())||(null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},onPopupAlign:function(e,t){var n=y(),r=Object.keys(n).find((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}));if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayStyle:M,overlayInnerStyle:k,arrowContent:e.arrow?o().createElement("span",{className:"".concat(s.Z,"-tooltip-arrow-content")}):null,motion:{motionName:"".concat(s.Z,"-tooltip-zoom-big-fast"),motionDeadline:1e3}}),j?o().createElement("div",{style:{display:"inline-block"},ref:l,onMouseMove:function(e){if(l.current){var t,n,r,o,i=(null===(t=null===(n=f.current)||void 0===n||null===(r=n.popupRef)||void 0===r||null===(o=r.current)||void 0===o?void 0:o.getElement())||void 0===t?void 0:t.offsetHeight)||0,a=0===i?60:30,u=l.current.getBoundingClientRect(),s=u.x,c=u.y,d=u.width,p=e.clientX-(s+d/2),v=e.clientY-c+i+a;setTimeout((function(){h([-p,-v])}))}}},m(B)):m(B))}));D.displayName="Tooltip",D.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,arrow:!1,defaultVisible:!1,followCursor:!1};var O=D},65395:function(e){"use strict";e.exports=n},58543:function(e){"use strict";e.exports=r},8156:function(t){"use strict";t.exports=e},47111:function(e){"use strict";e.exports=t},30907:function(e,t,n){"use strict";function r(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}n.d(t,{Z:function(){return r}})},83878:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},97326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15861:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function u(e){r(a,o,i,u,s,"next",e)}function s(e){r(a,o,i,u,s,"throw",e)}u(void 0)}))}}n.d(t,{Z:function(){return o}})},15671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},43144:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(67343);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29388:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(61120),o=n(78814),i=n(82963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67343);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},87462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},61120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},60136:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(89611);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},78814:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},31902:function(e,t,n){"use strict";function r(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,c=!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){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}n.d(t,{Z:function(){return r}})},25267:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},45987:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})},82963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(97326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},74165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002);function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
42
|
+
o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),u=new A(r||[]);return i(a,"_invoke",{value:S(e,n,u)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function v(){}function g(){}var y={};l(y,u,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(k([])));b&&b!==t&&n.call(b,u)&&(y=b);var w=g.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function o(i,a,u,s){var c=d(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,u,s)}),(function(e){o("throw",e,u,s)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return o("throw",e,u,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=C(a,n);if(u){if(u===p)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=d(e,t,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function k(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return v.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(E.prototype),l(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(f(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},89611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},93324:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(83878),o=n(31902),i=n(40181),a=n(25267);function u(e,t){return(0,r.Z)(e)||(0,o.Z)(e,t)||(0,i.Z)(e,t)||(0,a.Z)()}},35512:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(71002);function o(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},67343:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71002),o=n(35512);function i(e){var t=(0,o.Z)(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},71002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},40181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return o[e](n,n.exports,a),n.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var u={};return function(){"use strict";a.r(u),a.d(u,{default:function(){return Uge}});var e=a(8156),t=a.n(e),n=a(50134),r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var i,s,c=function(e){return e&&e.Math==Math&&e},l=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||function(){return this}()||Function("return this")(),f=Function.prototype,d=f.apply,p=f.bind,h=f.call,v="object"==typeof Reflect&&Reflect.apply||(p?h.bind(d):function(){return h.apply(d,arguments)}),g=Function.prototype,y=g.bind,m=g.call,b=y&&y.bind(m),w=y?function(e){return e&&b(m,e)}:function(e){return e&&function(){return m.apply(e,arguments)}},x=function(e){return"function"==typeof e},E=function(e){try{return!!e()}catch(e){return!0}},S=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=Function.prototype.call,D=C.bind?C.bind(C):function(){return C.apply(C,arguments)},O={}.propertyIsEnumerable,A=Object.getOwnPropertyDescriptor,k=A&&!O.call({1:2},1)?function(e){var t=A(this,e);return!!t&&t.enumerable}:O,T={f:k},B=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_=w({}.toString),P=w("".slice),F=function(e){return P(_(e),8,-1)},j=l.Object,N=w("".split),L=E((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?N(e,""):j(e)}:j,I=l.TypeError,R=function(e){if(null==e)throw I("Can't call method on "+e);return e},M=function(e){return L(R(e))},z=function(e){return"object"==typeof e?null!==e:x(e)},H={},$=function(e){return x(e)?e:void 0},V=function(e,t){return arguments.length<2?$(H[e])||$(l[e]):H[e]&&H[e][t]||l[e]&&l[e][t]},U=w({}.isPrototypeOf),Z=V("navigator","userAgent")||"",W=l.process,G=l.Deno,q=W&&W.versions||G&&G.version,K=q&&q.v8;K&&(s=(i=K.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!s&&Z&&(!(i=Z.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=Z.match(/Chrome\/(\d+)/))&&(s=+i[1]);var Y,X=s,J=!!Object.getOwnPropertySymbols&&!E((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Q=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=l.Object,te=Q?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return x(t)&&U(t.prototype,ee(e))},ne=l.String,re=function(e){try{return ne(e)}catch(e){return"Object"}},oe=l.TypeError,ie=function(e){if(x(e))return e;throw oe(re(e)+" is not a function")},ae=function(e,t){var n=e[t];return null==n?void 0:ie(n)},ue=l.TypeError,se=Object.defineProperty,ce=l["__core-js_shared__"]||function(e,t){try{se(l,e,{value:t,configurable:!0,writable:!0})}catch(n){l[e]=t}return t}("__core-js_shared__",{}),le=o((function(e){(e.exports=function(e,t){return ce[e]||(ce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),fe=l.Object,de=function(e){return fe(R(e))},pe=w({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return pe(de(e),t)},ve=0,ge=Math.random(),ye=w(1..toString),me=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ye(++ve+ge,36)},be=le("wks"),we=l.Symbol,xe=we&&we.for,Ee=Q?we:we&&we.withoutSetter||me,Se=function(e){if(!he(be,e)||!J&&"string"!=typeof be[e]){var t="Symbol."+e;J&&he(we,e)?be[e]=we[e]:be[e]=Q&&xe?xe(t):Ee(t)}return be[e]},Ce=l.TypeError,De=Se("toPrimitive"),Oe=function(e){var t=function(e,t){if(!z(e)||te(e))return e;var n,r=ae(e,De);if(r){if(void 0===t&&(t="default"),n=D(r,e,t),!z(n)||te(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&x(n=e.toString)&&!z(r=D(n,e)))return r;if(x(n=e.valueOf)&&!z(r=D(n,e)))return r;if("string"!==t&&x(n=e.toString)&&!z(r=D(n,e)))return r;throw ue("Can't convert object to primitive value")}(e,t)}(e,"string");return te(t)?t:t+""},Ae=l.document,ke=z(Ae)&&z(Ae.createElement),Te=function(e){return ke?Ae.createElement(e):{}},Be=!S&&!E((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),_e=Object.getOwnPropertyDescriptor,Pe=S?_e:function(e,t){if(e=M(e),t=Oe(t),Be)try{return _e(e,t)}catch(e){}if(he(e,t))return B(!D(T.f,e,t),e[t])},Fe={f:Pe},je=/#|\.prototype\./,Ne=function(e,t){var n=Ie[Le(e)];return n==Me||n!=Re&&(x(t)?E(t):!!t)},Le=Ne.normalize=function(e){return String(e).replace(je,".").toLowerCase()},Ie=Ne.data={},Re=Ne.NATIVE="N",Me=Ne.POLYFILL="P",ze=Ne,He=w(w.bind),$e=function(e,t){return ie(e),void 0===t?e:He?He(e,t):function(){return e.apply(t,arguments)}},Ve=l.String,Ue=l.TypeError,Ze=function(e){if(z(e))return e;throw Ue(Ve(e)+" is not an object")},We=l.TypeError,Ge=Object.defineProperty,qe=S?Ge:function(e,t,n){if(Ze(e),t=Oe(t),Ze(n),Be)try{return Ge(e,t,n)}catch(e){}if("get"in n||"set"in n)throw We("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ke={f:qe},Ye=S?function(e,t,n){return Ke.f(e,t,B(1,n))}:function(e,t,n){return e[t]=n,e},Xe=Fe.f,Je=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return v(e,this,arguments)};return t.prototype=e.prototype,t},Qe=function(e,t){var n,r,o,i,a,u,s,c,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?l:p?l[f]:(l[f]||{}).prototype,g=d?H:H[f]||Ye(H,f,{})[f],y=g.prototype;for(o in t)n=!ze(d?o:f+(p?".":"#")+o,e.forced)&&v&&he(v,o),a=g[o],n&&(u=e.noTargetGet?(c=Xe(v,o))&&c.value:v[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?$e(i,l):e.wrap&&n?Je(i):h&&x(i)?w(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ye(s,"sham",!0),Ye(g,o,s),h&&(he(H,r=f+"Prototype")||Ye(H,r,{}),Ye(H[r],o,i),e.real&&y&&!y[o]&&Ye(y,o,i)))},et=le("keys"),tt=function(e){return et[e]||(et[e]=me(e))},nt=!E((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rt=tt("IE_PROTO"),ot=l.Object,it=ot.prototype,at=nt?ot.getPrototypeOf:function(e){var t=de(e);if(he(t,rt))return t[rt];var n=t.constructor;return x(n)&&t instanceof n?n.prototype:t instanceof ot?it:null},ut=l.String,st=l.TypeError,ct=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ze(n),function(e){if("object"==typeof e||x(e))return e;throw st("Can't set "+ut(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),lt=Math.ceil,ft=Math.floor,dt=function(e){var t=+e;return t!=t||0===t?0:(t>0?ft:lt)(t)},pt=Math.max,ht=Math.min,vt=function(e,t){var n=dt(e);return n<0?pt(n+t,0):ht(n,t)},gt=Math.min,yt=function(e){return(t=e.length)>0?gt(dt(t),9007199254740991):0;var t},mt=function(e){return function(t,n,r){var o,i=M(t),a=yt(i),u=vt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},bt={includes:mt(!0),indexOf:mt(!1)},wt={},xt=bt.indexOf,Et=w([].push),St=function(e,t){var n,r=M(e),o=0,i=[];for(n in r)!he(wt,n)&&he(r,n)&&Et(i,n);for(;t.length>o;)he(r,n=t[o++])&&(~xt(i,n)||Et(i,n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dt=Ct.concat("length","prototype"),Ot=Object.getOwnPropertyNames||function(e){return St(e,Dt)},At={f:Ot},kt={f:Object.getOwnPropertySymbols},Tt=w([].concat),Bt=V("Reflect","ownKeys")||function(e){var t=At.f(Ze(e)),n=kt.f;return n?Tt(t,n(e)):t},_t=Object.keys||function(e){return St(e,Ct)},Pt=S?Object.defineProperties:function(e,t){Ze(e);for(var n,r=M(t),o=_t(t),i=o.length,a=0;i>a;)Ke.f(e,n=o[a++],r[n]);return e},Ft=V("document","documentElement"),jt=tt("IE_PROTO"),Nt=function(){},Lt=function(e){return"<script>"+e+"<\/script>"},It=function(e){e.write(Lt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;Rt="undefined"!=typeof document?document.domain&&Y?It(Y):((t=Te("iframe")).style.display="none",Ft.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Lt("document.F=Object")),e.close(),e.F):It(Y);for(var n=Ct.length;n--;)delete Rt.prototype[Ct[n]];return Rt()};wt[jt]=!0;var Mt=Object.create||function(e,t){var n;return null!==e?(Nt.prototype=Ze(e),n=new Nt,Nt.prototype=null,n[jt]=e):n=Rt(),void 0===t?n:Pt(n,t)},zt=function(e,t,n){var r=Oe(t);r in e?Ke.f(e,r,B(0,n)):e[r]=n},Ht=l.Array,$t=Math.max,Vt=function(e,t,n){for(var r=yt(e),o=vt(t,r),i=vt(void 0===n?r:n,r),a=Ht($t(i-o,0)),u=0;o<i;o++,u++)zt(a,u,e[o]);return a.length=u,a},Ut=w("".replace),Zt=w("".split),Wt=w([].join),Gt=String(Error("zxcasd").stack),qt=/\n\s*at [^:]*:[^\n]*/,Kt=qt.test(Gt),Yt=/@[^\n]*\n/.test(Gt)&&!/zxcasd/.test(Gt),Xt=function(e,t){if("string"!=typeof e)return e;if(Kt)for(;t--;)e=Ut(e,qt,"");else if(Yt)return Wt(Vt(Zt(e,"\n"),t),"\n");return e},Jt=function(e,t){z(t)&&"cause"in t&&Ye(e,"cause",t.cause)},Qt={},en=Se("iterator"),tn=Array.prototype,nn={};nn[Se("toStringTag")]="z";var rn="[object z]"===String(nn),on=Se("toStringTag"),an=l.Object,un="Arguments"==F(function(){return arguments}()),sn=rn?F:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=an(e),on))?n:un?F(t):"Object"==(r=F(t))&&x(t.callee)?"Arguments":r},cn=Se("iterator"),ln=function(e){if(null!=e)return ae(e,cn)||ae(e,"@@iterator")||Qt[sn(e)]},fn=l.TypeError,dn=function(e,t,n){var r,o;Ze(e);try{if(!(r=ae(e,"return"))){if("throw"===t)throw n;return n}r=D(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ze(r),n},pn=l.TypeError,hn=function(e,t){this.stopped=e,this.result=t},vn=hn.prototype,gn=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=$e(t,l),v=function(e){return r&&dn(r,"normal",e),new hn(!0,e)},g=function(e){return f?(Ze(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=ln(e)))throw pn(re(e)+" is not iterable");if(function(e){return void 0!==e&&(Qt.Array===e||tn[en]===e)}(o)){for(i=0,a=yt(e);a>i;i++)if((u=g(e[i]))&&U(vn,u))return u;return new hn(!1)}r=function(e,t){var n=arguments.length<2?ln(e):t;if(ie(n))return Ze(D(n,e));throw fn(re(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=D(s,r)).done;){try{u=g(c.value)}catch(e){dn(r,"throw",e)}if("object"==typeof u&&u&&U(vn,u))return u}return new hn(!1)},yn=l.String,mn=function(e){if("Symbol"===sn(e))throw TypeError("Cannot convert a Symbol value to a string");return yn(e)},bn=function(e,t){return void 0===e?arguments.length<2?"":t:mn(e)},wn=!E((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",B(1,7)),7!==e.stack)})),xn=Se("toStringTag"),En=l.Error,Sn=[].push,Cn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=U(Dn,this);ct?n=ct(new En(void 0),o?at(this):Dn):(n=o?this:Mt(Dn),Ye(n,xn,"Error")),Ye(n,"message",bn(t,"")),wn&&Ye(n,"stack",Xt(n.stack,1)),Jt(n,r);var i=[];return gn(e,Sn,{that:i}),Ye(n,"errors",i),n};ct?ct(Cn,En):function(e,t){for(var n=Bt(t),r=Ke.f,o=Fe.f,i=0;i<n.length;i++){var a=n[i];he(e,a)||r(e,a,o(t,a))}}(Cn,En);var Dn=Cn.prototype=Mt(En.prototype,{constructor:B(1,Cn),message:B(1,""),name:B(1,"AggregateError")});Qe({global:!0},{AggregateError:Cn});var On=w(Function.toString);x(ce.inspectSource)||(ce.inspectSource=function(e){return On(e)});var An,kn,Tn,Bn=ce.inspectSource,_n=l.WeakMap,Pn=x(_n)&&/native code/.test(Bn(_n)),Fn=l.TypeError,jn=l.WeakMap;if(Pn||ce.state){var Nn=ce.state||(ce.state=new jn),Ln=w(Nn.get),In=w(Nn.has),Rn=w(Nn.set);An=function(e,t){if(In(Nn,e))throw new Fn("Object already initialized");return t.facade=e,Rn(Nn,e,t),t},kn=function(e){return Ln(Nn,e)||{}},Tn=function(e){return In(Nn,e)}}else{var Mn=tt("state");wt[Mn]=!0,An=function(e,t){if(he(e,Mn))throw new Fn("Object already initialized");return t.facade=e,Ye(e,Mn,t),t},kn=function(e){return he(e,Mn)?e[Mn]:{}},Tn=function(e){return he(e,Mn)}}var zn,Hn,$n,Vn={set:An,get:kn,has:Tn,enforce:function(e){return Tn(e)?kn(e):An(e,{})},getterFor:function(e){return function(t){var n;if(!z(t)||(n=kn(t)).type!==e)throw Fn("Incompatible receiver, "+e+" required");return n}}},Un=Function.prototype,Zn=S&&Object.getOwnPropertyDescriptor,Wn=he(Un,"name"),Gn={EXISTS:Wn,PROPER:Wn&&"something"===function(){}.name,CONFIGURABLE:Wn&&(!S||S&&Zn(Un,"name").configurable)},qn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ye(e,t,n)},Kn=Se("iterator"),Yn=!1;[].keys&&("next"in($n=[].keys())?(Hn=at(at($n)))!==Object.prototype&&(zn=Hn):Yn=!0);var Xn=null==zn||E((function(){var e={};return zn[Kn].call(e)!==e}));zn=Xn?{}:Mt(zn),x(zn[Kn])||qn(zn,Kn,(function(){return this}));var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Yn},Qn=rn?{}.toString:function(){return"[object "+sn(this)+"]"},er=Ke.f,tr=Se("toStringTag"),nr=function(e,t,n,r){if(e){var o=n?e:e.prototype;he(o,tr)||er(o,tr,{configurable:!0,value:t}),r&&!rn&&Ye(o,"toString",Qn)}},rr=Jn.IteratorPrototype,or=function(){return this},ir=Gn.PROPER,ar=Jn.BUGGY_SAFARI_ITERATORS,ur=Se("iterator"),sr=function(){return this},cr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Mt(rr,{next:B(1,n)}),nr(e,o,!1,!0),Qt[o]=or}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!ar&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ur]||p["@@iterator"]||o&&p[o],v=!ar&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=at(g.call(new e)))!==Object.prototype&&u.next&&(nr(u,f,!0,!0),Qt[f]=sr),ir&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return D(h,this)}),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(ar||d||!(c in p))&&qn(p,c,s[c]);else Qe({target:t,proto:!0,forced:ar||d},s);return a&&p[ur]!==v&&qn(p,ur,v,{name:o}),Qt[t]=v,s},lr=Vn.set,fr=Vn.getterFor("Array Iterator");cr(Array,"Array",(function(e,t){lr(this,{type:"Array Iterator",target:M(e),index:0,kind:t})}),(function(){var e=fr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Qt.Arguments=Qt.Array;var dr=w("".charAt),pr=w("".charCodeAt),hr=w("".slice),vr=function(e){return function(t,n){var r,o,i=mn(R(t)),a=dt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=pr(i,a))<55296||r>56319||a+1===u||(o=pr(i,a+1))<56320||o>57343?e?dr(i,a):r:e?hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},gr=(vr(!1),vr(!0)),yr=Vn.set,mr=Vn.getterFor("String Iterator");cr(String,"String",(function(e){yr(this,{type:"String Iterator",string:mn(e),index:0})}),(function(){var e,t=mr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gr(n,r),t.index+=e.length,{value:e,done:!1})}));var br=H.AggregateError,wr=Se("toStringTag");for(var xr 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 Er=l[xr],Sr=Er&&Er.prototype;Sr&&sn(Sr)!==wr&&Ye(Sr,wr,xr),Qt[xr]=Qt.Array}var Cr,Dr,Or=br,Ar=function(e){return e&&e.Math==Math&&e},kr=Ar("object"==typeof globalThis&&globalThis)||Ar("object"==typeof window&&window)||Ar("object"==typeof self&&self)||Ar("object"==typeof r&&r)||function(){return this}()||Function("return this")(),Tr=function(e){try{return!!e()}catch(e){return!0}},Br=!Tr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_r=Function.prototype.call,Pr=_r.bind?_r.bind(_r):function(){return _r.apply(_r,arguments)},Fr={}.propertyIsEnumerable,jr=Object.getOwnPropertyDescriptor,Nr=jr&&!Fr.call({1:2},1)?function(e){var t=jr(this,e);return!!t&&t.enumerable}:Fr,Lr={f:Nr},Ir=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Function.prototype,Mr=Rr.bind,zr=Rr.call,Hr=Mr&&Mr.bind(zr),$r=Mr?function(e){return e&&Hr(zr,e)}:function(e){return e&&function(){return zr.apply(e,arguments)}},Vr=$r({}.toString),Ur=$r("".slice),Zr=function(e){return Ur(Vr(e),8,-1)},Wr=kr.Object,Gr=$r("".split),qr=Tr((function(){return!Wr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Zr(e)?Gr(e,""):Wr(e)}:Wr,Kr=kr.TypeError,Yr=function(e){if(null==e)throw Kr("Can't call method on "+e);return e},Xr=function(e){return qr(Yr(e))},Jr=function(e){return"function"==typeof e},Qr=function(e){return"object"==typeof e?null!==e:Jr(e)},eo=function(e){return Jr(e)?e:void 0},to=function(e,t){return arguments.length<2?eo(kr[e]):kr[e]&&kr[e][t]},no=$r({}.isPrototypeOf),ro=to("navigator","userAgent")||"",oo=kr.process,io=kr.Deno,ao=oo&&oo.versions||io&&io.version,uo=ao&&ao.v8;uo&&(Dr=(Cr=uo.split("."))[0]>0&&Cr[0]<4?1:+(Cr[0]+Cr[1])),!Dr&&ro&&(!(Cr=ro.match(/Edge\/(\d+)/))||Cr[1]>=74)&&(Cr=ro.match(/Chrome\/(\d+)/))&&(Dr=+Cr[1]);var so=Dr,co=!!Object.getOwnPropertySymbols&&!Tr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&so&&so<41})),lo=co&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fo=kr.Object,po=lo?function(e){return"symbol"==typeof e}:function(e){var t=to("Symbol");return Jr(t)&&no(t.prototype,fo(e))},ho=kr.String,vo=function(e){try{return ho(e)}catch(e){return"Object"}},go=kr.TypeError,yo=function(e){if(Jr(e))return e;throw go(vo(e)+" is not a function")},mo=function(e,t){var n=e[t];return null==n?void 0:yo(n)},bo=kr.TypeError,wo=Object.defineProperty,xo=function(e,t){try{wo(kr,e,{value:t,configurable:!0,writable:!0})}catch(n){kr[e]=t}return t},Eo=kr["__core-js_shared__"]||xo("__core-js_shared__",{}),So=o((function(e){(e.exports=function(e,t){return Eo[e]||(Eo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Co=kr.Object,Do=function(e){return Co(Yr(e))},Oo=$r({}.hasOwnProperty),Ao=Object.hasOwn||function(e,t){return Oo(Do(e),t)},ko=0,To=Math.random(),Bo=$r(1..toString),_o=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bo(++ko+To,36)},Po=So("wks"),Fo=kr.Symbol,jo=Fo&&Fo.for,No=lo?Fo:Fo&&Fo.withoutSetter||_o,Lo=function(e){if(!Ao(Po,e)||!co&&"string"!=typeof Po[e]){var t="Symbol."+e;co&&Ao(Fo,e)?Po[e]=Fo[e]:Po[e]=lo&&jo?jo(t):No(t)}return Po[e]},Io=kr.TypeError,Ro=Lo("toPrimitive"),Mo=function(e){var t=function(e,t){if(!Qr(e)||po(e))return e;var n,r=mo(e,Ro);if(r){if(void 0===t&&(t="default"),n=Pr(r,e,t),!Qr(n)||po(n))return n;throw Io("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Jr(n=e.toString)&&!Qr(r=Pr(n,e)))return r;if(Jr(n=e.valueOf)&&!Qr(r=Pr(n,e)))return r;if("string"!==t&&Jr(n=e.toString)&&!Qr(r=Pr(n,e)))return r;throw bo("Can't convert object to primitive value")}(e,t)}(e,"string");return po(t)?t:t+""},zo=kr.document,Ho=Qr(zo)&&Qr(zo.createElement),$o=function(e){return Ho?zo.createElement(e):{}},Vo=!Br&&!Tr((function(){return 7!=Object.defineProperty($o("div"),"a",{get:function(){return 7}}).a})),Uo=Object.getOwnPropertyDescriptor,Zo=Br?Uo:function(e,t){if(e=Xr(e),t=Mo(t),Vo)try{return Uo(e,t)}catch(e){}if(Ao(e,t))return Ir(!Pr(Lr.f,e,t),e[t])},Wo={f:Zo},Go=kr.String,qo=kr.TypeError,Ko=function(e){if(Qr(e))return e;throw qo(Go(e)+" is not an object")},Yo=kr.TypeError,Xo=Object.defineProperty,Jo=Br?Xo:function(e,t,n){if(Ko(e),t=Mo(t),Ko(n),Vo)try{return Xo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Yo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qo={f:Jo},ei=Br?function(e,t,n){return Qo.f(e,t,Ir(1,n))}:function(e,t,n){return e[t]=n,e},ti=$r(Function.toString);Jr(Eo.inspectSource)||(Eo.inspectSource=function(e){return ti(e)});var ni,ri,oi,ii=Eo.inspectSource,ai=kr.WeakMap,ui=Jr(ai)&&/native code/.test(ii(ai)),si=So("keys"),ci=function(e){return si[e]||(si[e]=_o(e))},li={},fi=kr.TypeError,di=kr.WeakMap;if(ui||Eo.state){var pi=Eo.state||(Eo.state=new di),hi=$r(pi.get),vi=$r(pi.has),gi=$r(pi.set);ni=function(e,t){if(vi(pi,e))throw new fi("Object already initialized");return t.facade=e,gi(pi,e,t),t},ri=function(e){return hi(pi,e)||{}},oi=function(e){return vi(pi,e)}}else{var yi=ci("state");li[yi]=!0,ni=function(e,t){if(Ao(e,yi))throw new fi("Object already initialized");return t.facade=e,ei(e,yi,t),t},ri=function(e){return Ao(e,yi)?e[yi]:{}},oi=function(e){return Ao(e,yi)}}var mi={set:ni,get:ri,has:oi,enforce:function(e){return oi(e)?ri(e):ni(e,{})},getterFor:function(e){return function(t){var n;if(!Qr(t)||(n=ri(t)).type!==e)throw fi("Incompatible receiver, "+e+" required");return n}}},bi=Function.prototype,wi=Br&&Object.getOwnPropertyDescriptor,xi=Ao(bi,"name"),Ei={EXISTS:xi,PROPER:xi&&"something"===function(){}.name,CONFIGURABLE:xi&&(!Br||Br&&wi(bi,"name").configurable)},Si=o((function(e){var t=Ei.CONFIGURABLE,n=mi.get,r=mi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Jr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ao(i,"name")||t&&i.name!==f)&&ei(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==kr?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ei(e,n,i)):c?e[n]=i:xo(n,i)})(Function.prototype,"toString",(function(){return Jr(this)&&n(this).source||ii(this)}))})),Ci=Math.ceil,Di=Math.floor,Oi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Di:Ci)(t)},Ai=Math.max,ki=Math.min,Ti=function(e,t){var n=Oi(e);return n<0?Ai(n+t,0):ki(n,t)},Bi=Math.min,_i=function(e){return e>0?Bi(Oi(e),9007199254740991):0},Pi=function(e){return _i(e.length)},Fi=function(e){return function(t,n,r){var o,i=Xr(t),a=Pi(i),u=Ti(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},ji=(Fi(!0),Fi(!1)),Ni=$r([].push),Li=function(e,t){var n,r=Xr(e),o=0,i=[];for(n in r)!Ao(li,n)&&Ao(r,n)&&Ni(i,n);for(;t.length>o;)Ao(r,n=t[o++])&&(~ji(i,n)||Ni(i,n));return i},Ii=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ri=Ii.concat("length","prototype"),Mi=Object.getOwnPropertyNames||function(e){return Li(e,Ri)},zi={f:Mi},Hi={f:Object.getOwnPropertySymbols},$i=$r([].concat),Vi=to("Reflect","ownKeys")||function(e){var t=zi.f(Ko(e)),n=Hi.f;return n?$i(t,n(e)):t},Ui=function(e,t){for(var n=Vi(t),r=Qo.f,o=Wo.f,i=0;i<n.length;i++){var a=n[i];Ao(e,a)||r(e,a,o(t,a))}},Zi=/#|\.prototype\./,Wi=function(e,t){var n=qi[Gi(e)];return n==Yi||n!=Ki&&(Jr(t)?Tr(t):!!t)},Gi=Wi.normalize=function(e){return String(e).replace(Zi,".").toLowerCase()},qi=Wi.data={},Ki=Wi.NATIVE="N",Yi=Wi.POLYFILL="P",Xi=Wi,Ji=Wo.f,Qi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?kr:c?kr[u]||xo(u,{}):(kr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ji(n,r))&&a.value:n[r],!Xi(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ui(i,o)}(e.sham||o&&o.sham)&&ei(i,"sham",!0),Si(n,r,i,e)}},ea={};ea[Lo("toStringTag")]="z";var ta,na="[object z]"===String(ea),ra=Lo("toStringTag"),oa=kr.Object,ia="Arguments"==Zr(function(){return arguments}()),aa=na?Zr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=oa(e),ra))?n:ia?Zr(t):"Object"==(r=Zr(t))&&Jr(t.callee)?"Arguments":r},ua=kr.String,sa=function(e){if("Symbol"===aa(e))throw TypeError("Cannot convert a Symbol value to a string");return ua(e)},ca=function(){var e=Ko(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},la=kr.RegExp,fa=Tr((function(){var e=la("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),da=fa||Tr((function(){return!la("a","y").sticky})),pa=fa||Tr((function(){var e=la("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ha={BROKEN_CARET:pa,MISSED_STICKY:da,UNSUPPORTED_Y:fa},va=Object.keys||function(e){return Li(e,Ii)},ga=Br?Object.defineProperties:function(e,t){Ko(e);for(var n,r=Xr(t),o=va(t),i=o.length,a=0;i>a;)Qo.f(e,n=o[a++],r[n]);return e},ya=to("document","documentElement"),ma=ci("IE_PROTO"),ba=function(){},wa=function(e){return"<script>"+e+"<\/script>"},xa=function(e){e.write(wa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{ta=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ea="undefined"!=typeof document?document.domain&&ta?xa(ta):((t=$o("iframe")).style.display="none",ya.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wa("document.F=Object")),e.close(),e.F):xa(ta);for(var n=Ii.length;n--;)delete Ea.prototype[Ii[n]];return Ea()};li[ma]=!0;var Sa,Ca,Da=Object.create||function(e,t){var n;return null!==e?(ba.prototype=Ko(e),n=new ba,ba.prototype=null,n[ma]=e):n=Ea(),void 0===t?n:ga(n,t)},Oa=kr.RegExp,Aa=Tr((function(){var e=Oa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ka=kr.RegExp,Ta=Tr((function(){var e=ka("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ba=mi.get,_a=So("native-string-replace",String.prototype.replace),Pa=RegExp.prototype.exec,Fa=Pa,ja=$r("".charAt),Na=$r("".indexOf),La=$r("".replace),Ia=$r("".slice),Ra=(Ca=/b*/g,Pr(Pa,Sa=/a/,"a"),Pr(Pa,Ca,"a"),0!==Sa.lastIndex||0!==Ca.lastIndex),Ma=ha.BROKEN_CARET,za=void 0!==/()??/.exec("")[1];(Ra||za||Ma||Aa||Ta)&&(Fa=function(e){var t,n,r,o,i,a,u,s=this,c=Ba(s),l=sa(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Pr(Fa,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=Ma&&s.sticky,h=Pr(ca,s),v=s.source,g=0,y=l;if(p&&(h=La(h,"y",""),-1===Na(h,"g")&&(h+="g"),y=Ia(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ja(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),za&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ra&&(r=s.lastIndex),o=Pr(Pa,p?n:s,y),p?o?(o.input=Ia(o.input,g),o[0]=Ia(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ra&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),za&&o&&o.length>1&&Pr(_a,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Da(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ha=Fa;Qi({target:"RegExp",proto:!0,forced:/./.exec!==Ha},{exec:Ha});Lo("species");var $a=RegExp.prototype,Va=$r("".charAt),Ua=$r("".charCodeAt),Za=$r("".slice),Wa=function(e){return function(t,n){var r,o,i=sa(Yr(t)),a=Oi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ua(i,a))<55296||r>56319||a+1===u||(o=Ua(i,a+1))<56320||o>57343?e?Va(i,a):r:e?Za(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ga={codeAt:Wa(!1),charAt:Wa(!0)},qa=Ga.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=kr.TypeError,Xa=function(e,t){var n=e.exec;if(Jr(n)){var r=Pr(n,e,t);return null!==r&&Ko(r),r}if("RegExp"===Zr(e))return Pr(Ha,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Lo(e),i=!Tr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Tr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=$r(/./[o]),s=function(e,t,n){return[function(t){var n=Yr(this),r=null==t?void 0:mo(t,e);return r?Pr(r,t,n):new RegExp(t)[e](sa(n))},function(e){var r=Ko(this),o=sa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=Xa(r,o));){var l=sa(u[0]);s[c]=l,""===l&&(r.lastIndex=Ka(o,_i(r.lastIndex),a)),c++}return 0===c?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=$r(e),s=t.exec;return s===Ha||s===$a.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Si(String.prototype,e,s[0]),Si($a,o,s[1])}}("match"),Qi({global:!0},{globalThis:kr});var Ja=!Tr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qa=ci("IE_PROTO"),eu=kr.Object,tu=eu.prototype,nu=Ja?eu.getPrototypeOf:function(e){var t=Do(e);if(Ao(t,Qa))return t[Qa];var n=t.constructor;return Jr(n)&&t instanceof n?n.prototype:t instanceof eu?tu:null},ru=kr.String,ou=kr.TypeError,iu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=$r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ko(n),function(e){if("object"==typeof e||Jr(e))return e;throw ou("Can't set "+ru(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),au=kr.Array,uu=Math.max,su=$r("".replace),cu=$r("".split),lu=$r([].join),fu=String(Error("zxcasd").stack),du=/\n\s*at [^:]*:[^\n]*/,pu=du.test(fu),hu=/@[^\n]*\n/.test(fu)&&!/zxcasd/.test(fu),vu=function(e,t){if("string"!=typeof e)return e;if(pu)for(;t--;)e=su(e,du,"");else if(hu)return lu(function(e,t,n){for(var r,o,i,a,u=Pi(e),s=Ti(t,u),c=Ti(u,u),l=au(uu(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],void 0,(a=Mo(o))in r?Qo.f(r,a,Ir(0,i)):r[a]=i;return l.length=f,l}(cu(e,"\n"),t),"\n");return e},gu=function(e,t){Qr(t)&&"cause"in t&&ei(e,"cause",t.cause)},yu=$r($r.bind),mu=function(e,t){return yo(e),void 0===t?e:yu?yu(e,t):function(){return e.apply(t,arguments)}},bu={},wu=Lo("iterator"),xu=Array.prototype,Eu=Lo("iterator"),Su=function(e){if(null!=e)return mo(e,Eu)||mo(e,"@@iterator")||bu[aa(e)]},Cu=kr.TypeError,Du=function(e,t,n){var r,o;Ko(e);try{if(!(r=mo(e,"return"))){if("throw"===t)throw n;return n}r=Pr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ko(r),n},Ou=kr.TypeError,Au=function(e,t){this.stopped=e,this.result=t},ku=Au.prototype,Tu=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=mu(t,l),v=function(e){return r&&Du(r,"normal",e),new Au(!0,e)},g=function(e){return f?(Ko(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Su(e)))throw Ou(vo(e)+" is not iterable");if(function(e){return void 0!==e&&(bu.Array===e||xu[wu]===e)}(o)){for(i=0,a=Pi(e);a>i;i++)if((u=g(e[i]))&&no(ku,u))return u;return new Au(!1)}r=function(e,t){var n=arguments.length<2?Su(e):t;if(yo(n))return Ko(Pr(n,e));throw Cu(vo(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Pr(s,r)).done;){try{u=g(c.value)}catch(e){Du(r,"throw",e)}if("object"==typeof u&&u&&no(ku,u))return u}return new Au(!1)},Bu=function(e,t){return void 0===e?arguments.length<2?"":t:sa(e)},_u=!Tr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ir(1,7)),7!==e.stack)})),Pu=Lo("toStringTag"),Fu=kr.Error,ju=[].push,Nu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=no(Lu,this);iu?n=iu(new Fu(void 0),o?nu(this):Lu):(n=o?this:Da(Lu),ei(n,Pu,"Error")),ei(n,"message",Bu(t,"")),_u&&ei(n,"stack",vu(n.stack,1)),gu(n,r);var i=[];return Tu(e,ju,{that:i}),ei(n,"errors",i),n};iu?iu(Nu,Fu):Ui(Nu,Fu);var Lu=Nu.prototype=Da(Fu.prototype,{constructor:Ir(1,Nu),message:Ir(1,""),name:Ir(1,"AggregateError")});Qi({global:!0},{AggregateError:Nu});var Iu=Lo("unscopables"),Ru=Array.prototype;null==Ru[Iu]&&Qo.f(Ru,Iu,{configurable:!0,value:Da(null)});var Mu,zu,Hu,$u=function(e){Ru[Iu][e]=!0},Vu=Lo("iterator"),Uu=!1;[].keys&&("next"in(Hu=[].keys())?(zu=nu(nu(Hu)))!==Object.prototype&&(Mu=zu):Uu=!0);var Zu=null==Mu||Tr((function(){var e={};return Mu[Vu].call(e)!==e}));Zu&&(Mu={}),Jr(Mu[Vu])||Si(Mu,Vu,(function(){return this}));var Wu={IteratorPrototype:Mu,BUGGY_SAFARI_ITERATORS:Uu},Gu=Qo.f,qu=Lo("toStringTag"),Ku=function(e,t,n){e&&!Ao(e=n?e:e.prototype,qu)&&Gu(e,qu,{configurable:!0,value:t})},Yu=Wu.IteratorPrototype,Xu=function(){return this},Ju=Ei.PROPER,Qu=Ei.CONFIGURABLE,es=Wu.IteratorPrototype,ts=Wu.BUGGY_SAFARI_ITERATORS,ns=Lo("iterator"),rs=function(){return this},os=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Da(Yu,{next:Ir(1,n)}),Ku(e,o,!1),bu[o]=Xu}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!ts&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ns]||p["@@iterator"]||o&&p[o],v=!ts&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=nu(g.call(new e)))!==Object.prototype&&u.next&&(nu(u)!==es&&(iu?iu(u,es):Jr(u[ns])||Si(u,ns,rs)),Ku(u,f,!0)),Ju&&"values"==o&&h&&"values"!==h.name&&(Qu?ei(p,"name","values"):(d=!0,v=function(){return Pr(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(ts||d||!(c in p))&&Si(p,c,s[c]);else Qi({target:t,proto:!0,forced:ts||d},s);return p[ns]!==v&&Si(p,ns,v,{name:o}),bu[t]=v,s},is=mi.set,as=mi.getterFor("Array Iterator"),us=os(Array,"Array",(function(e,t){is(this,{type:"Array Iterator",target:Xr(e),index:0,kind:t})}),(function(){var e=as(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bu.Arguments=bu.Array,$u("keys"),$u("values"),$u("entries");var ss=Ga.charAt,cs=mi.set,ls=mi.getterFor("String Iterator");os(String,"String",(function(e){cs(this,{type:"String Iterator",string:sa(e),index:0})}),(function(){var e,t=ls(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ss(n,r),t.index+=e.length,{value:e,done:!1})}));var fs,ds={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},ps=$o("span").classList,hs=ps&&ps.constructor&&ps.constructor.prototype,vs=hs===Object.prototype?void 0:hs,gs=Lo("iterator"),ys=Lo("toStringTag"),ms=us.values,bs=function(e,t){if(e){if(e[gs]!==ms)try{ei(e,gs,ms)}catch(t){e[gs]=ms}if(e[ys]||ei(e,ys,t),ds[t])for(var n in us)if(e[n]!==us[n])try{ei(e,n,us[n])}catch(t){e[n]=us[n]}}};for(var ws in ds)bs(kr[ws]&&kr[ws].prototype,ws);function xs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Es(){void 0===Or&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}bs(vs,"DOMTokenList"),void 0===a.g?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),xs(),Es()):a.g&&(null===(fs=a.g.navigator)||void 0===fs?void 0:fs.userAgent.match("QQBrowser"))&&(xs(),Es());var Ss=Array.isArray||function(e){return"Array"==F(e)},Cs=function(){},Ds=[],Os=V("Reflect","construct"),As=/^\s*(?:class|function)\b/,ks=w(As.exec),Ts=!As.exec(Cs),Bs=function(e){if(!x(e))return!1;try{return Os(Cs,Ds,e),!0}catch(e){return!1}},_s=!Os||E((function(){var e;return Bs(Bs.call)||!Bs(Object)||!Bs((function(){e=!0}))||e}))?function(e){if(!x(e))return!1;switch(sn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ts||!!ks(As,Bn(e))}:Bs,Ps=Se("species"),Fs=l.Array,js=function(e,t){return new(function(e){var t;return Ss(e)&&(t=e.constructor,(_s(t)&&(t===Fs||Ss(t.prototype))||z(t)&&null===(t=t[Ps]))&&(t=void 0)),void 0===t?Fs:t}(e))(0===t?0:t)},Ns=Se("species"),Ls=Se("isConcatSpreadable"),Is=l.TypeError,Rs=X>=51||!E((function(){var e=[];return e[Ls]=!1,e.concat()[0]!==e})),Ms=("concat",X>=51||!E((function(){var e=[];return(e.constructor={})[Ns]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),zs=function(e){if(!z(e))return!1;var t=e[Ls];return void 0!==t?!!t:Ss(e)};Qe({target:"Array",proto:!0,forced:!Rs||!Ms},{concat:function(e){var t,n,r,o,i,a=de(this),u=js(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(zs(i=-1===t?a:arguments[t])){if(s+(o=yt(i))>9007199254740991)throw Is("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&zt(u,s,i[n])}else{if(s>=9007199254740991)throw Is("Maximum allowed index exceeded");zt(u,s++,i)}return u.length=s,u}});var Hs=At.f,$s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vs={f:function(e){return $s&&"Window"==F(e)?function(e){try{return Hs(e)}catch(e){return Vt($s)}}(e):Hs(M(e))}},Us=w([].slice),Zs={f:Se},Ws=Ke.f,Gs=function(e){var t=H.Symbol||(H.Symbol={});he(t,e)||Ws(t,e,{value:Zs.f(e)})},qs=w([].push),Ks=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=de(s),v=L(h),g=$e(c,l),y=yt(v),m=0,b=f||js,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:qs(w,d)}else switch(e){case 4:return!1;case 7:qs(w,d)}return i?-1:r||o?o:w}},Ys=[Ks(0),Ks(1),Ks(2),Ks(3),Ks(4),Ks(5),Ks(6),Ks(7)][0],Xs=tt("hidden"),Js=Se("toPrimitive"),Qs=Vn.set,ec=Vn.getterFor("Symbol"),tc=Object.prototype,nc=l.Symbol,rc=nc&&nc.prototype,oc=l.TypeError,ic=l.QObject,ac=V("JSON","stringify"),uc=Fe.f,sc=Ke.f,cc=Vs.f,lc=T.f,fc=w([].push),dc=le("symbols"),pc=le("op-symbols"),hc=le("string-to-symbol-registry"),vc=le("symbol-to-string-registry"),gc=le("wks"),yc=!ic||!ic.prototype||!ic.prototype.findChild,mc=S&&E((function(){return 7!=Mt(sc({},"a",{get:function(){return sc(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=uc(tc,t);r&&delete tc[t],sc(e,t,n),r&&e!==tc&&sc(tc,t,r)}:sc,bc=function(e,t){var n=dc[e]=Mt(rc);return Qs(n,{type:"Symbol",tag:e,description:t}),S||(n.description=t),n},wc=function(e,t,n){e===tc&&wc(pc,t,n),Ze(e);var r=Oe(t);return Ze(n),he(dc,r)?(n.enumerable?(he(e,Xs)&&e[Xs][r]&&(e[Xs][r]=!1),n=Mt(n,{enumerable:B(0,!1)})):(he(e,Xs)||sc(e,Xs,B(1,{})),e[Xs][r]=!0),mc(e,r,n)):sc(e,r,n)},xc=function(e,t){Ze(e);var n=M(t),r=_t(n).concat(Dc(n));return Ys(r,(function(t){S&&!D(Ec,n,t)||wc(e,t,n[t])})),e},Ec=function(e){var t=Oe(e),n=D(lc,this,t);return!(this===tc&&he(dc,t)&&!he(pc,t))&&(!(n||!he(this,t)||!he(dc,t)||he(this,Xs)&&this[Xs][t])||n)},Sc=function(e,t){var n=M(e),r=Oe(t);if(n!==tc||!he(dc,r)||he(pc,r)){var o=uc(n,r);return!o||!he(dc,r)||he(n,Xs)&&n[Xs][r]||(o.enumerable=!0),o}},Cc=function(e){var t=cc(M(e)),n=[];return Ys(t,(function(e){he(dc,e)||he(wt,e)||fc(n,e)})),n},Dc=function(e){var t=e===tc,n=cc(t?pc:M(e)),r=[];return Ys(n,(function(e){!he(dc,e)||t&&!he(tc,e)||fc(r,dc[e])})),r};if(J||(rc=(nc=function(){if(U(rc,this))throw oc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?mn(arguments[0]):void 0,t=me(e),n=function(e){this===tc&&D(n,pc,e),he(this,Xs)&&he(this[Xs],t)&&(this[Xs][t]=!1),mc(this,t,B(1,e))};return S&&yc&&mc(tc,t,{configurable:!0,set:n}),bc(t,e)}).prototype,qn(rc,"toString",(function(){return ec(this).tag})),qn(nc,"withoutSetter",(function(e){return bc(me(e),e)})),T.f=Ec,Ke.f=wc,Fe.f=Sc,At.f=Vs.f=Cc,kt.f=Dc,Zs.f=function(e){return bc(Se(e),e)},S&&sc(rc,"description",{configurable:!0,get:function(){return ec(this).description}})),Qe({global:!0,wrap:!0,forced:!J,sham:!J},{Symbol:nc}),Ys(_t(gc),(function(e){Gs(e)})),Qe({target:"Symbol",stat:!0,forced:!J},{for:function(e){var t=mn(e);if(he(hc,t))return hc[t];var n=nc(t);return hc[t]=n,vc[n]=t,n},keyFor:function(e){if(!te(e))throw oc(e+" is not a symbol");if(he(vc,e))return vc[e]},useSetter:function(){yc=!0},useSimple:function(){yc=!1}}),Qe({target:"Object",stat:!0,forced:!J,sham:!S},{create:function(e,t){return void 0===t?Mt(e):xc(Mt(e),t)},defineProperty:wc,defineProperties:xc,getOwnPropertyDescriptor:Sc}),Qe({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:Cc,getOwnPropertySymbols:Dc}),Qe({target:"Object",stat:!0,forced:E((function(){kt.f(1)}))},{getOwnPropertySymbols:function(e){return kt.f(de(e))}}),ac){var Oc=!J||E((function(){var e=nc();return"[null]"!=ac([e])||"{}"!=ac({a:e})||"{}"!=ac(Object(e))}));Qe({target:"JSON",stat:!0,forced:Oc},{stringify:function(e,t,n){var r=Us(arguments),o=t;if((z(t)||void 0!==e)&&!te(e))return Ss(t)||(t=function(e,t){if(x(o)&&(t=D(o,this,e,t)),!te(t))return t}),r[1]=t,v(ac,null,r)}})}if(!rc[Js]){var Ac=rc.valueOf;qn(rc,Js,(function(e){return D(Ac,this)}))}nr(nc,"Symbol"),wt[Xs]=!0,Gs("asyncIterator"),Gs("hasInstance"),Gs("isConcatSpreadable"),Gs("iterator"),Gs("match"),Gs("matchAll"),Gs("replace"),Gs("search"),Gs("species"),Gs("split"),Gs("toPrimitive"),Gs("toStringTag"),Gs("unscopables"),nr(l.JSON,"JSON",!0);var kc=H.Symbol;Gs("asyncDispose"),Gs("dispose"),Gs("matcher"),Gs("metadata"),Gs("observable"),Gs("patternMatch"),Gs("replaceAll");var Tc=kc,Bc=Zs.f("iterator"),_c=o((function(e){function t(n){return"function"==typeof Tc&&"symbol"==typeof Bc?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Tc&&e.constructor===Tc&&e!==Tc.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Pc=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(_c),Fc=Wo.f,jc=Tr((function(){Fc(1)}));if(Qi({target:"Object",stat:!0,forced:!Br||jc,sham:!Br},{getOwnPropertyDescriptor:function(e,t){return Fc(Xr(e),t)}}),"object"===(void 0===a.g?"undefined":Pc(a.g))){var Nc=Object.getOwnPropertyDescriptor(a.g,"window");a.g.window&&!Nc.set||(a.g.window=a.g,a.g.requestAnimationFrame=function(){},a.g.navigator={userAgent:""},a.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},a.g.btoa=function(){},a.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=a.g.document&&null==a.g.document.getElementsByTagName&&(a.g.document.getElementsByTagName=function(){return[]})}
|
|
43
43
|
/*!
|
|
44
44
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
45
45
|
*
|
|
@@ -56,7 +56,7 @@ o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.d
|
|
|
56
56
|
* @param {string} phrase that needs interpolation, with placeholders
|
|
57
57
|
* @param {object} options with values that will be used to replace placeholders
|
|
58
58
|
* @returns {any[]} interpolated
|
|
59
|
-
*/function Rg(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=Ig(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Mg=(Pg=function(e){return"__private_"+Lg+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Pg,{value:zg}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Ng(this,Pg)[Pg],this):Ng(this,Pg)[Pg](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return Rg(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}")}return Rg(n,t)}});function zg(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Hg=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.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]},e};let{urlAlphabet:$g}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Vg=e=>crypto.getRandomValues(new Uint8Array(e)),Ug=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Zg={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Ug(e,t,Vg),customRandom:Ug,urlAlphabet:$g,random:Vg},Wg=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Gg(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Gg.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 qg=/[\/\+\.]/,Kg=function(e,t){function n(t){var n=function(e,t,n){var r=new Gg(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,qg);return n&&n.length>=2}return t?n(t.split(";")[0]):n},Yg=0;var Xg=function(e){return"__private_"+Yg+++"_"+e}("publish");class Jg{constructor(){Object.defineProperty(this,Xg,{value:Qg}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Xg)[Xg](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Qg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Jg.VERSION="2.0.3";var ey=function(e){const 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)}},ty={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 ny(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var ry=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function oy(e){return e<10?`0${e}`:e.toString()}var iy=function(){const e=new Date;return`${oy(e.getHours())}:${oy(e.getMinutes())}:${oy(e.getSeconds())}`},ay={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] [${iy()}]`,...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] [${iy()}]`,...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] [${iy()}]`,...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] [${iy()}]`,...t)}}},uy={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}"}}},sy=Zg;let cy,ly;function fy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var dy=0;function py(e){return"__private_"+dy+++"_"+e}const{nanoid:hy}=sy,{justErrorsLogger:vy,debugLogger:gy}=ay;class yy 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 my extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var by=py("plugins"),wy=py("storeUnsubscribe"),xy=py("emitter"),Ey=py("preProcessors"),Sy=py("uploaders"),Cy=py("postProcessors"),Dy=py("checkRestrictions"),Oy=py("checkMinNumberOfFiles"),Ay=py("checkRequiredMetaFieldsOnFile"),ky=py("checkRequiredMetaFields"),Ty=py("showOrLogErrorAndThrow"),By=py("assertNewUploadAllowed"),_y=py("checkAndCreateFileStateObject"),Py=py("startIfAutoProceed"),Fy=py("addListeners"),jy=py("updateOnlineStatus"),Ny=py("createUpload"),Ly=py("getUpload"),Iy=py("removeUpload"),Ry=py("runUpload");cy=Symbol.for("uppy test: getPlugins"),ly=Symbol.for("uppy test: createUpload");class My{constructor(e){Object.defineProperty(this,Ry,{value:Jy}),Object.defineProperty(this,Iy,{value:Xy}),Object.defineProperty(this,Ly,{value:Yy}),Object.defineProperty(this,Ny,{value:Ky}),Object.defineProperty(this,Fy,{value:qy}),Object.defineProperty(this,Py,{value:Gy}),Object.defineProperty(this,_y,{value:Wy}),Object.defineProperty(this,By,{value:Zy}),Object.defineProperty(this,Ty,{value:Uy}),Object.defineProperty(this,ky,{value:Vy}),Object.defineProperty(this,Ay,{value:$y}),Object.defineProperty(this,Oy,{value:Hy}),Object.defineProperty(this,Dy,{value:zy}),Object.defineProperty(this,by,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,wy,{writable:!0,value:void 0}),Object.defineProperty(this,xy,{writable:!0,value:Hg()}),Object.defineProperty(this,Ey,{writable:!0,value:new Set}),Object.defineProperty(this,Sy,{writable:!0,value:new Set}),Object.defineProperty(this,Cy,{writable:!0,value:new Set}),Object.defineProperty(this,jy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=uy;const t={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 Jg,logger:vy,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.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=gy),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=$h(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:ry(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),fy(this,wy)[wy]=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),fy(this,Fy)[Fy]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];fy(this,xy)[xy].emit(e,...n)}on(e,t){return fy(this,xy)[xy].on(e,t),this}once(e,t){return fy(this,xy)[xy].once(e,t),this}off(e,t){return fy(this,xy)[xy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}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(){const e=new Mg([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 e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){fy(this,Ey)[Ey].add(e)}removePreProcessor(e){return fy(this,Ey)[Ey].delete(e)}addPostProcessor(e){fy(this,Cy)[Cy].add(e)}removePostProcessor(e){return fy(this,Cy)[Cy].delete(e)}addUploader(e){fy(this,Sy)[Sy].add(e)}removeUploader(e){return fy(this,Sy)[Sy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),c=r.filter((e=>e.progress.uploadComplete)),l=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:c,erroredFiles:l,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&c.length===r.length&&0===d.length,isAllErrored:!!n&&l.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return fy(this,Dy)[Dy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){fy(this,By)[By](e);const{files:t}=this.getState();let n=fy(this,_y)[_y](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}`),fy(this,Py)[Py](),n.id}addFiles(e){fy(this,By)[By]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=fy(this,_y)[_y](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&fy(this,Py)[Py](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}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=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const c=Object.keys(a);c.forEach((e=>{this.emit("file-removed",a[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=fy(this,Ny)[Ny](t,{forceAllowNewUpload:!0});return fy(this,Ry)[Ry](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=fy(this,Ny)[Ny]([e],{forceAllowNewUpload:!0});return fy(this,Ry)[Ry](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;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()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}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.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in fy(this,by)[by]?fy(this,by)[by][n.type].push(n):fy(this,by)[by][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(fy(this,by)[by])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[cy](e){return fy(this,by)[by][e]}iteratePlugins(e){Object.values(fy(this,by)[by]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=fy(this,by)[by][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),fy(this,wy)[wy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",fy(this,jy)[jy]),window.removeEventListener("offline",fy(this,jy)[jy]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const 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){const{logger:n}=this.opts;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]?fy(this,Ry)[Ry](e):(fy(this,Iy)[Iy](e),Promise.reject(new Error("Nonexistent upload")))}[ly](){return fy(this,Ny)[Ny](...arguments)}addResultData(e,t){if(!fy(this,Ly)[Ly](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=fy(this,by)[by].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{fy(this,Oy)[Oy](t),fy(this,ky)[ky](t)})).catch((e=>{fy(this,Ty)[Ty](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=fy(this,Ny)[Ny](r);return fy(this,Ry)[Ry](o)})).catch((e=>{fy(this,Ty)[Ty](e,{showInformer:!1})})))}}function zy(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new yy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&Kg(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new yy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new yy(this.i18n("exceedsSize",{size:Wg(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new yy(this.i18n("exceedsSize",{size:Wg(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new yy(this.i18n("inferiorSize",{size:Wg(r)}))}function Hy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new yy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function $y(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new yy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),fy(this,Ty)[Ty](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Vy(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return fy(this,Ay)[Ay](t)}));if(t.length)throw new my(t,`${this.i18n("missingRequiredMetaField")}`)}function Uy(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Zy(e){const{allowNewUpload:t}=this.getState();!1===t&&fy(this,Ty)[Ty](new yy(this.i18n("noMoreFilesAllowed")),{file:e})}function Wy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=ey(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in ty?ty[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=ey(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${ny(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${ny(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new yy(this.i18n("noDuplicates",{fileName:r}));fy(this,Ty)[Ty](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const l=this.opts.onBeforeFileAdded(c,e);!1===l?fy(this,Ty)[Ty](new yy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof l&&null!==l&&(c=l);try{const t=Object.keys(e).map((t=>e[t]));fy(this,Dy)[Dy](c,t)}catch(e){fy(this,Ty)[Ty](e,{file:c})}return c}function Gy(){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 qy(){const e=(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",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),fy(this,Ty)[Ty](e,{throwErr:!1})}else fy(this,Ty)[Ty](n,{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)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:fy(this,Cy)[Cy].size>0?{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.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=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),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=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&fy(this,Ay)[Ay](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",fy(this,jy)[jy]),window.addEventListener("offline",fy(this,jy)[jy]),setTimeout(fy(this,jy)[jy],3e3))}function Ky(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=hy();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Yy(e){const{currentUploads:t}=this.getState();return t[e]}function Xy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Jy(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...fy(this,Ey)[Ey],...fy(this,Sy)[Sy],...fy(this,Cy)[Cy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),fy(this,Iy)[Iy](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),fy(this,Iy)[Iy](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}My.VERSION="2.1.3";var Qy=My,em=o((function(e,t){var n,r,o,i,a,u,s,c,l={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(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?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(E)}function E(){for(var e;E.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,B(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),_(n,o),o.__e!=i&&w(o)))}))}function S(e,t,n,r,o,i,a,u,s,c){var d,p,h,v,m,w,x,E=r&&r.__k||f,S=E.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=E[d])||h&&v.key==h.key&&v.type===h.type)E[d]=void 0;else for(p=0;p<S;p++){if((h=E[p])&&v.key==h.key&&v.type===h.type){E[p]=void 0;break}h=null}B(e,v,h=h||l,o,i,a,u,s,c),m=v.__e,(p=v.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,v),x.push(p,v.__c||m,v)),null!=m?(null==w&&(w=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=C(v,s,e):s=D(e,v,h,E,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=S;d--;)null!=E[d]&&("function"==typeof n.type&&null!=E[d].__e&&E[d].__e==n.__d&&(n.__d=b(r,d+1)),j(E[d],E[d]));if(x)for(d=0;d<x.length;d++)F(x[d],x[++d],x[++d])}function C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):D(n,r,r,o,r.__e,t));return t}function D(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 O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function A(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||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(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().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?T:k,i):e.removeEventListener(t,i?T:k,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 k(e){this.l[e.type+!1](r.event?r.event(e):e)}function T(e){this.l[e.type+!0](r.event?r.event(e):e)}function B(e,t,n,o,i,a,u,s,c){var l,f,d,h,v,g,b,w,x,E,C,D=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(l=r.__b)&&l(t);try{e:if("function"==typeof D){if(w=t.props,x=(l=D.contextType)&&o[l.__c],E=l?x?x.props.value:l.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in D&&D.prototype.render?t.__c=f=new D(w,E):(t.__c=f=new m(w,E),f.constructor=D,f.render=N),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=E,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=D.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,D.getDerivedStateFromProps(w,f.__s))),h=f.props,v=f.state,d)null==D.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==D.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,E)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,E),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,g)}))}f.context=E,f.props=w,f.state=f.__s,(l=r.__r)&&l(t),f.__d=!1,f.__v=t,f.__P=e,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),C=null!=l&&l.type===y&&null==l.key?l.props.children:l,S(e,Array.isArray(C)?C:[C],t,n,o,i,a,u,s,c),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,o,i,a,u,c);(l=r.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=a)&&(t.__e=s,t.__h=!!c,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function _(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,r,o,i,a,u,s){var c,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||l).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||A(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]||A(e,i,t[i],n[i],r)}(e,v,p,i,s),d)t.__k=[];else if(y=t.props.children,S(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&A(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&A(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||F(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function L(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],B(t,e=(!i&&o||t).__k=v(y,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),_(u,e)}n=f.slice,r={__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}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,c=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},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 n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){L(t,n,e)},t.isValidElement=i,t.options=r,t.render=L,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),tm=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new Mg([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 nm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rm=0;const{render:om}=em;var im=function(e){return"__private_"+rm+++"_"+e}("updateUI");class am extends tm{constructor(){super(...arguments),Object.defineProperty(this,im,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return nm(this,im)[im]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(om(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),om(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 am)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}`);let 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=nm(this,im))[im])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var um=am;const{debugLogger:sm}=ay;var cm=Qy,lm=Qy,fm=um,dm=tm,pm=sm;cm.Uppy=lm,cm.UIPlugin=fm,cm.BasePlugin=dm,cm.debugLogger=pm;class hm 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}}var vm=hm,gm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new vm(e)}))};class ym extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var mm,bm,wm,xm,Em,Sm=ym;function Cm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Dm=0;function Om(e){return"__private_"+Dm+++"_"+e}async function Am(e){if(401===e.status)throw new Sm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var km=(bm=Om("getPostResponseFunc"),wm=Om("getUrl"),xm=Om("errorHandler"),Em=mm=class e{constructor(e,t){Object.defineProperty(this,xm,{value:Bm}),Object.defineProperty(this,wm,{value:Tm}),Object.defineProperty(this,bm,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),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(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;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(Cm(this,wm)[wm](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(e,t){return this.preflightAndHeaders(e).then((t=>gm(Cm(this,wm)[wm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Cm(this,bm)[bm](t)).then(Am).catch(Cm(this,xm)[xm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>gm(Cm(this,wm)[wm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Cm(this,bm)[bm](n)).then(Am).catch(Cm(this,xm)[xm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>gm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Cm(this,bm)[bm](n)).then(Am).catch(Cm(this,xm)[xm](r,e))}},mm.VERSION="2.0.4",mm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${mm.VERSION}`},Em);function Tm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Bm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Cm(this,wm)[wm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var _m,Pm,Fm,jm,Nm,Lm={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let Im,Rm;function Mm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zm=0;function Hm(e){return"__private_"+zm+++"_"+e}var $m,Vm,Um=(_m=Hm("queued"),Pm=Hm("emitter"),Fm=Hm("isOpen"),jm=Hm("socket"),Nm=Hm("handleMessage"),Im=Symbol.for("uppy test: getSocket"),Rm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,_m,{writable:!0,value:[]}),Object.defineProperty(this,Pm,{writable:!0,value:Hg()}),Object.defineProperty(this,Fm,{writable:!0,value:!1}),Object.defineProperty(this,jm,{writable:!0,value:void 0}),Object.defineProperty(this,Nm,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Mm(this,Fm)[Fm]}[Im](){return Mm(this,jm)[jm]}[Rm](){return Mm(this,_m)[_m]}open(){Mm(this,jm)[jm]=new WebSocket(this.opts.target),Mm(this,jm)[jm].onopen=()=>{for(Mm(this,Fm)[Fm]=!0;Mm(this,_m)[_m].length>0&&Mm(this,Fm)[Fm];){const e=Mm(this,_m)[_m].shift();this.send(e.action,e.payload)}},Mm(this,jm)[jm].onclose=()=>{Mm(this,Fm)[Fm]=!1},Mm(this,jm)[jm].onmessage=Mm(this,Nm)[Nm]}close(){var e;null==(e=Mm(this,jm)[jm])||e.close()}send(e,t){Mm(this,Fm)[Fm]?Mm(this,jm)[jm].send(JSON.stringify({action:e,payload:t})):Mm(this,_m)[_m].push({action:e,payload:t})}on(e,t){Mm(this,Pm)[Pm].on(e,t)}emit(e,t){Mm(this,Pm)[Pm].emit(e,t)}once(e,t){Mm(this,Pm)[Pm].once(e,t)}}),Zm={RequestClient:km,Provider:class extends km{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>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=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const 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=>{let[t]=e;return t}))}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||Lm}},SearchProvider:class extends km{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>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:Um},Wm=$h((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Gm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qm=0;function Km(e){return"__private_"+qm+++"_"+e}var Ym=($m=Km("emitter"),Vm=Km("events"),class{constructor(e){Object.defineProperty(this,$m,{writable:!0,value:void 0}),Object.defineProperty(this,Vm,{writable:!0,value:[]}),Gm(this,$m)[$m]=e}on(e,t){return Gm(this,Vm)[Vm].push([e,t]),Gm(this,$m)[$m].on(e,t)}remove(){for(const[e,t]of Gm(this,Vm)[Vm].splice(0))Gm(this,$m)[$m].off(e,t)}});function Xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Jm=0;function Qm(e){return"__private_"+Jm+++"_"+e}var eb=Qm("aliveTimer"),tb=Qm("isDone"),nb=Qm("onTimedOut"),rb=Qm("timeout"),ob=class{constructor(e,t){Object.defineProperty(this,eb,{writable:!0,value:void 0}),Object.defineProperty(this,tb,{writable:!0,value:!1}),Object.defineProperty(this,nb,{writable:!0,value:void 0}),Object.defineProperty(this,rb,{writable:!0,value:void 0}),Xm(this,rb)[rb]=e,Xm(this,nb)[nb]=t}progress(){Xm(this,tb)[tb]||Xm(this,rb)[rb]>0&&(clearTimeout(Xm(this,eb)[eb]),Xm(this,eb)[eb]=setTimeout(Xm(this,nb)[nb],Xm(this,rb)[rb]))}done(){Xm(this,tb)[tb]||(clearTimeout(Xm(this,eb)[eb]),Xm(this,eb)[eb]=null,Xm(this,tb)[tb]=!0)}};function ib(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ab=0;function ub(e){return"__private_"+ab+++"_"+e}var sb=ub("activeRequests"),cb=ub("queuedHandlers"),lb=ub("call"),fb=ub("queueNext"),db=ub("next"),pb=ub("queue"),hb=ub("dequeue");function vb(e){ib(this,sb)[sb]+=1;let t,n=!1;try{t=e()}catch(e){throw ib(this,sb)[sb]-=1,e}return{abort:()=>{n||(n=!0,ib(this,sb)[sb]-=1,t(),ib(this,fb)[fb]())},done:()=>{n||(n=!0,ib(this,sb)[sb]-=1,ib(this,fb)[fb]())}}}function gb(){queueMicrotask((()=>ib(this,db)[db]()))}function yb(){if(ib(this,sb)[sb]>=this.limit)return;if(0===ib(this,cb)[cb].length)return;const e=ib(this,cb)[cb].shift(),t=ib(this,lb)[lb](e.fn);e.abort=t.abort,e.done=t.done}function mb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{ib(this,hb)[hb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=ib(this,cb)[cb].findIndex((e=>n.priority>e.priority));return-1===r?ib(this,cb)[cb].push(n):ib(this,cb)[cb].splice(r,0,n),n}function bb(e){const t=ib(this,cb)[cb].indexOf(e);-1!==t&&ib(this,cb)[cb].splice(t,1)}var wb,xb,Eb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,hb,{value:bb}),Object.defineProperty(this,pb,{value:mb}),Object.defineProperty(this,db,{value:yb}),Object.defineProperty(this,fb,{value:gb}),Object.defineProperty(this,lb,{value:vb}),Object.defineProperty(this,sb,{writable:!0,value:0}),Object.defineProperty(this,cb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return ib(this,sb)[sb]<this.limit?ib(this,lb)[lb](e):ib(this,pb)[pb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Sb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Cb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Db}=sy,{Provider:Ob,RequestClient:Ab,Socket:kb}=Zm,{RateLimitedQueue:Tb,internalRateLimitedQueue:Bb}=Eb;function _b(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Sb(e)?(n=new vm(n,e),n):(n.request=e,n)}function Pb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Fb=(xb=wb=class extends tm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Cb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Sb(t)&&(n=new vm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Bb in this.opts?this.requests=this.opts[Bb]:this.requests=new Tb(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){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,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(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=Pb(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=Pb(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Ym(this.uppy);const a=new ob(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Db();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const c=r.getResponseData(i.responseText,i),l=_b(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:c};return this.uppy.emit("upload-error",e,l,f),n(l)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=_b(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?Ob:Ab)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new kb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Ym(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>Wm(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new ob(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(e),n(e)})),c=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,c(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return c(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}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[Bb]||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...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.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(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},wb.VERSION="2.0.6",xb),jb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function Nb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Lb,Ib,Rb=function(e){return e&&e.Math==Math&&e},Mb=Rb("object"==typeof globalThis&&globalThis)||Rb("object"==typeof window&&window)||Rb("object"==typeof self&&self)||Rb("object"==typeof jb&&jb)||function(){return this}()||Function("return this")(),zb=Object.defineProperty,Hb=function(e,t){try{zb(Mb,e,{value:t,configurable:!0,writable:!0})}catch(n){Mb[e]=t}return t},$b=Mb["__core-js_shared__"]||Hb("__core-js_shared__",{}),Vb=Nb((function(e){(e.exports=function(e,t){return $b[e]||($b[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Ub=Function.prototype,Zb=Ub.bind,Wb=Ub.call,Gb=Zb&&Zb.bind(Wb),qb=Zb?function(e){return e&&Gb(Wb,e)}:function(e){return e&&function(){return Wb.apply(e,arguments)}},Kb=Mb.TypeError,Yb=function(e){if(null==e)throw Kb("Can't call method on "+e);return e},Xb=Mb.Object,Jb=function(e){return Xb(Yb(e))},Qb=qb({}.hasOwnProperty),ew=Object.hasOwn||function(e,t){return Qb(Jb(e),t)},tw=0,nw=Math.random(),rw=qb(1..toString),ow=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rw(++tw+nw,36)},iw=function(e){return"function"==typeof e},aw=function(e){return iw(e)?e:void 0},uw=function(e,t){return arguments.length<2?aw(Mb[e]):Mb[e]&&Mb[e][t]},sw=uw("navigator","userAgent")||"",cw=Mb.process,lw=Mb.Deno,fw=cw&&cw.versions||lw&&lw.version,dw=fw&&fw.v8;dw&&(Ib=(Lb=dw.split("."))[0]>0&&Lb[0]<4?1:+(Lb[0]+Lb[1])),!Ib&&sw&&(!(Lb=sw.match(/Edge\/(\d+)/))||Lb[1]>=74)&&(Lb=sw.match(/Chrome\/(\d+)/))&&(Ib=+Lb[1]);var pw=Ib,hw=function(e){try{return!!e()}catch(e){return!0}},vw=!!Object.getOwnPropertySymbols&&!hw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pw&&pw<41})),gw=vw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yw=Vb("wks"),mw=Mb.Symbol,bw=mw&&mw.for,ww=gw?mw:mw&&mw.withoutSetter||ow,xw=function(e){if(!ew(yw,e)||!vw&&"string"!=typeof yw[e]){var t="Symbol."+e;vw&&ew(mw,e)?yw[e]=mw[e]:yw[e]=gw&&bw?bw(t):ww(t)}return yw[e]},Ew={};Ew[xw("toStringTag")]="z";var Sw="[object z]"===String(Ew),Cw=!hw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Dw=function(e){return"object"==typeof e?null!==e:iw(e)},Ow=Mb.document,Aw=Dw(Ow)&&Dw(Ow.createElement),kw=function(e){return Aw?Ow.createElement(e):{}},Tw=!Cw&&!hw((function(){return 7!=Object.defineProperty(kw("div"),"a",{get:function(){return 7}}).a})),Bw=Mb.String,_w=Mb.TypeError,Pw=function(e){if(Dw(e))return e;throw _w(Bw(e)+" is not an object")},Fw=Function.prototype.call,jw=Fw.bind?Fw.bind(Fw):function(){return Fw.apply(Fw,arguments)},Nw=qb({}.isPrototypeOf),Lw=Mb.Object,Iw=gw?function(e){return"symbol"==typeof e}:function(e){var t=uw("Symbol");return iw(t)&&Nw(t.prototype,Lw(e))},Rw=Mb.String,Mw=function(e){try{return Rw(e)}catch(e){return"Object"}},zw=Mb.TypeError,Hw=function(e){if(iw(e))return e;throw zw(Mw(e)+" is not a function")},$w=function(e,t){var n=e[t];return null==n?void 0:Hw(n)},Vw=Mb.TypeError,Uw=Mb.TypeError,Zw=xw("toPrimitive"),Ww=function(e){var t=function(e,t){if(!Dw(e)||Iw(e))return e;var n,r=$w(e,Zw);if(r){if(void 0===t&&(t="default"),n=jw(r,e,t),!Dw(n)||Iw(n))return n;throw Uw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&iw(n=e.toString)&&!Dw(r=jw(n,e)))return r;if(iw(n=e.valueOf)&&!Dw(r=jw(n,e)))return r;if("string"!==t&&iw(n=e.toString)&&!Dw(r=jw(n,e)))return r;throw Vw("Can't convert object to primitive value")}(e,t)}(e,"string");return Iw(t)?t:t+""},Gw=Mb.TypeError,qw=Object.defineProperty,Kw={f:Cw?qw:function(e,t,n){if(Pw(e),t=Ww(t),Pw(n),Tw)try{return qw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Gw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xw=Cw?function(e,t,n){return Kw.f(e,t,Yw(1,n))}:function(e,t,n){return e[t]=n,e},Jw=qb(Function.toString);iw($b.inspectSource)||($b.inspectSource=function(e){return Jw(e)});var Qw,ex,tx,nx=$b.inspectSource,rx=Mb.WeakMap,ox=iw(rx)&&/native code/.test(nx(rx)),ix=Vb("keys"),ax=function(e){return ix[e]||(ix[e]=ow(e))},ux={},sx=Mb.TypeError,cx=Mb.WeakMap;if(ox||$b.state){var lx=$b.state||($b.state=new cx),fx=qb(lx.get),dx=qb(lx.has),px=qb(lx.set);Qw=function(e,t){if(dx(lx,e))throw new sx("Object already initialized");return t.facade=e,px(lx,e,t),t},ex=function(e){return fx(lx,e)||{}},tx=function(e){return dx(lx,e)}}else{var hx=ax("state");ux[hx]=!0,Qw=function(e,t){if(ew(e,hx))throw new sx("Object already initialized");return t.facade=e,Xw(e,hx,t),t},ex=function(e){return ew(e,hx)?e[hx]:{}},tx=function(e){return ew(e,hx)}}var vx={set:Qw,get:ex,has:tx,enforce:function(e){return tx(e)?ex(e):Qw(e,{})},getterFor:function(e){return function(t){var n;if(!Dw(t)||(n=ex(t)).type!==e)throw sx("Incompatible receiver, "+e+" required");return n}}},gx=Function.prototype,yx=Cw&&Object.getOwnPropertyDescriptor,mx=ew(gx,"name"),bx={EXISTS:mx,PROPER:mx&&"something"===function(){}.name,CONFIGURABLE:mx&&(!Cw||Cw&&yx(gx,"name").configurable)},wx=Nb((function(e){var t=bx.CONFIGURABLE,n=vx.get,r=vx.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;iw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ew(i,"name")||t&&i.name!==f)&&Xw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Mb?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:Xw(e,n,i)):c?e[n]=i:Hb(n,i)})(Function.prototype,"toString",(function(){return iw(this)&&n(this).source||nx(this)}))})),xx=qb({}.toString),Ex=qb("".slice),Sx=function(e){return Ex(xx(e),8,-1)},Cx=xw("toStringTag"),Dx=Mb.Object,Ox="Arguments"==Sx(function(){return arguments}()),Ax=Sw?Sx:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Dx(e),Cx))?n:Ox?Sx(t):"Object"==(r=Sx(t))&&iw(t.callee)?"Arguments":r},kx=Sw?{}.toString:function(){return"[object "+Ax(this)+"]"};Sw||wx(Object.prototype,"toString",kx,{unsafe:!0});var Tx={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},Bx=kw("span").classList,_x=Bx&&Bx.constructor&&Bx.constructor.prototype,Px=_x===Object.prototype?void 0:_x,Fx=qb(qb.bind),jx=function(e,t){return Hw(e),void 0===t?e:Fx?Fx(e,t):function(){return e.apply(t,arguments)}},Nx=Mb.Object,Lx=qb("".split),Ix=hw((function(){return!Nx("z").propertyIsEnumerable(0)}))?function(e){return"String"==Sx(e)?Lx(e,""):Nx(e)}:Nx,Rx=Math.ceil,Mx=Math.floor,zx=function(e){var t=+e;return t!=t||0===t?0:(t>0?Mx:Rx)(t)},Hx=Math.min,$x=function(e){return e>0?Hx(zx(e),9007199254740991):0},Vx=function(e){return $x(e.length)},Ux=Array.isArray||function(e){return"Array"==Sx(e)},Zx=function(){},Wx=[],Gx=uw("Reflect","construct"),qx=/^\s*(?:class|function)\b/,Kx=qb(qx.exec),Yx=!qx.exec(Zx),Xx=function(e){if(!iw(e))return!1;try{return Gx(Zx,Wx,e),!0}catch(e){return!1}},Jx=!Gx||hw((function(){var e;return Xx(Xx.call)||!Xx(Object)||!Xx((function(){e=!0}))||e}))?function(e){if(!iw(e))return!1;switch(Ax(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yx||!!Kx(qx,nx(e))}:Xx,Qx=xw("species"),eE=Mb.Array,tE=function(e,t){return new(function(e){var t;return Ux(e)&&(t=e.constructor,(Jx(t)&&(t===eE||Ux(t.prototype))||Dw(t)&&null===(t=t[Qx]))&&(t=void 0)),void 0===t?eE:t}(e))(0===t?0:t)},nE=qb([].push),rE=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Jb(s),v=Ix(h),g=jx(c,l),y=Vx(v),m=0,b=f||tE,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nE(w,d)}else switch(e){case 4:return!1;case 7:nE(w,d)}return i?-1:r||o?o:w}},oE={forEach:rE(0),map:rE(1),filter:rE(2),some:rE(3),every:rE(4),find:rE(5),findIndex:rE(6),filterReject:rE(7)},iE=function(e,t){var n=[][e];return!!n&&hw((function(){n.call(null,t||function(){throw 1},1)}))},aE=oE.forEach,uE=iE("forEach")?[].forEach:function(e){return aE(this,e,arguments.length>1?arguments[1]:void 0)},sE=function(e){if(e&&e.forEach!==uE)try{Xw(e,"forEach",uE)}catch(t){e.forEach=uE}};for(var cE in Tx)Tx[cE]&&sE(Mb[cE]&&Mb[cE].prototype);sE(Px);var lE={}.propertyIsEnumerable,fE=Object.getOwnPropertyDescriptor,dE=fE&&!lE.call({1:2},1)?function(e){var t=fE(this,e);return!!t&&t.enumerable}:lE,pE={f:dE},hE=function(e){return Ix(Yb(e))},vE=Object.getOwnPropertyDescriptor,gE={f:Cw?vE:function(e,t){if(e=hE(e),t=Ww(t),Tw)try{return vE(e,t)}catch(e){}if(ew(e,t))return Yw(!jw(pE.f,e,t),e[t])}},yE=Math.max,mE=Math.min,bE=function(e,t){var n=zx(e);return n<0?yE(n+t,0):mE(n,t)},wE=function(e){return function(t,n,r){var o,i=hE(t),a=Vx(i),u=bE(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},xE={includes:wE(!0),indexOf:wE(!1)},EE=xE.indexOf,SE=qb([].push),CE=function(e,t){var n,r=hE(e),o=0,i=[];for(n in r)!ew(ux,n)&&ew(r,n)&&SE(i,n);for(;t.length>o;)ew(r,n=t[o++])&&(~EE(i,n)||SE(i,n));return i},DE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],OE=DE.concat("length","prototype"),AE={f:Object.getOwnPropertyNames||function(e){return CE(e,OE)}},kE={f:Object.getOwnPropertySymbols},TE=qb([].concat),BE=uw("Reflect","ownKeys")||function(e){var t=AE.f(Pw(e)),n=kE.f;return n?TE(t,n(e)):t},_E=function(e,t){for(var n=BE(t),r=Kw.f,o=gE.f,i=0;i<n.length;i++){var a=n[i];ew(e,a)||r(e,a,o(t,a))}},PE=/#|\.prototype\./,FE=function(e,t){var n=NE[jE(e)];return n==IE||n!=LE&&(iw(t)?hw(t):!!t)},jE=FE.normalize=function(e){return String(e).replace(PE,".").toLowerCase()},NE=FE.data={},LE=FE.NATIVE="N",IE=FE.POLYFILL="P",RE=FE,ME=gE.f,zE=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Mb:c?Mb[u]||Hb(u,{}):(Mb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ME(n,r))&&a.value:n[r],!RE(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_E(i,o)}(e.sham||o&&o.sham)&&Xw(i,"sham",!0),wx(n,r,i,e)}},HE=Object.keys||function(e){return CE(e,DE)},$E=hw((function(){HE(1)}));
|
|
59
|
+
*/function Rg(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=Ig(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var Mg=(Pg=function(e){return"__private_"+Lg+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Pg,{value:zg}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Ng(this,Pg)[Pg],this):Ng(this,Pg)[Pg](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return Rg(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}")}return Rg(n,t)}});function zg(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Hg=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.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]},e};let{urlAlphabet:$g}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Vg=e=>crypto.getRandomValues(new Uint8Array(e)),Ug=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var Zg={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>Ug(e,t,Vg),customRandom:Ug,urlAlphabet:$g,random:Vg},Wg=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Gg(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Gg.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 qg=/[\/\+\.]/,Kg=function(e,t){function n(t){var n=function(e,t,n){var r=new Gg(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,qg);return n&&n.length>=2}return t?n(t.split(";")[0]):n},Yg=0;var Xg=function(e){return"__private_"+Yg+++"_"+e}("publish");class Jg{constructor(){Object.defineProperty(this,Xg,{value:Qg}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Xg)[Xg](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Qg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Jg.VERSION="2.0.3";var ey=function(e){const 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)}},ty={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 ny(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var ry=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function oy(e){return e<10?`0${e}`:e.toString()}var iy=function(){const e=new Date;return`${oy(e.getHours())}:${oy(e.getMinutes())}:${oy(e.getSeconds())}`},ay={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] [${iy()}]`,...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] [${iy()}]`,...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] [${iy()}]`,...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] [${iy()}]`,...t)}}},uy={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}"}}},sy=Zg;let cy,ly;function fy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var dy=0;function py(e){return"__private_"+dy+++"_"+e}const{nanoid:hy}=sy,{justErrorsLogger:vy,debugLogger:gy}=ay;class yy 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 my extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var by=py("plugins"),wy=py("storeUnsubscribe"),xy=py("emitter"),Ey=py("preProcessors"),Sy=py("uploaders"),Cy=py("postProcessors"),Dy=py("checkRestrictions"),Oy=py("checkMinNumberOfFiles"),Ay=py("checkRequiredMetaFieldsOnFile"),ky=py("checkRequiredMetaFields"),Ty=py("showOrLogErrorAndThrow"),By=py("assertNewUploadAllowed"),_y=py("checkAndCreateFileStateObject"),Py=py("startIfAutoProceed"),Fy=py("addListeners"),jy=py("updateOnlineStatus"),Ny=py("createUpload"),Ly=py("getUpload"),Iy=py("removeUpload"),Ry=py("runUpload");cy=Symbol.for("uppy test: getPlugins"),ly=Symbol.for("uppy test: createUpload");class My{constructor(e){Object.defineProperty(this,Ry,{value:Jy}),Object.defineProperty(this,Iy,{value:Xy}),Object.defineProperty(this,Ly,{value:Yy}),Object.defineProperty(this,Ny,{value:Ky}),Object.defineProperty(this,Fy,{value:qy}),Object.defineProperty(this,Py,{value:Gy}),Object.defineProperty(this,_y,{value:Wy}),Object.defineProperty(this,By,{value:Zy}),Object.defineProperty(this,Ty,{value:Uy}),Object.defineProperty(this,ky,{value:Vy}),Object.defineProperty(this,Ay,{value:$y}),Object.defineProperty(this,Oy,{value:Hy}),Object.defineProperty(this,Dy,{value:zy}),Object.defineProperty(this,by,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,wy,{writable:!0,value:void 0}),Object.defineProperty(this,xy,{writable:!0,value:Hg()}),Object.defineProperty(this,Ey,{writable:!0,value:new Set}),Object.defineProperty(this,Sy,{writable:!0,value:new Set}),Object.defineProperty(this,Cy,{writable:!0,value:new Set}),Object.defineProperty(this,jy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=uy;const t={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 Jg,logger:vy,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.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=gy),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=$h(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:ry(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),fy(this,wy)[wy]=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),fy(this,Fy)[Fy]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];fy(this,xy)[xy].emit(e,...n)}on(e,t){return fy(this,xy)[xy].on(e,t),this}once(e,t){return fy(this,xy)[xy].once(e,t),this}off(e,t){return fy(this,xy)[xy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}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(){const e=new Mg([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 e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){fy(this,Ey)[Ey].add(e)}removePreProcessor(e){return fy(this,Ey)[Ey].delete(e)}addPostProcessor(e){fy(this,Cy)[Cy].add(e)}removePostProcessor(e){return fy(this,Cy)[Cy].delete(e)}addUploader(e){fy(this,Sy)[Sy].add(e)}removeUploader(e){return fy(this,Sy)[Sy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),c=r.filter((e=>e.progress.uploadComplete)),l=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:c,erroredFiles:l,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&c.length===r.length&&0===d.length,isAllErrored:!!n&&l.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return fy(this,Dy)[Dy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){fy(this,By)[By](e);const{files:t}=this.getState();let n=fy(this,_y)[_y](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}`),fy(this,Py)[Py](),n.id}addFiles(e){fy(this,By)[By]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=fy(this,_y)[_y](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&fy(this,Py)[Py](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}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=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const c=Object.keys(a);c.forEach((e=>{this.emit("file-removed",a[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=fy(this,Ny)[Ny](t,{forceAllowNewUpload:!0});return fy(this,Ry)[Ry](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=fy(this,Ny)[Ny]([e],{forceAllowNewUpload:!0});return fy(this,Ry)[Ry](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;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()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}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.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in fy(this,by)[by]?fy(this,by)[by][n.type].push(n):fy(this,by)[by][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(fy(this,by)[by])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[cy](e){return fy(this,by)[by][e]}iteratePlugins(e){Object.values(fy(this,by)[by]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=fy(this,by)[by][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),fy(this,wy)[wy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",fy(this,jy)[jy]),window.removeEventListener("offline",fy(this,jy)[jy]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const 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){const{logger:n}=this.opts;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]?fy(this,Ry)[Ry](e):(fy(this,Iy)[Iy](e),Promise.reject(new Error("Nonexistent upload")))}[ly](){return fy(this,Ny)[Ny](...arguments)}addResultData(e,t){if(!fy(this,Ly)[Ly](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=fy(this,by)[by].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{fy(this,Oy)[Oy](t),fy(this,ky)[ky](t)})).catch((e=>{fy(this,Ty)[Ty](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=fy(this,Ny)[Ny](r);return fy(this,Ry)[Ry](o)})).catch((e=>{fy(this,Ty)[Ty](e,{showInformer:!1})})))}}function zy(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new yy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&Kg(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new yy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new yy(this.i18n("exceedsSize",{size:Wg(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new yy(this.i18n("exceedsSize",{size:Wg(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new yy(this.i18n("inferiorSize",{size:Wg(r)}))}function Hy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new yy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function $y(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new yy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),fy(this,Ty)[Ty](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Vy(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return fy(this,Ay)[Ay](t)}));if(t.length)throw new my(t,`${this.i18n("missingRequiredMetaField")}`)}function Uy(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Zy(e){const{allowNewUpload:t}=this.getState();!1===t&&fy(this,Ty)[Ty](new yy(this.i18n("noMoreFilesAllowed")),{file:e})}function Wy(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=ey(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in ty?ty[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=ey(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${ny(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${ny(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new yy(this.i18n("noDuplicates",{fileName:r}));fy(this,Ty)[Ty](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let c={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const l=this.opts.onBeforeFileAdded(c,e);!1===l?fy(this,Ty)[Ty](new yy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof l&&null!==l&&(c=l);try{const t=Object.keys(e).map((t=>e[t]));fy(this,Dy)[Dy](c,t)}catch(e){fy(this,Ty)[Ty](e,{file:c})}return c}function Gy(){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 qy(){const e=(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",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),fy(this,Ty)[Ty](e,{throwErr:!1})}else fy(this,Ty)[Ty](n,{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)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:fy(this,Cy)[Cy].size>0?{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.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=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),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=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&fy(this,Ay)[Ay](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",fy(this,jy)[jy]),window.addEventListener("offline",fy(this,jy)[jy]),setTimeout(fy(this,jy)[jy],3e3))}function Ky(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=hy();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Yy(e){const{currentUploads:t}=this.getState();return t[e]}function Xy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Jy(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...fy(this,Ey)[Ey],...fy(this,Sy)[Sy],...fy(this,Cy)[Cy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),fy(this,Iy)[Iy](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),fy(this,Iy)[Iy](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}My.VERSION="2.1.3";var Qy=My,em=o((function(e,t){var n,r,o,i,a,u,s,c,l={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(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?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(E)}function E(){for(var e;E.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,B(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),_(n,o),o.__e!=i&&w(o)))}))}function S(e,t,n,r,o,i,a,u,s,c){var d,p,h,v,m,w,x,E=r&&r.__k||f,S=E.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=E[d])||h&&v.key==h.key&&v.type===h.type)E[d]=void 0;else for(p=0;p<S;p++){if((h=E[p])&&v.key==h.key&&v.type===h.type){E[p]=void 0;break}h=null}B(e,v,h=h||l,o,i,a,u,s,c),m=v.__e,(p=v.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,v),x.push(p,v.__c||m,v)),null!=m?(null==w&&(w=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=C(v,s,e):s=D(e,v,h,E,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=S;d--;)null!=E[d]&&("function"==typeof n.type&&null!=E[d].__e&&E[d].__e==n.__d&&(n.__d=b(r,d+1)),j(E[d],E[d]));if(x)for(d=0;d<x.length;d++)F(x[d],x[++d],x[++d])}function C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):D(n,r,r,o,r.__e,t));return t}function D(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 O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function A(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||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(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().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?T:k,i):e.removeEventListener(t,i?T:k,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 k(e){this.l[e.type+!1](r.event?r.event(e):e)}function T(e){this.l[e.type+!0](r.event?r.event(e):e)}function B(e,t,n,o,i,a,u,s,c){var l,f,d,h,v,g,b,w,x,E,C,D=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(l=r.__b)&&l(t);try{e:if("function"==typeof D){if(w=t.props,x=(l=D.contextType)&&o[l.__c],E=l?x?x.props.value:l.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in D&&D.prototype.render?t.__c=f=new D(w,E):(t.__c=f=new m(w,E),f.constructor=D,f.render=N),x&&x.sub(f),f.props=w,f.state||(f.state={}),f.context=E,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=D.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,D.getDerivedStateFromProps(w,f.__s))),h=f.props,v=f.state,d)null==D.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==D.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,E),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,E)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,E),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,g)}))}f.context=E,f.props=w,f.state=f.__s,(l=r.__r)&&l(t),f.__d=!1,f.__v=t,f.__P=e,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),C=null!=l&&l.type===y&&null==l.key?l.props.children:l,S(e,Array.isArray(C)?C:[C],t,n,o,i,a,u,s,c),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,o,i,a,u,c);(l=r.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=a)&&(t.__e=s,t.__h=!!c,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function _(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,r,o,i,a,u,s){var c,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||l).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||A(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]||A(e,i,t[i],n[i],r)}(e,v,p,i,s),d)t.__k=[];else if(y=t.props.children,S(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&A(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&A(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||F(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function L(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],B(t,e=(!i&&o||t).__k=v(y,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),_(u,e)}n=f.slice,r={__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}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),x(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,c=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},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 n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){L(t,n,e)},t.isValidElement=i,t.options=r,t.render=L,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),tm=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new Mg([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 nm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rm=0;const{render:om}=em;var im=function(e){return"__private_"+rm+++"_"+e}("updateUI");class am extends tm{constructor(){super(...arguments),Object.defineProperty(this,im,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return nm(this,im)[im]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(om(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),om(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 am)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}`);let 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=nm(this,im))[im])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var um=am;const{debugLogger:sm}=ay;var cm=Qy,lm=Qy,fm=um,dm=tm,pm=sm;cm.Uppy=lm,cm.UIPlugin=fm,cm.BasePlugin=dm,cm.debugLogger=pm;class hm 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}}var vm=hm,gm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new vm(e)}))};class ym extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var mm,bm,wm,xm,Em,Sm=ym;function Cm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Dm=0;function Om(e){return"__private_"+Dm+++"_"+e}async function Am(e){if(401===e.status)throw new Sm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var km=(bm=Om("getPostResponseFunc"),wm=Om("getUrl"),xm=Om("errorHandler"),Em=mm=class e{constructor(e,t){Object.defineProperty(this,xm,{value:Bm}),Object.defineProperty(this,wm,{value:Tm}),Object.defineProperty(this,bm,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),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(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;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(Cm(this,wm)[wm](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(e,t){return this.preflightAndHeaders(e).then((t=>gm(Cm(this,wm)[wm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Cm(this,bm)[bm](t)).then(Am).catch(Cm(this,xm)[xm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>gm(Cm(this,wm)[wm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Cm(this,bm)[bm](n)).then(Am).catch(Cm(this,xm)[xm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>gm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Cm(this,bm)[bm](n)).then(Am).catch(Cm(this,xm)[xm](r,e))}},mm.VERSION="2.0.4",mm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${mm.VERSION}`},Em);function Tm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Bm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Cm(this,wm)[wm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var _m,Pm,Fm,jm,Nm,Lm={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let Im,Rm;function Mm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zm=0;function Hm(e){return"__private_"+zm+++"_"+e}var $m,Vm,Um=(_m=Hm("queued"),Pm=Hm("emitter"),Fm=Hm("isOpen"),jm=Hm("socket"),Nm=Hm("handleMessage"),Im=Symbol.for("uppy test: getSocket"),Rm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,_m,{writable:!0,value:[]}),Object.defineProperty(this,Pm,{writable:!0,value:Hg()}),Object.defineProperty(this,Fm,{writable:!0,value:!1}),Object.defineProperty(this,jm,{writable:!0,value:void 0}),Object.defineProperty(this,Nm,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Mm(this,Fm)[Fm]}[Im](){return Mm(this,jm)[jm]}[Rm](){return Mm(this,_m)[_m]}open(){Mm(this,jm)[jm]=new WebSocket(this.opts.target),Mm(this,jm)[jm].onopen=()=>{for(Mm(this,Fm)[Fm]=!0;Mm(this,_m)[_m].length>0&&Mm(this,Fm)[Fm];){const e=Mm(this,_m)[_m].shift();this.send(e.action,e.payload)}},Mm(this,jm)[jm].onclose=()=>{Mm(this,Fm)[Fm]=!1},Mm(this,jm)[jm].onmessage=Mm(this,Nm)[Nm]}close(){var e;null==(e=Mm(this,jm)[jm])||e.close()}send(e,t){Mm(this,Fm)[Fm]?Mm(this,jm)[jm].send(JSON.stringify({action:e,payload:t})):Mm(this,_m)[_m].push({action:e,payload:t})}on(e,t){Mm(this,Pm)[Pm].on(e,t)}emit(e,t){Mm(this,Pm)[Pm].emit(e,t)}once(e,t){Mm(this,Pm)[Pm].once(e,t)}}),Zm={RequestClient:km,Provider:class extends km{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>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=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const 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=>{let[t]=e;return t}))}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||Lm}},SearchProvider:class extends km{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>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:Um},Wm=$h((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Gm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qm=0;function Km(e){return"__private_"+qm+++"_"+e}var Ym=($m=Km("emitter"),Vm=Km("events"),class{constructor(e){Object.defineProperty(this,$m,{writable:!0,value:void 0}),Object.defineProperty(this,Vm,{writable:!0,value:[]}),Gm(this,$m)[$m]=e}on(e,t){return Gm(this,Vm)[Vm].push([e,t]),Gm(this,$m)[$m].on(e,t)}remove(){for(const[e,t]of Gm(this,Vm)[Vm].splice(0))Gm(this,$m)[$m].off(e,t)}});function Xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Jm=0;function Qm(e){return"__private_"+Jm+++"_"+e}var eb=Qm("aliveTimer"),tb=Qm("isDone"),nb=Qm("onTimedOut"),rb=Qm("timeout"),ob=class{constructor(e,t){Object.defineProperty(this,eb,{writable:!0,value:void 0}),Object.defineProperty(this,tb,{writable:!0,value:!1}),Object.defineProperty(this,nb,{writable:!0,value:void 0}),Object.defineProperty(this,rb,{writable:!0,value:void 0}),Xm(this,rb)[rb]=e,Xm(this,nb)[nb]=t}progress(){Xm(this,tb)[tb]||Xm(this,rb)[rb]>0&&(clearTimeout(Xm(this,eb)[eb]),Xm(this,eb)[eb]=setTimeout(Xm(this,nb)[nb],Xm(this,rb)[rb]))}done(){Xm(this,tb)[tb]||(clearTimeout(Xm(this,eb)[eb]),Xm(this,eb)[eb]=null,Xm(this,tb)[tb]=!0)}};function ib(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ab=0;function ub(e){return"__private_"+ab+++"_"+e}var sb=ub("activeRequests"),cb=ub("queuedHandlers"),lb=ub("call"),fb=ub("queueNext"),db=ub("next"),pb=ub("queue"),hb=ub("dequeue");function vb(e){ib(this,sb)[sb]+=1;let t,n=!1;try{t=e()}catch(e){throw ib(this,sb)[sb]-=1,e}return{abort:()=>{n||(n=!0,ib(this,sb)[sb]-=1,t(),ib(this,fb)[fb]())},done:()=>{n||(n=!0,ib(this,sb)[sb]-=1,ib(this,fb)[fb]())}}}function gb(){queueMicrotask((()=>ib(this,db)[db]()))}function yb(){if(ib(this,sb)[sb]>=this.limit)return;if(0===ib(this,cb)[cb].length)return;const e=ib(this,cb)[cb].shift(),t=ib(this,lb)[lb](e.fn);e.abort=t.abort,e.done=t.done}function mb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{ib(this,hb)[hb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=ib(this,cb)[cb].findIndex((e=>n.priority>e.priority));return-1===r?ib(this,cb)[cb].push(n):ib(this,cb)[cb].splice(r,0,n),n}function bb(e){const t=ib(this,cb)[cb].indexOf(e);-1!==t&&ib(this,cb)[cb].splice(t,1)}var wb,xb,Eb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,hb,{value:bb}),Object.defineProperty(this,pb,{value:mb}),Object.defineProperty(this,db,{value:yb}),Object.defineProperty(this,fb,{value:gb}),Object.defineProperty(this,lb,{value:vb}),Object.defineProperty(this,sb,{writable:!0,value:0}),Object.defineProperty(this,cb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return ib(this,sb)[sb]<this.limit?ib(this,lb)[lb](e):ib(this,pb)[pb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Sb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Cb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Db}=sy,{Provider:Ob,RequestClient:Ab,Socket:kb}=Zm,{RateLimitedQueue:Tb,internalRateLimitedQueue:Bb}=Eb;function _b(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Sb(e)?(n=new vm(n,e),n):(n.request=e,n)}function Pb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Fb=(xb=wb=class extends tm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Cb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Sb(t)&&(n=new vm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Bb in this.opts?this.requests=this.opts[Bb]:this.requests=new Tb(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){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,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(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=Pb(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=Pb(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new Ym(this.uppy);const a=new ob(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Db();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const c=r.getResponseData(i.responseText,i),l=_b(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:c};return this.uppy.emit("upload-error",e,l,f),n(l)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=_b(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?Ob:Ab)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new kb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Ym(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>Wm(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new ob(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));c(e),n(e)})),c=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,c(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return c(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}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[Bb]||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...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.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(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},wb.VERSION="2.0.6",xb),jb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function Nb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Lb,Ib,Rb=function(e){return e&&e.Math==Math&&e},Mb=Rb("object"==typeof globalThis&&globalThis)||Rb("object"==typeof window&&window)||Rb("object"==typeof self&&self)||Rb("object"==typeof jb&&jb)||function(){return this}()||Function("return this")(),zb=Object.defineProperty,Hb=function(e,t){try{zb(Mb,e,{value:t,configurable:!0,writable:!0})}catch(n){Mb[e]=t}return t},$b=Mb["__core-js_shared__"]||Hb("__core-js_shared__",{}),Vb=Nb((function(e){(e.exports=function(e,t){return $b[e]||($b[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Ub=Function.prototype,Zb=Ub.bind,Wb=Ub.call,Gb=Zb&&Zb.bind(Wb),qb=Zb?function(e){return e&&Gb(Wb,e)}:function(e){return e&&function(){return Wb.apply(e,arguments)}},Kb=Mb.TypeError,Yb=function(e){if(null==e)throw Kb("Can't call method on "+e);return e},Xb=Mb.Object,Jb=function(e){return Xb(Yb(e))},Qb=qb({}.hasOwnProperty),ew=Object.hasOwn||function(e,t){return Qb(Jb(e),t)},tw=0,nw=Math.random(),rw=qb(1..toString),ow=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rw(++tw+nw,36)},iw=function(e){return"function"==typeof e},aw=function(e){return iw(e)?e:void 0},uw=function(e,t){return arguments.length<2?aw(Mb[e]):Mb[e]&&Mb[e][t]},sw=uw("navigator","userAgent")||"",cw=Mb.process,lw=Mb.Deno,fw=cw&&cw.versions||lw&&lw.version,dw=fw&&fw.v8;dw&&(Ib=(Lb=dw.split("."))[0]>0&&Lb[0]<4?1:+(Lb[0]+Lb[1])),!Ib&&sw&&(!(Lb=sw.match(/Edge\/(\d+)/))||Lb[1]>=74)&&(Lb=sw.match(/Chrome\/(\d+)/))&&(Ib=+Lb[1]);var pw=Ib,hw=function(e){try{return!!e()}catch(e){return!0}},vw=!!Object.getOwnPropertySymbols&&!hw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pw&&pw<41})),gw=vw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yw=Vb("wks"),mw=Mb.Symbol,bw=mw&&mw.for,ww=gw?mw:mw&&mw.withoutSetter||ow,xw=function(e){if(!ew(yw,e)||!vw&&"string"!=typeof yw[e]){var t="Symbol."+e;vw&&ew(mw,e)?yw[e]=mw[e]:yw[e]=gw&&bw?bw(t):ww(t)}return yw[e]},Ew={};Ew[xw("toStringTag")]="z";var Sw="[object z]"===String(Ew),Cw=!hw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Dw=function(e){return"object"==typeof e?null!==e:iw(e)},Ow=Mb.document,Aw=Dw(Ow)&&Dw(Ow.createElement),kw=function(e){return Aw?Ow.createElement(e):{}},Tw=!Cw&&!hw((function(){return 7!=Object.defineProperty(kw("div"),"a",{get:function(){return 7}}).a})),Bw=Mb.String,_w=Mb.TypeError,Pw=function(e){if(Dw(e))return e;throw _w(Bw(e)+" is not an object")},Fw=Function.prototype.call,jw=Fw.bind?Fw.bind(Fw):function(){return Fw.apply(Fw,arguments)},Nw=qb({}.isPrototypeOf),Lw=Mb.Object,Iw=gw?function(e){return"symbol"==typeof e}:function(e){var t=uw("Symbol");return iw(t)&&Nw(t.prototype,Lw(e))},Rw=Mb.String,Mw=function(e){try{return Rw(e)}catch(e){return"Object"}},zw=Mb.TypeError,Hw=function(e){if(iw(e))return e;throw zw(Mw(e)+" is not a function")},$w=function(e,t){var n=e[t];return null==n?void 0:Hw(n)},Vw=Mb.TypeError,Uw=Mb.TypeError,Zw=xw("toPrimitive"),Ww=function(e){var t=function(e,t){if(!Dw(e)||Iw(e))return e;var n,r=$w(e,Zw);if(r){if(void 0===t&&(t="default"),n=jw(r,e,t),!Dw(n)||Iw(n))return n;throw Uw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&iw(n=e.toString)&&!Dw(r=jw(n,e)))return r;if(iw(n=e.valueOf)&&!Dw(r=jw(n,e)))return r;if("string"!==t&&iw(n=e.toString)&&!Dw(r=jw(n,e)))return r;throw Vw("Can't convert object to primitive value")}(e,t)}(e,"string");return Iw(t)?t:t+""},Gw=Mb.TypeError,qw=Object.defineProperty,Kw={f:Cw?qw:function(e,t,n){if(Pw(e),t=Ww(t),Pw(n),Tw)try{return qw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Gw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xw=Cw?function(e,t,n){return Kw.f(e,t,Yw(1,n))}:function(e,t,n){return e[t]=n,e},Jw=qb(Function.toString);iw($b.inspectSource)||($b.inspectSource=function(e){return Jw(e)});var Qw,ex,tx,nx=$b.inspectSource,rx=Mb.WeakMap,ox=iw(rx)&&/native code/.test(nx(rx)),ix=Vb("keys"),ax=function(e){return ix[e]||(ix[e]=ow(e))},ux={},sx=Mb.TypeError,cx=Mb.WeakMap;if(ox||$b.state){var lx=$b.state||($b.state=new cx),fx=qb(lx.get),dx=qb(lx.has),px=qb(lx.set);Qw=function(e,t){if(dx(lx,e))throw new sx("Object already initialized");return t.facade=e,px(lx,e,t),t},ex=function(e){return fx(lx,e)||{}},tx=function(e){return dx(lx,e)}}else{var hx=ax("state");ux[hx]=!0,Qw=function(e,t){if(ew(e,hx))throw new sx("Object already initialized");return t.facade=e,Xw(e,hx,t),t},ex=function(e){return ew(e,hx)?e[hx]:{}},tx=function(e){return ew(e,hx)}}var vx={set:Qw,get:ex,has:tx,enforce:function(e){return tx(e)?ex(e):Qw(e,{})},getterFor:function(e){return function(t){var n;if(!Dw(t)||(n=ex(t)).type!==e)throw sx("Incompatible receiver, "+e+" required");return n}}},gx=Function.prototype,yx=Cw&&Object.getOwnPropertyDescriptor,mx=ew(gx,"name"),bx={EXISTS:mx,PROPER:mx&&"something"===function(){}.name,CONFIGURABLE:mx&&(!Cw||Cw&&yx(gx,"name").configurable)},wx=Nb((function(e){var t=bx.CONFIGURABLE,n=vx.get,r=vx.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;iw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ew(i,"name")||t&&i.name!==f)&&Xw(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Mb?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:Xw(e,n,i)):c?e[n]=i:Hb(n,i)})(Function.prototype,"toString",(function(){return iw(this)&&n(this).source||nx(this)}))})),xx=qb({}.toString),Ex=qb("".slice),Sx=function(e){return Ex(xx(e),8,-1)},Cx=xw("toStringTag"),Dx=Mb.Object,Ox="Arguments"==Sx(function(){return arguments}()),Ax=Sw?Sx:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Dx(e),Cx))?n:Ox?Sx(t):"Object"==(r=Sx(t))&&iw(t.callee)?"Arguments":r},kx=Sw?{}.toString:function(){return"[object "+Ax(this)+"]"};Sw||wx(Object.prototype,"toString",kx,{unsafe:!0});var Tx={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},Bx=kw("span").classList,_x=Bx&&Bx.constructor&&Bx.constructor.prototype,Px=_x===Object.prototype?void 0:_x,Fx=qb(qb.bind),jx=function(e,t){return Hw(e),void 0===t?e:Fx?Fx(e,t):function(){return e.apply(t,arguments)}},Nx=Mb.Object,Lx=qb("".split),Ix=hw((function(){return!Nx("z").propertyIsEnumerable(0)}))?function(e){return"String"==Sx(e)?Lx(e,""):Nx(e)}:Nx,Rx=Math.ceil,Mx=Math.floor,zx=function(e){var t=+e;return t!=t||0===t?0:(t>0?Mx:Rx)(t)},Hx=Math.min,$x=function(e){return e>0?Hx(zx(e),9007199254740991):0},Vx=function(e){return $x(e.length)},Ux=Array.isArray||function(e){return"Array"==Sx(e)},Zx=function(){},Wx=[],Gx=uw("Reflect","construct"),qx=/^\s*(?:class|function)\b/,Kx=qb(qx.exec),Yx=!qx.exec(Zx),Xx=function(e){if(!iw(e))return!1;try{return Gx(Zx,Wx,e),!0}catch(e){return!1}},Jx=!Gx||hw((function(){var e;return Xx(Xx.call)||!Xx(Object)||!Xx((function(){e=!0}))||e}))?function(e){if(!iw(e))return!1;switch(Ax(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yx||!!Kx(qx,nx(e))}:Xx,Qx=xw("species"),eE=Mb.Array,tE=function(e,t){return new(function(e){var t;return Ux(e)&&(t=e.constructor,(Jx(t)&&(t===eE||Ux(t.prototype))||Dw(t)&&null===(t=t[Qx]))&&(t=void 0)),void 0===t?eE:t}(e))(0===t?0:t)},nE=qb([].push),rE=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Jb(s),v=Ix(h),g=jx(c,l),y=Vx(v),m=0,b=f||tE,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nE(w,d)}else switch(e){case 4:return!1;case 7:nE(w,d)}return i?-1:r||o?o:w}},oE={forEach:rE(0),map:rE(1),filter:rE(2),some:rE(3),every:rE(4),find:rE(5),findIndex:rE(6),filterReject:rE(7)},iE=function(e,t){var n=[][e];return!!n&&hw((function(){n.call(null,t||function(){throw 1},1)}))},aE=oE.forEach,uE=iE("forEach")?[].forEach:function(e){return aE(this,e,arguments.length>1?arguments[1]:void 0)},sE=function(e){if(e&&e.forEach!==uE)try{Xw(e,"forEach",uE)}catch(t){e.forEach=uE}};for(var cE in Tx)Tx[cE]&&sE(Mb[cE]&&Mb[cE].prototype);sE(Px);var lE={}.propertyIsEnumerable,fE=Object.getOwnPropertyDescriptor,dE=fE&&!lE.call({1:2},1)?function(e){var t=fE(this,e);return!!t&&t.enumerable}:lE,pE={f:dE},hE=function(e){return Ix(Yb(e))},vE=Object.getOwnPropertyDescriptor,gE={f:Cw?vE:function(e,t){if(e=hE(e),t=Ww(t),Tw)try{return vE(e,t)}catch(e){}if(ew(e,t))return Yw(!jw(pE.f,e,t),e[t])}},yE=Math.max,mE=Math.min,bE=function(e,t){var n=zx(e);return n<0?yE(n+t,0):mE(n,t)},wE=function(e){return function(t,n,r){var o,i=hE(t),a=Vx(i),u=bE(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},xE={includes:wE(!0),indexOf:wE(!1)},EE=xE.indexOf,SE=qb([].push),CE=function(e,t){var n,r=hE(e),o=0,i=[];for(n in r)!ew(ux,n)&&ew(r,n)&&SE(i,n);for(;t.length>o;)ew(r,n=t[o++])&&(~EE(i,n)||SE(i,n));return i},DE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],OE=DE.concat("length","prototype"),AE={f:Object.getOwnPropertyNames||function(e){return CE(e,OE)}},kE={f:Object.getOwnPropertySymbols},TE=qb([].concat),BE=uw("Reflect","ownKeys")||function(e){var t=AE.f(Pw(e)),n=kE.f;return n?TE(t,n(e)):t},_E=function(e,t){for(var n=BE(t),r=Kw.f,o=gE.f,i=0;i<n.length;i++){var a=n[i];ew(e,a)||r(e,a,o(t,a))}},PE=/#|\.prototype\./,FE=function(e,t){var n=NE[jE(e)];return n==IE||n!=LE&&(iw(t)?hw(t):!!t)},jE=FE.normalize=function(e){return String(e).replace(PE,".").toLowerCase()},NE=FE.data={},LE=FE.NATIVE="N",IE=FE.POLYFILL="P",RE=FE,ME=gE.f,zE=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Mb:c?Mb[u]||Hb(u,{}):(Mb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ME(n,r))&&a.value:n[r],!RE(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_E(i,o)}(e.sham||o&&o.sham)&&Xw(i,"sham",!0),wx(n,r,i,e)}},HE=Object.keys||function(e){return CE(e,DE)},$E=hw((function(){HE(1)}));
|
|
60
60
|
/*!
|
|
61
61
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
62
62
|
*
|
|
@@ -77,7 +77,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
77
77
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
78
78
|
PERFORMANCE OF THIS SOFTWARE.
|
|
79
79
|
***************************************************************************** */
|
|
80
|
-
var PD=function(e,t){return PD=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])},PD(e,t)};function FD(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}PD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jD=function(){return jD=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},jD.apply(this,arguments)};function ND(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function LD(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||t-- >0)&&!(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 ID(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var RD=0,MD=function(){this.id=""+RD++},zD=vx.set,HD=vx.getterFor("Array Iterator"),$D=wC(Array,"Array",(function(e,t){zD(this,{type:"Array Iterator",target:hE(e),index:0,kind:t})}),(function(){var e=HD(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");AS.Arguments=AS.Array,hS("keys"),hS("values"),hS("entries");var VD=function(e,t,n){for(var r in t)wx(e,r,t[r],n);return e},UD=Mb.Array,ZD=Math.max,WD=function(e,t,n){for(var r=Vx(e),o=bE(t,r),i=bE(void 0===n?r:n,r),a=UD(ZD(i-o,0)),u=0;o<i;o++,u++)_S(a,u,e[o]);return a.length=u,a},GD=AE.f,qD="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],KD={f:function(e){return qD&&"Window"==Sx(e)?function(e){try{return GD(e)}catch(e){return WD(qD)}}(e):GD(hE(e))}},YD=hw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),XD=Object.isExtensible,JD=hw((function(){XD(1)}))||YD?function(e){return!!Dw(e)&&(!YD||"ArrayBuffer"!=Sx(e))&&(!XD||XD(e))}:XD,QD=!hw((function(){return Object.isExtensible(Object.preventExtensions({}))})),eO=Nb((function(e){var t=Kw.f,n=!1,r=ow("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=AE.f,t=qb([].splice),o={};o[r]=1,e(o).length&&(AE.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},zE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:KD.f}))},fastKey:function(e,t){if(!Dw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ew(e,r)){if(!JD(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ew(e,r)){if(!JD(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return QD&&n&&JD(e)&&!ew(e,r)&&i(e),e}};ux[r]=!0})),tO=Mb.TypeError,nO=function(e,t){this.stopped=e,this.result=t},rO=nO.prototype,oO=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=jx(t,l),v=function(e){return r&&DS(r,"normal",e),new nO(!0,e)},g=function(e){return f?(Pw(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=FS(e)))throw tO(Mw(e)+" is not iterable");if(BS(o)){for(i=0,a=Vx(e);a>i;i++)if((u=g(e[i]))&&Nw(rO,u))return u;return new nO(!1)}r=NS(e,o)}for(s=r.next;!(c=jw(s,r)).done;){try{u=g(c.value)}catch(e){DS(r,"throw",e)}if("object"==typeof u&&u&&Nw(rO,u))return u}return new nO(!1)},iO=Mb.TypeError,aO=function(e,t){if(Nw(t,e))return e;throw iO("Incorrect invocation")},uO=function(e,t,n){var r,o;return pC&&iw(r=t.constructor)&&r!==n&&Dw(o=r.prototype)&&o!==n.prototype&&pC(e,o),e},sO=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Mb[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=qb(u[e]);wx(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Dw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(RE(e,!iw(a)||!(o||u.forEach&&!hw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),eO.enable();else if(RE(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=hw((function(){f.has(1)})),h=HS((function(e){new a(e)})),v=!o&&hw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){aO(e,u);var n=uO(new a,e,s);return null!=t&&oO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,zE({global:!0,forced:s!=a},c),sC(s,e),o||n.setStrong(s,e,r),s},cO=eO.getWeakData,lO=vx.set,fO=vx.getterFor,dO=oE.find,pO=oE.findIndex,hO=qb([].splice),vO=0,gO=function(e){return e.frozen||(e.frozen=new yO)},yO=function(){this.entries=[]},mO=function(e,t){return dO(e.entries,(function(e){return e[0]===t}))};yO.prototype={get:function(e){var t=mO(this,e);if(t)return t[1]},has:function(e){return!!mO(this,e)},set:function(e,t){var n=mO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=pO(this.entries,(function(t){return t[0]===e}));return~t&&hO(this.entries,t,1),!!~t}};var bO,wO={getConstructor:function(e,t,n,r){var o=e((function(e,o){aO(e,i),lO(e,{type:t,id:vO++,frozen:void 0}),null!=o&&oO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=fO(t),u=function(e,t,n){var r=a(e),o=cO(Pw(t),!0);return!0===o?gO(r).set(t,n):o[r.id]=n,e};return VD(i,{delete:function(e){var t=a(this);if(!Dw(e))return!1;var n=cO(e);return!0===n?gO(t).delete(e):n&&ew(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Dw(e))return!1;var n=cO(e);return!0===n?gO(t).has(e):n&&ew(n,t.id)}}),VD(i,n?{get:function(e){var t=a(this);if(Dw(e)){var n=cO(e);return!0===n?gO(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xO=vx.enforce,EO=!Mb.ActiveXObject&&"ActiveXObject"in Mb,SO=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},CO=sO("WeakMap",SO,wO);if(ox&&EO){bO=wO.getConstructor(SO,"WeakMap",!0),eO.enable();var DO=CO.prototype,OO=qb(DO.delete),AO=qb(DO.has),kO=qb(DO.get),TO=qb(DO.set);VD(DO,{delete:function(e){if(Dw(e)&&!JD(e)){var t=xO(this);return t.frozen||(t.frozen=new bO),OO(this,e)||t.frozen.delete(e)}return OO(this,e)},has:function(e){if(Dw(e)&&!JD(e)){var t=xO(this);return t.frozen||(t.frozen=new bO),AO(this,e)||t.frozen.has(e)}return AO(this,e)},get:function(e){if(Dw(e)&&!JD(e)){var t=xO(this);return t.frozen||(t.frozen=new bO),AO(this,e)?kO(this,e):t.frozen.get(e)}return kO(this,e)},set:function(e,t){if(Dw(e)&&!JD(e)){var n=xO(this);n.frozen||(n.frozen=new bO),AO(this,e)?TO(this,e,t):n.frozen.set(e,t)}else TO(this,e,t);return this}})}var BO=xw("iterator"),_O=xw("toStringTag"),PO=$D.values,FO=function(e,t){if(e){if(e[BO]!==PO)try{Xw(e,BO,PO)}catch(t){e[BO]=PO}if(e[_O]||Xw(e,_O,t),Tx[t])for(var n in $D)if(e[n]!==$D[n])try{Xw(e,n,$D[n])}catch(t){e[n]=$D[n]}}};for(var jO in Tx)FO(Mb[jO]&&Mb[jO].prototype,jO);FO(Px,"DOMTokenList");var NO=new WeakMap,LO=new WeakMap,IO=new WeakMap,RO=new WeakMap,MO=new WeakMap,zO=new WeakMap,HO=new WeakMap,$O=new WeakMap,VO=new WeakMap,UO=new WeakMap,ZO=new WeakMap,WO=new WeakMap,GO=new WeakMap,qO=new WeakMap,KO=new WeakMap,YO=new WeakMap,XO=new WeakMap,JO=new WeakMap,QO=new WeakMap,eA=new WeakMap,tA=new WeakMap,nA=new WeakMap,rA=new WeakMap,oA=new WeakMap,iA=new WeakMap,aA=oE.find,uA=!0;"find"in[]&&Array(1).find((function(){uA=!1})),zE({target:"Array",proto:!0,forced:uA},{find:function(e){return aA(this,e,arguments.length>1?arguments[1]:void 0)}}),hS("find"),zE({global:!0},{globalThis:Mb});const sA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Zp&&(Bp.fn.css=Zp),Xp&&(Bp.fn.append=Xp),_p&&(Bp.fn.addClass=_p),Pp&&(Bp.fn.removeClass=Pp),Fp&&(Bp.fn.hasClass=Fp),Rp&&(Bp.fn.on=Rp),sh&&(Bp.fn.focus=sh),jp&&(Bp.fn.attr=jp),Np&&(Bp.fn.removeAttr=Np),Vp&&(Bp.fn.hide=Vp),Up&&(Bp.fn.show=Up),$p&&(Bp.fn.offset=$p),zp&&(Bp.fn.width=zp),Hp&&(Bp.fn.height=Hp),Qp&&(Bp.fn.parent=Qp),eh&&(Bp.fn.parents=eh),Yp&&(Bp.fn.is=Yp),Lp&&(Bp.fn.dataset=Lp),Ip&&(Bp.fn.val=Ip),Kp&&(Bp.fn.text=Kp),qp&&(Bp.fn.html=qp),nh&&(Bp.fn.children=nh),rh&&(Bp.fn.remove=rh),th&&(Bp.fn.find=th),Wp&&(Bp.fn.each=Wp),oh&&(Bp.fn.empty=oh);var cA,lA,fA=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},dA=function(e){return pA(e)&&1===e.nodeType},pA=function(e){var t=fA(e);return!!t&&e instanceof t.Node},hA=function(e){var t=e&&e.anchorNode&&fA(e.anchorNode);return!!t&&e instanceof t.Selection},vA=function(e){return pA(e)&&3===e.nodeType},gA=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},yA=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(pA(r=i)&&8===r.nodeType||dA(i)&&0===i.childNodes.length||dA(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]},mA=function(e,t,n){return LD(yA(e,t,n),1)[0]},bA=function e(t){var n,r,o="";if(vA(t)&&t.nodeValue)return t.nodeValue;if(dA(t)){try{for(var i=ND(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function wA(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||wA(o,t)}}function xA(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==cA.ELEMENT_NODE?"":t.tagName.toLowerCase()}(lA=cA||(cA={}))[lA.ELEMENT_NODE=1]="ELEMENT_NODE",lA[lA.TEXT_NODE=3]="TEXT_NODE",lA[lA.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",lA[lA.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",lA[lA.COMMENT_NODE=8]="COMMENT_NODE",lA[lA.DOCUMENT_NODE=9]="DOCUMENT_NODE",lA[lA.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",lA[lA.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var EA="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),SA="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var CA="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),DA="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),OA="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),AA="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var kA=!OA&&!DA&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,TA={getWindow:function(e){var t=tA.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=eA.get(t);return n||(n=new MD,eA.set(t,n)),n},setNewKey:function(e){var t=new MD;eA.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=KO.get(r);if(null==o){if(kf.isEditor(r))return n;break}var i=qO.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){if(e.isDestroyed)return window.document;var t=TA.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return KO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=TA.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[TA.findPath(e,t)[0]];return Ff.get(e,n)},toDOMNode:function(e,t){var n;if(kf.isEditor(t))n=YO.get(e);else{var r=TA.findKey(e,t);n=JO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=TA.toDOMNode(e,e);try{r=dA(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]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Zf.isBackward(t),i=TA.toDOMPoint(e,n),a=Zf.isCollapsed(t)?i:TA.toDOMPoint(e,r),u=TA.getWindow(e).document.createRange(),s=LD(o?a:i,2),c=s[0],l=s[1],f=LD(o?i:a,2),d=f[0],p=f[1],h=!!(dA(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(dA(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(c,h?1:l),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=LD(kf.node(e,t.path),1)[0],a=TA.toDOMNode(e,i);kf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var c=ND(u),l=c.next();!l.done;l=c.next()){var f=l.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=dA(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?XO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=TA.toSlateNode(e,t.target),u=TA.findPath(e,a);if(kf.isVoid(e,a)){var s=o.getBoundingClientRect(),c=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,l=kf.point(e,u,{edge:c?"start":"end"}),f=c?kf.before(e,l):kf.after(e,l);if(f)return kf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return TA.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,c=n.suppressThrow;if((hA(t)?t.anchorNode:t.startContainer)&&(hA(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=AA&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var l=TA.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=u?l:TA.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:c});if(!f)return null;var d={anchor:l,focus:f};return Zf.isExpanded(d)&&Zf.isForward(d)&&dA(i)&&kf.void(e,{at:d.focus,mode:"highest"})&&(d=kf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=LD(o?t:function(e){var t,n=LD(e,2),r=n[0],o=n[1];if(dA(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=LD(yA(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;dA(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=mA(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],c=u.parentNode,l=null,f=0;if(c){var d=c.closest('[data-slate-void="true"]'),p=c.closest("[data-slate-leaf]"),h=null;if(p){l=p.closest('[data-slate-node="text"]');var v=TA.getWindow(e).document.createRange();v.setStart(l,0),v.setEnd(u,s);var g=v.cloneContents();ID(ID([],LD(gp(g.querySelectorAll("[data-slate-zero-width]")))),LD(gp(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.textContent.length,h=l}else d&&((p=d.querySelector("[data-slate-leaf]"))?(l=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(c.hasAttribute("data-slate-zero-width")||SA&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=TA.toSlateNode(e,l);return{path:TA.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return kf.hasPath(e,n.path)&&kf.hasPath(e,r.path)},getNodeType:function(e){return Ef.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Ff.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=kf.nodes(e,{universal:!0});try{for(var i=ND(o),a=i.next();!a.done;a=i.next()){var u=LD(a.value,1)[0];Ef.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,r=LD(kf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=LD(kf.nodes(e,{match:function(e){return Jf.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=LD(kf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&LD(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(kf.isEnd(e,n.anchor,t)||kf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=NO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return RO.get(e)||null},getHoverbar:function(e){return zO.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=TA.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=ND(Array.from(a)),s=u.next();!s.done;s=u.next()){var c=s.value;if(3!==c.nodeType)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var l=kf.nodes(e,{match:function(t){return!(!Ef.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=ND(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];wA(TA.toDOMNode(e,h),(function(e,t){var n=Bp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=kf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=ND(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Zf.isExpanded(t))return!1;var n=TA.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=kf.node(e,t);if(null==n)return!1;var r=LD(n,1)[0].children;return 1===r.length&&""===r[0].text}},BA=1,_A={},PA={},FA=oE.filter,jA=NC("filter");zE({target:"Array",proto:!0,forced:!jA},{filter:function(e){return FA(this,e,arguments.length>1?arguments[1]:void 0)}});var NA="\t\n\v\f\r \u2028\u2029\ufeff",LA=qb("".replace),IA="["+NA+"]",RA=RegExp("^"+IA+IA+"*"),MA=RegExp(IA+IA+"*$"),zA=function(e){return function(t){var n=KE(Yb(t));return 1&e&&(n=LA(n,RA,"")),2&e&&(n=LA(n,MA,"")),n}},HA={start:zA(1),end:zA(2),trim:zA(3)},$A=bx.PROPER,VA=HA.trim;zE({target:"String",proto:!0,forced:function(e){return hw((function(){return!!NA[e]()||"
"!=="
"[e]()||$A&&NA[e].name!==e}))}("trim")},{trim:function(){return VA(this)}});var UA=[],ZA={};function WA(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var GA,qA,KA,YA,XA=Mb.Promise,JA=xw("species"),QA=function(e){var t=uw(e),n=Kw.f;Cw&&t&&!t[JA]&&n(t,JA,{configurable:!0,get:function(){return this}})},ek=Mb.TypeError,tk=xw("species"),nk=function(e,t){var n,r=Pw(e).constructor;return void 0===r||null==(n=Pw(r)[tk])?t:function(e){if(Jx(e))return e;throw ek(Mw(e)+" is not a constructor")}(n)},rk=qb([].slice),ok=/(?:ipad|iphone|ipod).*applewebkit/i.test(sw),ik="process"==Sx(Mb.process),ak=Mb.setImmediate,uk=Mb.clearImmediate,sk=Mb.process,ck=Mb.Dispatch,lk=Mb.Function,fk=Mb.MessageChannel,dk=Mb.String,pk=0,hk={};try{GA=Mb.location}catch(lA){}var vk=function(e){if(ew(hk,e)){var t=hk[e];delete hk[e],t()}},gk=function(e){return function(){vk(e)}},yk=function(e){vk(e.data)},mk=function(e){Mb.postMessage(dk(e),GA.protocol+"//"+GA.host)};ak&&uk||(ak=function(e){var t=rk(arguments,1);return hk[++pk]=function(){sD(iw(e)?e:lk(e),void 0,t)},qA(pk),pk},uk=function(e){delete hk[e]},ik?qA=function(e){sk.nextTick(gk(e))}:ck&&ck.now?qA=function(e){ck.now(gk(e))}:fk&&!ok?(YA=(KA=new fk).port2,KA.port1.onmessage=yk,qA=jx(YA.postMessage,YA)):Mb.addEventListener&&iw(Mb.postMessage)&&!Mb.importScripts&&GA&&"file:"!==GA.protocol&&!hw(mk)?(qA=mk,Mb.addEventListener("message",yk,!1)):qA="onreadystatechange"in kw("script")?function(e){iS.appendChild(kw("script")).onreadystatechange=function(){iS.removeChild(this),vk(e)}}:function(e){setTimeout(gk(e),0)});var bk,wk,xk,Ek,Sk,Ck,Dk,Ok,Ak={set:ak,clear:uk},kk=/ipad|iphone|ipod/i.test(sw)&&void 0!==Mb.Pebble,Tk=/web0s(?!.*chrome)/i.test(sw),Bk=gE.f,_k=Ak.set,Pk=Mb.MutationObserver||Mb.WebKitMutationObserver,Fk=Mb.document,jk=Mb.process,Nk=Mb.Promise,Lk=Bk(Mb,"queueMicrotask"),Ik=Lk&&Lk.value;Ik||(bk=function(){var e,t;for(ik&&(e=jk.domain)&&e.exit();wk;){t=wk.fn,wk=wk.next;try{t()}catch(e){throw wk?Ek():xk=void 0,e}}xk=void 0,e&&e.enter()},ok||ik||Tk||!Pk||!Fk?!kk&&Nk&&Nk.resolve?((Dk=Nk.resolve(void 0)).constructor=Nk,Ok=jx(Dk.then,Dk),Ek=function(){Ok(bk)}):ik?Ek=function(){jk.nextTick(bk)}:(_k=jx(_k,Mb),Ek=function(){_k(bk)}):(Sk=!0,Ck=Fk.createTextNode(""),new Pk(bk).observe(Ck,{characterData:!0}),Ek=function(){Ck.data=Sk=!Sk}));var Rk,Mk,zk,Hk,$k=Ik||function(e){var t={fn:e,next:void 0};xk&&(xk.next=t),wk||(wk=t,Ek()),xk=t},Vk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Hw(t),this.reject=Hw(n)},Uk={f:function(e){return new Vk(e)}},Zk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Wk="object"==typeof window,Gk=Ak.set,qk=xw("species"),Kk="Promise",Yk=vx.getterFor(Kk),Xk=vx.set,Jk=vx.getterFor(Kk),Qk=XA&&XA.prototype,eT=XA,tT=Qk,nT=Mb.TypeError,rT=Mb.document,oT=Mb.process,iT=Uk.f,aT=iT,uT=!!(rT&&rT.createEvent&&Mb.dispatchEvent),sT=iw(Mb.PromiseRejectionEvent),cT=!1,lT=RE(Kk,(function(){var e=nx(eT),t=e!==String(eT);if(!t&&66===pw)return!0;if(pw>=51&&/native code/.test(e))return!1;var n=new eT((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[qk]=r,!(cT=n.then((function(){}))instanceof r)||!t&&Wk&&!sT})),fT=lT||!HS((function(e){eT.all(e).catch((function(){}))})),dT=function(e){var t;return!(!Dw(e)||!iw(t=e.then))&&t},pT=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;$k((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&yT(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(nT("Promise-chain cycle")):(u=dT(a))?jw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&vT(e)}))}},hT=function(e,t,n){var r,o;uT?((r=rT.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Mb.dispatchEvent(r)):r={promise:t,reason:n},!sT&&(o=Mb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Mb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},vT=function(e){jw(Gk,Mb,(function(){var t,n=e.facade,r=e.value;if(gT(e)&&(t=Zk((function(){ik?oT.emit("unhandledRejection",r,n):hT("unhandledrejection",n,r)})),e.rejection=ik||gT(e)?2:1,t.error))throw t.value}))},gT=function(e){return 1!==e.rejection&&!e.parent},yT=function(e){jw(Gk,Mb,(function(){var t=e.facade;ik?oT.emit("rejectionHandled",t):hT("rejectionhandled",t,e.value)}))},mT=function(e,t,n){return function(r){e(t,r,n)}},bT=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,pT(e,!0))},wT=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw nT("Promise can't be resolved itself");var r=dT(t);r?$k((function(){var n={done:!1};try{jw(r,t,mT(wT,n,e),mT(bT,n,e))}catch(t){bT(n,t,e)}})):(e.value=t,e.state=1,pT(e,!1))}catch(t){bT({done:!1},t,e)}}};if(lT&&(tT=(eT=function(e){aO(this,tT),Hw(e),jw(Rk,this);var t=Yk(this);try{e(mT(wT,t),mT(bT,t))}catch(e){bT(t,e)}}).prototype,(Rk=function(e){Xk(this,{type:Kk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=VD(tT,{then:function(e,t){var n=Jk(this),r=n.reactions,o=iT(nk(this,eT));return o.ok=!iw(e)||e,o.fail=iw(t)&&t,o.domain=ik?oT.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&pT(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Mk=function(){var e=new Rk,t=Yk(e);this.promise=e,this.resolve=mT(wT,t),this.reject=mT(bT,t)},Uk.f=iT=function(e){return e===eT||e===zk?new Mk(e):aT(e)},iw(XA)&&Qk!==Object.prototype)){Hk=Qk.then,cT||(wx(Qk,"then",(function(e,t){var n=this;return new eT((function(e,t){jw(Hk,n,e,t)})).then(e,t)}),{unsafe:!0}),wx(Qk,"catch",tT.catch,{unsafe:!0}));try{delete Qk.constructor}catch(lA){}pC&&pC(Qk,tT)}zE({global:!0,wrap:!0,forced:lT},{Promise:eT}),sC(eT,Kk,!1),QA(Kk),zk=uw(Kk),zE({target:Kk,stat:!0,forced:lT},{reject:function(e){var t=iT(this);return jw(t.reject,void 0,e),t.promise}}),zE({target:Kk,stat:!0,forced:lT},{resolve:function(e){return function(e,t){if(Pw(e),Dw(t)&&t.constructor===e)return t;var n=Uk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),zE({target:Kk,stat:!0,forced:fT},{all:function(e){var t=this,n=iT(t),r=n.resolve,o=n.reject,i=Zk((function(){var n=Hw(t.resolve),i=[],a=0,u=1;oO(e,(function(e){var s=a++,c=!1;u++,jw(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=iT(t),r=n.reject,o=Zk((function(){var o=Hw(t.resolve);oO(e,(function(e){jw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var xT=HC.UNSUPPORTED_Y,ET=Math.min,ST=[].push,CT=qb(/./.exec),DT=qb(ST),OT=qb("".slice);function AT(e){Promise.resolve().then(e)}function kT(e,t){return Ef.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=kf.isVoid(t,e),u="";a||(u=i.map((function(e){return kT(e,t)})).join(""));var s=function(e){return ZA[e]||WA}(r),c=s(e,u,t),l="";if(l="string"==typeof c?c:c.html||"",a||UA.forEach((function(t){return l=t(e,l)})),"string"==typeof c)return l;var f=c.prefix,d=void 0===f?"":f,p=c.suffix,h=void 0===p?"":p;return d&&(l=d+l),h&&(l+=h),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=TA.getParentsNodes(t,e).some((function(e){return"pre"===TA.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=TA.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return UA.forEach((function(t){return r=t(e,r)})),r}(e,t)}function TT(e){return"w-e-element-"+e}fD("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=KE(Yb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!yS(e))return jw(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=jw(rD,f,r))&&!((a=f.lastIndex)>l&&(DT(s,OT(r,l,i.index)),i.length>1&&i.index<r.length&&sD(ST,s,WD(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&CT(f,"")||DT(s,""):DT(s,OT(r,l)),s.length>o?WD(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:jw(t,this,e,n)}:t,[function(t,n){var o=Yb(this),i=null==t?void 0:$w(t,e);return i?jw(i,t,o,n):jw(r,KE(o),t,n)},function(e,o){var i=Pw(this),a=KE(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=nk(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(xT?"g":"y"),f=new s(xT?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===ED(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=xT?0:h;var g,y=ED(f,xT?OT(a,h):a);if(null===y||(g=ET($x(f.lastIndex+(xT?h:0)),a.length))===p)h=pD(a,h,c);else{if(DT(v,OT(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(DT(v,y[m]),v.length===d)return v;h=p=g}}return DT(v,OT(a,p)),v}]}),!!hw((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),xT);var BT=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},_T=function(e,t,n){var r=TA.toDOMRange(e,t).getBoundingClientRect(),o=TA.toDOMRange(e,n).getBoundingClientRect();return BT(r,o)&&BT(o,r)},PT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],FT=[],jT=[],NT={},LT=Kw.f,IT=AE.f,RT=vx.enforce,MT=xw("match"),zT=Mb.RegExp,HT=zT.prototype,$T=Mb.SyntaxError,VT=qb(YE),UT=qb(HT.exec),ZT=qb("".charAt),WT=qb("".replace),GT=qb("".indexOf),qT=qb("".slice),KT=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,YT=/a/g,XT=/a/g,JT=new zT(YT)!==YT,QT=HC.MISSED_STICKY,eB=HC.UNSUPPORTED_Y,tB=Cw&&(!JT||QT||VC||ZC||hw((function(){return XT[MT]=!1,zT(YT)!=YT||zT(XT)==XT||"/a/i"!=zT(YT,"i")})));if(RE("RegExp",tB)){for(var nB=function(e,t){var n,r,o,i,a,u,s=Nw(HT,this),c=yS(e),l=void 0===t,f=[],d=e;if(!s&&c&&l&&e.constructor===nB)return e;if((c||Nw(HT,e))&&(e=e.source,l&&(t="flags"in d?d.flags:VT(d))),e=void 0===e?"":KE(e),t=void 0===t?"":KE(t),d=e,VC&&"dotAll"in YT&&(r=!!t&>(t,"s")>-1)&&(t=WT(t,/s/g,"")),n=t,QT&&"sticky"in YT&&(o=!!t&>(t,"y")>-1)&&eB&&(t=WT(t,/y/g,"")),ZC&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,c=0,l="";r<=n;r++){if("\\"===(t=ZT(e,r)))t+=ZT(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:UT(KT,qT(e,r+1))&&(r+=2,s=!0),o+=t,c++;continue;case">"===t&&s:if(""===l||ew(a,l))throw new $T("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],s=!1,l="";continue}s?l+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=uO(zT(e,t),s?this:HT,nB),(r||o||f.length)&&(u=RT(a),r&&(u.dotAll=!0,u.raw=nB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=ZT(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+ZT(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Xw(a,"source",""===d?"(?:)":d)}catch(e){}return a},rB=function(e){e in nB||LT(nB,e,{configurable:!0,get:function(){return zT[e]},set:function(t){zT[e]=t}})},oB=IT(zT),iB=0;oB.length>iB;)rB(oB[iB++]);HT.constructor=nB,nB.prototype=HT,wx(Mb,"RegExp",nB)}QA("RegExp");var aB=new RegExp(String.fromCharCode(160),"g");function uB(e){return e.replace(aB," ")}function sB(e,t){var n=e.length;if(n){var r=e[n-1];if(Jf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function cB(e,t,n){return{type:"paragraph",children:[{text:Bp(e).text().replace(/\s+/gm," ")}]}}function lB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==cA.ELEMENT_NODE)if(e.nodeType!==cA.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=uB(r),sB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(sB(n,"\n")||n.push({text:"\n"}));var o=dB(Bp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in NT)if(e[0].matches(t))return NT[t];return cB}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){kf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),jT.forEach((function(n){r=n(e[0],r,t)})))})),o}function fB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=uB(n)};return jT.forEach((function(n){r=n(e[0],r,t)})),r}function dB(e,t){FT.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Bp(r(e[0])))}));var n=xA(e);return"span"===n?e.attr("data-w-e-type")?lB(e,t):fB(e,t):"code"===n?"pre"===xA(e.parent())?lB(e,t):fB(e,t):PT.includes(n)?fB(e,t):lB(e,t)}function pB(e,t,n){var r=Bp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function hB(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Bp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=dB(Bp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var vB=Kw.f,gB=eO.fastKey,yB=vx.set,mB=vx.getterFor,bB={getConstructor:function(e,t,n,r){var o=e((function(e,o){aO(e,i),yB(e,{type:t,index:fS(null),first:void 0,last:void 0,size:0}),Cw||(e.size=0),null!=o&&oO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=mB(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=gB(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Cw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=gB(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return VD(i,{clear:function(){for(var e=a(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,Cw?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Cw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=jx(e,arguments.length>1?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!!s(this,e)}}),VD(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Cw&&vB(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=mB(t),i=mB(r);wC(e,t,(function(e,t){yB(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}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),QA(t)}};sO("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),bB);var wB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function xB(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):gd.insertNodes(e,t,{mode:"highest"})}var EB=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=LD(Zf.edges(n),2),o=r[0],i=r[1],a=kf.void(t,{at:o.path}),u=kf.void(t,{at:i.path});if(!Zf.isCollapsed(n)||a){var s=TA.toDOMRange(t,n),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(l=e)})),u){var f=LD(u,1)[0],d=s.cloneRange(),p=TA.toDOMNode(t,f);d.setEndAfter(p),c=d.cloneContents()}if(a&&(l=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),vA(l)){var h=l.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(l),c.appendChild(h),l=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));l.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=c.ownerDocument.createElement("div");return m.appendChild(c),m.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",bA(m)),c.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),c=e.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(s){var l=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=ND(l),p=d.next();!p.done;p=d.next()){var h=p.value;f&&gd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},SB=function(e){return null!=e},CB={object:!0,function:!0,undefined:!0},DB=/^\s*class[\s{/}]/,OB=Function.prototype.toString,AB=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!SB(e)&&hasOwnProperty.call(CB,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!DB.test(OB.call(e))},kB=function(e){return null!=e},TB=Object.keys,BB=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return TB(kB(e)?Object(e):e)},_B=function(e){if(!kB(e))throw new TypeError("Cannot use null or undefined");return e},PB=Math.max,FB=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=PB(arguments.length,2);for(e=Object(_B(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)BB(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},jB=Array.prototype.forEach,NB=Object.create,LB=function(e,t){var n;for(n in e)t[n]=e[n]},IB=function(e){var t=NB(null);return jB.call(arguments,(function(e){kB(e)&&LB(Object(e),t)})),t},RB="razdwatrzy",MB=String.prototype.indexOf,zB="function"==typeof RB.contains&&!0===RB.contains("dwa")&&!1===RB.contains("foo")?String.prototype.contains:function(e){return MB.call(this,e,arguments[1])>-1},HB=Nb((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],SB(e)?(n=zB.call(e,"c"),r=zB.call(e,"e"),o=zB.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?FB(IB(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],SB(t)?AB(t)?SB(n)?AB(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,SB(e)?(r=zB.call(e,"c"),o=zB.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?FB(IB(i),a):a}})),$B=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},VB=Nb((function(e,t){var n,r,o,i,a,u,s,c=Function.prototype.apply,l=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return $B(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return $B(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),c.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if($B(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;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},i=function(e){var t,n,r,o,i;if(h.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)c.call(r,this,i)}else switch(arguments.length){case 1:l.call(o,this);break;case 2:l.call(o,this,arguments[1]);break;case 3:l.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];c.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:HB(n),once:HB(r),off:HB(o),emit:HB(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function UB(e){var t=oA.get(e);return null==t&&(t=VB(),oA.set(e,t)),t}var ZB=new WeakMap;function WB(e,t){var n=ZB.get(e);null==n&&(n=new Set,ZB.set(e,n)),n.add(t)}function GB(e){var t=TA.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function qB(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=GB(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=TA.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var c=s.height,l={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;l.right=p+5+"px"}else l.left=d+5+"px";if(f>u/2){var h=u-f;l.bottom=h+5+"px"}else{var v=f+c;v<0&&(v=0),l.top=v+5+"px"}return l}function KB(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Ef.isElement(t)&&e.isVoid(t),i=Ef.isElement(t)&&e.isInline(t),a=QO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,c=u.left,l=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(sA.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,l=p.height}}var h=GB(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},x=s-g,E=c-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+l+5+"px",w;if("modal"===n)return o?i?E>(m-f)/2?w.right=m-E+5+"px":w.left=E+f+5+"px":w.left="20px":w.left=E+"px",o?((v=x)<0&&(v=0),w.top=v+"px"):x>(b-l)/2?w.bottom=b-x+5+"px":((v=x+l)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function YB(e,t){AT((function(){var n=GB(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),c=s.top,l=s.left,f=t.width(),d=t.height(),p=c-o,h=l-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&c<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(c);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&l<0){var E=t.css("right"),S=parseInt(E.toString())-Math.abs(l);t.css("right",S+"px")}}}))}var XB=NC("slice"),JB=xw("species"),QB=Mb.Array,e_=Math.max;zE({target:"Array",proto:!0,forced:!XB},{slice:function(e,t){var n,r,o,i=hE(this),a=Vx(i),u=bE(e,a),s=bE(void 0===t?a:t,a);if(Ux(i)&&(n=i.constructor,(Jx(n)&&(n===QB||Ux(n.prototype))||Dw(n)&&null===(n=n[JB]))&&(n=void 0),n===QB||void 0===n))return rk(i,u,s);for(r=new(void 0===n?QB:n)(e_(s-u,0)),o=0;u<s;u++,o++)u in i&&_S(r,o,i[u]);return r.length=o,r}});var t_=gE.f,n_=qb("".startsWith),r_=qb("".slice),o_=Math.min,i_=xS("startsWith"),a_=!i_&&!!function(){var e=t_(String.prototype,"startsWith");return e&&!e.writable}();zE({target:"String",proto:!0,forced:!a_&&!i_},{startsWith:function(e){var t=KE(Yb(this));bS(e);var n=$x(o_(arguments.length>1?arguments[1]:void 0,t.length)),r=KE(e);return n_?n_(t,r,n):r_(t,n,n+r.length)===r}});var u_=Object.assign,s_=Object.defineProperty,c_=qb([].concat),l_=!u_||hw((function(){if(Cw&&1!==u_({b:1},u_(s_({},"a",{enumerable:!0,get:function(){s_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u_({},e)[n]||HE(u_({},t)).join("")!=r}))?function(e,t){for(var n=Jb(e),r=arguments.length,o=1,i=kE.f,a=pE.f;r>o;)for(var u,s=Ix(arguments[o++]),c=i?c_(HE(s),i(s)):HE(s),l=c.length,f=0;l>f;)u=c[f++],Cw&&!jw(a,s,u)||(n[u]=s[u]);return n}:u_;zE({target:"Object",stat:!0,forced:Object.assign!==l_},{assign:l_});var f_=["props","attrs","style","dataset","on","hook"];function d_(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!f_.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=ug(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&d_(e)}))}var p_=[],h_={};function v_(e,t,n){return xv(n.isInline(e)?"span":"div",null,t)}function g_(e,t){return void 0===t&&(t=!1),xv("span",{"data-slate-string":!0},t?e+"\n":e)}function y_(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),xv("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?xv("br",null):null)}function m_(e,t,n,r){return qO.set(e,t),KO.set(e,n),Ef.isElement(e)?function(e,t){var n,r=TA.findKey(t,e),o=t.isInline(e),i=kf.isVoid(t,e),a=TT(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,c=e.children,l=void 0===c?[]:c,f=function(e){return h_[e]||v_}(s);n=i?null:l.map((function(n,r){return m_(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=LD(Ff.texts(e),1),v=LD(h[0],1)[0],g=xv(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},m_(v,0,e,t));d=xv(p,{style:{position:"relative"}},d,g),qO.set(v,0),KO.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return p_.forEach((function(r){n=r(e,t)})),n}(e,d)),AT((function(){var t=gA(a);null!=t&&(JO.set(r,t),QO.set(e,t),XO.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=TA.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=TA.findPath(n,e),a=o([e,i]),u=Jf.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=TA.findPath(o,n),u=If.parent(a);if(kf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?y_(Ff.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==kf.string(o,u)?""===i?y_():t&&"\n"===i.slice(-1)?g_(i,!0):g_(i):y_(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return p_.forEach((function(t){n=t(e,n)})),n}(r,i),xv("span",{"data-slate-leaf":!0},i)})),c=function(e){return"w-e-text-"+e}(r.id),l=xv("span",{"data-slate-node":"text",id:c,key:r.id},s);return AT((function(){var t=gA(c);null!=t&&(JO.set(r,t),QO.set(e,t),XO.set(t,e))})),l}(e,n,r)}function b_(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),tv("div#"+e,{props:{contentEditable:!t}})}(o,a),c=t.children||[];s.children=c.map((function(e,n){var r=m_(e,n,t,t);return d_(r),r}));var l=ZO.get(e);if(null==l&&(l=!0),l){var f=function(e,t){return Bp('<div\n id="'+e+'"\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>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Qh([iv,hv,bv,sv,dv,rv]))(n,s),ZO.set(e,!1),WO.set(e,p)}else{var d=GO.get(e),p=WO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=gA(o))){if((l?u:t.isFocused())&&n.focus({preventScroll:!0}),l){var h=fA(n);h&&tA.set(t,h)}YO.set(t,n),QO.set(t,n),XO.set(n,t),GO.set(e,s)}}function w_(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function x_(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function E_(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return x_(n.overflowY,t)||x_(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function S_(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function C_(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!w_(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,l=[],f=e;w_(f)&&s(f);){if((f=f.parentElement)===c){l.push(f);break}null!=f&&f===document.body&&E_(f)&&!E_(document.documentElement)||null!=f&&E_(f,u)&&l.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,x=g.bottom,E=g.left,S="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,C="center"===i?E+m/2:"end"===i?w:E,D=[],O=0;O<l.length;O++){var A=l[O],k=A.getBoundingClientRect(),T=k.height,B=k.width,_=k.top,P=k.right,F=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&E>=0&&x<=p&&w<=d&&b>=_&&x<=F&&E>=j&&w<=P)return D;var N=getComputedStyle(A),L=parseInt(N.borderLeftWidth,10),I=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,H=0,$="offsetWidth"in A?A.offsetWidth-A.clientWidth-L-R:0,V="offsetHeight"in A?A.offsetHeight-A.clientHeight-I-M:0;if(c===A)z="start"===o?S:"end"===o?S-p:"nearest"===o?S_(v,v+p,p,I,M,v+S,v+S+y,y):S-p/2,H="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:S_(h,h+d,d,L,R,h+C,h+C+m,m),z=Math.max(0,z+v),H=Math.max(0,H+h);else{z="start"===o?S-_-I:"end"===o?S-F+M+V:"nearest"===o?S_(_,F,T,I,M+V,S,S+y,y):S-(_+T/2)+V/2,H="start"===i?C-j-L:"center"===i?C-(j+B/2)+$/2:"end"===i?C-P+R+$:S_(j,P,B,L,R+$,C,C+m,m);var U=A.scrollLeft,Z=A.scrollTop;S+=Z-(z=Math.max(0,Math.min(Z+z,A.scrollHeight-T+V))),C+=U-(H=Math.max(0,Math.min(U+H,A.scrollWidth-B+$)))}D.push({el:A,top:z,left:H})}return D}function D_(e){return e===Object(e)&&0!==Object.keys(e).length}function O_(e,t){return pA(t)&&TA.hasDOMNode(e,t,{editable:!0})}function A_(e,t){if(e.getConfig().readOnly)return!1;var n=k_(e,t)&&TA.toSlateNode(e,t);return kf.isVoid(e,n)}function k_(e,t){return pA(t)&&TA.hasDOMNode(e,t)}function T_(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=TA.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=YO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var c=TA.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(c&&Zf.equals(c,r)){var l=!0;if(Zf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(l=!1),(h=p[d-1])&&h.matches("table")&&(l=!1)}}if(l)return}}if(!r||TA.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&TA.toDOMRange(t,r);if(v){Zf.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(D_(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:C_(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:D_(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(C_(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&SA&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=TA.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var B_=new WeakMap,__=new WeakMap,P_={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"},F_={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"},j_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},N_=function(e){var t=P_[e],n=F_[e],r=j_[e],o=t&&yg(t),i=n&&yg(n),a=r&&yg(r);return function(e){return!(!o||!o(e))||!!(EA&&i&&i(e))||!(EA||!a||!a(e))}},L_={isBold:N_("bold"),isCompose:N_("compose"),isMoveBackward:N_("moveBackward"),isMoveForward:N_("moveForward"),isDeleteBackward:N_("deleteBackward"),isDeleteForward:N_("deleteForward"),isDeleteLineBackward:N_("deleteLineBackward"),isDeleteLineForward:N_("deleteLineForward"),isDeleteWordBackward:N_("deleteWordBackward"),isDeleteWordForward:N_("deleteWordForward"),isExtendBackward:N_("extendBackward"),isExtendForward:N_("extendForward"),isExtendLineBackward:N_("extendLineBackward"),isExtendLineForward:N_("extendLineForward"),isItalic:N_("italic"),isMoveLineBackward:N_("moveLineBackward"),isMoveLineForward:N_("moveLineForward"),isMoveWordBackward:N_("moveWordBackward"),isMoveWordForward:N_("moveWordForward"),isRedo:N_("redo"),isSplitBlock:N_("splitBlock"),isTransposeCharacter:N_("transposeCharacter"),isUndo:N_("undo"),isTab:N_("tab"),isSelectAll:N_("selectAll")};function I_(e){e.preventDefault()}var R_={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(kA&&!o&&O_(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=LD(r.getTargetRanges(),1)[0];if(s){var c=TA.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Zf.equals(i,c)||gd.select(n,c)}}if(i&&Zf.isExpanded(i)&&a.startsWith("delete")){var l=a.endsWith("Backward")?"backward":"forward";kf.deleteFragment(n,{direction:l})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":kf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":kf.deleteForward(n);break;case"deleteContentBackward":kf.deleteBackward(n);break;case"deleteEntireSoftLine":kf.deleteBackward(n,{unit:"line"}),kf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":kf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":kf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":kf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":kf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":kf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":kf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":kf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!iA.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&kf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&O_(n,r.target)){var a=TA.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===TA.toDOMNode(n,n)||dA(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&pA(u)&&TA.hasDOMNode(n,u)){var s=TA.toSlateNode(n,u);if(Ef.isElement(s)&&!n.isVoid(s))return}if(CA){var c=a.getSelection();null==c||c.removeAllRanges()}nA.delete(n)}}}},focus:function(e,t,n){var r=TA.toDOMNode(n,n),o=TA.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,SA&&e.target!==r?r.focus():nA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&k_(n,e.target)&&pA(e.target)){var r=TA.toSlateNode(n,e.target),o=TA.findPath(n,r);if(kf.hasPath(n,o)&&Ff.get(n,o)===r){var i=kf.start(n,o),a=kf.end(n,o),u=kf.void(n,{at:i}),s=kf.void(n,{at:a});if(u&&s&&If.equals(u[1],s[1])){var c=kf.range(n,i);gd.select(n,c)}}}},compositionstart:function(e,t,n){if(O_(n,e.target)){var r=n.selection;if(r&&Zf.isExpanded(r)&&(kf.deleteFragment(n),Promise.resolve().then((function(){T_(t,n,!0)}))),r&&Zf.isCollapsed(r)){var o=TA.toDOMRange(n,r).startContainer,i=o.textContent||"";B_.set(n,i),__.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(O_(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(AA||SA)&&TA.cleanExposedTexNodeInSelectionBlock(n);for(var i=Zf.isBackward(o)?o.focus:o.anchor,a=LD(kf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=LD(kf.node(n,i.path.slice(0,u+1)),1)[0];if(Ef.isElement(s)&&((CA||SA)&&"link"===s.type||"code"===s.type)){TA.setNewKey(a);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var l=TA.getLeftLengthOfMaxLength(n);l<c.length?(TA.toDOMRange(n,o).startContainer.textContent=B_.get(n)||"",l>0&&kf.insertText(n,c.slice(0,l)),t.changeViewState()):kf.insertText(n,c)}else kf.insertText(n,c);CA||setTimeout((function(){var e=n.selection;if(null!=e){var t=__.get(n);null!=t&&TA.toDOMRange(n,e).startContainer!==t&&(t.textContent=B_.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){O_(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&O_(n,r.target)){if(function(e,t){var n=RO.get(e),r=n&&n.getMenus(),o=zO.get(e),i=o&&o.getMenus(),a=jD(jD({},r),i);for(var u in a){var s=a[u],c=s.hotkey;if(c&&gg(c,t)&&!s.isDisabled(e)){var l=s.getValue(e);s.exec(e,l)}}}(n,r),L_.isTab(r))return I_(r),void n.handleTab();if(L_.isRedo(r))return I_(r),void("function"==typeof n.redo&&n.redo());if(L_.isUndo(r))return I_(r),void("function"==typeof n.undo&&n.undo());if(L_.isMoveLineBackward(r))return I_(r),void gd.move(n,{unit:"line",reverse:!0});if(L_.isMoveLineForward(r))return I_(r),void gd.move(n,{unit:"line"});if(L_.isExtendLineBackward(r))return I_(r),void gd.move(n,{unit:"line",edge:"focus",reverse:!0});if(L_.isExtendLineForward(r))return I_(r),void gd.move(n,{unit:"line",edge:"focus"});if(L_.isMoveBackward(r))return I_(r),void(o&&Zf.isCollapsed(o)?gd.move(n,{reverse:!0}):gd.collapse(n,{edge:"start"}));if(L_.isMoveForward(r))return I_(r),void(o&&Zf.isCollapsed(o)?gd.move(n):gd.collapse(n,{edge:"end"}));if(L_.isMoveWordBackward(r))return I_(r),o&&Zf.isExpanded(o)&&gd.collapse(n,{edge:"focus"}),void gd.move(n,{unit:"word",reverse:!0});if(L_.isMoveWordForward(r))return I_(r),o&&Zf.isExpanded(o)&&gd.collapse(n,{edge:"focus"}),void gd.move(n,{unit:"word"});if(L_.isSelectAll(r))return I_(r),void n.selectAll();if(kA){if((AA||CA)&&o&&(L_.isDeleteBackward(r)||L_.isDeleteForward(r))&&Zf.isCollapsed(o)){var i=Ff.parent(n,o.anchor.path);if(Ef.isElement(i)&&kf.isVoid(n,i)&&kf.isInline(n,i))return r.preventDefault(),void gd.delete(n,{unit:"block"})}}else{if(L_.isBold(r)||L_.isItalic(r)||L_.isTransposeCharacter(r))return void I_(r);if(L_.isSplitBlock(r))return I_(r),void kf.insertBreak(n);if(L_.isDeleteBackward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n));if(L_.isDeleteForward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n));if(L_.isDeleteLineBackward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n,{unit:"line"}));if(L_.isDeleteLineForward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n,{unit:"line"}));if(L_.isDeleteWordBackward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n,{unit:"word"}));if(L_.isDeleteWordForward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!kA&&!n.getConfig().readOnly&&O_(n,e.target)){e.preventDefault();var r=e.key;kf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(O_(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&O_(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Zf.isExpanded(o))kf.deleteFragment(n);else{var a=Ff.parent(n,o.anchor.path);kf.isVoid(n,a)&&gd.delete(n)}}},paste:function(e,t,n){iA.set(n,!0);var r=e;if(!n.getConfig().readOnly&&O_(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void iA.set(n,!1);if(!kA||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(k_(n,e.target)){var r=TA.toSlateNode(n,e.target);kf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(k_(n,r.target)&&!n.getConfig().readOnly){var o=TA.toSlateNode(n,r.target),i=TA.findPath(n,o);if(kf.isVoid(n,o)||kf.void(n,{at:i,voids:!0})){var a=kf.range(n,i);gd.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&k_(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&k_(n,r.target)&&null!=o&&!(kA&&CA&&o.files.length>0)){r.preventDefault();var i=n.selection,a=TA.findEventRange(n,r);gd.select(n,a),t.isDraggingInternally&&(i&&gd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},M_=1,z_=function(){function e(e){var t=this;this.id=M_++,this.$textArea=null,this.$progressBar=Bp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Bp('<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=$h((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=TA.findDocumentOrShadowRoot(t),a=i.activeElement,u=TA.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,nA.set(t,!0)):nA.delete(t),!s)return gd.deselect(t);var c=s.anchorNode,l=s.focusNode,f=O_(t,c)||A_(t,c),d=O_(t,l)||A_(t,l);if(f&&d){var p=TA.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});gd.select(t,p)}else gd.deselect(t)}}(t,e)}),100);var n=Bp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Bp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Bp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,AT((function(){var e=t.editorInstance,n=TA.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=LO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Dh(R_,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",$h((function(){r.emit("scroll")}),100))))},e.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}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-TA.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;b_(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Bp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),AT((function(){T_(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function H_(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&H_(t)}function $_(){return Bp('<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 V_(){return Bp('<div class="w-e-bar-divider"></div>')}function U_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=EA?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}fD("match",(function(e,t,n){return[function(t){var n=Yb(this),r=null==t?void 0:$w(t,e);return r?jw(r,t,n):new RegExp(t)[e](KE(n))},function(e){var r=Pw(this),o=KE(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return ED(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=ED(r,o));){var l=KE(u[0]);s[c]=l,""===l&&(r.lastIndex=pD(o,$x(r.lastIndex),a)),c++}return 0===c?null:s}]}));var Z_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Bp('<div class="w-e-bar-item"></div>'),this.$button=Bp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,c=t.iconSvg,l=void 0===c?"":c,f=this.$button;if(l){var d=Bp(l);H_(d),f.append(d)}else f.text(a);U_(f,l,a,s,n),n&&l&&f.append(Bp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),AT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),oP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=oP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=oP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=oP(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),W_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return FD(t,e),t.prototype.onButtonClick=function(){},t}(Z_),G_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=$O.get(e);null==t&&(t=new Set,$O.set(e,t)),t.add(this),VO.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=VO.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=VO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),q_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Bp('<div class="w-e-drop-panel"></div>'),n}return FD(t,e),t.prototype.genSelfElem=function(){return null},t}(G_),K_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=$_();o.$button.append(i)}return o}return FD(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=oP(this);if(null==this.dropPanel){var n=new q_(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(Z_),Y_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Bp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return FD(t,e),t.prototype.genSelfElem=function(){var e=this,t=Bp('<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=VO.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(G_);function X_(e,t,n){var r=Bp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Bp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function J_(e,t){var n=Bp('<div class="button-container"></div>'),r=Bp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var Q_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Bp("body"),o.modal=null,o.menu=n,o}return FD(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=oP(this),t=this.menu.getModalPositionNode(e);return Ef.isElement(t)?KB(e,t,"modal"):qB(e)},t.prototype.handleModal=function(){var e=oP(this),t=this.menu;if(null==this.modal){var n=new Y_(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=oP(this),r=this.menu;if(null!=r.getModalContentElem){var o=TA.getTextarea(n),i=TA.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||YB(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(Z_),eP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Bp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return FD(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Bp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Bp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Bp('<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>');a.append(u),a.addClass("selected")}a.append(Bp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(G_),tP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Bp('<div class="w-e-bar-item"></div>'),this.$button=Bp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,c=t.hotkey,l=void 0===c?"":c;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),U_(f,s,i,l,n),this.$elem.append(f),this.menu=t,AT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),oP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=oP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new eP(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Bp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=oP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=oP(this),t=this.menu,n=t.getValue(e),r=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()),o=this.$button,i=$_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=oP(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),nP=function(){function e(e){this.$elem=Bp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Bp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Bp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Bp(n);H_(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=$_();i.append(u),o.append(i);var s=this.$container;o.append(s);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Bp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),rP=new WeakMap;function oP(e){var t=HO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function iP(e,t,n){void 0===n&&(n=!1);var r=rP.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new K_(e,t,n):a?new Q_(e,t,n):new W_(e,t,n)}if("select"===o&&(r=new tP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return rP.set(t,r),r}function aP(e,t){var n=e.selection;return null!=n&&!Zf.isCollapsed(n)&&!TA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Jf.isText(t)}var uP=function(){function e(){var e=this;this.$elem=Bp('<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=Fg((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Ef.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),AT((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),TA.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.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},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;AT((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=V_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=PA[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}var i=iP(e,r);this.hoverbarItems.push(i),HO.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Ef.isElement(e)){var r=KB(t,e,"bar");return n.css(r),void YB(t,n)}if(Jf.isText(e))return r=qB(t),n.css(r),void YB(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,c=a||function(e,t){return TA.checkNodeType(t,o)},l=LD(kf.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),f=l[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=MO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=aP),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=TA.findPath(null,e),r=TA.findPath(null,t);return If.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function sP(e,t,n,r){if(qO.set(e,t),KO.set(e,n),Ef.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return sP(t,n,e,r)})),kf.isVoid(r,e)){var i=LD(Ff.texts(e),1),a=LD(i[0],1)[0];qO.set(a,0),KO.set(a,e)}}}function cP(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];GE.withoutSaving(t,(()=>{kf.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];GE.withoutSaving(t,(()=>{kf.withoutNormalizing(t,(()=>{var e=r.map(Lf.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),c=GE.isSaving(t),l=GE.isMerging(t);if(null==c&&(c=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),c){if(null==l&&(l=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!If.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!If.equals(e.path,t.path)))(e,u)||s)),a&&l)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=TA.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=TA.getLeftLengthOfMaxLength(t);n<=0||n<Ff.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(TA.getLeftLengthOfMaxLength(t)<Ff.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=TA.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===cA.TEXT_NODE?e+(t.textContent||""):n===cA.ELEMENT_NODE?wB.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=UB(t);if(r.on(e,n),"destroyed"===e&&WB(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),WB(t,o)}},t.once=function(e,n){UB(t).once(e,n)},t.off=function(e,n){UB(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=UB(t);o.emit.apply(o,ID([e],LD(n))),"destroyed"===e&&(function(e){return ZB.get(e)||new Set}(t).forEach((function(e){return o.off("destroyed",e)})),function(e){ZB.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){gd.select(t,e)},t.deselect=function(){var n=t.selection,r=TA.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&gd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||gd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=rA.get(t);null!=e&&(t.focus(),gd.select(t,e))},t.getSelectionPosition=function(){return qB(t)},t.getNodePosition=function(e){return KB(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=LD(Zf.edges(e),2),r=n[0],o=n[1],i=LD(kf.edges(t,[]),2),a=i[0],u=i[1];return!(!Hf.equals(r,a)||!Hf.equals(o,u))},t.selectAll=function(){var e=kf.start(t,[]),n=kf.end(t,[]);gd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,c,l,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=ND(kf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=LD(p.value,2),v=h[0],g=h[1],y=TA.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=ND(kf.levels(t,{at:If.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=LD(b.value,2);v=w[0],g=w[1],y=TA.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=ND(kf.levels(t,{at:If.common(If.parent(e.path),If.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var S=LD(E.value,2);v=S[0],g=S[1],y=TA.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{E&&!E.done&&(s=x.return)&&s.call(x)}finally{if(u)throw u.error}}}o(e);try{for(var C=ND(f),D=C.next();!D.done;D=C.next()){var O=LD(D.value,2);g=O[0],y=O[1],v=LD(kf.node(t,g),1)[0],eA.set(v,y)}}catch(e){c={error:e}}finally{try{D&&!D.done&&(l=C.return)&&l.call(C)}finally{if(c)throw c.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Zf.isCollapsed(e.selection)){var r=kf.above(e,{match:function(t){return kf.isBlock(e,t)},at:e.selection});if(r){var o=LD(r,2)[1],a=kf.range(e,o,e.selection.anchor),u=function(e,t){var n=kf.range(e,Zf.end(t)),r=Array.from(kf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(_T(e,kf.range(e,r[o]),n))return kf.range(e,r[o],n);if(r.length<2)return kf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)_T(e,kf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return kf.range(e,r[i],n)}(t,a);Zf.isCollapsed(u)||gd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&rA.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return kT(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Ff.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":kf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=kf.nodes(t,{at:[],universal:!0});try{for(var u=ND(a),s=u.next();!s.done;s=u.next()){var c=LD(s.value,1)[0];if(Ef.isElement(c)&&(n?c.type.indexOf(e)>=0:c.type===e)){var l=TT(TA.findKey(t,c).id);i.push(jD(jD({},c),{id:l}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Ef.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Jf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){gd.delete(t,{at:{anchor:kf.start(t,[]),focus:kf.end(t,[])}}),0===t.children.length&&gd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return TA.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===cA.TEXT_NODE||t===cA.ELEMENT_NODE&&!wB.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;TA.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==cA.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(PT.includes(r.toLowerCase()))s=!0;else for(var c in NT)if(a.matches(c)){s=!0;break}if(s){var l=dB(Bp(a),t);return Array.isArray(l)?(l.forEach((function(e){return xB(t,e)})),u++):(xB(t,l),u++),void(TA.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;TA.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&TA.isEmptyPath(t,a)&&gd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=hB(t,e);if(gd.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(kf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in PA)e.push(t);return e},t.getConfig=function(){var e=UO.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=EB(Ul());return t.id="wangEditor-"+BA++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(TA.toDOMNode(t,t).focus({preventScroll:!0}),nA.set(t,!0),e){var n=kf.end(t,[]);gd.select(t,n)}else{var r=rA.get(t);r?gd.select(t,r):gd.select(t,kf.start(t,[]))}},t.isFocused=function(){return!!nA.get(t)},t.blur=function(){TA.toDOMNode(t,t).blur(),gd.deselect(t),nA.set(t,!1)},t.updateView=function(){TA.getTextarea(t).changeViewState();var e=TA.getToolbar(t);e&&e.changeToolbarState();var n=TA.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=TA.getTextarea(t);e.destroy(),NO.delete(t),LO.delete(e);var n=TA.getToolbar(t);n&&(n.destroy(),RO.delete(t),IO.delete(n));var r=TA.getHoverbar(t);r&&(r.destroy(),zO.delete(t),MO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Bp("#"+e);if(0!==r.length){var o=r[0];if(!TA.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=TA.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,c=a.offset().top;u[0].scrollBy({top:s-c,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||TA.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=$O.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return TA.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=TA.getToolbar(t);n&&(e=n.$box);var r=TA.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[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 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=TA.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return TA.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return pB(e,"data-w-e-textarea",t)}(c,n))throw new Error("Repeated create editor by selector '"+n+"'");var l=function(e){void 0===e&&(e={});var t=jg(_A),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Dh(t,(function(e,t){n[t]=jD(jD({},e),o[t]||{})})),delete e.MENU_CONF,jD({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);UO.set(c,l);var f=l.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){c=e(c)})),null!=a&&(c.children=hB(c,a)),i&&i.length&&(c.children=i),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),TA.normalizeContent(c),n){var p=new z_(n);NO.set(c,p),LO.set(p,c),p.changeViewState(),AT((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new uP,MO.set(h,c),zO.set(c,h)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return sP(e,t,c,c)}));var v=l.onCreated,g=l.onDestroyed;return v&&c.on("created",(function(){return v(c)})),g&&c.on("destroyed",(function(){return g(c)})),AT((function(){return c.emit("created")})),c}var lP=NC("splice"),fP=Mb.TypeError,dP=Math.max,pP=Math.min;zE({target:"Array",proto:!0,forced:!lP},{splice:function(e,t){var n,r,o,i,a,u,s=Jb(this),c=Vx(s),l=bE(e,c),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=pP(dP(zx(t),0),c-l)),c+n-r>9007199254740991)throw fP("Maximum allowed length exceeded");for(o=tE(s,r),i=0;i<r;i++)(a=l+i)in s&&_S(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=c;i>c-r+n;i--)delete s[i-1]}else if(n>r)for(i=c-r;i>l;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+l]=arguments[i+2];return s.length=c-r+n,o}});var hP=function(){function e(e,t){var n=this;this.$toolbar=Bp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Fg((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Bp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),AT((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,c=void 0===s?[]:s,l=jg(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){l.splice(u.index+t,0,e)})));var f=l.filter((function(e){if("string"==typeof e){if(c.includes(e))return!1}else if(c.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=V_();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new nP(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof nP,o=this.menus,i=o[e];if(null==i){var a=PA[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+"'");var u=iP(e,i,r);this.toolbarItems.push(u),HO.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=IO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),vP=bx.EXISTS,gP=Kw.f,yP=Function.prototype,mP=qb(yP.toString),bP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wP=qb(bP.exec);function xP(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,c=e.meta,l=void 0===c?{}:c,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,E=void 0===x?function(e,t){}:x,S=e.onError,C=void 0===S?function(e,t,n){console.error(e.name+" upload error",t,n)}:S,D=e.onProgress,O=void 0===D?function(e){}:D;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=LD(e.split("#"),2),r=n[0],o=n[1],i=[];Dh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,l));var k=new cm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:l}).use(Fb,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{E(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||O(e)})),k.on("upload-error",(function(e,t,n){try{C(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{C(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function EP(e){return EP="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},EP(e)}function SP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){SP(e,t,n[t])}))}return e}function DP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OP(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 AP(e,t,n){return t&&OP(e.prototype,t),n&&OP(e,n),e}function kP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TP(e,t){if(t&&("object"===EP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kP(e)}function BP(e){return BP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BP(e)}function _P(e,t){return _P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_P(e,t)}function PP(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&&_P(e,t)}Cw&&!vP&&gP(yP,"name",{configurable:!0,get:function(){try{return wP(bP,mP(this))[1]}catch(e){return""}}});var FP={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)}},jP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};DP(this,e),this.init(t,n)}return AP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||FP,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(t){return new e(this.logger,CP({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),NP=function(){function e(){DP(this,e),this.observers={}}return AP(e,[{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(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function LP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function IP(e){return null==e?"":""+e}function RP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){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 MP(e,t,n){var r=RP(e,t,Object);r.obj[r.k]=n}function zP(e,t){var n=RP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function HP(e,t,n){var r=zP(e,n);return void 0!==r?r:zP(t,n)}function $P(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):$P(e[r],t[r],n):e[r]=t[r]);return e}function VP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var UP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ZP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return UP[e]})):e}var WP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function GP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var c=r.slice(i+a).join(n);return c?GP(s,c,n):void 0}o=o[r[i]]}return o}}var qP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return DP(this,t),n=TP(this,BP(t).call(this)),WP&&NP.call(kP(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return PP(t,NP),AP(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=zP(this.data,a);return u||!i||"string"!=typeof n?u:GP(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),MP(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=zP(this.data,a)||{};r?$P(u,n,o):u=CP({},u,n),MP(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?CP({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),KP={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}},YP={},XP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return DP(this,t),n=TP(this,BP(t).call(this)),WP&&NP.call(kP(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,kP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=jP.create("translator"),n}return PP(t,NP),AP(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==EP(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,c=s[s.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return c+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.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(v,h,CP({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,x=w?[]:{},E=w?g:v;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var C="".concat(E).concat(i).concat(S);x[S]=this.translate(C,CP({},n,{joinArrays:!1,ns:s})),x[S]===C&&(x[S]=h[S])}h=x}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,e,n,r));else{var D=!1,O=!1,A=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),T=A?this.pluralResolver.getSuffix(l,n.count):"",B=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&k&&(D=!0,h=B),this.isValidLookup(h)||(O=!0,h=u);var _=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:h,P=k&&B!==h&&this.options.updateMissing;if(O||D||P){if(this.logger.log(P?"updateKey":"missingKey",l,c,u,P?B:h),i){var F=this.resolve(u,CP({},n,{keySeparator:!1}));F&&F.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 j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var L=0;L<N.length;L++)j.push(N[L]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var I=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,P?r:_,P,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,P?r:_,P,n),o.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){I([e],u+t,n["defaultValue".concat(t)]||B)}))})):I(j,u,B))}h=this.extendTranslation(h,e,n,p,r),O&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),(O||D)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(CP({},n,{interpolation:CP({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=CP({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=KP.handle(d,e,t,this.options&&this.options.postProcessPassResolved?CP({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!YP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(YP["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{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=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function JP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var QP=function(){function e(t){DP(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jP.create("languageUtils")}return AP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=JP(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()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=JP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=JP(n[2].toLowerCase()))),n.join("-")}return 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||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),eF=[{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}],tF={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},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:e>2&&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:e%10>=2&&(e%100<10||e%100>=20)?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||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&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||e>10)&&e%10==0?2:3)}};var nF=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};DP(this,e),this.languageUtils=t,this.options=n,this.logger=jP.create("pluralResolver"),this.rules=function(){var e={};return eF.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:tF[t.fc]}}))})),e}()}return AP(e,[{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){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),rF=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};DP(this,e),this.logger=jP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return AP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ZP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?VP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?VP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?VP(t.nestingPrefix):t.nestingPrefixEscaped||VP("$t("),this.nestingSuffix=t.nestingSuffix?VP(t.nestingSuffix):t.nestingSuffixEscaped||VP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.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);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=HP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,CP({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(HP(t,s,a),c,n,CP({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=IP(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=CP({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=CP({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),s=l,c=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=IP(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,CP({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),oF=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return DP(this,t),o=TP(this,BP(t).call(this)),WP&&NP.call(kP(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=jP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return PP(t,NP),AP(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=RP(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?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)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.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(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&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,CP({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function iF(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 aF(){}var uF=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(DP(this,t),e=TP(this,BP(t).call(this)),WP&&NP.call(kP(e)),e.options=iF(n),e.services={},e.logger=jP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),TP(e,kP(e));setTimeout((function(){e.init(n,r)}),0)}return e}return PP(t,NP),AP(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("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=CP({},{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={};if("object"===EP(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===EP(e[2])||"object"===EP(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},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,iF(t)),this.format=this.options.interpolation.format,n||(n=aF),!this.options.isClone){this.modules.logger?jP.init(r(this.modules.logger),this.options):jP.init(null,this.options);var o=new QP(this.options);this.store=new qP(this.options.resources,this.options);var i=this.services;i.logger=jP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new nF(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new rF(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new oF(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new XP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[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){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=LP(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aF,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=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=LP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=aF),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)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");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&&KP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=LP();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==EP(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=CP({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{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 t=this,n=arguments.length>1&&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;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}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=LP();return this.options.ns?("string"==typeof e&&(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=LP();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["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))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aF,o=CP({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=CP({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new XP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),sF=new uF;function cF(e,t){sF.addResourceBundle(e,"translation",t,!0,!0)}sF.init({lng:"zh-CN",resources:{}});var lF=sF.t.bind(sF);cF("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),cF("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var fF=na?{}.toString:function(){return"[object "+aa(this)+"]"};na||Si(Object.prototype,"toString",fF,{unsafe:!0});var dF=Array.isArray||function(e){return"Array"==Zr(e)},pF=function(){},hF=[],vF=to("Reflect","construct"),gF=/^\s*(?:class|function)\b/,yF=$r(gF.exec),mF=!gF.exec(pF),bF=function(e){if(!Jr(e))return!1;try{return vF(pF,hF,e),!0}catch(e){return!1}},wF=!vF||Tr((function(){var e;return bF(bF.call)||!bF(Object)||!bF((function(){e=!0}))||e}))?function(e){if(!Jr(e))return!1;switch(aa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mF||!!yF(gF,ii(e))}:bF,xF=Lo("species"),EF=kr.Array,SF=function(e,t){return new(function(e){var t;return dF(e)&&(t=e.constructor,(wF(t)&&(t===EF||dF(t.prototype))||Qr(t)&&null===(t=t[xF]))&&(t=void 0)),void 0===t?EF:t}(e))(0===t?0:t)},CF=$r([].push),DF=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Do(s),v=qr(h),g=mu(c,l),y=Pi(v),m=0,b=f||SF,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:CF(w,d)}else switch(e){case 4:return!1;case 7:CF(w,d)}return i?-1:r||o?o:w}},OF=[DF(0),DF(1),DF(2),DF(3),DF(4),DF(5),DF(6),DF(7)][0],AF=function(e,t){var n=[].forEach;return!!n&&Tr((function(){n.call(null,(function(){throw 1}),1)}))}(),kF=AF?[].forEach:function(e){return OF(this,e,arguments.length>1?arguments[1]:void 0)},TF=function(e){if(e&&e.forEach!==kF)try{ei(e,"forEach",kF)}catch(t){e.forEach=kF}};for(var BF in ds)ds[BF]&&TF(kr[BF]&&kr[BF].prototype);TF(vs),cF("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"}}),cF("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:"待办"}});var _F={type:"paragraph",renderElem:function(e,t,n){return xv("p",null,t)}},PF="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function FF(e){var t={exports:{}};return e(t,t.exports),t.exports}var jF,NF,LF=function(e){return e&&e.Math==Math&&e},IF=LF("object"==typeof globalThis&&globalThis)||LF("object"==typeof window&&window)||LF("object"==typeof self&&self)||LF("object"==typeof PF&&PF)||function(){return this}()||Function("return this")(),RF=function(e){try{return!!e()}catch(e){return!0}},MF=!RF((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zF=Function.prototype.call,HF=zF.bind?zF.bind(zF):function(){return zF.apply(zF,arguments)},$F={}.propertyIsEnumerable,VF=Object.getOwnPropertyDescriptor,UF=VF&&!$F.call({1:2},1)?function(e){var t=VF(this,e);return!!t&&t.enumerable}:$F,ZF={f:UF},WF=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GF=Function.prototype,qF=GF.bind,KF=GF.call,YF=qF&&qF.bind(KF),XF=qF?function(e){return e&&YF(KF,e)}:function(e){return e&&function(){return KF.apply(e,arguments)}},JF=XF({}.toString),QF=XF("".slice),ej=function(e){return QF(JF(e),8,-1)},tj=IF.Object,nj=XF("".split),rj=RF((function(){return!tj("z").propertyIsEnumerable(0)}))?function(e){return"String"==ej(e)?nj(e,""):tj(e)}:tj,oj=IF.TypeError,ij=function(e){if(null==e)throw oj("Can't call method on "+e);return e},aj=function(e){return rj(ij(e))},uj=function(e){return"function"==typeof e},sj=function(e){return"object"==typeof e?null!==e:uj(e)},cj=function(e){return uj(e)?e:void 0},lj=function(e,t){return arguments.length<2?cj(IF[e]):IF[e]&&IF[e][t]},fj=XF({}.isPrototypeOf),dj=lj("navigator","userAgent")||"",pj=IF.process,hj=IF.Deno,vj=pj&&pj.versions||hj&&hj.version,gj=vj&&vj.v8;gj&&(NF=(jF=gj.split("."))[0]>0&&jF[0]<4?1:+(jF[0]+jF[1])),!NF&&dj&&(!(jF=dj.match(/Edge\/(\d+)/))||jF[1]>=74)&&(jF=dj.match(/Chrome\/(\d+)/))&&(NF=+jF[1]);var yj=NF,mj=!!Object.getOwnPropertySymbols&&!RF((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yj&&yj<41})),bj=mj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wj=IF.Object,xj=bj?function(e){return"symbol"==typeof e}:function(e){var t=lj("Symbol");return uj(t)&&fj(t.prototype,wj(e))},Ej=IF.String,Sj=function(e){try{return Ej(e)}catch(e){return"Object"}},Cj=IF.TypeError,Dj=function(e){if(uj(e))return e;throw Cj(Sj(e)+" is not a function")},Oj=function(e,t){var n=e[t];return null==n?void 0:Dj(n)},Aj=IF.TypeError,kj=Object.defineProperty,Tj=function(e,t){try{kj(IF,e,{value:t,configurable:!0,writable:!0})}catch(n){IF[e]=t}return t},Bj=IF["__core-js_shared__"]||Tj("__core-js_shared__",{}),_j=FF((function(e){(e.exports=function(e,t){return Bj[e]||(Bj[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Pj=IF.Object,Fj=function(e){return Pj(ij(e))},jj=XF({}.hasOwnProperty),Nj=Object.hasOwn||function(e,t){return jj(Fj(e),t)},Lj=0,Ij=Math.random(),Rj=XF(1..toString),Mj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Rj(++Lj+Ij,36)},zj=_j("wks"),Hj=IF.Symbol,$j=Hj&&Hj.for,Vj=bj?Hj:Hj&&Hj.withoutSetter||Mj,Uj=function(e){if(!Nj(zj,e)||!mj&&"string"!=typeof zj[e]){var t="Symbol."+e;mj&&Nj(Hj,e)?zj[e]=Hj[e]:zj[e]=bj&&$j?$j(t):Vj(t)}return zj[e]},Zj=IF.TypeError,Wj=Uj("toPrimitive"),Gj=function(e){var t=function(e,t){if(!sj(e)||xj(e))return e;var n,r=Oj(e,Wj);if(r){if(void 0===t&&(t="default"),n=HF(r,e,t),!sj(n)||xj(n))return n;throw Zj("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&uj(n=e.toString)&&!sj(r=HF(n,e)))return r;if(uj(n=e.valueOf)&&!sj(r=HF(n,e)))return r;if("string"!==t&&uj(n=e.toString)&&!sj(r=HF(n,e)))return r;throw Aj("Can't convert object to primitive value")}(e,t)}(e,"string");return xj(t)?t:t+""},qj=IF.document,Kj=sj(qj)&&sj(qj.createElement),Yj=function(e){return Kj?qj.createElement(e):{}},Xj=!MF&&!RF((function(){return 7!=Object.defineProperty(Yj("div"),"a",{get:function(){return 7}}).a})),Jj=Object.getOwnPropertyDescriptor,Qj={f:MF?Jj:function(e,t){if(e=aj(e),t=Gj(t),Xj)try{return Jj(e,t)}catch(e){}if(Nj(e,t))return WF(!HF(ZF.f,e,t),e[t])}},eN=IF.String,tN=IF.TypeError,nN=function(e){if(sj(e))return e;throw tN(eN(e)+" is not an object")},rN=IF.TypeError,oN=Object.defineProperty,iN={f:MF?oN:function(e,t,n){if(nN(e),t=Gj(t),nN(n),Xj)try{return oN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw rN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},aN=MF?function(e,t,n){return iN.f(e,t,WF(1,n))}:function(e,t,n){return e[t]=n,e},uN=XF(Function.toString);uj(Bj.inspectSource)||(Bj.inspectSource=function(e){return uN(e)});var sN,cN,lN,fN=Bj.inspectSource,dN=IF.WeakMap,pN=uj(dN)&&/native code/.test(fN(dN)),hN=_j("keys"),vN=function(e){return hN[e]||(hN[e]=Mj(e))},gN={},yN=IF.TypeError,mN=IF.WeakMap;if(pN||Bj.state){var bN=Bj.state||(Bj.state=new mN),wN=XF(bN.get),xN=XF(bN.has),EN=XF(bN.set);sN=function(e,t){if(xN(bN,e))throw new yN("Object already initialized");return t.facade=e,EN(bN,e,t),t},cN=function(e){return wN(bN,e)||{}},lN=function(e){return xN(bN,e)}}else{var SN=vN("state");gN[SN]=!0,sN=function(e,t){if(Nj(e,SN))throw new yN("Object already initialized");return t.facade=e,aN(e,SN,t),t},cN=function(e){return Nj(e,SN)?e[SN]:{}},lN=function(e){return Nj(e,SN)}}var CN={set:sN,get:cN,has:lN,enforce:function(e){return lN(e)?cN(e):sN(e,{})},getterFor:function(e){return function(t){var n;if(!sj(t)||(n=cN(t)).type!==e)throw yN("Incompatible receiver, "+e+" required");return n}}},DN=Function.prototype,ON=MF&&Object.getOwnPropertyDescriptor,AN=Nj(DN,"name"),kN={EXISTS:AN,PROPER:AN&&"something"===function(){}.name,CONFIGURABLE:AN&&(!MF||MF&&ON(DN,"name").configurable)},TN=FF((function(e){var t=kN.CONFIGURABLE,n=CN.get,r=CN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;uj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nj(i,"name")||t&&i.name!==f)&&aN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==IF?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:aN(e,n,i)):c?e[n]=i:Tj(n,i)})(Function.prototype,"toString",(function(){return uj(this)&&n(this).source||fN(this)}))})),BN=Math.ceil,_N=Math.floor,PN=function(e){var t=+e;return t!=t||0===t?0:(t>0?_N:BN)(t)},FN=Math.max,jN=Math.min,NN=function(e,t){var n=PN(e);return n<0?FN(n+t,0):jN(n,t)},LN=Math.min,IN=function(e){return e>0?LN(PN(e),9007199254740991):0},RN=function(e){return IN(e.length)},MN=function(e){return function(t,n,r){var o,i=aj(t),a=RN(i),u=NN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},zN={includes:MN(!0),indexOf:MN(!1)},HN=zN.indexOf,$N=XF([].push),VN=function(e,t){var n,r=aj(e),o=0,i=[];for(n in r)!Nj(gN,n)&&Nj(r,n)&&$N(i,n);for(;t.length>o;)Nj(r,n=t[o++])&&(~HN(i,n)||$N(i,n));return i},UN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZN=UN.concat("length","prototype"),WN={f:Object.getOwnPropertyNames||function(e){return VN(e,ZN)}},GN={f:Object.getOwnPropertySymbols},qN=XF([].concat),KN=lj("Reflect","ownKeys")||function(e){var t=WN.f(nN(e)),n=GN.f;return n?qN(t,n(e)):t},YN=function(e,t){for(var n=KN(t),r=iN.f,o=Qj.f,i=0;i<n.length;i++){var a=n[i];Nj(e,a)||r(e,a,o(t,a))}},XN=/#|\.prototype\./,JN=function(e,t){var n=eL[QN(e)];return n==nL||n!=tL&&(uj(t)?RF(t):!!t)},QN=JN.normalize=function(e){return String(e).replace(XN,".").toLowerCase()},eL=JN.data={},tL=JN.NATIVE="N",nL=JN.POLYFILL="P",rL=JN,oL=Qj.f,iL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?IF:c?IF[u]||Tj(u,{}):(IF[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=oL(n,r))&&a.value:n[r],!rL(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;YN(i,o)}(e.sham||o&&o.sham)&&aN(i,"sham",!0),TN(n,r,i,e)}},aL=XF(XF.bind),uL=Array.isArray||function(e){return"Array"==ej(e)},sL={};sL[Uj("toStringTag")]="z";var cL="[object z]"===String(sL),lL=Uj("toStringTag"),fL=IF.Object,dL="Arguments"==ej(function(){return arguments}()),pL=cL?ej:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=fL(e),lL))?n:dL?ej(t):"Object"==(r=ej(t))&&uj(t.callee)?"Arguments":r},hL=function(){},vL=[],gL=lj("Reflect","construct"),yL=/^\s*(?:class|function)\b/,mL=XF(yL.exec),bL=!yL.exec(hL),wL=function(e){if(!uj(e))return!1;try{return gL(hL,vL,e),!0}catch(e){return!1}},xL=!gL||RF((function(){var e;return wL(wL.call)||!wL(Object)||!wL((function(){e=!0}))||e}))?function(e){if(!uj(e))return!1;switch(pL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bL||!!mL(yL,fN(e))}:wL,EL=Uj("species"),SL=IF.Array,CL=function(e,t){return new(function(e){var t;return uL(e)&&(t=e.constructor,(xL(t)&&(t===SL||uL(t.prototype))||sj(t)&&null===(t=t[EL]))&&(t=void 0)),void 0===t?SL:t}(e))(0===t?0:t)},DL=XF([].push),OL=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Fj(s),v=rj(h),g=function(e,t){return Dj(e),void 0===t?e:aL?aL(e,t):function(){return e.apply(t,arguments)}}(c,l),y=RN(v),m=0,b=f||CL,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:DL(w,d)}else switch(e){case 4:return!1;case 7:DL(w,d)}return i?-1:r||o?o:w}},AL={forEach:OL(0),map:OL(1),filter:OL(2),some:OL(3),every:OL(4),find:OL(5),findIndex:OL(6),filterReject:OL(7)},kL=Uj("species"),TL=function(e){return yj>=51||!RF((function(){var t=[];return(t.constructor={})[kL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},BL=AL.filter;iL({target:"Array",proto:!0,forced:!TL("filter")},{filter:function(e){return BL(this,e,arguments.length>1?arguments[1]:void 0)}});var _L=cL?{}.toString:function(){return"[object "+pL(this)+"]"};cL||TN(Object.prototype,"toString",_L,{unsafe:!0});var PL,FL=IF.String,jL=function(e){if("Symbol"===pL(e))throw TypeError("Cannot convert a Symbol value to a string");return FL(e)},NL=function(){var e=nN(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},LL=IF.RegExp,IL=RF((function(){var e=LL("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),RL=IL||RF((function(){return!LL("a","y").sticky})),ML={BROKEN_CARET:IL||RF((function(){var e=LL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:RL,UNSUPPORTED_Y:IL},zL=Object.keys||function(e){return VN(e,UN)},HL=MF?Object.defineProperties:function(e,t){nN(e);for(var n,r=aj(t),o=zL(t),i=o.length,a=0;i>a;)iN.f(e,n=o[a++],r[n]);return e},$L=lj("document","documentElement"),VL=vN("IE_PROTO"),UL=function(){},ZL=function(e){return"<script>"+e+"<\/script>"},WL=function(e){e.write(ZL("")),e.close();var t=e.parentWindow.Object;return e=null,t},GL=function(){try{PL=new ActiveXObject("htmlfile")}catch(e){}var e,t;GL="undefined"!=typeof document?document.domain&&PL?WL(PL):((t=Yj("iframe")).style.display="none",$L.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ZL("document.F=Object")),e.close(),e.F):WL(PL);for(var n=UN.length;n--;)delete GL.prototype[UN[n]];return GL()};gN[VL]=!0;var qL,KL,YL=Object.create||function(e,t){var n;return null!==e?(UL.prototype=nN(e),n=new UL,UL.prototype=null,n[VL]=e):n=GL(),void 0===t?n:HL(n,t)},XL=IF.RegExp,JL=RF((function(){var e=XL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),QL=IF.RegExp,eI=RF((function(){var e=QL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),tI=CN.get,nI=_j("native-string-replace",String.prototype.replace),rI=RegExp.prototype.exec,oI=rI,iI=XF("".charAt),aI=XF("".indexOf),uI=XF("".replace),sI=XF("".slice),cI=(KL=/b*/g,HF(rI,qL=/a/,"a"),HF(rI,KL,"a"),0!==qL.lastIndex||0!==KL.lastIndex),lI=ML.BROKEN_CARET,fI=void 0!==/()??/.exec("")[1];(cI||fI||lI||JL||eI)&&(oI=function(e){var t,n,r,o,i,a,u,s=this,c=tI(s),l=jL(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=HF(oI,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=lI&&s.sticky,h=HF(NL,s),v=s.source,g=0,y=l;if(p&&(h=uI(h,"y",""),-1===aI(h,"g")&&(h+="g"),y=sI(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==iI(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),fI&&(n=new RegExp("^"+v+"$(?!\\s)",h)),cI&&(r=s.lastIndex),o=HF(rI,p?n:s,y),p?o?(o.input=sI(o.input,g),o[0]=sI(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:cI&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),fI&&o&&o.length>1&&HF(nI,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=YL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var dI=oI;iL({target:"RegExp",proto:!0,forced:/./.exec!==dI},{exec:dI});var pI=Function.prototype,hI=pI.apply,vI=pI.bind,gI=pI.call,yI="object"==typeof Reflect&&Reflect.apply||(vI?gI.bind(hI):function(){return gI.apply(hI,arguments)}),mI=Uj("species"),bI=RegExp.prototype,wI=function(e,t,n,r){var o=Uj(e),i=!RF((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!RF((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[mI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=XF(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=XF(e),s=t.exec;return s===dI||s===bI.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));TN(String.prototype,e,s[0]),TN(bI,o,s[1])}r&&aN(bI[o],"sham",!0)},xI=XF("".charAt),EI=XF("".charCodeAt),SI=XF("".slice),CI=function(e){return function(t,n){var r,o,i=jL(ij(t)),a=PN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=EI(i,a))<55296||r>56319||a+1===u||(o=EI(i,a+1))<56320||o>57343?e?xI(i,a):r:e?SI(i,a,a+2):o-56320+(r-55296<<10)+65536}},DI=(CI(!1),CI(!0)),OI=function(e,t,n){return t+(n?DI(e,t).length:1)},AI=Math.floor,kI=XF("".charAt),TI=XF("".replace),BI=XF("".slice),_I=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,PI=/\$([$&'`]|\d{1,2})/g,FI=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=PI;return void 0!==o&&(o=Fj(o),s=_I),TI(i,s,(function(i,s){var c;switch(kI(s,0)){case"$":return"$";case"&":return e;case"`":return BI(t,0,n);case"'":return BI(t,a);case"<":c=o[BI(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=AI(l/10);return 0===f?i:f<=u?void 0===r[f-1]?kI(s,1):r[f-1]+kI(s,1):i}c=r[l-1]}return void 0===c?"":c}))},jI=IF.TypeError,NI=function(e,t){var n=e.exec;if(uj(n)){var r=HF(n,e,t);return null!==r&&nN(r),r}if("RegExp"===ej(e))return HF(dI,e,t);throw jI("RegExp#exec called on incompatible receiver")},LI=Uj("replace"),II=Math.max,RI=Math.min,MI=XF([].concat),zI=XF([].push),HI=XF("".indexOf),$I=XF("".slice),VI="$0"==="a".replace(/./,"$0"),UI=!!/./[LI]&&""===/./[LI]("a","$0");wI("replace",(function(e,t,n){var r=UI?"$":"$0";return[function(e,n){var r=ij(this),o=null==e?void 0:Oj(e,LI);return o?HF(o,e,r,n):HF(t,jL(r),e,n)},function(e,o){var i=nN(this),a=jL(e);if("string"==typeof o&&-1===HI(o,r)&&-1===HI(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=uj(o);s||(o=jL(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=NI(i,a);if(null===d)break;if(zI(f,d),!c)break;""===jL(d[0])&&(i.lastIndex=OI(a,IN(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=jL((d=f[g])[0]),m=II(RI(PN(d.index),a.length),0),b=[],w=1;w<d.length;w++)zI(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=MI([y],b,m,a);void 0!==x&&zI(E,x);var S=jL(yI(o,void 0,E))}else S=FI(y,a,m,b,x,o);m>=v&&(h+=$I(a,v,m)+S,v=m+y.length)}return h+$I(a,v)}]}),!!RF((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!VI||UI);var ZI=Uj("unscopables"),WI=Array.prototype;null==WI[ZI]&&iN.f(WI,ZI,{configurable:!0,value:YL(null)});var GI=function(e){WI[ZI][e]=!0},qI=AL.find,KI=!0;"find"in[]&&Array(1).find((function(){KI=!1})),iL({target:"Array",proto:!0,forced:KI},{find:function(e){return qI(this,e,arguments.length>1?arguments[1]:void 0)}}),GI("find");var YI=Uj("match"),XI=function(e){var t;return sj(e)&&(void 0!==(t=e[YI])?!!t:"RegExp"==ej(e))},JI=IF.TypeError,QI=Uj("species"),eR=function(e,t,n){var r=Gj(t);r in e?iN.f(e,r,WF(0,n)):e[r]=n},tR=IF.Array,nR=Math.max,rR=function(e,t,n){for(var r=RN(e),o=NN(t,r),i=NN(void 0===n?r:n,r),a=tR(nR(i-o,0)),u=0;o<i;o++,u++)eR(a,u,e[o]);return a.length=u,a},oR=ML.UNSUPPORTED_Y,iR=Math.min,aR=[].push,uR=XF(/./.exec),sR=XF(aR),cR=XF("".slice);wI("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=jL(ij(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!XI(e))return HF(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=HF(dI,f,r))&&!((a=f.lastIndex)>l&&(sR(s,cR(r,l,i.index)),i.length>1&&i.index<r.length&&yI(aR,s,rR(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&uR(f,"")||sR(s,""):sR(s,cR(r,l)),s.length>o?rR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:HF(t,this,e,n)}:t,[function(t,n){var o=ij(this),i=null==t?void 0:Oj(t,e);return i?HF(i,t,o,n):HF(r,jL(o),t,n)},function(e,o){var i=nN(this),a=jL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=nN(e).constructor;return void 0===r||null==(n=nN(r)[QI])?t:function(e){if(xL(e))return e;throw JI(Sj(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(oR?"g":"y"),f=new s(oR?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===NI(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=oR?0:h;var g,y=NI(f,oR?cR(a,h):a);if(null===y||(g=iR(IN(f.lastIndex+(oR?h:0)),a.length))===p)h=OI(a,h,c);else{if(sR(v,cR(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(sR(v,y[m]),v.length===d)return v;h=p=g}}return sR(v,cR(a,p)),v}]}),!!RF((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),oR);var lR="\t\n\v\f\r \u2028\u2029\ufeff",fR=XF("".replace),dR="["+lR+"]",pR=RegExp("^"+dR+dR+"*"),hR=RegExp(dR+dR+"*$"),vR=function(e){return function(t){var n=jL(ij(t));return 1&e&&(n=fR(n,pR,"")),2&e&&(n=fR(n,hR,"")),n}},gR={start:vR(1),end:vR(2),trim:vR(3)},yR=kN.PROPER,mR=gR.trim;function bR(e){return 0===Bp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function wR(e){return 0===e.length?"":e[0].outerHTML}function xR(e){return e.length?e[0].tagName.toLowerCase():""}function ER(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}iL({target:"String",proto:!0,forced:RF((function(){return!!lR.trim()||"
"!=="
".trim()||yR&&"trim"!==lR.trim.name}))},{trim:function(){return mR(this)}}),iL({global:!0},{globalThis:IF}),Zp&&(Bp.fn.css=Zp),Xp&&(Bp.fn.append=Xp),Jp&&(Bp.fn.prepend=Jp),_p&&(Bp.fn.addClass=_p),Pp&&(Bp.fn.removeClass=Pp),Fp&&(Bp.fn.hasClass=Fp),Rp&&(Bp.fn.on=Rp),Mp&&(Bp.fn.off=Mp),sh&&(Bp.fn.focus=sh),jp&&(Bp.fn.attr=jp),Np&&(Bp.fn.removeAttr=Np),Vp&&(Bp.fn.hide=Vp),Up&&(Bp.fn.show=Up),eh&&(Bp.fn.parents=eh),Lp&&(Bp.fn.dataset=Lp),Ip&&(Bp.fn.val=Ip),Kp&&(Bp.fn.text=Kp),qp&&(Bp.fn.html=qp),nh&&(Bp.fn.children=nh),rh&&(Bp.fn.remove=rh),th&&(Bp.fn.find=th),zp&&(Bp.fn.width=zp),Hp&&(Bp.fn.height=Hp),Gp&&(Bp.fn.filter=Gp),oh&&(Bp.fn.empty=oh);var SR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},CR=function(e,t){return CR=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])},CR(e,t)
|
|
80
|
+
var PD=function(e,t){return PD=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])},PD(e,t)};function FD(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}PD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jD=function(){return jD=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},jD.apply(this,arguments)};function ND(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function LD(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||t-- >0)&&!(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 ID(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var RD=0,MD=function(){this.id=""+RD++},zD=vx.set,HD=vx.getterFor("Array Iterator"),$D=wC(Array,"Array",(function(e,t){zD(this,{type:"Array Iterator",target:hE(e),index:0,kind:t})}),(function(){var e=HD(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");AS.Arguments=AS.Array,hS("keys"),hS("values"),hS("entries");var VD=function(e,t,n){for(var r in t)wx(e,r,t[r],n);return e},UD=Mb.Array,ZD=Math.max,WD=function(e,t,n){for(var r=Vx(e),o=bE(t,r),i=bE(void 0===n?r:n,r),a=UD(ZD(i-o,0)),u=0;o<i;o++,u++)_S(a,u,e[o]);return a.length=u,a},GD=AE.f,qD="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],KD={f:function(e){return qD&&"Window"==Sx(e)?function(e){try{return GD(e)}catch(e){return WD(qD)}}(e):GD(hE(e))}},YD=hw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),XD=Object.isExtensible,JD=hw((function(){XD(1)}))||YD?function(e){return!!Dw(e)&&(!YD||"ArrayBuffer"!=Sx(e))&&(!XD||XD(e))}:XD,QD=!hw((function(){return Object.isExtensible(Object.preventExtensions({}))})),eO=Nb((function(e){var t=Kw.f,n=!1,r=ow("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=AE.f,t=qb([].splice),o={};o[r]=1,e(o).length&&(AE.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},zE({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:KD.f}))},fastKey:function(e,t){if(!Dw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!ew(e,r)){if(!JD(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!ew(e,r)){if(!JD(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return QD&&n&&JD(e)&&!ew(e,r)&&i(e),e}};ux[r]=!0})),tO=Mb.TypeError,nO=function(e,t){this.stopped=e,this.result=t},rO=nO.prototype,oO=function(e,t,n){var r,o,i,a,u,s,c,l=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=jx(t,l),v=function(e){return r&&DS(r,"normal",e),new nO(!0,e)},g=function(e){return f?(Pw(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=FS(e)))throw tO(Mw(e)+" is not iterable");if(BS(o)){for(i=0,a=Vx(e);a>i;i++)if((u=g(e[i]))&&Nw(rO,u))return u;return new nO(!1)}r=NS(e,o)}for(s=r.next;!(c=jw(s,r)).done;){try{u=g(c.value)}catch(e){DS(r,"throw",e)}if("object"==typeof u&&u&&Nw(rO,u))return u}return new nO(!1)},iO=Mb.TypeError,aO=function(e,t){if(Nw(t,e))return e;throw iO("Incorrect invocation")},uO=function(e,t,n){var r,o;return pC&&iw(r=t.constructor)&&r!==n&&Dw(o=r.prototype)&&o!==n.prototype&&pC(e,o),e},sO=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Mb[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=qb(u[e]);wx(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Dw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Dw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(RE(e,!iw(a)||!(o||u.forEach&&!hw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),eO.enable();else if(RE(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=hw((function(){f.has(1)})),h=HS((function(e){new a(e)})),v=!o&&hw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){aO(e,u);var n=uO(new a,e,s);return null!=t&&oO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,zE({global:!0,forced:s!=a},c),sC(s,e),o||n.setStrong(s,e,r),s},cO=eO.getWeakData,lO=vx.set,fO=vx.getterFor,dO=oE.find,pO=oE.findIndex,hO=qb([].splice),vO=0,gO=function(e){return e.frozen||(e.frozen=new yO)},yO=function(){this.entries=[]},mO=function(e,t){return dO(e.entries,(function(e){return e[0]===t}))};yO.prototype={get:function(e){var t=mO(this,e);if(t)return t[1]},has:function(e){return!!mO(this,e)},set:function(e,t){var n=mO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=pO(this.entries,(function(t){return t[0]===e}));return~t&&hO(this.entries,t,1),!!~t}};var bO,wO={getConstructor:function(e,t,n,r){var o=e((function(e,o){aO(e,i),lO(e,{type:t,id:vO++,frozen:void 0}),null!=o&&oO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=fO(t),u=function(e,t,n){var r=a(e),o=cO(Pw(t),!0);return!0===o?gO(r).set(t,n):o[r.id]=n,e};return VD(i,{delete:function(e){var t=a(this);if(!Dw(e))return!1;var n=cO(e);return!0===n?gO(t).delete(e):n&&ew(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Dw(e))return!1;var n=cO(e);return!0===n?gO(t).has(e):n&&ew(n,t.id)}}),VD(i,n?{get:function(e){var t=a(this);if(Dw(e)){var n=cO(e);return!0===n?gO(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xO=vx.enforce,EO=!Mb.ActiveXObject&&"ActiveXObject"in Mb,SO=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},CO=sO("WeakMap",SO,wO);if(ox&&EO){bO=wO.getConstructor(SO,"WeakMap",!0),eO.enable();var DO=CO.prototype,OO=qb(DO.delete),AO=qb(DO.has),kO=qb(DO.get),TO=qb(DO.set);VD(DO,{delete:function(e){if(Dw(e)&&!JD(e)){var t=xO(this);return t.frozen||(t.frozen=new bO),OO(this,e)||t.frozen.delete(e)}return OO(this,e)},has:function(e){if(Dw(e)&&!JD(e)){var t=xO(this);return t.frozen||(t.frozen=new bO),AO(this,e)||t.frozen.has(e)}return AO(this,e)},get:function(e){if(Dw(e)&&!JD(e)){var t=xO(this);return t.frozen||(t.frozen=new bO),AO(this,e)?kO(this,e):t.frozen.get(e)}return kO(this,e)},set:function(e,t){if(Dw(e)&&!JD(e)){var n=xO(this);n.frozen||(n.frozen=new bO),AO(this,e)?TO(this,e,t):n.frozen.set(e,t)}else TO(this,e,t);return this}})}var BO=xw("iterator"),_O=xw("toStringTag"),PO=$D.values,FO=function(e,t){if(e){if(e[BO]!==PO)try{Xw(e,BO,PO)}catch(t){e[BO]=PO}if(e[_O]||Xw(e,_O,t),Tx[t])for(var n in $D)if(e[n]!==$D[n])try{Xw(e,n,$D[n])}catch(t){e[n]=$D[n]}}};for(var jO in Tx)FO(Mb[jO]&&Mb[jO].prototype,jO);FO(Px,"DOMTokenList");var NO=new WeakMap,LO=new WeakMap,IO=new WeakMap,RO=new WeakMap,MO=new WeakMap,zO=new WeakMap,HO=new WeakMap,$O=new WeakMap,VO=new WeakMap,UO=new WeakMap,ZO=new WeakMap,WO=new WeakMap,GO=new WeakMap,qO=new WeakMap,KO=new WeakMap,YO=new WeakMap,XO=new WeakMap,JO=new WeakMap,QO=new WeakMap,eA=new WeakMap,tA=new WeakMap,nA=new WeakMap,rA=new WeakMap,oA=new WeakMap,iA=new WeakMap,aA=oE.find,uA=!0;"find"in[]&&Array(1).find((function(){uA=!1})),zE({target:"Array",proto:!0,forced:uA},{find:function(e){return aA(this,e,arguments.length>1?arguments[1]:void 0)}}),hS("find"),zE({global:!0},{globalThis:Mb});const sA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Zp&&(Bp.fn.css=Zp),Xp&&(Bp.fn.append=Xp),_p&&(Bp.fn.addClass=_p),Pp&&(Bp.fn.removeClass=Pp),Fp&&(Bp.fn.hasClass=Fp),Rp&&(Bp.fn.on=Rp),sh&&(Bp.fn.focus=sh),jp&&(Bp.fn.attr=jp),Np&&(Bp.fn.removeAttr=Np),Vp&&(Bp.fn.hide=Vp),Up&&(Bp.fn.show=Up),$p&&(Bp.fn.offset=$p),zp&&(Bp.fn.width=zp),Hp&&(Bp.fn.height=Hp),Qp&&(Bp.fn.parent=Qp),eh&&(Bp.fn.parents=eh),Yp&&(Bp.fn.is=Yp),Lp&&(Bp.fn.dataset=Lp),Ip&&(Bp.fn.val=Ip),Kp&&(Bp.fn.text=Kp),qp&&(Bp.fn.html=qp),nh&&(Bp.fn.children=nh),rh&&(Bp.fn.remove=rh),th&&(Bp.fn.find=th),Wp&&(Bp.fn.each=Wp),oh&&(Bp.fn.empty=oh);var cA,lA,fA=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},dA=function(e){return pA(e)&&1===e.nodeType},pA=function(e){var t=fA(e);return!!t&&e instanceof t.Node},hA=function(e){var t=e&&e.anchorNode&&fA(e.anchorNode);return!!t&&e instanceof t.Selection},vA=function(e){return pA(e)&&3===e.nodeType},gA=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},yA=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(pA(r=i)&&8===r.nodeType||dA(i)&&0===i.childNodes.length||dA(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]},mA=function(e,t,n){return LD(yA(e,t,n),1)[0]},bA=function e(t){var n,r,o="";if(vA(t)&&t.nodeValue)return t.nodeValue;if(dA(t)){try{for(var i=ND(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function wA(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||wA(o,t)}}function xA(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==cA.ELEMENT_NODE?"":t.tagName.toLowerCase()}(lA=cA||(cA={}))[lA.ELEMENT_NODE=1]="ELEMENT_NODE",lA[lA.TEXT_NODE=3]="TEXT_NODE",lA[lA.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",lA[lA.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",lA[lA.COMMENT_NODE=8]="COMMENT_NODE",lA[lA.DOCUMENT_NODE=9]="DOCUMENT_NODE",lA[lA.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",lA[lA.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var EA="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),SA="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var CA="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),DA="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),OA="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),AA="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var kA=!OA&&!DA&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,TA={getWindow:function(e){var t=tA.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=eA.get(t);return n||(n=new MD,eA.set(t,n)),n},setNewKey:function(e){var t=new MD;eA.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=KO.get(r);if(null==o){if(kf.isEditor(r))return n;break}var i=qO.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){if(e.isDestroyed)return window.document;var t=TA.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return KO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=TA.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[TA.findPath(e,t)[0]];return Ff.get(e,n)},toDOMNode:function(e,t){var n;if(kf.isEditor(t))n=YO.get(e);else{var r=TA.findKey(e,t);n=JO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=TA.toDOMNode(e,e);try{r=dA(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]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Zf.isBackward(t),i=TA.toDOMPoint(e,n),a=Zf.isCollapsed(t)?i:TA.toDOMPoint(e,r),u=TA.getWindow(e).document.createRange(),s=LD(o?a:i,2),c=s[0],l=s[1],f=LD(o?i:a,2),d=f[0],p=f[1],h=!!(dA(c)?c:c.parentElement).getAttribute("data-slate-zero-width"),v=!!(dA(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(c,h?1:l),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=LD(kf.node(e,t.path),1)[0],a=TA.toDOMNode(e,i);kf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var c=ND(u),l=c.next();!l.done;l=c.next()){var f=l.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=dA(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?XO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=TA.toSlateNode(e,t.target),u=TA.findPath(e,a);if(kf.isVoid(e,a)){var s=o.getBoundingClientRect(),c=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,l=kf.point(e,u,{edge:c?"start":"end"}),f=c?kf.before(e,l):kf.after(e,l);if(f)return kf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return TA.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,c=n.suppressThrow;if((hA(t)?t.anchorNode:t.startContainer)&&(hA(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=AA&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var l=TA.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:c});if(!l)return null;var f=u?l:TA.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:c});if(!f)return null;var d={anchor:l,focus:f};return Zf.isExpanded(d)&&Zf.isForward(d)&&dA(i)&&kf.void(e,{at:d.focus,mode:"highest"})&&(d=kf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=LD(o?t:function(e){var t,n=LD(e,2),r=n[0],o=n[1];if(dA(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=LD(yA(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;dA(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=mA(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],c=u.parentNode,l=null,f=0;if(c){var d=c.closest('[data-slate-void="true"]'),p=c.closest("[data-slate-leaf]"),h=null;if(p){l=p.closest('[data-slate-node="text"]');var v=TA.getWindow(e).document.createRange();v.setStart(l,0),v.setEnd(u,s);var g=v.cloneContents();ID(ID([],LD(gp(g.querySelectorAll("[data-slate-zero-width]")))),LD(gp(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.textContent.length,h=l}else d&&((p=d.querySelector("[data-slate-leaf]"))?(l=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(c.hasAttribute("data-slate-zero-width")||SA&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!l){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=TA.toSlateNode(e,l);return{path:TA.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return kf.hasPath(e,n.path)&&kf.hasPath(e,r.path)},getNodeType:function(e){return Ef.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Ff.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=kf.nodes(e,{universal:!0});try{for(var i=ND(o),a=i.next();!a.done;a=i.next()){var u=LD(a.value,1)[0];Ef.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,r=LD(kf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=LD(kf.nodes(e,{match:function(e){return Jf.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=LD(kf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&LD(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(kf.isEnd(e,n.anchor,t)||kf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=NO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return RO.get(e)||null},getHoverbar:function(e){return zO.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=TA.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=ND(Array.from(a)),s=u.next();!s.done;s=u.next()){var c=s.value;if(3!==c.nodeType)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var l=kf.nodes(e,{match:function(t){return!(!Ef.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=ND(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];wA(TA.toDOMNode(e,h),(function(e,t){var n=Bp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=kf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=ND(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Zf.isExpanded(t))return!1;var n=TA.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=kf.node(e,t);if(null==n)return!1;var r=LD(n,1)[0].children;return 1===r.length&&""===r[0].text}},BA=1,_A={},PA={},FA=oE.filter,jA=NC("filter");zE({target:"Array",proto:!0,forced:!jA},{filter:function(e){return FA(this,e,arguments.length>1?arguments[1]:void 0)}});var NA="\t\n\v\f\r \u2028\u2029\ufeff",LA=qb("".replace),IA="["+NA+"]",RA=RegExp("^"+IA+IA+"*"),MA=RegExp(IA+IA+"*$"),zA=function(e){return function(t){var n=KE(Yb(t));return 1&e&&(n=LA(n,RA,"")),2&e&&(n=LA(n,MA,"")),n}},HA={start:zA(1),end:zA(2),trim:zA(3)},$A=bx.PROPER,VA=HA.trim;zE({target:"String",proto:!0,forced:function(e){return hw((function(){return!!NA[e]()||"
"!=="
"[e]()||$A&&NA[e].name!==e}))}("trim")},{trim:function(){return VA(this)}});var UA=[],ZA={};function WA(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var GA,qA,KA,YA,XA=Mb.Promise,JA=xw("species"),QA=function(e){var t=uw(e),n=Kw.f;Cw&&t&&!t[JA]&&n(t,JA,{configurable:!0,get:function(){return this}})},ek=Mb.TypeError,tk=xw("species"),nk=function(e,t){var n,r=Pw(e).constructor;return void 0===r||null==(n=Pw(r)[tk])?t:function(e){if(Jx(e))return e;throw ek(Mw(e)+" is not a constructor")}(n)},rk=qb([].slice),ok=/(?:ipad|iphone|ipod).*applewebkit/i.test(sw),ik="process"==Sx(Mb.process),ak=Mb.setImmediate,uk=Mb.clearImmediate,sk=Mb.process,ck=Mb.Dispatch,lk=Mb.Function,fk=Mb.MessageChannel,dk=Mb.String,pk=0,hk={};try{GA=Mb.location}catch(lA){}var vk=function(e){if(ew(hk,e)){var t=hk[e];delete hk[e],t()}},gk=function(e){return function(){vk(e)}},yk=function(e){vk(e.data)},mk=function(e){Mb.postMessage(dk(e),GA.protocol+"//"+GA.host)};ak&&uk||(ak=function(e){var t=rk(arguments,1);return hk[++pk]=function(){sD(iw(e)?e:lk(e),void 0,t)},qA(pk),pk},uk=function(e){delete hk[e]},ik?qA=function(e){sk.nextTick(gk(e))}:ck&&ck.now?qA=function(e){ck.now(gk(e))}:fk&&!ok?(YA=(KA=new fk).port2,KA.port1.onmessage=yk,qA=jx(YA.postMessage,YA)):Mb.addEventListener&&iw(Mb.postMessage)&&!Mb.importScripts&&GA&&"file:"!==GA.protocol&&!hw(mk)?(qA=mk,Mb.addEventListener("message",yk,!1)):qA="onreadystatechange"in kw("script")?function(e){iS.appendChild(kw("script")).onreadystatechange=function(){iS.removeChild(this),vk(e)}}:function(e){setTimeout(gk(e),0)});var bk,wk,xk,Ek,Sk,Ck,Dk,Ok,Ak={set:ak,clear:uk},kk=/ipad|iphone|ipod/i.test(sw)&&void 0!==Mb.Pebble,Tk=/web0s(?!.*chrome)/i.test(sw),Bk=gE.f,_k=Ak.set,Pk=Mb.MutationObserver||Mb.WebKitMutationObserver,Fk=Mb.document,jk=Mb.process,Nk=Mb.Promise,Lk=Bk(Mb,"queueMicrotask"),Ik=Lk&&Lk.value;Ik||(bk=function(){var e,t;for(ik&&(e=jk.domain)&&e.exit();wk;){t=wk.fn,wk=wk.next;try{t()}catch(e){throw wk?Ek():xk=void 0,e}}xk=void 0,e&&e.enter()},ok||ik||Tk||!Pk||!Fk?!kk&&Nk&&Nk.resolve?((Dk=Nk.resolve(void 0)).constructor=Nk,Ok=jx(Dk.then,Dk),Ek=function(){Ok(bk)}):ik?Ek=function(){jk.nextTick(bk)}:(_k=jx(_k,Mb),Ek=function(){_k(bk)}):(Sk=!0,Ck=Fk.createTextNode(""),new Pk(bk).observe(Ck,{characterData:!0}),Ek=function(){Ck.data=Sk=!Sk}));var Rk,Mk,zk,Hk,$k=Ik||function(e){var t={fn:e,next:void 0};xk&&(xk.next=t),wk||(wk=t,Ek()),xk=t},Vk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Hw(t),this.reject=Hw(n)},Uk={f:function(e){return new Vk(e)}},Zk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Wk="object"==typeof window,Gk=Ak.set,qk=xw("species"),Kk="Promise",Yk=vx.getterFor(Kk),Xk=vx.set,Jk=vx.getterFor(Kk),Qk=XA&&XA.prototype,eT=XA,tT=Qk,nT=Mb.TypeError,rT=Mb.document,oT=Mb.process,iT=Uk.f,aT=iT,uT=!!(rT&&rT.createEvent&&Mb.dispatchEvent),sT=iw(Mb.PromiseRejectionEvent),cT=!1,lT=RE(Kk,(function(){var e=nx(eT),t=e!==String(eT);if(!t&&66===pw)return!0;if(pw>=51&&/native code/.test(e))return!1;var n=new eT((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[qk]=r,!(cT=n.then((function(){}))instanceof r)||!t&&Wk&&!sT})),fT=lT||!HS((function(e){eT.all(e).catch((function(){}))})),dT=function(e){var t;return!(!Dw(e)||!iw(t=e.then))&&t},pT=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;$k((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&yT(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(nT("Promise-chain cycle")):(u=dT(a))?jw(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&vT(e)}))}},hT=function(e,t,n){var r,o;uT?((r=rT.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Mb.dispatchEvent(r)):r={promise:t,reason:n},!sT&&(o=Mb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Mb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},vT=function(e){jw(Gk,Mb,(function(){var t,n=e.facade,r=e.value;if(gT(e)&&(t=Zk((function(){ik?oT.emit("unhandledRejection",r,n):hT("unhandledrejection",n,r)})),e.rejection=ik||gT(e)?2:1,t.error))throw t.value}))},gT=function(e){return 1!==e.rejection&&!e.parent},yT=function(e){jw(Gk,Mb,(function(){var t=e.facade;ik?oT.emit("rejectionHandled",t):hT("rejectionhandled",t,e.value)}))},mT=function(e,t,n){return function(r){e(t,r,n)}},bT=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,pT(e,!0))},wT=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw nT("Promise can't be resolved itself");var r=dT(t);r?$k((function(){var n={done:!1};try{jw(r,t,mT(wT,n,e),mT(bT,n,e))}catch(t){bT(n,t,e)}})):(e.value=t,e.state=1,pT(e,!1))}catch(t){bT({done:!1},t,e)}}};if(lT&&(tT=(eT=function(e){aO(this,tT),Hw(e),jw(Rk,this);var t=Yk(this);try{e(mT(wT,t),mT(bT,t))}catch(e){bT(t,e)}}).prototype,(Rk=function(e){Xk(this,{type:Kk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=VD(tT,{then:function(e,t){var n=Jk(this),r=n.reactions,o=iT(nk(this,eT));return o.ok=!iw(e)||e,o.fail=iw(t)&&t,o.domain=ik?oT.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&pT(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Mk=function(){var e=new Rk,t=Yk(e);this.promise=e,this.resolve=mT(wT,t),this.reject=mT(bT,t)},Uk.f=iT=function(e){return e===eT||e===zk?new Mk(e):aT(e)},iw(XA)&&Qk!==Object.prototype)){Hk=Qk.then,cT||(wx(Qk,"then",(function(e,t){var n=this;return new eT((function(e,t){jw(Hk,n,e,t)})).then(e,t)}),{unsafe:!0}),wx(Qk,"catch",tT.catch,{unsafe:!0}));try{delete Qk.constructor}catch(lA){}pC&&pC(Qk,tT)}zE({global:!0,wrap:!0,forced:lT},{Promise:eT}),sC(eT,Kk,!1),QA(Kk),zk=uw(Kk),zE({target:Kk,stat:!0,forced:lT},{reject:function(e){var t=iT(this);return jw(t.reject,void 0,e),t.promise}}),zE({target:Kk,stat:!0,forced:lT},{resolve:function(e){return function(e,t){if(Pw(e),Dw(t)&&t.constructor===e)return t;var n=Uk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),zE({target:Kk,stat:!0,forced:fT},{all:function(e){var t=this,n=iT(t),r=n.resolve,o=n.reject,i=Zk((function(){var n=Hw(t.resolve),i=[],a=0,u=1;oO(e,(function(e){var s=a++,c=!1;u++,jw(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=iT(t),r=n.reject,o=Zk((function(){var o=Hw(t.resolve);oO(e,(function(e){jw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var xT=HC.UNSUPPORTED_Y,ET=Math.min,ST=[].push,CT=qb(/./.exec),DT=qb(ST),OT=qb("".slice);function AT(e){Promise.resolve().then(e)}function kT(e,t){return Ef.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=kf.isVoid(t,e),u="";a||(u=i.map((function(e){return kT(e,t)})).join(""));var s=function(e){return ZA[e]||WA}(r),c=s(e,u,t),l="";if(l="string"==typeof c?c:c.html||"",a||UA.forEach((function(t){return l=t(e,l)})),"string"==typeof c)return l;var f=c.prefix,d=void 0===f?"":f,p=c.suffix,h=void 0===p?"":p;return d&&(l=d+l),h&&(l+=h),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=TA.getParentsNodes(t,e).some((function(e){return"pre"===TA.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=TA.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return UA.forEach((function(t){return r=t(e,r)})),r}(e,t)}function TT(e){return"w-e-element-"+e}fD("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=KE(Yb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!yS(e))return jw(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=jw(rD,f,r))&&!((a=f.lastIndex)>l&&(DT(s,OT(r,l,i.index)),i.length>1&&i.index<r.length&&sD(ST,s,WD(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&CT(f,"")||DT(s,""):DT(s,OT(r,l)),s.length>o?WD(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:jw(t,this,e,n)}:t,[function(t,n){var o=Yb(this),i=null==t?void 0:$w(t,e);return i?jw(i,t,o,n):jw(r,KE(o),t,n)},function(e,o){var i=Pw(this),a=KE(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=nk(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(xT?"g":"y"),f=new s(xT?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===ED(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=xT?0:h;var g,y=ED(f,xT?OT(a,h):a);if(null===y||(g=ET($x(f.lastIndex+(xT?h:0)),a.length))===p)h=pD(a,h,c);else{if(DT(v,OT(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(DT(v,y[m]),v.length===d)return v;h=p=g}}return DT(v,OT(a,p)),v}]}),!!hw((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),xT);var BT=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},_T=function(e,t,n){var r=TA.toDOMRange(e,t).getBoundingClientRect(),o=TA.toDOMRange(e,n).getBoundingClientRect();return BT(r,o)&&BT(o,r)},PT=["span","b","strong","i","em","s","strike","u","font","sub","sup"],FT=[],jT=[],NT={},LT=Kw.f,IT=AE.f,RT=vx.enforce,MT=xw("match"),zT=Mb.RegExp,HT=zT.prototype,$T=Mb.SyntaxError,VT=qb(YE),UT=qb(HT.exec),ZT=qb("".charAt),WT=qb("".replace),GT=qb("".indexOf),qT=qb("".slice),KT=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,YT=/a/g,XT=/a/g,JT=new zT(YT)!==YT,QT=HC.MISSED_STICKY,eB=HC.UNSUPPORTED_Y,tB=Cw&&(!JT||QT||VC||ZC||hw((function(){return XT[MT]=!1,zT(YT)!=YT||zT(XT)==XT||"/a/i"!=zT(YT,"i")})));if(RE("RegExp",tB)){for(var nB=function(e,t){var n,r,o,i,a,u,s=Nw(HT,this),c=yS(e),l=void 0===t,f=[],d=e;if(!s&&c&&l&&e.constructor===nB)return e;if((c||Nw(HT,e))&&(e=e.source,l&&(t="flags"in d?d.flags:VT(d))),e=void 0===e?"":KE(e),t=void 0===t?"":KE(t),d=e,VC&&"dotAll"in YT&&(r=!!t&>(t,"s")>-1)&&(t=WT(t,/s/g,"")),n=t,QT&&"sticky"in YT&&(o=!!t&>(t,"y")>-1)&&eB&&(t=WT(t,/y/g,"")),ZC&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,c=0,l="";r<=n;r++){if("\\"===(t=ZT(e,r)))t+=ZT(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:UT(KT,qT(e,r+1))&&(r+=2,s=!0),o+=t,c++;continue;case">"===t&&s:if(""===l||ew(a,l))throw new $T("Invalid capture group name");a[l]=!0,i[i.length]=[l,c],s=!1,l="";continue}s?l+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=uO(zT(e,t),s?this:HT,nB),(r||o||f.length)&&(u=RT(a),r&&(u.dotAll=!0,u.raw=nB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=ZT(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+ZT(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Xw(a,"source",""===d?"(?:)":d)}catch(e){}return a},rB=function(e){e in nB||LT(nB,e,{configurable:!0,get:function(){return zT[e]},set:function(t){zT[e]=t}})},oB=IT(zT),iB=0;oB.length>iB;)rB(oB[iB++]);HT.constructor=nB,nB.prototype=HT,wx(Mb,"RegExp",nB)}QA("RegExp");var aB=new RegExp(String.fromCharCode(160),"g");function uB(e){return e.replace(aB," ")}function sB(e,t){var n=e.length;if(n){var r=e[n-1];if(Jf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function cB(e,t,n){return{type:"paragraph",children:[{text:Bp(e).text().replace(/\s+/gm," ")}]}}function lB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==cA.ELEMENT_NODE)if(e.nodeType!==cA.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=uB(r),sB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(sB(n,"\n")||n.push({text:"\n"}));var o=dB(Bp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in NT)if(e[0].matches(t))return NT[t];return cB}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){kf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),jT.forEach((function(n){r=n(e[0],r,t)})))})),o}function fB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=uB(n)};return jT.forEach((function(n){r=n(e[0],r,t)})),r}function dB(e,t){FT.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Bp(r(e[0])))}));var n=xA(e);return"span"===n?e.attr("data-w-e-type")?lB(e,t):fB(e,t):"code"===n?"pre"===xA(e.parent())?lB(e,t):fB(e,t):PT.includes(n)?fB(e,t):lB(e,t)}function pB(e,t,n){var r=Bp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function hB(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Bp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=dB(Bp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var vB=Kw.f,gB=eO.fastKey,yB=vx.set,mB=vx.getterFor,bB={getConstructor:function(e,t,n,r){var o=e((function(e,o){aO(e,i),yB(e,{type:t,index:fS(null),first:void 0,last:void 0,size:0}),Cw||(e.size=0),null!=o&&oO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=mB(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=gB(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Cw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=gB(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return VD(i,{clear:function(){for(var e=a(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,Cw?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),Cw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=jx(e,arguments.length>1?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!!s(this,e)}}),VD(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),Cw&&vB(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=mB(t),i=mB(r);wC(e,t,(function(e,t){yB(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}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),QA(t)}};sO("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),bB);var wB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function xB(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):gd.insertNodes(e,t,{mode:"highest"})}var EB=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=LD(Zf.edges(n),2),o=r[0],i=r[1],a=kf.void(t,{at:o.path}),u=kf.void(t,{at:i.path});if(!Zf.isCollapsed(n)||a){var s=TA.toDOMRange(t,n),c=s.cloneContents(),l=c.childNodes[0];if(c.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(l=e)})),u){var f=LD(u,1)[0],d=s.cloneRange(),p=TA.toDOMNode(t,f);d.setEndAfter(p),c=d.cloneContents()}if(a&&(l=c.querySelector("[data-slate-spacer]")),Array.from(c.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),vA(l)){var h=l.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(l),c.appendChild(h),l=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));l.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=c.ownerDocument.createElement("div");return m.appendChild(c),m.setAttribute("hidden","true"),c.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",bA(m)),c.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),c=e.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(s){var l=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=ND(l),p=d.next();!p.done;p=d.next()){var h=p.value;f&&gd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},SB=function(e){return null!=e},CB={object:!0,function:!0,undefined:!0},DB=/^\s*class[\s{/}]/,OB=Function.prototype.toString,AB=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!SB(e)&&hasOwnProperty.call(CB,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!DB.test(OB.call(e))},kB=function(e){return null!=e},TB=Object.keys,BB=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return TB(kB(e)?Object(e):e)},_B=function(e){if(!kB(e))throw new TypeError("Cannot use null or undefined");return e},PB=Math.max,FB=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=PB(arguments.length,2);for(e=Object(_B(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)BB(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},jB=Array.prototype.forEach,NB=Object.create,LB=function(e,t){var n;for(n in e)t[n]=e[n]},IB=function(e){var t=NB(null);return jB.call(arguments,(function(e){kB(e)&&LB(Object(e),t)})),t},RB="razdwatrzy",MB=String.prototype.indexOf,zB="function"==typeof RB.contains&&!0===RB.contains("dwa")&&!1===RB.contains("foo")?String.prototype.contains:function(e){return MB.call(this,e,arguments[1])>-1},HB=Nb((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],SB(e)?(n=zB.call(e,"c"),r=zB.call(e,"e"),o=zB.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?FB(IB(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],SB(t)?AB(t)?SB(n)?AB(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,SB(e)?(r=zB.call(e,"c"),o=zB.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?FB(IB(i),a):a}})),$B=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},VB=Nb((function(e,t){var n,r,o,i,a,u,s,c=Function.prototype.apply,l=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return $B(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return $B(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),c.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if($B(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;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},i=function(e){var t,n,r,o,i;if(h.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)c.call(r,this,i)}else switch(arguments.length){case 1:l.call(o,this);break;case 2:l.call(o,this,arguments[1]);break;case 3:l.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];c.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:HB(n),once:HB(r),off:HB(o),emit:HB(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function UB(e){var t=oA.get(e);return null==t&&(t=VB(),oA.set(e,t)),t}var ZB=new WeakMap;function WB(e,t){var n=ZB.get(e);null==n&&(n=new Set,ZB.set(e,n)),n.add(t)}function GB(e){var t=TA.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function qB(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=GB(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=TA.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var c=s.height,l={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;l.right=p+5+"px"}else l.left=d+5+"px";if(f>u/2){var h=u-f;l.bottom=h+5+"px"}else{var v=f+c;v<0&&(v=0),l.top=v+5+"px"}return l}function KB(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Ef.isElement(t)&&e.isVoid(t),i=Ef.isElement(t)&&e.isInline(t),a=QO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,c=u.left,l=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(sA.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,l=p.height}}var h=GB(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,w={},x=s-g,E=c-y;if("bar"===n)return w.left=E+"px",x>40?w.bottom=b-x+5+"px":w.top=x+l+5+"px",w;if("modal"===n)return o?i?E>(m-f)/2?w.right=m-E+5+"px":w.left=E+f+5+"px":w.left="20px":w.left=E+"px",o?((v=x)<0&&(v=0),w.top=v+"px"):x>(b-l)/2?w.bottom=b-x+5+"px":((v=x+l)<0&&(v=0),w.top=v+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function YB(e,t){AT((function(){var n=GB(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),c=s.top,l=s.left,f=t.width(),d=t.height(),p=c-o,h=l-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&c<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(c);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-r;x<0&&(x=0),t.css("left",x+"px")}if(v.indexOf("right")>=0&&l<0){var E=t.css("right"),S=parseInt(E.toString())-Math.abs(l);t.css("right",S+"px")}}}))}var XB=NC("slice"),JB=xw("species"),QB=Mb.Array,e_=Math.max;zE({target:"Array",proto:!0,forced:!XB},{slice:function(e,t){var n,r,o,i=hE(this),a=Vx(i),u=bE(e,a),s=bE(void 0===t?a:t,a);if(Ux(i)&&(n=i.constructor,(Jx(n)&&(n===QB||Ux(n.prototype))||Dw(n)&&null===(n=n[JB]))&&(n=void 0),n===QB||void 0===n))return rk(i,u,s);for(r=new(void 0===n?QB:n)(e_(s-u,0)),o=0;u<s;u++,o++)u in i&&_S(r,o,i[u]);return r.length=o,r}});var t_=gE.f,n_=qb("".startsWith),r_=qb("".slice),o_=Math.min,i_=xS("startsWith"),a_=!i_&&!!function(){var e=t_(String.prototype,"startsWith");return e&&!e.writable}();zE({target:"String",proto:!0,forced:!a_&&!i_},{startsWith:function(e){var t=KE(Yb(this));bS(e);var n=$x(o_(arguments.length>1?arguments[1]:void 0,t.length)),r=KE(e);return n_?n_(t,r,n):r_(t,n,n+r.length)===r}});var u_=Object.assign,s_=Object.defineProperty,c_=qb([].concat),l_=!u_||hw((function(){if(Cw&&1!==u_({b:1},u_(s_({},"a",{enumerable:!0,get:function(){s_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u_({},e)[n]||HE(u_({},t)).join("")!=r}))?function(e,t){for(var n=Jb(e),r=arguments.length,o=1,i=kE.f,a=pE.f;r>o;)for(var u,s=Ix(arguments[o++]),c=i?c_(HE(s),i(s)):HE(s),l=c.length,f=0;l>f;)u=c[f++],Cw&&!jw(a,s,u)||(n[u]=s[u]);return n}:u_;zE({target:"Object",stat:!0,forced:Object.assign!==l_},{assign:l_});var f_=["props","attrs","style","dataset","on","hook"];function d_(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!f_.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=ug(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&d_(e)}))}var p_=[],h_={};function v_(e,t,n){return xv(n.isInline(e)?"span":"div",null,t)}function g_(e,t){return void 0===t&&(t=!1),xv("span",{"data-slate-string":!0},t?e+"\n":e)}function y_(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),xv("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?xv("br",null):null)}function m_(e,t,n,r){return qO.set(e,t),KO.set(e,n),Ef.isElement(e)?function(e,t){var n,r=TA.findKey(t,e),o=t.isInline(e),i=kf.isVoid(t,e),a=TT(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,c=e.children,l=void 0===c?[]:c,f=function(e){return h_[e]||v_}(s);n=i?null:l.map((function(n,r){return m_(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=LD(Ff.texts(e),1),v=LD(h[0],1)[0],g=xv(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},m_(v,0,e,t));d=xv(p,{style:{position:"relative"}},d,g),qO.set(v,0),KO.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return p_.forEach((function(r){n=r(e,t)})),n}(e,d)),AT((function(){var t=gA(a);null!=t&&(JO.set(r,t),QO.set(e,t),XO.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=TA.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=TA.findPath(n,e),a=o([e,i]),u=Jf.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=TA.findPath(o,n),u=If.parent(a);if(kf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?y_(Ff.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==kf.string(o,u)?""===i?y_():t&&"\n"===i.slice(-1)?g_(i,!0):g_(i):y_(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return p_.forEach((function(t){n=t(e,n)})),n}(r,i),xv("span",{"data-slate-leaf":!0},i)})),c=function(e){return"w-e-text-"+e}(r.id),l=xv("span",{"data-slate-node":"text",id:c,key:r.id},s);return AT((function(){var t=gA(c);null!=t&&(JO.set(r,t),QO.set(e,t),XO.set(t,e))})),l}(e,n,r)}function b_(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),tv("div#"+e,{props:{contentEditable:!t}})}(o,a),c=t.children||[];s.children=c.map((function(e,n){var r=m_(e,n,t,t);return d_(r),r}));var l=ZO.get(e);if(null==l&&(l=!0),l){var f=function(e,t){return Bp('<div\n id="'+e+'"\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>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Qh([iv,hv,bv,sv,dv,rv]))(n,s),ZO.set(e,!1),WO.set(e,p)}else{var d=GO.get(e),p=WO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=gA(o))){if((l?u:t.isFocused())&&n.focus({preventScroll:!0}),l){var h=fA(n);h&&tA.set(t,h)}YO.set(t,n),QO.set(t,n),XO.set(n,t),GO.set(e,s)}}function w_(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function x_(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function E_(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return x_(n.overflowY,t)||x_(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function S_(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function C_(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!w_(e))throw new TypeError("Invalid target");for(var c=document.scrollingElement||document.documentElement,l=[],f=e;w_(f)&&s(f);){if((f=f.parentElement)===c){l.push(f);break}null!=f&&f===document.body&&E_(f)&&!E_(document.documentElement)||null!=f&&E_(f,u)&&l.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,w=g.right,x=g.bottom,E=g.left,S="start"===o||"nearest"===o?b:"end"===o?x:b+y/2,C="center"===i?E+m/2:"end"===i?w:E,D=[],O=0;O<l.length;O++){var A=l[O],k=A.getBoundingClientRect(),T=k.height,B=k.width,_=k.top,P=k.right,F=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&E>=0&&x<=p&&w<=d&&b>=_&&x<=F&&E>=j&&w<=P)return D;var N=getComputedStyle(A),L=parseInt(N.borderLeftWidth,10),I=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,H=0,$="offsetWidth"in A?A.offsetWidth-A.clientWidth-L-R:0,V="offsetHeight"in A?A.offsetHeight-A.clientHeight-I-M:0;if(c===A)z="start"===o?S:"end"===o?S-p:"nearest"===o?S_(v,v+p,p,I,M,v+S,v+S+y,y):S-p/2,H="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:S_(h,h+d,d,L,R,h+C,h+C+m,m),z=Math.max(0,z+v),H=Math.max(0,H+h);else{z="start"===o?S-_-I:"end"===o?S-F+M+V:"nearest"===o?S_(_,F,T,I,M+V,S,S+y,y):S-(_+T/2)+V/2,H="start"===i?C-j-L:"center"===i?C-(j+B/2)+$/2:"end"===i?C-P+R+$:S_(j,P,B,L,R+$,C,C+m,m);var U=A.scrollLeft,Z=A.scrollTop;S+=Z-(z=Math.max(0,Math.min(Z+z,A.scrollHeight-T+V))),C+=U-(H=Math.max(0,Math.min(U+H,A.scrollWidth-B+$)))}D.push({el:A,top:z,left:H})}return D}function D_(e){return e===Object(e)&&0!==Object.keys(e).length}function O_(e,t){return pA(t)&&TA.hasDOMNode(e,t,{editable:!0})}function A_(e,t){if(e.getConfig().readOnly)return!1;var n=k_(e,t)&&TA.toSlateNode(e,t);return kf.isVoid(e,n)}function k_(e,t){return pA(t)&&TA.hasDOMNode(e,t)}function T_(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=TA.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=YO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var c=TA.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(c&&Zf.equals(c,r)){var l=!0;if(Zf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(l=!1),(h=p[d-1])&&h.matches("table")&&(l=!1)}}if(l)return}}if(!r||TA.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&TA.toDOMRange(t,r);if(v){Zf.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(D_(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:C_(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:D_(e)?e:{block:"start",inline:"nearest"}}(t);!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(C_(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&SA&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=TA.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var B_=new WeakMap,__=new WeakMap,P_={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"},F_={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"},j_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},N_=function(e){var t=P_[e],n=F_[e],r=j_[e],o=t&&yg(t),i=n&&yg(n),a=r&&yg(r);return function(e){return!(!o||!o(e))||!!(EA&&i&&i(e))||!(EA||!a||!a(e))}},L_={isBold:N_("bold"),isCompose:N_("compose"),isMoveBackward:N_("moveBackward"),isMoveForward:N_("moveForward"),isDeleteBackward:N_("deleteBackward"),isDeleteForward:N_("deleteForward"),isDeleteLineBackward:N_("deleteLineBackward"),isDeleteLineForward:N_("deleteLineForward"),isDeleteWordBackward:N_("deleteWordBackward"),isDeleteWordForward:N_("deleteWordForward"),isExtendBackward:N_("extendBackward"),isExtendForward:N_("extendForward"),isExtendLineBackward:N_("extendLineBackward"),isExtendLineForward:N_("extendLineForward"),isItalic:N_("italic"),isMoveLineBackward:N_("moveLineBackward"),isMoveLineForward:N_("moveLineForward"),isMoveWordBackward:N_("moveWordBackward"),isMoveWordForward:N_("moveWordForward"),isRedo:N_("redo"),isSplitBlock:N_("splitBlock"),isTransposeCharacter:N_("transposeCharacter"),isUndo:N_("undo"),isTab:N_("tab"),isSelectAll:N_("selectAll")};function I_(e){e.preventDefault()}var R_={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(kA&&!o&&O_(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=LD(r.getTargetRanges(),1)[0];if(s){var c=TA.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Zf.equals(i,c)||gd.select(n,c)}}if(i&&Zf.isExpanded(i)&&a.startsWith("delete")){var l=a.endsWith("Backward")?"backward":"forward";kf.deleteFragment(n,{direction:l})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":kf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":kf.deleteForward(n);break;case"deleteContentBackward":kf.deleteBackward(n);break;case"deleteEntireSoftLine":kf.deleteBackward(n,{unit:"line"}),kf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":kf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":kf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":kf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":kf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":kf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":kf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":kf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!iA.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&kf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&O_(n,r.target)){var a=TA.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===TA.toDOMNode(n,n)||dA(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&pA(u)&&TA.hasDOMNode(n,u)){var s=TA.toSlateNode(n,u);if(Ef.isElement(s)&&!n.isVoid(s))return}if(CA){var c=a.getSelection();null==c||c.removeAllRanges()}nA.delete(n)}}}},focus:function(e,t,n){var r=TA.toDOMNode(n,n),o=TA.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,SA&&e.target!==r?r.focus():nA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&k_(n,e.target)&&pA(e.target)){var r=TA.toSlateNode(n,e.target),o=TA.findPath(n,r);if(kf.hasPath(n,o)&&Ff.get(n,o)===r){var i=kf.start(n,o),a=kf.end(n,o),u=kf.void(n,{at:i}),s=kf.void(n,{at:a});if(u&&s&&If.equals(u[1],s[1])){var c=kf.range(n,i);gd.select(n,c)}}}},compositionstart:function(e,t,n){if(O_(n,e.target)){var r=n.selection;if(r&&Zf.isExpanded(r)&&(kf.deleteFragment(n),Promise.resolve().then((function(){T_(t,n,!0)}))),r&&Zf.isCollapsed(r)){var o=TA.toDOMRange(n,r).startContainer,i=o.textContent||"";B_.set(n,i),__.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(O_(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(AA||SA)&&TA.cleanExposedTexNodeInSelectionBlock(n);for(var i=Zf.isBackward(o)?o.focus:o.anchor,a=LD(kf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=LD(kf.node(n,i.path.slice(0,u+1)),1)[0];if(Ef.isElement(s)&&((CA||SA)&&"link"===s.type||"code"===s.type)){TA.setNewKey(a);break}}var c=r.data;if(c){if(n.getConfig().maxLength){var l=TA.getLeftLengthOfMaxLength(n);l<c.length?(TA.toDOMRange(n,o).startContainer.textContent=B_.get(n)||"",l>0&&kf.insertText(n,c.slice(0,l)),t.changeViewState()):kf.insertText(n,c)}else kf.insertText(n,c);CA||setTimeout((function(){var e=n.selection;if(null!=e){var t=__.get(n);null!=t&&TA.toDOMRange(n,e).startContainer!==t&&(t.textContent=B_.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){O_(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&O_(n,r.target)){if(function(e,t){var n=RO.get(e),r=n&&n.getMenus(),o=zO.get(e),i=o&&o.getMenus(),a=jD(jD({},r),i);for(var u in a){var s=a[u],c=s.hotkey;if(c&&gg(c,t)&&!s.isDisabled(e)){var l=s.getValue(e);s.exec(e,l)}}}(n,r),L_.isTab(r))return I_(r),void n.handleTab();if(L_.isRedo(r))return I_(r),void("function"==typeof n.redo&&n.redo());if(L_.isUndo(r))return I_(r),void("function"==typeof n.undo&&n.undo());if(L_.isMoveLineBackward(r))return I_(r),void gd.move(n,{unit:"line",reverse:!0});if(L_.isMoveLineForward(r))return I_(r),void gd.move(n,{unit:"line"});if(L_.isExtendLineBackward(r))return I_(r),void gd.move(n,{unit:"line",edge:"focus",reverse:!0});if(L_.isExtendLineForward(r))return I_(r),void gd.move(n,{unit:"line",edge:"focus"});if(L_.isMoveBackward(r))return I_(r),void(o&&Zf.isCollapsed(o)?gd.move(n,{reverse:!0}):gd.collapse(n,{edge:"start"}));if(L_.isMoveForward(r))return I_(r),void(o&&Zf.isCollapsed(o)?gd.move(n):gd.collapse(n,{edge:"end"}));if(L_.isMoveWordBackward(r))return I_(r),o&&Zf.isExpanded(o)&&gd.collapse(n,{edge:"focus"}),void gd.move(n,{unit:"word",reverse:!0});if(L_.isMoveWordForward(r))return I_(r),o&&Zf.isExpanded(o)&&gd.collapse(n,{edge:"focus"}),void gd.move(n,{unit:"word"});if(L_.isSelectAll(r))return I_(r),void n.selectAll();if(kA){if((AA||CA)&&o&&(L_.isDeleteBackward(r)||L_.isDeleteForward(r))&&Zf.isCollapsed(o)){var i=Ff.parent(n,o.anchor.path);if(Ef.isElement(i)&&kf.isVoid(n,i)&&kf.isInline(n,i))return r.preventDefault(),void gd.delete(n,{unit:"block"})}}else{if(L_.isBold(r)||L_.isItalic(r)||L_.isTransposeCharacter(r))return void I_(r);if(L_.isSplitBlock(r))return I_(r),void kf.insertBreak(n);if(L_.isDeleteBackward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n));if(L_.isDeleteForward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n));if(L_.isDeleteLineBackward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n,{unit:"line"}));if(L_.isDeleteLineForward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n,{unit:"line"}));if(L_.isDeleteWordBackward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"backward"}):kf.deleteBackward(n,{unit:"word"}));if(L_.isDeleteWordForward(r))return I_(r),void(o&&Zf.isExpanded(o)?kf.deleteFragment(n,{direction:"forward"}):kf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!kA&&!n.getConfig().readOnly&&O_(n,e.target)){e.preventDefault();var r=e.key;kf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(O_(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&O_(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Zf.isExpanded(o))kf.deleteFragment(n);else{var a=Ff.parent(n,o.anchor.path);kf.isVoid(n,a)&&gd.delete(n)}}},paste:function(e,t,n){iA.set(n,!0);var r=e;if(!n.getConfig().readOnly&&O_(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void iA.set(n,!1);if(!kA||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(k_(n,e.target)){var r=TA.toSlateNode(n,e.target);kf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(k_(n,r.target)&&!n.getConfig().readOnly){var o=TA.toSlateNode(n,r.target),i=TA.findPath(n,o);if(kf.isVoid(n,o)||kf.void(n,{at:i,voids:!0})){var a=kf.range(n,i);gd.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&k_(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&k_(n,r.target)&&null!=o&&!(kA&&CA&&o.files.length>0)){r.preventDefault();var i=n.selection,a=TA.findEventRange(n,r);gd.select(n,a),t.isDraggingInternally&&(i&&gd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},M_=1,z_=function(){function e(e){var t=this;this.id=M_++,this.$textArea=null,this.$progressBar=Bp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Bp('<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=$h((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=TA.findDocumentOrShadowRoot(t),a=i.activeElement,u=TA.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,nA.set(t,!0)):nA.delete(t),!s)return gd.deselect(t);var c=s.anchorNode,l=s.focusNode,f=O_(t,c)||A_(t,c),d=O_(t,l)||A_(t,l);if(f&&d){var p=TA.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});gd.select(t,p)}else gd.deselect(t)}}(t,e)}),100);var n=Bp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Bp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Bp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,AT((function(){var e=t.editorInstance,n=TA.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=LO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Dh(R_,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",$h((function(){r.emit("scroll")}),100))))},e.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}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-TA.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;b_(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Bp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),AT((function(){T_(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function H_(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&H_(t)}function $_(){return Bp('<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 V_(){return Bp('<div class="w-e-bar-divider"></div>')}function U_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=EA?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}fD("match",(function(e,t,n){return[function(t){var n=Yb(this),r=null==t?void 0:$w(t,e);return r?jw(r,t,n):new RegExp(t)[e](KE(n))},function(e){var r=Pw(this),o=KE(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return ED(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=ED(r,o));){var l=KE(u[0]);s[c]=l,""===l&&(r.lastIndex=pD(o,$x(r.lastIndex),a)),c++}return 0===c?null:s}]}));var Z_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Bp('<div class="w-e-bar-item"></div>'),this.$button=Bp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,c=t.iconSvg,l=void 0===c?"":c,f=this.$button;if(l){var d=Bp(l);H_(d),f.append(d)}else f.text(a);U_(f,l,a,s,n),n&&l&&f.append(Bp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),AT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),oP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=oP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=oP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=oP(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),W_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return FD(t,e),t.prototype.onButtonClick=function(){},t}(Z_),G_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=$O.get(e);null==t&&(t=new Set,$O.set(e,t)),t.add(this),VO.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=VO.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=VO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),q_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Bp('<div class="w-e-drop-panel"></div>'),n}return FD(t,e),t.prototype.genSelfElem=function(){return null},t}(G_),K_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=$_();o.$button.append(i)}return o}return FD(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=oP(this);if(null==this.dropPanel){var n=new q_(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(Z_),Y_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Bp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return FD(t,e),t.prototype.genSelfElem=function(){var e=this,t=Bp('<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=VO.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(G_);function X_(e,t,n){var r=Bp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Bp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function J_(e,t){var n=Bp('<div class="button-container"></div>'),r=Bp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var Q_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Bp("body"),o.modal=null,o.menu=n,o}return FD(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=oP(this),t=this.menu.getModalPositionNode(e);return Ef.isElement(t)?KB(e,t,"modal"):qB(e)},t.prototype.handleModal=function(){var e=oP(this),t=this.menu;if(null==this.modal){var n=new Y_(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=oP(this),r=this.menu;if(null!=r.getModalContentElem){var o=TA.getTextarea(n),i=TA.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||YB(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(Z_),eP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Bp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return FD(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Bp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Bp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Bp('<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>');a.append(u),a.addClass("selected")}a.append(Bp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(G_),tP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Bp('<div class="w-e-bar-item"></div>'),this.$button=Bp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,c=t.hotkey,l=void 0===c?"":c;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),U_(f,s,i,l,n),this.$elem.append(f),this.menu=t,AT((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),oP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=oP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new eP(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Bp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=oP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=oP(this),t=this.menu,n=t.getValue(e),r=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()),o=this.$button,i=$_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=oP(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),nP=function(){function e(e){this.$elem=Bp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Bp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Bp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Bp(n);H_(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=$_();i.append(u),o.append(i);var s=this.$container;o.append(s);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Bp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),rP=new WeakMap;function oP(e){var t=HO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function iP(e,t,n){void 0===n&&(n=!1);var r=rP.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new K_(e,t,n):a?new Q_(e,t,n):new W_(e,t,n)}if("select"===o&&(r=new tP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return rP.set(t,r),r}function aP(e,t){var n=e.selection;return null!=n&&!Zf.isCollapsed(n)&&!TA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Jf.isText(t)}var uP=function(){function e(){var e=this;this.$elem=Bp('<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=Fg((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Ef.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),AT((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),TA.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.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},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;AT((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=V_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=PA[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}var i=iP(e,r);this.hoverbarItems.push(i),HO.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Ef.isElement(e)){var r=KB(t,e,"bar");return n.css(r),void YB(t,n)}if(Jf.isText(e))return r=qB(t),n.css(r),void YB(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,c=a||function(e,t){return TA.checkNodeType(t,o)},l=LD(kf.nodes(e,{match:function(t){return c(e,t)},universal:!0}),1),f=l[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=MO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=aP),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=TA.findPath(null,e),r=TA.findPath(null,t);return If.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function sP(e,t,n,r){if(qO.set(e,t),KO.set(e,n),Ef.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return sP(t,n,e,r)})),kf.isVoid(r,e)){var i=LD(Ff.texts(e),1),a=LD(i[0],1)[0];qO.set(a,0),KO.set(a,e)}}}function cP(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];GE.withoutSaving(t,(()=>{kf.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];GE.withoutSaving(t,(()=>{kf.withoutNormalizing(t,(()=>{var e=r.map(Lf.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),c=GE.isSaving(t),l=GE.isMerging(t);if(null==c&&(c=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),c){if(null==l&&(l=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!If.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!If.equals(e.path,t.path)))(e,u)||s)),a&&l)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=TA.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=TA.getLeftLengthOfMaxLength(t);n<=0||n<Ff.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(TA.getLeftLengthOfMaxLength(t)<Ff.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=TA.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===cA.TEXT_NODE?e+(t.textContent||""):n===cA.ELEMENT_NODE?wB.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=UB(t);if(r.on(e,n),"destroyed"===e&&WB(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),WB(t,o)}},t.once=function(e,n){UB(t).once(e,n)},t.off=function(e,n){UB(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=UB(t);o.emit.apply(o,ID([e],LD(n))),"destroyed"===e&&(function(e){return ZB.get(e)||new Set}(t).forEach((function(e){return o.off("destroyed",e)})),function(e){ZB.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){gd.select(t,e)},t.deselect=function(){var n=t.selection,r=TA.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&gd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||gd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=rA.get(t);null!=e&&(t.focus(),gd.select(t,e))},t.getSelectionPosition=function(){return qB(t)},t.getNodePosition=function(e){return KB(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=LD(Zf.edges(e),2),r=n[0],o=n[1],i=LD(kf.edges(t,[]),2),a=i[0],u=i[1];return!(!Hf.equals(r,a)||!Hf.equals(o,u))},t.selectAll=function(){var e=kf.start(t,[]),n=kf.end(t,[]);gd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,c,l,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=ND(kf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=LD(p.value,2),v=h[0],g=h[1],y=TA.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=ND(kf.levels(t,{at:If.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=LD(b.value,2);v=w[0],g=w[1],y=TA.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var x=ND(kf.levels(t,{at:If.common(If.parent(e.path),If.parent(e.newPath))})),E=x.next();!E.done;E=x.next()){var S=LD(E.value,2);v=S[0],g=S[1],y=TA.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{E&&!E.done&&(s=x.return)&&s.call(x)}finally{if(u)throw u.error}}}o(e);try{for(var C=ND(f),D=C.next();!D.done;D=C.next()){var O=LD(D.value,2);g=O[0],y=O[1],v=LD(kf.node(t,g),1)[0],eA.set(v,y)}}catch(e){c={error:e}}finally{try{D&&!D.done&&(l=C.return)&&l.call(C)}finally{if(c)throw c.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Zf.isCollapsed(e.selection)){var r=kf.above(e,{match:function(t){return kf.isBlock(e,t)},at:e.selection});if(r){var o=LD(r,2)[1],a=kf.range(e,o,e.selection.anchor),u=function(e,t){var n=kf.range(e,Zf.end(t)),r=Array.from(kf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(_T(e,kf.range(e,r[o]),n))return kf.range(e,r[o],n);if(r.length<2)return kf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)_T(e,kf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return kf.range(e,r[i],n)}(t,a);Zf.isCollapsed(u)||gd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&rA.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return kT(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Ff.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":kf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=kf.nodes(t,{at:[],universal:!0});try{for(var u=ND(a),s=u.next();!s.done;s=u.next()){var c=LD(s.value,1)[0];if(Ef.isElement(c)&&(n?c.type.indexOf(e)>=0:c.type===e)){var l=TT(TA.findKey(t,c).id);i.push(jD(jD({},c),{id:l}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Ef.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Jf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){gd.delete(t,{at:{anchor:kf.start(t,[]),focus:kf.end(t,[])}}),0===t.children.length&&gd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return TA.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===cA.TEXT_NODE||t===cA.ELEMENT_NODE&&!wB.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;TA.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==cA.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(PT.includes(r.toLowerCase()))s=!0;else for(var c in NT)if(a.matches(c)){s=!0;break}if(s){var l=dB(Bp(a),t);return Array.isArray(l)?(l.forEach((function(e){return xB(t,e)})),u++):(xB(t,l),u++),void(TA.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;TA.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&TA.isEmptyPath(t,a)&&gd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=hB(t,e);if(gd.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(kf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in PA)e.push(t);return e},t.getConfig=function(){var e=UO.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=EB(Ul());return t.id="wangEditor-"+BA++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(TA.toDOMNode(t,t).focus({preventScroll:!0}),nA.set(t,!0),e){var n=kf.end(t,[]);gd.select(t,n)}else{var r=rA.get(t);r?gd.select(t,r):gd.select(t,kf.start(t,[]))}},t.isFocused=function(){return!!nA.get(t)},t.blur=function(){TA.toDOMNode(t,t).blur(),gd.deselect(t),nA.set(t,!1)},t.updateView=function(){TA.getTextarea(t).changeViewState();var e=TA.getToolbar(t);e&&e.changeToolbarState();var n=TA.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=TA.getTextarea(t);e.destroy(),NO.delete(t),LO.delete(e);var n=TA.getToolbar(t);n&&(n.destroy(),RO.delete(t),IO.delete(n));var r=TA.getHoverbar(t);r&&(r.destroy(),zO.delete(t),MO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Bp("#"+e);if(0!==r.length){var o=r[0];if(!TA.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=TA.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,c=a.offset().top;u[0].scrollBy({top:s-c,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||TA.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=$O.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return TA.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=TA.getToolbar(t);n&&(e=n.$box);var r=TA.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[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 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=TA.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return TA.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return pB(e,"data-w-e-textarea",t)}(c,n))throw new Error("Repeated create editor by selector '"+n+"'");var l=function(e){void 0===e&&(e={});var t=jg(_A),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Dh(t,(function(e,t){n[t]=jD(jD({},e),o[t]||{})})),delete e.MENU_CONF,jD({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);UO.set(c,l);var f=l.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){c=e(c)})),null!=a&&(c.children=hB(c,a)),i&&i.length&&(c.children=i),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),TA.normalizeContent(c),n){var p=new z_(n);NO.set(c,p),LO.set(p,c),p.changeViewState(),AT((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new uP,MO.set(h,c),zO.set(c,h)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return sP(e,t,c,c)}));var v=l.onCreated,g=l.onDestroyed;return v&&c.on("created",(function(){return v(c)})),g&&c.on("destroyed",(function(){return g(c)})),AT((function(){return c.emit("created")})),c}var lP=NC("splice"),fP=Mb.TypeError,dP=Math.max,pP=Math.min;zE({target:"Array",proto:!0,forced:!lP},{splice:function(e,t){var n,r,o,i,a,u,s=Jb(this),c=Vx(s),l=bE(e,c),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=c-l):(n=f-2,r=pP(dP(zx(t),0),c-l)),c+n-r>9007199254740991)throw fP("Maximum allowed length exceeded");for(o=tE(s,r),i=0;i<r;i++)(a=l+i)in s&&_S(o,i,s[a]);if(o.length=r,n<r){for(i=l;i<c-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=c;i>c-r+n;i--)delete s[i-1]}else if(n>r)for(i=c-r;i>l;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+l]=arguments[i+2];return s.length=c-r+n,o}});var hP=function(){function e(e,t){var n=this;this.$toolbar=Bp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Fg((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Bp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),AT((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,c=void 0===s?[]:s,l=jg(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){l.splice(u.index+t,0,e)})));var f=l.filter((function(e){if("string"==typeof e){if(c.includes(e))return!1}else if(c.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=V_();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new nP(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof nP,o=this.menus,i=o[e];if(null==i){var a=PA[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+"'");var u=iP(e,i,r);this.toolbarItems.push(u),HO.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=IO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),vP=bx.EXISTS,gP=Kw.f,yP=Function.prototype,mP=qb(yP.toString),bP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wP=qb(bP.exec);function xP(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,c=e.meta,l=void 0===c?{}:c,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,x=e.onSuccess,E=void 0===x?function(e,t){}:x,S=e.onError,C=void 0===S?function(e,t,n){console.error(e.name+" upload error",t,n)}:S,D=e.onProgress,O=void 0===D?function(e){}:D;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=LD(e.split("#"),2),r=n[0],o=n[1],i=[];Dh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,l));var k=new cm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:l}).use(Fb,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{E(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||O(e)})),k.on("upload-error",(function(e,t,n){try{C(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{C(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function EP(e){return EP="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},EP(e)}function SP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){SP(e,t,n[t])}))}return e}function DP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OP(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 AP(e,t,n){return t&&OP(e.prototype,t),n&&OP(e,n),e}function kP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TP(e,t){if(t&&("object"===EP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kP(e)}function BP(e){return BP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BP(e)}function _P(e,t){return _P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_P(e,t)}function PP(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&&_P(e,t)}Cw&&!vP&&gP(yP,"name",{configurable:!0,get:function(){try{return wP(bP,mP(this))[1]}catch(e){return""}}});var FP={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)}},jP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};DP(this,e),this.init(t,n)}return AP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||FP,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(t){return new e(this.logger,CP({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),NP=function(){function e(){DP(this,e),this.observers={}}return AP(e,[{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(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function LP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function IP(e){return null==e?"":""+e}function RP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){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 MP(e,t,n){var r=RP(e,t,Object);r.obj[r.k]=n}function zP(e,t){var n=RP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function HP(e,t,n){var r=zP(e,n);return void 0!==r?r:zP(t,n)}function $P(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):$P(e[r],t[r],n):e[r]=t[r]);return e}function VP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var UP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ZP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return UP[e]})):e}var WP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function GP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var c=r.slice(i+a).join(n);return c?GP(s,c,n):void 0}o=o[r[i]]}return o}}var qP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return DP(this,t),n=TP(this,BP(t).call(this)),WP&&NP.call(kP(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return PP(t,NP),AP(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=zP(this.data,a);return u||!i||"string"!=typeof n?u:GP(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),MP(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=zP(this.data,a)||{};r?$P(u,n,o):u=CP({},u,n),MP(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?CP({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),KP={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}},YP={},XP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return DP(this,t),n=TP(this,BP(t).call(this)),WP&&NP.call(kP(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,kP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=jP.create("translator"),n}return PP(t,NP),AP(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==EP(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,c=s[s.length-1],l=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return c+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.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(v,h,CP({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,x=w?[]:{},E=w?g:v;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var C="".concat(E).concat(i).concat(S);x[S]=this.translate(C,CP({},n,{joinArrays:!1,ns:s})),x[S]===C&&(x[S]=h[S])}h=x}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,e,n,r));else{var D=!1,O=!1,A=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),T=A?this.pluralResolver.getSuffix(l,n.count):"",B=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&k&&(D=!0,h=B),this.isValidLookup(h)||(O=!0,h=u);var _=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:h,P=k&&B!==h&&this.options.updateMissing;if(O||D||P){if(this.logger.log(P?"updateKey":"missingKey",l,c,u,P?B:h),i){var F=this.resolve(u,CP({},n,{keySeparator:!1}));F&&F.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 j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var L=0;L<N.length;L++)j.push(N[L]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var I=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,c,t,P?r:_,P,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,c,t,P?r:_,P,n),o.emit("missingKey",e,c,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){I([e],u+t,n["defaultValue".concat(t)]||B)}))})):I(j,u,B))}h=this.extendTranslation(h,e,n,p,r),O&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(u)),(O||D)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(CP({},n,{interpolation:CP({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=CP({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),u){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=KP.handle(d,e,t,this.options&&this.options.postProcessPassResolved?CP({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!YP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(YP["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{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=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function JP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var QP=function(){function e(t){DP(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jP.create("languageUtils")}return AP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=JP(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()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=JP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=JP(n[2].toLowerCase()))),n.join("-")}return 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||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),eF=[{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}],tF={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},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:e>2&&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:e%10>=2&&(e%100<10||e%100>=20)?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||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&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||e>10)&&e%10==0?2:3)}};var nF=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};DP(this,e),this.languageUtils=t,this.options=n,this.logger=jP.create("pluralResolver"),this.rules=function(){var e={};return eF.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:tF[t.fc]}}))})),e}()}return AP(e,[{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){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),rF=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};DP(this,e),this.logger=jP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return AP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:ZP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?VP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?VP(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?VP(t.nestingPrefix):t.nestingPrefixEscaped||VP("$t("),this.nestingSuffix=t.nestingSuffix?VP(t.nestingSuffix):t.nestingSuffixEscaped||VP(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.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);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=HP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,CP({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(HP(t,s,a),c,n,CP({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=IP(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=CP({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=CP({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),s=l,c=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=IP(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,CP({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),oF=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return DP(this,t),o=TP(this,BP(t).call(this)),WP&&NP.call(kP(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=jP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return PP(t,NP),AP(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=RP(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?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)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.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(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&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,CP({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function iF(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 aF(){}var uF=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(DP(this,t),e=TP(this,BP(t).call(this)),WP&&NP.call(kP(e)),e.options=iF(n),e.services={},e.logger=jP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),TP(e,kP(e));setTimeout((function(){e.init(n,r)}),0)}return e}return PP(t,NP),AP(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("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=CP({},{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={};if("object"===EP(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===EP(e[2])||"object"===EP(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},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,iF(t)),this.format=this.options.interpolation.format,n||(n=aF),!this.options.isClone){this.modules.logger?jP.init(r(this.modules.logger),this.options):jP.init(null,this.options);var o=new QP(this.options);this.store=new qP(this.options.resources,this.options);var i=this.services;i.logger=jP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new nF(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new rF(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new oF(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new XP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[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){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=LP(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aF,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=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=LP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=aF),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)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");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&&KP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=LP();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==EP(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=CP({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{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 t=this,n=arguments.length>1&&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;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}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=LP();return this.options.ns?("string"==typeof e&&(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=LP();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["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))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aF,o=CP({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=CP({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new XP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),sF=new uF;function cF(e,t){sF.addResourceBundle(e,"translation",t,!0,!0)}sF.init({lng:"zh-CN",resources:{}});var lF=sF.t.bind(sF);cF("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),cF("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var fF=na?{}.toString:function(){return"[object "+aa(this)+"]"};na||Si(Object.prototype,"toString",fF,{unsafe:!0});var dF=Array.isArray||function(e){return"Array"==Zr(e)},pF=function(){},hF=[],vF=to("Reflect","construct"),gF=/^\s*(?:class|function)\b/,yF=$r(gF.exec),mF=!gF.exec(pF),bF=function(e){if(!Jr(e))return!1;try{return vF(pF,hF,e),!0}catch(e){return!1}},wF=!vF||Tr((function(){var e;return bF(bF.call)||!bF(Object)||!bF((function(){e=!0}))||e}))?function(e){if(!Jr(e))return!1;switch(aa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mF||!!yF(gF,ii(e))}:bF,xF=Lo("species"),EF=kr.Array,SF=function(e,t){return new(function(e){var t;return dF(e)&&(t=e.constructor,(wF(t)&&(t===EF||dF(t.prototype))||Qr(t)&&null===(t=t[xF]))&&(t=void 0)),void 0===t?EF:t}(e))(0===t?0:t)},CF=$r([].push),DF=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Do(s),v=qr(h),g=mu(c,l),y=Pi(v),m=0,b=f||SF,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:CF(w,d)}else switch(e){case 4:return!1;case 7:CF(w,d)}return i?-1:r||o?o:w}},OF=[DF(0),DF(1),DF(2),DF(3),DF(4),DF(5),DF(6),DF(7)][0],AF=function(e,t){var n=[].forEach;return!!n&&Tr((function(){n.call(null,(function(){throw 1}),1)}))}(),kF=AF?[].forEach:function(e){return OF(this,e,arguments.length>1?arguments[1]:void 0)},TF=function(e){if(e&&e.forEach!==kF)try{ei(e,"forEach",kF)}catch(t){e.forEach=kF}};for(var BF in ds)ds[BF]&&TF(kr[BF]&&kr[BF].prototype);TF(vs),cF("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"}}),cF("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:"待办"}});var _F={type:"paragraph",renderElem:function(e,t,n){return xv("p",null,t)}},PF="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function FF(e){var t={exports:{}};return e(t,t.exports),t.exports}var jF,NF,LF=function(e){return e&&e.Math==Math&&e},IF=LF("object"==typeof globalThis&&globalThis)||LF("object"==typeof window&&window)||LF("object"==typeof self&&self)||LF("object"==typeof PF&&PF)||function(){return this}()||Function("return this")(),RF=function(e){try{return!!e()}catch(e){return!0}},MF=!RF((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zF=Function.prototype.call,HF=zF.bind?zF.bind(zF):function(){return zF.apply(zF,arguments)},$F={}.propertyIsEnumerable,VF=Object.getOwnPropertyDescriptor,UF=VF&&!$F.call({1:2},1)?function(e){var t=VF(this,e);return!!t&&t.enumerable}:$F,ZF={f:UF},WF=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GF=Function.prototype,qF=GF.bind,KF=GF.call,YF=qF&&qF.bind(KF),XF=qF?function(e){return e&&YF(KF,e)}:function(e){return e&&function(){return KF.apply(e,arguments)}},JF=XF({}.toString),QF=XF("".slice),ej=function(e){return QF(JF(e),8,-1)},tj=IF.Object,nj=XF("".split),rj=RF((function(){return!tj("z").propertyIsEnumerable(0)}))?function(e){return"String"==ej(e)?nj(e,""):tj(e)}:tj,oj=IF.TypeError,ij=function(e){if(null==e)throw oj("Can't call method on "+e);return e},aj=function(e){return rj(ij(e))},uj=function(e){return"function"==typeof e},sj=function(e){return"object"==typeof e?null!==e:uj(e)},cj=function(e){return uj(e)?e:void 0},lj=function(e,t){return arguments.length<2?cj(IF[e]):IF[e]&&IF[e][t]},fj=XF({}.isPrototypeOf),dj=lj("navigator","userAgent")||"",pj=IF.process,hj=IF.Deno,vj=pj&&pj.versions||hj&&hj.version,gj=vj&&vj.v8;gj&&(NF=(jF=gj.split("."))[0]>0&&jF[0]<4?1:+(jF[0]+jF[1])),!NF&&dj&&(!(jF=dj.match(/Edge\/(\d+)/))||jF[1]>=74)&&(jF=dj.match(/Chrome\/(\d+)/))&&(NF=+jF[1]);var yj=NF,mj=!!Object.getOwnPropertySymbols&&!RF((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yj&&yj<41})),bj=mj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wj=IF.Object,xj=bj?function(e){return"symbol"==typeof e}:function(e){var t=lj("Symbol");return uj(t)&&fj(t.prototype,wj(e))},Ej=IF.String,Sj=function(e){try{return Ej(e)}catch(e){return"Object"}},Cj=IF.TypeError,Dj=function(e){if(uj(e))return e;throw Cj(Sj(e)+" is not a function")},Oj=function(e,t){var n=e[t];return null==n?void 0:Dj(n)},Aj=IF.TypeError,kj=Object.defineProperty,Tj=function(e,t){try{kj(IF,e,{value:t,configurable:!0,writable:!0})}catch(n){IF[e]=t}return t},Bj=IF["__core-js_shared__"]||Tj("__core-js_shared__",{}),_j=FF((function(e){(e.exports=function(e,t){return Bj[e]||(Bj[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Pj=IF.Object,Fj=function(e){return Pj(ij(e))},jj=XF({}.hasOwnProperty),Nj=Object.hasOwn||function(e,t){return jj(Fj(e),t)},Lj=0,Ij=Math.random(),Rj=XF(1..toString),Mj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Rj(++Lj+Ij,36)},zj=_j("wks"),Hj=IF.Symbol,$j=Hj&&Hj.for,Vj=bj?Hj:Hj&&Hj.withoutSetter||Mj,Uj=function(e){if(!Nj(zj,e)||!mj&&"string"!=typeof zj[e]){var t="Symbol."+e;mj&&Nj(Hj,e)?zj[e]=Hj[e]:zj[e]=bj&&$j?$j(t):Vj(t)}return zj[e]},Zj=IF.TypeError,Wj=Uj("toPrimitive"),Gj=function(e){var t=function(e,t){if(!sj(e)||xj(e))return e;var n,r=Oj(e,Wj);if(r){if(void 0===t&&(t="default"),n=HF(r,e,t),!sj(n)||xj(n))return n;throw Zj("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&uj(n=e.toString)&&!sj(r=HF(n,e)))return r;if(uj(n=e.valueOf)&&!sj(r=HF(n,e)))return r;if("string"!==t&&uj(n=e.toString)&&!sj(r=HF(n,e)))return r;throw Aj("Can't convert object to primitive value")}(e,t)}(e,"string");return xj(t)?t:t+""},qj=IF.document,Kj=sj(qj)&&sj(qj.createElement),Yj=function(e){return Kj?qj.createElement(e):{}},Xj=!MF&&!RF((function(){return 7!=Object.defineProperty(Yj("div"),"a",{get:function(){return 7}}).a})),Jj=Object.getOwnPropertyDescriptor,Qj={f:MF?Jj:function(e,t){if(e=aj(e),t=Gj(t),Xj)try{return Jj(e,t)}catch(e){}if(Nj(e,t))return WF(!HF(ZF.f,e,t),e[t])}},eN=IF.String,tN=IF.TypeError,nN=function(e){if(sj(e))return e;throw tN(eN(e)+" is not an object")},rN=IF.TypeError,oN=Object.defineProperty,iN={f:MF?oN:function(e,t,n){if(nN(e),t=Gj(t),nN(n),Xj)try{return oN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw rN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},aN=MF?function(e,t,n){return iN.f(e,t,WF(1,n))}:function(e,t,n){return e[t]=n,e},uN=XF(Function.toString);uj(Bj.inspectSource)||(Bj.inspectSource=function(e){return uN(e)});var sN,cN,lN,fN=Bj.inspectSource,dN=IF.WeakMap,pN=uj(dN)&&/native code/.test(fN(dN)),hN=_j("keys"),vN=function(e){return hN[e]||(hN[e]=Mj(e))},gN={},yN=IF.TypeError,mN=IF.WeakMap;if(pN||Bj.state){var bN=Bj.state||(Bj.state=new mN),wN=XF(bN.get),xN=XF(bN.has),EN=XF(bN.set);sN=function(e,t){if(xN(bN,e))throw new yN("Object already initialized");return t.facade=e,EN(bN,e,t),t},cN=function(e){return wN(bN,e)||{}},lN=function(e){return xN(bN,e)}}else{var SN=vN("state");gN[SN]=!0,sN=function(e,t){if(Nj(e,SN))throw new yN("Object already initialized");return t.facade=e,aN(e,SN,t),t},cN=function(e){return Nj(e,SN)?e[SN]:{}},lN=function(e){return Nj(e,SN)}}var CN={set:sN,get:cN,has:lN,enforce:function(e){return lN(e)?cN(e):sN(e,{})},getterFor:function(e){return function(t){var n;if(!sj(t)||(n=cN(t)).type!==e)throw yN("Incompatible receiver, "+e+" required");return n}}},DN=Function.prototype,ON=MF&&Object.getOwnPropertyDescriptor,AN=Nj(DN,"name"),kN={EXISTS:AN,PROPER:AN&&"something"===function(){}.name,CONFIGURABLE:AN&&(!MF||MF&&ON(DN,"name").configurable)},TN=FF((function(e){var t=kN.CONFIGURABLE,n=CN.get,r=CN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;uj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nj(i,"name")||t&&i.name!==f)&&aN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==IF?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:aN(e,n,i)):c?e[n]=i:Tj(n,i)})(Function.prototype,"toString",(function(){return uj(this)&&n(this).source||fN(this)}))})),BN=Math.ceil,_N=Math.floor,PN=function(e){var t=+e;return t!=t||0===t?0:(t>0?_N:BN)(t)},FN=Math.max,jN=Math.min,NN=function(e,t){var n=PN(e);return n<0?FN(n+t,0):jN(n,t)},LN=Math.min,IN=function(e){return e>0?LN(PN(e),9007199254740991):0},RN=function(e){return IN(e.length)},MN=function(e){return function(t,n,r){var o,i=aj(t),a=RN(i),u=NN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},zN={includes:MN(!0),indexOf:MN(!1)},HN=zN.indexOf,$N=XF([].push),VN=function(e,t){var n,r=aj(e),o=0,i=[];for(n in r)!Nj(gN,n)&&Nj(r,n)&&$N(i,n);for(;t.length>o;)Nj(r,n=t[o++])&&(~HN(i,n)||$N(i,n));return i},UN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZN=UN.concat("length","prototype"),WN={f:Object.getOwnPropertyNames||function(e){return VN(e,ZN)}},GN={f:Object.getOwnPropertySymbols},qN=XF([].concat),KN=lj("Reflect","ownKeys")||function(e){var t=WN.f(nN(e)),n=GN.f;return n?qN(t,n(e)):t},YN=function(e,t){for(var n=KN(t),r=iN.f,o=Qj.f,i=0;i<n.length;i++){var a=n[i];Nj(e,a)||r(e,a,o(t,a))}},XN=/#|\.prototype\./,JN=function(e,t){var n=eL[QN(e)];return n==nL||n!=tL&&(uj(t)?RF(t):!!t)},QN=JN.normalize=function(e){return String(e).replace(XN,".").toLowerCase()},eL=JN.data={},tL=JN.NATIVE="N",nL=JN.POLYFILL="P",rL=JN,oL=Qj.f,iL=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?IF:c?IF[u]||Tj(u,{}):(IF[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=oL(n,r))&&a.value:n[r],!rL(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;YN(i,o)}(e.sham||o&&o.sham)&&aN(i,"sham",!0),TN(n,r,i,e)}},aL=XF(XF.bind),uL=Array.isArray||function(e){return"Array"==ej(e)},sL={};sL[Uj("toStringTag")]="z";var cL="[object z]"===String(sL),lL=Uj("toStringTag"),fL=IF.Object,dL="Arguments"==ej(function(){return arguments}()),pL=cL?ej:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=fL(e),lL))?n:dL?ej(t):"Object"==(r=ej(t))&&uj(t.callee)?"Arguments":r},hL=function(){},vL=[],gL=lj("Reflect","construct"),yL=/^\s*(?:class|function)\b/,mL=XF(yL.exec),bL=!yL.exec(hL),wL=function(e){if(!uj(e))return!1;try{return gL(hL,vL,e),!0}catch(e){return!1}},xL=!gL||RF((function(){var e;return wL(wL.call)||!wL(Object)||!wL((function(){e=!0}))||e}))?function(e){if(!uj(e))return!1;switch(pL(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bL||!!mL(yL,fN(e))}:wL,EL=Uj("species"),SL=IF.Array,CL=function(e,t){return new(function(e){var t;return uL(e)&&(t=e.constructor,(xL(t)&&(t===SL||uL(t.prototype))||sj(t)&&null===(t=t[EL]))&&(t=void 0)),void 0===t?SL:t}(e))(0===t?0:t)},DL=XF([].push),OL=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Fj(s),v=rj(h),g=function(e,t){return Dj(e),void 0===t?e:aL?aL(e,t):function(){return e.apply(t,arguments)}}(c,l),y=RN(v),m=0,b=f||CL,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:DL(w,d)}else switch(e){case 4:return!1;case 7:DL(w,d)}return i?-1:r||o?o:w}},AL={forEach:OL(0),map:OL(1),filter:OL(2),some:OL(3),every:OL(4),find:OL(5),findIndex:OL(6),filterReject:OL(7)},kL=Uj("species"),TL=function(e){return yj>=51||!RF((function(){var t=[];return(t.constructor={})[kL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},BL=AL.filter;iL({target:"Array",proto:!0,forced:!TL("filter")},{filter:function(e){return BL(this,e,arguments.length>1?arguments[1]:void 0)}});var _L=cL?{}.toString:function(){return"[object "+pL(this)+"]"};cL||TN(Object.prototype,"toString",_L,{unsafe:!0});var PL,FL=IF.String,jL=function(e){if("Symbol"===pL(e))throw TypeError("Cannot convert a Symbol value to a string");return FL(e)},NL=function(){var e=nN(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},LL=IF.RegExp,IL=RF((function(){var e=LL("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),RL=IL||RF((function(){return!LL("a","y").sticky})),ML={BROKEN_CARET:IL||RF((function(){var e=LL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:RL,UNSUPPORTED_Y:IL},zL=Object.keys||function(e){return VN(e,UN)},HL=MF?Object.defineProperties:function(e,t){nN(e);for(var n,r=aj(t),o=zL(t),i=o.length,a=0;i>a;)iN.f(e,n=o[a++],r[n]);return e},$L=lj("document","documentElement"),VL=vN("IE_PROTO"),UL=function(){},ZL=function(e){return"<script>"+e+"<\/script>"},WL=function(e){e.write(ZL("")),e.close();var t=e.parentWindow.Object;return e=null,t},GL=function(){try{PL=new ActiveXObject("htmlfile")}catch(e){}var e,t;GL="undefined"!=typeof document?document.domain&&PL?WL(PL):((t=Yj("iframe")).style.display="none",$L.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ZL("document.F=Object")),e.close(),e.F):WL(PL);for(var n=UN.length;n--;)delete GL.prototype[UN[n]];return GL()};gN[VL]=!0;var qL,KL,YL=Object.create||function(e,t){var n;return null!==e?(UL.prototype=nN(e),n=new UL,UL.prototype=null,n[VL]=e):n=GL(),void 0===t?n:HL(n,t)},XL=IF.RegExp,JL=RF((function(){var e=XL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),QL=IF.RegExp,eI=RF((function(){var e=QL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),tI=CN.get,nI=_j("native-string-replace",String.prototype.replace),rI=RegExp.prototype.exec,oI=rI,iI=XF("".charAt),aI=XF("".indexOf),uI=XF("".replace),sI=XF("".slice),cI=(KL=/b*/g,HF(rI,qL=/a/,"a"),HF(rI,KL,"a"),0!==qL.lastIndex||0!==KL.lastIndex),lI=ML.BROKEN_CARET,fI=void 0!==/()??/.exec("")[1];(cI||fI||lI||JL||eI)&&(oI=function(e){var t,n,r,o,i,a,u,s=this,c=tI(s),l=jL(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=HF(oI,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=lI&&s.sticky,h=HF(NL,s),v=s.source,g=0,y=l;if(p&&(h=uI(h,"y",""),-1===aI(h,"g")&&(h+="g"),y=sI(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==iI(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),fI&&(n=new RegExp("^"+v+"$(?!\\s)",h)),cI&&(r=s.lastIndex),o=HF(rI,p?n:s,y),p?o?(o.input=sI(o.input,g),o[0]=sI(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:cI&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),fI&&o&&o.length>1&&HF(nI,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=YL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var dI=oI;iL({target:"RegExp",proto:!0,forced:/./.exec!==dI},{exec:dI});var pI=Function.prototype,hI=pI.apply,vI=pI.bind,gI=pI.call,yI="object"==typeof Reflect&&Reflect.apply||(vI?gI.bind(hI):function(){return gI.apply(hI,arguments)}),mI=Uj("species"),bI=RegExp.prototype,wI=function(e,t,n,r){var o=Uj(e),i=!RF((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!RF((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[mI]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=XF(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=XF(e),s=t.exec;return s===dI||s===bI.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));TN(String.prototype,e,s[0]),TN(bI,o,s[1])}r&&aN(bI[o],"sham",!0)},xI=XF("".charAt),EI=XF("".charCodeAt),SI=XF("".slice),CI=function(e){return function(t,n){var r,o,i=jL(ij(t)),a=PN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=EI(i,a))<55296||r>56319||a+1===u||(o=EI(i,a+1))<56320||o>57343?e?xI(i,a):r:e?SI(i,a,a+2):o-56320+(r-55296<<10)+65536}},DI=(CI(!1),CI(!0)),OI=function(e,t,n){return t+(n?DI(e,t).length:1)},AI=Math.floor,kI=XF("".charAt),TI=XF("".replace),BI=XF("".slice),_I=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,PI=/\$([$&'`]|\d{1,2})/g,FI=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=PI;return void 0!==o&&(o=Fj(o),s=_I),TI(i,s,(function(i,s){var c;switch(kI(s,0)){case"$":return"$";case"&":return e;case"`":return BI(t,0,n);case"'":return BI(t,a);case"<":c=o[BI(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=AI(l/10);return 0===f?i:f<=u?void 0===r[f-1]?kI(s,1):r[f-1]+kI(s,1):i}c=r[l-1]}return void 0===c?"":c}))},jI=IF.TypeError,NI=function(e,t){var n=e.exec;if(uj(n)){var r=HF(n,e,t);return null!==r&&nN(r),r}if("RegExp"===ej(e))return HF(dI,e,t);throw jI("RegExp#exec called on incompatible receiver")},LI=Uj("replace"),II=Math.max,RI=Math.min,MI=XF([].concat),zI=XF([].push),HI=XF("".indexOf),$I=XF("".slice),VI="$0"==="a".replace(/./,"$0"),UI=!!/./[LI]&&""===/./[LI]("a","$0");wI("replace",(function(e,t,n){var r=UI?"$":"$0";return[function(e,n){var r=ij(this),o=null==e?void 0:Oj(e,LI);return o?HF(o,e,r,n):HF(t,jL(r),e,n)},function(e,o){var i=nN(this),a=jL(e);if("string"==typeof o&&-1===HI(o,r)&&-1===HI(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=uj(o);s||(o=jL(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=NI(i,a);if(null===d)break;if(zI(f,d),!c)break;""===jL(d[0])&&(i.lastIndex=OI(a,IN(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=jL((d=f[g])[0]),m=II(RI(PN(d.index),a.length),0),b=[],w=1;w<d.length;w++)zI(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=MI([y],b,m,a);void 0!==x&&zI(E,x);var S=jL(yI(o,void 0,E))}else S=FI(y,a,m,b,x,o);m>=v&&(h+=$I(a,v,m)+S,v=m+y.length)}return h+$I(a,v)}]}),!!RF((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!VI||UI);var ZI=Uj("unscopables"),WI=Array.prototype;null==WI[ZI]&&iN.f(WI,ZI,{configurable:!0,value:YL(null)});var GI=function(e){WI[ZI][e]=!0},qI=AL.find,KI=!0;"find"in[]&&Array(1).find((function(){KI=!1})),iL({target:"Array",proto:!0,forced:KI},{find:function(e){return qI(this,e,arguments.length>1?arguments[1]:void 0)}}),GI("find");var YI=Uj("match"),XI=function(e){var t;return sj(e)&&(void 0!==(t=e[YI])?!!t:"RegExp"==ej(e))},JI=IF.TypeError,QI=Uj("species"),eR=function(e,t,n){var r=Gj(t);r in e?iN.f(e,r,WF(0,n)):e[r]=n},tR=IF.Array,nR=Math.max,rR=function(e,t,n){for(var r=RN(e),o=NN(t,r),i=NN(void 0===n?r:n,r),a=tR(nR(i-o,0)),u=0;o<i;o++,u++)eR(a,u,e[o]);return a.length=u,a},oR=ML.UNSUPPORTED_Y,iR=Math.min,aR=[].push,uR=XF(/./.exec),sR=XF(aR),cR=XF("".slice);wI("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=jL(ij(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!XI(e))return HF(t,r,e,o);for(var i,a,u,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=HF(dI,f,r))&&!((a=f.lastIndex)>l&&(sR(s,cR(r,l,i.index)),i.length>1&&i.index<r.length&&yI(aR,s,rR(i,1)),u=i[0].length,l=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!u&&uR(f,"")||sR(s,""):sR(s,cR(r,l)),s.length>o?rR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:HF(t,this,e,n)}:t,[function(t,n){var o=ij(this),i=null==t?void 0:Oj(t,e);return i?HF(i,t,o,n):HF(r,jL(o),t,n)},function(e,o){var i=nN(this),a=jL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=nN(e).constructor;return void 0===r||null==(n=nN(r)[QI])?t:function(e){if(xL(e))return e;throw JI(Sj(e)+" is not a constructor")}(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(oR?"g":"y"),f=new s(oR?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===NI(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=oR?0:h;var g,y=NI(f,oR?cR(a,h):a);if(null===y||(g=iR(IN(f.lastIndex+(oR?h:0)),a.length))===p)h=OI(a,h,c);else{if(sR(v,cR(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(sR(v,y[m]),v.length===d)return v;h=p=g}}return sR(v,cR(a,p)),v}]}),!!RF((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),oR);var lR="\t\n\v\f\r \u2028\u2029\ufeff",fR=XF("".replace),dR="["+lR+"]",pR=RegExp("^"+dR+dR+"*"),hR=RegExp(dR+dR+"*$"),vR=function(e){return function(t){var n=jL(ij(t));return 1&e&&(n=fR(n,pR,"")),2&e&&(n=fR(n,hR,"")),n}},gR={start:vR(1),end:vR(2),trim:vR(3)},yR=kN.PROPER,mR=gR.trim;function bR(e){return 0===Bp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function wR(e){return 0===e.length?"":e[0].outerHTML}function xR(e){return e.length?e[0].tagName.toLowerCase():""}function ER(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}iL({target:"String",proto:!0,forced:RF((function(){return!!lR.trim()||"
"!=="
".trim()||yR&&"trim"!==lR.trim.name}))},{trim:function(){return mR(this)}}),iL({global:!0},{globalThis:IF}),Zp&&(Bp.fn.css=Zp),Xp&&(Bp.fn.append=Xp),Jp&&(Bp.fn.prepend=Jp),_p&&(Bp.fn.addClass=_p),Pp&&(Bp.fn.removeClass=Pp),Fp&&(Bp.fn.hasClass=Fp),Rp&&(Bp.fn.on=Rp),Mp&&(Bp.fn.off=Mp),sh&&(Bp.fn.focus=sh),jp&&(Bp.fn.attr=jp),Np&&(Bp.fn.removeAttr=Np),Vp&&(Bp.fn.hide=Vp),Up&&(Bp.fn.show=Up),eh&&(Bp.fn.parents=eh),Lp&&(Bp.fn.dataset=Lp),Ip&&(Bp.fn.val=Ip),Kp&&(Bp.fn.text=Kp),qp&&(Bp.fn.html=qp),nh&&(Bp.fn.children=nh),rh&&(Bp.fn.remove=rh),th&&(Bp.fn.find=th),zp&&(Bp.fn.width=zp),Hp&&(Bp.fn.height=Hp),Gp&&(Bp.fn.filter=Gp),oh&&(Bp.fn.empty=oh);var SR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},CR=function(e,t){return CR=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])},CR(e,t)
|
|
81
81
|
/*! *****************************************************************************
|
|
82
82
|
Copyright (c) Microsoft Corporation.
|
|
83
83
|
|
|
@@ -91,7 +91,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
91
91
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
92
92
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
93
93
|
PERFORMANCE OF THIS SOFTWARE.
|
|
94
|
-
***************************************************************************** */};function DR(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}CR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var OR=function(){return OR=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},OR.apply(this,arguments)};function AR(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function kR(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function TR(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function BR(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||t-- >0)&&!(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 _R(e){var t=BR(kf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Ef.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Ff.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Jf.isText(o[0])&&(gd.setNodes(e,{type:"paragraph"}),!0)}var PR={renderElems:[_F],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[SR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){_R(r)||t(e)},r.deleteForward=function(e){_R(r)||n(e)},r}},FR=/"/g,jR=XF("".replace),NR=function(e,t,n,r){var o=jL(ij(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+jR(jL(r),FR,""")+'"'),i+">"+o+"</"+t+">"},LR=function(e){return RF((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function IR(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function RR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}iL({target:"String",proto:!0,forced:LR("bold")},{bold:function(){return NR(this,"b","","")}}),iL({target:"String",proto:!0,forced:LR("italics")},{italics:function(){return NR(this,"i","","")}}),iL({target:"String",proto:!0,forced:LR("sub")},{sub:function(){return NR(this,"sub","","")}}),iL({target:"String",proto:!0,forced:LR("sup")},{sup:function(){return NR(this,"sup","","")}});var MR={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},zR=Yj("span").classList,HR=zR&&zR.constructor&&zR.constructor.prototype,$R=HR===Object.prototype?void 0:HR,VR=function(e,t){var n=[][e];return!!n&&RF((function(){n.call(null,t||function(){throw 1},1)}))},UR=AL.forEach,ZR=VR("forEach")?[].forEach:function(e){return UR(this,e,arguments.length>1?arguments[1]:void 0)},WR=function(e){if(e&&e.forEach!==ZR)try{aN(e,"forEach",ZR)}catch(t){e.forEach=ZR}};for(var GR in MR)MR[GR]&&WR(IF[GR]&&IF[GR].prototype);function qR(e,t){return null==e.selection||!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]}function KR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&kf.removeMark(e,t)}))}WR($R),iL({target:"Object",stat:!0,forced:RF((function(){zL(1)}))},{keys:function(e){return zL(Fj(e))}});var YR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=kf.marks(e);return n?n[t]:!!BR(kf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return qR(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),XR='<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>',JR='<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>',QR='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',eM='<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>',tM='<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>',nM='<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>',rM='<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>',oM='<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>',iM='<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>',aM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',uM='<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>',sM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',cM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',lM='<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>',fM='<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>',dM='<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>',pM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',hM='<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>',vM='<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>',gM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=lF("textStyle.bold"),t.iconSvg=XR,t.hotkey="mod+b",t}return DR(t,e),t}(YR),yM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=lF("textStyle.code"),t.iconSvg=tM,t.hotkey="mod+e",t}return DR(t,e),t}(YR),mM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=lF("textStyle.italic"),t.iconSvg=QR,t.hotkey="mod+i",t}return DR(t,e),t}(YR),bM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=lF("textStyle.through"),t.iconSvg=eM,t.hotkey="mod+shift+x",t}return DR(t,e),t}(YR),wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=lF("textStyle.underline"),t.iconSvg=JR,t.hotkey="mod+u",t}return DR(t,e),t}(YR),xM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=lF("textStyle.sub"),t.iconSvg=vM,t.hotkey="",t}return DR(t,e),t}(YR),EM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=lF("textStyle.sup"),t.iconSvg=hM,t.hotkey="",t}return DR(t,e),t}(YR),SM=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return qR(e)},e.prototype.exec=function(e,t){var n,r,o=kf.nodes(e,{match:function(e){return Jf.isText(e)},universal:!0});try{for(var i=TR(o),a=i.next();!a.done;a=i.next())KR(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}}},e}(),CM={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,c=n.sup,l=t;return r&&(l=xv("strong",null,l)),a&&(l=xv("code",null,l)),o&&(l=xv("em",null,l)),i&&(l=xv("u",null,l)),u&&(l=xv("s",null,l)),s&&(l=xv("sub",null,l)),c&&(l=xv("sup",null,l)),l},menus:[{key:"bold",factory:function(){return new gM}},{key:"underline",factory:function(){return new wM}},{key:"italic",factory:function(){return new mM}},{key:"through",factory:function(){return new bM}},{key:"code",factory:function(){return new yM}},{key:"sub",factory:function(){return new xM}},{key:"sup",factory:function(){return new EM}},{key:"clearStyle",factory:function(){return new SM}}],styleToHtml:function(e,t){if(!Jf.isText(e))return t;if(bR(t))return IR(e,t);var n=Bp(t);if("br"===xR(n))return IR(e,"<br>");var r=n.html();return r=IR(e,r),n.html(r),wR(n)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Jf.isText(t))return t;var o=t;return RR(r,"b,strong")&&(o.bold=!0),RR(r,"i,em")&&(o.italic=!0),RR(r,"u")&&(o.underline=!0),RR(r,"s,strike")&&(o.through=!0),RR(r,"sub")&&(o.sub=!0),RR(r,"sup")&&(o.sup=!0),RR(r,"code")&&(o.code=!0),o}};function DM(e){return function(t,n,r){return xv("h"+e,null,n)}}var OM={type:"header1",renderElem:DM(1)},AM={type:"header2",renderElem:DM(2)},kM={type:"header3",renderElem:DM(3)},TM={type:"header4",renderElem:DM(4)},BM={type:"header5",renderElem:DM(5)},_M=kN.PROPER,PM=RegExp.prototype,FM=PM.toString,jM=XF(NL),NM=RF((function(){return"/a/b"!=FM.call({source:"a",flags:"b"})})),LM=_M&&"toString"!=FM.name;(NM||LM)&&TN(RegExp.prototype,"toString",(function(){var e=nN(this),t=jL(e.source),n=e.flags;return"/"+t+"/"+jL(void 0===n&&fj(PM,e)&&!("flags"in PM)?jM(e):n)}),{unsafe:!0});var IM,RM=IF.TypeError,MM=function(e){if(XI(e))throw RM("The method doesn't accept regular expressions");return e},zM=Uj("match"),HM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[zM]=!1,"/./"[e](t)}catch(e){}}return!1},$M=Qj.f,VM=XF("".startsWith),UM=XF("".slice),ZM=Math.min,WM=HM("startsWith");function GM(e){var t=BR(kf.nodes(e,{match:function(e){return TA.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=BR(n,1)[0];return TA.getNodeType(r)}function qM(e){return null==e.selection||!BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function KM(e,t){t&&gd.setNodes(e,{type:t})}iL({target:"String",proto:!0,forced:!(!WM&&(IM=$M(String.prototype,"startsWith"),IM&&!IM.writable)||WM)},{startsWith:function(e){var t=jL(ij(this));MM(e);var n=IN(ZM(arguments.length>1?arguments[1]:void 0,t.length)),r=jL(e);return VM?VM(t,r,n):UM(t,n,n+r.length)===r}});var YM=function(){function e(){this.title=lF("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}return e.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:lF("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return GM(e)},e.prototype.isDisabled=function(e){return qM(e)},e.prototype.exec=function(e,t){KM(e,t.toString())},e}(),XM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return GM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return qM(e)},e.prototype.exec=function(e,t){var n=this.type;KM(e,t===n?"paragraph":n)},e}(),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return DR(t,e),t}(XM),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return DR(t,e),t}(XM),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return DR(t,e),t}(XM),tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return DR(t,e),t}(XM),nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return DR(t,e),t}(XM),rz={key:"headerSelect",factory:function(){return new YM}},oz={key:"header1",factory:function(){return new JM}},iz={key:"header2",factory:function(){return new QM}},az={key:"header3",factory:function(){return new ez}},uz={key:"header4",factory:function(){return new tz}},sz={key:"header5",factory:function(){return new nz}};function cz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function lz(e){return function(t,n,r){var o=Bp(t);return 0===(n=n.filter((function(e){return!!Jf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var fz={renderElems:[OM,AM,kM,TM,BM],elemsToHtml:[{type:"header1",elemToHtml:cz(1)},{type:"header2",elemToHtml:cz(2)},{type:"header3",elemToHtml:cz(3)},{type:"header4",elemToHtml:cz(4)},{type:"header5",elemToHtml:cz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:lz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:lz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:lz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:lz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:lz(5)}],menus:[rz,oz,iz,az,uz,sz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=BR(kf.nodes(n,{match:function(e){return TA.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&TA.isSelectionAtLineEnd(e,r[1])?gd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},dz=Object.assign,pz=Object.defineProperty,hz=XF([].concat),vz=!dz||RF((function(){if(MF&&1!==dz({b:1},dz(pz({},"a",{enumerable:!0,get:function(){pz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=dz({},e)[n]||zL(dz({},t)).join("")!=r}))?function(e,t){for(var n=Fj(e),r=arguments.length,o=1,i=GN.f,a=ZF.f;r>o;)for(var u,s=rj(arguments[o++]),c=i?hz(zL(s),i(s)):zL(s),l=c.length,f=0;l>f;)u=c[f++],MF&&!HF(a,s,u)||(n[u]=s[u]);return n}:dz;function gz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}iL({target:"Object",stat:!0,forced:Object.assign!==vz},{assign:vz});var yz={selector:"font",preParseHtml:function(e){var t=Bp(e);if("font"!==xR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},mz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=kf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Bp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Bp(r).attr("data-value");"0"===o?kf.removeMark(e,t):kf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Bp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Bp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=lF("color.default")),"bgColor"===t&&(a=lF("color.clear"));var u=Bp('\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 '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("color.color"),t.iconSvg=oM,t.mark="color",t}return DR(t,e),t}(mz),wz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("color.bgColor"),t.iconSvg=iM,t.mark="bgColor",t}return DR(t,e),t}(mz),xz=["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)"],Ez={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&gz(i,{color:r}),o&&gz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Jf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((bR(t)||"span"!==xR(n=Bp(t)))&&(n=Bp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),wR(n)):t},preParseHtml:[yz],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Jf.isText(t))return t;var o=t,i=ER(r,"color");i&&(o.color=i);var a=ER(r,"background-color");return a||(a=ER(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new bz},config:{colors:xz}},{key:"bgColor",factory:function(){return new wz},config:{colors:xz}}]},Sz=/^(?:\w+:)?\/\/(\S+)$/,Cz=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Dz=/^[^\s\.]+\.\S{2,}$/,Oz=zN.includes;function Az(e){return void 0===e&&(e="r"),e+"-"+Oh()}function kz(e){return e.replace(/</g,"<").replace(/>/g,">")}function Tz(e,t,n,r){return AR(this,void 0,void 0,(function(){var o,i;return kR(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Bz(e,t,n){return AR(this,void 0,void 0,(function(){var r;return kR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function _z(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Pz(e,t){return{type:"link",url:kz(e),children:t?[{text:t}]:[]}}function Fz(e,t,n){return AR(this,void 0,void 0,(function(){var r,o,i;return kR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),_z(e)?[2]:[4,Tz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Bz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Zf.isCollapsed(o)?(e.insertText(" "),i=Pz(r,t),gd.insertNodes(e,i),e.insertFragment([{text:" "}])):kf.string(e,o)!==t?(e.deleteFragment(),i=Pz(r,t),gd.insertNodes(e,i)):(i=Pz(r),gd.wrapNodes(e,i,{split:!0}),gd.collapse(e,{edge:"end"}))),[2]}}))}))}iL({target:"Array",proto:!0},{includes:function(e){return Oz(this,e,arguments.length>1?arguments[1]:void 0)}}),GI("includes");var jz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return xv("a",{href:o,target:void 0===i?"_blank":i},t)}},Nz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function Lz(){return Az("w-e-insert-link")}var Iz=function(){function e(){this.title=lF("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=Lz(),this.urlInputId=Lz(),this.buttonId=Lz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return _z(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=BR(X_(lF("link.text"),r),2),u=a[0],s=Bp(a[1]),c=BR(X_(lF("link.url"),o),2),l=c[0],f=Bp(c[1]),d=BR(J_(i,lF("common.ok")),1)[0];if(null==this.$content){var p=Bp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();Fz(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(l),h.append(d),null==t||Zf.isCollapsed(t))s.val("");else{var v=kf.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function Rz(){return Az("w-e-update-link")}var Mz=function(){function e(){this.title=lF("link.edit"),this.iconSvg=nM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Rz(),this.buttonId=Rz()}return e.prototype.getSelectedLinkElem=function(e){var t=TA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return TA.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=BR(X_(lF("link.url"),t),2),o=r[0],i=Bp(r[1]),a=BR(J_(n,lF("common.ok")),1)[0];if(null==this.$content){var u=Bp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=TA.getSelectedNodeByType(e,"link"),o=r?Ff.string(r):"",i=u.find("#"+t).val();!function(e,t,n){AR(this,void 0,void 0,(function(){var r,o;return kR(this,(function(i){switch(i.label){case 0:return n?[4,Tz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,Bz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:kz(r)},gd.setNodes(e,o,{match:function(e){return TA.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var c=this.getValue(e);return i.val(c),setTimeout((function(){i.focus()})),s[0]},e}(),zz=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==TA.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||gd.unwrapNodes(e,{match:function(e){return TA.checkNodeType(e,"link")}})},e}(),Hz=function(){function e(){this.title=lF("link.view"),this.iconSvg=rM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=TA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.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")}},e}(),$z={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Vz={renderElems:[jz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Nz],menus:[{key:"insertLink",factory:function(){return new Iz},config:$z},{key:"editLink",factory:function(){return new Mz},config:$z},{key:"unLink",factory:function(){return new zz}},{key:"viewLink",factory:function(){return new Hz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(Sz);if(!t)return!1;var n=t[1];return!(!n||!Cz.test(n)&&!Dz.test(n))}(t)){if(!_z(o)){var r=o.selection;if(null!=r){var i=kf.string(o,r);Fz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=BR(e,2),n=t[0],i=t[1];return"link"!==TA.getNodeType(n)?r([n,i]):""===Ff.string(n)?gd.removeNodes(o,{at:i}):r([n,i])},o}},Uz=XF(1..valueOf),Zz=IF.RangeError,Wz=IF.RangeError,Gz=IF.String,qz=Math.floor,Kz=XF((function(e){var t=jL(ij(this)),n="",r=PN(e);if(r<0||r==1/0)throw Zz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Yz=XF("".slice),Xz=XF(1..toFixed),Jz=function(e,t,n){return 0===t?n:t%2==1?Jz(e,t-1,n*e):Jz(e*e,t/2,n)},Qz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=qz(o/1e7)},eH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=qz(r/t),r=r%t*1e7},tH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Gz(e[t]);n=""===n?r:n+Kz("0",7-r.length)+r}return n};function nH(e,t){return"w-e-image-container-"+TA.findKey(e,t).id}iL({target:"Number",proto:!0,forced:RF((function(){return"0.000"!==Xz(8e-5,3)||"1"!==Xz(.9,0)||"1.25"!==Xz(1.255,2)||"1000000000000000128"!==Xz(0xde0b6b3a7640080,0)}))||!RF((function(){Xz({})}))},{toFixed:function(e){var t,n,r,o,i=Uz(this),a=PN(e),u=[0,0,0,0,0,0],s="",c="0";if(a<0||a>20)throw Wz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Gz(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Jz(2,69,1))-69)<0?i*Jz(2,-t,1):i/Jz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Qz(u,0,n),r=a;r>=7;)Qz(u,1e7,0),r-=7;for(Qz(u,Jz(10,r,1),0),r=t-1;r>=23;)eH(u,1<<23),r-=23;eH(u,1<<r),Qz(u,1,1),eH(u,2),c=tH(u)}else Qz(u,0,n),Qz(u,1<<-t,0),c=tH(u)+Kz("0",a);return a>0?s+((o=c.length)<=a?"0."+Kz("0",a-o)+c:Yz(c,0,o-a)+"."+Yz(c,o-a)):s+c}});var rH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,c=r.style,l=void 0===c?{}:c,f=l.width,d=void 0===f?"":f,p=l.height,h=void 0===p?"":p,v=TA.isNodeSelected(n,e),g={};d&&(g.width="100%"),h&&(g.height="100%");var y=xv("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Bp("body"),i=nH(e,t),a=r.width,u=r.height,s=0,c=0,l=0,f=!1,d=null;function p(t){d=function(){var e=Bp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");c=n.width(),l=n.height(),o.on("mousemove",h),o.on("mouseup",v);var r=TA.getHoverbar(e);r&&r.hideAndClean()}var h=$h((function(e){e.preventDefault();var t=e.clientX,n=c+(f?s-t:t-s),r=l*(n/c);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function v(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:OR(OR({},t.style),{width:r+"px",height:i+"px"})};gd.setNodes(e,a,{at:TA.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),xv("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Bp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,xv("div",{className:"w-e-image-dragger left-top"}),xv("div",{className:"w-e-image-dragger right-top"}),xv("div",{className:"w-e-image-dragger left-bottom"}),xv("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),xv("div",{id:nH(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},oH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:ER(r,"width"),height:ER(r,"height")},children:[{text:""}]}}};function iH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),AR(this,void 0,void 0,(function(){var i,a;return kR(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function aH(e,t,n){return AR(this,void 0,void 0,(function(){var r;return kR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function uH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),AR(this,void 0,void 0,(function(){var o,i,a;return kR(this,(function(u){switch(u.label){case 0:return[4,iH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,aH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:kz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),TA.getSelectedNodeByType(e,"image")&&e.move(1),sH(e)||(gd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function sH(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||!!BR(kf.nodes(e,{match:function(t){var n=TA.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!kf.isVoid(e,t)},universal:!0}),1)[0]}function cH(){return Az("w-e-insert-image")}var lH=function(){function e(){this.title=lF("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=cH(),this.altInputId=cH(),this.hrefInputId=cH(),this.buttonId=cH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return sH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=BR(X_(lF("image.src"),r),2),s=u[0],c=Bp(u[1]),l=BR(X_(lF("image.desc"),o),2),f=l[0],d=Bp(l[1]),p=BR(X_(lF("image.link"),i),2),h=p[0],v=Bp(p[1]),g=BR(J_(a,lF("common.ok")),1)[0];if(null==this.$content){var y=Bp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),c.val(""),d.val(""),v.val(""),setTimeout((function(){c.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||uH(e,t,n,r))},e}(),fH=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==TA.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||gd.removeNodes(e,{match:function(e){return TA.checkNodeType(e,"image")}})},e}();function dH(){return Az("w-e-edit-image")}var pH=function(){function e(){this.title=lF("image.edit"),this.iconSvg=nM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=dH(),this.altInputId=dH(),this.hrefInputId=dH(),this.buttonId=dH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return TA.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||null==TA.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=BR(X_(lF("image.src"),r),2),c=s[0],l=Bp(s[1]),f=BR(X_(lF("image.desc"),o),2),d=f[0],p=Bp(f[1]),h=BR(X_(lF("image.link"),i),2),v=h[0],g=Bp(h[1]),y=BR(J_(a,lF("common.ok")),1)[0];if(null==this.$content){var m=Bp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(c),b.append(d),b.append(v),b.append(y);var w=u,x=w.src,E=w.alt,S=void 0===E?"":E,C=w.href,D=void 0===C?"":C;return l.val(x),p.val(S),g.val(D),setTimeout((function(){l.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),AR(this,void 0,void 0,(function(){var i,a,u,s,c,l;return kR(this,(function(f){switch(f.label){case 0:return[4,iH("editImage",e,t,n,r)];case 1:return f.sent()?[4,aH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=TA.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:OR(OR({},void 0===u?{}:u),o)},gd.setNodes(e,s,{match:function(e){return TA.checkNodeType(e,"image")}}),c=TA.getSelectedNodeByType(e,"image"),(l=e.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}}))}))}(e,t,n,r,o))},e}(),hH=function(){function e(){this.title=lF("image.viewLink"),this.iconSvg=rM,this.tag="button"}return e.prototype.getValue=function(e){var t=TA.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.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")}},e}(),vH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return TA.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=TA.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:OR(OR({},void 0===o?{}:o),{width:this.value,height:""})};gd.setNodes(e,i,{match:function(e){return TA.checkNodeType(e,"image")}})}}},e}(),gH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return DR(t,e),t}(vH),yH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return DR(t,e),t}(vH),mH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return DR(t,e),t}(vH),bH={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},wH={renderElems:[rH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,c=void 0===s?{}:s,l=c.width,f=void 0===l?"":l,d=c.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[oH],menus:[{key:"insertImage",factory:function(){return new lH},config:bH},{key:"deleteImage",factory:function(){return new fH}},{key:"editImage",factory:function(){return new pH},config:bH},{key:"viewImageLink",factory:function(){return new hH}},{key:"imageWidth30",factory:function(){return new gH}},{key:"imageWidth50",factory:function(){return new yH}},{key:"imageWidth100",factory:function(){return new mH}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},xH={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=xv("div",{style:{margin:"5px 0"}},xv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},xv("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=TA.findPath(n,e),o={checked:t.target.checked};gd.setNodes(n,o,{at:r})}}})),xv("span",null,t));return o}},EH=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!TA.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);gd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),SH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Bp(e);0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},CH={renderElems:[xH],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 t=Bp(e).find("li"),n=Bp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[SH],menus:[{key:"todo",factory:function(){return new EH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Zf.isCollapsed(r)){var o=TA.getSelectedNodeByType(e,"todo");if(o&&0===Ff.string(o).length)return void gd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},DH={type:"blockquote",renderElem:function(e,t,n){return xv("blockquote",null,t)}},OH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},AH=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!TA.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";gd.setNodes(e,{type:n},{mode:"highest"})}},e}(),kH={key:"blockquote",factory:function(){return new AH}},TH=XF([].slice),BH=TL("slice"),_H=Uj("species"),PH=IF.Array,FH=Math.max;iL({target:"Array",proto:!0,forced:!BH},{slice:function(e,t){var n,r,o,i=aj(this),a=RN(i),u=NN(e,a),s=NN(void 0===t?a:t,a);if(uL(i)&&(n=i.constructor,(xL(n)&&(n===PH||uL(n.prototype))||sj(n)&&null===(n=n[_H]))&&(n=void 0),n===PH||void 0===n))return TH(i,u,s);for(r=new(void 0===n?PH:n)(FH(s-u,0)),o=0;u<s;u++,o++)u in i&&eR(r,o,i[u]);return r.length=o,r}});var jH={renderElems:[DH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[OH],menus:[kH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=BR(kf.nodes(e,{match:function(e){return TA.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=TA.findPath(e,a),s=kf.end(e,u);if(Hf.equals(s,o.focus)){var c=Ff.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void gd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},NH=function(){function e(){this.title=lF("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}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Bp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Bp(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Bp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),LH={menus:[{key:"emotion",factory:function(){return new NH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},IH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},RH={selector:"font",preParseHtml:function(e){var t=Bp(e);if("font"!==xR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",IH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},MH=XF("".indexOf);iL({target:"String",proto:!0,forced:!HM("includes")},{includes:function(e){return!!~MH(jL(ij(this)),jL(MM(e)),arguments.length>1?arguments[1]:void 0)}});var zH,HH,$H=function(e){return e&&e.Math==Math&&e},VH=$H("object"==typeof globalThis&&globalThis)||$H("object"==typeof window&&window)||$H("object"==typeof self&&self)||$H("object"==typeof PF&&PF)||function(){return this}()||Function("return this")(),UH=Function.prototype,ZH=UH.apply,WH=UH.bind,GH=UH.call,qH="object"==typeof Reflect&&Reflect.apply||(WH?GH.bind(ZH):function(){return GH.apply(ZH,arguments)}),KH=Function.prototype,YH=KH.bind,XH=KH.call,JH=YH&&YH.bind(XH),QH=YH?function(e){return e&&JH(XH,e)}:function(e){return e&&function(){return XH.apply(e,arguments)}},e$=function(e){return"function"==typeof e},t$=function(e){try{return!!e()}catch(e){return!0}},n$=!t$((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r$=Function.prototype.call,o$=r$.bind?r$.bind(r$):function(){return r$.apply(r$,arguments)},i$={}.propertyIsEnumerable,a$=Object.getOwnPropertyDescriptor,u$=a$&&!i$.call({1:2},1)?function(e){var t=a$(this,e);return!!t&&t.enumerable}:i$,s$={f:u$},c$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l$=QH({}.toString),f$=QH("".slice),d$=function(e){return f$(l$(e),8,-1)},p$=VH.Object,h$=QH("".split),v$=t$((function(){return!p$("z").propertyIsEnumerable(0)}))?function(e){return"String"==d$(e)?h$(e,""):p$(e)}:p$,g$=VH.TypeError,y$=function(e){if(null==e)throw g$("Can't call method on "+e);return e},m$=function(e){return v$(y$(e))},b$=function(e){return"object"==typeof e?null!==e:e$(e)},w$={},x$=function(e){return e$(e)?e:void 0},E$=function(e,t){return arguments.length<2?x$(w$[e])||x$(VH[e]):w$[e]&&w$[e][t]||VH[e]&&VH[e][t]},S$=QH({}.isPrototypeOf),C$=E$("navigator","userAgent")||"",D$=VH.process,O$=VH.Deno,A$=D$&&D$.versions||O$&&O$.version,k$=A$&&A$.v8;k$&&(HH=(zH=k$.split("."))[0]>0&&zH[0]<4?1:+(zH[0]+zH[1])),!HH&&C$&&(!(zH=C$.match(/Edge\/(\d+)/))||zH[1]>=74)&&(zH=C$.match(/Chrome\/(\d+)/))&&(HH=+zH[1]);var T$=HH,B$=!!Object.getOwnPropertySymbols&&!t$((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&T$&&T$<41})),_$=B$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,P$=VH.Object,F$=_$?function(e){return"symbol"==typeof e}:function(e){var t=E$("Symbol");return e$(t)&&S$(t.prototype,P$(e))},j$=VH.String,N$=VH.TypeError,L$=function(e){if(e$(e))return e;throw N$(function(e){try{return j$(e)}catch(e){return"Object"}}(e)+" is not a function")},I$=VH.TypeError,R$=Object.defineProperty,M$=VH["__core-js_shared__"]||function(e,t){try{R$(VH,e,{value:t,configurable:!0,writable:!0})}catch(n){VH[e]=t}return t}("__core-js_shared__",{}),z$=FF((function(e){(e.exports=function(e,t){return M$[e]||(M$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),H$=VH.Object,$$=function(e){return H$(y$(e))},V$=QH({}.hasOwnProperty),U$=Object.hasOwn||function(e,t){return V$($$(e),t)},Z$=0,W$=Math.random(),G$=QH(1..toString),q$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+G$(++Z$+W$,36)},K$=z$("wks"),Y$=VH.Symbol,X$=Y$&&Y$.for,J$=_$?Y$:Y$&&Y$.withoutSetter||q$,Q$=function(e){if(!U$(K$,e)||!B$&&"string"!=typeof K$[e]){var t="Symbol."+e;B$&&U$(Y$,e)?K$[e]=Y$[e]:K$[e]=_$&&X$?X$(t):J$(t)}return K$[e]},eV=VH.TypeError,tV=Q$("toPrimitive"),nV=function(e){var t=function(e,t){if(!b$(e)||F$(e))return e;var n,r,o=null==(n=e[tV])?void 0:L$(n);if(o){if(void 0===t&&(t="default"),r=o$(o,e,t),!b$(r)||F$(r))return r;throw eV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&e$(n=e.toString)&&!b$(r=o$(n,e)))return r;if(e$(n=e.valueOf)&&!b$(r=o$(n,e)))return r;if("string"!==t&&e$(n=e.toString)&&!b$(r=o$(n,e)))return r;throw I$("Can't convert object to primitive value")}(e,t)}(e,"string");return F$(t)?t:t+""},rV=VH.document,oV=b$(rV)&&b$(rV.createElement),iV=function(e){return oV?rV.createElement(e):{}},aV=!n$&&!t$((function(){return 7!=Object.defineProperty(iV("div"),"a",{get:function(){return 7}}).a})),uV=Object.getOwnPropertyDescriptor,sV={f:n$?uV:function(e,t){if(e=m$(e),t=nV(t),aV)try{return uV(e,t)}catch(e){}if(U$(e,t))return c$(!o$(s$.f,e,t),e[t])}},cV=/#|\.prototype\./,lV=function(e,t){var n=dV[fV(e)];return n==hV||n!=pV&&(e$(t)?t$(t):!!t)},fV=lV.normalize=function(e){return String(e).replace(cV,".").toLowerCase()},dV=lV.data={},pV=lV.NATIVE="N",hV=lV.POLYFILL="P",vV=lV,gV=QH(QH.bind),yV=function(e,t){return L$(e),void 0===t?e:gV?gV(e,t):function(){return e.apply(t,arguments)}},mV=VH.String,bV=VH.TypeError,wV=function(e){if(b$(e))return e;throw bV(mV(e)+" is not an object")},xV=VH.TypeError,EV=Object.defineProperty,SV={f:n$?EV:function(e,t,n){if(wV(e),t=nV(t),wV(n),aV)try{return EV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw xV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},CV=n$?function(e,t,n){return SV.f(e,t,c$(1,n))}:function(e,t,n){return e[t]=n,e},DV=sV.f,OV=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return qH(e,this,arguments)};return t.prototype=e.prototype,t},AV=function(e,t){var n,r,o,i,a,u,s,c,l=e.target,f=e.global,d=e.stat,p=e.proto,h=f?VH:d?VH[l]:(VH[l]||{}).prototype,v=f?w$:w$[l]||CV(w$,l,{})[l],g=v.prototype;for(o in t)n=!vV(f?o:l+(d?".":"#")+o,e.forced)&&h&&U$(h,o),a=v[o],n&&(u=e.noTargetGet?(c=DV(h,o))&&c.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?yV(i,VH):e.wrap&&n?OV(i):p&&e$(i)?QH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&CV(s,"sham",!0),CV(v,o,s),p&&(U$(w$,r=l+"Prototype")||CV(w$,r,{}),CV(w$[r],o,i),e.real&&g&&!g[o]&&CV(g,o,i)))},kV=Array.isArray||function(e){return"Array"==d$(e)},TV=Math.ceil,BV=Math.floor,_V=function(e){var t=+e;return t!=t||0===t?0:(t>0?BV:TV)(t)},PV=Math.min,FV=function(e){return(t=e.length)>0?PV(_V(t),9007199254740991):0;var t},jV=function(e,t,n){var r=nV(t);r in e?SV.f(e,r,c$(0,n)):e[r]=n},NV={};NV[Q$("toStringTag")]="z";var LV="[object z]"===String(NV),IV=Q$("toStringTag"),RV=VH.Object,MV="Arguments"==d$(function(){return arguments}()),zV=LV?d$:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=RV(e),IV))?n:MV?d$(t):"Object"==(r=d$(t))&&e$(t.callee)?"Arguments":r},HV=QH(Function.toString);e$(M$.inspectSource)||(M$.inspectSource=function(e){return HV(e)});var $V=M$.inspectSource,VV=function(){},UV=[],ZV=E$("Reflect","construct"),WV=/^\s*(?:class|function)\b/,GV=QH(WV.exec),qV=!WV.exec(VV),KV=function(e){if(!e$(e))return!1;try{return ZV(VV,UV,e),!0}catch(e){return!1}},YV=!ZV||t$((function(){var e;return KV(KV.call)||!KV(Object)||!KV((function(){e=!0}))||e}))?function(e){if(!e$(e))return!1;switch(zV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qV||!!GV(WV,$V(e))}:KV,XV=Q$("species"),JV=VH.Array,QV=function(e,t){return new(function(e){var t;return kV(e)&&(t=e.constructor,(YV(t)&&(t===JV||kV(t.prototype))||b$(t)&&null===(t=t[XV]))&&(t=void 0)),void 0===t?JV:t}(e))(0===t?0:t)},eU=Q$("species"),tU=Q$("isConcatSpreadable"),nU=VH.TypeError,rU=T$>=51||!t$((function(){var e=[];return e[tU]=!1,e.concat()[0]!==e})),oU=T$>=51||!t$((function(){var e=[];return(e.constructor={})[eU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),iU=function(e){if(!b$(e))return!1;var t=e[tU];return void 0!==t?!!t:kV(e)};AV({target:"Array",proto:!0,forced:!rU||!oU},{concat:function(e){var t,n,r,o,i,a=$$(this),u=QV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(iU(i=-1===t?a:arguments[t])){if(s+(o=FV(i))>9007199254740991)throw nU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&jV(u,s,i[n])}else{if(s>=9007199254740991)throw nU("Maximum allowed index exceeded");jV(u,s++,i)}return u.length=s,u}});var aU,uU=VH.String,sU=function(e){if("Symbol"===zV(e))throw TypeError("Cannot convert a Symbol value to a string");return uU(e)},cU=Math.max,lU=Math.min,fU=function(e,t){var n=_V(e);return n<0?cU(n+t,0):lU(n,t)},dU=function(e){return function(t,n,r){var o,i=m$(t),a=FV(i),u=fU(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},pU={includes:dU(!0),indexOf:dU(!1)},hU={},vU=pU.indexOf,gU=QH([].push),yU=function(e,t){var n,r=m$(e),o=0,i=[];for(n in r)!U$(hU,n)&&U$(r,n)&&gU(i,n);for(;t.length>o;)U$(r,n=t[o++])&&(~vU(i,n)||gU(i,n));return i},mU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bU=Object.keys||function(e){return yU(e,mU)},wU=n$?Object.defineProperties:function(e,t){wV(e);for(var n,r=m$(t),o=bU(t),i=o.length,a=0;i>a;)SV.f(e,n=o[a++],r[n]);return e},xU=E$("document","documentElement"),EU=z$("keys"),SU=function(e){return EU[e]||(EU[e]=q$(e))},CU=SU("IE_PROTO"),DU=function(){},OU=function(e){return"<script>"+e+"<\/script>"},AU=function(e){e.write(OU("")),e.close();var t=e.parentWindow.Object;return e=null,t},kU=function(){try{aU=new ActiveXObject("htmlfile")}catch(e){}var e,t;kU="undefined"!=typeof document?document.domain&&aU?AU(aU):((t=iV("iframe")).style.display="none",xU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(OU("document.F=Object")),e.close(),e.F):AU(aU);for(var n=mU.length;n--;)delete kU.prototype[mU[n]];return kU()};hU[CU]=!0;var TU,BU,_U,PU=Object.create||function(e,t){var n;return null!==e?(DU.prototype=wV(e),n=new DU,DU.prototype=null,n[CU]=e):n=kU(),void 0===t?n:wU(n,t)},FU=mU.concat("length","prototype"),jU={f:Object.getOwnPropertyNames||function(e){return yU(e,FU)}},NU=VH.Array,LU=Math.max,IU=jU.f,RU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],MU={f:function(e){return RU&&"Window"==d$(e)?function(e){try{return IU(e)}catch(e){return function(e,t,n){for(var r=FV(e),o=fU(void 0,r),i=fU(r,r),a=NU(LU(i-o,0)),u=0;o<i;o++,u++)jV(a,u,e[o]);return a.length=u,a}(RU)}}(e):IU(m$(e))}},zU={f:Object.getOwnPropertySymbols},HU=QH([].slice),$U=function(e,t,n,r){r&&r.enumerable?e[t]=n:CV(e,t,n)},VU={f:Q$},UU=SV.f,ZU=function(e){var t=w$.Symbol||(w$.Symbol={});U$(t,e)||UU(t,e,{value:VU.f(e)})},WU=LV?{}.toString:function(){return"[object "+zV(this)+"]"},GU=SV.f,qU=Q$("toStringTag"),KU=function(e,t,n,r){if(e){var o=n?e:e.prototype;U$(o,qU)||GU(o,qU,{configurable:!0,value:t}),r&&!LV&&CV(o,"toString",WU)}},YU=VH.WeakMap,XU=e$(YU)&&/native code/.test($V(YU)),JU=VH.TypeError,QU=VH.WeakMap;if(XU||M$.state){var eZ=M$.state||(M$.state=new QU),tZ=QH(eZ.get),nZ=QH(eZ.has),rZ=QH(eZ.set);TU=function(e,t){if(nZ(eZ,e))throw new JU("Object already initialized");return t.facade=e,rZ(eZ,e,t),t},BU=function(e){return tZ(eZ,e)||{}},_U=function(e){return nZ(eZ,e)}}else{var oZ=SU("state");hU[oZ]=!0,TU=function(e,t){if(U$(e,oZ))throw new JU("Object already initialized");return t.facade=e,CV(e,oZ,t),t},BU=function(e){return U$(e,oZ)?e[oZ]:{}},_U=function(e){return U$(e,oZ)}}var iZ={set:TU,get:BU,has:_U,enforce:function(e){return _U(e)?BU(e):TU(e,{})},getterFor:function(e){return function(t){var n;if(!b$(t)||(n=BU(t)).type!==e)throw JU("Incompatible receiver, "+e+" required");return n}}},aZ=QH([].push),uZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=$$(s),v=v$(h),g=yV(c,l),y=FV(v),m=0,b=f||QV,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:aZ(w,d)}else switch(e){case 4:return!1;case 7:aZ(w,d)}return i?-1:r||o?o:w}},sZ=[uZ(0),uZ(1),uZ(2),uZ(3),uZ(4),uZ(5),uZ(6),uZ(7)][0],cZ=SU("hidden"),lZ=Q$("toPrimitive"),fZ=iZ.set,dZ=iZ.getterFor("Symbol"),pZ=Object.prototype,hZ=VH.Symbol,vZ=hZ&&hZ.prototype,gZ=VH.TypeError,yZ=VH.QObject,mZ=E$("JSON","stringify"),bZ=sV.f,wZ=SV.f,xZ=MU.f,EZ=s$.f,SZ=QH([].push),CZ=z$("symbols"),DZ=z$("op-symbols"),OZ=z$("string-to-symbol-registry"),AZ=z$("symbol-to-string-registry"),kZ=z$("wks"),TZ=!yZ||!yZ.prototype||!yZ.prototype.findChild,BZ=n$&&t$((function(){return 7!=PU(wZ({},"a",{get:function(){return wZ(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=bZ(pZ,t);r&&delete pZ[t],wZ(e,t,n),r&&e!==pZ&&wZ(pZ,t,r)}:wZ,_Z=function(e,t){var n=CZ[e]=PU(vZ);return fZ(n,{type:"Symbol",tag:e,description:t}),n$||(n.description=t),n},PZ=function(e,t,n){e===pZ&&PZ(DZ,t,n),wV(e);var r=nV(t);return wV(n),U$(CZ,r)?(n.enumerable?(U$(e,cZ)&&e[cZ][r]&&(e[cZ][r]=!1),n=PU(n,{enumerable:c$(0,!1)})):(U$(e,cZ)||wZ(e,cZ,c$(1,{})),e[cZ][r]=!0),BZ(e,r,n)):wZ(e,r,n)},FZ=function(e,t){wV(e);var n=m$(t),r=bU(n).concat(IZ(n));return sZ(r,(function(t){n$&&!o$(jZ,n,t)||PZ(e,t,n[t])})),e},jZ=function(e){var t=nV(e),n=o$(EZ,this,t);return!(this===pZ&&U$(CZ,t)&&!U$(DZ,t))&&(!(n||!U$(this,t)||!U$(CZ,t)||U$(this,cZ)&&this[cZ][t])||n)},NZ=function(e,t){var n=m$(e),r=nV(t);if(n!==pZ||!U$(CZ,r)||U$(DZ,r)){var o=bZ(n,r);return!o||!U$(CZ,r)||U$(n,cZ)&&n[cZ][r]||(o.enumerable=!0),o}},LZ=function(e){var t=xZ(m$(e)),n=[];return sZ(t,(function(e){U$(CZ,e)||U$(hU,e)||SZ(n,e)})),n},IZ=function(e){var t=e===pZ,n=xZ(t?DZ:m$(e)),r=[];return sZ(n,(function(e){!U$(CZ,e)||t&&!U$(pZ,e)||SZ(r,CZ[e])})),r};if(B$||(vZ=(hZ=function(){if(S$(vZ,this))throw gZ("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?sU(arguments[0]):void 0,t=q$(e),n=function(e){this===pZ&&o$(n,DZ,e),U$(this,cZ)&&U$(this[cZ],t)&&(this[cZ][t]=!1),BZ(this,t,c$(1,e))};return n$&&TZ&&BZ(pZ,t,{configurable:!0,set:n}),_Z(t,e)}).prototype,$U(vZ,"toString",(function(){return dZ(this).tag})),$U(hZ,"withoutSetter",(function(e){return _Z(q$(e),e)})),s$.f=jZ,SV.f=PZ,sV.f=NZ,jU.f=MU.f=LZ,zU.f=IZ,VU.f=function(e){return _Z(Q$(e),e)},n$&&wZ(vZ,"description",{configurable:!0,get:function(){return dZ(this).description}})),AV({global:!0,wrap:!0,forced:!B$,sham:!B$},{Symbol:hZ}),sZ(bU(kZ),(function(e){ZU(e)})),AV({target:"Symbol",stat:!0,forced:!B$},{for:function(e){var t=sU(e);if(U$(OZ,t))return OZ[t];var n=hZ(t);return OZ[t]=n,AZ[n]=t,n},keyFor:function(e){if(!F$(e))throw gZ(e+" is not a symbol");if(U$(AZ,e))return AZ[e]},useSetter:function(){TZ=!0},useSimple:function(){TZ=!1}}),AV({target:"Object",stat:!0,forced:!B$,sham:!n$},{create:function(e,t){return void 0===t?PU(e):FZ(PU(e),t)},defineProperty:PZ,defineProperties:FZ,getOwnPropertyDescriptor:NZ}),AV({target:"Object",stat:!0,forced:!B$},{getOwnPropertyNames:LZ,getOwnPropertySymbols:IZ}),AV({target:"Object",stat:!0,forced:t$((function(){zU.f(1)}))},{getOwnPropertySymbols:function(e){return zU.f($$(e))}}),mZ){var RZ=!B$||t$((function(){var e=hZ();return"[null]"!=mZ([e])||"{}"!=mZ({a:e})||"{}"!=mZ(Object(e))}));AV({target:"JSON",stat:!0,forced:RZ},{stringify:function(e,t,n){var r=HU(arguments),o=t;if((b$(t)||void 0!==e)&&!F$(e))return kV(t)||(t=function(e,t){if(e$(o)&&(t=o$(o,this,e,t)),!F$(t))return t}),r[1]=t,qH(mZ,null,r)}})}if(!vZ[lZ]){var MZ=vZ.valueOf;$U(vZ,lZ,(function(e){return o$(MZ,this)}))}KU(hZ,"Symbol"),hU[cZ]=!0,ZU("asyncIterator"),ZU("hasInstance"),ZU("isConcatSpreadable"),ZU("iterator"),ZU("match"),ZU("matchAll"),ZU("replace"),ZU("search"),ZU("species"),ZU("split"),ZU("toPrimitive"),ZU("toStringTag"),ZU("unscopables"),KU(VH.JSON,"JSON",!0);var zZ,HZ,$Z,VZ=w$.Symbol,UZ={},ZZ=Function.prototype,WZ=n$&&Object.getOwnPropertyDescriptor,GZ=U$(ZZ,"name"),qZ={EXISTS:GZ,PROPER:GZ&&"something"===function(){}.name,CONFIGURABLE:GZ&&(!n$||n$&&WZ(ZZ,"name").configurable)},KZ=!t$((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),YZ=SU("IE_PROTO"),XZ=VH.Object,JZ=XZ.prototype,QZ=KZ?XZ.getPrototypeOf:function(e){var t=$$(e);if(U$(t,YZ))return t[YZ];var n=t.constructor;return e$(n)&&t instanceof n?n.prototype:t instanceof XZ?JZ:null},eW=Q$("iterator"),tW=!1;[].keys&&("next"in($Z=[].keys())?(HZ=QZ(QZ($Z)))!==Object.prototype&&(zZ=HZ):tW=!0);var nW=null==zZ||t$((function(){var e={};return zZ[eW].call(e)!==e}));zZ=nW?{}:PU(zZ),e$(zZ[eW])||$U(zZ,eW,(function(){return this}));var rW={IteratorPrototype:zZ,BUGGY_SAFARI_ITERATORS:tW},oW=rW.IteratorPrototype,iW=function(){return this};VH.String,VH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{QH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var aW=qZ.PROPER,uW=rW.BUGGY_SAFARI_ITERATORS,sW=Q$("iterator"),cW=function(){return this},lW=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=PU(oW,{next:c$(1,n)}),KU(e,o,!1,!0),UZ[o]=iW}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!uW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[sW]||p["@@iterator"]||o&&p[o],v=!uW&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=QZ(g.call(new e)))!==Object.prototype&&u.next&&(KU(u,f,!0,!0),UZ[f]=cW),aW&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return o$(h,this)}),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(uW||d||!(c in p))&&$U(p,c,s[c]);else AV({target:t,proto:!0,forced:uW||d},s);return a&&p[sW]!==v&&$U(p,sW,v,{name:o}),UZ[t]=v,s},fW=iZ.set,dW=iZ.getterFor("Array Iterator");lW(Array,"Array",(function(e,t){fW(this,{type:"Array Iterator",target:m$(e),index:0,kind:t})}),(function(){var e=dW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),UZ.Arguments=UZ.Array;var pW=Q$("toStringTag");for(var hW 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 vW=VH[hW],gW=vW&&vW.prototype;gW&&zV(gW)!==pW&&CV(gW,pW,hW),UZ[hW]=UZ.Array}var yW=VZ;ZU("asyncDispose"),ZU("dispose"),ZU("matcher"),ZU("metadata"),ZU("observable"),ZU("patternMatch"),ZU("replaceAll");var mW=yW,bW=QH("".charAt),wW=QH("".charCodeAt),xW=QH("".slice),EW=function(e){return function(t,n){var r,o,i=sU(y$(t)),a=_V(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=wW(i,a))<55296||r>56319||a+1===u||(o=wW(i,a+1))<56320||o>57343?e?bW(i,a):r:e?xW(i,a,a+2):o-56320+(r-55296<<10)+65536}},SW=(EW(!1),EW(!0)),CW=iZ.set,DW=iZ.getterFor("String Iterator");lW(String,"String",(function(e){CW(this,{type:"String Iterator",string:sU(e),index:0})}),(function(){var e,t=DW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=SW(n,r),t.index+=e.length,{value:e,done:!1})}));var OW=VU.f("iterator"),AW=FF((function(e){function t(n){return"function"==typeof mW&&"symbol"==typeof OW?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof mW&&e.constructor===mW&&e!==mW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),kW=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(AW),TW=kN.EXISTS,BW=iN.f,_W=Function.prototype,PW=XF(_W.toString),FW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jW=XF(FW.exec);MF&&!TW&&BW(_W,"name",{configurable:!0,get:function(){try{return jW(FW,PW(this))[1]}catch(e){return""}}});var NW=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=kf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),LW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("fontSize.title"),t.iconSvg=aM,t.mark="fontSize",t}return DR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:lF("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===kW(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(NW),IW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("fontFamily.title"),t.iconSvg=uM,t.mark="fontFamily",t.selectPanelWidth=150,t}return DR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:lF("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===kW(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(NW),RW={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&gz(i,{fontSize:r}),o&&gz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Jf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((bR(t)||"span"!==xR(n=Bp(t)))&&(n=Bp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),wR(n)):t},preParseHtml:[RH],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Jf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=ER(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var c=n.getMenuConfig("fontFamily").fontFamilyList,l=void 0===c?[]:c,f=ER(r,"font-family").replace(/"/g,""),d=l.find((function(e){return e.value&&e.value===f}))||l.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new LW},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 IW},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},MW={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Bp(e),n=ER(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},zW=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=BR(kf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":BR(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),HW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("indent.decrease"),t.iconSvg=sM,t}return DR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){gd.setNodes(e,{indent:null},{match:function(e){return Ef.isElement(e)}})},t}(zW),$W=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("indent.increase"),t.iconSvg=cM,t}return DR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){gd.setNodes(e,{indent:"2em"},{match:function(e){return Ef.isElement(e)},mode:"highest"})},t}(zW),VW={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.indent,r=t;return n&&gz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Bp(t);return r.css("text-indent",n),wR(r)},preParseHtml:[MW],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Ef.isElement(t))return t;var o=t,i=ER(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new $W}},{key:"delIndent",factory:function(){return new HW}}]},UW=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),ZW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.left"),t.iconSvg=lM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"left"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),WW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.right"),t.iconSvg=fM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"right"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),GW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.center"),t.iconSvg=dM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"center"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),qW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.justify"),t.iconSvg=pM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"justify"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),KW={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.textAlign,r=t;return n&&gz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Bp(t);return r.css("text-align",n),wR(r)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Ef.isElement(t))return t;var o=t,i=ER(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new ZW}},{key:"justifyRight",factory:function(){return new WW}},{key:"justifyCenter",factory:function(){return new GW}},{key:"justifyJustify",factory:function(){return new qW}}]},YW=function(){function e(){this.title=lF("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}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:lF("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Ef.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){gd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),XW={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.lineHeight,r=t;return n&&gz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Bp(t);return r.css("line-height",n),wR(r)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Ef.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=ER(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new YW},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},JW=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),QW=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),eG={menus:[{key:"redo",factory:function(){return new JW}},{key:"undo",factory:function(){return new QW}}]},tG={type:"divider",renderElem:function(e,t,n){return tv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:TA.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[tv("hr")])}},nG=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=TA.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){gd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),rG={renderElems:[tG],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 nG}}],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 t=BR(e,2),o=t[0],i=t[1];if("divider"!==TA.getNodeType(o))return n([o,i]);TA.isLastNode(r,o)&&gd.insertNodes(r,TA.genEmptyParagraph(),{at:[i[0]+1]})},r}},oG=AL.map;iL({target:"Array",proto:!0,forced:!TL("map")},{map:function(e){return oG(this,e,arguments.length>1?arguments[1]:void 0)}});var iG=XF([].join),aG=rj!=Object,uG=VR("join",",");iL({target:"Array",proto:!0,forced:aG||!uG},{join:function(e){return iG(aj(this),void 0===e?",":e)}});var sG=function(){function e(){this.title=lF("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"}return e.prototype.getSelectCodeElem=function(e){var t=TA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=TA.getParentNode(e,t);return null==n||"pre"!==TA.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=TA.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=TA.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Ff.string(t);gd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));gd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=kf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=TR(i),u=a.next();!u.done;u=a.next()){var s=BR(u.value,1)[0];s&&o.push(Ff.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}gd.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};gd.insertNodes(e,c,{mode:"highest"})},e}(),cG={key:"codeBlock",factory:function(){return new sG}};iL({target:"String",proto:!0,forced:LR("anchor")},{anchor:function(e){return NR(this,"a","name",e)}}),wI("match",(function(e,t,n){return[function(t){var n=ij(this),r=null==t?void 0:Oj(t,e);return r?HF(r,t,n):new RegExp(t)[e](jL(n))},function(e){var r=nN(this),o=jL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return NI(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=NI(r,o));){var l=jL(u[0]);s[c]=l,""===l&&(r.lastIndex=OI(o,IN(r.lastIndex),a)),c++}return 0===c?null:s}]}));var lG={type:"pre",renderElem:function(e,t,n){return xv("pre",null,t)}},fG={type:"code",renderElem:function(e,t,n){return xv("code",null,t)}},dG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return"code"===TA.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===TA.getNodeType(e)}))}}},pG={menus:[cG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=TA.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Ff.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=BR(e,2),r=t[0],i=t[1],a=TA.getNodeType(r);return"code"===a&&i.length<=1&&gd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(TA.isLastNode(o,r)&&gd.insertNodes(o,TA.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==TA.getNodeType(r.children[0])&&(gd.unwrapNodes(o),gd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=TA.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");kf.insertText(o,t)}else r(e)},o},renderElems:[lG,fG],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=Bp(e);if("code"!==xR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Bp(e)[0].textContent||""}]}}},dG]},hG=function(){function e(){this.title=lF("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}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),vG={menus:[{key:"fullScreen",factory:function(){return new hG}}]},gG=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Zf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];gd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(kf.start(e,r))}},e}(),yG=[CM,Ez,RW,VW,KW,XW,wH,rG,LH,Vz,pG,jH,fz,PR,CH,eG,vG,{menus:[{key:"enter",factory:function(){return new gG}}]}];cF("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),cF("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var mG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function bG(e){var t={exports:{}};return e(t,t.exports),t.exports}var wG,xG,EG=function(e){return e&&e.Math==Math&&e},SG=EG("object"==typeof globalThis&&globalThis)||EG("object"==typeof window&&window)||EG("object"==typeof self&&self)||EG("object"==typeof mG&&mG)||function(){return this}()||Function("return this")(),CG=Function.prototype,DG=CG.bind,OG=CG.call,AG=DG&&DG.bind(OG),kG=DG?function(e){return e&&AG(OG,e)}:function(e){return e&&function(){return OG.apply(e,arguments)}},TG=function(e){try{return!!e()}catch(e){return!0}},BG=kG({}.toString),_G=kG("".slice),PG=function(e){return _G(BG(e),8,-1)},FG=SG.Object,jG=kG("".split),NG=TG((function(){return!FG("z").propertyIsEnumerable(0)}))?function(e){return"String"==PG(e)?jG(e,""):FG(e)}:FG,LG=SG.TypeError,IG=function(e){if(null==e)throw LG("Can't call method on "+e);return e},RG=function(e){return NG(IG(e))},MG=Object.defineProperty,zG=function(e,t){try{MG(SG,e,{value:t,configurable:!0,writable:!0})}catch(n){SG[e]=t}return t},HG=SG["__core-js_shared__"]||zG("__core-js_shared__",{}),$G=bG((function(e){(e.exports=function(e,t){return HG[e]||(HG[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),VG=SG.Object,UG=function(e){return VG(IG(e))},ZG=kG({}.hasOwnProperty),WG=Object.hasOwn||function(e,t){return ZG(UG(e),t)},GG=0,qG=Math.random(),KG=kG(1..toString),YG=function(e){return"Symbol("+(void 0===e?"":e)+")_"+KG(++GG+qG,36)},XG=function(e){return"function"==typeof e},JG=function(e){return XG(e)?e:void 0},QG=function(e,t){return arguments.length<2?JG(SG[e]):SG[e]&&SG[e][t]},eq=QG("navigator","userAgent")||"",tq=SG.process,nq=SG.Deno,rq=tq&&tq.versions||nq&&nq.version,oq=rq&&rq.v8;oq&&(xG=(wG=oq.split("."))[0]>0&&wG[0]<4?1:+(wG[0]+wG[1])),!xG&&eq&&(!(wG=eq.match(/Edge\/(\d+)/))||wG[1]>=74)&&(wG=eq.match(/Chrome\/(\d+)/))&&(xG=+wG[1]);var iq,aq=xG,uq=!!Object.getOwnPropertySymbols&&!TG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aq&&aq<41})),sq=uq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,cq=$G("wks"),lq=SG.Symbol,fq=lq&&lq.for,dq=sq?lq:lq&&lq.withoutSetter||YG,pq=function(e){if(!WG(cq,e)||!uq&&"string"!=typeof cq[e]){var t="Symbol."+e;uq&&WG(lq,e)?cq[e]=lq[e]:cq[e]=sq&&fq?fq(t):dq(t)}return cq[e]},hq=function(e){return"object"==typeof e?null!==e:XG(e)},vq=SG.String,gq=SG.TypeError,yq=function(e){if(hq(e))return e;throw gq(vq(e)+" is not an object")},mq=!TG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),bq=SG.document,wq=hq(bq)&&hq(bq.createElement),xq=function(e){return wq?bq.createElement(e):{}},Eq=!mq&&!TG((function(){return 7!=Object.defineProperty(xq("div"),"a",{get:function(){return 7}}).a})),Sq=Function.prototype.call,Cq=Sq.bind?Sq.bind(Sq):function(){return Sq.apply(Sq,arguments)},Dq=kG({}.isPrototypeOf),Oq=SG.Object,Aq=sq?function(e){return"symbol"==typeof e}:function(e){var t=QG("Symbol");return XG(t)&&Dq(t.prototype,Oq(e))},kq=SG.String,Tq=function(e){try{return kq(e)}catch(e){return"Object"}},Bq=SG.TypeError,_q=function(e){if(XG(e))return e;throw Bq(Tq(e)+" is not a function")},Pq=function(e,t){var n=e[t];return null==n?void 0:_q(n)},Fq=SG.TypeError,jq=SG.TypeError,Nq=pq("toPrimitive"),Lq=function(e){var t=function(e,t){if(!hq(e)||Aq(e))return e;var n,r=Pq(e,Nq);if(r){if(void 0===t&&(t="default"),n=Cq(r,e,t),!hq(n)||Aq(n))return n;throw jq("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&XG(n=e.toString)&&!hq(r=Cq(n,e)))return r;if(XG(n=e.valueOf)&&!hq(r=Cq(n,e)))return r;if("string"!==t&&XG(n=e.toString)&&!hq(r=Cq(n,e)))return r;throw Fq("Can't convert object to primitive value")}(e,t)}(e,"string");return Aq(t)?t:t+""},Iq=SG.TypeError,Rq=Object.defineProperty,Mq={f:mq?Rq:function(e,t,n){if(yq(e),t=Lq(t),yq(n),Eq)try{return Rq(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Iq("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},zq=Math.ceil,Hq=Math.floor,$q=function(e){var t=+e;return t!=t||0===t?0:(t>0?Hq:zq)(t)},Vq=Math.max,Uq=Math.min,Zq=function(e,t){var n=$q(e);return n<0?Vq(n+t,0):Uq(n,t)},Wq=Math.min,Gq=function(e){return e>0?Wq($q(e),9007199254740991):0},qq=function(e){return Gq(e.length)},Kq=function(e){return function(t,n,r){var o,i=RG(t),a=qq(i),u=Zq(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Yq={includes:Kq(!0),indexOf:Kq(!1)},Xq={},Jq=Yq.indexOf,Qq=kG([].push),eK=function(e,t){var n,r=RG(e),o=0,i=[];for(n in r)!WG(Xq,n)&&WG(r,n)&&Qq(i,n);for(;t.length>o;)WG(r,n=t[o++])&&(~Jq(i,n)||Qq(i,n));return i},tK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nK=Object.keys||function(e){return eK(e,tK)},rK=mq?Object.defineProperties:function(e,t){yq(e);for(var n,r=RG(t),o=nK(t),i=o.length,a=0;i>a;)Mq.f(e,n=o[a++],r[n]);return e},oK=QG("document","documentElement"),iK=$G("keys"),aK=function(e){return iK[e]||(iK[e]=YG(e))},uK=aK("IE_PROTO"),sK=function(){},cK=function(e){return"<script>"+e+"<\/script>"},lK=function(e){e.write(cK("")),e.close();var t=e.parentWindow.Object;return e=null,t},fK=function(){try{iq=new ActiveXObject("htmlfile")}catch(e){}var e,t;fK="undefined"!=typeof document?document.domain&&iq?lK(iq):((t=xq("iframe")).style.display="none",oK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(cK("document.F=Object")),e.close(),e.F):lK(iq);for(var n=tK.length;n--;)delete fK.prototype[tK[n]];return fK()};Xq[uK]=!0;var dK=Object.create||function(e,t){var n;return null!==e?(sK.prototype=yq(e),n=new sK,sK.prototype=null,n[uK]=e):n=fK(),void 0===t?n:rK(n,t)},pK=pq("unscopables"),hK=Array.prototype;null==hK[pK]&&Mq.f(hK,pK,{configurable:!0,value:dK(null)});var vK=function(e){hK[pK][e]=!0},gK={},yK=kG(Function.toString);XG(HG.inspectSource)||(HG.inspectSource=function(e){return yK(e)});var mK,bK,wK,xK=HG.inspectSource,EK=SG.WeakMap,SK=XG(EK)&&/native code/.test(xK(EK)),CK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},DK=mq?function(e,t,n){return Mq.f(e,t,CK(1,n))}:function(e,t,n){return e[t]=n,e},OK=SG.TypeError,AK=SG.WeakMap;if(SK||HG.state){var kK=HG.state||(HG.state=new AK),TK=kG(kK.get),BK=kG(kK.has),_K=kG(kK.set);mK=function(e,t){if(BK(kK,e))throw new OK("Object already initialized");return t.facade=e,_K(kK,e,t),t},bK=function(e){return TK(kK,e)||{}},wK=function(e){return BK(kK,e)}}else{var PK=aK("state");Xq[PK]=!0,mK=function(e,t){if(WG(e,PK))throw new OK("Object already initialized");return t.facade=e,DK(e,PK,t),t},bK=function(e){return WG(e,PK)?e[PK]:{}},wK=function(e){return WG(e,PK)}}var FK,jK,NK,LK={set:mK,get:bK,has:wK,enforce:function(e){return wK(e)?bK(e):mK(e,{})},getterFor:function(e){return function(t){var n;if(!hq(t)||(n=bK(t)).type!==e)throw OK("Incompatible receiver, "+e+" required");return n}}},IK={}.propertyIsEnumerable,RK=Object.getOwnPropertyDescriptor,MK={f:RK&&!IK.call({1:2},1)?function(e){var t=RK(this,e);return!!t&&t.enumerable}:IK},zK=Object.getOwnPropertyDescriptor,HK={f:mq?zK:function(e,t){if(e=RG(e),t=Lq(t),Eq)try{return zK(e,t)}catch(e){}if(WG(e,t))return CK(!Cq(MK.f,e,t),e[t])}},$K=Function.prototype,VK=mq&&Object.getOwnPropertyDescriptor,UK=WG($K,"name"),ZK={EXISTS:UK,PROPER:UK&&"something"===function(){}.name,CONFIGURABLE:UK&&(!mq||mq&&VK($K,"name").configurable)},WK=bG((function(e){var t=ZK.CONFIGURABLE,n=LK.get,r=LK.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;XG(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!WG(i,"name")||t&&i.name!==f)&&DK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==SG?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:DK(e,n,i)):c?e[n]=i:zG(n,i)})(Function.prototype,"toString",(function(){return XG(this)&&n(this).source||xK(this)}))})),GK=tK.concat("length","prototype"),qK={f:Object.getOwnPropertyNames||function(e){return eK(e,GK)}},KK={f:Object.getOwnPropertySymbols},YK=kG([].concat),XK=QG("Reflect","ownKeys")||function(e){var t=qK.f(yq(e)),n=KK.f;return n?YK(t,n(e)):t},JK=function(e,t){for(var n=XK(t),r=Mq.f,o=HK.f,i=0;i<n.length;i++){var a=n[i];WG(e,a)||r(e,a,o(t,a))}},QK=/#|\.prototype\./,eY=function(e,t){var n=nY[tY(e)];return n==oY||n!=rY&&(XG(t)?TG(t):!!t)},tY=eY.normalize=function(e){return String(e).replace(QK,".").toLowerCase()},nY=eY.data={},rY=eY.NATIVE="N",oY=eY.POLYFILL="P",iY=eY,aY=HK.f,uY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?SG:c?SG[u]||zG(u,{}):(SG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=aY(n,r))&&a.value:n[r],!iY(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;JK(i,o)}(e.sham||o&&o.sham)&&DK(i,"sham",!0),WK(n,r,i,e)}},sY=!TG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cY=aK("IE_PROTO"),lY=SG.Object,fY=lY.prototype,dY=sY?lY.getPrototypeOf:function(e){var t=UG(e);if(WG(t,cY))return t[cY];var n=t.constructor;return XG(n)&&t instanceof n?n.prototype:t instanceof lY?fY:null},pY=pq("iterator"),hY=!1;[].keys&&("next"in(NK=[].keys())?(jK=dY(dY(NK)))!==Object.prototype&&(FK=jK):hY=!0);var vY=null==FK||TG((function(){var e={};return FK[pY].call(e)!==e}));vY&&(FK={}),XG(FK[pY])||WK(FK,pY,(function(){return this}));var gY={IteratorPrototype:FK,BUGGY_SAFARI_ITERATORS:hY},yY=Mq.f,mY=pq("toStringTag"),bY=function(e,t,n){e&&!WG(e=n?e:e.prototype,mY)&&yY(e,mY,{configurable:!0,value:t})},wY=gY.IteratorPrototype,xY=function(){return this},EY=SG.String,SY=SG.TypeError,CY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=kG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return yq(n),function(e){if("object"==typeof e||XG(e))return e;throw SY("Can't set "+EY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),DY=ZK.PROPER,OY=ZK.CONFIGURABLE,AY=gY.IteratorPrototype,kY=gY.BUGGY_SAFARI_ITERATORS,TY=pq("iterator"),BY=function(){return this},_Y=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=dK(wY,{next:CK(1,n)}),bY(e,o,!1),gK[o]=xY}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!kY&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[TY]||p["@@iterator"]||o&&p[o],v=!kY&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=dY(g.call(new e)))!==Object.prototype&&u.next&&(dY(u)!==AY&&(CY?CY(u,AY):XG(u[TY])||WK(u,TY,BY)),bY(u,f,!0)),DY&&"values"==o&&h&&"values"!==h.name&&(OY?DK(p,"name","values"):(d=!0,v=function(){return Cq(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(kY||d||!(c in p))&&WK(p,c,s[c]);else uY({target:t,proto:!0,forced:kY||d},s);return p[TY]!==v&&WK(p,TY,v,{name:o}),gK[t]=v,s},PY=LK.set,FY=LK.getterFor("Array Iterator"),jY=_Y(Array,"Array",(function(e,t){PY(this,{type:"Array Iterator",target:RG(e),index:0,kind:t})}),(function(){var e=FY(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");gK.Arguments=gK.Array,vK("keys"),vK("values"),vK("entries");var NY={};NY[pq("toStringTag")]="z";var LY="[object z]"===String(NY),IY=pq("toStringTag"),RY=SG.Object,MY="Arguments"==PG(function(){return arguments}()),zY=LY?PG:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=RY(e),IY))?n:MY?PG(t):"Object"==(r=PG(t))&&XG(t.callee)?"Arguments":r},HY=LY?{}.toString:function(){return"[object "+zY(this)+"]"};LY||WK(Object.prototype,"toString",HY,{unsafe:!0});var $Y=SG.String,VY=function(e){if("Symbol"===zY(e))throw TypeError("Cannot convert a Symbol value to a string");return $Y(e)},UY=kG("".charAt),ZY=kG("".charCodeAt),WY=kG("".slice),GY=function(e){return function(t,n){var r,o,i=VY(IG(t)),a=$q(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZY(i,a))<55296||r>56319||a+1===u||(o=ZY(i,a+1))<56320||o>57343?e?UY(i,a):r:e?WY(i,a,a+2):o-56320+(r-55296<<10)+65536}},qY={codeAt:GY(!1),charAt:GY(!0)},KY=qY.charAt,YY=LK.set,XY=LK.getterFor("String Iterator");_Y(String,"String",(function(e){YY(this,{type:"String Iterator",string:VY(e),index:0})}),(function(){var e,t=XY(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=KY(n,r),t.index+=e.length,{value:e,done:!1})}));var JY=function(e,t,n){for(var r in t)WK(e,r,t[r],n);return e},QY=SG.Array,eX=Math.max,tX=qK.f,nX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rX={f:function(e){return nX&&"Window"==PG(e)?function(e){try{return tX(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=qq(e),s=Zq(void 0,u),c=Zq(u,u),l=QY(eX(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],(a=Lq(o))in r?Mq.f(r,a,CK(0,i)):r[a]=i;return l.length=f,l}(nX)}}(e):tX(RG(e))}},oX=TG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),iX=Object.isExtensible,aX=TG((function(){iX(1)}))||oX?function(e){return!!hq(e)&&(!oX||"ArrayBuffer"!=PG(e))&&(!iX||iX(e))}:iX,uX=!TG((function(){return Object.isExtensible(Object.preventExtensions({}))})),sX=bG((function(e){var t=Mq.f,n=!1,r=YG("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=qK.f,t=kG([].splice),o={};o[r]=1,e(o).length&&(qK.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},uY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rX.f}))},fastKey:function(e,t){if(!hq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!WG(e,r)){if(!aX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!WG(e,r)){if(!aX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return uX&&n&&aX(e)&&!WG(e,r)&&i(e),e}};Xq[r]=!0})),cX=kG(kG.bind),lX=function(e,t){return _q(e),void 0===t?e:cX?cX(e,t):function(){return e.apply(t,arguments)}},fX=pq("iterator"),dX=Array.prototype,pX=pq("iterator"),hX=function(e){if(null!=e)return Pq(e,pX)||Pq(e,"@@iterator")||gK[zY(e)]},vX=SG.TypeError,gX=function(e,t,n){var r,o;yq(e);try{if(!(r=Pq(e,"return"))){if("throw"===t)throw n;return n}r=Cq(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return yq(r),n},yX=SG.TypeError,mX=function(e,t){this.stopped=e,this.result=t},bX=mX.prototype,wX=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=lX(t,f),g=function(e){return r&&gX(r,"normal",e),new mX(!0,e)},y=function(e){return d?(yq(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=hX(e)))throw yX(Tq(e)+" is not iterable");if(void 0!==(l=o)&&(gK.Array===l||dX[fX]===l)){for(i=0,a=qq(e);a>i;i++)if((u=y(e[i]))&&Dq(bX,u))return u;return new mX(!1)}r=function(e,t){var n=arguments.length<2?hX(e):t;if(_q(n))return yq(Cq(n,e));throw vX(Tq(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Cq(s,r)).done;){try{u=y(c.value)}catch(e){gX(r,"throw",e)}if("object"==typeof u&&u&&Dq(bX,u))return u}return new mX(!1)},xX=SG.TypeError,EX=function(e,t){if(Dq(t,e))return e;throw xX("Incorrect invocation")},SX=pq("iterator"),CX=!1;try{var DX=0,OX={next:function(){return{done:!!DX++}},return:function(){CX=!0}};OX[SX]=function(){return this},Array.from(OX,(function(){throw 2}))}catch(Mc){}var AX=Array.isArray||function(e){return"Array"==PG(e)},kX=function(){},TX=[],BX=QG("Reflect","construct"),_X=/^\s*(?:class|function)\b/,PX=kG(_X.exec),FX=!_X.exec(kX),jX=function(e){if(!XG(e))return!1;try{return BX(kX,TX,e),!0}catch(e){return!1}},NX=!BX||TG((function(){var e;return jX(jX.call)||!jX(Object)||!jX((function(){e=!0}))||e}))?function(e){if(!XG(e))return!1;switch(zY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return FX||!!PX(_X,xK(e))}:jX,LX=pq("species"),IX=SG.Array,RX=function(e,t){return new(function(e){var t;return AX(e)&&(t=e.constructor,(NX(t)&&(t===IX||AX(t.prototype))||hq(t)&&null===(t=t[LX]))&&(t=void 0)),void 0===t?IX:t}(e))(0===t?0:t)},MX=kG([].push),zX=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=UG(s),v=NG(h),g=lX(c,l),y=qq(v),m=0,b=f||RX,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:MX(w,d)}else switch(e){case 4:return!1;case 7:MX(w,d)}return i?-1:r||o?o:w}},HX={forEach:zX(0),map:zX(1),filter:zX(2),some:zX(3),every:zX(4),find:zX(5),findIndex:zX(6),filterReject:zX(7)},$X=sX.getWeakData,VX=LK.set,UX=LK.getterFor,ZX=HX.find,WX=HX.findIndex,GX=kG([].splice),qX=0,KX=function(e){return e.frozen||(e.frozen=new YX)},YX=function(){this.entries=[]},XX=function(e,t){return ZX(e.entries,(function(e){return e[0]===t}))};YX.prototype={get:function(e){var t=XX(this,e);if(t)return t[1]},has:function(e){return!!XX(this,e)},set:function(e,t){var n=XX(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=WX(this.entries,(function(t){return t[0]===e}));return~t&&GX(this.entries,t,1),!!~t}};var JX,QX={getConstructor:function(e,t,n,r){var o=e((function(e,o){EX(e,i),VX(e,{type:t,id:qX++,frozen:void 0}),null!=o&&wX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=UX(t),u=function(e,t,n){var r=a(e),o=$X(yq(t),!0);return!0===o?KX(r).set(t,n):o[r.id]=n,e};return JY(i,{delete:function(e){var t=a(this);if(!hq(e))return!1;var n=$X(e);return!0===n?KX(t).delete(e):n&&WG(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!hq(e))return!1;var n=$X(e);return!0===n?KX(t).has(e):n&&WG(n,t.id)}}),JY(i,n?{get:function(e){var t=a(this);if(hq(e)){var n=$X(e);return!0===n?KX(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},eJ=LK.enforce,tJ=!SG.ActiveXObject&&"ActiveXObject"in SG,nJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},rJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=SG[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=kG(u[e]);WK(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!hq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!hq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!hq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(iY(e,!XG(a)||!(o||u.forEach&&!TG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),sX.enable();else if(iY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=TG((function(){f.has(1)})),h=function(e,t){if(!CX)return!1;var n=!1;try{var r={};r[SX]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&TG((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){EX(e,u);var n=function(e,t,n){var r,o;return CY&&XG(r=t.constructor)&&r!==n&&hq(o=r.prototype)&&o!==n.prototype&&CY(e,o),e}(new a,e,s);return null!=t&&wX(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,uY({global:!0,forced:s!=a},c),bY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",nJ,QX);if(SK&&tJ){JX=QX.getConstructor(nJ,"WeakMap",!0),sX.enable();var oJ=rJ.prototype,iJ=kG(oJ.delete),aJ=kG(oJ.has),uJ=kG(oJ.get),sJ=kG(oJ.set);JY(oJ,{delete:function(e){if(hq(e)&&!aX(e)){var t=eJ(this);return t.frozen||(t.frozen=new JX),iJ(this,e)||t.frozen.delete(e)}return iJ(this,e)},has:function(e){if(hq(e)&&!aX(e)){var t=eJ(this);return t.frozen||(t.frozen=new JX),aJ(this,e)||t.frozen.has(e)}return aJ(this,e)},get:function(e){if(hq(e)&&!aX(e)){var t=eJ(this);return t.frozen||(t.frozen=new JX),aJ(this,e)?uJ(this,e):t.frozen.get(e)}return uJ(this,e)},set:function(e,t){if(hq(e)&&!aX(e)){var n=eJ(this);n.frozen||(n.frozen=new JX),aJ(this,e)?sJ(this,e,t):n.frozen.set(e,t)}else sJ(this,e,t);return this}})}var cJ={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=xq("span").classList,fJ=lJ&&lJ.constructor&&lJ.constructor.prototype,dJ=fJ===Object.prototype?void 0:fJ,pJ=pq("iterator"),hJ=pq("toStringTag"),vJ=jY.values,gJ=function(e,t){if(e){if(e[pJ]!==vJ)try{DK(e,pJ,vJ)}catch(t){e[pJ]=vJ}if(e[hJ]||DK(e,hJ,t),cJ[t])for(var n in jY)if(e[n]!==jY[n])try{DK(e,n,jY[n])}catch(t){e[n]=jY[n]}}};for(var yJ in cJ)gJ(SG[yJ]&&SG[yJ].prototype,yJ);gJ(dJ,"DOMTokenList");var mJ=new WeakMap,bJ={type:"list-item",renderElem:function(e,t,n){mJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,c=t,l=TA.findPath(e,c);if(0===l[0])return 1;for(;l[0]>0;){var f=If.previous(l),d=kf.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}c=p,l=f}return s}(n,e);s=c+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var l=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Jf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return xv("div",{style:u},xv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:l},"data-w-e-reserve":!0},s),xv("span",null,t))}},wJ=function(e,t){return wJ=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])},wJ(e,t)
|
|
94
|
+
***************************************************************************** */};function DR(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}CR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var OR=function(){return OR=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},OR.apply(this,arguments)};function AR(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function kR(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function TR(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function BR(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||t-- >0)&&!(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 _R(e){var t=BR(kf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Ef.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Ff.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Jf.isText(o[0])&&(gd.setNodes(e,{type:"paragraph"}),!0)}var PR={renderElems:[_F],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[SR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){_R(r)||t(e)},r.deleteForward=function(e){_R(r)||n(e)},r}},FR=/"/g,jR=XF("".replace),NR=function(e,t,n,r){var o=jL(ij(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+jR(jL(r),FR,""")+'"'),i+">"+o+"</"+t+">"},LR=function(e){return RF((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function IR(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function RR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}iL({target:"String",proto:!0,forced:LR("bold")},{bold:function(){return NR(this,"b","","")}}),iL({target:"String",proto:!0,forced:LR("italics")},{italics:function(){return NR(this,"i","","")}}),iL({target:"String",proto:!0,forced:LR("sub")},{sub:function(){return NR(this,"sub","","")}}),iL({target:"String",proto:!0,forced:LR("sup")},{sup:function(){return NR(this,"sup","","")}});var MR={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},zR=Yj("span").classList,HR=zR&&zR.constructor&&zR.constructor.prototype,$R=HR===Object.prototype?void 0:HR,VR=function(e,t){var n=[][e];return!!n&&RF((function(){n.call(null,t||function(){throw 1},1)}))},UR=AL.forEach,ZR=VR("forEach")?[].forEach:function(e){return UR(this,e,arguments.length>1?arguments[1]:void 0)},WR=function(e){if(e&&e.forEach!==ZR)try{aN(e,"forEach",ZR)}catch(t){e.forEach=ZR}};for(var GR in MR)MR[GR]&&WR(IF[GR]&&IF[GR].prototype);function qR(e,t){return null==e.selection||!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]}function KR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&kf.removeMark(e,t)}))}WR($R),iL({target:"Object",stat:!0,forced:RF((function(){zL(1)}))},{keys:function(e){return zL(Fj(e))}});var YR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=kf.marks(e);return n?n[t]:!!BR(kf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return qR(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),XR='<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>',JR='<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>',QR='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',eM='<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>',tM='<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>',nM='<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>',rM='<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>',oM='<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>',iM='<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>',aM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',uM='<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>',sM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',cM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',lM='<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>',fM='<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>',dM='<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>',pM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',hM='<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>',vM='<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>',gM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=lF("textStyle.bold"),t.iconSvg=XR,t.hotkey="mod+b",t}return DR(t,e),t}(YR),yM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=lF("textStyle.code"),t.iconSvg=tM,t.hotkey="mod+e",t}return DR(t,e),t}(YR),mM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=lF("textStyle.italic"),t.iconSvg=QR,t.hotkey="mod+i",t}return DR(t,e),t}(YR),bM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=lF("textStyle.through"),t.iconSvg=eM,t.hotkey="mod+shift+x",t}return DR(t,e),t}(YR),wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=lF("textStyle.underline"),t.iconSvg=JR,t.hotkey="mod+u",t}return DR(t,e),t}(YR),xM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=lF("textStyle.sub"),t.iconSvg=vM,t.hotkey="",t}return DR(t,e),t}(YR),EM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=lF("textStyle.sup"),t.iconSvg=hM,t.hotkey="",t}return DR(t,e),t}(YR),SM=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return qR(e)},e.prototype.exec=function(e,t){var n,r,o=kf.nodes(e,{match:function(e){return Jf.isText(e)},universal:!0});try{for(var i=TR(o),a=i.next();!a.done;a=i.next())KR(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}}},e}(),CM={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,c=n.sup,l=t;return r&&(l=xv("strong",null,l)),a&&(l=xv("code",null,l)),o&&(l=xv("em",null,l)),i&&(l=xv("u",null,l)),u&&(l=xv("s",null,l)),s&&(l=xv("sub",null,l)),c&&(l=xv("sup",null,l)),l},menus:[{key:"bold",factory:function(){return new gM}},{key:"underline",factory:function(){return new wM}},{key:"italic",factory:function(){return new mM}},{key:"through",factory:function(){return new bM}},{key:"code",factory:function(){return new yM}},{key:"sub",factory:function(){return new xM}},{key:"sup",factory:function(){return new EM}},{key:"clearStyle",factory:function(){return new SM}}],styleToHtml:function(e,t){if(!Jf.isText(e))return t;if(bR(t))return IR(e,t);var n=Bp(t);if("br"===xR(n))return IR(e,"<br>");var r=n.html();return r=IR(e,r),n.html(r),wR(n)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Jf.isText(t))return t;var o=t;return RR(r,"b,strong")&&(o.bold=!0),RR(r,"i,em")&&(o.italic=!0),RR(r,"u")&&(o.underline=!0),RR(r,"s,strike")&&(o.through=!0),RR(r,"sub")&&(o.sub=!0),RR(r,"sup")&&(o.sup=!0),RR(r,"code")&&(o.code=!0),o}};function DM(e){return function(t,n,r){return xv("h"+e,null,n)}}var OM={type:"header1",renderElem:DM(1)},AM={type:"header2",renderElem:DM(2)},kM={type:"header3",renderElem:DM(3)},TM={type:"header4",renderElem:DM(4)},BM={type:"header5",renderElem:DM(5)},_M=kN.PROPER,PM=RegExp.prototype,FM=PM.toString,jM=XF(NL),NM=RF((function(){return"/a/b"!=FM.call({source:"a",flags:"b"})})),LM=_M&&"toString"!=FM.name;(NM||LM)&&TN(RegExp.prototype,"toString",(function(){var e=nN(this),t=jL(e.source),n=e.flags;return"/"+t+"/"+jL(void 0===n&&fj(PM,e)&&!("flags"in PM)?jM(e):n)}),{unsafe:!0});var IM,RM=IF.TypeError,MM=function(e){if(XI(e))throw RM("The method doesn't accept regular expressions");return e},zM=Uj("match"),HM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[zM]=!1,"/./"[e](t)}catch(e){}}return!1},$M=Qj.f,VM=XF("".startsWith),UM=XF("".slice),ZM=Math.min,WM=HM("startsWith");function GM(e){var t=BR(kf.nodes(e,{match:function(e){return TA.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=BR(n,1)[0];return TA.getNodeType(r)}function qM(e){return null==e.selection||!BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function KM(e,t){t&&gd.setNodes(e,{type:t})}iL({target:"String",proto:!0,forced:!(!WM&&(IM=$M(String.prototype,"startsWith"),IM&&!IM.writable)||WM)},{startsWith:function(e){var t=jL(ij(this));MM(e);var n=IN(ZM(arguments.length>1?arguments[1]:void 0,t.length)),r=jL(e);return VM?VM(t,r,n):UM(t,n,n+r.length)===r}});var YM=function(){function e(){this.title=lF("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}return e.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:lF("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return GM(e)},e.prototype.isDisabled=function(e){return qM(e)},e.prototype.exec=function(e,t){KM(e,t.toString())},e}(),XM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return GM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return qM(e)},e.prototype.exec=function(e,t){var n=this.type;KM(e,t===n?"paragraph":n)},e}(),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return DR(t,e),t}(XM),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return DR(t,e),t}(XM),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return DR(t,e),t}(XM),tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return DR(t,e),t}(XM),nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return DR(t,e),t}(XM),rz={key:"headerSelect",factory:function(){return new YM}},oz={key:"header1",factory:function(){return new JM}},iz={key:"header2",factory:function(){return new QM}},az={key:"header3",factory:function(){return new ez}},uz={key:"header4",factory:function(){return new tz}},sz={key:"header5",factory:function(){return new nz}};function cz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function lz(e){return function(t,n,r){var o=Bp(t);return 0===(n=n.filter((function(e){return!!Jf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var fz={renderElems:[OM,AM,kM,TM,BM],elemsToHtml:[{type:"header1",elemToHtml:cz(1)},{type:"header2",elemToHtml:cz(2)},{type:"header3",elemToHtml:cz(3)},{type:"header4",elemToHtml:cz(4)},{type:"header5",elemToHtml:cz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:lz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:lz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:lz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:lz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:lz(5)}],menus:[rz,oz,iz,az,uz,sz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=BR(kf.nodes(n,{match:function(e){return TA.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&TA.isSelectionAtLineEnd(e,r[1])?gd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},dz=Object.assign,pz=Object.defineProperty,hz=XF([].concat),vz=!dz||RF((function(){if(MF&&1!==dz({b:1},dz(pz({},"a",{enumerable:!0,get:function(){pz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=dz({},e)[n]||zL(dz({},t)).join("")!=r}))?function(e,t){for(var n=Fj(e),r=arguments.length,o=1,i=GN.f,a=ZF.f;r>o;)for(var u,s=rj(arguments[o++]),c=i?hz(zL(s),i(s)):zL(s),l=c.length,f=0;l>f;)u=c[f++],MF&&!HF(a,s,u)||(n[u]=s[u]);return n}:dz;function gz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}iL({target:"Object",stat:!0,forced:Object.assign!==vz},{assign:vz});var yz={selector:"font",preParseHtml:function(e){var t=Bp(e);if("font"!==xR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},mz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=kf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Bp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Bp(r).attr("data-value");"0"===o?kf.removeMark(e,t):kf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Bp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Bp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=lF("color.default")),"bgColor"===t&&(a=lF("color.clear"));var u=Bp('\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 '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("color.color"),t.iconSvg=oM,t.mark="color",t}return DR(t,e),t}(mz),wz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("color.bgColor"),t.iconSvg=iM,t.mark="bgColor",t}return DR(t,e),t}(mz),xz=["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)"],Ez={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&gz(i,{color:r}),o&&gz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Jf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((bR(t)||"span"!==xR(n=Bp(t)))&&(n=Bp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),wR(n)):t},preParseHtml:[yz],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Jf.isText(t))return t;var o=t,i=ER(r,"color");i&&(o.color=i);var a=ER(r,"background-color");return a||(a=ER(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new bz},config:{colors:xz}},{key:"bgColor",factory:function(){return new wz},config:{colors:xz}}]},Sz=/^(?:\w+:)?\/\/(\S+)$/,Cz=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Dz=/^[^\s\.]+\.\S{2,}$/,Oz=zN.includes;function Az(e){return void 0===e&&(e="r"),e+"-"+Oh()}function kz(e){return e.replace(/</g,"<").replace(/>/g,">")}function Tz(e,t,n,r){return AR(this,void 0,void 0,(function(){var o,i;return kR(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function Bz(e,t,n){return AR(this,void 0,void 0,(function(){var r;return kR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function _z(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Pz(e,t){return{type:"link",url:kz(e),children:t?[{text:t}]:[]}}function Fz(e,t,n){return AR(this,void 0,void 0,(function(){var r,o,i;return kR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),_z(e)?[2]:[4,Tz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Bz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Zf.isCollapsed(o)?(e.insertText(" "),i=Pz(r,t),gd.insertNodes(e,i),e.insertFragment([{text:" "}])):kf.string(e,o)!==t?(e.deleteFragment(),i=Pz(r,t),gd.insertNodes(e,i)):(i=Pz(r),gd.wrapNodes(e,i,{split:!0}),gd.collapse(e,{edge:"end"}))),[2]}}))}))}iL({target:"Array",proto:!0},{includes:function(e){return Oz(this,e,arguments.length>1?arguments[1]:void 0)}}),GI("includes");var jz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return xv("a",{href:o,target:void 0===i?"_blank":i},t)}},Nz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function Lz(){return Az("w-e-insert-link")}var Iz=function(){function e(){this.title=lF("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=Lz(),this.urlInputId=Lz(),this.buttonId=Lz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return _z(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=BR(X_(lF("link.text"),r),2),u=a[0],s=Bp(a[1]),c=BR(X_(lF("link.url"),o),2),l=c[0],f=Bp(c[1]),d=BR(J_(i,lF("common.ok")),1)[0];if(null==this.$content){var p=Bp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();Fz(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(l),h.append(d),null==t||Zf.isCollapsed(t))s.val("");else{var v=kf.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function Rz(){return Az("w-e-update-link")}var Mz=function(){function e(){this.title=lF("link.edit"),this.iconSvg=nM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Rz(),this.buttonId=Rz()}return e.prototype.getSelectedLinkElem=function(e){var t=TA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return TA.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=BR(X_(lF("link.url"),t),2),o=r[0],i=Bp(r[1]),a=BR(J_(n,lF("common.ok")),1)[0];if(null==this.$content){var u=Bp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=TA.getSelectedNodeByType(e,"link"),o=r?Ff.string(r):"",i=u.find("#"+t).val();!function(e,t,n){AR(this,void 0,void 0,(function(){var r,o;return kR(this,(function(i){switch(i.label){case 0:return n?[4,Tz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,Bz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:kz(r)},gd.setNodes(e,o,{match:function(e){return TA.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var c=this.getValue(e);return i.val(c),setTimeout((function(){i.focus()})),s[0]},e}(),zz=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==TA.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||gd.unwrapNodes(e,{match:function(e){return TA.checkNodeType(e,"link")}})},e}(),Hz=function(){function e(){this.title=lF("link.view"),this.iconSvg=rM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=TA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.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")}},e}(),$z={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Vz={renderElems:[jz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Nz],menus:[{key:"insertLink",factory:function(){return new Iz},config:$z},{key:"editLink",factory:function(){return new Mz},config:$z},{key:"unLink",factory:function(){return new zz}},{key:"viewLink",factory:function(){return new Hz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(Sz);if(!t)return!1;var n=t[1];return!(!n||!Cz.test(n)&&!Dz.test(n))}(t)){if(!_z(o)){var r=o.selection;if(null!=r){var i=kf.string(o,r);Fz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=BR(e,2),n=t[0],i=t[1];return"link"!==TA.getNodeType(n)?r([n,i]):""===Ff.string(n)?gd.removeNodes(o,{at:i}):r([n,i])},o}},Uz=XF(1..valueOf),Zz=IF.RangeError,Wz=IF.RangeError,Gz=IF.String,qz=Math.floor,Kz=XF((function(e){var t=jL(ij(this)),n="",r=PN(e);if(r<0||r==1/0)throw Zz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Yz=XF("".slice),Xz=XF(1..toFixed),Jz=function(e,t,n){return 0===t?n:t%2==1?Jz(e,t-1,n*e):Jz(e*e,t/2,n)},Qz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=qz(o/1e7)},eH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=qz(r/t),r=r%t*1e7},tH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Gz(e[t]);n=""===n?r:n+Kz("0",7-r.length)+r}return n};function nH(e,t){return"w-e-image-container-"+TA.findKey(e,t).id}iL({target:"Number",proto:!0,forced:RF((function(){return"0.000"!==Xz(8e-5,3)||"1"!==Xz(.9,0)||"1.25"!==Xz(1.255,2)||"1000000000000000128"!==Xz(0xde0b6b3a7640080,0)}))||!RF((function(){Xz({})}))},{toFixed:function(e){var t,n,r,o,i=Uz(this),a=PN(e),u=[0,0,0,0,0,0],s="",c="0";if(a<0||a>20)throw Wz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return Gz(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Jz(2,69,1))-69)<0?i*Jz(2,-t,1):i/Jz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Qz(u,0,n),r=a;r>=7;)Qz(u,1e7,0),r-=7;for(Qz(u,Jz(10,r,1),0),r=t-1;r>=23;)eH(u,1<<23),r-=23;eH(u,1<<r),Qz(u,1,1),eH(u,2),c=tH(u)}else Qz(u,0,n),Qz(u,1<<-t,0),c=tH(u)+Kz("0",a);return a>0?s+((o=c.length)<=a?"0."+Kz("0",a-o)+c:Yz(c,0,o-a)+"."+Yz(c,o-a)):s+c}});var rH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,c=r.style,l=void 0===c?{}:c,f=l.width,d=void 0===f?"":f,p=l.height,h=void 0===p?"":p,v=TA.isNodeSelected(n,e),g={};d&&(g.width="100%"),h&&(g.height="100%");var y=xv("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Bp("body"),i=nH(e,t),a=r.width,u=r.height,s=0,c=0,l=0,f=!1,d=null;function p(t){d=function(){var e=Bp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");c=n.width(),l=n.height(),o.on("mousemove",h),o.on("mouseup",v);var r=TA.getHoverbar(e);r&&r.hideAndClean()}var h=$h((function(e){e.preventDefault();var t=e.clientX,n=c+(f?s-t:t-s),r=l*(n/c);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function v(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:OR(OR({},t.style),{width:r+"px",height:i+"px"})};gd.setNodes(e,a,{at:TA.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),xv("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Bp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,xv("div",{className:"w-e-image-dragger left-top"}),xv("div",{className:"w-e-image-dragger right-top"}),xv("div",{className:"w-e-image-dragger left-bottom"}),xv("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),xv("div",{id:nH(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},oH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:ER(r,"width"),height:ER(r,"height")},children:[{text:""}]}}};function iH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),AR(this,void 0,void 0,(function(){var i,a;return kR(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function aH(e,t,n){return AR(this,void 0,void 0,(function(){var r;return kR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function uH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),AR(this,void 0,void 0,(function(){var o,i,a;return kR(this,(function(u){switch(u.label){case 0:return[4,iH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,aH("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:kz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),TA.getSelectedNodeByType(e,"image")&&e.move(1),sH(e)||(gd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function sH(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||!!BR(kf.nodes(e,{match:function(t){var n=TA.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!kf.isVoid(e,t)},universal:!0}),1)[0]}function cH(){return Az("w-e-insert-image")}var lH=function(){function e(){this.title=lF("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=cH(),this.altInputId=cH(),this.hrefInputId=cH(),this.buttonId=cH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return sH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=BR(X_(lF("image.src"),r),2),s=u[0],c=Bp(u[1]),l=BR(X_(lF("image.desc"),o),2),f=l[0],d=Bp(l[1]),p=BR(X_(lF("image.link"),i),2),h=p[0],v=Bp(p[1]),g=BR(J_(a,lF("common.ok")),1)[0];if(null==this.$content){var y=Bp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),c.val(""),d.val(""),v.val(""),setTimeout((function(){c.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||uH(e,t,n,r))},e}(),fH=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==TA.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||gd.removeNodes(e,{match:function(e){return TA.checkNodeType(e,"image")}})},e}();function dH(){return Az("w-e-edit-image")}var pH=function(){function e(){this.title=lF("image.edit"),this.iconSvg=nM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=dH(),this.altInputId=dH(),this.hrefInputId=dH(),this.buttonId=dH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return TA.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||null==TA.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=BR(X_(lF("image.src"),r),2),c=s[0],l=Bp(s[1]),f=BR(X_(lF("image.desc"),o),2),d=f[0],p=Bp(f[1]),h=BR(X_(lF("image.link"),i),2),v=h[0],g=Bp(h[1]),y=BR(J_(a,lF("common.ok")),1)[0];if(null==this.$content){var m=Bp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(c),b.append(d),b.append(v),b.append(y);var w=u,x=w.src,E=w.alt,S=void 0===E?"":E,C=w.href,D=void 0===C?"":C;return l.val(x),p.val(S),g.val(D),setTimeout((function(){l.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),AR(this,void 0,void 0,(function(){var i,a,u,s,c,l;return kR(this,(function(f){switch(f.label){case 0:return[4,iH("editImage",e,t,n,r)];case 1:return f.sent()?[4,aH("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=TA.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:OR(OR({},void 0===u?{}:u),o)},gd.setNodes(e,s,{match:function(e){return TA.checkNodeType(e,"image")}}),c=TA.getSelectedNodeByType(e,"image"),(l=e.getMenuConfig("editImage").onUpdatedImage)&&l(c)),[2]}}))}))}(e,t,n,r,o))},e}(),hH=function(){function e(){this.title=lF("image.viewLink"),this.iconSvg=rM,this.tag="button"}return e.prototype.getValue=function(e){var t=TA.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.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")}},e}(),vH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return TA.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=TA.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:OR(OR({},void 0===o?{}:o),{width:this.value,height:""})};gd.setNodes(e,i,{match:function(e){return TA.checkNodeType(e,"image")}})}}},e}(),gH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return DR(t,e),t}(vH),yH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return DR(t,e),t}(vH),mH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return DR(t,e),t}(vH),bH={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},wH={renderElems:[rH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,c=void 0===s?{}:s,l=c.width,f=void 0===l?"":l,d=c.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[oH],menus:[{key:"insertImage",factory:function(){return new lH},config:bH},{key:"deleteImage",factory:function(){return new fH}},{key:"editImage",factory:function(){return new pH},config:bH},{key:"viewImageLink",factory:function(){return new hH}},{key:"imageWidth30",factory:function(){return new gH}},{key:"imageWidth50",factory:function(){return new yH}},{key:"imageWidth100",factory:function(){return new mH}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},xH={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=xv("div",{style:{margin:"5px 0"}},xv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},xv("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=TA.findPath(n,e),o={checked:t.target.checked};gd.setNodes(n,o,{at:r})}}})),xv("span",null,t));return o}},EH=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!TA.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);gd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),SH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Bp(e);0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},CH={renderElems:[xH],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 t=Bp(e).find("li"),n=Bp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[SH],menus:[{key:"todo",factory:function(){return new EH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Zf.isCollapsed(r)){var o=TA.getSelectedNodeByType(e,"todo");if(o&&0===Ff.string(o).length)return void gd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},DH={type:"blockquote",renderElem:function(e,t,n){return xv("blockquote",null,t)}},OH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},AH=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!TA.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";gd.setNodes(e,{type:n},{mode:"highest"})}},e}(),kH={key:"blockquote",factory:function(){return new AH}},TH=XF([].slice),BH=TL("slice"),_H=Uj("species"),PH=IF.Array,FH=Math.max;iL({target:"Array",proto:!0,forced:!BH},{slice:function(e,t){var n,r,o,i=aj(this),a=RN(i),u=NN(e,a),s=NN(void 0===t?a:t,a);if(uL(i)&&(n=i.constructor,(xL(n)&&(n===PH||uL(n.prototype))||sj(n)&&null===(n=n[_H]))&&(n=void 0),n===PH||void 0===n))return TH(i,u,s);for(r=new(void 0===n?PH:n)(FH(s-u,0)),o=0;u<s;u++,o++)u in i&&eR(r,o,i[u]);return r.length=o,r}});var jH={renderElems:[DH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[OH],menus:[kH],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=BR(kf.nodes(e,{match:function(e){return TA.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=TA.findPath(e,a),s=kf.end(e,u);if(Hf.equals(s,o.focus)){var c=Ff.string(a);if(c&&"\n"===c.slice(-1))return e.deleteBackward("character"),void gd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},NH=function(){function e(){this.title=lF("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}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Bp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Bp(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Bp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),LH={menus:[{key:"emotion",factory:function(){return new NH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},IH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},RH={selector:"font",preParseHtml:function(e){var t=Bp(e);if("font"!==xR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",IH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},MH=XF("".indexOf);iL({target:"String",proto:!0,forced:!HM("includes")},{includes:function(e){return!!~MH(jL(ij(this)),jL(MM(e)),arguments.length>1?arguments[1]:void 0)}});var zH,HH,$H=function(e){return e&&e.Math==Math&&e},VH=$H("object"==typeof globalThis&&globalThis)||$H("object"==typeof window&&window)||$H("object"==typeof self&&self)||$H("object"==typeof PF&&PF)||function(){return this}()||Function("return this")(),UH=Function.prototype,ZH=UH.apply,WH=UH.bind,GH=UH.call,qH="object"==typeof Reflect&&Reflect.apply||(WH?GH.bind(ZH):function(){return GH.apply(ZH,arguments)}),KH=Function.prototype,YH=KH.bind,XH=KH.call,JH=YH&&YH.bind(XH),QH=YH?function(e){return e&&JH(XH,e)}:function(e){return e&&function(){return XH.apply(e,arguments)}},e$=function(e){return"function"==typeof e},t$=function(e){try{return!!e()}catch(e){return!0}},n$=!t$((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r$=Function.prototype.call,o$=r$.bind?r$.bind(r$):function(){return r$.apply(r$,arguments)},i$={}.propertyIsEnumerable,a$=Object.getOwnPropertyDescriptor,u$=a$&&!i$.call({1:2},1)?function(e){var t=a$(this,e);return!!t&&t.enumerable}:i$,s$={f:u$},c$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l$=QH({}.toString),f$=QH("".slice),d$=function(e){return f$(l$(e),8,-1)},p$=VH.Object,h$=QH("".split),v$=t$((function(){return!p$("z").propertyIsEnumerable(0)}))?function(e){return"String"==d$(e)?h$(e,""):p$(e)}:p$,g$=VH.TypeError,y$=function(e){if(null==e)throw g$("Can't call method on "+e);return e},m$=function(e){return v$(y$(e))},b$=function(e){return"object"==typeof e?null!==e:e$(e)},w$={},x$=function(e){return e$(e)?e:void 0},E$=function(e,t){return arguments.length<2?x$(w$[e])||x$(VH[e]):w$[e]&&w$[e][t]||VH[e]&&VH[e][t]},S$=QH({}.isPrototypeOf),C$=E$("navigator","userAgent")||"",D$=VH.process,O$=VH.Deno,A$=D$&&D$.versions||O$&&O$.version,k$=A$&&A$.v8;k$&&(HH=(zH=k$.split("."))[0]>0&&zH[0]<4?1:+(zH[0]+zH[1])),!HH&&C$&&(!(zH=C$.match(/Edge\/(\d+)/))||zH[1]>=74)&&(zH=C$.match(/Chrome\/(\d+)/))&&(HH=+zH[1]);var T$=HH,B$=!!Object.getOwnPropertySymbols&&!t$((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&T$&&T$<41})),_$=B$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,P$=VH.Object,F$=_$?function(e){return"symbol"==typeof e}:function(e){var t=E$("Symbol");return e$(t)&&S$(t.prototype,P$(e))},j$=VH.String,N$=VH.TypeError,L$=function(e){if(e$(e))return e;throw N$(function(e){try{return j$(e)}catch(e){return"Object"}}(e)+" is not a function")},I$=VH.TypeError,R$=Object.defineProperty,M$=VH["__core-js_shared__"]||function(e,t){try{R$(VH,e,{value:t,configurable:!0,writable:!0})}catch(n){VH[e]=t}return t}("__core-js_shared__",{}),z$=FF((function(e){(e.exports=function(e,t){return M$[e]||(M$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),H$=VH.Object,$$=function(e){return H$(y$(e))},V$=QH({}.hasOwnProperty),U$=Object.hasOwn||function(e,t){return V$($$(e),t)},Z$=0,W$=Math.random(),G$=QH(1..toString),q$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+G$(++Z$+W$,36)},K$=z$("wks"),Y$=VH.Symbol,X$=Y$&&Y$.for,J$=_$?Y$:Y$&&Y$.withoutSetter||q$,Q$=function(e){if(!U$(K$,e)||!B$&&"string"!=typeof K$[e]){var t="Symbol."+e;B$&&U$(Y$,e)?K$[e]=Y$[e]:K$[e]=_$&&X$?X$(t):J$(t)}return K$[e]},eV=VH.TypeError,tV=Q$("toPrimitive"),nV=function(e){var t=function(e,t){if(!b$(e)||F$(e))return e;var n,r,o=null==(n=e[tV])?void 0:L$(n);if(o){if(void 0===t&&(t="default"),r=o$(o,e,t),!b$(r)||F$(r))return r;throw eV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&e$(n=e.toString)&&!b$(r=o$(n,e)))return r;if(e$(n=e.valueOf)&&!b$(r=o$(n,e)))return r;if("string"!==t&&e$(n=e.toString)&&!b$(r=o$(n,e)))return r;throw I$("Can't convert object to primitive value")}(e,t)}(e,"string");return F$(t)?t:t+""},rV=VH.document,oV=b$(rV)&&b$(rV.createElement),iV=function(e){return oV?rV.createElement(e):{}},aV=!n$&&!t$((function(){return 7!=Object.defineProperty(iV("div"),"a",{get:function(){return 7}}).a})),uV=Object.getOwnPropertyDescriptor,sV={f:n$?uV:function(e,t){if(e=m$(e),t=nV(t),aV)try{return uV(e,t)}catch(e){}if(U$(e,t))return c$(!o$(s$.f,e,t),e[t])}},cV=/#|\.prototype\./,lV=function(e,t){var n=dV[fV(e)];return n==hV||n!=pV&&(e$(t)?t$(t):!!t)},fV=lV.normalize=function(e){return String(e).replace(cV,".").toLowerCase()},dV=lV.data={},pV=lV.NATIVE="N",hV=lV.POLYFILL="P",vV=lV,gV=QH(QH.bind),yV=function(e,t){return L$(e),void 0===t?e:gV?gV(e,t):function(){return e.apply(t,arguments)}},mV=VH.String,bV=VH.TypeError,wV=function(e){if(b$(e))return e;throw bV(mV(e)+" is not an object")},xV=VH.TypeError,EV=Object.defineProperty,SV={f:n$?EV:function(e,t,n){if(wV(e),t=nV(t),wV(n),aV)try{return EV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw xV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},CV=n$?function(e,t,n){return SV.f(e,t,c$(1,n))}:function(e,t,n){return e[t]=n,e},DV=sV.f,OV=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return qH(e,this,arguments)};return t.prototype=e.prototype,t},AV=function(e,t){var n,r,o,i,a,u,s,c,l=e.target,f=e.global,d=e.stat,p=e.proto,h=f?VH:d?VH[l]:(VH[l]||{}).prototype,v=f?w$:w$[l]||CV(w$,l,{})[l],g=v.prototype;for(o in t)n=!vV(f?o:l+(d?".":"#")+o,e.forced)&&h&&U$(h,o),a=v[o],n&&(u=e.noTargetGet?(c=DV(h,o))&&c.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?yV(i,VH):e.wrap&&n?OV(i):p&&e$(i)?QH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&CV(s,"sham",!0),CV(v,o,s),p&&(U$(w$,r=l+"Prototype")||CV(w$,r,{}),CV(w$[r],o,i),e.real&&g&&!g[o]&&CV(g,o,i)))},kV=Array.isArray||function(e){return"Array"==d$(e)},TV=Math.ceil,BV=Math.floor,_V=function(e){var t=+e;return t!=t||0===t?0:(t>0?BV:TV)(t)},PV=Math.min,FV=function(e){return(t=e.length)>0?PV(_V(t),9007199254740991):0;var t},jV=function(e,t,n){var r=nV(t);r in e?SV.f(e,r,c$(0,n)):e[r]=n},NV={};NV[Q$("toStringTag")]="z";var LV="[object z]"===String(NV),IV=Q$("toStringTag"),RV=VH.Object,MV="Arguments"==d$(function(){return arguments}()),zV=LV?d$:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=RV(e),IV))?n:MV?d$(t):"Object"==(r=d$(t))&&e$(t.callee)?"Arguments":r},HV=QH(Function.toString);e$(M$.inspectSource)||(M$.inspectSource=function(e){return HV(e)});var $V=M$.inspectSource,VV=function(){},UV=[],ZV=E$("Reflect","construct"),WV=/^\s*(?:class|function)\b/,GV=QH(WV.exec),qV=!WV.exec(VV),KV=function(e){if(!e$(e))return!1;try{return ZV(VV,UV,e),!0}catch(e){return!1}},YV=!ZV||t$((function(){var e;return KV(KV.call)||!KV(Object)||!KV((function(){e=!0}))||e}))?function(e){if(!e$(e))return!1;switch(zV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qV||!!GV(WV,$V(e))}:KV,XV=Q$("species"),JV=VH.Array,QV=function(e,t){return new(function(e){var t;return kV(e)&&(t=e.constructor,(YV(t)&&(t===JV||kV(t.prototype))||b$(t)&&null===(t=t[XV]))&&(t=void 0)),void 0===t?JV:t}(e))(0===t?0:t)},eU=Q$("species"),tU=Q$("isConcatSpreadable"),nU=VH.TypeError,rU=T$>=51||!t$((function(){var e=[];return e[tU]=!1,e.concat()[0]!==e})),oU=T$>=51||!t$((function(){var e=[];return(e.constructor={})[eU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),iU=function(e){if(!b$(e))return!1;var t=e[tU];return void 0!==t?!!t:kV(e)};AV({target:"Array",proto:!0,forced:!rU||!oU},{concat:function(e){var t,n,r,o,i,a=$$(this),u=QV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(iU(i=-1===t?a:arguments[t])){if(s+(o=FV(i))>9007199254740991)throw nU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&jV(u,s,i[n])}else{if(s>=9007199254740991)throw nU("Maximum allowed index exceeded");jV(u,s++,i)}return u.length=s,u}});var aU,uU=VH.String,sU=function(e){if("Symbol"===zV(e))throw TypeError("Cannot convert a Symbol value to a string");return uU(e)},cU=Math.max,lU=Math.min,fU=function(e,t){var n=_V(e);return n<0?cU(n+t,0):lU(n,t)},dU=function(e){return function(t,n,r){var o,i=m$(t),a=FV(i),u=fU(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},pU={includes:dU(!0),indexOf:dU(!1)},hU={},vU=pU.indexOf,gU=QH([].push),yU=function(e,t){var n,r=m$(e),o=0,i=[];for(n in r)!U$(hU,n)&&U$(r,n)&&gU(i,n);for(;t.length>o;)U$(r,n=t[o++])&&(~vU(i,n)||gU(i,n));return i},mU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bU=Object.keys||function(e){return yU(e,mU)},wU=n$?Object.defineProperties:function(e,t){wV(e);for(var n,r=m$(t),o=bU(t),i=o.length,a=0;i>a;)SV.f(e,n=o[a++],r[n]);return e},xU=E$("document","documentElement"),EU=z$("keys"),SU=function(e){return EU[e]||(EU[e]=q$(e))},CU=SU("IE_PROTO"),DU=function(){},OU=function(e){return"<script>"+e+"<\/script>"},AU=function(e){e.write(OU("")),e.close();var t=e.parentWindow.Object;return e=null,t},kU=function(){try{aU=new ActiveXObject("htmlfile")}catch(e){}var e,t;kU="undefined"!=typeof document?document.domain&&aU?AU(aU):((t=iV("iframe")).style.display="none",xU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(OU("document.F=Object")),e.close(),e.F):AU(aU);for(var n=mU.length;n--;)delete kU.prototype[mU[n]];return kU()};hU[CU]=!0;var TU,BU,_U,PU=Object.create||function(e,t){var n;return null!==e?(DU.prototype=wV(e),n=new DU,DU.prototype=null,n[CU]=e):n=kU(),void 0===t?n:wU(n,t)},FU=mU.concat("length","prototype"),jU={f:Object.getOwnPropertyNames||function(e){return yU(e,FU)}},NU=VH.Array,LU=Math.max,IU=jU.f,RU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],MU={f:function(e){return RU&&"Window"==d$(e)?function(e){try{return IU(e)}catch(e){return function(e,t,n){for(var r=FV(e),o=fU(void 0,r),i=fU(r,r),a=NU(LU(i-o,0)),u=0;o<i;o++,u++)jV(a,u,e[o]);return a.length=u,a}(RU)}}(e):IU(m$(e))}},zU={f:Object.getOwnPropertySymbols},HU=QH([].slice),$U=function(e,t,n,r){r&&r.enumerable?e[t]=n:CV(e,t,n)},VU={f:Q$},UU=SV.f,ZU=function(e){var t=w$.Symbol||(w$.Symbol={});U$(t,e)||UU(t,e,{value:VU.f(e)})},WU=LV?{}.toString:function(){return"[object "+zV(this)+"]"},GU=SV.f,qU=Q$("toStringTag"),KU=function(e,t,n,r){if(e){var o=n?e:e.prototype;U$(o,qU)||GU(o,qU,{configurable:!0,value:t}),r&&!LV&&CV(o,"toString",WU)}},YU=VH.WeakMap,XU=e$(YU)&&/native code/.test($V(YU)),JU=VH.TypeError,QU=VH.WeakMap;if(XU||M$.state){var eZ=M$.state||(M$.state=new QU),tZ=QH(eZ.get),nZ=QH(eZ.has),rZ=QH(eZ.set);TU=function(e,t){if(nZ(eZ,e))throw new JU("Object already initialized");return t.facade=e,rZ(eZ,e,t),t},BU=function(e){return tZ(eZ,e)||{}},_U=function(e){return nZ(eZ,e)}}else{var oZ=SU("state");hU[oZ]=!0,TU=function(e,t){if(U$(e,oZ))throw new JU("Object already initialized");return t.facade=e,CV(e,oZ,t),t},BU=function(e){return U$(e,oZ)?e[oZ]:{}},_U=function(e){return U$(e,oZ)}}var iZ={set:TU,get:BU,has:_U,enforce:function(e){return _U(e)?BU(e):TU(e,{})},getterFor:function(e){return function(t){var n;if(!b$(t)||(n=BU(t)).type!==e)throw JU("Incompatible receiver, "+e+" required");return n}}},aZ=QH([].push),uZ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=$$(s),v=v$(h),g=yV(c,l),y=FV(v),m=0,b=f||QV,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:aZ(w,d)}else switch(e){case 4:return!1;case 7:aZ(w,d)}return i?-1:r||o?o:w}},sZ=[uZ(0),uZ(1),uZ(2),uZ(3),uZ(4),uZ(5),uZ(6),uZ(7)][0],cZ=SU("hidden"),lZ=Q$("toPrimitive"),fZ=iZ.set,dZ=iZ.getterFor("Symbol"),pZ=Object.prototype,hZ=VH.Symbol,vZ=hZ&&hZ.prototype,gZ=VH.TypeError,yZ=VH.QObject,mZ=E$("JSON","stringify"),bZ=sV.f,wZ=SV.f,xZ=MU.f,EZ=s$.f,SZ=QH([].push),CZ=z$("symbols"),DZ=z$("op-symbols"),OZ=z$("string-to-symbol-registry"),AZ=z$("symbol-to-string-registry"),kZ=z$("wks"),TZ=!yZ||!yZ.prototype||!yZ.prototype.findChild,BZ=n$&&t$((function(){return 7!=PU(wZ({},"a",{get:function(){return wZ(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=bZ(pZ,t);r&&delete pZ[t],wZ(e,t,n),r&&e!==pZ&&wZ(pZ,t,r)}:wZ,_Z=function(e,t){var n=CZ[e]=PU(vZ);return fZ(n,{type:"Symbol",tag:e,description:t}),n$||(n.description=t),n},PZ=function(e,t,n){e===pZ&&PZ(DZ,t,n),wV(e);var r=nV(t);return wV(n),U$(CZ,r)?(n.enumerable?(U$(e,cZ)&&e[cZ][r]&&(e[cZ][r]=!1),n=PU(n,{enumerable:c$(0,!1)})):(U$(e,cZ)||wZ(e,cZ,c$(1,{})),e[cZ][r]=!0),BZ(e,r,n)):wZ(e,r,n)},FZ=function(e,t){wV(e);var n=m$(t),r=bU(n).concat(IZ(n));return sZ(r,(function(t){n$&&!o$(jZ,n,t)||PZ(e,t,n[t])})),e},jZ=function(e){var t=nV(e),n=o$(EZ,this,t);return!(this===pZ&&U$(CZ,t)&&!U$(DZ,t))&&(!(n||!U$(this,t)||!U$(CZ,t)||U$(this,cZ)&&this[cZ][t])||n)},NZ=function(e,t){var n=m$(e),r=nV(t);if(n!==pZ||!U$(CZ,r)||U$(DZ,r)){var o=bZ(n,r);return!o||!U$(CZ,r)||U$(n,cZ)&&n[cZ][r]||(o.enumerable=!0),o}},LZ=function(e){var t=xZ(m$(e)),n=[];return sZ(t,(function(e){U$(CZ,e)||U$(hU,e)||SZ(n,e)})),n},IZ=function(e){var t=e===pZ,n=xZ(t?DZ:m$(e)),r=[];return sZ(n,(function(e){!U$(CZ,e)||t&&!U$(pZ,e)||SZ(r,CZ[e])})),r};if(B$||(vZ=(hZ=function(){if(S$(vZ,this))throw gZ("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?sU(arguments[0]):void 0,t=q$(e),n=function(e){this===pZ&&o$(n,DZ,e),U$(this,cZ)&&U$(this[cZ],t)&&(this[cZ][t]=!1),BZ(this,t,c$(1,e))};return n$&&TZ&&BZ(pZ,t,{configurable:!0,set:n}),_Z(t,e)}).prototype,$U(vZ,"toString",(function(){return dZ(this).tag})),$U(hZ,"withoutSetter",(function(e){return _Z(q$(e),e)})),s$.f=jZ,SV.f=PZ,sV.f=NZ,jU.f=MU.f=LZ,zU.f=IZ,VU.f=function(e){return _Z(Q$(e),e)},n$&&wZ(vZ,"description",{configurable:!0,get:function(){return dZ(this).description}})),AV({global:!0,wrap:!0,forced:!B$,sham:!B$},{Symbol:hZ}),sZ(bU(kZ),(function(e){ZU(e)})),AV({target:"Symbol",stat:!0,forced:!B$},{for:function(e){var t=sU(e);if(U$(OZ,t))return OZ[t];var n=hZ(t);return OZ[t]=n,AZ[n]=t,n},keyFor:function(e){if(!F$(e))throw gZ(e+" is not a symbol");if(U$(AZ,e))return AZ[e]},useSetter:function(){TZ=!0},useSimple:function(){TZ=!1}}),AV({target:"Object",stat:!0,forced:!B$,sham:!n$},{create:function(e,t){return void 0===t?PU(e):FZ(PU(e),t)},defineProperty:PZ,defineProperties:FZ,getOwnPropertyDescriptor:NZ}),AV({target:"Object",stat:!0,forced:!B$},{getOwnPropertyNames:LZ,getOwnPropertySymbols:IZ}),AV({target:"Object",stat:!0,forced:t$((function(){zU.f(1)}))},{getOwnPropertySymbols:function(e){return zU.f($$(e))}}),mZ){var RZ=!B$||t$((function(){var e=hZ();return"[null]"!=mZ([e])||"{}"!=mZ({a:e})||"{}"!=mZ(Object(e))}));AV({target:"JSON",stat:!0,forced:RZ},{stringify:function(e,t,n){var r=HU(arguments),o=t;if((b$(t)||void 0!==e)&&!F$(e))return kV(t)||(t=function(e,t){if(e$(o)&&(t=o$(o,this,e,t)),!F$(t))return t}),r[1]=t,qH(mZ,null,r)}})}if(!vZ[lZ]){var MZ=vZ.valueOf;$U(vZ,lZ,(function(e){return o$(MZ,this)}))}KU(hZ,"Symbol"),hU[cZ]=!0,ZU("asyncIterator"),ZU("hasInstance"),ZU("isConcatSpreadable"),ZU("iterator"),ZU("match"),ZU("matchAll"),ZU("replace"),ZU("search"),ZU("species"),ZU("split"),ZU("toPrimitive"),ZU("toStringTag"),ZU("unscopables"),KU(VH.JSON,"JSON",!0);var zZ,HZ,$Z,VZ=w$.Symbol,UZ={},ZZ=Function.prototype,WZ=n$&&Object.getOwnPropertyDescriptor,GZ=U$(ZZ,"name"),qZ={EXISTS:GZ,PROPER:GZ&&"something"===function(){}.name,CONFIGURABLE:GZ&&(!n$||n$&&WZ(ZZ,"name").configurable)},KZ=!t$((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),YZ=SU("IE_PROTO"),XZ=VH.Object,JZ=XZ.prototype,QZ=KZ?XZ.getPrototypeOf:function(e){var t=$$(e);if(U$(t,YZ))return t[YZ];var n=t.constructor;return e$(n)&&t instanceof n?n.prototype:t instanceof XZ?JZ:null},eW=Q$("iterator"),tW=!1;[].keys&&("next"in($Z=[].keys())?(HZ=QZ(QZ($Z)))!==Object.prototype&&(zZ=HZ):tW=!0);var nW=null==zZ||t$((function(){var e={};return zZ[eW].call(e)!==e}));zZ=nW?{}:PU(zZ),e$(zZ[eW])||$U(zZ,eW,(function(){return this}));var rW={IteratorPrototype:zZ,BUGGY_SAFARI_ITERATORS:tW},oW=rW.IteratorPrototype,iW=function(){return this};VH.String,VH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{QH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var aW=qZ.PROPER,uW=rW.BUGGY_SAFARI_ITERATORS,sW=Q$("iterator"),cW=function(){return this},lW=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=PU(oW,{next:c$(1,n)}),KU(e,o,!1,!0),UZ[o]=iW}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!uW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[sW]||p["@@iterator"]||o&&p[o],v=!uW&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=QZ(g.call(new e)))!==Object.prototype&&u.next&&(KU(u,f,!0,!0),UZ[f]=cW),aW&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return o$(h,this)}),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(uW||d||!(c in p))&&$U(p,c,s[c]);else AV({target:t,proto:!0,forced:uW||d},s);return a&&p[sW]!==v&&$U(p,sW,v,{name:o}),UZ[t]=v,s},fW=iZ.set,dW=iZ.getterFor("Array Iterator");lW(Array,"Array",(function(e,t){fW(this,{type:"Array Iterator",target:m$(e),index:0,kind:t})}),(function(){var e=dW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),UZ.Arguments=UZ.Array;var pW=Q$("toStringTag");for(var hW 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 vW=VH[hW],gW=vW&&vW.prototype;gW&&zV(gW)!==pW&&CV(gW,pW,hW),UZ[hW]=UZ.Array}var yW=VZ;ZU("asyncDispose"),ZU("dispose"),ZU("matcher"),ZU("metadata"),ZU("observable"),ZU("patternMatch"),ZU("replaceAll");var mW=yW,bW=QH("".charAt),wW=QH("".charCodeAt),xW=QH("".slice),EW=function(e){return function(t,n){var r,o,i=sU(y$(t)),a=_V(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=wW(i,a))<55296||r>56319||a+1===u||(o=wW(i,a+1))<56320||o>57343?e?bW(i,a):r:e?xW(i,a,a+2):o-56320+(r-55296<<10)+65536}},SW=(EW(!1),EW(!0)),CW=iZ.set,DW=iZ.getterFor("String Iterator");lW(String,"String",(function(e){CW(this,{type:"String Iterator",string:sU(e),index:0})}),(function(){var e,t=DW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=SW(n,r),t.index+=e.length,{value:e,done:!1})}));var OW=VU.f("iterator"),AW=FF((function(e){function t(n){return"function"==typeof mW&&"symbol"==typeof OW?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof mW&&e.constructor===mW&&e!==mW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),kW=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(AW),TW=kN.EXISTS,BW=iN.f,_W=Function.prototype,PW=XF(_W.toString),FW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jW=XF(FW.exec);MF&&!TW&&BW(_W,"name",{configurable:!0,get:function(){try{return jW(FW,PW(this))[1]}catch(e){return""}}});var NW=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=kf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!BR(kf.nodes(e,{match:function(t){return"pre"===TA.getNodeType(t)||!!kf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),LW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("fontSize.title"),t.iconSvg=aM,t.mark="fontSize",t}return DR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:lF("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===kW(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(NW),IW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("fontFamily.title"),t.iconSvg=uM,t.mark="fontFamily",t.selectPanelWidth=150,t}return DR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:lF("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===kW(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(NW),RW={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&gz(i,{fontSize:r}),o&&gz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Jf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((bR(t)||"span"!==xR(n=Bp(t)))&&(n=Bp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),wR(n)):t},preParseHtml:[RH],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Jf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=ER(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var c=n.getMenuConfig("fontFamily").fontFamilyList,l=void 0===c?[]:c,f=ER(r,"font-family").replace(/"/g,""),d=l.find((function(e){return e.value&&e.value===f}))||l.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new LW},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 IW},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},MW={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Bp(e),n=ER(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},zW=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=BR(kf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":BR(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),HW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("indent.decrease"),t.iconSvg=sM,t}return DR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){gd.setNodes(e,{indent:null},{match:function(e){return Ef.isElement(e)}})},t}(zW),$W=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("indent.increase"),t.iconSvg=cM,t}return DR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){gd.setNodes(e,{indent:"2em"},{match:function(e){return Ef.isElement(e)},mode:"highest"})},t}(zW),VW={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.indent,r=t;return n&&gz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Bp(t);return r.css("text-indent",n),wR(r)},preParseHtml:[MW],parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Ef.isElement(t))return t;var o=t,i=ER(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new $W}},{key:"delIndent",factory:function(){return new HW}}]},UW=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),ZW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.left"),t.iconSvg=lM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"left"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),WW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.right"),t.iconSvg=fM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"right"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),GW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.center"),t.iconSvg=dM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"center"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),qW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=lF("justify.justify"),t.iconSvg=pM,t}return DR(t,e),t.prototype.exec=function(e,t){gd.setNodes(e,{textAlign:"justify"},{match:function(t){return Ef.isElement(t)&&!e.isInline(t)}})},t}(UW),KW={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.textAlign,r=t;return n&&gz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Bp(t);return r.css("text-align",n),wR(r)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Ef.isElement(t))return t;var o=t,i=ER(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new ZW}},{key:"justifyRight",factory:function(){return new WW}},{key:"justifyCenter",factory:function(){return new GW}},{key:"justifyJustify",factory:function(){return new qW}}]},YW=function(){function e(){this.title=lF("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}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:lF("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=BR(kf.nodes(e,{match:function(e){var t=TA.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Ef.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){gd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),XW={renderStyle:function(e,t){if(!Ef.isElement(e))return t;var n=e.lineHeight,r=t;return n&&gz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Ef.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Bp(t);return r.css("line-height",n),wR(r)},parseStyleHtml:function(e,t,n){var r=Bp(e);if(!Ef.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=ER(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new YW},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},JW=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),QW=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),eG={menus:[{key:"redo",factory:function(){return new JW}},{key:"undo",factory:function(){return new QW}}]},tG={type:"divider",renderElem:function(e,t,n){return tv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:TA.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[tv("hr")])}},nG=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=TA.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){gd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),rG={renderElems:[tG],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 nG}}],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 t=BR(e,2),o=t[0],i=t[1];if("divider"!==TA.getNodeType(o))return n([o,i]);TA.isLastNode(r,o)&&gd.insertNodes(r,TA.genEmptyParagraph(),{at:[i[0]+1]})},r}},oG=AL.map;iL({target:"Array",proto:!0,forced:!TL("map")},{map:function(e){return oG(this,e,arguments.length>1?arguments[1]:void 0)}});var iG=XF([].join),aG=rj!=Object,uG=VR("join",",");iL({target:"Array",proto:!0,forced:aG||!uG},{join:function(e){return iG(aj(this),void 0===e?",":e)}});var sG=function(){function e(){this.title=lF("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"}return e.prototype.getSelectCodeElem=function(e){var t=TA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=TA.getParentNode(e,t);return null==n||"pre"!==TA.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=TA.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=TA.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Ff.string(t);gd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));gd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=kf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=TR(i),u=a.next();!u.done;u=a.next()){var s=BR(u.value,1)[0];s&&o.push(Ff.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}gd.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};gd.insertNodes(e,c,{mode:"highest"})},e}(),cG={key:"codeBlock",factory:function(){return new sG}};iL({target:"String",proto:!0,forced:LR("anchor")},{anchor:function(e){return NR(this,"a","name",e)}}),wI("match",(function(e,t,n){return[function(t){var n=ij(this),r=null==t?void 0:Oj(t,e);return r?HF(r,t,n):new RegExp(t)[e](jL(n))},function(e){var r=nN(this),o=jL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return NI(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],c=0;null!==(u=NI(r,o));){var l=jL(u[0]);s[c]=l,""===l&&(r.lastIndex=OI(o,IN(r.lastIndex),a)),c++}return 0===c?null:s}]}));var lG={type:"pre",renderElem:function(e,t,n){return xv("pre",null,t)}},fG={type:"code",renderElem:function(e,t,n){return xv("code",null,t)}},dG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Bp(e);return 0===(t=t.filter((function(e){return"code"===TA.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===TA.getNodeType(e)}))}}},pG={menus:[cG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=TA.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Ff.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=BR(e,2),r=t[0],i=t[1],a=TA.getNodeType(r);return"code"===a&&i.length<=1&&gd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(TA.isLastNode(o,r)&&gd.insertNodes(o,TA.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==TA.getNodeType(r.children[0])&&(gd.unwrapNodes(o),gd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=TA.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");kf.insertText(o,t)}else r(e)},o},renderElems:[lG,fG],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=Bp(e);if("code"!==xR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Bp(e)[0].textContent||""}]}}},dG]},hG=function(){function e(){this.title=lF("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}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),vG={menus:[{key:"fullScreen",factory:function(){return new hG}}]},gG=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Zf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];gd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(kf.start(e,r))}},e}(),yG=[CM,Ez,RW,VW,KW,XW,wH,rG,LH,Vz,pG,jH,fz,PR,CH,eG,vG,{menus:[{key:"enter",factory:function(){return new gG}}]}];cF("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),cF("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var mG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function bG(e){var t={exports:{}};return e(t,t.exports),t.exports}var wG,xG,EG=function(e){return e&&e.Math==Math&&e},SG=EG("object"==typeof globalThis&&globalThis)||EG("object"==typeof window&&window)||EG("object"==typeof self&&self)||EG("object"==typeof mG&&mG)||function(){return this}()||Function("return this")(),CG=Function.prototype,DG=CG.bind,OG=CG.call,AG=DG&&DG.bind(OG),kG=DG?function(e){return e&&AG(OG,e)}:function(e){return e&&function(){return OG.apply(e,arguments)}},TG=function(e){try{return!!e()}catch(e){return!0}},BG=kG({}.toString),_G=kG("".slice),PG=function(e){return _G(BG(e),8,-1)},FG=SG.Object,jG=kG("".split),NG=TG((function(){return!FG("z").propertyIsEnumerable(0)}))?function(e){return"String"==PG(e)?jG(e,""):FG(e)}:FG,LG=SG.TypeError,IG=function(e){if(null==e)throw LG("Can't call method on "+e);return e},RG=function(e){return NG(IG(e))},MG=Object.defineProperty,zG=function(e,t){try{MG(SG,e,{value:t,configurable:!0,writable:!0})}catch(n){SG[e]=t}return t},HG=SG["__core-js_shared__"]||zG("__core-js_shared__",{}),$G=bG((function(e){(e.exports=function(e,t){return HG[e]||(HG[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),VG=SG.Object,UG=function(e){return VG(IG(e))},ZG=kG({}.hasOwnProperty),WG=Object.hasOwn||function(e,t){return ZG(UG(e),t)},GG=0,qG=Math.random(),KG=kG(1..toString),YG=function(e){return"Symbol("+(void 0===e?"":e)+")_"+KG(++GG+qG,36)},XG=function(e){return"function"==typeof e},JG=function(e){return XG(e)?e:void 0},QG=function(e,t){return arguments.length<2?JG(SG[e]):SG[e]&&SG[e][t]},eq=QG("navigator","userAgent")||"",tq=SG.process,nq=SG.Deno,rq=tq&&tq.versions||nq&&nq.version,oq=rq&&rq.v8;oq&&(xG=(wG=oq.split("."))[0]>0&&wG[0]<4?1:+(wG[0]+wG[1])),!xG&&eq&&(!(wG=eq.match(/Edge\/(\d+)/))||wG[1]>=74)&&(wG=eq.match(/Chrome\/(\d+)/))&&(xG=+wG[1]);var iq,aq=xG,uq=!!Object.getOwnPropertySymbols&&!TG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aq&&aq<41})),sq=uq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,cq=$G("wks"),lq=SG.Symbol,fq=lq&&lq.for,dq=sq?lq:lq&&lq.withoutSetter||YG,pq=function(e){if(!WG(cq,e)||!uq&&"string"!=typeof cq[e]){var t="Symbol."+e;uq&&WG(lq,e)?cq[e]=lq[e]:cq[e]=sq&&fq?fq(t):dq(t)}return cq[e]},hq=function(e){return"object"==typeof e?null!==e:XG(e)},vq=SG.String,gq=SG.TypeError,yq=function(e){if(hq(e))return e;throw gq(vq(e)+" is not an object")},mq=!TG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),bq=SG.document,wq=hq(bq)&&hq(bq.createElement),xq=function(e){return wq?bq.createElement(e):{}},Eq=!mq&&!TG((function(){return 7!=Object.defineProperty(xq("div"),"a",{get:function(){return 7}}).a})),Sq=Function.prototype.call,Cq=Sq.bind?Sq.bind(Sq):function(){return Sq.apply(Sq,arguments)},Dq=kG({}.isPrototypeOf),Oq=SG.Object,Aq=sq?function(e){return"symbol"==typeof e}:function(e){var t=QG("Symbol");return XG(t)&&Dq(t.prototype,Oq(e))},kq=SG.String,Tq=function(e){try{return kq(e)}catch(e){return"Object"}},Bq=SG.TypeError,_q=function(e){if(XG(e))return e;throw Bq(Tq(e)+" is not a function")},Pq=function(e,t){var n=e[t];return null==n?void 0:_q(n)},Fq=SG.TypeError,jq=SG.TypeError,Nq=pq("toPrimitive"),Lq=function(e){var t=function(e,t){if(!hq(e)||Aq(e))return e;var n,r=Pq(e,Nq);if(r){if(void 0===t&&(t="default"),n=Cq(r,e,t),!hq(n)||Aq(n))return n;throw jq("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&XG(n=e.toString)&&!hq(r=Cq(n,e)))return r;if(XG(n=e.valueOf)&&!hq(r=Cq(n,e)))return r;if("string"!==t&&XG(n=e.toString)&&!hq(r=Cq(n,e)))return r;throw Fq("Can't convert object to primitive value")}(e,t)}(e,"string");return Aq(t)?t:t+""},Iq=SG.TypeError,Rq=Object.defineProperty,Mq={f:mq?Rq:function(e,t,n){if(yq(e),t=Lq(t),yq(n),Eq)try{return Rq(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Iq("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},zq=Math.ceil,Hq=Math.floor,$q=function(e){var t=+e;return t!=t||0===t?0:(t>0?Hq:zq)(t)},Vq=Math.max,Uq=Math.min,Zq=function(e,t){var n=$q(e);return n<0?Vq(n+t,0):Uq(n,t)},Wq=Math.min,Gq=function(e){return e>0?Wq($q(e),9007199254740991):0},qq=function(e){return Gq(e.length)},Kq=function(e){return function(t,n,r){var o,i=RG(t),a=qq(i),u=Zq(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Yq={includes:Kq(!0),indexOf:Kq(!1)},Xq={},Jq=Yq.indexOf,Qq=kG([].push),eK=function(e,t){var n,r=RG(e),o=0,i=[];for(n in r)!WG(Xq,n)&&WG(r,n)&&Qq(i,n);for(;t.length>o;)WG(r,n=t[o++])&&(~Jq(i,n)||Qq(i,n));return i},tK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nK=Object.keys||function(e){return eK(e,tK)},rK=mq?Object.defineProperties:function(e,t){yq(e);for(var n,r=RG(t),o=nK(t),i=o.length,a=0;i>a;)Mq.f(e,n=o[a++],r[n]);return e},oK=QG("document","documentElement"),iK=$G("keys"),aK=function(e){return iK[e]||(iK[e]=YG(e))},uK=aK("IE_PROTO"),sK=function(){},cK=function(e){return"<script>"+e+"<\/script>"},lK=function(e){e.write(cK("")),e.close();var t=e.parentWindow.Object;return e=null,t},fK=function(){try{iq=new ActiveXObject("htmlfile")}catch(e){}var e,t;fK="undefined"!=typeof document?document.domain&&iq?lK(iq):((t=xq("iframe")).style.display="none",oK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(cK("document.F=Object")),e.close(),e.F):lK(iq);for(var n=tK.length;n--;)delete fK.prototype[tK[n]];return fK()};Xq[uK]=!0;var dK=Object.create||function(e,t){var n;return null!==e?(sK.prototype=yq(e),n=new sK,sK.prototype=null,n[uK]=e):n=fK(),void 0===t?n:rK(n,t)},pK=pq("unscopables"),hK=Array.prototype;null==hK[pK]&&Mq.f(hK,pK,{configurable:!0,value:dK(null)});var vK=function(e){hK[pK][e]=!0},gK={},yK=kG(Function.toString);XG(HG.inspectSource)||(HG.inspectSource=function(e){return yK(e)});var mK,bK,wK,xK=HG.inspectSource,EK=SG.WeakMap,SK=XG(EK)&&/native code/.test(xK(EK)),CK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},DK=mq?function(e,t,n){return Mq.f(e,t,CK(1,n))}:function(e,t,n){return e[t]=n,e},OK=SG.TypeError,AK=SG.WeakMap;if(SK||HG.state){var kK=HG.state||(HG.state=new AK),TK=kG(kK.get),BK=kG(kK.has),_K=kG(kK.set);mK=function(e,t){if(BK(kK,e))throw new OK("Object already initialized");return t.facade=e,_K(kK,e,t),t},bK=function(e){return TK(kK,e)||{}},wK=function(e){return BK(kK,e)}}else{var PK=aK("state");Xq[PK]=!0,mK=function(e,t){if(WG(e,PK))throw new OK("Object already initialized");return t.facade=e,DK(e,PK,t),t},bK=function(e){return WG(e,PK)?e[PK]:{}},wK=function(e){return WG(e,PK)}}var FK,jK,NK,LK={set:mK,get:bK,has:wK,enforce:function(e){return wK(e)?bK(e):mK(e,{})},getterFor:function(e){return function(t){var n;if(!hq(t)||(n=bK(t)).type!==e)throw OK("Incompatible receiver, "+e+" required");return n}}},IK={}.propertyIsEnumerable,RK=Object.getOwnPropertyDescriptor,MK={f:RK&&!IK.call({1:2},1)?function(e){var t=RK(this,e);return!!t&&t.enumerable}:IK},zK=Object.getOwnPropertyDescriptor,HK={f:mq?zK:function(e,t){if(e=RG(e),t=Lq(t),Eq)try{return zK(e,t)}catch(e){}if(WG(e,t))return CK(!Cq(MK.f,e,t),e[t])}},$K=Function.prototype,VK=mq&&Object.getOwnPropertyDescriptor,UK=WG($K,"name"),ZK={EXISTS:UK,PROPER:UK&&"something"===function(){}.name,CONFIGURABLE:UK&&(!mq||mq&&VK($K,"name").configurable)},WK=bG((function(e){var t=ZK.CONFIGURABLE,n=LK.get,r=LK.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;XG(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!WG(i,"name")||t&&i.name!==f)&&DK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==SG?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:DK(e,n,i)):c?e[n]=i:zG(n,i)})(Function.prototype,"toString",(function(){return XG(this)&&n(this).source||xK(this)}))})),GK=tK.concat("length","prototype"),qK={f:Object.getOwnPropertyNames||function(e){return eK(e,GK)}},KK={f:Object.getOwnPropertySymbols},YK=kG([].concat),XK=QG("Reflect","ownKeys")||function(e){var t=qK.f(yq(e)),n=KK.f;return n?YK(t,n(e)):t},JK=function(e,t){for(var n=XK(t),r=Mq.f,o=HK.f,i=0;i<n.length;i++){var a=n[i];WG(e,a)||r(e,a,o(t,a))}},QK=/#|\.prototype\./,eY=function(e,t){var n=nY[tY(e)];return n==oY||n!=rY&&(XG(t)?TG(t):!!t)},tY=eY.normalize=function(e){return String(e).replace(QK,".").toLowerCase()},nY=eY.data={},rY=eY.NATIVE="N",oY=eY.POLYFILL="P",iY=eY,aY=HK.f,uY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?SG:c?SG[u]||zG(u,{}):(SG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=aY(n,r))&&a.value:n[r],!iY(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;JK(i,o)}(e.sham||o&&o.sham)&&DK(i,"sham",!0),WK(n,r,i,e)}},sY=!TG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cY=aK("IE_PROTO"),lY=SG.Object,fY=lY.prototype,dY=sY?lY.getPrototypeOf:function(e){var t=UG(e);if(WG(t,cY))return t[cY];var n=t.constructor;return XG(n)&&t instanceof n?n.prototype:t instanceof lY?fY:null},pY=pq("iterator"),hY=!1;[].keys&&("next"in(NK=[].keys())?(jK=dY(dY(NK)))!==Object.prototype&&(FK=jK):hY=!0);var vY=null==FK||TG((function(){var e={};return FK[pY].call(e)!==e}));vY&&(FK={}),XG(FK[pY])||WK(FK,pY,(function(){return this}));var gY={IteratorPrototype:FK,BUGGY_SAFARI_ITERATORS:hY},yY=Mq.f,mY=pq("toStringTag"),bY=function(e,t,n){e&&!WG(e=n?e:e.prototype,mY)&&yY(e,mY,{configurable:!0,value:t})},wY=gY.IteratorPrototype,xY=function(){return this},EY=SG.String,SY=SG.TypeError,CY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=kG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return yq(n),function(e){if("object"==typeof e||XG(e))return e;throw SY("Can't set "+EY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),DY=ZK.PROPER,OY=ZK.CONFIGURABLE,AY=gY.IteratorPrototype,kY=gY.BUGGY_SAFARI_ITERATORS,TY=pq("iterator"),BY=function(){return this},_Y=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=dK(wY,{next:CK(1,n)}),bY(e,o,!1),gK[o]=xY}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!kY&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[TY]||p["@@iterator"]||o&&p[o],v=!kY&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=dY(g.call(new e)))!==Object.prototype&&u.next&&(dY(u)!==AY&&(CY?CY(u,AY):XG(u[TY])||WK(u,TY,BY)),bY(u,f,!0)),DY&&"values"==o&&h&&"values"!==h.name&&(OY?DK(p,"name","values"):(d=!0,v=function(){return Cq(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(kY||d||!(c in p))&&WK(p,c,s[c]);else uY({target:t,proto:!0,forced:kY||d},s);return p[TY]!==v&&WK(p,TY,v,{name:o}),gK[t]=v,s},PY=LK.set,FY=LK.getterFor("Array Iterator"),jY=_Y(Array,"Array",(function(e,t){PY(this,{type:"Array Iterator",target:RG(e),index:0,kind:t})}),(function(){var e=FY(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");gK.Arguments=gK.Array,vK("keys"),vK("values"),vK("entries");var NY={};NY[pq("toStringTag")]="z";var LY="[object z]"===String(NY),IY=pq("toStringTag"),RY=SG.Object,MY="Arguments"==PG(function(){return arguments}()),zY=LY?PG:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=RY(e),IY))?n:MY?PG(t):"Object"==(r=PG(t))&&XG(t.callee)?"Arguments":r},HY=LY?{}.toString:function(){return"[object "+zY(this)+"]"};LY||WK(Object.prototype,"toString",HY,{unsafe:!0});var $Y=SG.String,VY=function(e){if("Symbol"===zY(e))throw TypeError("Cannot convert a Symbol value to a string");return $Y(e)},UY=kG("".charAt),ZY=kG("".charCodeAt),WY=kG("".slice),GY=function(e){return function(t,n){var r,o,i=VY(IG(t)),a=$q(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ZY(i,a))<55296||r>56319||a+1===u||(o=ZY(i,a+1))<56320||o>57343?e?UY(i,a):r:e?WY(i,a,a+2):o-56320+(r-55296<<10)+65536}},qY={codeAt:GY(!1),charAt:GY(!0)},KY=qY.charAt,YY=LK.set,XY=LK.getterFor("String Iterator");_Y(String,"String",(function(e){YY(this,{type:"String Iterator",string:VY(e),index:0})}),(function(){var e,t=XY(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=KY(n,r),t.index+=e.length,{value:e,done:!1})}));var JY=function(e,t,n){for(var r in t)WK(e,r,t[r],n);return e},QY=SG.Array,eX=Math.max,tX=qK.f,nX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rX={f:function(e){return nX&&"Window"==PG(e)?function(e){try{return tX(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=qq(e),s=Zq(void 0,u),c=Zq(u,u),l=QY(eX(c-s,0)),f=0;s<c;s++,f++)r=l,o=f,i=e[s],(a=Lq(o))in r?Mq.f(r,a,CK(0,i)):r[a]=i;return l.length=f,l}(nX)}}(e):tX(RG(e))}},oX=TG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),iX=Object.isExtensible,aX=TG((function(){iX(1)}))||oX?function(e){return!!hq(e)&&(!oX||"ArrayBuffer"!=PG(e))&&(!iX||iX(e))}:iX,uX=!TG((function(){return Object.isExtensible(Object.preventExtensions({}))})),sX=bG((function(e){var t=Mq.f,n=!1,r=YG("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=qK.f,t=kG([].splice),o={};o[r]=1,e(o).length&&(qK.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},uY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rX.f}))},fastKey:function(e,t){if(!hq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!WG(e,r)){if(!aX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!WG(e,r)){if(!aX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return uX&&n&&aX(e)&&!WG(e,r)&&i(e),e}};Xq[r]=!0})),cX=kG(kG.bind),lX=function(e,t){return _q(e),void 0===t?e:cX?cX(e,t):function(){return e.apply(t,arguments)}},fX=pq("iterator"),dX=Array.prototype,pX=pq("iterator"),hX=function(e){if(null!=e)return Pq(e,pX)||Pq(e,"@@iterator")||gK[zY(e)]},vX=SG.TypeError,gX=function(e,t,n){var r,o;yq(e);try{if(!(r=Pq(e,"return"))){if("throw"===t)throw n;return n}r=Cq(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return yq(r),n},yX=SG.TypeError,mX=function(e,t){this.stopped=e,this.result=t},bX=mX.prototype,wX=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=lX(t,f),g=function(e){return r&&gX(r,"normal",e),new mX(!0,e)},y=function(e){return d?(yq(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=hX(e)))throw yX(Tq(e)+" is not iterable");if(void 0!==(l=o)&&(gK.Array===l||dX[fX]===l)){for(i=0,a=qq(e);a>i;i++)if((u=y(e[i]))&&Dq(bX,u))return u;return new mX(!1)}r=function(e,t){var n=arguments.length<2?hX(e):t;if(_q(n))return yq(Cq(n,e));throw vX(Tq(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Cq(s,r)).done;){try{u=y(c.value)}catch(e){gX(r,"throw",e)}if("object"==typeof u&&u&&Dq(bX,u))return u}return new mX(!1)},xX=SG.TypeError,EX=function(e,t){if(Dq(t,e))return e;throw xX("Incorrect invocation")},SX=pq("iterator"),CX=!1;try{var DX=0,OX={next:function(){return{done:!!DX++}},return:function(){CX=!0}};OX[SX]=function(){return this},Array.from(OX,(function(){throw 2}))}catch(Mc){}var AX=Array.isArray||function(e){return"Array"==PG(e)},kX=function(){},TX=[],BX=QG("Reflect","construct"),_X=/^\s*(?:class|function)\b/,PX=kG(_X.exec),FX=!_X.exec(kX),jX=function(e){if(!XG(e))return!1;try{return BX(kX,TX,e),!0}catch(e){return!1}},NX=!BX||TG((function(){var e;return jX(jX.call)||!jX(Object)||!jX((function(){e=!0}))||e}))?function(e){if(!XG(e))return!1;switch(zY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return FX||!!PX(_X,xK(e))}:jX,LX=pq("species"),IX=SG.Array,RX=function(e,t){return new(function(e){var t;return AX(e)&&(t=e.constructor,(NX(t)&&(t===IX||AX(t.prototype))||hq(t)&&null===(t=t[LX]))&&(t=void 0)),void 0===t?IX:t}(e))(0===t?0:t)},MX=kG([].push),zX=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=UG(s),v=NG(h),g=lX(c,l),y=qq(v),m=0,b=f||RX,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:MX(w,d)}else switch(e){case 4:return!1;case 7:MX(w,d)}return i?-1:r||o?o:w}},HX={forEach:zX(0),map:zX(1),filter:zX(2),some:zX(3),every:zX(4),find:zX(5),findIndex:zX(6),filterReject:zX(7)},$X=sX.getWeakData,VX=LK.set,UX=LK.getterFor,ZX=HX.find,WX=HX.findIndex,GX=kG([].splice),qX=0,KX=function(e){return e.frozen||(e.frozen=new YX)},YX=function(){this.entries=[]},XX=function(e,t){return ZX(e.entries,(function(e){return e[0]===t}))};YX.prototype={get:function(e){var t=XX(this,e);if(t)return t[1]},has:function(e){return!!XX(this,e)},set:function(e,t){var n=XX(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=WX(this.entries,(function(t){return t[0]===e}));return~t&&GX(this.entries,t,1),!!~t}};var JX,QX={getConstructor:function(e,t,n,r){var o=e((function(e,o){EX(e,i),VX(e,{type:t,id:qX++,frozen:void 0}),null!=o&&wX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=UX(t),u=function(e,t,n){var r=a(e),o=$X(yq(t),!0);return!0===o?KX(r).set(t,n):o[r.id]=n,e};return JY(i,{delete:function(e){var t=a(this);if(!hq(e))return!1;var n=$X(e);return!0===n?KX(t).delete(e):n&&WG(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!hq(e))return!1;var n=$X(e);return!0===n?KX(t).has(e):n&&WG(n,t.id)}}),JY(i,n?{get:function(e){var t=a(this);if(hq(e)){var n=$X(e);return!0===n?KX(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},eJ=LK.enforce,tJ=!SG.ActiveXObject&&"ActiveXObject"in SG,nJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},rJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=SG[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=kG(u[e]);WK(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!hq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!hq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!hq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(iY(e,!XG(a)||!(o||u.forEach&&!TG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),sX.enable();else if(iY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=TG((function(){f.has(1)})),h=function(e,t){if(!CX)return!1;var n=!1;try{var r={};r[SX]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&TG((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){EX(e,u);var n=function(e,t,n){var r,o;return CY&&XG(r=t.constructor)&&r!==n&&hq(o=r.prototype)&&o!==n.prototype&&CY(e,o),e}(new a,e,s);return null!=t&&wX(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,uY({global:!0,forced:s!=a},c),bY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",nJ,QX);if(SK&&tJ){JX=QX.getConstructor(nJ,"WeakMap",!0),sX.enable();var oJ=rJ.prototype,iJ=kG(oJ.delete),aJ=kG(oJ.has),uJ=kG(oJ.get),sJ=kG(oJ.set);JY(oJ,{delete:function(e){if(hq(e)&&!aX(e)){var t=eJ(this);return t.frozen||(t.frozen=new JX),iJ(this,e)||t.frozen.delete(e)}return iJ(this,e)},has:function(e){if(hq(e)&&!aX(e)){var t=eJ(this);return t.frozen||(t.frozen=new JX),aJ(this,e)||t.frozen.has(e)}return aJ(this,e)},get:function(e){if(hq(e)&&!aX(e)){var t=eJ(this);return t.frozen||(t.frozen=new JX),aJ(this,e)?uJ(this,e):t.frozen.get(e)}return uJ(this,e)},set:function(e,t){if(hq(e)&&!aX(e)){var n=eJ(this);n.frozen||(n.frozen=new JX),aJ(this,e)?sJ(this,e,t):n.frozen.set(e,t)}else sJ(this,e,t);return this}})}var cJ={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=xq("span").classList,fJ=lJ&&lJ.constructor&&lJ.constructor.prototype,dJ=fJ===Object.prototype?void 0:fJ,pJ=pq("iterator"),hJ=pq("toStringTag"),vJ=jY.values,gJ=function(e,t){if(e){if(e[pJ]!==vJ)try{DK(e,pJ,vJ)}catch(t){e[pJ]=vJ}if(e[hJ]||DK(e,hJ,t),cJ[t])for(var n in jY)if(e[n]!==jY[n])try{DK(e,n,jY[n])}catch(t){e[n]=jY[n]}}};for(var yJ in cJ)gJ(SG[yJ]&&SG[yJ].prototype,yJ);gJ(dJ,"DOMTokenList");var mJ=new WeakMap,bJ={type:"list-item",renderElem:function(e,t,n){mJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var c=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,c=t,l=TA.findPath(e,c);if(0===l[0])return 1;for(;l[0]>0;){var f=If.previous(l),d=kf.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}c=p,l=f}return s}(n,e);s=c+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var l=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Jf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return xv("div",{style:u},xv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:l},"data-w-e-reserve":!0},s),xv("span",null,t))}},wJ=function(e,t){return wJ=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])},wJ(e,t)
|
|
95
95
|
/*! *****************************************************************************
|
|
96
96
|
Copyright (c) Microsoft Corporation.
|
|
97
97
|
|
|
@@ -105,7 +105,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
105
105
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
106
106
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
107
107
|
PERFORMANCE OF THIS SOFTWARE.
|
|
108
|
-
***************************************************************************** */};function xJ(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}wJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function EJ(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function SJ(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||t-- >0)&&!(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 CJ(e){return kf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===TA.findPath(e,t).length}})}var DJ=Yq.includes;uY({target:"Array",proto:!0},{includes:function(e){return DJ(this,e,arguments.length>1?arguments[1]:void 0)}}),vK("includes");var OJ,AJ,kJ=function(){var e=yq(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},TJ=SG.RegExp,BJ=TG((function(){var e=TJ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),_J=BJ||TG((function(){return!TJ("a","y").sticky})),PJ={BROKEN_CARET:BJ||TG((function(){var e=TJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:_J,UNSUPPORTED_Y:BJ},FJ=SG.RegExp,jJ=TG((function(){var e=FJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),NJ=SG.RegExp,LJ=TG((function(){var e=NJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),IJ=LK.get,RJ=$G("native-string-replace",String.prototype.replace),MJ=RegExp.prototype.exec,zJ=MJ,HJ=kG("".charAt),$J=kG("".indexOf),VJ=kG("".replace),UJ=kG("".slice),ZJ=(AJ=/b*/g,Cq(MJ,OJ=/a/,"a"),Cq(MJ,AJ,"a"),0!==OJ.lastIndex||0!==AJ.lastIndex),WJ=PJ.BROKEN_CARET,GJ=void 0!==/()??/.exec("")[1];(ZJ||GJ||WJ||jJ||LJ)&&(zJ=function(e){var t,n,r,o,i,a,u,s=this,c=IJ(s),l=VY(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Cq(zJ,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=WJ&&s.sticky,h=Cq(kJ,s),v=s.source,g=0,y=l;if(p&&(h=VJ(h,"y",""),-1===$J(h,"g")&&(h+="g"),y=UJ(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==HJ(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),GJ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),ZJ&&(r=s.lastIndex),o=Cq(MJ,p?n:s,y),p?o?(o.input=UJ(o.input,g),o[0]=UJ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ZJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),GJ&&o&&o.length>1&&Cq(RJ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=dK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var qJ=zJ;uY({target:"RegExp",proto:!0,forced:/./.exec!==qJ},{exec:qJ});var KJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return TA.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?gd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):gd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),YJ='<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>',XJ='<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>',JJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=lF("listModule.unOrderedList"),t.iconSvg=YJ,t}return xJ(t,e),t}(KJ),QJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=lF("listModule.orderedList"),t.iconSvg=XJ,t}return xJ(t,e),t}(KJ),eQ={key:"bulletedList",factory:function(){return new JJ}},tQ={key:"numberedList",factory:function(){return new QJ}},nQ=[],rQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=mJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=TA.findPath(t,e);if(0===s[0])return u+1;var c=If.previous(s),l=kf.node(t,c);if(!l)return 0;var f=SJ(l,1)[0];if(TA.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",nQ.push(i);var s=function(e){var t=mJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=TA.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var c=If.next(s),l=kf.node(t,c);if(!l)return 0;var f=SJ(l,1)[0];if(TA.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+nQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},oQ=pq("species"),iQ=HX.filter,aQ=aq>=51||!TG((function(){var e=[];return(e.constructor={})[oQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));uY({target:"Array",proto:!0,forced:!aQ},{filter:function(e){return iQ(this,e,arguments.length>1?arguments[1]:void 0)}});var uQ=Function.prototype,sQ=uQ.apply,cQ=uQ.bind,lQ=uQ.call,fQ="object"==typeof Reflect&&Reflect.apply||(cQ?lQ.bind(sQ):function(){return lQ.apply(sQ,arguments)}),dQ=(pq("species"),RegExp.prototype),pQ=qY.charAt,hQ=function(e,t,n){return t+(n?pQ(e,t).length:1)},vQ=Math.floor,gQ=kG("".charAt),yQ=kG("".replace),mQ=kG("".slice),bQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wQ=/\$([$&'`]|\d{1,2})/g,xQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=wQ;return void 0!==o&&(o=UG(o),s=bQ),yQ(i,s,(function(i,s){var c;switch(gQ(s,0)){case"$":return"$";case"&":return e;case"`":return mQ(t,0,n);case"'":return mQ(t,a);case"<":c=o[mQ(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=vQ(l/10);return 0===f?i:f<=u?void 0===r[f-1]?gQ(s,1):r[f-1]+gQ(s,1):i}c=r[l-1]}return void 0===c?"":c}))},EQ=SG.TypeError,SQ=function(e,t){var n=e.exec;if(XG(n)){var r=Cq(n,e,t);return null!==r&&yq(r),r}if("RegExp"===PG(e))return Cq(qJ,e,t);throw EQ("RegExp#exec called on incompatible receiver")},CQ=pq("replace"),DQ=Math.max,OQ=Math.min,AQ=kG([].concat),kQ=kG([].push),TQ=kG("".indexOf),BQ=kG("".slice),_Q="$0"==="a".replace(/./,"$0"),PQ=!!/./[CQ]&&""===/./[CQ]("a","$0");!function(e,t,n,r){var o=pq(e),i=!TG((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!TG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=kG(/./[o]),s=function(e,t,n){var r=PQ?"$":"$0";return[function(e,n){var r=IG(this),o=null==e?void 0:Pq(e,CQ);return o?Cq(o,e,r,n):Cq(t,VY(r),e,n)},function(e,o){var i=yq(this),a=VY(e);if("string"==typeof o&&-1===TQ(o,r)&&-1===TQ(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=XG(o);s||(o=VY(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=SQ(i,a);if(null===d)break;if(kQ(f,d),!c)break;""===VY(d[0])&&(i.lastIndex=hQ(a,Gq(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=VY((d=f[g])[0]),m=DQ(OQ($q(d.index),a.length),0),b=[],w=1;w<d.length;w++)kQ(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=AQ([y],b,m,a);void 0!==x&&kQ(E,x);var S=VY(fQ(o,void 0,E))}else S=xQ(y,a,m,b,x,o);m>=v&&(h+=BQ(a,v,m)+S,v=m+y.length)}return h+BQ(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=kG(e),s=t.exec;return s===qJ||s===dQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));WK(String.prototype,e,s[0]),WK(dQ,o,s[1])}}("replace",0,!!TG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!_Q||PQ);var FQ=SG.TypeError,jQ=function(e,t,n,r,o,i,a,u){for(var s,c,l=o,f=0,d=!!a&&lX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&AX(s))c=qq(s),l=jQ(e,t,s,c,l,i-1)-1;else{if(l>=9007199254740991)throw FQ("Exceed the acceptable array length");e[l]=s}l++}f++}return l},NQ=jQ;function LQ(e){return e.length?e[0].tagName.toLowerCase():""}uY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=UG(this),n=qq(t),r=RX(t,0);return r.length=NQ(r,t,t,n,0,void 0===e?1:$q(e)),r}}),vK("flat"),uY({global:!0},{globalThis:SG}),Xp&&(Bp.fn.append=Xp),jp&&(Bp.fn.attr=jp),Qp&&(Bp.fn.parent=Qp);var IQ={renderElems:[bJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Zf.isExpanded(n))t(e);else{var r=TA.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?gd.setNodes(o,{level:a-1}):gd.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Zf.isCollapsed(a)){var u=TA.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,c=void 0===s?0:s;return void gd.setNodes(o,{level:c+1})}}if(Zf.isExpanded(a)){var l=0,f=!1;try{for(var d=EJ(CJ(o)),p=d.next();!p.done;p=d.next()){var h=SJ(p.value,1)[0];"list-item"===TA.getNodeType(h)?l++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||l<=1)return void n();try{for(var v=EJ(CJ(o)),g=v.next();!g.done;g=v.next()){var y=SJ(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,gd.setNodes(o,{level:c+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=SJ(e,2),n=t[0],i=t[1],a=TA.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||gd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[eQ,tQ],elemsToHtml:[rQ],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=Bp(e);0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===LQ(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=LQ(n);"ul"===r||"ol"===r;)r=LQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},RQ=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",v="[object RegExp]",g="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",E=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[i]=C[a]=C[w]=C[u]=C[x]=C[s]=C[c]=C[l]=C[f]=C[d]=C[p]=C[v]=C[g]=C[y]=C[b]=!1;var D="object"==typeof r&&r&&r.Object===Object&&r,O="object"==typeof self&&self&&self.Object===Object&&self,A=D||O||Function("return this")(),k=t&&!t.nodeType&&t,T=k&&e&&!e.nodeType&&e,B=T&&T.exports===k,_=B&&D.process,P=function(){try{return _&&_.binding&&_.binding("util")}catch(e){}}(),F=P&&P.isTypedArray;function j(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,R=Function.prototype,M=Object.prototype,z=A["__core-js_shared__"],H=R.toString,$=M.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U=M.toString,Z=RegExp("^"+H.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,G=A.Symbol,q=A.Uint8Array,K=M.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,J=Object.getOwnPropertySymbols,Q=W?W.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Oe(A,"DataView"),ne=Oe(A,"Map"),re=Oe(A,"Promise"),oe=Oe(A,"Set"),ie=Oe(A,"WeakMap"),ae=Oe(Object,"create"),ue=Be(te),se=Be(ne),ce=Be(re),le=Be(oe),fe=Be(ie),de=G?G.prototype:void 0,pe=de?de.valueOf:void 0;function he(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 ve(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 ge(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 ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ve(e);this.size=t.size}function be(e,t){for(var n=e.length;n--;)if(_e(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=$.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=U.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return U.call(e)}(e)}function xe(e){return Re(e)&&we(e)==i}function Ee(e,t,n,r,o){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=Fe(e),b=Fe(t),E=h?a:ke(e),S=b?a:ke(t),C=(E=E==i?p:E)==p,D=(S=S==i?p:S)==p,O=E==S;if(O&&je(e)){if(!je(t))return!1;h=!0,C=!1}if(O&&!C)return l||(l=new me),h||Me(e)?Se(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case u:case s:case d:return _e(+e,+t);case c:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case f:var l=N;case g:var p=1&r;if(l||(l=L),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Se(l(e),l(t),r,o,i,a);return a.delete(e),b;case m:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,E,n,r,o,l);if(!(1&n)){var A=C&&$.call(e,"__wrapped__"),k=D&&$.call(t,"__wrapped__");if(A||k){var T=A?e.value():e,B=k?t.value():t;return l||(l=new me),o(T,B,n,r,l)}}return!!O&&(l||(l=new me),function(e,t,n,r,o,i){var a=1&n,u=Ce(e),s=u.length;if(s!=Ce(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:$.call(t,l)))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=a;++c<s;){var h=e[l=u[c]],v=t[l];if(r)var g=a?r(v,h,l,t,e,i):r(h,v,l,e,t,i);if(!(void 0===g?h===v||o(h,v,n,r,i):g)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,l))}(e,t,n,r,Ee,o))}function Se(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var p=e[l],h=t[l];if(r)var v=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!j(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Ce(e){return function(e,t,n){var r=t(e);return Fe(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,ze,Ae)}function De(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!V&&V in e}(e))&&(Ne(e)?Z:E).test(Be(e))}(n)?n:void 0}he.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:$.call(t,e)},he.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return be(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=be(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(ne||ve),string:new he}},ge.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return De(this,e).get(e)},ge.prototype.has=function(e){return De(this,e).has(e)},ge.prototype.set=function(e,t){var n=De(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=J?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(J(e),(function(t){return K.call(e,t)})))}:function(){return[]},ke=we;function Te(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _e(e,t){return e===t||e!=e&&t!=t}(te&&ke(new te(new ArrayBuffer(1)))!=x||ne&&ke(new ne)!=f||re&&ke(re.resolve())!=h||oe&&ke(new oe)!=g||ie&&ke(new ie)!=b)&&(ke=function(e){var t=we(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ue:return x;case se:return f;case ce:return h;case le:return g;case fe:return b}return t});var Pe=xe(function(){return arguments}())?xe:function(e){return Re(e)&&$.call(e,"callee")&&!K.call(e,"callee")},Fe=Array.isArray,je=Q||function(){return!1};function Ne(e){if(!Ie(e))return!1;var t=we(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Me=F?function(e){return function(t){return e(t)}}(F):function(e){return Re(e)&&Le(e.length)&&!!C[we(e)]};function ze(e){return null!=(t=e)&&Le(t.length)&&!Ne(t)?function(e,t){var n=Fe(e),r=!n&&Pe(e),o=!n&&!r&&je(e),i=!n&&!r&&!o&&Me(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var c in e)!t&&!$.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Te(c,s))||u.push(c);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||M))return ee(e);var t,n,r=[];for(var o in Object(e))$.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}}));cF("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"}}),cF("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var MQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function zQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var HQ,$Q,VQ=function(e){return e&&e.Math==Math&&e},UQ=VQ("object"==typeof globalThis&&globalThis)||VQ("object"==typeof window&&window)||VQ("object"==typeof self&&self)||VQ("object"==typeof MQ&&MQ)||function(){return this}()||Function("return this")(),ZQ=function(e){try{return!!e()}catch(e){return!0}},WQ=!ZQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),GQ=Function.prototype.call,qQ=GQ.bind?GQ.bind(GQ):function(){return GQ.apply(GQ,arguments)},KQ={}.propertyIsEnumerable,YQ=Object.getOwnPropertyDescriptor,XQ={f:YQ&&!KQ.call({1:2},1)?function(e){var t=YQ(this,e);return!!t&&t.enumerable}:KQ},JQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},QQ=Function.prototype,e0=QQ.bind,t0=QQ.call,n0=e0&&e0.bind(t0),r0=e0?function(e){return e&&n0(t0,e)}:function(e){return e&&function(){return t0.apply(e,arguments)}},o0=r0({}.toString),i0=r0("".slice),a0=function(e){return i0(o0(e),8,-1)},u0=UQ.Object,s0=r0("".split),c0=ZQ((function(){return!u0("z").propertyIsEnumerable(0)}))?function(e){return"String"==a0(e)?s0(e,""):u0(e)}:u0,l0=UQ.TypeError,f0=function(e){if(null==e)throw l0("Can't call method on "+e);return e},d0=function(e){return c0(f0(e))},p0=function(e){return"function"==typeof e},h0=function(e){return"object"==typeof e?null!==e:p0(e)},v0=function(e){return p0(e)?e:void 0},g0=function(e,t){return arguments.length<2?v0(UQ[e]):UQ[e]&&UQ[e][t]},y0=r0({}.isPrototypeOf),m0=g0("navigator","userAgent")||"",b0=UQ.process,w0=UQ.Deno,x0=b0&&b0.versions||w0&&w0.version,E0=x0&&x0.v8;E0&&($Q=(HQ=E0.split("."))[0]>0&&HQ[0]<4?1:+(HQ[0]+HQ[1])),!$Q&&m0&&(!(HQ=m0.match(/Edge\/(\d+)/))||HQ[1]>=74)&&(HQ=m0.match(/Chrome\/(\d+)/))&&($Q=+HQ[1]);var S0=$Q,C0=!!Object.getOwnPropertySymbols&&!ZQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&S0&&S0<41})),D0=C0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,O0=UQ.Object,A0=D0?function(e){return"symbol"==typeof e}:function(e){var t=g0("Symbol");return p0(t)&&y0(t.prototype,O0(e))},k0=UQ.String,T0=function(e){try{return k0(e)}catch(e){return"Object"}},B0=UQ.TypeError,_0=function(e){if(p0(e))return e;throw B0(T0(e)+" is not a function")},P0=function(e,t){var n=e[t];return null==n?void 0:_0(n)},F0=UQ.TypeError,j0=Object.defineProperty,N0=function(e,t){try{j0(UQ,e,{value:t,configurable:!0,writable:!0})}catch(n){UQ[e]=t}return t},L0=UQ["__core-js_shared__"]||N0("__core-js_shared__",{}),I0=zQ((function(e){(e.exports=function(e,t){return L0[e]||(L0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),R0=UQ.Object,M0=function(e){return R0(f0(e))},z0=r0({}.hasOwnProperty),H0=Object.hasOwn||function(e,t){return z0(M0(e),t)},$0=0,V0=Math.random(),U0=r0(1..toString),Z0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+U0(++$0+V0,36)},W0=I0("wks"),G0=UQ.Symbol,q0=G0&&G0.for,K0=D0?G0:G0&&G0.withoutSetter||Z0,Y0=function(e){if(!H0(W0,e)||!C0&&"string"!=typeof W0[e]){var t="Symbol."+e;C0&&H0(G0,e)?W0[e]=G0[e]:W0[e]=D0&&q0?q0(t):K0(t)}return W0[e]},X0=UQ.TypeError,J0=Y0("toPrimitive"),Q0=function(e){var t=function(e,t){if(!h0(e)||A0(e))return e;var n,r=P0(e,J0);if(r){if(void 0===t&&(t="default"),n=qQ(r,e,t),!h0(n)||A0(n))return n;throw X0("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&p0(n=e.toString)&&!h0(r=qQ(n,e)))return r;if(p0(n=e.valueOf)&&!h0(r=qQ(n,e)))return r;if("string"!==t&&p0(n=e.toString)&&!h0(r=qQ(n,e)))return r;throw F0("Can't convert object to primitive value")}(e,t)}(e,"string");return A0(t)?t:t+""},e1=UQ.document,t1=h0(e1)&&h0(e1.createElement),n1=function(e){return t1?e1.createElement(e):{}},r1=!WQ&&!ZQ((function(){return 7!=Object.defineProperty(n1("div"),"a",{get:function(){return 7}}).a})),o1=Object.getOwnPropertyDescriptor,i1={f:WQ?o1:function(e,t){if(e=d0(e),t=Q0(t),r1)try{return o1(e,t)}catch(e){}if(H0(e,t))return JQ(!qQ(XQ.f,e,t),e[t])}},a1=UQ.String,u1=UQ.TypeError,s1=function(e){if(h0(e))return e;throw u1(a1(e)+" is not an object")},c1=UQ.TypeError,l1=Object.defineProperty,f1={f:WQ?l1:function(e,t,n){if(s1(e),t=Q0(t),s1(n),r1)try{return l1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},d1=WQ?function(e,t,n){return f1.f(e,t,JQ(1,n))}:function(e,t,n){return e[t]=n,e},p1=r0(Function.toString);p0(L0.inspectSource)||(L0.inspectSource=function(e){return p1(e)});var h1,v1,g1,y1=L0.inspectSource,m1=UQ.WeakMap,b1=p0(m1)&&/native code/.test(y1(m1)),w1=I0("keys"),x1=function(e){return w1[e]||(w1[e]=Z0(e))},E1={},S1=UQ.TypeError,C1=UQ.WeakMap;if(b1||L0.state){var D1=L0.state||(L0.state=new C1),O1=r0(D1.get),A1=r0(D1.has),k1=r0(D1.set);h1=function(e,t){if(A1(D1,e))throw new S1("Object already initialized");return t.facade=e,k1(D1,e,t),t},v1=function(e){return O1(D1,e)||{}},g1=function(e){return A1(D1,e)}}else{var T1=x1("state");E1[T1]=!0,h1=function(e,t){if(H0(e,T1))throw new S1("Object already initialized");return t.facade=e,d1(e,T1,t),t},v1=function(e){return H0(e,T1)?e[T1]:{}},g1=function(e){return H0(e,T1)}}var B1={set:h1,get:v1,has:g1,enforce:function(e){return g1(e)?v1(e):h1(e,{})},getterFor:function(e){return function(t){var n;if(!h0(t)||(n=v1(t)).type!==e)throw S1("Incompatible receiver, "+e+" required");return n}}},_1=Function.prototype,P1=WQ&&Object.getOwnPropertyDescriptor,F1=H0(_1,"name"),j1={EXISTS:F1,PROPER:F1&&"something"===function(){}.name,CONFIGURABLE:F1&&(!WQ||WQ&&P1(_1,"name").configurable)},N1=zQ((function(e){var t=j1.CONFIGURABLE,n=B1.get,r=B1.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;p0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!H0(i,"name")||t&&i.name!==f)&&d1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==UQ?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:d1(e,n,i)):c?e[n]=i:N0(n,i)})(Function.prototype,"toString",(function(){return p0(this)&&n(this).source||y1(this)}))})),L1=Math.ceil,I1=Math.floor,R1=function(e){var t=+e;return t!=t||0===t?0:(t>0?I1:L1)(t)},M1=Math.max,z1=Math.min,H1=function(e,t){var n=R1(e);return n<0?M1(n+t,0):z1(n,t)},$1=Math.min,V1=function(e){return e>0?$1(R1(e),9007199254740991):0},U1=function(e){return V1(e.length)},Z1=function(e){return function(t,n,r){var o,i=d0(t),a=U1(i),u=H1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},W1=(Z1(!0),Z1(!1)),G1=r0([].push),q1=function(e,t){var n,r=d0(e),o=0,i=[];for(n in r)!H0(E1,n)&&H0(r,n)&&G1(i,n);for(;t.length>o;)H0(r,n=t[o++])&&(~W1(i,n)||G1(i,n));return i},K1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Y1=K1.concat("length","prototype"),X1={f:Object.getOwnPropertyNames||function(e){return q1(e,Y1)}},J1={f:Object.getOwnPropertySymbols},Q1=r0([].concat),e2=g0("Reflect","ownKeys")||function(e){var t=X1.f(s1(e)),n=J1.f;return n?Q1(t,n(e)):t},t2=function(e,t){for(var n=e2(t),r=f1.f,o=i1.f,i=0;i<n.length;i++){var a=n[i];H0(e,a)||r(e,a,o(t,a))}},n2=/#|\.prototype\./,r2=function(e,t){var n=i2[o2(e)];return n==u2||n!=a2&&(p0(t)?ZQ(t):!!t)},o2=r2.normalize=function(e){return String(e).replace(n2,".").toLowerCase()},i2=r2.data={},a2=r2.NATIVE="N",u2=r2.POLYFILL="P",s2=r2,c2=i1.f,l2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?UQ:c?UQ[u]||N0(u,{}):(UQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=c2(n,r))&&a.value:n[r],!s2(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;t2(i,o)}(e.sham||o&&o.sham)&&d1(i,"sham",!0),N1(n,r,i,e)}},f2={};f2[Y0("toStringTag")]="z";var d2="[object z]"===String(f2),p2=Y0("toStringTag"),h2=UQ.Object,v2="Arguments"==a0(function(){return arguments}()),g2=d2?a0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=h2(e),p2))?n:v2?a0(t):"Object"==(r=a0(t))&&p0(t.callee)?"Arguments":r},y2=UQ.String,m2=function(e){if("Symbol"===g2(e))throw TypeError("Cannot convert a Symbol value to a string");return y2(e)},b2=/"/g,w2=r0("".replace);l2({target:"String",proto:!0,forced:ZQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=m2(f0(this)),r="<a",(r+=' name="'+w2(m2(t),b2,""")+'"')+">"+n+"</a>";var t,n,r}});var x2,E2=function(){var e=s1(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},S2=UQ.RegExp,C2=ZQ((function(){var e=S2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),D2=C2||ZQ((function(){return!S2("a","y").sticky})),O2={BROKEN_CARET:C2||ZQ((function(){var e=S2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:D2,UNSUPPORTED_Y:C2},A2=Object.keys||function(e){return q1(e,K1)},k2=WQ?Object.defineProperties:function(e,t){s1(e);for(var n,r=d0(t),o=A2(t),i=o.length,a=0;i>a;)f1.f(e,n=o[a++],r[n]);return e},T2=g0("document","documentElement"),B2=x1("IE_PROTO"),_2=function(){},P2=function(e){return"<script>"+e+"<\/script>"},F2=function(e){e.write(P2("")),e.close();var t=e.parentWindow.Object;return e=null,t},j2=function(){try{x2=new ActiveXObject("htmlfile")}catch(e){}var e,t;j2="undefined"!=typeof document?document.domain&&x2?F2(x2):((t=n1("iframe")).style.display="none",T2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(P2("document.F=Object")),e.close(),e.F):F2(x2);for(var n=K1.length;n--;)delete j2.prototype[K1[n]];return j2()};E1[B2]=!0;var N2,L2,I2=Object.create||function(e,t){var n;return null!==e?(_2.prototype=s1(e),n=new _2,_2.prototype=null,n[B2]=e):n=j2(),void 0===t?n:k2(n,t)},R2=UQ.RegExp,M2=ZQ((function(){var e=R2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),z2=UQ.RegExp,H2=ZQ((function(){var e=z2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$2=B1.get,V2=I0("native-string-replace",String.prototype.replace),U2=RegExp.prototype.exec,Z2=U2,W2=r0("".charAt),G2=r0("".indexOf),q2=r0("".replace),K2=r0("".slice),Y2=(L2=/b*/g,qQ(U2,N2=/a/,"a"),qQ(U2,L2,"a"),0!==N2.lastIndex||0!==L2.lastIndex),X2=O2.BROKEN_CARET,J2=void 0!==/()??/.exec("")[1];(Y2||J2||X2||M2||H2)&&(Z2=function(e){var t,n,r,o,i,a,u,s=this,c=$2(s),l=m2(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=qQ(Z2,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=X2&&s.sticky,h=qQ(E2,s),v=s.source,g=0,y=l;if(p&&(h=q2(h,"y",""),-1===G2(h,"g")&&(h+="g"),y=K2(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==W2(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),J2&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Y2&&(r=s.lastIndex),o=qQ(U2,p?n:s,y),p?o?(o.input=K2(o.input,g),o[0]=K2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Y2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),J2&&o&&o.length>1&&qQ(V2,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=I2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Q2=Z2;l2({target:"RegExp",proto:!0,forced:/./.exec!==Q2},{exec:Q2});var e4=Array.isArray||function(e){return"Array"==a0(e)},t4=function(){},n4=[],r4=g0("Reflect","construct"),o4=/^\s*(?:class|function)\b/,i4=r0(o4.exec),a4=!o4.exec(t4),u4=function(e){if(!p0(e))return!1;try{return r4(t4,n4,e),!0}catch(e){return!1}},s4=!r4||ZQ((function(){var e;return u4(u4.call)||!u4(Object)||!u4((function(){e=!0}))||e}))?function(e){if(!p0(e))return!1;switch(g2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return a4||!!i4(o4,y1(e))}:u4,c4=function(e,t,n){var r=Q0(t);r in e?f1.f(e,r,JQ(0,n)):e[r]=n},l4=Y0("species"),f4=function(e){return S0>=51||!ZQ((function(){var t=[];return(t.constructor={})[l4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},d4=r0([].slice),p4=f4("slice"),h4=Y0("species"),v4=UQ.Array,g4=Math.max;function y4(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||t-- >0)&&!(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 m4(e){var t=e.selection;if(null==t)return!1;var n=y4(kf.nodes(e,{match:function(e){return TA.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=y4(n,2)[1],o=kf.start(e,r);if(Hf.equals(t.anchor,o))return!0}return!1}function b4(e,t){var n,r,o=kf.nodes(e,{at:t,match:function(e){return"table"===TA.getNodeType(e)}}),i=!1;try{for(var a=
|
|
108
|
+
***************************************************************************** */};function xJ(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}wJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function EJ(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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function SJ(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||t-- >0)&&!(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 CJ(e){return kf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===TA.findPath(e,t).length}})}var DJ=Yq.includes;uY({target:"Array",proto:!0},{includes:function(e){return DJ(this,e,arguments.length>1?arguments[1]:void 0)}}),vK("includes");var OJ,AJ,kJ=function(){var e=yq(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},TJ=SG.RegExp,BJ=TG((function(){var e=TJ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),_J=BJ||TG((function(){return!TJ("a","y").sticky})),PJ={BROKEN_CARET:BJ||TG((function(){var e=TJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:_J,UNSUPPORTED_Y:BJ},FJ=SG.RegExp,jJ=TG((function(){var e=FJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),NJ=SG.RegExp,LJ=TG((function(){var e=NJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),IJ=LK.get,RJ=$G("native-string-replace",String.prototype.replace),MJ=RegExp.prototype.exec,zJ=MJ,HJ=kG("".charAt),$J=kG("".indexOf),VJ=kG("".replace),UJ=kG("".slice),ZJ=(AJ=/b*/g,Cq(MJ,OJ=/a/,"a"),Cq(MJ,AJ,"a"),0!==OJ.lastIndex||0!==AJ.lastIndex),WJ=PJ.BROKEN_CARET,GJ=void 0!==/()??/.exec("")[1];(ZJ||GJ||WJ||jJ||LJ)&&(zJ=function(e){var t,n,r,o,i,a,u,s=this,c=IJ(s),l=VY(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Cq(zJ,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=WJ&&s.sticky,h=Cq(kJ,s),v=s.source,g=0,y=l;if(p&&(h=VJ(h,"y",""),-1===$J(h,"g")&&(h+="g"),y=UJ(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==HJ(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),GJ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),ZJ&&(r=s.lastIndex),o=Cq(MJ,p?n:s,y),p?o?(o.input=UJ(o.input,g),o[0]=UJ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ZJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),GJ&&o&&o.length>1&&Cq(RJ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=dK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var qJ=zJ;uY({target:"RegExp",proto:!0,forced:/./.exec!==qJ},{exec:qJ});var KJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return TA.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!TA.getSelectedElems(e).some((function(t){if(kf.isVoid(e,t)&&kf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?gd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):gd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),YJ='<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>',XJ='<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>',JJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=lF("listModule.unOrderedList"),t.iconSvg=YJ,t}return xJ(t,e),t}(KJ),QJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=lF("listModule.orderedList"),t.iconSvg=XJ,t}return xJ(t,e),t}(KJ),eQ={key:"bulletedList",factory:function(){return new JJ}},tQ={key:"numberedList",factory:function(){return new QJ}},nQ=[],rQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=mJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=TA.findPath(t,e);if(0===s[0])return u+1;var c=If.previous(s),l=kf.node(t,c);if(!l)return 0;var f=SJ(l,1)[0];if(TA.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",nQ.push(i);var s=function(e){var t=mJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=TA.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var c=If.next(s),l=kf.node(t,c);if(!l)return 0;var f=SJ(l,1)[0];if(TA.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+nQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},oQ=pq("species"),iQ=HX.filter,aQ=aq>=51||!TG((function(){var e=[];return(e.constructor={})[oQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));uY({target:"Array",proto:!0,forced:!aQ},{filter:function(e){return iQ(this,e,arguments.length>1?arguments[1]:void 0)}});var uQ=Function.prototype,sQ=uQ.apply,cQ=uQ.bind,lQ=uQ.call,fQ="object"==typeof Reflect&&Reflect.apply||(cQ?lQ.bind(sQ):function(){return lQ.apply(sQ,arguments)}),dQ=(pq("species"),RegExp.prototype),pQ=qY.charAt,hQ=function(e,t,n){return t+(n?pQ(e,t).length:1)},vQ=Math.floor,gQ=kG("".charAt),yQ=kG("".replace),mQ=kG("".slice),bQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,wQ=/\$([$&'`]|\d{1,2})/g,xQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=wQ;return void 0!==o&&(o=UG(o),s=bQ),yQ(i,s,(function(i,s){var c;switch(gQ(s,0)){case"$":return"$";case"&":return e;case"`":return mQ(t,0,n);case"'":return mQ(t,a);case"<":c=o[mQ(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=vQ(l/10);return 0===f?i:f<=u?void 0===r[f-1]?gQ(s,1):r[f-1]+gQ(s,1):i}c=r[l-1]}return void 0===c?"":c}))},EQ=SG.TypeError,SQ=function(e,t){var n=e.exec;if(XG(n)){var r=Cq(n,e,t);return null!==r&&yq(r),r}if("RegExp"===PG(e))return Cq(qJ,e,t);throw EQ("RegExp#exec called on incompatible receiver")},CQ=pq("replace"),DQ=Math.max,OQ=Math.min,AQ=kG([].concat),kQ=kG([].push),TQ=kG("".indexOf),BQ=kG("".slice),_Q="$0"==="a".replace(/./,"$0"),PQ=!!/./[CQ]&&""===/./[CQ]("a","$0");!function(e,t,n,r){var o=pq(e),i=!TG((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!TG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=kG(/./[o]),s=function(e,t,n){var r=PQ?"$":"$0";return[function(e,n){var r=IG(this),o=null==e?void 0:Pq(e,CQ);return o?Cq(o,e,r,n):Cq(t,VY(r),e,n)},function(e,o){var i=yq(this),a=VY(e);if("string"==typeof o&&-1===TQ(o,r)&&-1===TQ(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=XG(o);s||(o=VY(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=SQ(i,a);if(null===d)break;if(kQ(f,d),!c)break;""===VY(d[0])&&(i.lastIndex=hQ(a,Gq(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=VY((d=f[g])[0]),m=DQ(OQ($q(d.index),a.length),0),b=[],w=1;w<d.length;w++)kQ(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=AQ([y],b,m,a);void 0!==x&&kQ(E,x);var S=VY(fQ(o,void 0,E))}else S=xQ(y,a,m,b,x,o);m>=v&&(h+=BQ(a,v,m)+S,v=m+y.length)}return h+BQ(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=kG(e),s=t.exec;return s===qJ||s===dQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));WK(String.prototype,e,s[0]),WK(dQ,o,s[1])}}("replace",0,!!TG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!_Q||PQ);var FQ=SG.TypeError,jQ=function(e,t,n,r,o,i,a,u){for(var s,c,l=o,f=0,d=!!a&&lX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&AX(s))c=qq(s),l=jQ(e,t,s,c,l,i-1)-1;else{if(l>=9007199254740991)throw FQ("Exceed the acceptable array length");e[l]=s}l++}f++}return l},NQ=jQ;function LQ(e){return e.length?e[0].tagName.toLowerCase():""}uY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=UG(this),n=qq(t),r=RX(t,0);return r.length=NQ(r,t,t,n,0,void 0===e?1:$q(e)),r}}),vK("flat"),uY({global:!0},{globalThis:SG}),Xp&&(Bp.fn.append=Xp),jp&&(Bp.fn.attr=jp),Qp&&(Bp.fn.parent=Qp);var IQ={renderElems:[bJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if(Zf.isExpanded(n))t(e);else{var r=TA.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?gd.setNodes(o,{level:a-1}):gd.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(Zf.isCollapsed(a)){var u=TA.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,c=void 0===s?0:s;return void gd.setNodes(o,{level:c+1})}}if(Zf.isExpanded(a)){var l=0,f=!1;try{for(var d=EJ(CJ(o)),p=d.next();!p.done;p=d.next()){var h=SJ(p.value,1)[0];"list-item"===TA.getNodeType(h)?l++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||l<=1)return void n();try{for(var v=EJ(CJ(o)),g=v.next();!g.done;g=v.next()){var y=SJ(g.value,2),m=(h=y[0],y[1]),b=h.level;c=void 0===b?0:b,gd.setNodes(o,{level:c+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=SJ(e,2),n=t[0],i=t[1],a=TA.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||gd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[eQ,tQ],elemsToHtml:[rQ],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=Bp(e);0===(t=t.filter((function(e){return!!Jf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===LQ(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=LQ(n);"ul"===r||"ol"===r;)r=LQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},RQ=o((function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",v="[object RegExp]",g="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",E=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[i]=C[a]=C[w]=C[u]=C[x]=C[s]=C[c]=C[l]=C[f]=C[d]=C[p]=C[v]=C[g]=C[y]=C[b]=!1;var D="object"==typeof r&&r&&r.Object===Object&&r,O="object"==typeof self&&self&&self.Object===Object&&self,A=D||O||Function("return this")(),k=t&&!t.nodeType&&t,T=k&&e&&!e.nodeType&&e,B=T&&T.exports===k,_=B&&D.process,P=function(){try{return _&&_.binding&&_.binding("util")}catch(e){}}(),F=P&&P.isTypedArray;function j(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,R=Function.prototype,M=Object.prototype,z=A["__core-js_shared__"],H=R.toString,$=M.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U=M.toString,Z=RegExp("^"+H.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,G=A.Symbol,q=A.Uint8Array,K=M.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,J=Object.getOwnPropertySymbols,Q=W?W.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Oe(A,"DataView"),ne=Oe(A,"Map"),re=Oe(A,"Promise"),oe=Oe(A,"Set"),ie=Oe(A,"WeakMap"),ae=Oe(Object,"create"),ue=Be(te),se=Be(ne),ce=Be(re),le=Be(oe),fe=Be(ie),de=G?G.prototype:void 0,pe=de?de.valueOf:void 0;function he(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 ve(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 ge(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 ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ve(e);this.size=t.size}function be(e,t){for(var n=e.length;n--;)if(_e(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=$.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var o=U.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):function(e){return U.call(e)}(e)}function xe(e){return Re(e)&&we(e)==i}function Ee(e,t,n,r,o){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,n,r,o,l){var h=Fe(e),b=Fe(t),E=h?a:ke(e),S=b?a:ke(t),C=(E=E==i?p:E)==p,D=(S=S==i?p:S)==p,O=E==S;if(O&&je(e)){if(!je(t))return!1;h=!0,C=!1}if(O&&!C)return l||(l=new me),h||Me(e)?Se(e,t,n,r,o,l):function(e,t,n,r,o,i,a){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case u:case s:case d:return _e(+e,+t);case c:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case f:var l=N;case g:var p=1&r;if(l||(l=L),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Se(l(e),l(t),r,o,i,a);return a.delete(e),b;case m:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,E,n,r,o,l);if(!(1&n)){var A=C&&$.call(e,"__wrapped__"),k=D&&$.call(t,"__wrapped__");if(A||k){var T=A?e.value():e,B=k?t.value():t;return l||(l=new me),o(T,B,n,r,l)}}return!!O&&(l||(l=new me),function(e,t,n,r,o,i){var a=1&n,u=Ce(e),s=u.length;if(s!=Ce(t).length&&!a)return!1;for(var c=s;c--;){var l=u[c];if(!(a?l in t:$.call(t,l)))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=a;++c<s;){var h=e[l=u[c]],v=t[l];if(r)var g=a?r(v,h,l,t,e,i):r(h,v,l,e,t,i);if(!(void 0===g?h===v||o(h,v,n,r,i):g)){d=!1;break}p||(p="constructor"==l)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,o,l))}(e,t,n,r,Ee,o))}function Se(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++l<u;){var p=e[l],h=t[l];if(r)var v=a?r(h,p,l,t,e,i):r(p,h,l,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!j(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Ce(e){return function(e,t,n){var r=t(e);return Fe(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,ze,Ae)}function De(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ie(e)||function(e){return!!V&&V in e}(e))&&(Ne(e)?Z:E).test(Be(e))}(n)?n:void 0}he.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:$.call(t,e)},he.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},ve.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return be(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=be(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(ne||ve),string:new he}},ge.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return De(this,e).get(e)},ge.prototype.has=function(e){return De(this,e).has(e)},ge.prototype.set=function(e,t){var n=De(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=J?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(J(e),(function(t){return K.call(e,t)})))}:function(){return[]},ke=we;function Te(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function _e(e,t){return e===t||e!=e&&t!=t}(te&&ke(new te(new ArrayBuffer(1)))!=x||ne&&ke(new ne)!=f||re&&ke(re.resolve())!=h||oe&&ke(new oe)!=g||ie&&ke(new ie)!=b)&&(ke=function(e){var t=we(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ue:return x;case se:return f;case ce:return h;case le:return g;case fe:return b}return t});var Pe=xe(function(){return arguments}())?xe:function(e){return Re(e)&&$.call(e,"callee")&&!K.call(e,"callee")},Fe=Array.isArray,je=Q||function(){return!1};function Ne(e){if(!Ie(e))return!1;var t=we(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Me=F?function(e){return function(t){return e(t)}}(F):function(e){return Re(e)&&Le(e.length)&&!!C[we(e)]};function ze(e){return null!=(t=e)&&Le(t.length)&&!Ne(t)?function(e,t){var n=Fe(e),r=!n&&Pe(e),o=!n&&!r&&je(e),i=!n&&!r&&!o&&Me(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var c in e)!t&&!$.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Te(c,s))||u.push(c);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||M))return ee(e);var t,n,r=[];for(var o in Object(e))$.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}}));cF("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"}}),cF("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var MQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function zQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var HQ,$Q,VQ=function(e){return e&&e.Math==Math&&e},UQ=VQ("object"==typeof globalThis&&globalThis)||VQ("object"==typeof window&&window)||VQ("object"==typeof self&&self)||VQ("object"==typeof MQ&&MQ)||function(){return this}()||Function("return this")(),ZQ=function(e){try{return!!e()}catch(e){return!0}},WQ=!ZQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),GQ=Function.prototype.call,qQ=GQ.bind?GQ.bind(GQ):function(){return GQ.apply(GQ,arguments)},KQ={}.propertyIsEnumerable,YQ=Object.getOwnPropertyDescriptor,XQ={f:YQ&&!KQ.call({1:2},1)?function(e){var t=YQ(this,e);return!!t&&t.enumerable}:KQ},JQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},QQ=Function.prototype,e0=QQ.bind,t0=QQ.call,n0=e0&&e0.bind(t0),r0=e0?function(e){return e&&n0(t0,e)}:function(e){return e&&function(){return t0.apply(e,arguments)}},o0=r0({}.toString),i0=r0("".slice),a0=function(e){return i0(o0(e),8,-1)},u0=UQ.Object,s0=r0("".split),c0=ZQ((function(){return!u0("z").propertyIsEnumerable(0)}))?function(e){return"String"==a0(e)?s0(e,""):u0(e)}:u0,l0=UQ.TypeError,f0=function(e){if(null==e)throw l0("Can't call method on "+e);return e},d0=function(e){return c0(f0(e))},p0=function(e){return"function"==typeof e},h0=function(e){return"object"==typeof e?null!==e:p0(e)},v0=function(e){return p0(e)?e:void 0},g0=function(e,t){return arguments.length<2?v0(UQ[e]):UQ[e]&&UQ[e][t]},y0=r0({}.isPrototypeOf),m0=g0("navigator","userAgent")||"",b0=UQ.process,w0=UQ.Deno,x0=b0&&b0.versions||w0&&w0.version,E0=x0&&x0.v8;E0&&($Q=(HQ=E0.split("."))[0]>0&&HQ[0]<4?1:+(HQ[0]+HQ[1])),!$Q&&m0&&(!(HQ=m0.match(/Edge\/(\d+)/))||HQ[1]>=74)&&(HQ=m0.match(/Chrome\/(\d+)/))&&($Q=+HQ[1]);var S0=$Q,C0=!!Object.getOwnPropertySymbols&&!ZQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&S0&&S0<41})),D0=C0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,O0=UQ.Object,A0=D0?function(e){return"symbol"==typeof e}:function(e){var t=g0("Symbol");return p0(t)&&y0(t.prototype,O0(e))},k0=UQ.String,T0=function(e){try{return k0(e)}catch(e){return"Object"}},B0=UQ.TypeError,_0=function(e){if(p0(e))return e;throw B0(T0(e)+" is not a function")},P0=function(e,t){var n=e[t];return null==n?void 0:_0(n)},F0=UQ.TypeError,j0=Object.defineProperty,N0=function(e,t){try{j0(UQ,e,{value:t,configurable:!0,writable:!0})}catch(n){UQ[e]=t}return t},L0=UQ["__core-js_shared__"]||N0("__core-js_shared__",{}),I0=zQ((function(e){(e.exports=function(e,t){return L0[e]||(L0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),R0=UQ.Object,M0=function(e){return R0(f0(e))},z0=r0({}.hasOwnProperty),H0=Object.hasOwn||function(e,t){return z0(M0(e),t)},$0=0,V0=Math.random(),U0=r0(1..toString),Z0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+U0(++$0+V0,36)},W0=I0("wks"),G0=UQ.Symbol,q0=G0&&G0.for,K0=D0?G0:G0&&G0.withoutSetter||Z0,Y0=function(e){if(!H0(W0,e)||!C0&&"string"!=typeof W0[e]){var t="Symbol."+e;C0&&H0(G0,e)?W0[e]=G0[e]:W0[e]=D0&&q0?q0(t):K0(t)}return W0[e]},X0=UQ.TypeError,J0=Y0("toPrimitive"),Q0=function(e){var t=function(e,t){if(!h0(e)||A0(e))return e;var n,r=P0(e,J0);if(r){if(void 0===t&&(t="default"),n=qQ(r,e,t),!h0(n)||A0(n))return n;throw X0("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&p0(n=e.toString)&&!h0(r=qQ(n,e)))return r;if(p0(n=e.valueOf)&&!h0(r=qQ(n,e)))return r;if("string"!==t&&p0(n=e.toString)&&!h0(r=qQ(n,e)))return r;throw F0("Can't convert object to primitive value")}(e,t)}(e,"string");return A0(t)?t:t+""},e1=UQ.document,t1=h0(e1)&&h0(e1.createElement),n1=function(e){return t1?e1.createElement(e):{}},r1=!WQ&&!ZQ((function(){return 7!=Object.defineProperty(n1("div"),"a",{get:function(){return 7}}).a})),o1=Object.getOwnPropertyDescriptor,i1={f:WQ?o1:function(e,t){if(e=d0(e),t=Q0(t),r1)try{return o1(e,t)}catch(e){}if(H0(e,t))return JQ(!qQ(XQ.f,e,t),e[t])}},a1=UQ.String,u1=UQ.TypeError,s1=function(e){if(h0(e))return e;throw u1(a1(e)+" is not an object")},c1=UQ.TypeError,l1=Object.defineProperty,f1={f:WQ?l1:function(e,t,n){if(s1(e),t=Q0(t),s1(n),r1)try{return l1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},d1=WQ?function(e,t,n){return f1.f(e,t,JQ(1,n))}:function(e,t,n){return e[t]=n,e},p1=r0(Function.toString);p0(L0.inspectSource)||(L0.inspectSource=function(e){return p1(e)});var h1,v1,g1,y1=L0.inspectSource,m1=UQ.WeakMap,b1=p0(m1)&&/native code/.test(y1(m1)),w1=I0("keys"),x1=function(e){return w1[e]||(w1[e]=Z0(e))},E1={},S1=UQ.TypeError,C1=UQ.WeakMap;if(b1||L0.state){var D1=L0.state||(L0.state=new C1),O1=r0(D1.get),A1=r0(D1.has),k1=r0(D1.set);h1=function(e,t){if(A1(D1,e))throw new S1("Object already initialized");return t.facade=e,k1(D1,e,t),t},v1=function(e){return O1(D1,e)||{}},g1=function(e){return A1(D1,e)}}else{var T1=x1("state");E1[T1]=!0,h1=function(e,t){if(H0(e,T1))throw new S1("Object already initialized");return t.facade=e,d1(e,T1,t),t},v1=function(e){return H0(e,T1)?e[T1]:{}},g1=function(e){return H0(e,T1)}}var B1={set:h1,get:v1,has:g1,enforce:function(e){return g1(e)?v1(e):h1(e,{})},getterFor:function(e){return function(t){var n;if(!h0(t)||(n=v1(t)).type!==e)throw S1("Incompatible receiver, "+e+" required");return n}}},_1=Function.prototype,P1=WQ&&Object.getOwnPropertyDescriptor,F1=H0(_1,"name"),j1={EXISTS:F1,PROPER:F1&&"something"===function(){}.name,CONFIGURABLE:F1&&(!WQ||WQ&&P1(_1,"name").configurable)},N1=zQ((function(e){var t=j1.CONFIGURABLE,n=B1.get,r=B1.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;p0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!H0(i,"name")||t&&i.name!==f)&&d1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==UQ?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:d1(e,n,i)):c?e[n]=i:N0(n,i)})(Function.prototype,"toString",(function(){return p0(this)&&n(this).source||y1(this)}))})),L1=Math.ceil,I1=Math.floor,R1=function(e){var t=+e;return t!=t||0===t?0:(t>0?I1:L1)(t)},M1=Math.max,z1=Math.min,H1=function(e,t){var n=R1(e);return n<0?M1(n+t,0):z1(n,t)},$1=Math.min,V1=function(e){return e>0?$1(R1(e),9007199254740991):0},U1=function(e){return V1(e.length)},Z1=function(e){return function(t,n,r){var o,i=d0(t),a=U1(i),u=H1(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},W1=(Z1(!0),Z1(!1)),G1=r0([].push),q1=function(e,t){var n,r=d0(e),o=0,i=[];for(n in r)!H0(E1,n)&&H0(r,n)&&G1(i,n);for(;t.length>o;)H0(r,n=t[o++])&&(~W1(i,n)||G1(i,n));return i},K1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Y1=K1.concat("length","prototype"),X1={f:Object.getOwnPropertyNames||function(e){return q1(e,Y1)}},J1={f:Object.getOwnPropertySymbols},Q1=r0([].concat),e2=g0("Reflect","ownKeys")||function(e){var t=X1.f(s1(e)),n=J1.f;return n?Q1(t,n(e)):t},t2=function(e,t){for(var n=e2(t),r=f1.f,o=i1.f,i=0;i<n.length;i++){var a=n[i];H0(e,a)||r(e,a,o(t,a))}},n2=/#|\.prototype\./,r2=function(e,t){var n=i2[o2(e)];return n==u2||n!=a2&&(p0(t)?ZQ(t):!!t)},o2=r2.normalize=function(e){return String(e).replace(n2,".").toLowerCase()},i2=r2.data={},a2=r2.NATIVE="N",u2=r2.POLYFILL="P",s2=r2,c2=i1.f,l2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?UQ:c?UQ[u]||N0(u,{}):(UQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=c2(n,r))&&a.value:n[r],!s2(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;t2(i,o)}(e.sham||o&&o.sham)&&d1(i,"sham",!0),N1(n,r,i,e)}},f2={};f2[Y0("toStringTag")]="z";var d2="[object z]"===String(f2),p2=Y0("toStringTag"),h2=UQ.Object,v2="Arguments"==a0(function(){return arguments}()),g2=d2?a0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=h2(e),p2))?n:v2?a0(t):"Object"==(r=a0(t))&&p0(t.callee)?"Arguments":r},y2=UQ.String,m2=function(e){if("Symbol"===g2(e))throw TypeError("Cannot convert a Symbol value to a string");return y2(e)},b2=/"/g,w2=r0("".replace);l2({target:"String",proto:!0,forced:ZQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=m2(f0(this)),r="<a",(r+=' name="'+w2(m2(t),b2,""")+'"')+">"+n+"</a>";var t,n,r}});var x2,E2=function(){var e=s1(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},S2=UQ.RegExp,C2=ZQ((function(){var e=S2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),D2=C2||ZQ((function(){return!S2("a","y").sticky})),O2={BROKEN_CARET:C2||ZQ((function(){var e=S2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:D2,UNSUPPORTED_Y:C2},A2=Object.keys||function(e){return q1(e,K1)},k2=WQ?Object.defineProperties:function(e,t){s1(e);for(var n,r=d0(t),o=A2(t),i=o.length,a=0;i>a;)f1.f(e,n=o[a++],r[n]);return e},T2=g0("document","documentElement"),B2=x1("IE_PROTO"),_2=function(){},P2=function(e){return"<script>"+e+"<\/script>"},F2=function(e){e.write(P2("")),e.close();var t=e.parentWindow.Object;return e=null,t},j2=function(){try{x2=new ActiveXObject("htmlfile")}catch(e){}var e,t;j2="undefined"!=typeof document?document.domain&&x2?F2(x2):((t=n1("iframe")).style.display="none",T2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(P2("document.F=Object")),e.close(),e.F):F2(x2);for(var n=K1.length;n--;)delete j2.prototype[K1[n]];return j2()};E1[B2]=!0;var N2,L2,I2=Object.create||function(e,t){var n;return null!==e?(_2.prototype=s1(e),n=new _2,_2.prototype=null,n[B2]=e):n=j2(),void 0===t?n:k2(n,t)},R2=UQ.RegExp,M2=ZQ((function(){var e=R2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),z2=UQ.RegExp,H2=ZQ((function(){var e=z2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$2=B1.get,V2=I0("native-string-replace",String.prototype.replace),U2=RegExp.prototype.exec,Z2=U2,W2=r0("".charAt),G2=r0("".indexOf),q2=r0("".replace),K2=r0("".slice),Y2=(L2=/b*/g,qQ(U2,N2=/a/,"a"),qQ(U2,L2,"a"),0!==N2.lastIndex||0!==L2.lastIndex),X2=O2.BROKEN_CARET,J2=void 0!==/()??/.exec("")[1];(Y2||J2||X2||M2||H2)&&(Z2=function(e){var t,n,r,o,i,a,u,s=this,c=$2(s),l=m2(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=qQ(Z2,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=X2&&s.sticky,h=qQ(E2,s),v=s.source,g=0,y=l;if(p&&(h=q2(h,"y",""),-1===G2(h,"g")&&(h+="g"),y=K2(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==W2(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),J2&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Y2&&(r=s.lastIndex),o=qQ(U2,p?n:s,y),p?o?(o.input=K2(o.input,g),o[0]=K2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Y2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),J2&&o&&o.length>1&&qQ(V2,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=I2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Q2=Z2;l2({target:"RegExp",proto:!0,forced:/./.exec!==Q2},{exec:Q2});var e4=Array.isArray||function(e){return"Array"==a0(e)},t4=function(){},n4=[],r4=g0("Reflect","construct"),o4=/^\s*(?:class|function)\b/,i4=r0(o4.exec),a4=!o4.exec(t4),u4=function(e){if(!p0(e))return!1;try{return r4(t4,n4,e),!0}catch(e){return!1}},s4=!r4||ZQ((function(){var e;return u4(u4.call)||!u4(Object)||!u4((function(){e=!0}))||e}))?function(e){if(!p0(e))return!1;switch(g2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return a4||!!i4(o4,y1(e))}:u4,c4=function(e,t,n){var r=Q0(t);r in e?f1.f(e,r,JQ(0,n)):e[r]=n},l4=Y0("species"),f4=function(e){return S0>=51||!ZQ((function(){var t=[];return(t.constructor={})[l4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},d4=r0([].slice),p4=f4("slice"),h4=Y0("species"),v4=UQ.Array,g4=Math.max;function y4(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||t-- >0)&&!(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 m4(e){var t=e.selection;if(null==t)return!1;var n=y4(kf.nodes(e,{match:function(e){return TA.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=y4(n,2)[1],o=kf.start(e,r);if(Hf.equals(t.anchor,o))return!0}return!1}function b4(e,t){var n,r,o=kf.nodes(e,{at:t,match:function(e){return"table"===TA.getNodeType(e)}}),i=!1;try{for(var a=
|
|
109
109
|
/*! *****************************************************************************
|
|
110
110
|
Copyright (c) Microsoft Corporation.
|
|
111
111
|
|
|
@@ -135,7 +135,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
135
135
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
136
136
|
PERFORMANCE OF THIS SOFTWARE.
|
|
137
137
|
***************************************************************************** */
|
|
138
|
-
var x6=function(){return x6=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},x6.apply(this,arguments)};function E6(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function S6(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function C6(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||t-- >0)&&!(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}var D6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function O6(e){var t={exports:{}};return e(t,t.exports),t.exports}var A6,k6,T6=function(e){return e&&e.Math==Math&&e},B6=T6("object"==typeof globalThis&&globalThis)||T6("object"==typeof window&&window)||T6("object"==typeof self&&self)||T6("object"==typeof D6&&D6)||function(){return this}()||Function("return this")(),_6=function(e){try{return!!e()}catch(e){return!0}},P6=!_6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),F6=Function.prototype.call,j6=F6.bind?F6.bind(F6):function(){return F6.apply(F6,arguments)},N6={}.propertyIsEnumerable,L6=Object.getOwnPropertyDescriptor,I6={f:L6&&!N6.call({1:2},1)?function(e){var t=L6(this,e);return!!t&&t.enumerable}:N6},R6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M6=Function.prototype,z6=M6.bind,H6=M6.call,$6=z6&&z6.bind(H6),V6=z6?function(e){return e&&$6(H6,e)}:function(e){return e&&function(){return H6.apply(e,arguments)}},U6=V6({}.toString),Z6=V6("".slice),W6=function(e){return Z6(U6(e),8,-1)},G6=B6.Object,q6=V6("".split),K6=_6((function(){return!G6("z").propertyIsEnumerable(0)}))?function(e){return"String"==W6(e)?q6(e,""):G6(e)}:G6,Y6=B6.TypeError,X6=function(e){if(null==e)throw Y6("Can't call method on "+e);return e},J6=function(e){return K6(X6(e))},Q6=function(e){return"function"==typeof e},e5=function(e){return"object"==typeof e?null!==e:Q6(e)},t5=function(e){return Q6(e)?e:void 0},n5=function(e,t){return arguments.length<2?t5(B6[e]):B6[e]&&B6[e][t]},r5=V6({}.isPrototypeOf),o5=n5("navigator","userAgent")||"",i5=B6.process,a5=B6.Deno,u5=i5&&i5.versions||a5&&a5.version,s5=u5&&u5.v8;s5&&(k6=(A6=s5.split("."))[0]>0&&A6[0]<4?1:+(A6[0]+A6[1])),!k6&&o5&&(!(A6=o5.match(/Edge\/(\d+)/))||A6[1]>=74)&&(A6=o5.match(/Chrome\/(\d+)/))&&(k6=+A6[1]);var c5=k6,l5=!!Object.getOwnPropertySymbols&&!_6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&c5&&c5<41})),f5=l5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,d5=B6.Object,p5=f5?function(e){return"symbol"==typeof e}:function(e){var t=n5("Symbol");return Q6(t)&&r5(t.prototype,d5(e))},h5=B6.String,v5=function(e){try{return h5(e)}catch(e){return"Object"}},g5=B6.TypeError,y5=function(e){if(Q6(e))return e;throw g5(v5(e)+" is not a function")},m5=function(e,t){var n=e[t];return null==n?void 0:y5(n)},b5=B6.TypeError,w5=Object.defineProperty,x5=function(e,t){try{w5(B6,e,{value:t,configurable:!0,writable:!0})}catch(n){B6[e]=t}return t},E5=B6["__core-js_shared__"]||x5("__core-js_shared__",{}),S5=O6((function(e){(e.exports=function(e,t){return E5[e]||(E5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),C5=B6.Object,D5=function(e){return C5(X6(e))},O5=V6({}.hasOwnProperty),A5=Object.hasOwn||function(e,t){return O5(D5(e),t)},k5=0,T5=Math.random(),B5=V6(1..toString),_5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+B5(++k5+T5,36)},P5=S5("wks"),F5=B6.Symbol,j5=F5&&F5.for,N5=f5?F5:F5&&F5.withoutSetter||_5,L5=function(e){if(!A5(P5,e)||!l5&&"string"!=typeof P5[e]){var t="Symbol."+e;l5&&A5(F5,e)?P5[e]=F5[e]:P5[e]=f5&&j5?j5(t):N5(t)}return P5[e]},I5=B6.TypeError,R5=L5("toPrimitive"),M5=function(e){var t=function(e,t){if(!e5(e)||p5(e))return e;var n,r=m5(e,R5);if(r){if(void 0===t&&(t="default"),n=j6(r,e,t),!e5(n)||p5(n))return n;throw I5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Q6(n=e.toString)&&!e5(r=j6(n,e)))return r;if(Q6(n=e.valueOf)&&!e5(r=j6(n,e)))return r;if("string"!==t&&Q6(n=e.toString)&&!e5(r=j6(n,e)))return r;throw b5("Can't convert object to primitive value")}(e,t)}(e,"string");return p5(t)?t:t+""},z5=B6.document,H5=e5(z5)&&e5(z5.createElement),$5=function(e){return H5?z5.createElement(e):{}},V5=!P6&&!_6((function(){return 7!=Object.defineProperty($5("div"),"a",{get:function(){return 7}}).a})),U5=Object.getOwnPropertyDescriptor,Z5={f:P6?U5:function(e,t){if(e=J6(e),t=M5(t),V5)try{return U5(e,t)}catch(e){}if(A5(e,t))return R6(!j6(I6.f,e,t),e[t])}},W5=B6.String,G5=B6.TypeError,q5=function(e){if(e5(e))return e;throw G5(W5(e)+" is not an object")},K5=B6.TypeError,Y5=Object.defineProperty,X5={f:P6?Y5:function(e,t,n){if(q5(e),t=M5(t),q5(n),V5)try{return Y5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw K5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},J5=P6?function(e,t,n){return X5.f(e,t,R6(1,n))}:function(e,t,n){return e[t]=n,e},Q5=V6(Function.toString);Q6(E5.inspectSource)||(E5.inspectSource=function(e){return Q5(e)});var e8,t8,n8,r8=E5.inspectSource,o8=B6.WeakMap,i8=Q6(o8)&&/native code/.test(r8(o8)),a8=S5("keys"),u8=function(e){return a8[e]||(a8[e]=_5(e))},s8={},c8=B6.TypeError,l8=B6.WeakMap;if(i8||E5.state){var f8=E5.state||(E5.state=new l8),d8=V6(f8.get),p8=V6(f8.has),h8=V6(f8.set);e8=function(e,t){if(p8(f8,e))throw new c8("Object already initialized");return t.facade=e,h8(f8,e,t),t},t8=function(e){return d8(f8,e)||{}},n8=function(e){return p8(f8,e)}}else{var v8=u8("state");s8[v8]=!0,e8=function(e,t){if(A5(e,v8))throw new c8("Object already initialized");return t.facade=e,J5(e,v8,t),t},t8=function(e){return A5(e,v8)?e[v8]:{}},n8=function(e){return A5(e,v8)}}var g8={set:e8,get:t8,has:n8,enforce:function(e){return n8(e)?t8(e):e8(e,{})},getterFor:function(e){return function(t){var n;if(!e5(t)||(n=t8(t)).type!==e)throw c8("Incompatible receiver, "+e+" required");return n}}},y8=Function.prototype,m8=P6&&Object.getOwnPropertyDescriptor,b8=A5(y8,"name"),w8={EXISTS:b8,PROPER:b8&&"something"===function(){}.name,CONFIGURABLE:b8&&(!P6||P6&&m8(y8,"name").configurable)},x8=O6((function(e){var t=w8.CONFIGURABLE,n=g8.get,r=g8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Q6(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!A5(i,"name")||t&&i.name!==f)&&J5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==B6?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:J5(e,n,i)):c?e[n]=i:x5(n,i)})(Function.prototype,"toString",(function(){return Q6(this)&&n(this).source||r8(this)}))})),E8=Math.ceil,S8=Math.floor,C8=function(e){var t=+e;return t!=t||0===t?0:(t>0?S8:E8)(t)},D8=Math.max,O8=Math.min,A8=function(e,t){var n=C8(e);return n<0?D8(n+t,0):O8(n,t)},k8=Math.min,T8=function(e){return e>0?k8(C8(e),9007199254740991):0},B8=function(e){return T8(e.length)},_8=function(e){return function(t,n,r){var o,i=J6(t),a=B8(i),u=A8(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},P8={includes:_8(!0),indexOf:_8(!1)},F8=P8.indexOf,j8=V6([].push),N8=function(e,t){var n,r=J6(e),o=0,i=[];for(n in r)!A5(s8,n)&&A5(r,n)&&j8(i,n);for(;t.length>o;)A5(r,n=t[o++])&&(~F8(i,n)||j8(i,n));return i},L8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],I8=L8.concat("length","prototype"),R8={f:Object.getOwnPropertyNames||function(e){return N8(e,I8)}},M8={f:Object.getOwnPropertySymbols},z8=V6([].concat),H8=n5("Reflect","ownKeys")||function(e){var t=R8.f(q5(e)),n=M8.f;return n?z8(t,n(e)):t},$8=function(e,t){for(var n=H8(t),r=X5.f,o=Z5.f,i=0;i<n.length;i++){var a=n[i];A5(e,a)||r(e,a,o(t,a))}},V8=/#|\.prototype\./,U8=function(e,t){var n=W8[Z8(e)];return n==q8||n!=G8&&(Q6(t)?_6(t):!!t)},Z8=U8.normalize=function(e){return String(e).replace(V8,".").toLowerCase()},W8=U8.data={},G8=U8.NATIVE="N",q8=U8.POLYFILL="P",K8=U8,Y8=Z5.f,X8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?B6:c?B6[u]||x5(u,{}):(B6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Y8(n,r))&&a.value:n[r],!K8(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$8(i,o)}(e.sham||o&&o.sham)&&J5(i,"sham",!0),x8(n,r,i,e)}},J8={};J8[L5("toStringTag")]="z";var Q8="[object z]"===String(J8),e9=L5("toStringTag"),t9=B6.Object,n9="Arguments"==W6(function(){return arguments}()),r9=Q8?W6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=t9(e),e9))?n:n9?W6(t):"Object"==(r=W6(t))&&Q6(t.callee)?"Arguments":r},o9=B6.String,i9=function(e){if("Symbol"===r9(e))throw TypeError("Cannot convert a Symbol value to a string");return o9(e)},a9="\t\n\v\f\r \u2028\u2029\ufeff",u9=V6("".replace),s9="["+a9+"]",c9=RegExp("^"+s9+s9+"*"),l9=RegExp(s9+s9+"*$"),f9=function(e){return function(t){var n=i9(X6(t));return 1&e&&(n=u9(n,c9,"")),2&e&&(n=u9(n,l9,"")),n}},d9={start:f9(1),end:f9(2),trim:f9(3)},p9=w8.PROPER,h9=d9.trim;function v9(e){return e.length?e[0].tagName.toLowerCase():""}function g9(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Bp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}X8({target:"String",proto:!0,forced:_6((function(){return!!a9.trim()||"
"!=="
".trim()||p9&&"trim"!==a9.trim.name}))},{trim:function(){return h9(this)}}),X8({global:!0},{globalThis:B6}),Xp&&(Bp.fn.append=Xp),Rp&&(Bp.fn.on=Rp),sh&&(Bp.fn.focus=sh),jp&&(Bp.fn.attr=jp),Ip&&(Bp.fn.val=Ip),qp&&(Bp.fn.html=qp),Qp&&(Bp.fn.parent=Qp),Fp&&(Bp.fn.hasClass=Fp),oh&&(Bp.fn.empty=oh);var y9,m9={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,c=o.width,l=void 0===c?"auto":c,f=o.height,d=void 0===f?"auto":f,p=TA.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=xv("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:g9(a,l,d)});else{var h=xv("video",{poster:s,controls:!0},xv("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==l&&(h.data.width=l),"auto"!==d&&(h.data.height=d),r=xv("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return tv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},b9={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,c=n.height,l=void 0===c?"auto":c,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=g9(o,s,l):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+l+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},w9=Object.keys||function(e){return N8(e,L8)},x9=P6?Object.defineProperties:function(e,t){q5(e);for(var n,r=J6(t),o=w9(t),i=o.length,a=0;i>a;)X5.f(e,n=o[a++],r[n]);return e},E9=n5("document","documentElement"),S9=u8("IE_PROTO"),C9=function(){},D9=function(e){return"<script>"+e+"<\/script>"},O9=function(e){e.write(D9("")),e.close();var t=e.parentWindow.Object;return e=null,t},A9=function(){try{y9=new ActiveXObject("htmlfile")}catch(e){}var e,t;A9="undefined"!=typeof document?document.domain&&y9?O9(y9):((t=$5("iframe")).style.display="none",E9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(D9("document.F=Object")),e.close(),e.F):O9(y9);for(var n=L8.length;n--;)delete A9.prototype[L8[n]];return A9()};s8[S9]=!0;var k9=Object.create||function(e,t){var n;return null!==e?(C9.prototype=q5(e),n=new C9,C9.prototype=null,n[S9]=e):n=A9(),void 0===t?n:x9(n,t)},T9=L5("unscopables"),B9=Array.prototype;null==B9[T9]&&X5.f(B9,T9,{configurable:!0,value:k9(null)});var _9=function(e){B9[T9][e]=!0},P9=P8.includes;X8({target:"Array",proto:!0},{includes:function(e){return P9(this,e,arguments.length>1?arguments[1]:void 0)}}),_9("includes");var F9={selector:"iframe,video,p",preParseHtml:function(e){var t=Bp(e),n=t;if("p"===v9(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Bp(o))}}var a=v9(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Bp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},j9=V6(V6.bind),N9=function(e,t){return y5(e),void 0===t?e:j9?j9(e,t):function(){return e.apply(t,arguments)}},L9=Array.isArray||function(e){return"Array"==W6(e)},I9=function(){},R9=[],M9=n5("Reflect","construct"),z9=/^\s*(?:class|function)\b/,H9=V6(z9.exec),$9=!z9.exec(I9),V9=function(e){if(!Q6(e))return!1;try{return M9(I9,R9,e),!0}catch(e){return!1}},U9=!M9||_6((function(){var e;return V9(V9.call)||!V9(Object)||!V9((function(){e=!0}))||e}))?function(e){if(!Q6(e))return!1;switch(r9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $9||!!H9(z9,r8(e))}:V9,Z9=L5("species"),W9=B6.Array,G9=function(e,t){return new(function(e){var t;return L9(e)&&(t=e.constructor,(U9(t)&&(t===W9||L9(t.prototype))||e5(t)&&null===(t=t[Z9]))&&(t=void 0)),void 0===t?W9:t}(e))(0===t?0:t)},q9=V6([].push),K9=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=D5(s),v=K6(h),g=N9(c,l),y=B8(v),m=0,b=f||G9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:q9(w,d)}else switch(e){case 4:return!1;case 7:q9(w,d)}return i?-1:r||o?o:w}},Y9={forEach:K9(0),map:K9(1),filter:K9(2),some:K9(3),every:K9(4),find:K9(5),findIndex:K9(6),filterReject:K9(7)},X9=Y9.find,J9=!0;"find"in[]&&Array(1).find((function(){J9=!1})),X8({target:"Array",proto:!0,forced:J9},{find:function(e){return X9(this,e,arguments.length>1?arguments[1]:void 0)}}),_9("find");var Q9=Q8?{}.toString:function(){return"[object "+r9(this)+"]"};function e7(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}Q8||x8(Object.prototype,"toString",Q9,{unsafe:!0});var t7,n7,r7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Bp(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",e7(o=s[0].outerHTML,i,a,u);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",e7(o,i=c.attr("poster")||"",a,u)}},o7=function(){var e=q5(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},i7=B6.RegExp,a7=_6((function(){var e=i7("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),u7=a7||_6((function(){return!i7("a","y").sticky})),s7={BROKEN_CARET:a7||_6((function(){var e=i7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:u7,UNSUPPORTED_Y:a7},c7=B6.RegExp,l7=_6((function(){var e=c7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),f7=B6.RegExp,d7=_6((function(){var e=f7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),p7=g8.get,h7=S5("native-string-replace",String.prototype.replace),v7=RegExp.prototype.exec,g7=v7,y7=V6("".charAt),m7=V6("".indexOf),b7=V6("".replace),w7=V6("".slice),x7=(n7=/b*/g,j6(v7,t7=/a/,"a"),j6(v7,n7,"a"),0!==t7.lastIndex||0!==n7.lastIndex),E7=s7.BROKEN_CARET,S7=void 0!==/()??/.exec("")[1];(x7||S7||E7||l7||d7)&&(g7=function(e){var t,n,r,o,i,a,u,s=this,c=p7(s),l=i9(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=j6(g7,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=E7&&s.sticky,h=j6(o7,s),v=s.source,g=0,y=l;if(p&&(h=b7(h,"y",""),-1===m7(h,"g")&&(h+="g"),y=w7(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==y7(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),S7&&(n=new RegExp("^"+v+"$(?!\\s)",h)),x7&&(r=s.lastIndex),o=j6(v7,p?n:s,y),p?o?(o.input=w7(o.input,g),o[0]=w7(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:x7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),S7&&o&&o.length>1&&j6(h7,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=k9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var C7=g7;X8({target:"RegExp",proto:!0,forced:/./.exec!==C7},{exec:C7});var D7=Function.prototype,O7=D7.apply,A7=D7.bind,k7=D7.call,T7="object"==typeof Reflect&&Reflect.apply||(A7?k7.bind(O7):function(){return k7.apply(O7,arguments)}),B7=(L5("species"),RegExp.prototype),_7=V6("".charAt),P7=V6("".charCodeAt),F7=V6("".slice),j7=function(e){return function(t,n){var r,o,i=i9(X6(t)),a=C8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=P7(i,a))<55296||r>56319||a+1===u||(o=P7(i,a+1))<56320||o>57343?e?_7(i,a):r:e?F7(i,a,a+2):o-56320+(r-55296<<10)+65536}},N7={codeAt:j7(!1),charAt:j7(!0)},L7=N7.charAt,I7=function(e,t,n){return t+(n?L7(e,t).length:1)},R7=Math.floor,M7=V6("".charAt),z7=V6("".replace),H7=V6("".slice),$7=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,V7=/\$([$&'`]|\d{1,2})/g,U7=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=V7;return void 0!==o&&(o=D5(o),s=$7),z7(i,s,(function(i,s){var c;switch(M7(s,0)){case"$":return"$";case"&":return e;case"`":return H7(t,0,n);case"'":return H7(t,a);case"<":c=o[H7(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=R7(l/10);return 0===f?i:f<=u?void 0===r[f-1]?M7(s,1):r[f-1]+M7(s,1):i}c=r[l-1]}return void 0===c?"":c}))},Z7=B6.TypeError,W7=function(e,t){var n=e.exec;if(Q6(n)){var r=j6(n,e,t);return null!==r&&q5(r),r}if("RegExp"===W6(e))return j6(C7,e,t);throw Z7("RegExp#exec called on incompatible receiver")},G7=L5("replace"),q7=Math.max,K7=Math.min,Y7=V6([].concat),X7=V6([].push),J7=V6("".indexOf),Q7=V6("".slice),eee="$0"==="a".replace(/./,"$0"),tee=!!/./[G7]&&""===/./[G7]("a","$0");function nee(e){return void 0===e&&(e="r"),e+"-"+Oh()}!function(e,t,n,r){var o=L5(e),i=!_6((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!_6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=V6(/./[o]),s=function(e,t,n){var r=tee?"$":"$0";return[function(e,n){var r=X6(this),o=null==e?void 0:m5(e,G7);return o?j6(o,e,r,n):j6(t,i9(r),e,n)},function(e,o){var i=q5(this),a=i9(e);if("string"==typeof o&&-1===J7(o,r)&&-1===J7(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Q6(o);s||(o=i9(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=W7(i,a);if(null===d)break;if(X7(f,d),!c)break;""===i9(d[0])&&(i.lastIndex=I7(a,T8(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=i9((d=f[g])[0]),m=q7(K7(C8(d.index),a.length),0),b=[],w=1;w<d.length;w++)X7(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=Y7([y],b,m,a);void 0!==x&&X7(E,x);var S=i9(T7(o,void 0,E))}else S=U7(y,a,m,b,x,o);m>=v&&(h+=Q7(a,v,m)+S,v=m+y.length)}return h+Q7(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=V6(e),s=t.exec;return s===C7||s===B7.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));x8(String.prototype,e,s[0]),x8(B7,o,s[1])}}("replace",0,!!_6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!eee||tee);var ree=B6.Promise,oee=function(e,t,n){for(var r in t)x8(e,r,t[r],n);return e},iee=B6.String,aee=B6.TypeError,uee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=V6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return q5(n),function(e){if("object"==typeof e||Q6(e))return e;throw aee("Can't set "+iee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),see=X5.f,cee=L5("toStringTag"),lee=function(e,t,n){e&&!A5(e=n?e:e.prototype,cee)&&see(e,cee,{configurable:!0,value:t})},fee=L5("species"),dee=B6.TypeError,pee=function(e,t){if(r5(t,e))return e;throw dee("Incorrect invocation")},hee={},vee=L5("iterator"),gee=Array.prototype,yee=L5("iterator"),mee=function(e){if(null!=e)return m5(e,yee)||m5(e,"@@iterator")||hee[r9(e)]},bee=B6.TypeError,wee=function(e,t,n){var r,o;q5(e);try{if(!(r=m5(e,"return"))){if("throw"===t)throw n;return n}r=j6(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return q5(r),n},xee=B6.TypeError,Eee=function(e,t){this.stopped=e,this.result=t},See=Eee.prototype,Cee=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=N9(t,f),g=function(e){return r&&wee(r,"normal",e),new Eee(!0,e)},y=function(e){return d?(q5(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=mee(e)))throw xee(v5(e)+" is not iterable");if(void 0!==(l=o)&&(hee.Array===l||gee[vee]===l)){for(i=0,a=B8(e);a>i;i++)if((u=y(e[i]))&&r5(See,u))return u;return new Eee(!1)}r=function(e,t){var n=arguments.length<2?mee(e):t;if(y5(n))return q5(j6(n,e));throw bee(v5(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=j6(s,r)).done;){try{u=y(c.value)}catch(e){wee(r,"throw",e)}if("object"==typeof u&&u&&r5(See,u))return u}return new Eee(!1)},Dee=L5("iterator"),Oee=!1;try{var Aee=0,kee={next:function(){return{done:!!Aee++}},return:function(){Oee=!0}};kee[Dee]=function(){return this},Array.from(kee,(function(){throw 2}))}catch(Mc){}var Tee,Bee,_ee,Pee,Fee=function(e,t){if(!t&&!Oee)return!1;var n=!1;try{var r={};r[Dee]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},jee=B6.TypeError,Nee=L5("species"),Lee=V6([].slice),Iee=/(?:ipad|iphone|ipod).*applewebkit/i.test(o5),Ree="process"==W6(B6.process),Mee=B6.setImmediate,zee=B6.clearImmediate,Hee=B6.process,$ee=B6.Dispatch,Vee=B6.Function,Uee=B6.MessageChannel,Zee=B6.String,Wee=0,Gee={};try{Tee=B6.location}catch(Mc){}var qee=function(e){if(A5(Gee,e)){var t=Gee[e];delete Gee[e],t()}},Kee=function(e){return function(){qee(e)}},Yee=function(e){qee(e.data)},Xee=function(e){B6.postMessage(Zee(e),Tee.protocol+"//"+Tee.host)};Mee&&zee||(Mee=function(e){var t=Lee(arguments,1);return Gee[++Wee]=function(){T7(Q6(e)?e:Vee(e),void 0,t)},Bee(Wee),Wee},zee=function(e){delete Gee[e]},Ree?Bee=function(e){Hee.nextTick(Kee(e))}:$ee&&$ee.now?Bee=function(e){$ee.now(Kee(e))}:Uee&&!Iee?(Pee=(_ee=new Uee).port2,_ee.port1.onmessage=Yee,Bee=N9(Pee.postMessage,Pee)):B6.addEventListener&&Q6(B6.postMessage)&&!B6.importScripts&&Tee&&"file:"!==Tee.protocol&&!_6(Xee)?(Bee=Xee,B6.addEventListener("message",Yee,!1)):Bee="onreadystatechange"in $5("script")?function(e){E9.appendChild($5("script")).onreadystatechange=function(){E9.removeChild(this),qee(e)}}:function(e){setTimeout(Kee(e),0)});var Jee,Qee,ete,tte,nte,rte,ote,ite,ate={set:Mee,clear:zee},ute=/ipad|iphone|ipod/i.test(o5)&&void 0!==B6.Pebble,ste=/web0s(?!.*chrome)/i.test(o5),cte=Z5.f,lte=ate.set,fte=B6.MutationObserver||B6.WebKitMutationObserver,dte=B6.document,pte=B6.process,hte=B6.Promise,vte=cte(B6,"queueMicrotask"),gte=vte&&vte.value;gte||(Jee=function(){var e,t;for(Ree&&(e=pte.domain)&&e.exit();Qee;){t=Qee.fn,Qee=Qee.next;try{t()}catch(e){throw Qee?tte():ete=void 0,e}}ete=void 0,e&&e.enter()},Iee||Ree||ste||!fte||!dte?!ute&&hte&&hte.resolve?((ote=hte.resolve(void 0)).constructor=hte,ite=N9(ote.then,ote),tte=function(){ite(Jee)}):Ree?tte=function(){pte.nextTick(Jee)}:(lte=N9(lte,B6),tte=function(){lte(Jee)}):(nte=!0,rte=dte.createTextNode(""),new fte(Jee).observe(rte,{characterData:!0}),tte=function(){rte.data=nte=!nte}));var yte,mte,bte,wte,xte=gte||function(e){var t={fn:e,next:void 0};ete&&(ete.next=t),Qee||(Qee=t,tte()),ete=t},Ete=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=y5(t),this.reject=y5(n)},Ste={f:function(e){return new Ete(e)}},Cte=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Dte="object"==typeof window,Ote=ate.set,Ate=L5("species"),kte="Promise",Tte=g8.getterFor(kte),Bte=g8.set,_te=g8.getterFor(kte),Pte=ree&&ree.prototype,Fte=ree,jte=Pte,Nte=B6.TypeError,Lte=B6.document,Ite=B6.process,Rte=Ste.f,Mte=Rte,zte=!!(Lte&&Lte.createEvent&&B6.dispatchEvent),Hte=Q6(B6.PromiseRejectionEvent),$te=!1,Vte=K8(kte,(function(){var e=r8(Fte),t=e!==String(Fte);if(!t&&66===c5)return!0;if(c5>=51&&/native code/.test(e))return!1;var n=new Fte((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ate]=r,!($te=n.then((function(){}))instanceof r)||!t&&Dte&&!Hte})),Ute=Vte||!Fee((function(e){Fte.all(e).catch((function(){}))})),Zte=function(e){var t;return!(!e5(e)||!Q6(t=e.then))&&t},Wte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;xte((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&Yte(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(Nte("Promise-chain cycle")):(u=Zte(a))?j6(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&qte(e)}))}},Gte=function(e,t,n){var r,o;zte?((r=Lte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),B6.dispatchEvent(r)):r={promise:t,reason:n},!Hte&&(o=B6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=B6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},qte=function(e){j6(Ote,B6,(function(){var t,n=e.facade,r=e.value;if(Kte(e)&&(t=Cte((function(){Ree?Ite.emit("unhandledRejection",r,n):Gte("unhandledrejection",n,r)})),e.rejection=Ree||Kte(e)?2:1,t.error))throw t.value}))},Kte=function(e){return 1!==e.rejection&&!e.parent},Yte=function(e){j6(Ote,B6,(function(){var t=e.facade;Ree?Ite.emit("rejectionHandled",t):Gte("rejectionhandled",t,e.value)}))},Xte=function(e,t,n){return function(r){e(t,r,n)}},Jte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Wte(e,!0))},Qte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Nte("Promise can't be resolved itself");var r=Zte(t);r?xte((function(){var n={done:!1};try{j6(r,t,Xte(Qte,n,e),Xte(Jte,n,e))}catch(t){Jte(n,t,e)}})):(e.value=t,e.state=1,Wte(e,!1))}catch(t){Jte({done:!1},t,e)}}};if(Vte&&(jte=(Fte=function(e){pee(this,jte),y5(e),j6(yte,this);var t=Tte(this);try{e(Xte(Qte,t),Xte(Jte,t))}catch(e){Jte(t,e)}}).prototype,(yte=function(e){Bte(this,{type:kte,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=oee(jte,{then:function(e,t){var n=_te(this),r=n.reactions,o=Rte(function(e,t){var n,r=q5(e).constructor;return void 0===r||null==(n=q5(r)[Nee])?t:function(e){if(U9(e))return e;throw jee(v5(e)+" is not a constructor")}(n)}(this,Fte));return o.ok=!Q6(e)||e,o.fail=Q6(t)&&t,o.domain=Ree?Ite.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Wte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),mte=function(){var e=new yte,t=Tte(e);this.promise=e,this.resolve=Xte(Qte,t),this.reject=Xte(Jte,t)},Ste.f=Rte=function(e){return e===Fte||e===bte?new mte(e):Mte(e)},Q6(ree)&&Pte!==Object.prototype)){wte=Pte.then,$te||(x8(Pte,"then",(function(e,t){var n=this;return new Fte((function(e,t){j6(wte,n,e,t)})).then(e,t)}),{unsafe:!0}),x8(Pte,"catch",jte.catch,{unsafe:!0}));try{delete Pte.constructor}catch(Mc){}uee&&uee(Pte,jte)}function ene(e,t,n){return void 0===n&&(n=""),E6(this,void 0,void 0,(function(){var r,o,i,a,u,s,c;return S6(this,(function(l){switch(l.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=l.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=l.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),c={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){gd.insertNodes(e,c)})),o(c),[2]}}))}))}function tne(){return nee("w-e-insert-video")}X8({global:!0,wrap:!0,forced:Vte},{Promise:Fte}),lee(Fte,kte,!1),function(e){var t=n5("Promise"),n=X5.f;P6&&t&&!t[fee]&&n(t,fee,{configurable:!0,get:function(){return this}})}(),bte=n5(kte),X8({target:kte,stat:!0,forced:Vte},{reject:function(e){var t=Rte(this);return j6(t.reject,void 0,e),t.promise}}),X8({target:kte,stat:!0,forced:Vte},{resolve:function(e){return function(e,t){if(q5(e),e5(t)&&t.constructor===e)return t;var n=Ste.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),X8({target:kte,stat:!0,forced:Ute},{all:function(e){var t=this,n=Rte(t),r=n.resolve,o=n.reject,i=Cte((function(){var n=y5(t.resolve),i=[],a=0,u=1;Cee(e,(function(e){var s=a++,c=!1;u++,j6(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Rte(t),r=n.reject,o=Cte((function(){var o=y5(t.resolve);Cee(e,(function(e){j6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var nne=function(){function e(){this.title=lF("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=tne(),this.posterInputId=tne(),this.buttonId=tne()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||!!TA.getSelectedElems(e).some((function(t){var n=TA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=C6(X_(lF("videoModule.videoSrc"),r,lF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],c=C6(X_(lF("videoModule.videoPoster"),o,lF("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=Bp(s),p=Bp(f),h=C6(J_(i,lF("videoModule.ok")),1)[0];if(null==this.$content){var v=Bp("<div></div>");v.on("click","#"+i,(function(n){return E6(t,void 0,void 0,(function(){var t,i;return S6(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,ene(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(l),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),rne=V6([].join),one=K6!=Object,ine=function(e,t){var n=[].join;return!!n&&_6((function(){n.call(null,",",1)}))}();X8({target:"Array",proto:!0,forced:one||!ine},{join:function(e){return rne(J6(this),void 0===e?",":e)}});var ane,une,sne,cne=!_6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lne=u8("IE_PROTO"),fne=B6.Object,dne=fne.prototype,pne=cne?fne.getPrototypeOf:function(e){var t=D5(e);if(A5(t,lne))return t[lne];var n=t.constructor;return Q6(n)&&t instanceof n?n.prototype:t instanceof fne?dne:null},hne=L5("iterator"),vne=!1;[].keys&&("next"in(sne=[].keys())?(une=pne(pne(sne)))!==Object.prototype&&(ane=une):vne=!0);var gne=null==ane||_6((function(){var e={};return ane[hne].call(e)!==e}));gne&&(ane={}),Q6(ane[hne])||x8(ane,hne,(function(){return this}));var yne={IteratorPrototype:ane,BUGGY_SAFARI_ITERATORS:vne},mne=yne.IteratorPrototype,bne=function(){return this},wne=w8.PROPER,xne=w8.CONFIGURABLE,Ene=yne.IteratorPrototype,Sne=yne.BUGGY_SAFARI_ITERATORS,Cne=L5("iterator"),Dne=function(){return this},One=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=k9(mne,{next:R6(1,n)}),lee(e,o,!1),hee[o]=bne}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!Sne&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Cne]||p["@@iterator"]||o&&p[o],v=!Sne&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=pne(g.call(new e)))!==Object.prototype&&u.next&&(pne(u)!==Ene&&(uee?uee(u,Ene):Q6(u[Cne])||x8(u,Cne,Dne)),lee(u,f,!0)),wne&&"values"==o&&h&&"values"!==h.name&&(xne?J5(p,"name","values"):(d=!0,v=function(){return j6(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(Sne||d||!(c in p))&&x8(p,c,s[c]);else X8({target:t,proto:!0,forced:Sne||d},s);return p[Cne]!==v&&x8(p,Cne,v,{name:o}),hee[t]=v,s},Ane=g8.set,kne=g8.getterFor("Array Iterator"),Tne=One(Array,"Array",(function(e,t){Ane(this,{type:"Array Iterator",target:J6(e),index:0,kind:t})}),(function(){var e=kne(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");hee.Arguments=hee.Array,_9("keys"),_9("values"),_9("entries");var Bne=N7.charAt,_ne=g8.set,Pne=g8.getterFor("String Iterator");One(String,"String",(function(e){_ne(this,{type:"String Iterator",string:i9(e),index:0})}),(function(){var e,t=Pne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Bne(n,r),t.index+=e.length,{value:e,done:!1})}));var Fne=function(e,t,n){var r=M5(t);r in e?X5.f(e,r,R6(0,n)):e[r]=n},jne=B6.Array,Nne=Math.max,Lne=R8.f,Ine="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rne={f:function(e){return Ine&&"Window"==W6(e)?function(e){try{return Lne(e)}catch(e){return function(e,t,n){for(var r=B8(e),o=A8(void 0,r),i=A8(r,r),a=jne(Nne(i-o,0)),u=0;o<i;o++,u++)Fne(a,u,e[o]);return a.length=u,a}(Ine)}}(e):Lne(J6(e))}},Mne=_6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),zne=Object.isExtensible,Hne=_6((function(){zne(1)}))||Mne?function(e){return!!e5(e)&&(!Mne||"ArrayBuffer"!=W6(e))&&(!zne||zne(e))}:zne,$ne=!_6((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vne=O6((function(e){var t=X5.f,n=!1,r=_5("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=R8.f,t=V6([].splice),o={};o[r]=1,e(o).length&&(R8.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},X8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rne.f}))},fastKey:function(e,t){if(!e5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!A5(e,r)){if(!Hne(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!A5(e,r)){if(!Hne(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return $ne&&n&&Hne(e)&&!A5(e,r)&&i(e),e}};s8[r]=!0})),Une=Vne.getWeakData,Zne=g8.set,Wne=g8.getterFor,Gne=Y9.find,qne=Y9.findIndex,Kne=V6([].splice),Yne=0,Xne=function(e){return e.frozen||(e.frozen=new Jne)},Jne=function(){this.entries=[]},Qne=function(e,t){return Gne(e.entries,(function(e){return e[0]===t}))};Jne.prototype={get:function(e){var t=Qne(this,e);if(t)return t[1]},has:function(e){return!!Qne(this,e)},set:function(e,t){var n=Qne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=qne(this.entries,(function(t){return t[0]===e}));return~t&&Kne(this.entries,t,1),!!~t}};var ere,tre={getConstructor:function(e,t,n,r){var o=e((function(e,o){pee(e,i),Zne(e,{type:t,id:Yne++,frozen:void 0}),null!=o&&Cee(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Wne(t),u=function(e,t,n){var r=a(e),o=Une(q5(t),!0);return!0===o?Xne(r).set(t,n):o[r.id]=n,e};return oee(i,{delete:function(e){var t=a(this);if(!e5(e))return!1;var n=Une(e);return!0===n?Xne(t).delete(e):n&&A5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!e5(e))return!1;var n=Une(e);return!0===n?Xne(t).has(e):n&&A5(n,t.id)}}),oee(i,n?{get:function(e){var t=a(this);if(e5(e)){var n=Une(e);return!0===n?Xne(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},nre=g8.enforce,rre=!B6.ActiveXObject&&"ActiveXObject"in B6,ore=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ire=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=B6[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=V6(u[e]);x8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!e5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!e5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!e5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(K8(e,!Q6(a)||!(o||u.forEach&&!_6((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Vne.enable();else if(K8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=_6((function(){f.has(1)})),h=Fee((function(e){new a(e)})),v=!o&&_6((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){pee(e,u);var n=function(e,t,n){var r,o;return uee&&Q6(r=t.constructor)&&r!==n&&e5(o=r.prototype)&&o!==n.prototype&&uee(e,o),e}(new a,e,s);return null!=t&&Cee(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,X8({global:!0,forced:s!=a},c),lee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",ore,tre);if(i8&&rre){ere=tre.getConstructor(ore,"WeakMap",!0),Vne.enable();var are=ire.prototype,ure=V6(are.delete),sre=V6(are.has),cre=V6(are.get),lre=V6(are.set);oee(are,{delete:function(e){if(e5(e)&&!Hne(e)){var t=nre(this);return t.frozen||(t.frozen=new ere),ure(this,e)||t.frozen.delete(e)}return ure(this,e)},has:function(e){if(e5(e)&&!Hne(e)){var t=nre(this);return t.frozen||(t.frozen=new ere),sre(this,e)||t.frozen.has(e)}return sre(this,e)},get:function(e){if(e5(e)&&!Hne(e)){var t=nre(this);return t.frozen||(t.frozen=new ere),sre(this,e)?cre(this,e):t.frozen.get(e)}return cre(this,e)},set:function(e,t){if(e5(e)&&!Hne(e)){var n=nre(this);n.frozen||(n.frozen=new ere),sre(this,e)?lre(this,e,t):n.frozen.set(e,t)}else lre(this,e,t);return this}})}var fre={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},dre=$5("span").classList,pre=dre&&dre.constructor&&dre.constructor.prototype,hre=pre===Object.prototype?void 0:pre,vre=L5("iterator"),gre=L5("toStringTag"),yre=Tne.values,mre=function(e,t){if(e){if(e[vre]!==yre)try{J5(e,vre,yre)}catch(t){e[vre]=yre}if(e[gre]||J5(e,gre,t),fre[t])for(var n in Tne)if(e[n]!==Tne[n])try{J5(e,n,Tne[n])}catch(t){e[n]=Tne[n]}}};for(var bre in fre)mre(B6[bre]&&B6[bre].prototype,bre);mre(hre,"DOMTokenList");var wre=w8.EXISTS,xre=X5.f,Ere=Function.prototype,Sre=V6(Ere.toString),Cre=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Dre=V6(Cre.exec);P6&&!wre&&xre(Ere,"name",{configurable:!0,get:function(){try{return Dre(Cre,Sre(this))[1]}catch(e){return""}}});var Ore=L5("species"),Are=c5>=51||!_6((function(){var e=[];return(e.constructor={})[Ore]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),kre=L5("species"),Tre=B6.Array,Bre=Math.max;function _re(e){return e.getMenuConfig("uploadVideo")}X8({target:"Array",proto:!0,forced:!Are},{slice:function(e,t){var n,r,o,i=J6(this),a=B8(i),u=A8(e,a),s=A8(void 0===t?a:t,a);if(L9(i)&&(n=i.constructor,(U9(n)&&(n===Tre||L9(n.prototype))||e5(n)&&null===(n=n[kre]))&&(n=void 0),n===Tre||void 0===n))return Lee(i,u,s);for(r=new(void 0===n?Tre:n)(Bre(s-u,0)),o=0;u<s;u++,o++)u in i&&Fne(r,o,i[u]);return r.length=o,r}});var Pre=new WeakMap;function Fre(e,t){return E6(this,void 0,void 0,(function(){var n,r,o,i;return S6(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Pre.get(e);if(null!=t)return t;var n=_re(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=xP(x6(x6({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return ene(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){var l=c.url,f=void 0===l?"":l,d=c.poster;ene(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Pre.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var jre=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return ene(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Bp("body"),s=Bp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;E6(this,void 0,void 0,(function(){var o,i,a,u,s,c;return S6(this,(function(l){switch(l.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=_re(e).customUpload,l.label=1;case 1:l.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),l.label=2;case 2:return[4,a.next()];case 3:return(u=l.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return ene(e,t,n)}))]:[3,5]);case 4:return l.sent(),[3,7];case 5:return[4,Fre(e,s)];case 6:l.sent(),l.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return c=l.sent(),n={error:c},[3,15];case 10:return l.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||!!TA.getSelectedElems(e).some((function(t){var n=TA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Nre=w8.PROPER,Lre=RegExp.prototype,Ire=Lre.toString,Rre=V6(o7),Mre=_6((function(){return"/a/b"!=Ire.call({source:"a",flags:"b"})})),zre=Nre&&"toString"!=Ire.name;function Hre(){return nee("w-e-insert-video")}(Mre||zre)&&x8(RegExp.prototype,"toString",(function(){var e=q5(this),t=i9(e.source),n=e.flags;return"/"+t+"/"+i9(void 0===n&&r5(Lre,e)&&!("flags"in Lre)?Rre(e):n)}),{unsafe:!0});var $re=function(){function e(){this.title=lF("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Hre(),this.heightInputId=Hre(),this.buttonId=Hre()}return e.prototype.getSelectedVideoNode=function(e){return TA.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=C6(X_(lF("videoModule.width"),n,"auto"),2),a=i[0],u=Bp(i[1]),s=C6(X_(lF("videoModule.height"),r,"auto"),2),c=s[0],l=Bp(s[1]),f=C6(J_(o,lF("videoModule.ok")),1)[0];if(null==this.$content){var d=Bp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",c=u?u.toString():"auto";e.restoreSelection(),gd.setNodes(e,{width:s,height:c},{match:function(e){return TA.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(c),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),l.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Vre={renderElems:[m9],elemsToHtml:[b9],preParseHtml:[F9],parseElemsHtml:[r7],menus:[{key:"insertVideo",factory:function(){return new nne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new jre},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 $re}}],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 t=C6(e,2),o=t[0],i=t[1];return"video"===TA.getNodeType(o)&&TA.isLastNode(r,o)&&gd.insertNodes(r,TA.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};cF("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),cF("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Ure="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function Zre(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wre,Gre,qre=function(e){return e&&e.Math==Math&&e},Kre=qre("object"==typeof globalThis&&globalThis)||qre("object"==typeof window&&window)||qre("object"==typeof self&&self)||qre("object"==typeof Ure&&Ure)||function(){return this}()||Function("return this")(),Yre=function(e){try{return!!e()}catch(e){return!0}},Xre=!Yre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Jre=Function.prototype.call,Qre=Jre.bind?Jre.bind(Jre):function(){return Jre.apply(Jre,arguments)},eoe={}.propertyIsEnumerable,toe=Object.getOwnPropertyDescriptor,noe={f:toe&&!eoe.call({1:2},1)?function(e){var t=toe(this,e);return!!t&&t.enumerable}:eoe},roe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ooe=Function.prototype,ioe=ooe.bind,aoe=ooe.call,uoe=ioe&&ioe.bind(aoe),soe=ioe?function(e){return e&&uoe(aoe,e)}:function(e){return e&&function(){return aoe.apply(e,arguments)}},coe=soe({}.toString),loe=soe("".slice),foe=function(e){return loe(coe(e),8,-1)},doe=Kre.Object,poe=soe("".split),hoe=Yre((function(){return!doe("z").propertyIsEnumerable(0)}))?function(e){return"String"==foe(e)?poe(e,""):doe(e)}:doe,voe=Kre.TypeError,goe=function(e){if(null==e)throw voe("Can't call method on "+e);return e},yoe=function(e){return hoe(goe(e))},moe=function(e){return"function"==typeof e},boe=function(e){return"object"==typeof e?null!==e:moe(e)},woe=function(e){return moe(e)?e:void 0},xoe=function(e,t){return arguments.length<2?woe(Kre[e]):Kre[e]&&Kre[e][t]},Eoe=soe({}.isPrototypeOf),Soe=xoe("navigator","userAgent")||"",Coe=Kre.process,Doe=Kre.Deno,Ooe=Coe&&Coe.versions||Doe&&Doe.version,Aoe=Ooe&&Ooe.v8;Aoe&&(Gre=(Wre=Aoe.split("."))[0]>0&&Wre[0]<4?1:+(Wre[0]+Wre[1])),!Gre&&Soe&&(!(Wre=Soe.match(/Edge\/(\d+)/))||Wre[1]>=74)&&(Wre=Soe.match(/Chrome\/(\d+)/))&&(Gre=+Wre[1]);var koe=Gre,Toe=!!Object.getOwnPropertySymbols&&!Yre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&koe&&koe<41})),Boe=Toe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_oe=Kre.Object,Poe=Boe?function(e){return"symbol"==typeof e}:function(e){var t=xoe("Symbol");return moe(t)&&Eoe(t.prototype,_oe(e))},Foe=Kre.String,joe=function(e){try{return Foe(e)}catch(e){return"Object"}},Noe=Kre.TypeError,Loe=function(e){if(moe(e))return e;throw Noe(joe(e)+" is not a function")},Ioe=function(e,t){var n=e[t];return null==n?void 0:Loe(n)},Roe=Kre.TypeError,Moe=Object.defineProperty,zoe=function(e,t){try{Moe(Kre,e,{value:t,configurable:!0,writable:!0})}catch(n){Kre[e]=t}return t},Hoe=Kre["__core-js_shared__"]||zoe("__core-js_shared__",{}),$oe=Zre((function(e){(e.exports=function(e,t){return Hoe[e]||(Hoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Voe=Kre.Object,Uoe=function(e){return Voe(goe(e))},Zoe=soe({}.hasOwnProperty),Woe=Object.hasOwn||function(e,t){return Zoe(Uoe(e),t)},Goe=0,qoe=Math.random(),Koe=soe(1..toString),Yoe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Koe(++Goe+qoe,36)},Xoe=$oe("wks"),Joe=Kre.Symbol,Qoe=Joe&&Joe.for,eie=Boe?Joe:Joe&&Joe.withoutSetter||Yoe,tie=function(e){if(!Woe(Xoe,e)||!Toe&&"string"!=typeof Xoe[e]){var t="Symbol."+e;Toe&&Woe(Joe,e)?Xoe[e]=Joe[e]:Xoe[e]=Boe&&Qoe?Qoe(t):eie(t)}return Xoe[e]},nie=Kre.TypeError,rie=tie("toPrimitive"),oie=function(e){var t=function(e,t){if(!boe(e)||Poe(e))return e;var n,r=Ioe(e,rie);if(r){if(void 0===t&&(t="default"),n=Qre(r,e,t),!boe(n)||Poe(n))return n;throw nie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&moe(n=e.toString)&&!boe(r=Qre(n,e)))return r;if(moe(n=e.valueOf)&&!boe(r=Qre(n,e)))return r;if("string"!==t&&moe(n=e.toString)&&!boe(r=Qre(n,e)))return r;throw Roe("Can't convert object to primitive value")}(e,t)}(e,"string");return Poe(t)?t:t+""},iie=Kre.document,aie=boe(iie)&&boe(iie.createElement),uie=function(e){return aie?iie.createElement(e):{}},sie=!Xre&&!Yre((function(){return 7!=Object.defineProperty(uie("div"),"a",{get:function(){return 7}}).a})),cie=Object.getOwnPropertyDescriptor,lie={f:Xre?cie:function(e,t){if(e=yoe(e),t=oie(t),sie)try{return cie(e,t)}catch(e){}if(Woe(e,t))return roe(!Qre(noe.f,e,t),e[t])}},fie=Kre.String,die=Kre.TypeError,pie=function(e){if(boe(e))return e;throw die(fie(e)+" is not an object")},hie=Kre.TypeError,vie=Object.defineProperty,gie={f:Xre?vie:function(e,t,n){if(pie(e),t=oie(t),pie(n),sie)try{return vie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw hie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yie=Xre?function(e,t,n){return gie.f(e,t,roe(1,n))}:function(e,t,n){return e[t]=n,e},mie=soe(Function.toString);moe(Hoe.inspectSource)||(Hoe.inspectSource=function(e){return mie(e)});var bie,wie,xie,Eie=Hoe.inspectSource,Sie=Kre.WeakMap,Cie=moe(Sie)&&/native code/.test(Eie(Sie)),Die=$oe("keys"),Oie=function(e){return Die[e]||(Die[e]=Yoe(e))},Aie={},kie=Kre.TypeError,Tie=Kre.WeakMap;if(Cie||Hoe.state){var Bie=Hoe.state||(Hoe.state=new Tie),_ie=soe(Bie.get),Pie=soe(Bie.has),Fie=soe(Bie.set);bie=function(e,t){if(Pie(Bie,e))throw new kie("Object already initialized");return t.facade=e,Fie(Bie,e,t),t},wie=function(e){return _ie(Bie,e)||{}},xie=function(e){return Pie(Bie,e)}}else{var jie=Oie("state");Aie[jie]=!0,bie=function(e,t){if(Woe(e,jie))throw new kie("Object already initialized");return t.facade=e,yie(e,jie,t),t},wie=function(e){return Woe(e,jie)?e[jie]:{}},xie=function(e){return Woe(e,jie)}}var Nie={set:bie,get:wie,has:xie,enforce:function(e){return xie(e)?wie(e):bie(e,{})},getterFor:function(e){return function(t){var n;if(!boe(t)||(n=wie(t)).type!==e)throw kie("Incompatible receiver, "+e+" required");return n}}},Lie=Function.prototype,Iie=Xre&&Object.getOwnPropertyDescriptor,Rie=Woe(Lie,"name"),Mie={EXISTS:Rie,PROPER:Rie&&"something"===function(){}.name,CONFIGURABLE:Rie&&(!Xre||Xre&&Iie(Lie,"name").configurable)},zie=Zre((function(e){var t=Mie.CONFIGURABLE,n=Nie.get,r=Nie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;moe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Woe(i,"name")||t&&i.name!==f)&&yie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Kre?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:yie(e,n,i)):c?e[n]=i:zoe(n,i)})(Function.prototype,"toString",(function(){return moe(this)&&n(this).source||Eie(this)}))})),Hie=Math.ceil,$ie=Math.floor,Vie=function(e){var t=+e;return t!=t||0===t?0:(t>0?$ie:Hie)(t)},Uie=Math.max,Zie=Math.min,Wie=function(e,t){var n=Vie(e);return n<0?Uie(n+t,0):Zie(n,t)},Gie=Math.min,qie=function(e){return e>0?Gie(Vie(e),9007199254740991):0},Kie=function(e){return qie(e.length)},Yie=function(e){return function(t,n,r){var o,i=yoe(t),a=Kie(i),u=Wie(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Xie=(Yie(!0),Yie(!1)),Jie=soe([].push),Qie=function(e,t){var n,r=yoe(e),o=0,i=[];for(n in r)!Woe(Aie,n)&&Woe(r,n)&&Jie(i,n);for(;t.length>o;)Woe(r,n=t[o++])&&(~Xie(i,n)||Jie(i,n));return i},eae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tae=eae.concat("length","prototype"),nae={f:Object.getOwnPropertyNames||function(e){return Qie(e,tae)}},rae={f:Object.getOwnPropertySymbols},oae=soe([].concat),iae=xoe("Reflect","ownKeys")||function(e){var t=nae.f(pie(e)),n=rae.f;return n?oae(t,n(e)):t},aae=function(e,t){for(var n=iae(t),r=gie.f,o=lie.f,i=0;i<n.length;i++){var a=n[i];Woe(e,a)||r(e,a,o(t,a))}},uae=/#|\.prototype\./,sae=function(e,t){var n=lae[cae(e)];return n==dae||n!=fae&&(moe(t)?Yre(t):!!t)},cae=sae.normalize=function(e){return String(e).replace(uae,".").toLowerCase()},lae=sae.data={},fae=sae.NATIVE="N",dae=sae.POLYFILL="P",pae=sae,hae=lie.f,vae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Kre:c?Kre[u]||zoe(u,{}):(Kre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=hae(n,r))&&a.value:n[r],!pae(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;aae(i,o)}(e.sham||o&&o.sham)&&yie(i,"sham",!0),zie(n,r,i,e)}},gae=Array.isArray||function(e){return"Array"==foe(e)},yae={};yae[tie("toStringTag")]="z";var mae="[object z]"===String(yae),bae=tie("toStringTag"),wae=Kre.Object,xae="Arguments"==foe(function(){return arguments}()),Eae=mae?foe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=wae(e),bae))?n:xae?foe(t):"Object"==(r=foe(t))&&moe(t.callee)?"Arguments":r},Sae=function(){},Cae=[],Dae=xoe("Reflect","construct"),Oae=/^\s*(?:class|function)\b/,Aae=soe(Oae.exec),kae=!Oae.exec(Sae),Tae=function(e){if(!moe(e))return!1;try{return Dae(Sae,Cae,e),!0}catch(e){return!1}},Bae=!Dae||Yre((function(){var e;return Tae(Tae.call)||!Tae(Object)||!Tae((function(){e=!0}))||e}))?function(e){if(!moe(e))return!1;switch(Eae(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return kae||!!Aae(Oae,Eie(e))}:Tae,_ae=function(e,t,n){var r=oie(t);r in e?gie.f(e,r,roe(0,n)):e[r]=n},Pae=tie("species"),Fae=soe([].slice),jae=koe>=51||!Yre((function(){var e=[];return(e.constructor={})[Pae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Nae=tie("species"),Lae=Kre.Array,Iae=Math.max;vae({target:"Array",proto:!0,forced:!jae},{slice:function(e,t){var n,r,o,i=yoe(this),a=Kie(i),u=Wie(e,a),s=Wie(void 0===t?a:t,a);if(gae(i)&&(n=i.constructor,(Bae(n)&&(n===Lae||gae(n.prototype))||boe(n)&&null===(n=n[Nae]))&&(n=void 0),n===Lae||void 0===n))return Fae(i,u,s);for(r=new(void 0===n?Lae:n)(Iae(s-u,0)),o=0;u<s;u++,o++)u in i&&_ae(r,o,i[u]);return r.length=o,r}});var Rae=mae?{}.toString:function(){return"[object "+Eae(this)+"]"};mae||zie(Object.prototype,"toString",Rae,{unsafe:!0});var Mae,zae=Kre.String,Hae=function(e){if("Symbol"===Eae(e))throw TypeError("Cannot convert a Symbol value to a string");return zae(e)},$ae=function(){var e=pie(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},Vae=Kre.RegExp,Uae=Yre((function(){var e=Vae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Zae=Uae||Yre((function(){return!Vae("a","y").sticky})),Wae={BROKEN_CARET:Uae||Yre((function(){var e=Vae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Zae,UNSUPPORTED_Y:Uae},Gae=Object.keys||function(e){return Qie(e,eae)},qae=Xre?Object.defineProperties:function(e,t){pie(e);for(var n,r=yoe(t),o=Gae(t),i=o.length,a=0;i>a;)gie.f(e,n=o[a++],r[n]);return e},Kae=xoe("document","documentElement"),Yae=Oie("IE_PROTO"),Xae=function(){},Jae=function(e){return"<script>"+e+"<\/script>"},Qae=function(e){e.write(Jae("")),e.close();var t=e.parentWindow.Object;return e=null,t},eue=function(){try{Mae=new ActiveXObject("htmlfile")}catch(e){}var e,t;eue="undefined"!=typeof document?document.domain&&Mae?Qae(Mae):((t=uie("iframe")).style.display="none",Kae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jae("document.F=Object")),e.close(),e.F):Qae(Mae);for(var n=eae.length;n--;)delete eue.prototype[eae[n]];return eue()};Aie[Yae]=!0;var tue,nue,rue=Object.create||function(e,t){var n;return null!==e?(Xae.prototype=pie(e),n=new Xae,Xae.prototype=null,n[Yae]=e):n=eue(),void 0===t?n:qae(n,t)},oue=Kre.RegExp,iue=Yre((function(){var e=oue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),aue=Kre.RegExp,uue=Yre((function(){var e=aue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),sue=Nie.get,cue=$oe("native-string-replace",String.prototype.replace),lue=RegExp.prototype.exec,fue=lue,due=soe("".charAt),pue=soe("".indexOf),hue=soe("".replace),vue=soe("".slice),gue=(nue=/b*/g,Qre(lue,tue=/a/,"a"),Qre(lue,nue,"a"),0!==tue.lastIndex||0!==nue.lastIndex),yue=Wae.BROKEN_CARET,mue=void 0!==/()??/.exec("")[1];(gue||mue||yue||iue||uue)&&(fue=function(e){var t,n,r,o,i,a,u,s=this,c=sue(s),l=Hae(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Qre(fue,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=yue&&s.sticky,h=Qre($ae,s),v=s.source,g=0,y=l;if(p&&(h=hue(h,"y",""),-1===pue(h,"g")&&(h+="g"),y=vue(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==due(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),mue&&(n=new RegExp("^"+v+"$(?!\\s)",h)),gue&&(r=s.lastIndex),o=Qre(lue,p?n:s,y),p?o?(o.input=vue(o.input,g),o[0]=vue(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mue&&o&&o.length>1&&Qre(cue,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=rue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var bue=fue;vae({target:"RegExp",proto:!0,forced:/./.exec!==bue},{exec:bue});var wue=Function.prototype,xue=wue.apply,Eue=wue.bind,Sue=wue.call,Cue="object"==typeof Reflect&&Reflect.apply||(Eue?Sue.bind(xue):function(){return Sue.apply(xue,arguments)}),Due=tie("species"),Oue=RegExp.prototype,Aue=tie("match"),kue=Kre.TypeError,Tue=tie("species"),Bue=function(e,t){var n,r=pie(e).constructor;return void 0===r||null==(n=pie(r)[Tue])?t:function(e){if(Bae(e))return e;throw kue(joe(e)+" is not a constructor")}(n)},_ue=soe("".charAt),Pue=soe("".charCodeAt),Fue=soe("".slice),jue=function(e){return function(t,n){var r,o,i=Hae(goe(t)),a=Vie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Pue(i,a))<55296||r>56319||a+1===u||(o=Pue(i,a+1))<56320||o>57343?e?_ue(i,a):r:e?Fue(i,a,a+2):o-56320+(r-55296<<10)+65536}},Nue={codeAt:jue(!1),charAt:jue(!0)},Lue=Nue.charAt,Iue=function(e,t,n){return t+(n?Lue(e,t).length:1)},Rue=Kre.Array,Mue=Math.max,zue=function(e,t,n){for(var r=Kie(e),o=Wie(t,r),i=Wie(void 0===n?r:n,r),a=Rue(Mue(i-o,0)),u=0;o<i;o++,u++)_ae(a,u,e[o]);return a.length=u,a},Hue=Kre.TypeError,$ue=function(e,t){var n=e.exec;if(moe(n)){var r=Qre(n,e,t);return null!==r&&pie(r),r}if("RegExp"===foe(e))return Qre(bue,e,t);throw Hue("RegExp#exec called on incompatible receiver")},Vue=Wae.UNSUPPORTED_Y,Uue=Math.min,Zue=[].push,Wue=soe(/./.exec),Gue=soe(Zue),que=soe("".slice);!function(e,t,n,r){var o=tie(e),i=!Yre((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Yre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Due]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=soe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Hae(goe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!boe(r=e)||!(void 0!==(o=r[Aue])?o:"RegExp"==foe(r)))return Qre(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Qre(bue,p,i))&&!((s=p.lastIndex)>d&&(Gue(l,que(i,d,u.index)),u.length>1&&u.index<i.length&&Cue(Zue,l,zue(u,1)),c=u[0].length,d=s,l.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!c&&Wue(p,"")||Gue(l,""):Gue(l,que(i,d)),l.length>a?zue(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Qre(t,this,e,n)}:t,[function(t,n){var o=goe(this),i=null==t?void 0:Ioe(t,e);return i?Qre(i,t,o,n):Qre(r,Hae(o),t,n)},function(e,o){var i=pie(this),a=Hae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Bue(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Vue?"g":"y"),f=new s(Vue?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===$ue(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Vue?0:h;var g,y=$ue(f,Vue?que(a,h):a);if(null===y||(g=Uue(qie(f.lastIndex+(Vue?h:0)),a.length))===p)h=Iue(a,h,c);else{if(Gue(v,que(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Gue(v,y[m]),v.length===d)return v;h=p=g}}return Gue(v,que(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=soe(e),s=t.exec;return s===bue||s===Oue.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));zie(String.prototype,e,s[0]),zie(Oue,o,s[1])}r&&yie(Oue[o],"sham",!0)}("split",0,!!Yre((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Vue);
|
|
138
|
+
var x6=function(){return x6=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},x6.apply(this,arguments)};function E6(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function S6(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function C6(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||t-- >0)&&!(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}var D6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function O6(e){var t={exports:{}};return e(t,t.exports),t.exports}var A6,k6,T6=function(e){return e&&e.Math==Math&&e},B6=T6("object"==typeof globalThis&&globalThis)||T6("object"==typeof window&&window)||T6("object"==typeof self&&self)||T6("object"==typeof D6&&D6)||function(){return this}()||Function("return this")(),_6=function(e){try{return!!e()}catch(e){return!0}},P6=!_6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),F6=Function.prototype.call,j6=F6.bind?F6.bind(F6):function(){return F6.apply(F6,arguments)},N6={}.propertyIsEnumerable,L6=Object.getOwnPropertyDescriptor,I6={f:L6&&!N6.call({1:2},1)?function(e){var t=L6(this,e);return!!t&&t.enumerable}:N6},R6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M6=Function.prototype,z6=M6.bind,H6=M6.call,$6=z6&&z6.bind(H6),V6=z6?function(e){return e&&$6(H6,e)}:function(e){return e&&function(){return H6.apply(e,arguments)}},U6=V6({}.toString),Z6=V6("".slice),W6=function(e){return Z6(U6(e),8,-1)},G6=B6.Object,q6=V6("".split),K6=_6((function(){return!G6("z").propertyIsEnumerable(0)}))?function(e){return"String"==W6(e)?q6(e,""):G6(e)}:G6,Y6=B6.TypeError,X6=function(e){if(null==e)throw Y6("Can't call method on "+e);return e},J6=function(e){return K6(X6(e))},Q6=function(e){return"function"==typeof e},e5=function(e){return"object"==typeof e?null!==e:Q6(e)},t5=function(e){return Q6(e)?e:void 0},n5=function(e,t){return arguments.length<2?t5(B6[e]):B6[e]&&B6[e][t]},r5=V6({}.isPrototypeOf),o5=n5("navigator","userAgent")||"",i5=B6.process,a5=B6.Deno,u5=i5&&i5.versions||a5&&a5.version,s5=u5&&u5.v8;s5&&(k6=(A6=s5.split("."))[0]>0&&A6[0]<4?1:+(A6[0]+A6[1])),!k6&&o5&&(!(A6=o5.match(/Edge\/(\d+)/))||A6[1]>=74)&&(A6=o5.match(/Chrome\/(\d+)/))&&(k6=+A6[1]);var c5=k6,l5=!!Object.getOwnPropertySymbols&&!_6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&c5&&c5<41})),f5=l5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,d5=B6.Object,p5=f5?function(e){return"symbol"==typeof e}:function(e){var t=n5("Symbol");return Q6(t)&&r5(t.prototype,d5(e))},h5=B6.String,v5=function(e){try{return h5(e)}catch(e){return"Object"}},g5=B6.TypeError,y5=function(e){if(Q6(e))return e;throw g5(v5(e)+" is not a function")},m5=function(e,t){var n=e[t];return null==n?void 0:y5(n)},b5=B6.TypeError,w5=Object.defineProperty,x5=function(e,t){try{w5(B6,e,{value:t,configurable:!0,writable:!0})}catch(n){B6[e]=t}return t},E5=B6["__core-js_shared__"]||x5("__core-js_shared__",{}),S5=O6((function(e){(e.exports=function(e,t){return E5[e]||(E5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),C5=B6.Object,D5=function(e){return C5(X6(e))},O5=V6({}.hasOwnProperty),A5=Object.hasOwn||function(e,t){return O5(D5(e),t)},k5=0,T5=Math.random(),B5=V6(1..toString),_5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+B5(++k5+T5,36)},P5=S5("wks"),F5=B6.Symbol,j5=F5&&F5.for,N5=f5?F5:F5&&F5.withoutSetter||_5,L5=function(e){if(!A5(P5,e)||!l5&&"string"!=typeof P5[e]){var t="Symbol."+e;l5&&A5(F5,e)?P5[e]=F5[e]:P5[e]=f5&&j5?j5(t):N5(t)}return P5[e]},I5=B6.TypeError,R5=L5("toPrimitive"),M5=function(e){var t=function(e,t){if(!e5(e)||p5(e))return e;var n,r=m5(e,R5);if(r){if(void 0===t&&(t="default"),n=j6(r,e,t),!e5(n)||p5(n))return n;throw I5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Q6(n=e.toString)&&!e5(r=j6(n,e)))return r;if(Q6(n=e.valueOf)&&!e5(r=j6(n,e)))return r;if("string"!==t&&Q6(n=e.toString)&&!e5(r=j6(n,e)))return r;throw b5("Can't convert object to primitive value")}(e,t)}(e,"string");return p5(t)?t:t+""},z5=B6.document,H5=e5(z5)&&e5(z5.createElement),$5=function(e){return H5?z5.createElement(e):{}},V5=!P6&&!_6((function(){return 7!=Object.defineProperty($5("div"),"a",{get:function(){return 7}}).a})),U5=Object.getOwnPropertyDescriptor,Z5={f:P6?U5:function(e,t){if(e=J6(e),t=M5(t),V5)try{return U5(e,t)}catch(e){}if(A5(e,t))return R6(!j6(I6.f,e,t),e[t])}},W5=B6.String,G5=B6.TypeError,q5=function(e){if(e5(e))return e;throw G5(W5(e)+" is not an object")},K5=B6.TypeError,Y5=Object.defineProperty,X5={f:P6?Y5:function(e,t,n){if(q5(e),t=M5(t),q5(n),V5)try{return Y5(e,t,n)}catch(e){}if("get"in n||"set"in n)throw K5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},J5=P6?function(e,t,n){return X5.f(e,t,R6(1,n))}:function(e,t,n){return e[t]=n,e},Q5=V6(Function.toString);Q6(E5.inspectSource)||(E5.inspectSource=function(e){return Q5(e)});var e8,t8,n8,r8=E5.inspectSource,o8=B6.WeakMap,i8=Q6(o8)&&/native code/.test(r8(o8)),a8=S5("keys"),u8=function(e){return a8[e]||(a8[e]=_5(e))},s8={},c8=B6.TypeError,l8=B6.WeakMap;if(i8||E5.state){var f8=E5.state||(E5.state=new l8),d8=V6(f8.get),p8=V6(f8.has),h8=V6(f8.set);e8=function(e,t){if(p8(f8,e))throw new c8("Object already initialized");return t.facade=e,h8(f8,e,t),t},t8=function(e){return d8(f8,e)||{}},n8=function(e){return p8(f8,e)}}else{var v8=u8("state");s8[v8]=!0,e8=function(e,t){if(A5(e,v8))throw new c8("Object already initialized");return t.facade=e,J5(e,v8,t),t},t8=function(e){return A5(e,v8)?e[v8]:{}},n8=function(e){return A5(e,v8)}}var g8={set:e8,get:t8,has:n8,enforce:function(e){return n8(e)?t8(e):e8(e,{})},getterFor:function(e){return function(t){var n;if(!e5(t)||(n=t8(t)).type!==e)throw c8("Incompatible receiver, "+e+" required");return n}}},y8=Function.prototype,m8=P6&&Object.getOwnPropertyDescriptor,b8=A5(y8,"name"),w8={EXISTS:b8,PROPER:b8&&"something"===function(){}.name,CONFIGURABLE:b8&&(!P6||P6&&m8(y8,"name").configurable)},x8=O6((function(e){var t=w8.CONFIGURABLE,n=g8.get,r=g8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Q6(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!A5(i,"name")||t&&i.name!==f)&&J5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==B6?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:J5(e,n,i)):c?e[n]=i:x5(n,i)})(Function.prototype,"toString",(function(){return Q6(this)&&n(this).source||r8(this)}))})),E8=Math.ceil,S8=Math.floor,C8=function(e){var t=+e;return t!=t||0===t?0:(t>0?S8:E8)(t)},D8=Math.max,O8=Math.min,A8=function(e,t){var n=C8(e);return n<0?D8(n+t,0):O8(n,t)},k8=Math.min,T8=function(e){return e>0?k8(C8(e),9007199254740991):0},B8=function(e){return T8(e.length)},_8=function(e){return function(t,n,r){var o,i=J6(t),a=B8(i),u=A8(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},P8={includes:_8(!0),indexOf:_8(!1)},F8=P8.indexOf,j8=V6([].push),N8=function(e,t){var n,r=J6(e),o=0,i=[];for(n in r)!A5(s8,n)&&A5(r,n)&&j8(i,n);for(;t.length>o;)A5(r,n=t[o++])&&(~F8(i,n)||j8(i,n));return i},L8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],I8=L8.concat("length","prototype"),R8={f:Object.getOwnPropertyNames||function(e){return N8(e,I8)}},M8={f:Object.getOwnPropertySymbols},z8=V6([].concat),H8=n5("Reflect","ownKeys")||function(e){var t=R8.f(q5(e)),n=M8.f;return n?z8(t,n(e)):t},$8=function(e,t){for(var n=H8(t),r=X5.f,o=Z5.f,i=0;i<n.length;i++){var a=n[i];A5(e,a)||r(e,a,o(t,a))}},V8=/#|\.prototype\./,U8=function(e,t){var n=W8[Z8(e)];return n==q8||n!=G8&&(Q6(t)?_6(t):!!t)},Z8=U8.normalize=function(e){return String(e).replace(V8,".").toLowerCase()},W8=U8.data={},G8=U8.NATIVE="N",q8=U8.POLYFILL="P",K8=U8,Y8=Z5.f,X8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?B6:c?B6[u]||x5(u,{}):(B6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Y8(n,r))&&a.value:n[r],!K8(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$8(i,o)}(e.sham||o&&o.sham)&&J5(i,"sham",!0),x8(n,r,i,e)}},J8={};J8[L5("toStringTag")]="z";var Q8="[object z]"===String(J8),e9=L5("toStringTag"),t9=B6.Object,n9="Arguments"==W6(function(){return arguments}()),r9=Q8?W6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=t9(e),e9))?n:n9?W6(t):"Object"==(r=W6(t))&&Q6(t.callee)?"Arguments":r},o9=B6.String,i9=function(e){if("Symbol"===r9(e))throw TypeError("Cannot convert a Symbol value to a string");return o9(e)},a9="\t\n\v\f\r \u2028\u2029\ufeff",u9=V6("".replace),s9="["+a9+"]",c9=RegExp("^"+s9+s9+"*"),l9=RegExp(s9+s9+"*$"),f9=function(e){return function(t){var n=i9(X6(t));return 1&e&&(n=u9(n,c9,"")),2&e&&(n=u9(n,l9,"")),n}},d9={start:f9(1),end:f9(2),trim:f9(3)},p9=w8.PROPER,h9=d9.trim;function v9(e){return e.length?e[0].tagName.toLowerCase():""}function g9(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Bp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}X8({target:"String",proto:!0,forced:_6((function(){return!!a9.trim()||"
"!=="
".trim()||p9&&"trim"!==a9.trim.name}))},{trim:function(){return h9(this)}}),X8({global:!0},{globalThis:B6}),Xp&&(Bp.fn.append=Xp),Rp&&(Bp.fn.on=Rp),sh&&(Bp.fn.focus=sh),jp&&(Bp.fn.attr=jp),Ip&&(Bp.fn.val=Ip),qp&&(Bp.fn.html=qp),Qp&&(Bp.fn.parent=Qp),Fp&&(Bp.fn.hasClass=Fp),oh&&(Bp.fn.empty=oh);var y9,m9={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,c=o.width,l=void 0===c?"auto":c,f=o.height,d=void 0===f?"auto":f,p=TA.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=xv("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:g9(a,l,d)});else{var h=xv("video",{poster:s,controls:!0},xv("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==l&&(h.data.width=l),"auto"!==d&&(h.data.height=d),r=xv("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return tv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},b9={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,c=n.height,l=void 0===c?"auto":c,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=g9(o,s,l):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+l+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},w9=Object.keys||function(e){return N8(e,L8)},x9=P6?Object.defineProperties:function(e,t){q5(e);for(var n,r=J6(t),o=w9(t),i=o.length,a=0;i>a;)X5.f(e,n=o[a++],r[n]);return e},E9=n5("document","documentElement"),S9=u8("IE_PROTO"),C9=function(){},D9=function(e){return"<script>"+e+"<\/script>"},O9=function(e){e.write(D9("")),e.close();var t=e.parentWindow.Object;return e=null,t},A9=function(){try{y9=new ActiveXObject("htmlfile")}catch(e){}var e,t;A9="undefined"!=typeof document?document.domain&&y9?O9(y9):((t=$5("iframe")).style.display="none",E9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(D9("document.F=Object")),e.close(),e.F):O9(y9);for(var n=L8.length;n--;)delete A9.prototype[L8[n]];return A9()};s8[S9]=!0;var k9=Object.create||function(e,t){var n;return null!==e?(C9.prototype=q5(e),n=new C9,C9.prototype=null,n[S9]=e):n=A9(),void 0===t?n:x9(n,t)},T9=L5("unscopables"),B9=Array.prototype;null==B9[T9]&&X5.f(B9,T9,{configurable:!0,value:k9(null)});var _9=function(e){B9[T9][e]=!0},P9=P8.includes;X8({target:"Array",proto:!0},{includes:function(e){return P9(this,e,arguments.length>1?arguments[1]:void 0)}}),_9("includes");var F9={selector:"iframe,video,p",preParseHtml:function(e){var t=Bp(e),n=t;if("p"===v9(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Bp(o))}}var a=v9(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Bp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},j9=V6(V6.bind),N9=function(e,t){return y5(e),void 0===t?e:j9?j9(e,t):function(){return e.apply(t,arguments)}},L9=Array.isArray||function(e){return"Array"==W6(e)},I9=function(){},R9=[],M9=n5("Reflect","construct"),z9=/^\s*(?:class|function)\b/,H9=V6(z9.exec),$9=!z9.exec(I9),V9=function(e){if(!Q6(e))return!1;try{return M9(I9,R9,e),!0}catch(e){return!1}},U9=!M9||_6((function(){var e;return V9(V9.call)||!V9(Object)||!V9((function(){e=!0}))||e}))?function(e){if(!Q6(e))return!1;switch(r9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $9||!!H9(z9,r8(e))}:V9,Z9=L5("species"),W9=B6.Array,G9=function(e,t){return new(function(e){var t;return L9(e)&&(t=e.constructor,(U9(t)&&(t===W9||L9(t.prototype))||e5(t)&&null===(t=t[Z9]))&&(t=void 0)),void 0===t?W9:t}(e))(0===t?0:t)},q9=V6([].push),K9=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=D5(s),v=K6(h),g=N9(c,l),y=B8(v),m=0,b=f||G9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:q9(w,d)}else switch(e){case 4:return!1;case 7:q9(w,d)}return i?-1:r||o?o:w}},Y9={forEach:K9(0),map:K9(1),filter:K9(2),some:K9(3),every:K9(4),find:K9(5),findIndex:K9(6),filterReject:K9(7)},X9=Y9.find,J9=!0;"find"in[]&&Array(1).find((function(){J9=!1})),X8({target:"Array",proto:!0,forced:J9},{find:function(e){return X9(this,e,arguments.length>1?arguments[1]:void 0)}}),_9("find");var Q9=Q8?{}.toString:function(){return"[object "+r9(this)+"]"};function e7(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}Q8||x8(Object.prototype,"toString",Q9,{unsafe:!0});var t7,n7,r7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Bp(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",e7(o=s[0].outerHTML,i,a,u);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",e7(o,i=c.attr("poster")||"",a,u)}},o7=function(){var e=q5(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},i7=B6.RegExp,a7=_6((function(){var e=i7("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),u7=a7||_6((function(){return!i7("a","y").sticky})),s7={BROKEN_CARET:a7||_6((function(){var e=i7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:u7,UNSUPPORTED_Y:a7},c7=B6.RegExp,l7=_6((function(){var e=c7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),f7=B6.RegExp,d7=_6((function(){var e=f7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),p7=g8.get,h7=S5("native-string-replace",String.prototype.replace),v7=RegExp.prototype.exec,g7=v7,y7=V6("".charAt),m7=V6("".indexOf),b7=V6("".replace),w7=V6("".slice),x7=(n7=/b*/g,j6(v7,t7=/a/,"a"),j6(v7,n7,"a"),0!==t7.lastIndex||0!==n7.lastIndex),E7=s7.BROKEN_CARET,S7=void 0!==/()??/.exec("")[1];(x7||S7||E7||l7||d7)&&(g7=function(e){var t,n,r,o,i,a,u,s=this,c=p7(s),l=i9(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=j6(g7,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=E7&&s.sticky,h=j6(o7,s),v=s.source,g=0,y=l;if(p&&(h=b7(h,"y",""),-1===m7(h,"g")&&(h+="g"),y=w7(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==y7(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),S7&&(n=new RegExp("^"+v+"$(?!\\s)",h)),x7&&(r=s.lastIndex),o=j6(v7,p?n:s,y),p?o?(o.input=w7(o.input,g),o[0]=w7(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:x7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),S7&&o&&o.length>1&&j6(h7,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=k9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var C7=g7;X8({target:"RegExp",proto:!0,forced:/./.exec!==C7},{exec:C7});var D7=Function.prototype,O7=D7.apply,A7=D7.bind,k7=D7.call,T7="object"==typeof Reflect&&Reflect.apply||(A7?k7.bind(O7):function(){return k7.apply(O7,arguments)}),B7=(L5("species"),RegExp.prototype),_7=V6("".charAt),P7=V6("".charCodeAt),F7=V6("".slice),j7=function(e){return function(t,n){var r,o,i=i9(X6(t)),a=C8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=P7(i,a))<55296||r>56319||a+1===u||(o=P7(i,a+1))<56320||o>57343?e?_7(i,a):r:e?F7(i,a,a+2):o-56320+(r-55296<<10)+65536}},N7={codeAt:j7(!1),charAt:j7(!0)},L7=N7.charAt,I7=function(e,t,n){return t+(n?L7(e,t).length:1)},R7=Math.floor,M7=V6("".charAt),z7=V6("".replace),H7=V6("".slice),$7=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,V7=/\$([$&'`]|\d{1,2})/g,U7=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=V7;return void 0!==o&&(o=D5(o),s=$7),z7(i,s,(function(i,s){var c;switch(M7(s,0)){case"$":return"$";case"&":return e;case"`":return H7(t,0,n);case"'":return H7(t,a);case"<":c=o[H7(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>u){var f=R7(l/10);return 0===f?i:f<=u?void 0===r[f-1]?M7(s,1):r[f-1]+M7(s,1):i}c=r[l-1]}return void 0===c?"":c}))},Z7=B6.TypeError,W7=function(e,t){var n=e.exec;if(Q6(n)){var r=j6(n,e,t);return null!==r&&q5(r),r}if("RegExp"===W6(e))return j6(C7,e,t);throw Z7("RegExp#exec called on incompatible receiver")},G7=L5("replace"),q7=Math.max,K7=Math.min,Y7=V6([].concat),X7=V6([].push),J7=V6("".indexOf),Q7=V6("".slice),eee="$0"==="a".replace(/./,"$0"),tee=!!/./[G7]&&""===/./[G7]("a","$0");function nee(e){return void 0===e&&(e="r"),e+"-"+Oh()}!function(e,t,n,r){var o=L5(e),i=!_6((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!_6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=V6(/./[o]),s=function(e,t,n){var r=tee?"$":"$0";return[function(e,n){var r=X6(this),o=null==e?void 0:m5(e,G7);return o?j6(o,e,r,n):j6(t,i9(r),e,n)},function(e,o){var i=q5(this),a=i9(e);if("string"==typeof o&&-1===J7(o,r)&&-1===J7(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Q6(o);s||(o=i9(o));var c=i.global;if(c){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var d=W7(i,a);if(null===d)break;if(X7(f,d),!c)break;""===i9(d[0])&&(i.lastIndex=I7(a,T8(i.lastIndex),l))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=i9((d=f[g])[0]),m=q7(K7(C8(d.index),a.length),0),b=[],w=1;w<d.length;w++)X7(b,void 0===(p=d[w])?p:String(p));var x=d.groups;if(s){var E=Y7([y],b,m,a);void 0!==x&&X7(E,x);var S=i9(T7(o,void 0,E))}else S=U7(y,a,m,b,x,o);m>=v&&(h+=Q7(a,v,m)+S,v=m+y.length)}return h+Q7(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=V6(e),s=t.exec;return s===C7||s===B7.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));x8(String.prototype,e,s[0]),x8(B7,o,s[1])}}("replace",0,!!_6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!eee||tee);var ree=B6.Promise,oee=function(e,t,n){for(var r in t)x8(e,r,t[r],n);return e},iee=B6.String,aee=B6.TypeError,uee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=V6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return q5(n),function(e){if("object"==typeof e||Q6(e))return e;throw aee("Can't set "+iee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),see=X5.f,cee=L5("toStringTag"),lee=function(e,t,n){e&&!A5(e=n?e:e.prototype,cee)&&see(e,cee,{configurable:!0,value:t})},fee=L5("species"),dee=B6.TypeError,pee=function(e,t){if(r5(t,e))return e;throw dee("Incorrect invocation")},hee={},vee=L5("iterator"),gee=Array.prototype,yee=L5("iterator"),mee=function(e){if(null!=e)return m5(e,yee)||m5(e,"@@iterator")||hee[r9(e)]},bee=B6.TypeError,wee=function(e,t,n){var r,o;q5(e);try{if(!(r=m5(e,"return"))){if("throw"===t)throw n;return n}r=j6(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return q5(r),n},xee=B6.TypeError,Eee=function(e,t){this.stopped=e,this.result=t},See=Eee.prototype,Cee=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=N9(t,f),g=function(e){return r&&wee(r,"normal",e),new Eee(!0,e)},y=function(e){return d?(q5(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=mee(e)))throw xee(v5(e)+" is not iterable");if(void 0!==(l=o)&&(hee.Array===l||gee[vee]===l)){for(i=0,a=B8(e);a>i;i++)if((u=y(e[i]))&&r5(See,u))return u;return new Eee(!1)}r=function(e,t){var n=arguments.length<2?mee(e):t;if(y5(n))return q5(j6(n,e));throw bee(v5(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=j6(s,r)).done;){try{u=y(c.value)}catch(e){wee(r,"throw",e)}if("object"==typeof u&&u&&r5(See,u))return u}return new Eee(!1)},Dee=L5("iterator"),Oee=!1;try{var Aee=0,kee={next:function(){return{done:!!Aee++}},return:function(){Oee=!0}};kee[Dee]=function(){return this},Array.from(kee,(function(){throw 2}))}catch(Mc){}var Tee,Bee,_ee,Pee,Fee=function(e,t){if(!t&&!Oee)return!1;var n=!1;try{var r={};r[Dee]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},jee=B6.TypeError,Nee=L5("species"),Lee=V6([].slice),Iee=/(?:ipad|iphone|ipod).*applewebkit/i.test(o5),Ree="process"==W6(B6.process),Mee=B6.setImmediate,zee=B6.clearImmediate,Hee=B6.process,$ee=B6.Dispatch,Vee=B6.Function,Uee=B6.MessageChannel,Zee=B6.String,Wee=0,Gee={};try{Tee=B6.location}catch(Mc){}var qee=function(e){if(A5(Gee,e)){var t=Gee[e];delete Gee[e],t()}},Kee=function(e){return function(){qee(e)}},Yee=function(e){qee(e.data)},Xee=function(e){B6.postMessage(Zee(e),Tee.protocol+"//"+Tee.host)};Mee&&zee||(Mee=function(e){var t=Lee(arguments,1);return Gee[++Wee]=function(){T7(Q6(e)?e:Vee(e),void 0,t)},Bee(Wee),Wee},zee=function(e){delete Gee[e]},Ree?Bee=function(e){Hee.nextTick(Kee(e))}:$ee&&$ee.now?Bee=function(e){$ee.now(Kee(e))}:Uee&&!Iee?(Pee=(_ee=new Uee).port2,_ee.port1.onmessage=Yee,Bee=N9(Pee.postMessage,Pee)):B6.addEventListener&&Q6(B6.postMessage)&&!B6.importScripts&&Tee&&"file:"!==Tee.protocol&&!_6(Xee)?(Bee=Xee,B6.addEventListener("message",Yee,!1)):Bee="onreadystatechange"in $5("script")?function(e){E9.appendChild($5("script")).onreadystatechange=function(){E9.removeChild(this),qee(e)}}:function(e){setTimeout(Kee(e),0)});var Jee,Qee,ete,tte,nte,rte,ote,ite,ate={set:Mee,clear:zee},ute=/ipad|iphone|ipod/i.test(o5)&&void 0!==B6.Pebble,ste=/web0s(?!.*chrome)/i.test(o5),cte=Z5.f,lte=ate.set,fte=B6.MutationObserver||B6.WebKitMutationObserver,dte=B6.document,pte=B6.process,hte=B6.Promise,vte=cte(B6,"queueMicrotask"),gte=vte&&vte.value;gte||(Jee=function(){var e,t;for(Ree&&(e=pte.domain)&&e.exit();Qee;){t=Qee.fn,Qee=Qee.next;try{t()}catch(e){throw Qee?tte():ete=void 0,e}}ete=void 0,e&&e.enter()},Iee||Ree||ste||!fte||!dte?!ute&&hte&&hte.resolve?((ote=hte.resolve(void 0)).constructor=hte,ite=N9(ote.then,ote),tte=function(){ite(Jee)}):Ree?tte=function(){pte.nextTick(Jee)}:(lte=N9(lte,B6),tte=function(){lte(Jee)}):(nte=!0,rte=dte.createTextNode(""),new fte(Jee).observe(rte,{characterData:!0}),tte=function(){rte.data=nte=!nte}));var yte,mte,bte,wte,xte=gte||function(e){var t={fn:e,next:void 0};ete&&(ete.next=t),Qee||(Qee=t,tte()),ete=t},Ete=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=y5(t),this.reject=y5(n)},Ste={f:function(e){return new Ete(e)}},Cte=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Dte="object"==typeof window,Ote=ate.set,Ate=L5("species"),kte="Promise",Tte=g8.getterFor(kte),Bte=g8.set,_te=g8.getterFor(kte),Pte=ree&&ree.prototype,Fte=ree,jte=Pte,Nte=B6.TypeError,Lte=B6.document,Ite=B6.process,Rte=Ste.f,Mte=Rte,zte=!!(Lte&&Lte.createEvent&&B6.dispatchEvent),Hte=Q6(B6.PromiseRejectionEvent),$te=!1,Vte=K8(kte,(function(){var e=r8(Fte),t=e!==String(Fte);if(!t&&66===c5)return!0;if(c5>=51&&/native code/.test(e))return!1;var n=new Fte((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ate]=r,!($te=n.then((function(){}))instanceof r)||!t&&Dte&&!Hte})),Ute=Vte||!Fee((function(e){Fte.all(e).catch((function(){}))})),Zte=function(e){var t;return!(!e5(e)||!Q6(t=e.then))&&t},Wte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;xte((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&Yte(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(Nte("Promise-chain cycle")):(u=Zte(a))?j6(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&qte(e)}))}},Gte=function(e,t,n){var r,o;zte?((r=Lte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),B6.dispatchEvent(r)):r={promise:t,reason:n},!Hte&&(o=B6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=B6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},qte=function(e){j6(Ote,B6,(function(){var t,n=e.facade,r=e.value;if(Kte(e)&&(t=Cte((function(){Ree?Ite.emit("unhandledRejection",r,n):Gte("unhandledrejection",n,r)})),e.rejection=Ree||Kte(e)?2:1,t.error))throw t.value}))},Kte=function(e){return 1!==e.rejection&&!e.parent},Yte=function(e){j6(Ote,B6,(function(){var t=e.facade;Ree?Ite.emit("rejectionHandled",t):Gte("rejectionhandled",t,e.value)}))},Xte=function(e,t,n){return function(r){e(t,r,n)}},Jte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Wte(e,!0))},Qte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Nte("Promise can't be resolved itself");var r=Zte(t);r?xte((function(){var n={done:!1};try{j6(r,t,Xte(Qte,n,e),Xte(Jte,n,e))}catch(t){Jte(n,t,e)}})):(e.value=t,e.state=1,Wte(e,!1))}catch(t){Jte({done:!1},t,e)}}};if(Vte&&(jte=(Fte=function(e){pee(this,jte),y5(e),j6(yte,this);var t=Tte(this);try{e(Xte(Qte,t),Xte(Jte,t))}catch(e){Jte(t,e)}}).prototype,(yte=function(e){Bte(this,{type:kte,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=oee(jte,{then:function(e,t){var n=_te(this),r=n.reactions,o=Rte(function(e,t){var n,r=q5(e).constructor;return void 0===r||null==(n=q5(r)[Nee])?t:function(e){if(U9(e))return e;throw jee(v5(e)+" is not a constructor")}(n)}(this,Fte));return o.ok=!Q6(e)||e,o.fail=Q6(t)&&t,o.domain=Ree?Ite.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Wte(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),mte=function(){var e=new yte,t=Tte(e);this.promise=e,this.resolve=Xte(Qte,t),this.reject=Xte(Jte,t)},Ste.f=Rte=function(e){return e===Fte||e===bte?new mte(e):Mte(e)},Q6(ree)&&Pte!==Object.prototype)){wte=Pte.then,$te||(x8(Pte,"then",(function(e,t){var n=this;return new Fte((function(e,t){j6(wte,n,e,t)})).then(e,t)}),{unsafe:!0}),x8(Pte,"catch",jte.catch,{unsafe:!0}));try{delete Pte.constructor}catch(Mc){}uee&&uee(Pte,jte)}function ene(e,t,n){return void 0===n&&(n=""),E6(this,void 0,void 0,(function(){var r,o,i,a,u,s,c;return S6(this,(function(l){switch(l.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=l.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=l.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"<").replace(/>/g,">")),c={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){gd.insertNodes(e,c)})),o(c),[2]}}))}))}function tne(){return nee("w-e-insert-video")}X8({global:!0,wrap:!0,forced:Vte},{Promise:Fte}),lee(Fte,kte,!1),function(e){var t=n5("Promise"),n=X5.f;P6&&t&&!t[fee]&&n(t,fee,{configurable:!0,get:function(){return this}})}(),bte=n5(kte),X8({target:kte,stat:!0,forced:Vte},{reject:function(e){var t=Rte(this);return j6(t.reject,void 0,e),t.promise}}),X8({target:kte,stat:!0,forced:Vte},{resolve:function(e){return function(e,t){if(q5(e),e5(t)&&t.constructor===e)return t;var n=Ste.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),X8({target:kte,stat:!0,forced:Ute},{all:function(e){var t=this,n=Rte(t),r=n.resolve,o=n.reject,i=Cte((function(){var n=y5(t.resolve),i=[],a=0,u=1;Cee(e,(function(e){var s=a++,c=!1;u++,j6(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Rte(t),r=n.reject,o=Cte((function(){var o=y5(t.resolve);Cee(e,(function(e){j6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var nne=function(){function e(){this.title=lF("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=tne(),this.posterInputId=tne(),this.buttonId=tne()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||!!TA.getSelectedElems(e).some((function(t){var n=TA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=C6(X_(lF("videoModule.videoSrc"),r,lF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],c=C6(X_(lF("videoModule.videoPoster"),o,lF("videoModule.videoPosterPlaceHolder")),2),l=c[0],f=c[1],d=Bp(s),p=Bp(f),h=C6(J_(i,lF("videoModule.ok")),1)[0];if(null==this.$content){var v=Bp("<div></div>");v.on("click","#"+i,(function(n){return E6(t,void 0,void 0,(function(){var t,i;return S6(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,ene(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(l),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),rne=V6([].join),one=K6!=Object,ine=function(e,t){var n=[].join;return!!n&&_6((function(){n.call(null,",",1)}))}();X8({target:"Array",proto:!0,forced:one||!ine},{join:function(e){return rne(J6(this),void 0===e?",":e)}});var ane,une,sne,cne=!_6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lne=u8("IE_PROTO"),fne=B6.Object,dne=fne.prototype,pne=cne?fne.getPrototypeOf:function(e){var t=D5(e);if(A5(t,lne))return t[lne];var n=t.constructor;return Q6(n)&&t instanceof n?n.prototype:t instanceof fne?dne:null},hne=L5("iterator"),vne=!1;[].keys&&("next"in(sne=[].keys())?(une=pne(pne(sne)))!==Object.prototype&&(ane=une):vne=!0);var gne=null==ane||_6((function(){var e={};return ane[hne].call(e)!==e}));gne&&(ane={}),Q6(ane[hne])||x8(ane,hne,(function(){return this}));var yne={IteratorPrototype:ane,BUGGY_SAFARI_ITERATORS:vne},mne=yne.IteratorPrototype,bne=function(){return this},wne=w8.PROPER,xne=w8.CONFIGURABLE,Ene=yne.IteratorPrototype,Sne=yne.BUGGY_SAFARI_ITERATORS,Cne=L5("iterator"),Dne=function(){return this},One=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=k9(mne,{next:R6(1,n)}),lee(e,o,!1),hee[o]=bne}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!Sne&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Cne]||p["@@iterator"]||o&&p[o],v=!Sne&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=pne(g.call(new e)))!==Object.prototype&&u.next&&(pne(u)!==Ene&&(uee?uee(u,Ene):Q6(u[Cne])||x8(u,Cne,Dne)),lee(u,f,!0)),wne&&"values"==o&&h&&"values"!==h.name&&(xne?J5(p,"name","values"):(d=!0,v=function(){return j6(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(Sne||d||!(c in p))&&x8(p,c,s[c]);else X8({target:t,proto:!0,forced:Sne||d},s);return p[Cne]!==v&&x8(p,Cne,v,{name:o}),hee[t]=v,s},Ane=g8.set,kne=g8.getterFor("Array Iterator"),Tne=One(Array,"Array",(function(e,t){Ane(this,{type:"Array Iterator",target:J6(e),index:0,kind:t})}),(function(){var e=kne(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");hee.Arguments=hee.Array,_9("keys"),_9("values"),_9("entries");var Bne=N7.charAt,_ne=g8.set,Pne=g8.getterFor("String Iterator");One(String,"String",(function(e){_ne(this,{type:"String Iterator",string:i9(e),index:0})}),(function(){var e,t=Pne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Bne(n,r),t.index+=e.length,{value:e,done:!1})}));var Fne=function(e,t,n){var r=M5(t);r in e?X5.f(e,r,R6(0,n)):e[r]=n},jne=B6.Array,Nne=Math.max,Lne=R8.f,Ine="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rne={f:function(e){return Ine&&"Window"==W6(e)?function(e){try{return Lne(e)}catch(e){return function(e,t,n){for(var r=B8(e),o=A8(void 0,r),i=A8(r,r),a=jne(Nne(i-o,0)),u=0;o<i;o++,u++)Fne(a,u,e[o]);return a.length=u,a}(Ine)}}(e):Lne(J6(e))}},Mne=_6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),zne=Object.isExtensible,Hne=_6((function(){zne(1)}))||Mne?function(e){return!!e5(e)&&(!Mne||"ArrayBuffer"!=W6(e))&&(!zne||zne(e))}:zne,$ne=!_6((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vne=O6((function(e){var t=X5.f,n=!1,r=_5("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=R8.f,t=V6([].splice),o={};o[r]=1,e(o).length&&(R8.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},X8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rne.f}))},fastKey:function(e,t){if(!e5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!A5(e,r)){if(!Hne(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!A5(e,r)){if(!Hne(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return $ne&&n&&Hne(e)&&!A5(e,r)&&i(e),e}};s8[r]=!0})),Une=Vne.getWeakData,Zne=g8.set,Wne=g8.getterFor,Gne=Y9.find,qne=Y9.findIndex,Kne=V6([].splice),Yne=0,Xne=function(e){return e.frozen||(e.frozen=new Jne)},Jne=function(){this.entries=[]},Qne=function(e,t){return Gne(e.entries,(function(e){return e[0]===t}))};Jne.prototype={get:function(e){var t=Qne(this,e);if(t)return t[1]},has:function(e){return!!Qne(this,e)},set:function(e,t){var n=Qne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=qne(this.entries,(function(t){return t[0]===e}));return~t&&Kne(this.entries,t,1),!!~t}};var ere,tre={getConstructor:function(e,t,n,r){var o=e((function(e,o){pee(e,i),Zne(e,{type:t,id:Yne++,frozen:void 0}),null!=o&&Cee(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Wne(t),u=function(e,t,n){var r=a(e),o=Une(q5(t),!0);return!0===o?Xne(r).set(t,n):o[r.id]=n,e};return oee(i,{delete:function(e){var t=a(this);if(!e5(e))return!1;var n=Une(e);return!0===n?Xne(t).delete(e):n&&A5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!e5(e))return!1;var n=Une(e);return!0===n?Xne(t).has(e):n&&A5(n,t.id)}}),oee(i,n?{get:function(e){var t=a(this);if(e5(e)){var n=Une(e);return!0===n?Xne(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},nre=g8.enforce,rre=!B6.ActiveXObject&&"ActiveXObject"in B6,ore=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ire=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=B6[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=V6(u[e]);x8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!e5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!e5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!e5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(K8(e,!Q6(a)||!(o||u.forEach&&!_6((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Vne.enable();else if(K8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=_6((function(){f.has(1)})),h=Fee((function(e){new a(e)})),v=!o&&_6((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){pee(e,u);var n=function(e,t,n){var r,o;return uee&&Q6(r=t.constructor)&&r!==n&&e5(o=r.prototype)&&o!==n.prototype&&uee(e,o),e}(new a,e,s);return null!=t&&Cee(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,X8({global:!0,forced:s!=a},c),lee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",ore,tre);if(i8&&rre){ere=tre.getConstructor(ore,"WeakMap",!0),Vne.enable();var are=ire.prototype,ure=V6(are.delete),sre=V6(are.has),cre=V6(are.get),lre=V6(are.set);oee(are,{delete:function(e){if(e5(e)&&!Hne(e)){var t=nre(this);return t.frozen||(t.frozen=new ere),ure(this,e)||t.frozen.delete(e)}return ure(this,e)},has:function(e){if(e5(e)&&!Hne(e)){var t=nre(this);return t.frozen||(t.frozen=new ere),sre(this,e)||t.frozen.has(e)}return sre(this,e)},get:function(e){if(e5(e)&&!Hne(e)){var t=nre(this);return t.frozen||(t.frozen=new ere),sre(this,e)?cre(this,e):t.frozen.get(e)}return cre(this,e)},set:function(e,t){if(e5(e)&&!Hne(e)){var n=nre(this);n.frozen||(n.frozen=new ere),sre(this,e)?lre(this,e,t):n.frozen.set(e,t)}else lre(this,e,t);return this}})}var fre={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},dre=$5("span").classList,pre=dre&&dre.constructor&&dre.constructor.prototype,hre=pre===Object.prototype?void 0:pre,vre=L5("iterator"),gre=L5("toStringTag"),yre=Tne.values,mre=function(e,t){if(e){if(e[vre]!==yre)try{J5(e,vre,yre)}catch(t){e[vre]=yre}if(e[gre]||J5(e,gre,t),fre[t])for(var n in Tne)if(e[n]!==Tne[n])try{J5(e,n,Tne[n])}catch(t){e[n]=Tne[n]}}};for(var bre in fre)mre(B6[bre]&&B6[bre].prototype,bre);mre(hre,"DOMTokenList");var wre=w8.EXISTS,xre=X5.f,Ere=Function.prototype,Sre=V6(Ere.toString),Cre=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Dre=V6(Cre.exec);P6&&!wre&&xre(Ere,"name",{configurable:!0,get:function(){try{return Dre(Cre,Sre(this))[1]}catch(e){return""}}});var Ore=L5("species"),Are=c5>=51||!_6((function(){var e=[];return(e.constructor={})[Ore]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),kre=L5("species"),Tre=B6.Array,Bre=Math.max;function _re(e){return e.getMenuConfig("uploadVideo")}X8({target:"Array",proto:!0,forced:!Are},{slice:function(e,t){var n,r,o,i=J6(this),a=B8(i),u=A8(e,a),s=A8(void 0===t?a:t,a);if(L9(i)&&(n=i.constructor,(U9(n)&&(n===Tre||L9(n.prototype))||e5(n)&&null===(n=n[kre]))&&(n=void 0),n===Tre||void 0===n))return Lee(i,u,s);for(r=new(void 0===n?Tre:n)(Bre(s-u,0)),o=0;u<s;u++,o++)u in i&&Fne(r,o,i[u]);return r.length=o,r}});var Pre=new WeakMap;function Fre(e,t){return E6(this,void 0,void 0,(function(){var n,r,o,i;return S6(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Pre.get(e);if(null!=t)return t;var n=_re(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=xP(x6(x6({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return ene(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){var l=c.url,f=void 0===l?"":l,d=c.poster;ene(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Pre.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var jre=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return ene(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Bp("body"),s=Bp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;E6(this,void 0,void 0,(function(){var o,i,a,u,s,c;return S6(this,(function(l){switch(l.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=_re(e).customUpload,l.label=1;case 1:l.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),l.label=2;case 2:return[4,a.next()];case 3:return(u=l.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return ene(e,t,n)}))]:[3,5]);case 4:return l.sent(),[3,7];case 5:return[4,Fre(e,s)];case 6:l.sent(),l.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return c=l.sent(),n={error:c},[3,15];case 10:return l.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Zf.isCollapsed(t)||!!TA.getSelectedElems(e).some((function(t){var n=TA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Nre=w8.PROPER,Lre=RegExp.prototype,Ire=Lre.toString,Rre=V6(o7),Mre=_6((function(){return"/a/b"!=Ire.call({source:"a",flags:"b"})})),zre=Nre&&"toString"!=Ire.name;function Hre(){return nee("w-e-insert-video")}(Mre||zre)&&x8(RegExp.prototype,"toString",(function(){var e=q5(this),t=i9(e.source),n=e.flags;return"/"+t+"/"+i9(void 0===n&&r5(Lre,e)&&!("flags"in Lre)?Rre(e):n)}),{unsafe:!0});var $re=function(){function e(){this.title=lF("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Hre(),this.heightInputId=Hre(),this.buttonId=Hre()}return e.prototype.getSelectedVideoNode=function(e){return TA.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=C6(X_(lF("videoModule.width"),n,"auto"),2),a=i[0],u=Bp(i[1]),s=C6(X_(lF("videoModule.height"),r,"auto"),2),c=s[0],l=Bp(s[1]),f=C6(J_(o,lF("videoModule.ok")),1)[0];if(null==this.$content){var d=Bp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",c=u?u.toString():"auto";e.restoreSelection(),gd.setNodes(e,{width:s,height:c},{match:function(e){return TA.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(c),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.width,g=void 0===v?"auto":v,y=h.height,m=void 0===y?"auto":y;return u.val(g),l.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Vre={renderElems:[m9],elemsToHtml:[b9],preParseHtml:[F9],parseElemsHtml:[r7],menus:[{key:"insertVideo",factory:function(){return new nne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new jre},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 $re}}],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 t=C6(e,2),o=t[0],i=t[1];return"video"===TA.getNodeType(o)&&TA.isLastNode(r,o)&&gd.insertNodes(r,TA.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};cF("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),cF("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Ure="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function Zre(e){var t={exports:{}};return e(t,t.exports),t.exports}var Wre,Gre,qre=function(e){return e&&e.Math==Math&&e},Kre=qre("object"==typeof globalThis&&globalThis)||qre("object"==typeof window&&window)||qre("object"==typeof self&&self)||qre("object"==typeof Ure&&Ure)||function(){return this}()||Function("return this")(),Yre=function(e){try{return!!e()}catch(e){return!0}},Xre=!Yre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Jre=Function.prototype.call,Qre=Jre.bind?Jre.bind(Jre):function(){return Jre.apply(Jre,arguments)},eoe={}.propertyIsEnumerable,toe=Object.getOwnPropertyDescriptor,noe={f:toe&&!eoe.call({1:2},1)?function(e){var t=toe(this,e);return!!t&&t.enumerable}:eoe},roe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ooe=Function.prototype,ioe=ooe.bind,aoe=ooe.call,uoe=ioe&&ioe.bind(aoe),soe=ioe?function(e){return e&&uoe(aoe,e)}:function(e){return e&&function(){return aoe.apply(e,arguments)}},coe=soe({}.toString),loe=soe("".slice),foe=function(e){return loe(coe(e),8,-1)},doe=Kre.Object,poe=soe("".split),hoe=Yre((function(){return!doe("z").propertyIsEnumerable(0)}))?function(e){return"String"==foe(e)?poe(e,""):doe(e)}:doe,voe=Kre.TypeError,goe=function(e){if(null==e)throw voe("Can't call method on "+e);return e},yoe=function(e){return hoe(goe(e))},moe=function(e){return"function"==typeof e},boe=function(e){return"object"==typeof e?null!==e:moe(e)},woe=function(e){return moe(e)?e:void 0},xoe=function(e,t){return arguments.length<2?woe(Kre[e]):Kre[e]&&Kre[e][t]},Eoe=soe({}.isPrototypeOf),Soe=xoe("navigator","userAgent")||"",Coe=Kre.process,Doe=Kre.Deno,Ooe=Coe&&Coe.versions||Doe&&Doe.version,Aoe=Ooe&&Ooe.v8;Aoe&&(Gre=(Wre=Aoe.split("."))[0]>0&&Wre[0]<4?1:+(Wre[0]+Wre[1])),!Gre&&Soe&&(!(Wre=Soe.match(/Edge\/(\d+)/))||Wre[1]>=74)&&(Wre=Soe.match(/Chrome\/(\d+)/))&&(Gre=+Wre[1]);var koe=Gre,Toe=!!Object.getOwnPropertySymbols&&!Yre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&koe&&koe<41})),Boe=Toe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_oe=Kre.Object,Poe=Boe?function(e){return"symbol"==typeof e}:function(e){var t=xoe("Symbol");return moe(t)&&Eoe(t.prototype,_oe(e))},Foe=Kre.String,joe=function(e){try{return Foe(e)}catch(e){return"Object"}},Noe=Kre.TypeError,Loe=function(e){if(moe(e))return e;throw Noe(joe(e)+" is not a function")},Ioe=function(e,t){var n=e[t];return null==n?void 0:Loe(n)},Roe=Kre.TypeError,Moe=Object.defineProperty,zoe=function(e,t){try{Moe(Kre,e,{value:t,configurable:!0,writable:!0})}catch(n){Kre[e]=t}return t},Hoe=Kre["__core-js_shared__"]||zoe("__core-js_shared__",{}),$oe=Zre((function(e){(e.exports=function(e,t){return Hoe[e]||(Hoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Voe=Kre.Object,Uoe=function(e){return Voe(goe(e))},Zoe=soe({}.hasOwnProperty),Woe=Object.hasOwn||function(e,t){return Zoe(Uoe(e),t)},Goe=0,qoe=Math.random(),Koe=soe(1..toString),Yoe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Koe(++Goe+qoe,36)},Xoe=$oe("wks"),Joe=Kre.Symbol,Qoe=Joe&&Joe.for,eie=Boe?Joe:Joe&&Joe.withoutSetter||Yoe,tie=function(e){if(!Woe(Xoe,e)||!Toe&&"string"!=typeof Xoe[e]){var t="Symbol."+e;Toe&&Woe(Joe,e)?Xoe[e]=Joe[e]:Xoe[e]=Boe&&Qoe?Qoe(t):eie(t)}return Xoe[e]},nie=Kre.TypeError,rie=tie("toPrimitive"),oie=function(e){var t=function(e,t){if(!boe(e)||Poe(e))return e;var n,r=Ioe(e,rie);if(r){if(void 0===t&&(t="default"),n=Qre(r,e,t),!boe(n)||Poe(n))return n;throw nie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&moe(n=e.toString)&&!boe(r=Qre(n,e)))return r;if(moe(n=e.valueOf)&&!boe(r=Qre(n,e)))return r;if("string"!==t&&moe(n=e.toString)&&!boe(r=Qre(n,e)))return r;throw Roe("Can't convert object to primitive value")}(e,t)}(e,"string");return Poe(t)?t:t+""},iie=Kre.document,aie=boe(iie)&&boe(iie.createElement),uie=function(e){return aie?iie.createElement(e):{}},sie=!Xre&&!Yre((function(){return 7!=Object.defineProperty(uie("div"),"a",{get:function(){return 7}}).a})),cie=Object.getOwnPropertyDescriptor,lie={f:Xre?cie:function(e,t){if(e=yoe(e),t=oie(t),sie)try{return cie(e,t)}catch(e){}if(Woe(e,t))return roe(!Qre(noe.f,e,t),e[t])}},fie=Kre.String,die=Kre.TypeError,pie=function(e){if(boe(e))return e;throw die(fie(e)+" is not an object")},hie=Kre.TypeError,vie=Object.defineProperty,gie={f:Xre?vie:function(e,t,n){if(pie(e),t=oie(t),pie(n),sie)try{return vie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw hie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yie=Xre?function(e,t,n){return gie.f(e,t,roe(1,n))}:function(e,t,n){return e[t]=n,e},mie=soe(Function.toString);moe(Hoe.inspectSource)||(Hoe.inspectSource=function(e){return mie(e)});var bie,wie,xie,Eie=Hoe.inspectSource,Sie=Kre.WeakMap,Cie=moe(Sie)&&/native code/.test(Eie(Sie)),Die=$oe("keys"),Oie=function(e){return Die[e]||(Die[e]=Yoe(e))},Aie={},kie=Kre.TypeError,Tie=Kre.WeakMap;if(Cie||Hoe.state){var Bie=Hoe.state||(Hoe.state=new Tie),_ie=soe(Bie.get),Pie=soe(Bie.has),Fie=soe(Bie.set);bie=function(e,t){if(Pie(Bie,e))throw new kie("Object already initialized");return t.facade=e,Fie(Bie,e,t),t},wie=function(e){return _ie(Bie,e)||{}},xie=function(e){return Pie(Bie,e)}}else{var jie=Oie("state");Aie[jie]=!0,bie=function(e,t){if(Woe(e,jie))throw new kie("Object already initialized");return t.facade=e,yie(e,jie,t),t},wie=function(e){return Woe(e,jie)?e[jie]:{}},xie=function(e){return Woe(e,jie)}}var Nie={set:bie,get:wie,has:xie,enforce:function(e){return xie(e)?wie(e):bie(e,{})},getterFor:function(e){return function(t){var n;if(!boe(t)||(n=wie(t)).type!==e)throw kie("Incompatible receiver, "+e+" required");return n}}},Lie=Function.prototype,Iie=Xre&&Object.getOwnPropertyDescriptor,Rie=Woe(Lie,"name"),Mie={EXISTS:Rie,PROPER:Rie&&"something"===function(){}.name,CONFIGURABLE:Rie&&(!Xre||Xre&&Iie(Lie,"name").configurable)},zie=Zre((function(e){var t=Mie.CONFIGURABLE,n=Nie.get,r=Nie.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;moe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Woe(i,"name")||t&&i.name!==f)&&yie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Kre?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:yie(e,n,i)):c?e[n]=i:zoe(n,i)})(Function.prototype,"toString",(function(){return moe(this)&&n(this).source||Eie(this)}))})),Hie=Math.ceil,$ie=Math.floor,Vie=function(e){var t=+e;return t!=t||0===t?0:(t>0?$ie:Hie)(t)},Uie=Math.max,Zie=Math.min,Wie=function(e,t){var n=Vie(e);return n<0?Uie(n+t,0):Zie(n,t)},Gie=Math.min,qie=function(e){return e>0?Gie(Vie(e),9007199254740991):0},Kie=function(e){return qie(e.length)},Yie=function(e){return function(t,n,r){var o,i=yoe(t),a=Kie(i),u=Wie(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Xie=(Yie(!0),Yie(!1)),Jie=soe([].push),Qie=function(e,t){var n,r=yoe(e),o=0,i=[];for(n in r)!Woe(Aie,n)&&Woe(r,n)&&Jie(i,n);for(;t.length>o;)Woe(r,n=t[o++])&&(~Xie(i,n)||Jie(i,n));return i},eae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tae=eae.concat("length","prototype"),nae={f:Object.getOwnPropertyNames||function(e){return Qie(e,tae)}},rae={f:Object.getOwnPropertySymbols},oae=soe([].concat),iae=xoe("Reflect","ownKeys")||function(e){var t=nae.f(pie(e)),n=rae.f;return n?oae(t,n(e)):t},aae=function(e,t){for(var n=iae(t),r=gie.f,o=lie.f,i=0;i<n.length;i++){var a=n[i];Woe(e,a)||r(e,a,o(t,a))}},uae=/#|\.prototype\./,sae=function(e,t){var n=lae[cae(e)];return n==dae||n!=fae&&(moe(t)?Yre(t):!!t)},cae=sae.normalize=function(e){return String(e).replace(uae,".").toLowerCase()},lae=sae.data={},fae=sae.NATIVE="N",dae=sae.POLYFILL="P",pae=sae,hae=lie.f,vae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Kre:c?Kre[u]||zoe(u,{}):(Kre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=hae(n,r))&&a.value:n[r],!pae(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;aae(i,o)}(e.sham||o&&o.sham)&&yie(i,"sham",!0),zie(n,r,i,e)}},gae=Array.isArray||function(e){return"Array"==foe(e)},yae={};yae[tie("toStringTag")]="z";var mae="[object z]"===String(yae),bae=tie("toStringTag"),wae=Kre.Object,xae="Arguments"==foe(function(){return arguments}()),Eae=mae?foe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=wae(e),bae))?n:xae?foe(t):"Object"==(r=foe(t))&&moe(t.callee)?"Arguments":r},Sae=function(){},Cae=[],Dae=xoe("Reflect","construct"),Oae=/^\s*(?:class|function)\b/,Aae=soe(Oae.exec),kae=!Oae.exec(Sae),Tae=function(e){if(!moe(e))return!1;try{return Dae(Sae,Cae,e),!0}catch(e){return!1}},Bae=!Dae||Yre((function(){var e;return Tae(Tae.call)||!Tae(Object)||!Tae((function(){e=!0}))||e}))?function(e){if(!moe(e))return!1;switch(Eae(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return kae||!!Aae(Oae,Eie(e))}:Tae,_ae=function(e,t,n){var r=oie(t);r in e?gie.f(e,r,roe(0,n)):e[r]=n},Pae=tie("species"),Fae=soe([].slice),jae=koe>=51||!Yre((function(){var e=[];return(e.constructor={})[Pae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Nae=tie("species"),Lae=Kre.Array,Iae=Math.max;vae({target:"Array",proto:!0,forced:!jae},{slice:function(e,t){var n,r,o,i=yoe(this),a=Kie(i),u=Wie(e,a),s=Wie(void 0===t?a:t,a);if(gae(i)&&(n=i.constructor,(Bae(n)&&(n===Lae||gae(n.prototype))||boe(n)&&null===(n=n[Nae]))&&(n=void 0),n===Lae||void 0===n))return Fae(i,u,s);for(r=new(void 0===n?Lae:n)(Iae(s-u,0)),o=0;u<s;u++,o++)u in i&&_ae(r,o,i[u]);return r.length=o,r}});var Rae=mae?{}.toString:function(){return"[object "+Eae(this)+"]"};mae||zie(Object.prototype,"toString",Rae,{unsafe:!0});var Mae,zae=Kre.String,Hae=function(e){if("Symbol"===Eae(e))throw TypeError("Cannot convert a Symbol value to a string");return zae(e)},$ae=function(){var e=pie(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},Vae=Kre.RegExp,Uae=Yre((function(){var e=Vae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Zae=Uae||Yre((function(){return!Vae("a","y").sticky})),Wae={BROKEN_CARET:Uae||Yre((function(){var e=Vae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Zae,UNSUPPORTED_Y:Uae},Gae=Object.keys||function(e){return Qie(e,eae)},qae=Xre?Object.defineProperties:function(e,t){pie(e);for(var n,r=yoe(t),o=Gae(t),i=o.length,a=0;i>a;)gie.f(e,n=o[a++],r[n]);return e},Kae=xoe("document","documentElement"),Yae=Oie("IE_PROTO"),Xae=function(){},Jae=function(e){return"<script>"+e+"<\/script>"},Qae=function(e){e.write(Jae("")),e.close();var t=e.parentWindow.Object;return e=null,t},eue=function(){try{Mae=new ActiveXObject("htmlfile")}catch(e){}var e,t;eue="undefined"!=typeof document?document.domain&&Mae?Qae(Mae):((t=uie("iframe")).style.display="none",Kae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jae("document.F=Object")),e.close(),e.F):Qae(Mae);for(var n=eae.length;n--;)delete eue.prototype[eae[n]];return eue()};Aie[Yae]=!0;var tue,nue,rue=Object.create||function(e,t){var n;return null!==e?(Xae.prototype=pie(e),n=new Xae,Xae.prototype=null,n[Yae]=e):n=eue(),void 0===t?n:qae(n,t)},oue=Kre.RegExp,iue=Yre((function(){var e=oue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),aue=Kre.RegExp,uue=Yre((function(){var e=aue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),sue=Nie.get,cue=$oe("native-string-replace",String.prototype.replace),lue=RegExp.prototype.exec,fue=lue,due=soe("".charAt),pue=soe("".indexOf),hue=soe("".replace),vue=soe("".slice),gue=(nue=/b*/g,Qre(lue,tue=/a/,"a"),Qre(lue,nue,"a"),0!==tue.lastIndex||0!==nue.lastIndex),yue=Wae.BROKEN_CARET,mue=void 0!==/()??/.exec("")[1];(gue||mue||yue||iue||uue)&&(fue=function(e){var t,n,r,o,i,a,u,s=this,c=sue(s),l=Hae(e),f=c.raw;if(f)return f.lastIndex=s.lastIndex,t=Qre(fue,f,l),s.lastIndex=f.lastIndex,t;var d=c.groups,p=yue&&s.sticky,h=Qre($ae,s),v=s.source,g=0,y=l;if(p&&(h=hue(h,"y",""),-1===pue(h,"g")&&(h+="g"),y=vue(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==due(l,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),mue&&(n=new RegExp("^"+v+"$(?!\\s)",h)),gue&&(r=s.lastIndex),o=Qre(lue,p?n:s,y),p?o?(o.input=vue(o.input,g),o[0]=vue(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:gue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),mue&&o&&o.length>1&&Qre(cue,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=rue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var bue=fue;vae({target:"RegExp",proto:!0,forced:/./.exec!==bue},{exec:bue});var wue=Function.prototype,xue=wue.apply,Eue=wue.bind,Sue=wue.call,Cue="object"==typeof Reflect&&Reflect.apply||(Eue?Sue.bind(xue):function(){return Sue.apply(xue,arguments)}),Due=tie("species"),Oue=RegExp.prototype,Aue=tie("match"),kue=Kre.TypeError,Tue=tie("species"),Bue=function(e,t){var n,r=pie(e).constructor;return void 0===r||null==(n=pie(r)[Tue])?t:function(e){if(Bae(e))return e;throw kue(joe(e)+" is not a constructor")}(n)},_ue=soe("".charAt),Pue=soe("".charCodeAt),Fue=soe("".slice),jue=function(e){return function(t,n){var r,o,i=Hae(goe(t)),a=Vie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Pue(i,a))<55296||r>56319||a+1===u||(o=Pue(i,a+1))<56320||o>57343?e?_ue(i,a):r:e?Fue(i,a,a+2):o-56320+(r-55296<<10)+65536}},Nue={codeAt:jue(!1),charAt:jue(!0)},Lue=Nue.charAt,Iue=function(e,t,n){return t+(n?Lue(e,t).length:1)},Rue=Kre.Array,Mue=Math.max,zue=function(e,t,n){for(var r=Kie(e),o=Wie(t,r),i=Wie(void 0===n?r:n,r),a=Rue(Mue(i-o,0)),u=0;o<i;o++,u++)_ae(a,u,e[o]);return a.length=u,a},Hue=Kre.TypeError,$ue=function(e,t){var n=e.exec;if(moe(n)){var r=Qre(n,e,t);return null!==r&&pie(r),r}if("RegExp"===foe(e))return Qre(bue,e,t);throw Hue("RegExp#exec called on incompatible receiver")},Vue=Wae.UNSUPPORTED_Y,Uue=Math.min,Zue=[].push,Wue=soe(/./.exec),Gue=soe(Zue),que=soe("".slice);!function(e,t,n,r){var o=tie(e),i=!Yre((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Yre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Due]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=soe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Hae(goe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!boe(r=e)||!(void 0!==(o=r[Aue])?o:"RegExp"==foe(r)))return Qre(t,i,e,a);for(var u,s,c,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Qre(bue,p,i))&&!((s=p.lastIndex)>d&&(Gue(l,que(i,d,u.index)),u.length>1&&u.index<i.length&&Cue(Zue,l,zue(u,1)),c=u[0].length,d=s,l.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!c&&Wue(p,"")||Gue(l,""):Gue(l,que(i,d)),l.length>a?zue(l,0,a):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Qre(t,this,e,n)}:t,[function(t,n){var o=goe(this),i=null==t?void 0:Ioe(t,e);return i?Qre(i,t,o,n):Qre(r,Hae(o),t,n)},function(e,o){var i=pie(this),a=Hae(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Bue(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Vue?"g":"y"),f=new s(Vue?"^(?:"+i.source+")":i,l),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===$ue(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Vue?0:h;var g,y=$ue(f,Vue?que(a,h):a);if(null===y||(g=Uue(qie(f.lastIndex+(Vue?h:0)),a.length))===p)h=Iue(a,h,c);else{if(Gue(v,que(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Gue(v,y[m]),v.length===d)return v;h=p=g}}return Gue(v,que(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=soe(e),s=t.exec;return s===bue||s===Oue.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));zie(String.prototype,e,s[0]),zie(Oue,o,s[1])}r&&yie(Oue[o],"sham",!0)}("split",0,!!Yre((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Vue);
|
|
139
139
|
/*! *****************************************************************************
|
|
140
140
|
Copyright (c) Microsoft Corporation.
|
|
141
141
|
|
|
@@ -150,7 +150,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
150
150
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
151
151
|
PERFORMANCE OF THIS SOFTWARE.
|
|
152
152
|
***************************************************************************** */
|
|
153
|
-
var Kue=function(){return Kue=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},Kue.apply(this,arguments)};function Yue(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Xue(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var Jue=tie("unscopables"),Que=Array.prototype;null==Que[Jue]&&gie.f(Que,Jue,{configurable:!0,value:rue(null)});var ese,tse,nse,rse=function(e){Que[Jue][e]=!0},ose={},ise=!Yre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ase=Oie("IE_PROTO"),use=Kre.Object,sse=use.prototype,cse=ise?use.getPrototypeOf:function(e){var t=Uoe(e);if(Woe(t,ase))return t[ase];var n=t.constructor;return moe(n)&&t instanceof n?n.prototype:t instanceof use?sse:null},lse=tie("iterator"),fse=!1;[].keys&&("next"in(nse=[].keys())?(tse=cse(cse(nse)))!==Object.prototype&&(ese=tse):fse=!0);var dse=null==ese||Yre((function(){var e={};return ese[lse].call(e)!==e}));dse&&(ese={}),moe(ese[lse])||zie(ese,lse,(function(){return this}));var pse={IteratorPrototype:ese,BUGGY_SAFARI_ITERATORS:fse},hse=gie.f,vse=tie("toStringTag"),gse=function(e,t,n){e&&!Woe(e=n?e:e.prototype,vse)&&hse(e,vse,{configurable:!0,value:t})},yse=pse.IteratorPrototype,mse=function(){return this},bse=Kre.String,wse=Kre.TypeError,xse=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=soe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return pie(n),function(e){if("object"==typeof e||moe(e))return e;throw wse("Can't set "+bse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ese=Mie.PROPER,Sse=Mie.CONFIGURABLE,Cse=pse.IteratorPrototype,Dse=pse.BUGGY_SAFARI_ITERATORS,Ose=tie("iterator"),Ase=function(){return this},kse=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=rue(yse,{next:roe(1,n)}),gse(e,o,!1),ose[o]=mse}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!Dse&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Ose]||p["@@iterator"]||o&&p[o],v=!Dse&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=cse(g.call(new e)))!==Object.prototype&&u.next&&(cse(u)!==Cse&&(xse?xse(u,Cse):moe(u[Ose])||zie(u,Ose,Ase)),gse(u,f,!0)),Ese&&"values"==o&&h&&"values"!==h.name&&(Sse?yie(p,"name","values"):(d=!0,v=function(){return Qre(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(Dse||d||!(c in p))&&zie(p,c,s[c]);else vae({target:t,proto:!0,forced:Dse||d},s);return p[Ose]!==v&&zie(p,Ose,v,{name:o}),ose[t]=v,s},Tse=Nie.set,Bse=Nie.getterFor("Array Iterator"),_se=kse(Array,"Array",(function(e,t){Tse(this,{type:"Array Iterator",target:yoe(e),index:0,kind:t})}),(function(){var e=Bse(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ose.Arguments=ose.Array,rse("keys"),rse("values"),rse("entries");var Pse=Nue.charAt,Fse=Nie.set,jse=Nie.getterFor("String Iterator");kse(String,"String",(function(e){Fse(this,{type:"String Iterator",string:Hae(e),index:0})}),(function(){var e,t=jse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Pse(n,r),t.index+=e.length,{value:e,done:!1})}));var Nse=function(e,t,n){for(var r in t)zie(e,r,t[r],n);return e},Lse=nae.f,Ise="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rse={f:function(e){return Ise&&"Window"==foe(e)?function(e){try{return Lse(e)}catch(e){return zue(Ise)}}(e):Lse(yoe(e))}},Mse=Yre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),zse=Object.isExtensible,Hse=Yre((function(){zse(1)}))||Mse?function(e){return!!boe(e)&&(!Mse||"ArrayBuffer"!=foe(e))&&(!zse||zse(e))}:zse,$se=!Yre((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vse=Zre((function(e){var t=gie.f,n=!1,r=Yoe("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=nae.f,t=soe([].splice),o={};o[r]=1,e(o).length&&(nae.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},vae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rse.f}))},fastKey:function(e,t){if(!boe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Woe(e,r)){if(!Hse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Woe(e,r)){if(!Hse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return $se&&n&&Hse(e)&&!Woe(e,r)&&i(e),e}};Aie[r]=!0})),Use=soe(soe.bind),Zse=function(e,t){return Loe(e),void 0===t?e:Use?Use(e,t):function(){return e.apply(t,arguments)}},Wse=tie("iterator"),Gse=Array.prototype,qse=tie("iterator"),Kse=function(e){if(null!=e)return Ioe(e,qse)||Ioe(e,"@@iterator")||ose[Eae(e)]},Yse=Kre.TypeError,Xse=function(e,t,n){var r,o;pie(e);try{if(!(r=Ioe(e,"return"))){if("throw"===t)throw n;return n}r=Qre(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return pie(r),n},Jse=Kre.TypeError,Qse=function(e,t){this.stopped=e,this.result=t},ece=Qse.prototype,tce=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Zse(t,f),g=function(e){return r&&Xse(r,"normal",e),new Qse(!0,e)},y=function(e){return d?(pie(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=Kse(e)))throw Jse(joe(e)+" is not iterable");if(void 0!==(l=o)&&(ose.Array===l||Gse[Wse]===l)){for(i=0,a=Kie(e);a>i;i++)if((u=y(e[i]))&&Eoe(ece,u))return u;return new Qse(!1)}r=function(e,t){var n=arguments.length<2?Kse(e):t;if(Loe(n))return pie(Qre(n,e));throw Yse(joe(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Qre(s,r)).done;){try{u=y(c.value)}catch(e){Xse(r,"throw",e)}if("object"==typeof u&&u&&Eoe(ece,u))return u}return new Qse(!1)},nce=Kre.TypeError,rce=function(e,t){if(Eoe(t,e))return e;throw nce("Incorrect invocation")},oce=tie("iterator"),ice=!1;try{var ace=0,uce={next:function(){return{done:!!ace++}},return:function(){ice=!0}};uce[oce]=function(){return this},Array.from(uce,(function(){throw 2}))}catch(Mc){}var sce=function(e,t){if(!t&&!ice)return!1;var n=!1;try{var r={};r[oce]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},cce=tie("species"),lce=Kre.Array,fce=function(e,t){return new(function(e){var t;return gae(e)&&(t=e.constructor,(Bae(t)&&(t===lce||gae(t.prototype))||boe(t)&&null===(t=t[cce]))&&(t=void 0)),void 0===t?lce:t}(e))(0===t?0:t)},dce=soe([].push),pce=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Uoe(s),v=hoe(h),g=Zse(c,l),y=Kie(v),m=0,b=f||fce,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:dce(w,d)}else switch(e){case 4:return!1;case 7:dce(w,d)}return i?-1:r||o?o:w}},hce={forEach:pce(0),map:pce(1),filter:pce(2),some:pce(3),every:pce(4),find:pce(5),findIndex:pce(6),filterReject:pce(7)},vce=Vse.getWeakData,gce=Nie.set,yce=Nie.getterFor,mce=hce.find,bce=hce.findIndex,wce=soe([].splice),xce=0,Ece=function(e){return e.frozen||(e.frozen=new Sce)},Sce=function(){this.entries=[]},Cce=function(e,t){return mce(e.entries,(function(e){return e[0]===t}))};Sce.prototype={get:function(e){var t=Cce(this,e);if(t)return t[1]},has:function(e){return!!Cce(this,e)},set:function(e,t){var n=Cce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=bce(this.entries,(function(t){return t[0]===e}));return~t&&wce(this.entries,t,1),!!~t}};var Dce,Oce={getConstructor:function(e,t,n,r){var o=e((function(e,o){rce(e,i),gce(e,{type:t,id:xce++,frozen:void 0}),null!=o&&tce(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=yce(t),u=function(e,t,n){var r=a(e),o=vce(pie(t),!0);return!0===o?Ece(r).set(t,n):o[r.id]=n,e};return Nse(i,{delete:function(e){var t=a(this);if(!boe(e))return!1;var n=vce(e);return!0===n?Ece(t).delete(e):n&&Woe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!boe(e))return!1;var n=vce(e);return!0===n?Ece(t).has(e):n&&Woe(n,t.id)}}),Nse(i,n?{get:function(e){var t=a(this);if(boe(e)){var n=vce(e);return!0===n?Ece(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Ace=Nie.enforce,kce=!Kre.ActiveXObject&&"ActiveXObject"in Kre,Tce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Bce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Kre[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=soe(u[e]);zie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!boe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!boe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!boe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(pae(e,!moe(a)||!(o||u.forEach&&!Yre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Vse.enable();else if(pae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Yre((function(){f.has(1)})),h=sce((function(e){new a(e)})),v=!o&&Yre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){rce(e,u);var n=function(e,t,n){var r,o;return xse&&moe(r=t.constructor)&&r!==n&&boe(o=r.prototype)&&o!==n.prototype&&xse(e,o),e}(new a,e,s);return null!=t&&tce(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,vae({global:!0,forced:s!=a},c),gse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Tce,Oce);if(Cie&&kce){Dce=Oce.getConstructor(Tce,"WeakMap",!0),Vse.enable();var _ce=Bce.prototype,Pce=soe(_ce.delete),Fce=soe(_ce.has),jce=soe(_ce.get),Nce=soe(_ce.set);Nse(_ce,{delete:function(e){if(boe(e)&&!Hse(e)){var t=Ace(this);return t.frozen||(t.frozen=new Dce),Pce(this,e)||t.frozen.delete(e)}return Pce(this,e)},has:function(e){if(boe(e)&&!Hse(e)){var t=Ace(this);return t.frozen||(t.frozen=new Dce),Fce(this,e)||t.frozen.has(e)}return Fce(this,e)},get:function(e){if(boe(e)&&!Hse(e)){var t=Ace(this);return t.frozen||(t.frozen=new Dce),Fce(this,e)?jce(this,e):t.frozen.get(e)}return jce(this,e)},set:function(e,t){if(boe(e)&&!Hse(e)){var n=Ace(this);n.frozen||(n.frozen=new Dce),Fce(this,e)?Nce(this,e,t):n.frozen.set(e,t)}else Nce(this,e,t);return this}})}var Lce={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},Ice=uie("span").classList,Rce=Ice&&Ice.constructor&&Ice.constructor.prototype,Mce=Rce===Object.prototype?void 0:Rce,zce=tie("iterator"),Hce=tie("toStringTag"),$ce=_se.values,Vce=function(e,t){if(e){if(e[zce]!==$ce)try{yie(e,zce,$ce)}catch(t){e[zce]=$ce}if(e[Hce]||yie(e,Hce,t),Lce[t])for(var n in _se)if(e[n]!==_se[n])try{yie(e,n,_se[n])}catch(t){e[n]=_se[n]}}};for(var Uce in Lce)Vce(Kre[Uce]&&Kre[Uce].prototype,Uce);Vce(Mce,"DOMTokenList");var Zce=function(e,t){var n=[][e];return!!n&&Yre((function(){n.call(null,t||function(){throw 1},1)}))},Wce=hce.forEach,Gce=Zce("forEach")?[].forEach:function(e){return Wce(this,e,arguments.length>1?arguments[1]:void 0)},qce=function(e){if(e&&e.forEach!==Gce)try{yie(e,"forEach",Gce)}catch(t){e.forEach=Gce}};for(var Kce in Lce)Lce[Kce]&&qce(Kre[Kce]&&Kre[Kce].prototype);qce(Mce);var Yce,Xce,Jce,Qce,ele=Kre.Promise,tle=tie("species"),nle=/(?:ipad|iphone|ipod).*applewebkit/i.test(Soe),rle="process"==foe(Kre.process),ole=Kre.setImmediate,ile=Kre.clearImmediate,ale=Kre.process,ule=Kre.Dispatch,sle=Kre.Function,cle=Kre.MessageChannel,lle=Kre.String,fle=0,dle={};try{Yce=Kre.location}catch(Mc){}var ple=function(e){if(Woe(dle,e)){var t=dle[e];delete dle[e],t()}},hle=function(e){return function(){ple(e)}},vle=function(e){ple(e.data)},gle=function(e){Kre.postMessage(lle(e),Yce.protocol+"//"+Yce.host)};ole&&ile||(ole=function(e){var t=Fae(arguments,1);return dle[++fle]=function(){Cue(moe(e)?e:sle(e),void 0,t)},Xce(fle),fle},ile=function(e){delete dle[e]},rle?Xce=function(e){ale.nextTick(hle(e))}:ule&&ule.now?Xce=function(e){ule.now(hle(e))}:cle&&!nle?(Qce=(Jce=new cle).port2,Jce.port1.onmessage=vle,Xce=Zse(Qce.postMessage,Qce)):Kre.addEventListener&&moe(Kre.postMessage)&&!Kre.importScripts&&Yce&&"file:"!==Yce.protocol&&!Yre(gle)?(Xce=gle,Kre.addEventListener("message",vle,!1)):Xce="onreadystatechange"in uie("script")?function(e){Kae.appendChild(uie("script")).onreadystatechange=function(){Kae.removeChild(this),ple(e)}}:function(e){setTimeout(hle(e),0)});var yle,mle,ble,wle,xle,Ele,Sle,Cle,Dle={set:ole,clear:ile},Ole=/ipad|iphone|ipod/i.test(Soe)&&void 0!==Kre.Pebble,Ale=/web0s(?!.*chrome)/i.test(Soe),kle=lie.f,Tle=Dle.set,Ble=Kre.MutationObserver||Kre.WebKitMutationObserver,_le=Kre.document,Ple=Kre.process,Fle=Kre.Promise,jle=kle(Kre,"queueMicrotask"),Nle=jle&&jle.value;Nle||(yle=function(){var e,t;for(rle&&(e=Ple.domain)&&e.exit();mle;){t=mle.fn,mle=mle.next;try{t()}catch(e){throw mle?wle():ble=void 0,e}}ble=void 0,e&&e.enter()},nle||rle||Ale||!Ble||!_le?!Ole&&Fle&&Fle.resolve?((Sle=Fle.resolve(void 0)).constructor=Fle,Cle=Zse(Sle.then,Sle),wle=function(){Cle(yle)}):rle?wle=function(){Ple.nextTick(yle)}:(Tle=Zse(Tle,Kre),wle=function(){Tle(yle)}):(xle=!0,Ele=_le.createTextNode(""),new Ble(yle).observe(Ele,{characterData:!0}),wle=function(){Ele.data=xle=!xle}));var Lle,Ile,Rle,Mle,zle=Nle||function(e){var t={fn:e,next:void 0};ble&&(ble.next=t),mle||(mle=t,wle()),ble=t},Hle=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Loe(t),this.reject=Loe(n)},$le={f:function(e){return new Hle(e)}},Vle=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ule="object"==typeof window,Zle=Dle.set,Wle=tie("species"),Gle="Promise",qle=Nie.getterFor(Gle),Kle=Nie.set,Yle=Nie.getterFor(Gle),Xle=ele&&ele.prototype,Jle=ele,Qle=Xle,efe=Kre.TypeError,tfe=Kre.document,nfe=Kre.process,rfe=$le.f,ofe=rfe,ife=!!(tfe&&tfe.createEvent&&Kre.dispatchEvent),afe=moe(Kre.PromiseRejectionEvent),ufe=!1,sfe=pae(Gle,(function(){var e=Eie(Jle),t=e!==String(Jle);if(!t&&66===koe)return!0;if(koe>=51&&/native code/.test(e))return!1;var n=new Jle((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Wle]=r,!(ufe=n.then((function(){}))instanceof r)||!t&&Ule&&!afe})),cfe=sfe||!sce((function(e){Jle.all(e).catch((function(){}))})),lfe=function(e){var t;return!(!boe(e)||!moe(t=e.then))&&t},ffe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;zle((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&vfe(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(efe("Promise-chain cycle")):(u=lfe(a))?Qre(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&pfe(e)}))}},dfe=function(e,t,n){var r,o;ife?((r=tfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Kre.dispatchEvent(r)):r={promise:t,reason:n},!afe&&(o=Kre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Kre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},pfe=function(e){Qre(Zle,Kre,(function(){var t,n=e.facade,r=e.value;if(hfe(e)&&(t=Vle((function(){rle?nfe.emit("unhandledRejection",r,n):dfe("unhandledrejection",n,r)})),e.rejection=rle||hfe(e)?2:1,t.error))throw t.value}))},hfe=function(e){return 1!==e.rejection&&!e.parent},vfe=function(e){Qre(Zle,Kre,(function(){var t=e.facade;rle?nfe.emit("rejectionHandled",t):dfe("rejectionhandled",t,e.value)}))},gfe=function(e,t,n){return function(r){e(t,r,n)}},yfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ffe(e,!0))},mfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw efe("Promise can't be resolved itself");var r=lfe(t);r?zle((function(){var n={done:!1};try{Qre(r,t,gfe(mfe,n,e),gfe(yfe,n,e))}catch(t){yfe(n,t,e)}})):(e.value=t,e.state=1,ffe(e,!1))}catch(t){yfe({done:!1},t,e)}}};if(sfe&&(Qle=(Jle=function(e){rce(this,Qle),Loe(e),Qre(Lle,this);var t=qle(this);try{e(gfe(mfe,t),gfe(yfe,t))}catch(e){yfe(t,e)}}).prototype,(Lle=function(e){Kle(this,{type:Gle,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nse(Qle,{then:function(e,t){var n=Yle(this),r=n.reactions,o=rfe(Bue(this,Jle));return o.ok=!moe(e)||e,o.fail=moe(t)&&t,o.domain=rle?nfe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&ffe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ile=function(){var e=new Lle,t=qle(e);this.promise=e,this.resolve=gfe(mfe,t),this.reject=gfe(yfe,t)},$le.f=rfe=function(e){return e===Jle||e===Rle?new Ile(e):ofe(e)},moe(ele)&&Xle!==Object.prototype)){Mle=Xle.then,ufe||(zie(Xle,"then",(function(e,t){var n=this;return new Jle((function(e,t){Qre(Mle,n,e,t)})).then(e,t)}),{unsafe:!0}),zie(Xle,"catch",Qle.catch,{unsafe:!0}));try{delete Xle.constructor}catch(Mc){}xse&&xse(Xle,Qle)}vae({global:!0,wrap:!0,forced:sfe},{Promise:Jle}),gse(Jle,Gle,!1),function(e){var t=xoe("Promise"),n=gie.f;Xre&&t&&!t[tle]&&n(t,tle,{configurable:!0,get:function(){return this}})}(),Rle=xoe(Gle),vae({target:Gle,stat:!0,forced:sfe},{reject:function(e){var t=rfe(this);return Qre(t.reject,void 0,e),t.promise}}),vae({target:Gle,stat:!0,forced:sfe},{resolve:function(e){return function(e,t){if(pie(e),boe(t)&&t.constructor===e)return t;var n=$le.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),vae({target:Gle,stat:!0,forced:cfe},{all:function(e){var t=this,n=rfe(t),r=n.resolve,o=n.reject,i=Vle((function(){var n=Loe(t.resolve),i=[],a=0,u=1;tce(e,(function(e){var s=a++,c=!1;u++,Qre(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=rfe(t),r=n.reject,o=Vle((function(){var o=Loe(t.resolve);tce(e,(function(e){Qre(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var bfe=Mie.PROPER,wfe=RegExp.prototype,xfe=wfe.toString,Efe=soe($ae),Sfe=Yre((function(){return"/a/b"!=xfe.call({source:"a",flags:"b"})})),Cfe=bfe&&"toString"!=xfe.name;(Sfe||Cfe)&&zie(RegExp.prototype,"toString",(function(){var e=pie(this),t=Hae(e.source),n=e.flags;return"/"+t+"/"+Hae(void 0===n&&Eoe(wfe,e)&&!("flags"in wfe)?Efe(e):n)}),{unsafe:!0});var Dfe=Mie.EXISTS,Ofe=gie.f,Afe=Function.prototype,kfe=soe(Afe.toString),Tfe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bfe=soe(Tfe.exec);Xre&&!Dfe&&Ofe(Afe,"name",{configurable:!0,get:function(){try{return Bfe(Tfe,kfe(this))[1]}catch(e){return""}}});var _fe=new WeakMap;function Pfe(e){return e.getMenuConfig("uploadImage")}function Ffe(e,t){return Yue(this,void 0,void 0,(function(){return Xue(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;uH(e,i,t.name,a),n("ok")}}}))]}))}))}function jfe(e,t){return Yue(this,void 0,void 0,(function(){var n,r,o,i;return Xue(this,(function(a){switch(a.label){case 0:return n=function(e){var t=_fe.get(e);if(null!=t)return t;var n=Pfe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=xP(Kue(Kue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return uH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){if(Array.isArray(c))c.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;uH(e,r,i,void 0===a?"":a)}));else{var l=c.url,f=void 0===l?"":l,d=c.alt,p=void 0===d?"":d,h=c.href;uH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),_fe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Nfe(e,t){var n,r;return Yue(this,void 0,void 0,(function(){var o,i,a,u,s,c,l,f,d;return Xue(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Pfe(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(c=p.sent()).done?[3,10]:(l=c.value,f=l.size,u&&f<=u?[4,Ffe(e,l)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(l,(function(t,n,r){return uH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,jfe(e,l)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),c&&!c.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Lfe=soe([].join),Ife=hoe!=Object,Rfe=Zce("join",",");vae({target:"Array",proto:!0,forced:Ife||!Rfe},{join:function(e){return Lfe(yoe(this),void 0===e?",":e)}}),Xp&&(Bp.fn.append=Xp),Rp&&(Bp.fn.on=Rp),rh&&(Bp.fn.remove=rh),Ip&&(Bp.fn.val=Ip),uh&&(Bp.fn.click=uh),Vp&&(Bp.fn.hide=Vp);var Mfe=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return sH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return uH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Bp("body"),s=Bp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Nfe(e,t)}))}},e}(),zfe={menus:[{key:"uploadImage",factory:function(){return new Mfe},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(e){var t=e.insertData,n=e;return n.insertData=function(r){if(sH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).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||t-- >0)&&!(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]}))?Nfe(e,o):t(r)}},n}};cF("en",{highLightModule:{selectLang:"Language"}}),cF("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Hfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function $fe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vfe,Ufe,Zfe=function(e){return e&&e.Math==Math&&e},Wfe=Zfe("object"==typeof globalThis&&globalThis)||Zfe("object"==typeof window&&window)||Zfe("object"==typeof self&&self)||Zfe("object"==typeof Hfe&&Hfe)||function(){return this}()||Function("return this")(),Gfe=Object.defineProperty,qfe=function(e,t){try{Gfe(Wfe,e,{value:t,configurable:!0,writable:!0})}catch(n){Wfe[e]=t}return t},Kfe=Wfe["__core-js_shared__"]||qfe("__core-js_shared__",{}),Yfe=$fe((function(e){(e.exports=function(e,t){return Kfe[e]||(Kfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Xfe=Function.prototype,Jfe=Xfe.bind,Qfe=Xfe.call,ede=Jfe&&Jfe.bind(Qfe),tde=Jfe?function(e){return e&&ede(Qfe,e)}:function(e){return e&&function(){return Qfe.apply(e,arguments)}},nde=Wfe.TypeError,rde=function(e){if(null==e)throw nde("Can't call method on "+e);return e},ode=Wfe.Object,ide=function(e){return ode(rde(e))},ade=tde({}.hasOwnProperty),ude=Object.hasOwn||function(e,t){return ade(ide(e),t)},sde=0,cde=Math.random(),lde=tde(1..toString),fde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+lde(++sde+cde,36)},dde=function(e){return"function"==typeof e},pde=function(e){return dde(e)?e:void 0},hde=function(e,t){return arguments.length<2?pde(Wfe[e]):Wfe[e]&&Wfe[e][t]},vde=hde("navigator","userAgent")||"",gde=Wfe.process,yde=Wfe.Deno,mde=gde&&gde.versions||yde&&yde.version,bde=mde&&mde.v8;bde&&(Ufe=(Vfe=bde.split("."))[0]>0&&Vfe[0]<4?1:+(Vfe[0]+Vfe[1])),!Ufe&&vde&&(!(Vfe=vde.match(/Edge\/(\d+)/))||Vfe[1]>=74)&&(Vfe=vde.match(/Chrome\/(\d+)/))&&(Ufe=+Vfe[1]);var wde=Ufe,xde=function(e){try{return!!e()}catch(e){return!0}},Ede=!!Object.getOwnPropertySymbols&&!xde((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wde&&wde<41})),Sde=Ede&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cde=Yfe("wks"),Dde=Wfe.Symbol,Ode=Dde&&Dde.for,Ade=Sde?Dde:Dde&&Dde.withoutSetter||fde,kde=function(e){if(!ude(Cde,e)||!Ede&&"string"!=typeof Cde[e]){var t="Symbol."+e;Ede&&ude(Dde,e)?Cde[e]=Dde[e]:Cde[e]=Sde&&Ode?Ode(t):Ade(t)}return Cde[e]},Tde={};Tde[kde("toStringTag")]="z";var Bde="[object z]"===String(Tde),_de=!xde((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pde=function(e){return"object"==typeof e?null!==e:dde(e)},Fde=Wfe.document,jde=Pde(Fde)&&Pde(Fde.createElement),Nde=function(e){return jde?Fde.createElement(e):{}},Lde=!_de&&!xde((function(){return 7!=Object.defineProperty(Nde("div"),"a",{get:function(){return 7}}).a})),Ide=Wfe.String,Rde=Wfe.TypeError,Mde=function(e){if(Pde(e))return e;throw Rde(Ide(e)+" is not an object")},zde=Function.prototype.call,Hde=zde.bind?zde.bind(zde):function(){return zde.apply(zde,arguments)},$de=tde({}.isPrototypeOf),Vde=Wfe.Object,Ude=Sde?function(e){return"symbol"==typeof e}:function(e){var t=hde("Symbol");return dde(t)&&$de(t.prototype,Vde(e))},Zde=Wfe.String,Wde=function(e){try{return Zde(e)}catch(e){return"Object"}},Gde=Wfe.TypeError,qde=function(e){if(dde(e))return e;throw Gde(Wde(e)+" is not a function")},Kde=function(e,t){var n=e[t];return null==n?void 0:qde(n)},Yde=Wfe.TypeError,Xde=Wfe.TypeError,Jde=kde("toPrimitive"),Qde=function(e){var t=function(e,t){if(!Pde(e)||Ude(e))return e;var n,r=Kde(e,Jde);if(r){if(void 0===t&&(t="default"),n=Hde(r,e,t),!Pde(n)||Ude(n))return n;throw Xde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&dde(n=e.toString)&&!Pde(r=Hde(n,e)))return r;if(dde(n=e.valueOf)&&!Pde(r=Hde(n,e)))return r;if("string"!==t&&dde(n=e.toString)&&!Pde(r=Hde(n,e)))return r;throw Yde("Can't convert object to primitive value")}(e,t)}(e,"string");return Ude(t)?t:t+""},epe=Wfe.TypeError,tpe=Object.defineProperty,npe={f:_de?tpe:function(e,t,n){if(Mde(e),t=Qde(t),Mde(n),Lde)try{return tpe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw epe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},rpe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ope=_de?function(e,t,n){return npe.f(e,t,rpe(1,n))}:function(e,t,n){return e[t]=n,e},ipe=tde(Function.toString);dde(Kfe.inspectSource)||(Kfe.inspectSource=function(e){return ipe(e)});var ape,upe,spe,cpe=Kfe.inspectSource,lpe=Wfe.WeakMap,fpe=dde(lpe)&&/native code/.test(cpe(lpe)),dpe=Yfe("keys"),ppe=function(e){return dpe[e]||(dpe[e]=fde(e))},hpe={},vpe=Wfe.TypeError,gpe=Wfe.WeakMap;if(fpe||Kfe.state){var ype=Kfe.state||(Kfe.state=new gpe),mpe=tde(ype.get),bpe=tde(ype.has),wpe=tde(ype.set);ape=function(e,t){if(bpe(ype,e))throw new vpe("Object already initialized");return t.facade=e,wpe(ype,e,t),t},upe=function(e){return mpe(ype,e)||{}},spe=function(e){return bpe(ype,e)}}else{var xpe=ppe("state");hpe[xpe]=!0,ape=function(e,t){if(ude(e,xpe))throw new vpe("Object already initialized");return t.facade=e,ope(e,xpe,t),t},upe=function(e){return ude(e,xpe)?e[xpe]:{}},spe=function(e){return ude(e,xpe)}}var Epe={set:ape,get:upe,has:spe,enforce:function(e){return spe(e)?upe(e):ape(e,{})},getterFor:function(e){return function(t){var n;if(!Pde(t)||(n=upe(t)).type!==e)throw vpe("Incompatible receiver, "+e+" required");return n}}},Spe=Function.prototype,Cpe=_de&&Object.getOwnPropertyDescriptor,Dpe=ude(Spe,"name"),Ope={EXISTS:Dpe,PROPER:Dpe&&"something"===function(){}.name,CONFIGURABLE:Dpe&&(!_de||_de&&Cpe(Spe,"name").configurable)},Ape=$fe((function(e){var t=Ope.CONFIGURABLE,n=Epe.get,r=Epe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;dde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ude(i,"name")||t&&i.name!==f)&&ope(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Wfe?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ope(e,n,i)):c?e[n]=i:qfe(n,i)})(Function.prototype,"toString",(function(){return dde(this)&&n(this).source||cpe(this)}))})),kpe=tde({}.toString),Tpe=tde("".slice),Bpe=function(e){return Tpe(kpe(e),8,-1)},_pe=kde("toStringTag"),Ppe=Wfe.Object,Fpe="Arguments"==Bpe(function(){return arguments}()),jpe=Bde?Bpe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ppe(e),_pe))?n:Fpe?Bpe(t):"Object"==(r=Bpe(t))&&dde(t.callee)?"Arguments":r},Npe=Bde?{}.toString:function(){return"[object "+jpe(this)+"]"};Bde||Ape(Object.prototype,"toString",Npe,{unsafe:!0});var Lpe,Ipe={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},Rpe=Nde("span").classList,Mpe=Rpe&&Rpe.constructor&&Rpe.constructor.prototype,zpe=Mpe===Object.prototype?void 0:Mpe,Hpe=tde(tde.bind),$pe=Wfe.Object,Vpe=tde("".split),Upe=xde((function(){return!$pe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Bpe(e)?Vpe(e,""):$pe(e)}:$pe,Zpe=Math.ceil,Wpe=Math.floor,Gpe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Wpe:Zpe)(t)},qpe=Math.min,Kpe=function(e){return e>0?qpe(Gpe(e),9007199254740991):0},Ype=function(e){return Kpe(e.length)},Xpe=Array.isArray||function(e){return"Array"==Bpe(e)},Jpe=function(){},Qpe=[],ehe=hde("Reflect","construct"),the=/^\s*(?:class|function)\b/,nhe=tde(the.exec),rhe=!the.exec(Jpe),ohe=function(e){if(!dde(e))return!1;try{return ehe(Jpe,Qpe,e),!0}catch(e){return!1}},ihe=!ehe||xde((function(){var e;return ohe(ohe.call)||!ohe(Object)||!ohe((function(){e=!0}))||e}))?function(e){if(!dde(e))return!1;switch(jpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rhe||!!nhe(the,cpe(e))}:ohe,ahe=kde("species"),uhe=Wfe.Array,she=function(e,t){return new(function(e){var t;return Xpe(e)&&(t=e.constructor,(ihe(t)&&(t===uhe||Xpe(t.prototype))||Pde(t)&&null===(t=t[ahe]))&&(t=void 0)),void 0===t?uhe:t}(e))(0===t?0:t)},che=tde([].push),lhe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=ide(s),v=Upe(h),g=function(e,t){return qde(e),void 0===t?e:Hpe?Hpe(e,t):function(){return e.apply(t,arguments)}}(c,l),y=Ype(v),m=0,b=f||she,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:che(w,d)}else switch(e){case 4:return!1;case 7:che(w,d)}return i?-1:r||o?o:w}},fhe=[lhe(0),lhe(1),lhe(2),lhe(3),lhe(4),lhe(5),lhe(6),lhe(7)][0],dhe=(Lpe=[].forEach)&&xde((function(){Lpe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return fhe(this,e,arguments.length>1?arguments[1]:void 0)},phe=function(e){if(e&&e.forEach!==dhe)try{ope(e,"forEach",dhe)}catch(t){e.forEach=dhe}};for(var hhe in Ipe)Ipe[hhe]&&phe(Wfe[hhe]&&Wfe[hhe].prototype);phe(zpe);var vhe={}.propertyIsEnumerable,ghe=Object.getOwnPropertyDescriptor,yhe={f:ghe&&!vhe.call({1:2},1)?function(e){var t=ghe(this,e);return!!t&&t.enumerable}:vhe},mhe=function(e){return Upe(rde(e))},bhe=Object.getOwnPropertyDescriptor,whe={f:_de?bhe:function(e,t){if(e=mhe(e),t=Qde(t),Lde)try{return bhe(e,t)}catch(e){}if(ude(e,t))return rpe(!Hde(yhe.f,e,t),e[t])}},xhe=Math.max,Ehe=Math.min,She=function(e,t){var n=Gpe(e);return n<0?xhe(n+t,0):Ehe(n,t)},Che=function(e){return function(t,n,r){var o,i=mhe(t),a=Ype(i),u=She(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Dhe=(Che(!0),Che(!1)),Ohe=tde([].push),Ahe=function(e,t){var n,r=mhe(e),o=0,i=[];for(n in r)!ude(hpe,n)&&ude(r,n)&&Ohe(i,n);for(;t.length>o;)ude(r,n=t[o++])&&(~Dhe(i,n)||Ohe(i,n));return i},khe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],The=khe.concat("length","prototype"),Bhe={f:Object.getOwnPropertyNames||function(e){return Ahe(e,The)}},_he={f:Object.getOwnPropertySymbols},Phe=tde([].concat),Fhe=hde("Reflect","ownKeys")||function(e){var t=Bhe.f(Mde(e)),n=_he.f;return n?Phe(t,n(e)):t},jhe=function(e,t){for(var n=Fhe(t),r=npe.f,o=whe.f,i=0;i<n.length;i++){var a=n[i];ude(e,a)||r(e,a,o(t,a))}},Nhe=/#|\.prototype\./,Lhe=function(e,t){var n=Rhe[Ihe(e)];return n==zhe||n!=Mhe&&(dde(t)?xde(t):!!t)},Ihe=Lhe.normalize=function(e){return String(e).replace(Nhe,".").toLowerCase()},Rhe=Lhe.data={},Mhe=Lhe.NATIVE="N",zhe=Lhe.POLYFILL="P",Hhe=Lhe,$he=whe.f,Vhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Wfe:c?Wfe[u]||qfe(u,{}):(Wfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$he(n,r))&&a.value:n[r],!Hhe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jhe(i,o)}(e.sham||o&&o.sham)&&ope(i,"sham",!0),Ape(n,r,i,e)}},Uhe=Object.keys||function(e){return Ahe(e,khe)},Zhe=Object.assign,Whe=Object.defineProperty,Ghe=tde([].concat),qhe=!Zhe||xde((function(){if(_de&&1!==Zhe({b:1},Zhe(Whe({},"a",{enumerable:!0,get:function(){Whe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Zhe({},e)[n]||Uhe(Zhe({},t)).join("")!=r}))?function(e,t){for(var n=ide(e),r=arguments.length,o=1,i=_he.f,a=yhe.f;r>o;)for(var u,s=Upe(arguments[o++]),c=i?Ghe(Uhe(s),i(s)):Uhe(s),l=c.length,f=0;l>f;)u=c[f++],_de&&!Hde(a,s,u)||(n[u]=s[u]);return n}:Zhe;Vhe({target:"Object",stat:!0,forced:Object.assign!==qhe},{assign:qhe});var Khe=$fe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").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:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[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:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],c=o.util.type(s);"Object"!==c||i[a(s)]?"Array"!==c||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.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'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var c={element:n,language:a,grammar:u,code:n.textContent};function l(e){c.highlightedCode=e,o.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,o.hooks.run("after-highlight",c),o.hooks.run("complete",c),i&&i.call(c.element)}if(o.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return o.hooks.run("complete",c),void(i&&i.call(c.element));if(o.hooks.run("before-highlight",c),c.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){l(e.data)},f.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(o.highlight(c.code,c.grammar,c.language));else l(o.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var x=v.pattern||v,E=r.next,S=s;E!==t.tail&&!(f&&S>=f.reach);S+=E.value.length,E=E.next){var C=E.value;if(t.length>e.length)return;if(!(C instanceof i)){var D,O=1;if(m){if(!(D=a(x,S,e,y)))break;var A=D.index,k=D.index+D[0].length,T=S;for(T+=E.value.length;A>=T;)T+=(E=E.next).value.length;if(S=T-=E.value.length,E.value instanceof i)continue;for(var B=E;B!==t.tail&&(T<k||"string"==typeof B.value);B=B.next)O++,T+=B.value.length;O--,C=e.slice(S,T),D.index-=S}else if(!(D=a(x,0,C,y)))continue;A=D.index;var _=D[0],P=C.slice(0,A),F=C.slice(A+_.length),j=S+C.length;f&&j>f.reach&&(f.reach=j);var N=E.prev;if(P&&(N=c(t,N,P),S+=P.length),l(t,N,O),E=c(t,N,new i(d,g?o.tokenize(_,g):_,b,_)),F&&c(t,E,F),O>1){var L={cause:d+","+h,reach:j};u(e,t,n,E.prev,S,L),f&&L.reach>f.reach&&(f.reach=L.reach)}}}}}}function s(){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 c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
153
|
+
var Kue=function(){return Kue=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},Kue.apply(this,arguments)};function Yue(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Xue(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var Jue=tie("unscopables"),Que=Array.prototype;null==Que[Jue]&&gie.f(Que,Jue,{configurable:!0,value:rue(null)});var ese,tse,nse,rse=function(e){Que[Jue][e]=!0},ose={},ise=!Yre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ase=Oie("IE_PROTO"),use=Kre.Object,sse=use.prototype,cse=ise?use.getPrototypeOf:function(e){var t=Uoe(e);if(Woe(t,ase))return t[ase];var n=t.constructor;return moe(n)&&t instanceof n?n.prototype:t instanceof use?sse:null},lse=tie("iterator"),fse=!1;[].keys&&("next"in(nse=[].keys())?(tse=cse(cse(nse)))!==Object.prototype&&(ese=tse):fse=!0);var dse=null==ese||Yre((function(){var e={};return ese[lse].call(e)!==e}));dse&&(ese={}),moe(ese[lse])||zie(ese,lse,(function(){return this}));var pse={IteratorPrototype:ese,BUGGY_SAFARI_ITERATORS:fse},hse=gie.f,vse=tie("toStringTag"),gse=function(e,t,n){e&&!Woe(e=n?e:e.prototype,vse)&&hse(e,vse,{configurable:!0,value:t})},yse=pse.IteratorPrototype,mse=function(){return this},bse=Kre.String,wse=Kre.TypeError,xse=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=soe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return pie(n),function(e){if("object"==typeof e||moe(e))return e;throw wse("Can't set "+bse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Ese=Mie.PROPER,Sse=Mie.CONFIGURABLE,Cse=pse.IteratorPrototype,Dse=pse.BUGGY_SAFARI_ITERATORS,Ose=tie("iterator"),Ase=function(){return this},kse=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=rue(yse,{next:roe(1,n)}),gse(e,o,!1),ose[o]=mse}(n,t,r);var u,s,c,l=function(e){if(e===o&&v)return v;if(!Dse&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Ose]||p["@@iterator"]||o&&p[o],v=!Dse&&h||l(o),g="Array"==t&&p.entries||h;if(g&&(u=cse(g.call(new e)))!==Object.prototype&&u.next&&(cse(u)!==Cse&&(xse?xse(u,Cse):moe(u[Ose])||zie(u,Ose,Ase)),gse(u,f,!0)),Ese&&"values"==o&&h&&"values"!==h.name&&(Sse?yie(p,"name","values"):(d=!0,v=function(){return Qre(h,this)})),o)if(s={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(c in s)(Dse||d||!(c in p))&&zie(p,c,s[c]);else vae({target:t,proto:!0,forced:Dse||d},s);return p[Ose]!==v&&zie(p,Ose,v,{name:o}),ose[t]=v,s},Tse=Nie.set,Bse=Nie.getterFor("Array Iterator"),_se=kse(Array,"Array",(function(e,t){Tse(this,{type:"Array Iterator",target:yoe(e),index:0,kind:t})}),(function(){var e=Bse(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ose.Arguments=ose.Array,rse("keys"),rse("values"),rse("entries");var Pse=Nue.charAt,Fse=Nie.set,jse=Nie.getterFor("String Iterator");kse(String,"String",(function(e){Fse(this,{type:"String Iterator",string:Hae(e),index:0})}),(function(){var e,t=jse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Pse(n,r),t.index+=e.length,{value:e,done:!1})}));var Nse=function(e,t,n){for(var r in t)zie(e,r,t[r],n);return e},Lse=nae.f,Ise="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rse={f:function(e){return Ise&&"Window"==foe(e)?function(e){try{return Lse(e)}catch(e){return zue(Ise)}}(e):Lse(yoe(e))}},Mse=Yre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),zse=Object.isExtensible,Hse=Yre((function(){zse(1)}))||Mse?function(e){return!!boe(e)&&(!Mse||"ArrayBuffer"!=foe(e))&&(!zse||zse(e))}:zse,$se=!Yre((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vse=Zre((function(e){var t=gie.f,n=!1,r=Yoe("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=nae.f,t=soe([].splice),o={};o[r]=1,e(o).length&&(nae.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},vae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rse.f}))},fastKey:function(e,t){if(!boe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Woe(e,r)){if(!Hse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Woe(e,r)){if(!Hse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return $se&&n&&Hse(e)&&!Woe(e,r)&&i(e),e}};Aie[r]=!0})),Use=soe(soe.bind),Zse=function(e,t){return Loe(e),void 0===t?e:Use?Use(e,t):function(){return e.apply(t,arguments)}},Wse=tie("iterator"),Gse=Array.prototype,qse=tie("iterator"),Kse=function(e){if(null!=e)return Ioe(e,qse)||Ioe(e,"@@iterator")||ose[Eae(e)]},Yse=Kre.TypeError,Xse=function(e,t,n){var r,o;pie(e);try{if(!(r=Ioe(e,"return"))){if("throw"===t)throw n;return n}r=Qre(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return pie(r),n},Jse=Kre.TypeError,Qse=function(e,t){this.stopped=e,this.result=t},ece=Qse.prototype,tce=function(e,t,n){var r,o,i,a,u,s,c,l,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Zse(t,f),g=function(e){return r&&Xse(r,"normal",e),new Qse(!0,e)},y=function(e){return d?(pie(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=Kse(e)))throw Jse(joe(e)+" is not iterable");if(void 0!==(l=o)&&(ose.Array===l||Gse[Wse]===l)){for(i=0,a=Kie(e);a>i;i++)if((u=y(e[i]))&&Eoe(ece,u))return u;return new Qse(!1)}r=function(e,t){var n=arguments.length<2?Kse(e):t;if(Loe(n))return pie(Qre(n,e));throw Yse(joe(e)+" is not iterable")}(e,o)}for(s=r.next;!(c=Qre(s,r)).done;){try{u=y(c.value)}catch(e){Xse(r,"throw",e)}if("object"==typeof u&&u&&Eoe(ece,u))return u}return new Qse(!1)},nce=Kre.TypeError,rce=function(e,t){if(Eoe(t,e))return e;throw nce("Incorrect invocation")},oce=tie("iterator"),ice=!1;try{var ace=0,uce={next:function(){return{done:!!ace++}},return:function(){ice=!0}};uce[oce]=function(){return this},Array.from(uce,(function(){throw 2}))}catch(Mc){}var sce=function(e,t){if(!t&&!ice)return!1;var n=!1;try{var r={};r[oce]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},cce=tie("species"),lce=Kre.Array,fce=function(e,t){return new(function(e){var t;return gae(e)&&(t=e.constructor,(Bae(t)&&(t===lce||gae(t.prototype))||boe(t)&&null===(t=t[cce]))&&(t=void 0)),void 0===t?lce:t}(e))(0===t?0:t)},dce=soe([].push),pce=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=Uoe(s),v=hoe(h),g=Zse(c,l),y=Kie(v),m=0,b=f||fce,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:dce(w,d)}else switch(e){case 4:return!1;case 7:dce(w,d)}return i?-1:r||o?o:w}},hce={forEach:pce(0),map:pce(1),filter:pce(2),some:pce(3),every:pce(4),find:pce(5),findIndex:pce(6),filterReject:pce(7)},vce=Vse.getWeakData,gce=Nie.set,yce=Nie.getterFor,mce=hce.find,bce=hce.findIndex,wce=soe([].splice),xce=0,Ece=function(e){return e.frozen||(e.frozen=new Sce)},Sce=function(){this.entries=[]},Cce=function(e,t){return mce(e.entries,(function(e){return e[0]===t}))};Sce.prototype={get:function(e){var t=Cce(this,e);if(t)return t[1]},has:function(e){return!!Cce(this,e)},set:function(e,t){var n=Cce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=bce(this.entries,(function(t){return t[0]===e}));return~t&&wce(this.entries,t,1),!!~t}};var Dce,Oce={getConstructor:function(e,t,n,r){var o=e((function(e,o){rce(e,i),gce(e,{type:t,id:xce++,frozen:void 0}),null!=o&&tce(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=yce(t),u=function(e,t,n){var r=a(e),o=vce(pie(t),!0);return!0===o?Ece(r).set(t,n):o[r.id]=n,e};return Nse(i,{delete:function(e){var t=a(this);if(!boe(e))return!1;var n=vce(e);return!0===n?Ece(t).delete(e):n&&Woe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!boe(e))return!1;var n=vce(e);return!0===n?Ece(t).has(e):n&&Woe(n,t.id)}}),Nse(i,n?{get:function(e){var t=a(this);if(boe(e)){var n=vce(e);return!0===n?Ece(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Ace=Nie.enforce,kce=!Kre.ActiveXObject&&"ActiveXObject"in Kre,Tce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Bce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Kre[e],u=a&&a.prototype,s=a,c={},l=function(e){var t=soe(u[e]);zie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!boe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!boe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!boe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(pae(e,!moe(a)||!(o||u.forEach&&!Yre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Vse.enable();else if(pae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Yre((function(){f.has(1)})),h=sce((function(e){new a(e)})),v=!o&&Yre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){rce(e,u);var n=function(e,t,n){var r,o;return xse&&moe(r=t.constructor)&&r!==n&&boe(o=r.prototype)&&o!==n.prototype&&xse(e,o),e}(new a,e,s);return null!=t&&tce(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(l("delete"),l("has"),r&&l("get")),(v||d)&&l(i),o&&u.clear&&delete u.clear}return c[e]=s,vae({global:!0,forced:s!=a},c),gse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Tce,Oce);if(Cie&&kce){Dce=Oce.getConstructor(Tce,"WeakMap",!0),Vse.enable();var _ce=Bce.prototype,Pce=soe(_ce.delete),Fce=soe(_ce.has),jce=soe(_ce.get),Nce=soe(_ce.set);Nse(_ce,{delete:function(e){if(boe(e)&&!Hse(e)){var t=Ace(this);return t.frozen||(t.frozen=new Dce),Pce(this,e)||t.frozen.delete(e)}return Pce(this,e)},has:function(e){if(boe(e)&&!Hse(e)){var t=Ace(this);return t.frozen||(t.frozen=new Dce),Fce(this,e)||t.frozen.has(e)}return Fce(this,e)},get:function(e){if(boe(e)&&!Hse(e)){var t=Ace(this);return t.frozen||(t.frozen=new Dce),Fce(this,e)?jce(this,e):t.frozen.get(e)}return jce(this,e)},set:function(e,t){if(boe(e)&&!Hse(e)){var n=Ace(this);n.frozen||(n.frozen=new Dce),Fce(this,e)?Nce(this,e,t):n.frozen.set(e,t)}else Nce(this,e,t);return this}})}var Lce={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},Ice=uie("span").classList,Rce=Ice&&Ice.constructor&&Ice.constructor.prototype,Mce=Rce===Object.prototype?void 0:Rce,zce=tie("iterator"),Hce=tie("toStringTag"),$ce=_se.values,Vce=function(e,t){if(e){if(e[zce]!==$ce)try{yie(e,zce,$ce)}catch(t){e[zce]=$ce}if(e[Hce]||yie(e,Hce,t),Lce[t])for(var n in _se)if(e[n]!==_se[n])try{yie(e,n,_se[n])}catch(t){e[n]=_se[n]}}};for(var Uce in Lce)Vce(Kre[Uce]&&Kre[Uce].prototype,Uce);Vce(Mce,"DOMTokenList");var Zce=function(e,t){var n=[][e];return!!n&&Yre((function(){n.call(null,t||function(){throw 1},1)}))},Wce=hce.forEach,Gce=Zce("forEach")?[].forEach:function(e){return Wce(this,e,arguments.length>1?arguments[1]:void 0)},qce=function(e){if(e&&e.forEach!==Gce)try{yie(e,"forEach",Gce)}catch(t){e.forEach=Gce}};for(var Kce in Lce)Lce[Kce]&&qce(Kre[Kce]&&Kre[Kce].prototype);qce(Mce);var Yce,Xce,Jce,Qce,ele=Kre.Promise,tle=tie("species"),nle=/(?:ipad|iphone|ipod).*applewebkit/i.test(Soe),rle="process"==foe(Kre.process),ole=Kre.setImmediate,ile=Kre.clearImmediate,ale=Kre.process,ule=Kre.Dispatch,sle=Kre.Function,cle=Kre.MessageChannel,lle=Kre.String,fle=0,dle={};try{Yce=Kre.location}catch(Mc){}var ple=function(e){if(Woe(dle,e)){var t=dle[e];delete dle[e],t()}},hle=function(e){return function(){ple(e)}},vle=function(e){ple(e.data)},gle=function(e){Kre.postMessage(lle(e),Yce.protocol+"//"+Yce.host)};ole&&ile||(ole=function(e){var t=Fae(arguments,1);return dle[++fle]=function(){Cue(moe(e)?e:sle(e),void 0,t)},Xce(fle),fle},ile=function(e){delete dle[e]},rle?Xce=function(e){ale.nextTick(hle(e))}:ule&&ule.now?Xce=function(e){ule.now(hle(e))}:cle&&!nle?(Qce=(Jce=new cle).port2,Jce.port1.onmessage=vle,Xce=Zse(Qce.postMessage,Qce)):Kre.addEventListener&&moe(Kre.postMessage)&&!Kre.importScripts&&Yce&&"file:"!==Yce.protocol&&!Yre(gle)?(Xce=gle,Kre.addEventListener("message",vle,!1)):Xce="onreadystatechange"in uie("script")?function(e){Kae.appendChild(uie("script")).onreadystatechange=function(){Kae.removeChild(this),ple(e)}}:function(e){setTimeout(hle(e),0)});var yle,mle,ble,wle,xle,Ele,Sle,Cle,Dle={set:ole,clear:ile},Ole=/ipad|iphone|ipod/i.test(Soe)&&void 0!==Kre.Pebble,Ale=/web0s(?!.*chrome)/i.test(Soe),kle=lie.f,Tle=Dle.set,Ble=Kre.MutationObserver||Kre.WebKitMutationObserver,_le=Kre.document,Ple=Kre.process,Fle=Kre.Promise,jle=kle(Kre,"queueMicrotask"),Nle=jle&&jle.value;Nle||(yle=function(){var e,t;for(rle&&(e=Ple.domain)&&e.exit();mle;){t=mle.fn,mle=mle.next;try{t()}catch(e){throw mle?wle():ble=void 0,e}}ble=void 0,e&&e.enter()},nle||rle||Ale||!Ble||!_le?!Ole&&Fle&&Fle.resolve?((Sle=Fle.resolve(void 0)).constructor=Fle,Cle=Zse(Sle.then,Sle),wle=function(){Cle(yle)}):rle?wle=function(){Ple.nextTick(yle)}:(Tle=Zse(Tle,Kre),wle=function(){Tle(yle)}):(xle=!0,Ele=_le.createTextNode(""),new Ble(yle).observe(Ele,{characterData:!0}),wle=function(){Ele.data=xle=!xle}));var Lle,Ile,Rle,Mle,zle=Nle||function(e){var t={fn:e,next:void 0};ble&&(ble.next=t),mle||(mle=t,wle()),ble=t},Hle=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Loe(t),this.reject=Loe(n)},$le={f:function(e){return new Hle(e)}},Vle=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ule="object"==typeof window,Zle=Dle.set,Wle=tie("species"),Gle="Promise",qle=Nie.getterFor(Gle),Kle=Nie.set,Yle=Nie.getterFor(Gle),Xle=ele&&ele.prototype,Jle=ele,Qle=Xle,efe=Kre.TypeError,tfe=Kre.document,nfe=Kre.process,rfe=$le.f,ofe=rfe,ife=!!(tfe&&tfe.createEvent&&Kre.dispatchEvent),afe=moe(Kre.PromiseRejectionEvent),ufe=!1,sfe=pae(Gle,(function(){var e=Eie(Jle),t=e!==String(Jle);if(!t&&66===koe)return!0;if(koe>=51&&/native code/.test(e))return!1;var n=new Jle((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Wle]=r,!(ufe=n.then((function(){}))instanceof r)||!t&&Ule&&!afe})),cfe=sfe||!sce((function(e){Jle.all(e).catch((function(){}))})),lfe=function(e){var t;return!(!boe(e)||!moe(t=e.then))&&t},ffe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;zle((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===e.rejection&&vfe(e),e.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),s=!0)),a===c.promise?d(efe("Promise-chain cycle")):(u=lfe(a))?Qre(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&pfe(e)}))}},dfe=function(e,t,n){var r,o;ife?((r=tfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Kre.dispatchEvent(r)):r={promise:t,reason:n},!afe&&(o=Kre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Kre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},pfe=function(e){Qre(Zle,Kre,(function(){var t,n=e.facade,r=e.value;if(hfe(e)&&(t=Vle((function(){rle?nfe.emit("unhandledRejection",r,n):dfe("unhandledrejection",n,r)})),e.rejection=rle||hfe(e)?2:1,t.error))throw t.value}))},hfe=function(e){return 1!==e.rejection&&!e.parent},vfe=function(e){Qre(Zle,Kre,(function(){var t=e.facade;rle?nfe.emit("rejectionHandled",t):dfe("rejectionhandled",t,e.value)}))},gfe=function(e,t,n){return function(r){e(t,r,n)}},yfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ffe(e,!0))},mfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw efe("Promise can't be resolved itself");var r=lfe(t);r?zle((function(){var n={done:!1};try{Qre(r,t,gfe(mfe,n,e),gfe(yfe,n,e))}catch(t){yfe(n,t,e)}})):(e.value=t,e.state=1,ffe(e,!1))}catch(t){yfe({done:!1},t,e)}}};if(sfe&&(Qle=(Jle=function(e){rce(this,Qle),Loe(e),Qre(Lle,this);var t=qle(this);try{e(gfe(mfe,t),gfe(yfe,t))}catch(e){yfe(t,e)}}).prototype,(Lle=function(e){Kle(this,{type:Gle,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nse(Qle,{then:function(e,t){var n=Yle(this),r=n.reactions,o=rfe(Bue(this,Jle));return o.ok=!moe(e)||e,o.fail=moe(t)&&t,o.domain=rle?nfe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&ffe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ile=function(){var e=new Lle,t=qle(e);this.promise=e,this.resolve=gfe(mfe,t),this.reject=gfe(yfe,t)},$le.f=rfe=function(e){return e===Jle||e===Rle?new Ile(e):ofe(e)},moe(ele)&&Xle!==Object.prototype)){Mle=Xle.then,ufe||(zie(Xle,"then",(function(e,t){var n=this;return new Jle((function(e,t){Qre(Mle,n,e,t)})).then(e,t)}),{unsafe:!0}),zie(Xle,"catch",Qle.catch,{unsafe:!0}));try{delete Xle.constructor}catch(Mc){}xse&&xse(Xle,Qle)}vae({global:!0,wrap:!0,forced:sfe},{Promise:Jle}),gse(Jle,Gle,!1),function(e){var t=xoe("Promise"),n=gie.f;Xre&&t&&!t[tle]&&n(t,tle,{configurable:!0,get:function(){return this}})}(),Rle=xoe(Gle),vae({target:Gle,stat:!0,forced:sfe},{reject:function(e){var t=rfe(this);return Qre(t.reject,void 0,e),t.promise}}),vae({target:Gle,stat:!0,forced:sfe},{resolve:function(e){return function(e,t){if(pie(e),boe(t)&&t.constructor===e)return t;var n=$le.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),vae({target:Gle,stat:!0,forced:cfe},{all:function(e){var t=this,n=rfe(t),r=n.resolve,o=n.reject,i=Vle((function(){var n=Loe(t.resolve),i=[],a=0,u=1;tce(e,(function(e){var s=a++,c=!1;u++,Qre(n,t,e).then((function(e){c||(c=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=rfe(t),r=n.reject,o=Vle((function(){var o=Loe(t.resolve);tce(e,(function(e){Qre(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var bfe=Mie.PROPER,wfe=RegExp.prototype,xfe=wfe.toString,Efe=soe($ae),Sfe=Yre((function(){return"/a/b"!=xfe.call({source:"a",flags:"b"})})),Cfe=bfe&&"toString"!=xfe.name;(Sfe||Cfe)&&zie(RegExp.prototype,"toString",(function(){var e=pie(this),t=Hae(e.source),n=e.flags;return"/"+t+"/"+Hae(void 0===n&&Eoe(wfe,e)&&!("flags"in wfe)?Efe(e):n)}),{unsafe:!0});var Dfe=Mie.EXISTS,Ofe=gie.f,Afe=Function.prototype,kfe=soe(Afe.toString),Tfe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bfe=soe(Tfe.exec);Xre&&!Dfe&&Ofe(Afe,"name",{configurable:!0,get:function(){try{return Bfe(Tfe,kfe(this))[1]}catch(e){return""}}});var _fe=new WeakMap;function Pfe(e){return e.getMenuConfig("uploadImage")}function Ffe(e,t){return Yue(this,void 0,void 0,(function(){return Xue(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;uH(e,i,t.name,a),n("ok")}}}))]}))}))}function jfe(e,t){return Yue(this,void 0,void 0,(function(){var n,r,o,i;return Xue(this,(function(a){switch(a.label){case 0:return n=function(e){var t=_fe.get(e);if(null!=t)return t;var n=Pfe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=xP(Kue(Kue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return uH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,c=void 0===s?{}:s;if(0===u){if(Array.isArray(c))c.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;uH(e,r,i,void 0===a?"":a)}));else{var l=c.url,f=void 0===l?"":l,d=c.alt,p=void 0===d?"":d,h=c.href;uH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),_fe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Nfe(e,t){var n,r;return Yue(this,void 0,void 0,(function(){var o,i,a,u,s,c,l,f,d;return Xue(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Pfe(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=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 e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(c=p.sent()).done?[3,10]:(l=c.value,f=l.size,u&&f<=u?[4,Ffe(e,l)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(l,(function(t,n,r){return uH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,jfe(e,l)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),c&&!c.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Lfe=soe([].join),Ife=hoe!=Object,Rfe=Zce("join",",");vae({target:"Array",proto:!0,forced:Ife||!Rfe},{join:function(e){return Lfe(yoe(this),void 0===e?",":e)}}),Xp&&(Bp.fn.append=Xp),Rp&&(Bp.fn.on=Rp),rh&&(Bp.fn.remove=rh),Ip&&(Bp.fn.val=Ip),uh&&(Bp.fn.click=uh),Vp&&(Bp.fn.hide=Vp);var Mfe=function(){function e(){this.title=lF("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"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return sH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return uH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Bp("body"),s=Bp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Nfe(e,t)}))}},e}(),zfe={menus:[{key:"uploadImage",factory:function(){return new Mfe},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(e){var t=e.insertData,n=e;return n.insertData=function(r){if(sH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).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||t-- >0)&&!(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]}))?Nfe(e,o):t(r)}},n}};cF("en",{highLightModule:{selectLang:"Language"}}),cF("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Hfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==a.g?a.g:"undefined"!=typeof self?self:{};function $fe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vfe,Ufe,Zfe=function(e){return e&&e.Math==Math&&e},Wfe=Zfe("object"==typeof globalThis&&globalThis)||Zfe("object"==typeof window&&window)||Zfe("object"==typeof self&&self)||Zfe("object"==typeof Hfe&&Hfe)||function(){return this}()||Function("return this")(),Gfe=Object.defineProperty,qfe=function(e,t){try{Gfe(Wfe,e,{value:t,configurable:!0,writable:!0})}catch(n){Wfe[e]=t}return t},Kfe=Wfe["__core-js_shared__"]||qfe("__core-js_shared__",{}),Yfe=$fe((function(e){(e.exports=function(e,t){return Kfe[e]||(Kfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Xfe=Function.prototype,Jfe=Xfe.bind,Qfe=Xfe.call,ede=Jfe&&Jfe.bind(Qfe),tde=Jfe?function(e){return e&&ede(Qfe,e)}:function(e){return e&&function(){return Qfe.apply(e,arguments)}},nde=Wfe.TypeError,rde=function(e){if(null==e)throw nde("Can't call method on "+e);return e},ode=Wfe.Object,ide=function(e){return ode(rde(e))},ade=tde({}.hasOwnProperty),ude=Object.hasOwn||function(e,t){return ade(ide(e),t)},sde=0,cde=Math.random(),lde=tde(1..toString),fde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+lde(++sde+cde,36)},dde=function(e){return"function"==typeof e},pde=function(e){return dde(e)?e:void 0},hde=function(e,t){return arguments.length<2?pde(Wfe[e]):Wfe[e]&&Wfe[e][t]},vde=hde("navigator","userAgent")||"",gde=Wfe.process,yde=Wfe.Deno,mde=gde&&gde.versions||yde&&yde.version,bde=mde&&mde.v8;bde&&(Ufe=(Vfe=bde.split("."))[0]>0&&Vfe[0]<4?1:+(Vfe[0]+Vfe[1])),!Ufe&&vde&&(!(Vfe=vde.match(/Edge\/(\d+)/))||Vfe[1]>=74)&&(Vfe=vde.match(/Chrome\/(\d+)/))&&(Ufe=+Vfe[1]);var wde=Ufe,xde=function(e){try{return!!e()}catch(e){return!0}},Ede=!!Object.getOwnPropertySymbols&&!xde((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wde&&wde<41})),Sde=Ede&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cde=Yfe("wks"),Dde=Wfe.Symbol,Ode=Dde&&Dde.for,Ade=Sde?Dde:Dde&&Dde.withoutSetter||fde,kde=function(e){if(!ude(Cde,e)||!Ede&&"string"!=typeof Cde[e]){var t="Symbol."+e;Ede&&ude(Dde,e)?Cde[e]=Dde[e]:Cde[e]=Sde&&Ode?Ode(t):Ade(t)}return Cde[e]},Tde={};Tde[kde("toStringTag")]="z";var Bde="[object z]"===String(Tde),_de=!xde((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Pde=function(e){return"object"==typeof e?null!==e:dde(e)},Fde=Wfe.document,jde=Pde(Fde)&&Pde(Fde.createElement),Nde=function(e){return jde?Fde.createElement(e):{}},Lde=!_de&&!xde((function(){return 7!=Object.defineProperty(Nde("div"),"a",{get:function(){return 7}}).a})),Ide=Wfe.String,Rde=Wfe.TypeError,Mde=function(e){if(Pde(e))return e;throw Rde(Ide(e)+" is not an object")},zde=Function.prototype.call,Hde=zde.bind?zde.bind(zde):function(){return zde.apply(zde,arguments)},$de=tde({}.isPrototypeOf),Vde=Wfe.Object,Ude=Sde?function(e){return"symbol"==typeof e}:function(e){var t=hde("Symbol");return dde(t)&&$de(t.prototype,Vde(e))},Zde=Wfe.String,Wde=function(e){try{return Zde(e)}catch(e){return"Object"}},Gde=Wfe.TypeError,qde=function(e){if(dde(e))return e;throw Gde(Wde(e)+" is not a function")},Kde=function(e,t){var n=e[t];return null==n?void 0:qde(n)},Yde=Wfe.TypeError,Xde=Wfe.TypeError,Jde=kde("toPrimitive"),Qde=function(e){var t=function(e,t){if(!Pde(e)||Ude(e))return e;var n,r=Kde(e,Jde);if(r){if(void 0===t&&(t="default"),n=Hde(r,e,t),!Pde(n)||Ude(n))return n;throw Xde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&dde(n=e.toString)&&!Pde(r=Hde(n,e)))return r;if(dde(n=e.valueOf)&&!Pde(r=Hde(n,e)))return r;if("string"!==t&&dde(n=e.toString)&&!Pde(r=Hde(n,e)))return r;throw Yde("Can't convert object to primitive value")}(e,t)}(e,"string");return Ude(t)?t:t+""},epe=Wfe.TypeError,tpe=Object.defineProperty,npe={f:_de?tpe:function(e,t,n){if(Mde(e),t=Qde(t),Mde(n),Lde)try{return tpe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw epe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},rpe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ope=_de?function(e,t,n){return npe.f(e,t,rpe(1,n))}:function(e,t,n){return e[t]=n,e},ipe=tde(Function.toString);dde(Kfe.inspectSource)||(Kfe.inspectSource=function(e){return ipe(e)});var ape,upe,spe,cpe=Kfe.inspectSource,lpe=Wfe.WeakMap,fpe=dde(lpe)&&/native code/.test(cpe(lpe)),dpe=Yfe("keys"),ppe=function(e){return dpe[e]||(dpe[e]=fde(e))},hpe={},vpe=Wfe.TypeError,gpe=Wfe.WeakMap;if(fpe||Kfe.state){var ype=Kfe.state||(Kfe.state=new gpe),mpe=tde(ype.get),bpe=tde(ype.has),wpe=tde(ype.set);ape=function(e,t){if(bpe(ype,e))throw new vpe("Object already initialized");return t.facade=e,wpe(ype,e,t),t},upe=function(e){return mpe(ype,e)||{}},spe=function(e){return bpe(ype,e)}}else{var xpe=ppe("state");hpe[xpe]=!0,ape=function(e,t){if(ude(e,xpe))throw new vpe("Object already initialized");return t.facade=e,ope(e,xpe,t),t},upe=function(e){return ude(e,xpe)?e[xpe]:{}},spe=function(e){return ude(e,xpe)}}var Epe={set:ape,get:upe,has:spe,enforce:function(e){return spe(e)?upe(e):ape(e,{})},getterFor:function(e){return function(t){var n;if(!Pde(t)||(n=upe(t)).type!==e)throw vpe("Incompatible receiver, "+e+" required");return n}}},Spe=Function.prototype,Cpe=_de&&Object.getOwnPropertyDescriptor,Dpe=ude(Spe,"name"),Ope={EXISTS:Dpe,PROPER:Dpe&&"something"===function(){}.name,CONFIGURABLE:Dpe&&(!_de||_de&&Cpe(Spe,"name").configurable)},Ape=$fe((function(e){var t=Ope.CONFIGURABLE,n=Epe.get,r=Epe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;dde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ude(i,"name")||t&&i.name!==f)&&ope(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Wfe?(s?!l&&e[n]&&(c=!0):delete e[n],c?e[n]=i:ope(e,n,i)):c?e[n]=i:qfe(n,i)})(Function.prototype,"toString",(function(){return dde(this)&&n(this).source||cpe(this)}))})),kpe=tde({}.toString),Tpe=tde("".slice),Bpe=function(e){return Tpe(kpe(e),8,-1)},_pe=kde("toStringTag"),Ppe=Wfe.Object,Fpe="Arguments"==Bpe(function(){return arguments}()),jpe=Bde?Bpe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Ppe(e),_pe))?n:Fpe?Bpe(t):"Object"==(r=Bpe(t))&&dde(t.callee)?"Arguments":r},Npe=Bde?{}.toString:function(){return"[object "+jpe(this)+"]"};Bde||Ape(Object.prototype,"toString",Npe,{unsafe:!0});var Lpe,Ipe={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},Rpe=Nde("span").classList,Mpe=Rpe&&Rpe.constructor&&Rpe.constructor.prototype,zpe=Mpe===Object.prototype?void 0:Mpe,Hpe=tde(tde.bind),$pe=Wfe.Object,Vpe=tde("".split),Upe=xde((function(){return!$pe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Bpe(e)?Vpe(e,""):$pe(e)}:$pe,Zpe=Math.ceil,Wpe=Math.floor,Gpe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Wpe:Zpe)(t)},qpe=Math.min,Kpe=function(e){return e>0?qpe(Gpe(e),9007199254740991):0},Ype=function(e){return Kpe(e.length)},Xpe=Array.isArray||function(e){return"Array"==Bpe(e)},Jpe=function(){},Qpe=[],ehe=hde("Reflect","construct"),the=/^\s*(?:class|function)\b/,nhe=tde(the.exec),rhe=!the.exec(Jpe),ohe=function(e){if(!dde(e))return!1;try{return ehe(Jpe,Qpe,e),!0}catch(e){return!1}},ihe=!ehe||xde((function(){var e;return ohe(ohe.call)||!ohe(Object)||!ohe((function(){e=!0}))||e}))?function(e){if(!dde(e))return!1;switch(jpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rhe||!!nhe(the,cpe(e))}:ohe,ahe=kde("species"),uhe=Wfe.Array,she=function(e,t){return new(function(e){var t;return Xpe(e)&&(t=e.constructor,(ihe(t)&&(t===uhe||Xpe(t.prototype))||Pde(t)&&null===(t=t[ahe]))&&(t=void 0)),void 0===t?uhe:t}(e))(0===t?0:t)},che=tde([].push),lhe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,c,l,f){for(var d,p,h=ide(s),v=Upe(h),g=function(e,t){return qde(e),void 0===t?e:Hpe?Hpe(e,t):function(){return e.apply(t,arguments)}}(c,l),y=Ype(v),m=0,b=f||she,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:che(w,d)}else switch(e){case 4:return!1;case 7:che(w,d)}return i?-1:r||o?o:w}},fhe=[lhe(0),lhe(1),lhe(2),lhe(3),lhe(4),lhe(5),lhe(6),lhe(7)][0],dhe=(Lpe=[].forEach)&&xde((function(){Lpe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return fhe(this,e,arguments.length>1?arguments[1]:void 0)},phe=function(e){if(e&&e.forEach!==dhe)try{ope(e,"forEach",dhe)}catch(t){e.forEach=dhe}};for(var hhe in Ipe)Ipe[hhe]&&phe(Wfe[hhe]&&Wfe[hhe].prototype);phe(zpe);var vhe={}.propertyIsEnumerable,ghe=Object.getOwnPropertyDescriptor,yhe={f:ghe&&!vhe.call({1:2},1)?function(e){var t=ghe(this,e);return!!t&&t.enumerable}:vhe},mhe=function(e){return Upe(rde(e))},bhe=Object.getOwnPropertyDescriptor,whe={f:_de?bhe:function(e,t){if(e=mhe(e),t=Qde(t),Lde)try{return bhe(e,t)}catch(e){}if(ude(e,t))return rpe(!Hde(yhe.f,e,t),e[t])}},xhe=Math.max,Ehe=Math.min,She=function(e,t){var n=Gpe(e);return n<0?xhe(n+t,0):Ehe(n,t)},Che=function(e){return function(t,n,r){var o,i=mhe(t),a=Ype(i),u=She(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Dhe=(Che(!0),Che(!1)),Ohe=tde([].push),Ahe=function(e,t){var n,r=mhe(e),o=0,i=[];for(n in r)!ude(hpe,n)&&ude(r,n)&&Ohe(i,n);for(;t.length>o;)ude(r,n=t[o++])&&(~Dhe(i,n)||Ohe(i,n));return i},khe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],The=khe.concat("length","prototype"),Bhe={f:Object.getOwnPropertyNames||function(e){return Ahe(e,The)}},_he={f:Object.getOwnPropertySymbols},Phe=tde([].concat),Fhe=hde("Reflect","ownKeys")||function(e){var t=Bhe.f(Mde(e)),n=_he.f;return n?Phe(t,n(e)):t},jhe=function(e,t){for(var n=Fhe(t),r=npe.f,o=whe.f,i=0;i<n.length;i++){var a=n[i];ude(e,a)||r(e,a,o(t,a))}},Nhe=/#|\.prototype\./,Lhe=function(e,t){var n=Rhe[Ihe(e)];return n==zhe||n!=Mhe&&(dde(t)?xde(t):!!t)},Ihe=Lhe.normalize=function(e){return String(e).replace(Nhe,".").toLowerCase()},Rhe=Lhe.data={},Mhe=Lhe.NATIVE="N",zhe=Lhe.POLYFILL="P",Hhe=Lhe,$he=whe.f,Vhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,c=e.stat;if(n=s?Wfe:c?Wfe[u]||qfe(u,{}):(Wfe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$he(n,r))&&a.value:n[r],!Hhe(s?r:u+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jhe(i,o)}(e.sham||o&&o.sham)&&ope(i,"sham",!0),Ape(n,r,i,e)}},Uhe=Object.keys||function(e){return Ahe(e,khe)},Zhe=Object.assign,Whe=Object.defineProperty,Ghe=tde([].concat),qhe=!Zhe||xde((function(){if(_de&&1!==Zhe({b:1},Zhe(Whe({},"a",{enumerable:!0,get:function(){Whe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Zhe({},e)[n]||Uhe(Zhe({},t)).join("")!=r}))?function(e,t){for(var n=ide(e),r=arguments.length,o=1,i=_he.f,a=yhe.f;r>o;)for(var u,s=Upe(arguments[o++]),c=i?Ghe(Uhe(s),i(s)):Uhe(s),l=c.length,f=0;l>f;)u=c[f++],_de&&!Hde(a,s,u)||(n[u]=s[u]);return n}:Zhe;Vhe({target:"Object",stat:!0,forced:Object.assign!==qhe},{assign:qhe});var Khe=$fe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").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:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[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:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],c=o.util.type(s);"Object"!==c||i[a(s)]?"Array"!==c||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.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'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var c={element:n,language:a,grammar:u,code:n.textContent};function l(e){c.highlightedCode=e,o.hooks.run("before-insert",c),c.element.innerHTML=c.highlightedCode,o.hooks.run("after-highlight",c),o.hooks.run("complete",c),i&&i.call(c.element)}if(o.hooks.run("before-sanity-check",c),(s=c.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!c.code)return o.hooks.run("complete",c),void(i&&i.call(c.element));if(o.hooks.run("before-highlight",c),c.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){l(e.data)},f.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(o.highlight(c.code,c.grammar,c.language));else l(o.util.encode(c.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}for(var x=v.pattern||v,E=r.next,S=s;E!==t.tail&&!(f&&S>=f.reach);S+=E.value.length,E=E.next){var C=E.value;if(t.length>e.length)return;if(!(C instanceof i)){var D,O=1;if(m){if(!(D=a(x,S,e,y)))break;var A=D.index,k=D.index+D[0].length,T=S;for(T+=E.value.length;A>=T;)T+=(E=E.next).value.length;if(S=T-=E.value.length,E.value instanceof i)continue;for(var B=E;B!==t.tail&&(T<k||"string"==typeof B.value);B=B.next)O++,T+=B.value.length;O--,C=e.slice(S,T),D.index-=S}else if(!(D=a(x,0,C,y)))continue;A=D.index;var _=D[0],P=C.slice(0,A),F=C.slice(A+_.length),j=S+C.length;f&&j>f.reach&&(f.reach=j);var N=E.prev;if(P&&(N=c(t,N,P),S+=P.length),l(t,N,O),E=c(t,N,new i(d,g?o.tokenize(_,g):_,b,_)),F&&c(t,E,F),O>1){var L={cause:d+","+h,reach:j};u(e,t,n,E.prev,S,L),f&&L.reach>f.reach&&(f.reach=L.reach)}}}}}}function s(){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 c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function l(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
154
154
|
/**
|
|
155
155
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
156
156
|
*
|
|
@@ -202,4 +202,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
202
202
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
203
203
|
PERFORMANCE OF THIS SOFTWARE.
|
|
204
204
|
***************************************************************************** */
|
|
205
|
-
var Dge=function(){return Dge=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},Dge.apply(this,arguments)};function Oge(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||t-- >0)&&!(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 Age(n){var r=n.defaultContent,o=void 0===r?[]:r,i=n.onCreated,a=n.defaultHtml,u=void 0===a?"":a,s=n.value,c=void 0===s?"":s,l=n.onChange,f=n.defaultConfig,d=void 0===f?{}:f,p=n.mode,h=void 0===p?"default":p,v=n.style,g=void 0===v?{}:v,y=n.className,m=(0,e.useRef)(null),b=Oge((0,e.useState)(null),2),w=b[0],x=b[1],E=Oge((0,e.useState)(""),2),S=E[0],C=E[1],D=function(e){i&&i(e);var t=d.onCreated;t&&t(e)},O=function(e){C(e.getHtml()),l&&l(e);var t=d.onChange;t&&t(e)},A=function(e){var t=d.onDestroyed;x(null),t&&t(e)};return(0,e.useEffect)((function(){if(null!=w&&c!==S)try{w.setHtml(c)}catch(e){console.error(e)}}),[c]),(0,e.useEffect)((function(){var e;if(null!=m.current&&null==w&&!(null===(e=m.current)||void 0===e?void 0:e.getAttribute("data-w-e-textarea"))){var t=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,c="simple"===(void 0===s?"default":s)?yge.simpleEditorConfig:yge.editorConfig,l=gge(gge({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return cP({selector:n,config:gge(gge(gge({},c),u),{hoverbarKeys:l}),content:o,html:i,plugins:yge.plugins})}({selector:m.current,config:Dge(Dge({},d),{onCreated:D,onChange:O,onDestroyed:A}),content:o,html:u||c,mode:h});x(t)}}),[w]),t().createElement("div",{style:g,ref:m,className:y})}function kge(n){var r=n.editor,o=n.defaultConfig,i=void 0===o?{}:o,a=n.mode,u=void 0===a?"default":a,s=n.style,c=void 0===s?{}:s,l=n.className,f=(0,e.useRef)(null);return(0,e.useEffect)((function(){null!=f.current&&null!=r&&function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?yge.simpleToolbarConfig:yge.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return pB(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=jD({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new hP(n,i);return IO.set(a,e),RO.set(e,a),a}(n,{selector:t,config:gge(gge({},u),o)})}({editor:r,selector:f.current,config:i,mode:u})}),[r]),t().createElement("div",{style:c,ref:f,className:l})}var Tge=i(18799),Bge=i(37464),_ge=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:"更多",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:"对齐",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:"缩进",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:"图片",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>',menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:"视频",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"],Pge=i(58543);i(96354),i(98005);function Fge(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 jge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nge(){return Nge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nge.apply(this,arguments)}function Lge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jge(e,t,n[t])}))}return e}function Ige(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Rge(e,t){return 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=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mge=(0,e.forwardRef)((function(r,o){var i=r.style,a=r.toolbarStyle,u=void 0===a?{}:a,s=r.editorStyle,c=void 0===s?{height:"300px",overflowY:"hidden"}:s,l=r.hideErrorDom,f=r.className,d=r.error,p=r.server,h=r.helperText,v=r.required,g=r.labelSign,y=r.label,m=r.labelTooltip,b=r.placeholder,w=void 0===b?"请输入内容":b,x=r.onChange,E=r.onFocus,S=r.onBlur,C=r.onDestroyed,D=r.readOnly,O=void 0!==D&&D,A=r.autoFocus,k=void 0!==A&&A,T=r.max,B=r.in18,_=r.defaultValue,P=r.value,F=r.excludeKeys,j=r.insertKeys,N=r.toolbarKeys,L=void 0===N?_ge:N,I=r.uploadImage,R=void 0===I?{base64LimitSize:5242880,timeout:15e3}:I,M=r.uploadVideo,z=void 0===M?{timeout:15e3}:M,H=Rge((0,e.useState)(null),2),$=H[0],V=H[1],U=Rge((0,e.useState)(""),2),Z=U[0],W=U[1],G=Rge((0,e.useState)(Pge.UUID),2),q=G[0],K=G[1],Y=Rge((0,e.useState)(!1),2),X=Y[0],J=Y[1];(0,e.useEffect)((function(){J(L.length<1)}),[L]);var Q={excludeKeys:F,toolbarKeys:L,insertKeys:j},ee={placeholder:w,onFocus:function(e){E&&E(e)},onBlur:function(e){S&&S(e)},onDestroyed:function(e){C&&C(e)},readOnly:O,autoFocus:k,maxLength:T,MENU_CONF:{uploadImage:Ige(Lge({},R),{server:p}),uploadVideo:Ige(Lge({},z),{server:p})}};(0,e.useEffect)((function(){B&&function(e){sF.changeLanguage(e)}(B),K(Math.random().toString(36).slice(-8))}),[B]),(0,e.useEffect)((function(){void 0!==_&&W(_)}),[]),(0,e.useEffect)((function(){void 0!==P&&W(P)}),[P]);var te=function(){if($)return $.getHtml()},ne=function(){if($)return $.getText()},re=function(){$&&$.clear()},oe=function(e){$&&($.setHtml(e),setTimeout((function(){$.focus(!0)})))},ie=function(){return $};(0,e.useEffect)((function(){return function(){null!=$&&($.destroy(),V(null))}}),[$]),(0,e.useImperativeHandle)(o,(function(){return{getContent:te,getText:ne,clearEditor:re,setContent:oe,getEditor:ie}}));var ae,ue=(0,e.useMemo)((function(){var e;return t().createElement(n.default,Nge({label:y,required:v,labelSign:g},m,{className:(e="text-editor-label",m&&m.className&&(e+=" "+m.className),e)}))}),[y,g,v,m]);return t().createElement("div",{className:(ae=Bge.W+"-text-editor",f&&(ae+=" "+f),ae),style:i},ue,t().createElement("div",{className:"text-editor-content ".concat(X?"preview-mode":"")},t().createElement(kge,{editor:$,defaultConfig:Q,mode:"default",key:q,style:u}),t().createElement(Age,{defaultConfig:ee,value:Z,onCreated:V,onChange:function(e){void 0===r.value&&W(e.getHtml()),x&&x(e.getHtml(),e.getText())},mode:"default",style:c})),t().createElement(Tge.default,{className:"text-editor-error-text",error:d,helperText:h,hideErrorDom:l}))})),zge=Mge}(),a}()}));
|
|
205
|
+
var Dge=function(){return Dge=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},Dge.apply(this,arguments)};function Oge(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||t-- >0)&&!(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 Age(n){var r=n.defaultContent,o=void 0===r?[]:r,i=n.onCreated,a=n.defaultHtml,u=void 0===a?"":a,s=n.value,c=void 0===s?"":s,l=n.onChange,f=n.defaultConfig,d=void 0===f?{}:f,p=n.mode,h=void 0===p?"default":p,v=n.style,g=void 0===v?{}:v,y=n.className,m=(0,e.useRef)(null),b=Oge((0,e.useState)(null),2),w=b[0],x=b[1],E=Oge((0,e.useState)(""),2),S=E[0],C=E[1],D=function(e){i&&i(e);var t=d.onCreated;t&&t(e)},O=function(e){C(e.getHtml()),l&&l(e);var t=d.onChange;t&&t(e)},A=function(e){var t=d.onDestroyed;x(null),t&&t(e)};return(0,e.useEffect)((function(){if(null!=w&&c!==S)try{w.setHtml(c)}catch(e){console.error(e)}}),[c]),(0,e.useEffect)((function(){var e;if(null!=m.current&&null==w&&!(null===(e=m.current)||void 0===e?void 0:e.getAttribute("data-w-e-textarea"))){var t=function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,c="simple"===(void 0===s?"default":s)?yge.simpleEditorConfig:yge.editorConfig,l=gge(gge({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return cP({selector:n,config:gge(gge(gge({},c),u),{hoverbarKeys:l}),content:o,html:i,plugins:yge.plugins})}({selector:m.current,config:Dge(Dge({},d),{onCreated:D,onChange:O,onDestroyed:A}),content:o,html:u||c,mode:h});x(t)}}),[w]),t().createElement("div",{style:g,ref:m,className:y})}function kge(n){var r=n.editor,o=n.defaultConfig,i=void 0===o?{}:o,a=n.mode,u=void 0===a?"default":a,s=n.style,c=void 0===s?{}:s,l=n.className,f=(0,e.useRef)(null);return(0,e.useEffect)((function(){null!=f.current&&null!=r&&function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?yge.simpleToolbarConfig:yge.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return pB(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=jD({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new hP(n,i);return IO.set(a,e),RO.set(e,a),a}(n,{selector:t,config:gge(gge({},u),o)})}({editor:r,selector:f.current,config:i,mode:u})}),[r]),t().createElement("div",{style:c,ref:f,className:l})}var Tge=a(18799),Bge=a(37464),_ge=["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:"更多",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:"对齐",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:"缩进",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:"图片",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>',menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:"视频",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"],Pge=a(65395),Fge=a.n(Pge),jge=function(e,n){var r=t().useContext(Fge()).intlFormat;return n.zh_CN=n.zh,n["zh-CN"]=n.zh,n.en_US=n.en,n["en-US"]=n.en,r&&r(e,n)},Nge={zh:{please:"请输入内容"},en:{please:"Please Enter Contet"}},Lge=a(58543);a(96354),a(98005);function Ige(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 Rge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mge(){return Mge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mge.apply(this,arguments)}function zge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rge(e,t,n[t])}))}return e}function Hge(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function $ge(e,t){return 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=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ige(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ige(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Vge=(0,e.forwardRef)((function(r,o){var i=jge("TextEditor",Nge),a=r.style,u=r.toolbarStyle,s=void 0===u?{}:u,c=r.editorStyle,l=void 0===c?{height:"300px",overflowY:"hidden"}:c,f=r.hideErrorDom,d=r.className,p=r.error,h=r.server,v=r.helperText,g=r.required,y=r.labelSign,m=r.label,b=r.labelTooltip,w=r.placeholder,x=void 0===w?i({id:"please"}):w,E=r.onChange,S=r.onFocus,C=r.onBlur,D=r.onDestroyed,O=r.readOnly,A=void 0!==O&&O,k=r.autoFocus,T=void 0!==k&&k,B=r.max,_=r.in18,P=r.defaultValue,F=r.value,j=r.excludeKeys,N=r.insertKeys,L=r.toolbarKeys,I=void 0===L?_ge:L,R=r.uploadImage,M=void 0===R?{base64LimitSize:5242880,timeout:15e3}:R,z=r.uploadVideo,H=void 0===z?{timeout:15e3}:z,$=$ge((0,e.useState)(null),2),V=$[0],U=$[1],Z=$ge((0,e.useState)(""),2),W=Z[0],G=Z[1],q=$ge((0,e.useState)(Lge.UUID),2),K=q[0],Y=q[1],X=$ge((0,e.useState)(!1),2),J=X[0],Q=X[1];(0,e.useEffect)((function(){Q(I.length<1)}),[I]);var ee={excludeKeys:j,toolbarKeys:I,insertKeys:N},te={placeholder:x,onFocus:function(e){S&&S(e)},onBlur:function(e){C&&C(e)},onDestroyed:function(e){D&&D(e)},readOnly:A,autoFocus:T,maxLength:B,MENU_CONF:{uploadImage:Hge(zge({},M),{server:h}),uploadVideo:Hge(zge({},H),{server:h})}};(0,e.useEffect)((function(){_&&function(e){sF.changeLanguage(e)}(_),Y(Math.random().toString(36).slice(-8))}),[_]),(0,e.useEffect)((function(){void 0!==P&&G(P)}),[]),(0,e.useEffect)((function(){void 0!==F&&G(F)}),[F]);var ne=function(){if(V)return V.getHtml()},re=function(){if(V)return V.getText()},oe=function(){V&&V.clear()},ie=function(e){V&&(V.setHtml(e),setTimeout((function(){V.focus(!0)})))},ae=function(){return V};(0,e.useEffect)((function(){return function(){null!=V&&(V.destroy(),U(null))}}),[V]),(0,e.useImperativeHandle)(o,(function(){return{getContent:ne,getText:re,clearEditor:oe,setContent:ie,getEditor:ae}}));var ue,se=(0,e.useMemo)((function(){var e;return t().createElement(n.default,Mge({label:m,required:g,labelSign:y},b,{className:(e="text-editor-label",b&&b.className&&(e+=" "+b.className),e)}))}),[m,y,g,b]);return t().createElement("div",{className:(ue=Bge.W+"-text-editor",d&&(ue+=" "+d),ue),style:a},se,t().createElement("div",{className:"text-editor-content ".concat(J?"preview-mode":"")},t().createElement(kge,{editor:V,defaultConfig:ee,mode:"default",key:K,style:s}),t().createElement(Age,{defaultConfig:te,value:W,onCreated:U,onChange:function(e){void 0===r.value&&G(e.getHtml()),E&&E(e.getHtml(),e.getText())},mode:"default",style:l})),t().createElement(Tge.default,{className:"text-editor-error-text",error:p,helperText:v,hideErrorDom:f}))})),Uge=Vge}(),u}()}));
|