/*! For license information please see app.2afa311a.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[3524],{85926:(t,e,n)=>{var i={"./about-us_controller.js":38803,"./admin-career_controller.js":30839,"./admin-co-brand_controller.js":57071,"./admin-news_controller.js":78200,"./base_controller.js":88392,"./careers_controller.js":47292,"./carousel_controller.js":95833,"./chart-base_controller.js":70613,"./chart-vue_controller.js":79422,"./chart_controller.js":31341,"./cms_controller.js":2298,"./coin50_controller.js":10959,"./common_controller.js":5484,"./components_controller.js":92443,"./conference_controller.js":75741,"./config.js":68086,"./content_controller.js":28098,"./delete-profile_controller.js":54374,"./digitalassetsfaq_controller.js":84170,"./dissemination_controller.js":27386,"./documents_controller.js":38419,"./factsheets_controller.js":96857,"./file_controller.js":30813,"./gdp_controller.js":95894,"./header_controller.js":91004,"./home-top-performers_controller.js":18464,"./index-details_controller.js":63604,"./index-family_controller.js":25570,"./index-guide_controller.js":49450,"./index-performance-results_controller.js":82885,"./index-performance_controller.js":62724,"./index-review-cms_controller.js":71230,"./index-statistics_controller.js":8131,"./index_controller.js":60457,"./indexreview_controller.js":61845,"./library_controller.js":65184,"./licensed-product_controller.js":94658,"./login_controller.js":22878,"./news_controller.js":36526,"./periodicreviews_controller.js":8499,"./profile-fundamentals_controller.js":46755,"./profile_controller.js":14170,"./register_controller.js":84896,"./search_controller.js":54815,"./sortable_controller.js":73803,"./tools_controller.js":51956,"./user_controller.js":25422,"./vue_controller.js":9873};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=85926},3066:(t,e,n)=>{"use strict";e.E=function(t){var e=r.Application.start();t&&e.load((0,o.definitionsFromContext)(t));var n=function(t){if(!a.default.hasOwnProperty(t))return"continue";a.default[t].then((function(n){e.register(t,n.default)}))};for(var i in a.default)n(i);return e};var i,r=n(76234),o=n(23901),a=(i=n(35828))&&i.__esModule?i:{default:i}},35828:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>i});const i={}},38803:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(1159).then(n.bind(n,31159)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},30839:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(33847),o=n.n(r);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){o().create(document.querySelector(".editor"),{ckfinder:{uploadUrl:"/cms/upload/image"}})}}])&&s(n.prototype,i),r&&s(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(i.Controller)},57071:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(2633).then(n.bind(n,92633)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},78200:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});n(52675),n(89463),n(2259),n(45700),n(50113),n(51629),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(23500),n(62953);var i=n(76234),r=n(33205),o=n(33847),a=n.n(o),s=(n(82610),n(9798)),l=n.n(s),c=n(74692);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}function f(t,e,n){return e=g(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],g(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){var t=c(location).attr("href").split("/"),e=t[t.length-3],n=this.data.get("max-file-size");"new"!=e&&c("#news_file").removeAttr("required"),c.fn.enableDatePicker=function(t){var e=c(this),n=e.find("select[name*='day'] option:selected"),i=e.find("select[name*='month'] option:selected"),r=e.find("select[name*='year'] option:selected"),o={onSelect:function(t,e){n.val(e.selectedDay),i.val(e.selectedMonth+1),r.val(e.selectedYear)}},a=c.extend({},o,t);e.datepicker(a),e.datepicker("setDate",i.val()+"/"+n.val()+"/"+r.val()),e.find("select").hide()},c("#news_publishDateTime_date").enableDatePicker({}),c(".fileUploadValidation").change((function(t){var e=c(this).attr("id");(0,r.k)(e,n)})),a().create(document.querySelector(".editor"),{ckfinder:{uploadUrl:"/cms/upload/image"}}).then((function(t){i(t)})).catch((function(t){null!==document.querySelector(".editor")&&console.error(t)}));var i=function(t){document.querySelectorAll(".news-btn").forEach((function(e){e.addEventListener("click",(function(e){document.getElementById("news_content").value=t.getData()}))}))};c(".news-featured-label").parent(".checkbox").addClass("btn btn-default"),new(l())("#news_tagIndexes",{searchable:!0})}}])&&d(n.prototype,i),o&&d(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.Controller)},88392:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(1744),n.e(8668)]).then(n.bind(n,48668)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},47292:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(27495),n(47764),n(5746),n(62953),n(76031),n(48408);var i=n(76234),r=n(74692),o=n.n(r),a=(n(16930),n(74692));function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}function u(t,e,n){return e=h(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){o()(window).on("load",(function(){var t=new URLSearchParams(window.location.search).get("role");if(null!==t){var e=o()("#".concat(t));e.addClass("active"),o()("#".concat(t," .slide")).removeClass("js-slide-hidden"),o()("html, body").animate({scrollTop:e.offset().top-90},"fast")}})),o()(".details-holder").click((function(){setTimeout((function(){new SmoothScroll({anchorLinks:".side-nav a",extraOffset:100,activeClasses:"link",wheelBehavior:"none"}),ResponsiveHelper.addRange({"1024..":{on:function(){a("#sidebar").stickyScrollBlock({setBoxHeight:!0,activeClass:"fixed-position",container:".info-details-section",positionType:"fixed",extraTop:function(){var t=100;return a("0").each((function(){t+=a(this).outerHeight()})),t},extraBottom:30})},off:function(){a("#sidebar").stickyScrollBlock("destroy")}}})}),500)}))}}])&&l(n.prototype,i),r&&l(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(i.Controller)},95833:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(2068),n.e(6917)]).then(n.bind(n,86917)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},70613:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(4783),n.e(7151)]).then(n.bind(n,77151)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},79422:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(6804),n.e(5471),n.e(3575),n.e(1262)]).then(n.bind(n,60138)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},31341:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(4783),n.e(9369)]).then(n.bind(n,59369)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},2298:(t,e,n)=>{"use strict";n.r(e);n(76234),n(75111)},10959:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(5651).then(n.bind(n,95651)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},5484:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(4608).then(n.bind(n,44608)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},92443:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(31321),o=n(74692);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){o(document).ready((function(){o(".paginationSelector").change((function(){var t=o(this).children(":selected").attr("value"),e=o(this).attr("data-url"),n=o(this).attr("data-per-page-param-name"),i=(0,r.m)(e);i.query[n]=t,e=(0,r.Z)(i),window.location.href=e}))}))}}])&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.Controller)},75741:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(960),n.e(4545)]).then(n.bind(n,84545)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},68086:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BOND:()=>P,BOND_INDEX_TYPE:()=>_,COIN50_INDEX_SYMBOL:()=>B,DATE_FORMAT:()=>x,DATE_TIME_LABEL_FORMATS:()=>D,DESKTOP_LIMIT:()=>O,EXTENDED_CHART_DEFAULT_RANGE:()=>m,EXTENDED_CHART_DEFAULT_TYPE:()=>v,GOOGLE_PROXY_URL:()=>y,HOSTS:()=>w,ONE_DAY:()=>A,PHONE_LIMIT:()=>M,PHONE_WIDTH:()=>S,ROUTE_AUTH_CHECK:()=>r,ROUTE_CHARTING_INFO:()=>f,ROUTE_COIN50:()=>N,ROUTE_DIGITAL_ASSETS_FAQ:()=>u,ROUTE_FULL_TEXT:()=>a,ROUTE_HOMEPAGE:()=>c,ROUTE_INDEX_INFO:()=>p,ROUTE_LOGIN:()=>i,ROUTE_LOGIN_CHECK:()=>s,ROUTE_RECAPTCHA_CHECK:()=>h,ROUTE_RESET_PASS_CONFIRM:()=>l,ROUTE_SEARCH_ALL:()=>o,ROUTE_SEARCH_COMPONENTS:()=>b,ROUTE_SEARCH_INDEX:()=>k,ROUTE_SHOW_PROFILE:()=>d,SITE_KEY:()=>g,STATISTICS:()=>C,TOKEN_UNIVERSE:()=>E,USER:()=>L,XS_PHONE_LIMIT:()=>I,XS_PHONE_WIDTH:()=>T});var i="/userlogin",r="/user/auth",o="/search/all",a="/search/fulltext?search_full_text[term]=",s="/login_check",l="/user/reset-password/confirm",c="/",u="/digitalassetsfaq",d="/user/profile",h="/check/recaptcha",f="/charting/info.json",p="/indexdetails/indexinfo.json",g="6LcKuzohAAAAALm97Ucabk14GtiLuoXbW4Lp6uDW",m="1Y",v="Line",b="/data/components",k="/search",y="https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy",w=["www.mvis-indices.com","rc.mvis-indices.com","dev-new.mvis-indices.com","test-new.mvis-indices.com"],_="Bond",A="1D",C="statistics",x="{value:%d %b, %y}",D={second:["%A, %d %b, %H:%M:%S","%A, %d %b, %H:%M:%S","-%H:%M:%S"],minute:["%A, %d %b, %H:%M","%A, %d %b, %H:%M","-%H:%M"],hour:["%A, %d %b, %H:%M","%A, %d %b, %H:%M","-%H:%M"],day:["%A, %d %b %y","%A, %d %b","-%A, %d %b %y"]},E="Token Universe",S=550,T=350,I=3,M=5,O=10,P="bond",N="/coin50",B="COIN50",L="/cms/user/"},28098:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(33847),o=n.n(r);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){o().create(document.querySelector(".editor"),{htmlSupport:{allow:[{name:/.*/,attributes:!0,classes:!0,styles:!0}]},ckfinder:{uploadUrl:"/cms/upload/image"}}).catch((function(t){console.error(t)}))}}])&&s(n.prototype,i),r&&s(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(i.Controller)},54374:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(5562).then(n.bind(n,35562)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},84170:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(6190).then(n.bind(n,86190)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},27386:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(9782).then(n.bind(n,89782)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},38419:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(5839).then(n.bind(n,65839)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},96857:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(74692);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function l(t,e,n){return e=u(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){r(".template_select_box").change((function(){window.location.href=r(this).children(":selected").attr("data-url")}))}}])&&a(n.prototype,i),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.Controller)},30813:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(33205),o=n(74692);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){var t=this.data.get("max-file-size");o(".fileUploadValidation").change((function(e){var n=o(this).attr("id");(0,r.k)(n,t)}))}}])&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.Controller)},95894:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(4783),n.e(1744),n.e(9130)]).then(n.bind(n,99130)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},91004:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(4783),n.e(1744),n.e(1872),n.e(7216)]).then(n.bind(n,27216)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},18464:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(1940).then(n.bind(n,31940)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},63604:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953),n(76031);var i=n(76234),r=n(74486),o=n(74692),a=n.n(o),s=(n(68775),n(77322),n(74692));function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function u(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}function d(t,e,n){return e=f(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var g=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){new r.A(a()("#index_country_weighting_table")),new r.A(a()("#index_sector_weighting_table")),new r.A(a()("#index_details_best_component")),new r.A(a()("#index_details_worst_component")),new r.A(a()("#index_details_index_performance")),new r.A(a()("#index_details_index_records")),new r.A(a()("#currency-weightings-table")),a()(".details-holder").click((function(){setTimeout((function(){new SmoothScroll({anchorLinks:".side-nav a",extraOffset:100,activeClasses:"link",wheelBehavior:"none"}),ResponsiveHelper.addRange({"1024..":{on:function(){s("#sidebar").stickyScrollBlock({setBoxHeight:!0,activeClass:"fixed-position",container:".info-details-section",positionType:"fixed",extraTop:function(){var t=100;return s("0").each((function(){t+=s(this).outerHeight()})),t},extraBottom:30})},off:function(){s("#sidebar").stickyScrollBlock("destroy")}}})}),500)}));var t=window.location.hash;t&&setTimeout((function(){var e=document.querySelector(t);if(e){var n=e.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:n,behavior:"smooth"})}}),100)}}])&&c(n.prototype,i),o&&c(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.Controller)},25570:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(214).then(n.bind(n,80214)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},49450:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(4446).then(n.bind(n,54446)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},82885:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(74486),o=n(74692),a=n.n(o);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}function u(t,e,n){return e=h(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){new r.A(a()("#indexperformance_table"))}}])&&l(n.prototype,i),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.Controller)},62724:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(5720).then(n.bind(n,75720)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},71230:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(1770).then(n.bind(n,1770)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},8131:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(5471),n.e(8772)]).then(n.bind(n,68772)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},60457:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(9221).then(n.bind(n,89221)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},61845:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>g});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(74486),o=n(74692),a=n.n(o),s=n(33205);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function u(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}function d(t,e,n){return e=f(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var g=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){var t=this.data.get("max-file-size");new r.A(a()("#indexreview_table")),a()(".template_select_box").change((function(){window.location.href=a()(this).children(":selected").attr("data-url")})),a()(".fileUploadValidation").change((function(e){var n=a()(this).attr("id");(0,s.k)(n,t)}))}}])&&c(n.prototype,i),o&&c(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.Controller)},65184:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(3148).then(n.bind(n,53148)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},94658:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(78459),n(60825),n(47764),n(62953);var i=n(76234),r=n(74486),o=n(74692),a=n.n(o);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}function u(t,e,n){return e=h(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){new r.A(a()("#licensedproduct_table"),{descending:!0,compare:function(t,e,n){return((parseFloat(a()(t).data("value"))||0)-(parseFloat(a()(e).data("value"))||0))*("asc"===n?1:-1)}})}}])&&l(n.prototype,i),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.Controller)},22878:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(2370).then(n.bind(n,22370)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},36526:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(2722).then(n.bind(n,12722)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},8499:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(74486),o=n(74692);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,i=[{key:"connect",value:function(){o(".showReview").on("click",(function(t){return t.preventDefault(),"+"==o(this).text()?o(this).text("-"):o(this).text("+"),o(".reviewContent_"+o(this).attr("id")).toggle(),new r.A(o("#monthlyReviewTbl_"+o(this).attr("id"))),!1}))}}],i&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.Controller)},46755:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(2847).then(n.bind(n,82847)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},14170:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(6990).then(n.bind(n,6990)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},84896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(9564).then(n.bind(n,99564)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},54815:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(74692);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function l(t,e,n){return e=u(e),function(t,e){if(e&&("object"==o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){r(document).ready((function(){r("#form_term").autocomplete({source:"/Search/Index",minLength:3,delay:200,select:function(t,e){window.location=e.item.url}})}))}}])&&a(n.prototype,i),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(i.Controller)},73803:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||n.e(535).then(n.bind(n,80535)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},51956:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});n(52675),n(89463),n(2259),n(45700),n(23792),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(60825),n(47764),n(62953);var i=n(76234),r=n(71514),o=(n(20097),n(74692));function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=d(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){o("#search_component_term").autocomplete({source:r.eU,minLength:3,delay:200,select:function(t,e){window.location=e.item.url}}),o("#search_index_term").autocomplete({source:r.Wm,minLength:3,delay:200,select:function(t,e){window.location=e.item.url}}),o(".reset").on("click",(function(){window.location.href=window.location.pathname}))}}])&&s(n.prototype,i),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.Controller)},25422:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>p});n(52675),n(89463),n(2259),n(45700),n(2008),n(25276),n(23792),n(62062),n(89572),n(94170),n(2892),n(59904),n(84185),n(40875),n(10287),n(26099),n(58940),n(3362),n(60825),n(47764),n(62953);var i=n(76234),r=n(71514),o=n(89854),a=n(74692);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}function u(t,e,n){return e=h(e),function(t,e){if(e&&("object"==s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(i=[{key:"connect",value:function(){a('[data-toggle="tooltip"]').tooltip();var t=["delete","activate","lock","unlock","confirm"],e=a("[data-user-action]"),n=a("[data-user-checked-action]"),i=a("#toggleNewsCheck"),s=a('input[type="checkbox"][name="user"]');i.on("click",(function(){s.prop("checked",i.prop("checked")),c()})),s.on("click",(function(){!a(this).prop("checked")&&i.prop("checked")&&i.prop("checked",!1),c()}));var l=function(){return s.filter((function(){return a(this).prop("checked")}))},c=function(){n.toggleClass("disabled",0===l().length)};function u(t,e){return new Promise((function(n,i){a.ajax({method:"POST",url:r.m3+t+"/"+e+"/",success:function(){n()},error:function(){i(o.ff)}})}))}var d=function(t){return function(){"confirm"!==t&&location.reload()}},h=function(t){window.alert(o.ff)};n.on("click",(function(){var e,n=l(),i=a(this).data("user-checked-action"),r=[];0!==n.length&&-1!==t.indexOf(i)&&(e=l().map((function(){return parseInt(a(this).closest("tr[data-id]").data("id"),10)})),window.confirm("Are you sure want to ".concat(i,"?"))&&(e.each((function(t,e){return r.push(u(i,e))})),Promise.all(r).then(d(i),h)))})),e.on("click",(function(e){var n=parseInt(a(this).closest("tr[data-id]").data("id"),10),i=a(this).data("user-action");e.preventDefault(),-1!==t.indexOf(i)&&window.confirm("Are you sure want to ".concat(i,"?"))&&u(i,n).then(d(i),h)}))}}])&&l(n.prototype,i),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(i.Controller)},9873:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(76234);const r=function(){function t(t){this.__stimulusLazyController=!0,i.Controller.call(this,t)}return t.prototype=Object.create(i.Controller&&i.Controller.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.setPrototypeOf(t,i.Controller),t.prototype.initialize=function(){var t=this;this.application.controllers.find((function(e){return e.identifier===t.identifier&&e.__stimulusLazyController}))||Promise.all([n.e(5471),n.e(1085)]).then(n.bind(n,41085)).then((function(e){t.application.register(t.identifier,e.default)}))},t}()},20520:(t,e,n)=>{"use strict";(0,n(3066).E)(n(85926))},71514:(t,e,n)=>{"use strict";n.d(e,{$6:()=>E,$m:()=>s,CZ:()=>v,Cx:()=>f,DX:()=>k,Ez:()=>D,Gk:()=>u,Gy:()=>_,If:()=>i,Lu:()=>h,MD:()=>w,Tn:()=>y,Wm:()=>g,ZR:()=>x,ZS:()=>l,al:()=>r,eU:()=>p,fW:()=>A,gS:()=>b,iO:()=>m,kJ:()=>a,m3:()=>T,pB:()=>c,rS:()=>C,tX:()=>S,wB:()=>d,xn:()=>o});var i="/userlogin",r="/user/auth",o="/search/all",a="/search/fulltext?search_full_text[term]=",s="/login_check",l="/user/reset-password/confirm",c="/",u="/user/profile",d="/charting/info.json",h="1Y",f="Line",p="/data/components",g="/search",m="Bond",v="1D",b="statistics",k="{value:%d %b, %y}",y={second:["%A, %d %b, %H:%M:%S","%A, %d %b, %H:%M:%S","-%H:%M:%S"],minute:["%A, %d %b, %H:%M","%A, %d %b, %H:%M","-%H:%M"],hour:["%A, %d %b, %H:%M","%A, %d %b, %H:%M","-%H:%M"],day:["%A, %d %b %y","%A, %d %b","-%A, %d %b %y"]},w=550,_=350,A=3,C=5,x=10,D="bond",E="/coin50",S="COIN50",T="/cms/user/"},33847:(t,e,n)=>{var i,r,o,a,s;function l(){l=function(t,e){return new n(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function n(t,i,r){var o=RegExp(t,i);return e.set(o,r||e.get(t)),S(o,n.prototype)}function i(t,n){var i=e.get(n);return Object.keys(i).reduce((function(e,n){var r=i[n];if("number"==typeof r)e[n]=t[r];else{for(var o=0;void 0===t[r[o]]&&o+1<r.length;)o++;e[n]=t[r[o]]}return e}),Object.create(null))}return C(n,RegExp),n.prototype.exec=function(e){var n=t.exec.call(this,e);if(n){n.groups=i(n,this);var r=n.indices;r&&(r.groups=i(r,this))}return n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var o=e.get(this);return t[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(t,e){var n=o[e];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof r){var a=this;return t[Symbol.replace].call(this,n,(function(){var t=arguments;return"object"!=N(t[t.length-1])&&(t=[].slice.call(t)).push(i(t,a)),r.apply(this,t)}))}return t[Symbol.replace].call(this,n,r)},l.apply(this,arguments)}function c(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,r)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){c(o,i,r,a,s,"next",t)}function s(t){c(o,i,r,a,s,"throw",t)}a(void 0)}))}}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=O(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e,n,i){var r=g(T(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof r?function(t){return r.apply(n,t)}:r}function g(){return g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=T(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},g.apply(null,arguments)}function m(){"use strict";m=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),s=new M(i||[]);return r(a,"_invoke",{value:E(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",v={};function b(){}function k(){}function y(){}var w={};c(w,a,(function(){return this}));var _=Object.getPrototypeOf,A=_&&_(_(O([])));A&&A!==n&&i.call(A,a)&&(w=A);var C=y.prototype=b.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function n(r,o,a,s){var l=d(t[r],t,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==N(u)&&i.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function E(e,n,i){var r=h;return function(o,a){if(r===p)throw Error("Generator is already running");if(r===g){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var l=S(s,i);if(l){if(l===v)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var c=d(e,n,i);if("normal"===c.type){if(r=i.done?g:f,c.arg===v)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=g,i.method="throw",i.arg=c.arg)}}}function S(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function O(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(N(e)+" is not iterable")}return k.prototype=y,r(C,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:k,configurable:!0}),k.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,l,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},x(D.prototype),c(D.prototype,s,(function(){return this})),e.AsyncIterator=D,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new D(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=O,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;I(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:O(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),v}},e}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=y(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function k(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){if(t){if("string"==typeof t)return w(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function _(t,e,n){return e=T(e),function(t,e){if(e&&("object"==N(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return A(t)}(t,E()?Reflect.construct(e,n||[],T(t).constructor):e.apply(t,n))}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function C(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}function x(t){var e="function"==typeof Map?new Map:void 0;return x=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return D(t,arguments,T(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),S(n,t)},x(t)}function D(t,e,n){if(E())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&S(r,n.prototype),r}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function I(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,O(i.key),i)}}function M(t,e,n){return e&&I(t.prototype,e),n&&I(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function O(t){var e=function(t,e){if("object"!=N(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=N(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==N(e)?e:e+""}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}t=n.nmd(t),n(52675),n(89463),n(66412),n(2259),n(83237),n(45700),n(78125),n(28706),n(88431),n(33771),n(2008),n(50113),n(48980),n(46449),n(51629),n(23418),n(74423),n(25276),n(64346),n(23792),n(48598),n(8921),n(62062),n(72712),n(94490),n(34782),n(15086),n(26910),n(54554),n(93514),n(54743),n(11745),n(38309),n(59089),n(60739),n(89572),n(23288),n(94170),n(62010),n(4731),n(36033),n(60479),n(2892),n(40150),n(25843),n(69085),n(59904),n(67945),n(84185),n(5506),n(53921),n(83851),n(81278),n(1480),n(40875),n(79432),n(10287),n(26099),n(78459),n(58940),n(3362),n(60825),n(40888),n(84864),n(27495),n(38781),n(31415),n(99449),n(21699),n(47764),n(71761),n(42781),n(25440),n(5746),n(90744),n(11392),n(42762),n(89907),n(21489),n(81630),n(72170),n(75044),n(69539),n(31694),n(89955),n(33206),n(44496),n(66651),n(12887),n(19369),n(66812),n(8995),n(31575),n(36072),n(88747),n(28845),n(29423),n(57301),n(373),n(86614),n(41405),n(33684),n(73772),n(30958),n(62480),n(38344),n(23500),n(62953),n(76031),n(3296),n(27208),n(48408),a=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(s=a.en=a.en||{}).dictionary=Object.assign(s.dictionary||{},{"%0 of %1":"%0 of %1","Align center":"Align center","Align left":"Align left","Align right":"Align right",Aquamarine:"Aquamarine",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Break text":"Break text","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image",Green:"Green",Grey:"Grey","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","HTML object":"HTML object","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic",Justify:"Justify","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Source:"Source","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Strikethrough:"Strikethrough",Subscript:"Subscript",Superscript:"Superscript","Table toolbar":"Table toolbar","Text alignment":"Text alignment","Text alignment toolbar":"Text alignment toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on",Turquoise:"Turquoise",Underline:"Underline",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar","Wrap text":"Wrap text",Yellow:"Yellow"}),function(n,a){"object"==N(e)&&"object"==N(t)?t.exports=a():(r=[],void 0===(o="function"==typeof(i=a)?i.apply(e,r):i)||(t.exports=o))}(self,(function(){return function(){"use strict";var i={3062:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);var s=a},903:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CCzBF,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t// Horizontal drop target (between blocks).\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 0;\n\t\tmargin: 0;\n\t\ttext-align: initial;\n\n\t\t& .ck-clipboard-drop-target__line {\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\theight: 0;\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-top: -1px;\n\n\t\t\t&::before {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\t*/\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n'],sourceRoot:""}]);var s=a},3143:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},4717:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);var s=a},9315:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);var s=a},8733:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);var s=a},5049:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}","",{version:3,sources:["webpack://./../ckeditor5-html-support/theme/datafilter.css"],names:[],mappings:"AAKA,MACC,kDACD,CAEA,6BAEC,gDAAiD,CADjD,kCAAmC,CAKnC,iDAAkD,CAHlD,+BAAgC,CAEhC,oEAgCD,CA7BC,kEACC,wGACD,CAEA,oCAOC,eAA4B,CAG5B,iEAAkE,CAClE,qCAAsC,CAPtC,0CAA2C,CAS3C,+BAAgC,CADhC,kCAAmC,CAVnC,iBAAkB,CADlB,eAAmB,CAKnB,+BAAgC,CAGhC,yIAA0I,CAN1I,iBAAkB,CAElB,KAAM,CAGN,0GAMD,CAGA,2HACC,gBACD,CAEA,yDAEC,mBACD,CAGD,gCACC,eACD,CAEA,iCACC,oBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\tpadding: var(--ck-spacing-small);\n\t/* Leave space for label */\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n\tmin-width: calc(76px + var(--ck-spacing-standard));\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t&::before {\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tposition: absolute;\n\t\tcontent: attr(data-html-object-embed-label);\n\t\ttop: 0;\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t/* Make space for label. */\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t& .html-object-embed__content {\n\t\t/* Disable user interaction with embed content */\n\t\tpointer-events: none;\n\t}\n}\n\ndiv.ck-widget.html-object-embed {\n\tmargin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n\tdisplay: inline-block;\n}\n\n"],sourceRoot:""}]);var s=a},3508:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of <figcaption>.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\n\t/*\n\t * Make sure the selected inline image always stays on top of its siblings.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t */\n\t& .image.ck-widget_selected {\n\t\tz-index: 1;\n\t}\n\n\t& .image-inline.ck-widget_selected {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the native browser selection style is not displayed.\n\t\t * Inline image widgets have their own styles for the selected state and\n\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t */\n\t\t& ::selection {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},2640:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);var s=a},5083:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var s=a},4036:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);var s=a},3773:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);var s=a},3689:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto   { opacity: 1; }\n}\n"],sourceRoot:""}]);var s=a},1905:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},9773:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);var s=a},2347:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},7754:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},4652:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);var s=a},7442:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n   https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n   https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},9292:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},2896:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck-source-editing-area{overflow:hidden;position:relative}.ck-source-editing-area textarea,.ck-source-editing-area:after{border:1px solid transparent;font-family:monospace;font-size:var(--ck-font-size-normal);line-height:var(--ck-line-height-base);margin:0;padding:var(--ck-spacing-large);white-space:pre-wrap}.ck-source-editing-area:after{content:attr(data-value) " ";display:block;visibility:hidden}.ck-source-editing-area textarea{border-color:var(--ck-color-base-border);border-radius:0;box-sizing:border-box;height:100%;outline:none;overflow:hidden;position:absolute;resize:none;width:100%}.ck-rounded-corners .ck-source-editing-area textarea,.ck-source-editing-area textarea.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck-source-editing-area textarea:not([readonly]):focus{border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}',"",{version:3,sources:["webpack://./../ckeditor5-source-editing/theme/sourceediting.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,wBAEC,eAAgB,CADhB,iBAED,CAEA,+DAIC,4BAA6B,CAG7B,qBAAsB,CADtB,oCAAqC,CADrC,sCAAuC,CAFvC,QAAS,CADT,+BAAgC,CAMhC,oBACD,CAEA,8BACC,4BAA6B,CAE7B,aAAc,CADd,iBAED,CAEA,iCASC,wCAAyC,CC7BzC,eAAgB,CD2BhB,qBAAsB,CAJtB,WAAY,CAEZ,YAAa,CACb,eAAgB,CALhB,iBAAkB,CAGlB,WAAY,CAFZ,UAkBD,CApBA,yGChBE,qCAAsC,CD4BtC,wBAAyB,CACzB,yBAOF,CAJC,uDEpCA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFwCA",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck-source-editing-area {\n\tposition: relative;\n\toverflow: hidden;\n}\n\n.ck-source-editing-area::after,\n.ck-source-editing-area textarea {\n\tpadding: var(--ck-spacing-large);\n\tmargin: 0;\n\tborder: 1px solid transparent;\n\tline-height: var(--ck-line-height-base);\n\tfont-size: var(--ck-font-size-normal);\n\tfont-family: monospace;\n\twhite-space: pre-wrap;\n}\n\n.ck-source-editing-area::after {\n\tcontent: attr(data-value) " ";\n\tvisibility: hidden;\n\tdisplay: block;\n}\n\n.ck-source-editing-area textarea {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tresize: none;\n\toutline: none;\n\toverflow: hidden;\n\tbox-sizing: border-box;\n\n\tborder-color: var(--ck-color-base-border);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not([readonly]):focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},1613:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);outline:none;width:var(--ck-insert-table-dropdown-box-width)}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,qCACC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAHlB,iDAAkD,CAClD,iDAAkD,CAGlD,YAAa,CALb,+CAWD,CAJC,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\twidth: var(--ck-insert-table-dropdown-box-width);\n\theight: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);var s=a},6306:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);var s=a},3881:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-table-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,6DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var s=a},6945:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var s=a},4906:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text)  {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);var s=a},5332:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton:active{background:transparent}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAGC,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDC3BA,eDmEA,CAxCA,yICvBC,qCD+DD,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2EC/CD,eD0DC,CAXA,6LC3CA,qCAAsC,CD6CpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEvEA,kCFyEA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAIA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF,CAKF,gFACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Regular buttons get a backgound when active. Switch buttons announce that through the switch toggle instead */\n\t&:active, &.ck-on:active {\n\t\tbackground: transparent;\n\t}\n\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);var s=a},6781:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);var s=a},5485:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\t\t\t\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},3949:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},7686:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CASA,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCC7EA,eDuFA,CAVA,qHCzEC,qCDmFD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},7339:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);var s=a},9688:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},8847:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);var s=a},6574:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAY1B,qBAcD,CAZC,0BARA,aAAc,CAGd,cAgBA,CAJC,yBAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\tcolor: inherit;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\n\t\t/* Allows dynamic coloring of the icons. */\n\t\tcolor: inherit;\n\n\t\t&:not([fill]) {\n\t\t\t/* Needed by FF. */\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},4879:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},3662:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);var s=a},2577:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,yEACD,CAEA,0BCHC,eD4GD,CAzGA,2FCCE,qCDwGF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,wFAYF,CAfA,oUAOE,iGAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-spacing-medium), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},1046:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t   because e.g. different heading styles may have different height\n\t\t   https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},8793:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},4650:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);var s=a},7676:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},5868:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},6764:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},9695:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);var s=a},5542:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDuFD,CA1FA,qECOE,qCDmFF,CA1FA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAsFD,CAnFC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CApFF,qCAwFE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},3332:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDPnC,mBAAoB,CAEpB,qCACD,CCMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAbD,gCAgBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);var s=a},4793:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CCnGhE,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJmGD,CI7FA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);var s=a},3488:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t   * background-color for the .ck-widget_selected state change,\n\t\t   * visibility for hiding the handler,\n\t\t   * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},8506:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);var s=a},4921:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(1799),r=n.n(i),o=n(2609),a=n.n(o)()(r());a.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);var s=a},2609:function(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},1799:function(t){function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(t){var n=e(t,4),i=n[1],r=n[3];if(!r)return i;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),s="/*# ".concat(a," */"),l=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}},6062:function(t,e,n){var i,r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function a(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},i=[],r=0;r<t.length;r++){var s=t[r],l=e.base?s[0]+e.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=a(u),h={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(h)):o.push({identifier:u,updater:g(h,e),references:1}),i.push(u)}return i}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.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(e)}return e}var c,u=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function d(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=u(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,p=0;function g(t,e){var n,i,r;if(e.singleton){var o=p++;n=f||(f=l(e)),i=d.bind(null,n,o,!1),r=d.bind(null,n,o,!0)}else n=l(e),i=h.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i));var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=a(n[i]);o[r].references--}for(var l=s(t,e),c=0;c<n.length;c++){var u=a(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=l}}}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,exports:{}};return i[t](n,n.exports,o),n.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":N(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==("undefined"==typeof window?"undefined":N(window)))return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.nc=void 0;var a={};return function(){var i=m().mark(Ol),r=m().mark(Pl),s=m().mark(Uh),c=m().mark(Fw);o.d(a,{default:function(){return Vw}});var d=M((function t(e,n){P(this,t),this.source=e,this.name=n,this.path=[],this.stop=function t(){t.called=!0},this.off=function t(){t.called=!0}})),g=new Array(256).fill("").map((function(t,e){return("0"+e.toString(16)).slice(-2)}));function y(){var t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+g[255&t]+g[t>>8&255]+g[t>>16&255]+g[t>>24&255]+g[255&e]+g[e>>8&255]+g[e>>16&255]+g[e>>24&255]+g[255&n]+g[n>>8&255]+g[n>>16&255]+g[n>>24&255]+g[255&i]+g[i>>8&255]+g[i>>16&255]+g[i>>24&255]}var w={get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function E(t,e){for(var n=w.get(e.priority),i=0;i<t.length;i++)if(w.get(t[i].priority)<n)return void t.splice(i,0,e);t.push(e)}var S=function(t){function e(t,n,i){var r;return P(this,e),r=_(this,e,[function(t,e){var n=new WeakSet,i=e?" ".concat(JSON.stringify(e,(function(t,e){if("object"==N(e)&&null!==e){if(n.has(e))return"[object ".concat(e.constructor.name,"]");n.add(e)}return e}))):"";return t+i+O(t)}(t,i)]),r.name="CKEditorError",r.context=n,r.data=i,r}return C(e,t),M(e,[{key:"is",value:function(t){return"CKEditorError"===t}}],[{key:"rethrowUnexpectedError",value:function(t,n){if(t.is&&t.is("CKEditorError"))throw t;var i=new e(t.message,n);throw i.stack=t.stack,i}}])}(x(Error));function T(t,e){var n;(n=console).warn.apply(n,k(B(t,e)))}function I(t,e){var n;(n=console).error.apply(n,k(B(t,e)))}function O(t){return"\nRead more: ".concat("https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html","#error-").concat(t)}function B(t,e){var n=O(t);return e?[t,e,n]:[t,n]}var L="object"==("undefined"==typeof window?"undefined":N(window))?window:o.g;if(L.CKEDITOR_VERSION)throw new S("ckeditor-duplicated-modules",null);L.CKEDITOR_VERSION="35.1.0";var j=Symbol("listeningTo"),R=Symbol("emitterId"),z=Symbol("delegations");function F(t){return function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"on",value:function(t,e,n){this.listenTo(this,t,e,n)}},{key:"once",value:function(t,e,n){var i=this,r=!1;this.listenTo(this,t,(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];r||(r=!0,t.off(),e.call.apply(e,[i,t].concat(o)))}),n)}},{key:"off",value:function(t,e){this.stopListening(this,t,e)}},{key:"listenTo",value:function(t,e,n){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[j]||(this[j]={});var a=this[j];U(t)||V(t);var s=U(t);(i=a[s])||(i=a[s]={emitter:t,callbacks:{}}),(r=i.callbacks[e])||(r=i.callbacks[e]=[]),r.push(n),function(t,e,n,i,r){e._addEventListener?e._addEventListener(n,i,r):t._addEventListener.call(e,n,i,r)}(this,t,e,n,o)}},{key:"stopListening",value:function(t,e,n){var i=this[j],r=t&&U(t),o=i&&r?i[r]:void 0,a=o&&e?o.callbacks[e]:void 0;if(!(!i||t&&!o||e&&!a))if(n)G(this,t,e,n),-1!==a.indexOf(n)&&(1===a.length?delete o.callbacks[e]:G(this,t,e,n));else if(a){for(;n=a.pop();)G(this,t,e,n);delete o.callbacks[e]}else if(o){for(e in o.callbacks)this.stopListening(t,e);delete i[r]}else{for(r in i)this.stopListening(i[r].emitter);delete this[j]}}},{key:"fire",value:function(t){try{for(var e=t instanceof d?t:new d(this,t),n=e.name,i=$(this,n),r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];if(e.path.push(this),i){var s=[e].concat(o);i=Array.from(i);for(var l=0;l<i.length&&(i[l].callback.apply(this,s),e.off.called&&(delete e.off.called,this._removeEventListener(n,i[l].callback)),!e.stop.called);l++);}var c=this[z];if(c){var u=c.get(n),h=c.get("*");u&&Y(u,e,o),h&&Y(h,e,o)}return e.return}catch(t){S.rethrowUnexpectedError(t,this)}}},{key:"delegate",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return{to:function(e,i){t[z]||(t[z]=new Map),n.forEach((function(n){var r=t[z].get(n);r?r.set(e,i):t[z].set(n,new Map([[e,i]]))}))}}}},{key:"stopDelegating",value:function(t,e){if(this[z])if(t)if(e){var n=this[z].get(t);n&&n.delete(e)}else this[z].delete(t);else this[z].clear()}},{key:"_addEventListener",value:function(t,e,n){!function(t,e){var n=W(t);if(!n[e]){for(var i=e,r=null,o=[];""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},o.push(n[i]),r&&n[i].childEvents.push(r),r=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){var a,s=b(o);try{for(s.s();!(a=s.n()).done;){a.value.callbacks=n[i].callbacks.slice()}}catch(t){s.e(t)}finally{s.f()}n[i].childEvents.push(r)}}}(this,t);var i,r=q(this,t),o={callback:e,priority:w.get(n.priority)},a=b(r);try{for(a.s();!(i=a.n()).done;){E(i.value,o)}}catch(t){a.e(t)}finally{a.f()}}},{key:"_removeEventListener",value:function(t,e){var n,i=b(q(this,t));try{for(i.s();!(n=i.n()).done;)for(var r=n.value,o=0;o<r.length;o++)r[o].callback==e&&(r.splice(o,1),o--)}catch(t){i.e(t)}finally{i.f()}}}])}(t)}var H=F(Object);function V(t,e){t[R]||(t[R]=e||y())}function U(t){return t[R]}function W(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function q(t,e){var n=W(t)[e];if(!n)return[];for(var i=[n.callbacks],r=0;r<n.childEvents.length;r++){var o=q(t,n.childEvents[r]);i=i.concat(o)}return i}function $(t,e){var n;return t._events&&(n=t._events[e])&&n.callbacks.length?n.callbacks:e.indexOf(":")>-1?$(t,e.substr(0,e.lastIndexOf(":"))):null}function Y(t,e,n){var i,r=b(t);try{for(r.s();!(i=r.n()).done;){var o=v(i.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(e.name)):s=e.name;var l=new d(e.source,s);l.path=k(e.path),a.fire.apply(a,[l].concat(k(n)))}}catch(t){r.e(t)}finally{r.f()}}function G(t,e,n,i){e._removeEventListener?e._removeEventListener(n,i):t._removeEventListener.call(e,n,i)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((function(t){F[t]=H.prototype[t]}));var K=function(t){var e=N(t);return null!=t&&("object"==e||"function"==e)},Q=Symbol("observableProperties"),Z=Symbol("boundObservables"),J=Symbol("boundProperties"),X=Symbol("decoratedMethods"),tt=Symbol("decoratedOriginal");function et(t){return function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"set",value:function(t,e){var n=this;if(K(t))Object.keys(t).forEach((function(e){n.set(e,t[e])}),this);else{it(this);var i=this[Q];if(t in this&&!i.has(t))throw new S("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return i.get(t)},set:function(e){var n=i.get(t),r=this.fire("set:".concat(t),t,e,n);void 0===r&&(r=e),n===r&&i.has(t)||(i.set(t,r),this.fire("change:".concat(t),t,r,n))}}),this[t]=e}}},{key:"bind",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.length||!at(n))throw new S("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new S("observable-bind-duplicate-properties",this);it(this);var r=this[J];n.forEach((function(e){if(r.has(e))throw new S("observable-bind-rebind",t)}));var o=new Map;return n.forEach((function(t){var e={property:t,to:[]};r.set(t,e),o.set(t,e)})),{to:rt,toMany:ot,_observable:this,_bindProperties:n,_to:[],_bindings:o}}},{key:"unbind",value:function(){var t=this;if(this[Q]){for(var e=this[J],n=this[Z],i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];if(r.length){if(!at(r))throw new S("observable-unbind-wrong-properties",this);r.forEach((function(i){var r=e.get(i);r&&(r.to.forEach((function(e){var i=v(e,2),o=i[0],a=i[1],s=n.get(o),l=s[a];l.delete(r),l.size||delete s[a],Object.keys(s).length||(n.delete(o),t.stopListening(o,"change"))})),e.delete(i))}))}else n.forEach((function(e,n){t.stopListening(n,"change")})),n.clear(),e.clear()}}},{key:"decorate",value:function(t){var e=this;it(this);var n=this[t];if(!n)throw new S("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,(function(t,i){t.return=n.apply(e,i)})),this[t]=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.fire(t,n)},this[t][tt]=n,this[X]||(this[X]=[]),this[X].push(t)}},{key:"stopListening",value:function(t,e,n){if(!t&&this[X]){var i,r=b(this[X]);try{for(r.s();!(i=r.n()).done;){var o=i.value;this[o]=this[o][tt]}}catch(t){r.e(t)}finally{r.f()}delete this[X]}H.prototype.stopListening.call(this,t,e,n)}}])}(t)}var nt=et(H);function it(t){t[Q]||(Object.defineProperty(t,Q,{value:new Map}),Object.defineProperty(t,Z,{value:new Map}),Object.defineProperty(t,J,{value:new Map}))}function rt(){var t,e=this,n=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new S("observable-bind-to-parse-error",null);var i,r={to:[]};return"function"==typeof e[e.length-1]&&(r.callback=e.pop()),e.forEach((function(t){if("string"==typeof t)i.properties.push(t);else{if("object"!=N(t))throw new S("observable-bind-to-parse-error",null);i={observable:t,properties:[]},r.to.push(i)}})),r}.apply(void 0,arguments),i=Array.from(this._bindings.keys()),r=i.length;if(!n.callback&&n.to.length>1)throw new S("observable-bind-to-no-callback",this);if(r>1&&n.callback)throw new S("observable-bind-to-extra-callback",this);n.to.forEach((function(t){if(t.properties.length&&t.properties.length!==r)throw new S("observable-bind-to-properties-length",e);t.properties.length||(t.properties=e._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(i[0]).callback=n.callback),t=this._observable,this._to.forEach((function(e){var n,i=t[Z];i.get(e.observable)||t.listenTo(e.observable,"change",(function(r,o){(n=i.get(e.observable)[o])&&n.forEach((function(e){st(t,e.property)}))}))})),function(t){var e;t._bindings.forEach((function(n,i){t._to.forEach((function(r){e=r.properties[n.callback?0:t._bindProperties.indexOf(i)],n.to.push([r.observable,e]),function(t,e,n,i){var r=t[Z],o=r.get(n),a=o||{};a[i]||(a[i]=new Set),a[i].add(e),o||r.set(n,a)}(t._observable,n,r.observable,e)}))}))}(this),this._bindProperties.forEach((function(t){st(e._observable,t)}))}function ot(t,e,n){if(this._bindings.size>1)throw new S("observable-bind-to-many-not-one-binding",this);this.to.apply(this,k(function(t,e){var n=t.map((function(t){return[t,e]}));return Array.prototype.concat.apply([],n)}(t,e)).concat([n]))}function at(t){return t.every((function(t){return"string"==typeof t}))}function st(t,e){var n,i=t[J].get(e);i.callback?n=i.callback.apply(t,i.to.map((function(t){return t[0][t[1]]}))):n=(n=i.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(t,e)?t[e]=n:t.set(e,n)}function lt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];n.forEach((function(e){var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols(e);n.concat(i).forEach((function(n){if(!(n in t.prototype)&&("function"!=typeof e||"length"!=n&&"name"!=n&&"prototype"!=n)){var i=Object.getOwnPropertyDescriptor(e,n);i.enumerable=!1,Object.defineProperty(t.prototype,n,i)}}))}))}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((function(t){et[t]=nt.prototype[t]}));var ct=function(){return M((function t(e){P(this,t),this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}),[{key:"forceDisabled",value:function(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",ut,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",ut),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}])}();function ut(t){t.return=!1,t.stop()}lt(ct,et);var dt=function(){return M((function t(e){var n=this;P(this,t),this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(t){n.isEnabled||t.stop()}),{priority:"high"}),this.listenTo(e,"change:isReadOnly",(function(t,e,i){i&&n.affectsData?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}),[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",ht,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",ht),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}])}();function ht(t){t.return=!1,t.stop()}lt(dt,et);var ft=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._childCommandsDefinitions=[],n}return C(e,t),M(e,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var t=this._getFirstEnabledCommand(),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return!!t&&t.execute(n)}},{key:"registerChildCommand",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{priority:"normal"};E(this._childCommandsDefinitions,{command:t,priority:n.priority}),t.on("change:isEnabled",(function(){return e._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){var t=this._childCommandsDefinitions.find((function(t){return t.command.isEnabled}));return t&&t.command}}])}(dt),pt="object"==(void 0===n.g?"undefined":N(n.g))&&n.g&&n.g.Object===Object&&n.g,gt="object"==("undefined"==typeof self?"undefined":N(self))&&self&&self.Object===Object&&self,mt=pt||gt||Function("return this")(),vt=mt.Symbol,bt=Object.prototype,kt=bt.hasOwnProperty,yt=bt.toString,wt=vt?vt.toStringTag:void 0,_t=Object.prototype.toString,At=vt?vt.toStringTag:void 0,Ct=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":At&&At in Object(t)?function(t){var e=kt.call(t,wt),n=t[wt];try{t[wt]=void 0;var i=!0}catch(t){}var r=yt.call(t);return i&&(e?t[wt]=n:delete t[wt]),r}(t):function(t){return _t.call(t)}(t)},xt=function(t,e){return function(n){return t(e(n))}},Dt=xt(Object.getPrototypeOf,Object),Et=function(t){return null!=t&&"object"==N(t)},St=Function.prototype,Tt=Object.prototype,It=St.toString,Mt=Tt.hasOwnProperty,Ot=It.call(Object),Pt=function(t){if(!Et(t)||"[object Object]"!=Ct(t))return!1;var e=Dt(t);if(null===e)return!0;var n=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&It.call(n)==Ot},Nt=function(t,e){return t===e||t!=t&&e!=e},Bt=function(t,e){for(var n=t.length;n--;)if(Nt(t[n][0],e))return n;return-1},Lt=Array.prototype.splice;function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(t){var e=this.__data__,n=Bt(e,t);return!(n<0||(n==e.length-1?e.pop():Lt.call(e,n,1),--this.size,0))},jt.prototype.get=function(t){var e=this.__data__,n=Bt(e,t);return n<0?void 0:e[n][1]},jt.prototype.has=function(t){return Bt(this.__data__,t)>-1},jt.prototype.set=function(t,e){var n=this.__data__,i=Bt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};var Rt=jt,zt=function(t){if(!K(t))return!1;var e=Ct(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ft=mt["__core-js_shared__"],Ht=function(){var t=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Vt=Function.prototype.toString,Ut=function(t){if(null!=t){try{return Vt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Wt=/^\[object .+?Constructor\]$/,qt=Function.prototype,$t=Object.prototype,Yt=qt.toString,Gt=$t.hasOwnProperty,Kt=RegExp("^"+Yt.call(Gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qt=function(t){return!(!K(t)||function(t){return!!Ht&&Ht in t}(t))&&(zt(t)?Kt:Wt).test(Ut(t))},Zt=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Qt(n)?n:void 0},Jt=Zt(mt,"Map"),Xt=Zt(Object,"create"),te=Object.prototype.hasOwnProperty,ee=Object.prototype.hasOwnProperty;function ne(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}ne.prototype.clear=function(){this.__data__=Xt?Xt(null):{},this.size=0},ne.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ne.prototype.get=function(t){var e=this.__data__;if(Xt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return te.call(e,t)?e[t]:void 0},ne.prototype.has=function(t){var e=this.__data__;return Xt?void 0!==e[t]:ee.call(e,t)},ne.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Xt&&void 0===e?"__lodash_hash_undefined__":e,this};var ie=ne,re=function(t,e){var n=t.__data__;return function(t){var e=N(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function oe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}oe.prototype.clear=function(){this.size=0,this.__data__={hash:new ie,map:new(Jt||Rt),string:new ie}},oe.prototype.delete=function(t){var e=re(this,t).delete(t);return this.size-=e?1:0,e},oe.prototype.get=function(t){return re(this,t).get(t)},oe.prototype.has=function(t){return re(this,t).has(t)},oe.prototype.set=function(t,e){var n=re(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};var ae=oe;function se(t){var e=this.__data__=new Rt(t);this.size=e.size}se.prototype.clear=function(){this.__data__=new Rt,this.size=0},se.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},se.prototype.get=function(t){return this.__data__.get(t)},se.prototype.has=function(t){return this.__data__.has(t)},se.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Rt){var i=n.__data__;if(!Jt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new ae(i)}return n.set(t,e),this.size=n.size,this};var le=se,ce=function(){try{var t=Zt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),ue=function(t,e,n){"__proto__"==e&&ce?ce(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},de=Object.prototype.hasOwnProperty,he=function(t,e,n){var i=t[e];de.call(t,e)&&Nt(i,n)&&(void 0!==n||e in t)||ue(t,e,n)},fe=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=i?i(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),r?ue(n,s,l):he(n,s,l)}return n},pe=function(t){return Et(t)&&"[object Arguments]"==Ct(t)},ge=Object.prototype,me=ge.hasOwnProperty,ve=ge.propertyIsEnumerable,be=pe(function(){return arguments}())?pe:function(t){return Et(t)&&me.call(t,"callee")&&!ve.call(t,"callee")},ke=Array.isArray,ye="object"==N(e)&&e&&!e.nodeType&&e,we=ye&&"object"==N(t)&&t&&!t.nodeType&&t,_e=we&&we.exports===ye?mt.Buffer:void 0,Ae=(_e?_e.isBuffer:void 0)||function(){return!1},Ce=/^(?:0|[1-9]\d*)$/,xe=function(t,e){var n=N(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ce.test(t))&&t>-1&&t%1==0&&t<e},De=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Ee={};Ee["[object Float32Array]"]=Ee["[object Float64Array]"]=Ee["[object Int8Array]"]=Ee["[object Int16Array]"]=Ee["[object Int32Array]"]=Ee["[object Uint8Array]"]=Ee["[object Uint8ClampedArray]"]=Ee["[object Uint16Array]"]=Ee["[object Uint32Array]"]=!0,Ee["[object Arguments]"]=Ee["[object Array]"]=Ee["[object ArrayBuffer]"]=Ee["[object Boolean]"]=Ee["[object DataView]"]=Ee["[object Date]"]=Ee["[object Error]"]=Ee["[object Function]"]=Ee["[object Map]"]=Ee["[object Number]"]=Ee["[object Object]"]=Ee["[object RegExp]"]=Ee["[object Set]"]=Ee["[object String]"]=Ee["[object WeakMap]"]=!1;var Se=function(t){return function(e){return t(e)}},Te="object"==N(e)&&e&&!e.nodeType&&e,Ie=Te&&"object"==N(t)&&t&&!t.nodeType&&t,Me=Ie&&Ie.exports===Te&&pt.process,Oe=function(){try{return Ie&&Ie.require&&Ie.require("util").types||Me&&Me.binding&&Me.binding("util")}catch(t){}}(),Pe=Oe&&Oe.isTypedArray,Ne=Pe?Se(Pe):function(t){return Et(t)&&De(t.length)&&!!Ee[Ct(t)]},Be=Object.prototype.hasOwnProperty,Le=function(t,e){var n=ke(t),i=!n&&be(t),r=!n&&!i&&Ae(t),o=!n&&!i&&!r&&Ne(t),a=n||i||r||o,s=a?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],l=s.length;for(var c in t)!e&&!Be.call(t,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||xe(c,l))||s.push(c);return s},je=Object.prototype,Re=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||je)},ze=xt(Object.keys,Object),Fe=Object.prototype.hasOwnProperty,He=function(t){return null!=t&&De(t.length)&&!zt(t)},Ve=function(t){return He(t)?Le(t):function(t){if(!Re(t))return ze(t);var e=[];for(var n in Object(t))Fe.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)},Ue=Object.prototype.hasOwnProperty,We=function(t){if(!K(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Re(t),n=[];for(var i in t)("constructor"!=i||!e&&Ue.call(t,i))&&n.push(i);return n},qe=function(t){return He(t)?Le(t,!0):We(t)},$e="object"==N(e)&&e&&!e.nodeType&&e,Ye=$e&&"object"==N(t)&&t&&!t.nodeType&&t,Ge=Ye&&Ye.exports===$e?mt.Buffer:void 0,Ke=Ge?Ge.allocUnsafe:void 0,Qe=function(t,e){if(e)return t.slice();var n=t.length,i=Ke?Ke(n):new t.constructor(n);return t.copy(i),i},Ze=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e},Je=function(){return[]},Xe=Object.prototype.propertyIsEnumerable,tn=Object.getOwnPropertySymbols,en=tn?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}(tn(t),(function(e){return Xe.call(t,e)})))}:Je,nn=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t},rn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)nn(e,en(t)),t=Dt(t);return e}:Je,on=function(t,e,n){var i=e(t);return ke(t)?i:nn(i,n(t))},an=function(t){return on(t,Ve,en)},sn=function(t){return on(t,qe,rn)},ln=Zt(mt,"DataView"),cn=Zt(mt,"Promise"),un=Zt(mt,"Set"),dn=Zt(mt,"WeakMap"),hn="[object Map]",fn="[object Promise]",pn="[object Set]",gn="[object WeakMap]",mn="[object DataView]",vn=Ut(ln),bn=Ut(Jt),kn=Ut(cn),yn=Ut(un),wn=Ut(dn),_n=Ct;(ln&&_n(new ln(new ArrayBuffer(1)))!=mn||Jt&&_n(new Jt)!=hn||cn&&_n(cn.resolve())!=fn||un&&_n(new un)!=pn||dn&&_n(new dn)!=gn)&&(_n=function(t){var e=Ct(t),n="[object Object]"==e?t.constructor:void 0,i=n?Ut(n):"";if(i)switch(i){case vn:return mn;case bn:return hn;case kn:return fn;case yn:return pn;case wn:return gn}return e});var An=_n,Cn=Object.prototype.hasOwnProperty,xn=mt.Uint8Array,Dn=function(t){var e=new t.constructor(t.byteLength);return new xn(e).set(new xn(t)),e},En=/\w*$/,Sn=vt?vt.prototype:void 0,Tn=Sn?Sn.valueOf:void 0,In=function(t,e){var n=e?Dn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Mn=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return Dn(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?Dn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return In(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,En.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return function(t){return Tn?Object(Tn.call(t)):{}}(t)}},On=Object.create,Pn=function(){function t(){}return function(e){if(!K(e))return{};if(On)return On(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Nn=function(t){return"function"!=typeof t.constructor||Re(t)?{}:Pn(Dt(t))},Bn=Oe&&Oe.isMap,Ln=Bn?Se(Bn):function(t){return Et(t)&&"[object Map]"==An(t)},jn=Oe&&Oe.isSet,Rn=jn?Se(jn):function(t){return Et(t)&&"[object Set]"==An(t)},zn="[object Arguments]",Fn="[object Function]",Hn="[object Object]",Vn={};Vn[zn]=Vn["[object Array]"]=Vn["[object ArrayBuffer]"]=Vn["[object DataView]"]=Vn["[object Boolean]"]=Vn["[object Date]"]=Vn["[object Float32Array]"]=Vn["[object Float64Array]"]=Vn["[object Int8Array]"]=Vn["[object Int16Array]"]=Vn["[object Int32Array]"]=Vn["[object Map]"]=Vn["[object Number]"]=Vn[Hn]=Vn["[object RegExp]"]=Vn["[object Set]"]=Vn["[object String]"]=Vn["[object Symbol]"]=Vn["[object Uint8Array]"]=Vn["[object Uint8ClampedArray]"]=Vn["[object Uint16Array]"]=Vn["[object Uint32Array]"]=!0,Vn["[object Error]"]=Vn[Fn]=Vn["[object WeakMap]"]=!1;var Un=function t(e,n,i,r,o,a){var s,l=1&n,c=2&n,u=4&n;if(i&&(s=o?i(e,r,o,a):i(e)),void 0!==s)return s;if(!K(e))return e;var d=ke(e);if(d){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Cn.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!l)return Ze(e,s)}else{var h=An(e),f=h==Fn||"[object GeneratorFunction]"==h;if(Ae(e))return Qe(e,l);if(h==Hn||h==zn||f&&!o){if(s=c||f?{}:Nn(e),!l)return c?function(t,e){return fe(t,rn(t),e)}(e,function(t,e){return t&&fe(e,qe(e),t)}(s,e)):function(t,e){return fe(t,en(t),e)}(e,function(t,e){return t&&fe(e,Ve(e),t)}(s,e))}else{if(!Vn[h])return o?e:{};s=Mn(e,h,l)}}a||(a=new le);var p=a.get(e);if(p)return p;a.set(e,s),Rn(e)?e.forEach((function(r){s.add(t(r,n,i,r,e,a))})):Ln(e)&&e.forEach((function(r,o){s.set(o,t(r,n,i,o,e,a))}));var g=d?void 0:(u?c?sn:an:c?qe:Ve)(e);return function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););}(g||e,(function(r,o){g&&(r=e[o=r]),he(s,o,t(r,n,i,o,e,a))})),s},Wn=function(t,e){return Un(t,5,e="function"==typeof e?e:void 0)},qn=function(t){return Et(t)&&1===t.nodeType&&!Pt(t)},$n=function(){return M((function t(e,n){P(this,t),this._config={},n&&this.define(Yn(n)),e&&this._setObjectToTarget(this._config,e)}),[{key:"set",value:function(t,e){this._setToTarget(this._config,t,e)}},{key:"define",value:function(t,e){this._setToTarget(this._config,t,e,!0)}},{key:"get",value:function(t){return this._getFromSource(this._config,t)}},{key:"names",value:m().mark((function t(){var e,n,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0,n=Object.keys(this._config);case 1:if(!(e<n.length)){t.next=8;break}return i=n[e],t.next=5,i;case 5:e++,t.next=1;break;case 8:case"end":return t.stop()}}),t,this)}))},{key:"_setToTarget",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Pt(e))this._setObjectToTarget(t,e,i);else{var r=e.split(".");e=r.pop();var o,a=b(r);try{for(a.s();!(o=a.n()).done;){var s=o.value;Pt(t[s])||(t[s]={}),t=t[s]}}catch(t){a.e(t)}finally{a.f()}if(Pt(n))return Pt(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,i);i&&void 0!==t[e]||(t[e]=n)}}},{key:"_getFromSource",value:function(t,e){var n=e.split(".");e=n.pop();var i,r=b(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(!Pt(t[o])){t=null;break}t=t[o]}}catch(t){r.e(t)}finally{r.f()}return t?Yn(t[e]):void 0}},{key:"_setObjectToTarget",value:function(t,e,n){var i=this;Object.keys(e).forEach((function(r){i._setToTarget(t,r,e[r],n)}))}}])}();function Yn(t){return Wn(t,Gn)}function Gn(t){return qn(t)?t:void 0}function Kn(t){return!(!t||!t[Symbol.iterator])}var Qn,Zn=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,e),t=_(this,e);var r=Kn(n);if(r||(i=n),t._items=[],t._itemMap=new Map,t._idProperty=i.idProperty||"id",t._bindToExternalToInternalMap=new WeakMap,t._bindToInternalToExternalMap=new WeakMap,t._skippedIndexesFromExternal=[],r){var o,a=b(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;t._items.push(s),t._itemMap.set(t._getItemIdBeforeAdding(s),s)}}catch(t){a.e(t)}finally{a.f()}}return t}return C(e,t),M(e,[{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}},{key:"add",value:function(t,e){return this.addMany([t],e)}},{key:"addMany",value:function(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new S("collection-add-item-invalid-index",this);var n,i=0,r=b(t);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=this._getItemIdBeforeAdding(o),s=e+i;this._items.splice(s,0,o),this._itemMap.set(a,o),this.fire("add",o,s),i++}}catch(t){r.e(t)}finally{r.f()}return this.fire("change",{added:t,removed:[],index:e}),this}},{key:"get",value:function(t){var e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new S("collection-get-invalid-arg",this);e=this._items[t]}return e||null}},{key:"has",value:function(t){if("string"==typeof t)return this._itemMap.has(t);var e=t[this._idProperty];return e&&this._itemMap.has(e)}},{key:"getIndex",value:function(t){var e;return(e="string"==typeof t?this._itemMap.get(t):t)?this._items.indexOf(e):-1}},{key:"remove",value:function(t){var e=v(this._remove(t),2),n=e[0],i=e[1];return this.fire("change",{added:[],removed:[n],index:i}),n}},{key:"map",value:function(t,e){return this._items.map(t,e)}},{key:"find",value:function(t,e){return this._items.find(t,e)}},{key:"filter",value:function(t,e){return this._items.filter(t,e)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var t=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}},{key:"bindTo",value:function(t){var e=this;if(this._bindToCollection)throw new S("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:function(t){e._setUpBindToBinding((function(e){return new t(e)}))},using:function(t){"function"==typeof t?e._setUpBindToBinding(t):e._setUpBindToBinding((function(e){return e[t]}))}}}},{key:"_setUpBindToBinding",value:function(t){var e,n=this,i=this._bindToCollection,r=function(e,r,o){var a=i._bindToCollection==n,s=i._bindToInternalToExternalMap.get(r);if(a&&s)n._bindToExternalToInternalMap.set(r,s),n._bindToInternalToExternalMap.set(s,r);else{var l=t(r);if(!l)return void n._skippedIndexesFromExternal.push(o);var c,u=o,d=b(n._skippedIndexesFromExternal);try{for(d.s();!(c=d.n()).done;){o>c.value&&u--}}catch(t){d.e(t)}finally{d.f()}var h,f=b(i._skippedIndexesFromExternal);try{for(f.s();!(h=f.n()).done;){u>=h.value&&u++}}catch(t){f.e(t)}finally{f.f()}n._bindToExternalToInternalMap.set(r,l),n._bindToInternalToExternalMap.set(l,r),n.add(l,u);for(var p=0;p<i._skippedIndexesFromExternal.length;p++)u<=i._skippedIndexesFromExternal[p]&&i._skippedIndexesFromExternal[p]++}},o=b(i);try{for(o.s();!(e=o.n()).done;){var a=e.value;r(0,a,i.getIndex(a))}}catch(t){o.e(t)}finally{o.f()}this.listenTo(i,"add",r),this.listenTo(i,"remove",(function(t,e,i){var r=n._bindToExternalToInternalMap.get(e);r&&n.remove(r),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(t,e){return i<e&&t.push(e-1),i>e&&t.push(e),t}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(t){var e,n=this._idProperty;if(n in t){if("string"!=typeof(e=t[n]))throw new S("collection-add-invalid-id",this);if(this.get(e))throw new S("collection-add-item-already-exists",this)}else t[n]=e=y();return e}},{key:"_remove",value:function(t){var e,n,i,r=!1,o=this._idProperty;if("string"==typeof t?(n=t,r=!(i=this._itemMap.get(n)),i&&(e=this._items.indexOf(i))):"number"==typeof t?(e=t,r=!(i=this._items[e]),i&&(n=i[o])):(n=(i=t)[o],r=-1==(e=this._items.indexOf(i))||!this._itemMap.get(n)),r)throw new S("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,e),[i,e]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}}])}(H),Jn=function(){return M((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];P(this,t),this._context=e,this._plugins=new Map,this._availablePlugins=new Map;var r,o=b(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(t){o.e(t)}finally{o.f()}this._contextPlugins=new Map;var s,l=b(i);try{for(l.s();!(s=l.n()).done;){var c=v(s.value,2),u=c[0],d=c[1];this._contextPlugins.set(u,d),this._contextPlugins.set(d,u),u.pluginName&&this._availablePlugins.set(u.pluginName,u)}}catch(t){l.e(t)}finally{l.f()}}),[{key:Symbol.iterator,value:m().mark((function t(){var e,n,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=b(this._plugins),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=11;break}if(i=n.value,t.t0="function"==typeof i[0],!t.t0){t.next=9;break}return t.next=9,i;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),e.e(t.t1);case 16:return t.prev=16,e.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"get",value:function(t){var e=this._plugins.get(t);if(!e){var n=t;throw"function"==typeof t&&(n=t.pluginName||t.name),new S("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return e}},{key:"has",value:function(t){return this._plugins.has(t)}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=this,r=this._context;!function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;e.forEach((function(e){s(e)&&(n.has(e)||(n.add(e),e.pluginName&&!i._availablePlugins.has(e.pluginName)&&i._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),d(t);var o=k(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return e.map((function(t){return s(t)?t:i._availablePlugins.get(t)})).reduce((function(e,i){return n.has(i)?e:(n.add(i),i.requires&&(d(i.requires,i),t(i.requires,n).forEach((function(t){return e.add(t)}))),e.add(i))}),new Set)}(t.filter((function(t){return!c(t,e)}))));!function(t,e){var n,r=b(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if("function"!=typeof o)throw new S("plugincollection-replace-plugin-invalid-type",null,{pluginItem:o});var a=o.pluginName;if(!a)throw new S("plugincollection-replace-plugin-missing-name",null,{pluginItem:o});if(o.requires&&o.requires.length)throw new S("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:a});var s=i._availablePlugins.get(a);if(!s)throw new S("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:a});var l=t.indexOf(s);if(-1===l){if(i._contextPlugins.has(s))return;throw new S("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:a})}if(s.requires&&s.requires.length)throw new S("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:a});t.splice(l,1,o),i._availablePlugins.set(a,o)}}catch(t){r.e(t)}finally{r.f()}}(o,n);var a=function(t){return t.map((function(t){var e=i._contextPlugins.get(t)||new t(r);return i._add(t,e),e}))}(o);return h(a,"init").then((function(){return h(a,"afterInit")})).then((function(){return a}));function s(t){return"function"==typeof t}function l(t){return s(t)&&t.isContextPlugin}function c(t,e){return e.some((function(e){return e===t||u(t)===e||u(e)===t}))}function u(t){return s(t)?t.pluginName||t.name:t}function d(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.map((function(t){return s(t)?t:i._availablePlugins.get(t)||t})).forEach((function(t){!function(t,e){if(!s(t)){if(e)throw new S("plugincollection-soft-required",r,{missingPlugin:t,requiredBy:u(e)});throw new S("plugincollection-plugin-not-found",r,{plugin:t})}}(t,n),function(t,e){if(l(e)&&!l(t))throw new S("plugincollection-context-required",r,{plugin:u(t),requiredBy:u(e)})}(t,n),function(t,n){if(n&&c(t,e))throw new S("plugincollection-required",r,{plugin:u(t),requiredBy:u(n)})}(t,n)}))}function h(t,e){return t.reduce((function(t,n){return n[e]?i._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t}),Promise.resolve())}}},{key:"destroy",value:function(){var t,e=[],n=b(this);try{for(n.s();!(t=n.n()).done;){var i=v(t.value,2)[1];"function"!=typeof i.destroy||this._contextPlugins.has(i)||e.push(i.destroy())}}catch(t){n.e(t)}finally{n.f()}return Promise.all(e)}},{key:"_add",value:function(t,e){this._plugins.set(t,e);var n=t.pluginName;if(n){if(this._plugins.has(n))throw new S("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}])}();function Xn(t){return Array.isArray(t)?t:[t]}lt(Jn,F);try{Qn={window,document}}catch(t){Qn={window:{},document:{}}}var ti=Qn;ti.window.CKEDITOR_TRANSLATIONS||(ti.window.CKEDITOR_TRANSLATIONS={});var ei=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function ni(t){return ei.includes(t)?"rtl":"ltr"}var ii=function(){return M((function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=ni(this.uiLanguage),this.contentLanguageDirection=ni(this.contentLanguage),this.t=function(t,n){return e._t(t,n)}}),[{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}},{key:"_t",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=Xn(e),"string"==typeof t&&(t={string:t});var n=t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,(function(t,n){return n<e.length?e[n]:t}))}(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new S("translation-service-quantity-not-a-number",null,{quantity:n});var i=Object.keys(ti.window.CKEDITOR_TRANSLATIONS).length;1===i&&(t=Object.keys(ti.window.CKEDITOR_TRANSLATIONS)[0]);var r=e.id||e.string;if(0===i||!function(t,e){return!!ti.window.CKEDITOR_TRANSLATIONS[t]&&!!ti.window.CKEDITOR_TRANSLATIONS[t].dictionary[e]}(t,r))return 1!==n?e.plural:e.string;var o=ti.window.CKEDITOR_TRANSLATIONS[t].dictionary,a=ti.window.CKEDITOR_TRANSLATIONS[t].getPluralForm||function(t){return 1===t?0:1},s=o[r];return"string"==typeof s?s:s[Number(a(n))]}(this.uiLanguage,t,n),e)}}])}(),ri=function(){return M((function t(e){P(this,t),this.config=new $n(e,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new Jn(this,n);var i=this.config.get("language")||{};this.locale=new ii({uiLanguage:"string"==typeof i?i:i.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Zn,this._contextOwner=null}),[{key:"initPlugins",value:function(){var t,e=this.config.get("plugins")||[],n=this.config.get("substitutePlugins")||[],i=b(e.concat(n));try{for(i.s();!(t=i.n()).done;){var r=t.value;if("function"!=typeof r)throw new S("context-initplugins-constructor-only",null,{Plugin:r});if(!0!==r.isContextPlugin)throw new S("context-initplugins-invalid-plugin",null,{Plugin:r})}}catch(t){i.e(t)}finally{i.f()}return this.plugins.init(e,[],n)}},{key:"destroy",value:function(){var t=this;return Promise.all(Array.from(this.editors,(function(t){return t.destroy()}))).then((function(){return t.plugins.destroy()}))}},{key:"_addEditor",value:function(t,e){if(this._contextOwner)throw new S("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}},{key:"_removeEditor",value:function(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var t,e={},n=b(this.config.names());try{for(n.s();!(t=n.n()).done;){var i=t.value;["plugins","removePlugins","extraPlugins"].includes(i)||(e[i]=this.config.get(i))}}catch(t){n.e(t)}finally{n.f()}return e}}],[{key:"create",value:function(t){var e=this;return new Promise((function(n){var i=new e(t);n(i.initPlugins().then((function(){return i})))}))}}])}(),oi=function(){return M((function t(e){P(this,t),this.context=e}),[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}])}();lt(oi,et);var ai=function(){return M((function t(){P(this,t)}),[{key:"is",value:function(){throw new Error("is() method is abstract")}}])}();function si(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i++)if(t[i]!=e[i])return i;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}var li=function(t){return Un(t,4)},ci=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).document=t,n.parent=null,n}return C(e,t),M(e,[{key:"index",get:function(){var t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new S("view-node-not-found-in-parent",this);return t}},{key:"nextSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null}},{key:"previousSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null}},{key:"root",get:function(){for(var t=this;t.parent;)t=t.parent;return t}},{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var t=[],e=this;e.parent;)t.unshift(e.index),e=e.parent;return t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"getCommonAncestor",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(e),i=t.getAncestors(e),r=0;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}},{key:"isBefore",value:function(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),i=si(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}},{key:"isAfter",value:function(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(t,e){this.fire("change:".concat(t),e),this.parent&&this.parent._fireChange(t,e)}},{key:"toJSON",value:function(){var t=li(this);return delete t.parent,t}}])}(F(ai));ci.prototype.is=function(t){return"node"===t||"view:node"===t};var ui=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t]))._textData=n,i}return C(e,t),M(e,[{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(t){this._fireChange("text",this),this._textData=t}},{key:"isSimilar",value:function(t){return t instanceof e&&(this===t||this.data===t.data)}},{key:"_clone",value:function(){return new e(this.document,this.data)}}])}(ci);ui.prototype.is=function(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t};var di=function(t){function e(t,n,i){var r;if(P(this,e),(r=_(this,e)).textNode=t,n<0||n>t.data.length)throw new S("view-textproxy-wrong-offsetintext",A(r));if(i<0||n+i>t.data.length)throw new S("view-textproxy-wrong-length",r);return r.data=t.data.substring(n,n+i),r.offsetInText=n,r}return C(e,t),M(e,[{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[],n=t.includeSelf?this.textNode:this.parent;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}])}(ai);function hi(t){return Kn(t)?new Map(t):function(t){var e=new Map;for(var n in t)e.set(n,t[n]);return e}(t)}di.prototype.is=function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t};var fi=function(){return M((function t(){P(this,t),this._patterns=[],this.add.apply(this,arguments)}),[{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];("string"==typeof o||o instanceof RegExp)&&(o={name:o}),this._patterns.push(o)}}},{key:"match",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o,a=r[i],s=b(this._patterns);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=pi(a,l);if(c)return{element:a,pattern:l,match:c}}}catch(t){s.e(t)}finally{s.f()}}return null}},{key:"matchAll",value:function(){for(var t=[],e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a,s=o[r],l=b(this._patterns);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=pi(s,c);u&&t.push({element:s,pattern:c,match:u})}}catch(t){l.e(t)}finally{l.f()}}return t.length>0?t:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}])}();function pi(t,e){if("function"==typeof e)return e(t);var n={};return e.name&&(n.name=function(t,e){return t instanceof RegExp?!!e.match(t):t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){var n=new Set(e.getAttributeKeys());return Pt(t)?(void 0!==t.style&&T("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&T("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class")),gi(t,n,(function(t){return e.getAttribute(t)}))}(e.attributes,t),!n.attributes)||e.classes&&(n.classes=function(t,e){return gi(t,e.getClassNames(),(function(){}))}(e.classes,t),!n.classes)||e.styles&&(n.styles=function(t,e){return gi(t,e.getStyleNames(!0),(function(t){return e.getStyle(t)}))}(e.styles,t),!n.styles)?null:n}function gi(t,e,n){var i=function(t){return Array.isArray(t)?t.map((function(t){return Pt(t)?(void 0!==t.key&&void 0!==t.value||T("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0]})):Pt(t)?Object.entries(t):[[t,!0]]}(t),r=Array.from(e),o=[];if(i.forEach((function(t){var e=v(t,2),i=e[0],a=e[1];r.forEach((function(t){(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t)})(i,t)&&function(t,e,n){if(!0===t)return!0;var i=n(e);return t===i||t instanceof RegExp&&!!String(i).match(t)}(a,t,n)&&o.push(t)}))})),i.length&&!(o.length<i.length))return o}var mi=function(t){return"symbol"==N(t)||Et(t)&&"[object Symbol]"==Ct(t)},vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bi=/^\w*$/;function ki(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(ki.Cache||ae),n}ki.Cache=ae;var yi=ki,wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_i=/\\(\\)?/g,Ai=function(){var t=yi((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(wi,(function(t,n,i,r){e.push(i?r.replace(_i,"$1"):n||t)})),e}),(function(t){return 500===e.size&&e.clear(),t})),e=t.cache;return t}(),Ci=Ai,xi=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},Di=vt?vt.prototype:void 0,Ei=Di?Di.toString:void 0,Si=function t(e){if("string"==typeof e)return e;if(ke(e))return xi(e,t)+"";if(mi(e))return Ei?Ei.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Ti=function(t){return null==t?"":Si(t)},Ii=function(t,e){return ke(t)?t:function(t,e){if(ke(t))return!1;var n=N(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!mi(t))||bi.test(t)||!vi.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:Ci(Ti(t))},Mi=function(t){if("string"==typeof t||mi(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Oi=function(t,e){for(var n=0,i=(e=Ii(e,t)).length;null!=t&&n<i;)t=t[Mi(e[n++])];return n&&n==i?t:void 0},Pi=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o},Ni=function(t,e){return null==(t=function(t,e){return e.length<2?t:Oi(t,Pi(e,0,-1))}(t,e=Ii(e,t)))||delete t[Mi(function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}(e))]},Bi=function(t,e,n){var i=null==t?void 0:Oi(t,e);return void 0===i?n:i},Li=function(t,e,n){(void 0!==n&&!Nt(t[e],n)||void 0===n&&!(e in t))&&ue(t,e,n)},ji=function(t,e,n){for(var i=-1,r=Object(t),o=n(t),a=o.length;a--;){var s=o[++i];if(!1===e(r[s],s,r))break}return t},Ri=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},zi=function(t,e,n,i,r,o,a){var s=Ri(t,n),l=Ri(e,n),c=a.get(l);if(c)Li(t,n,c);else{var u=o?o(s,l,n+"",t,e,a):void 0,d=void 0===u;if(d){var h=ke(l),f=!h&&Ae(l),p=!h&&!f&&Ne(l);u=l,h||f||p?ke(s)?u=s:function(t){return Et(t)&&He(t)}(s)?u=Ze(s):f?(d=!1,u=Qe(l,!0)):p?(d=!1,u=In(l,!0)):u=[]:Pt(l)||be(l)?(u=s,be(s)?u=function(t){return fe(t,qe(t))}(s):K(s)&&!zt(s)||(u=Nn(l))):d=!1}d&&(a.set(l,u),r(u,l,i,o,a),a.delete(l)),Li(t,n,u)}},Fi=function t(e,n,i,r,o){e!==n&&ji(n,(function(a,s){if(o||(o=new le),K(a))zi(e,n,s,i,t,r,o);else{var l=r?r(Ri(e,s),a,s+"",e,n,o):void 0;void 0===l&&(l=a),Li(e,s,l)}}),qe)},Hi=function(t){return t},Vi=Math.max,Ui=function(t){return function(){return t}},Wi=ce?function(t,e){return ce(t,"toString",{configurable:!0,enumerable:!1,value:Ui(e),writable:!0})}:Hi,qi=Date.now,$i=function(t){var e=0,n=0;return function(){var i=qi(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Wi),Yi=function(t,e){return $i(function(t,e,n){return e=Vi(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=Vi(i.length-e,0),a=Array(o);++r<o;)a[r]=i[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=i[r];return s[e]=n(a),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}}(t,e,Hi),t+"")},Gi=function(t){return Yi((function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(t,e,n){if(!K(n))return!1;var i=N(e);return!!("number"==i?He(n)&&xe(e,n.length):"string"==i&&e in n)&&Nt(n[e],t)}(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var s=n[i];s&&t(e,s,i,o)}return e}))},Ki=Gi((function(t,e,n){Fi(t,e,n)})),Qi=function(t,e,n){return null==t?t:function(t,e,n,i){if(!K(t))return t;for(var r=-1,o=(e=Ii(e,t)).length,a=o-1,s=t;null!=s&&++r<o;){var l=Mi(e[r]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(r!=a){var u=s[l];void 0===(c=i?i(u,l,s):void 0)&&(c=K(u)?u:xe(e[r+1])?[]:{})}he(s,l,c),s=s[l]}return t}(t,e,n)},Zi=function(){return M((function t(e){P(this,t),this._styles={},this._styleProcessor=e}),[{key:"isEmpty",get:function(){var t=Object.entries(this._styles);return!Array.from(t).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}},{key:"setTo",value:function(t){this.clear();for(var e=Array.from(function(t){var e=null,n=0,i=0,r=null,o=new Map;if(""===t)return o;";"!=t.charAt(t.length-1)&&(t+=";");for(var a=0;a<t.length;a++){var s=t.charAt(a);if(null===e)switch(s){case":":r||(r=t.substr(n,a-n),i=a+1);break;case'"':case"'":e=s;break;case";":var l=t.substr(i,a-i);r&&o.set(r.trim(),l.trim()),r=null,n=a+1}else s===e&&(e=null)}return o}(t).entries()),n=0,i=e;n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}}},{key:"has",value:function(t){if(this.isEmpty)return!1;var e=this._styleProcessor.getReducedForm(t,this._styles).find((function(e){return v(e,1)[0]===t}));return Array.isArray(e)}},{key:"set",value:function(t,e){if(K(t))for(var n=0,i=Object.entries(t);n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}else this._styleProcessor.toNormalizedForm(t,e,this._styles)}},{key:"remove",value:function(t){var e=Xi(t);(function(t,e){null==t||Ni(t,e)})(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}},{key:"getNormalized",value:function(t){return this._styleProcessor.getNormalized(t,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(t){return t.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(t){if(!this.isEmpty){if(this._styles[t]&&!K(this._styles[t]))return this._styles[t];var e=this._styleProcessor.getReducedForm(t,this._styles).find((function(e){return v(e,1)[0]===t}));return Array.isArray(e)?e[1]:void 0}}},{key:"getStyleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.isEmpty?[]:t?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map((function(t){return v(t,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var t=[],e=0,n=Object.keys(this._styles);e<n.length;e++){var i=n[e];t.push.apply(t,k(this._styleProcessor.getReducedForm(i,this._styles)))}return t}},{key:"_cleanEmptyObjectsOnPath",value:function(t){var e=t.split(".");if(e.length>1){var n=e.splice(0,e.length-1).join("."),i=Bi(this._styles,n);i&&!Array.from(Object.keys(i)).length&&this.remove(n)}}}])}(),Ji=function(){return M((function t(){P(this,t),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}),[{key:"toNormalizedForm",value:function(t,e,n){if(K(e))tr(n,Xi(t),e);else if(this._normalizers.has(t)){var i=this._normalizers.get(t)(e);tr(n,i.path,i.value)}else tr(n,t,e)}},{key:"getNormalized",value:function(t,e){if(!t)return Ki({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){var n=this._extractors.get(t);if("string"==typeof n)return Bi(e,n);var i=n(t,e);if(i)return i}return Bi(e,Xi(t))}},{key:"getReducedForm",value:function(t,e){var n=this.getNormalized(t,e);return void 0===n?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}},{key:"getStyleNames",value:function(t){var e=this,n=Array.from(this._consumables.keys()).filter((function(n){var i=e.getNormalized(n,t);return i&&"object"==N(i)?Object.keys(i).length:i})),i=new Set([].concat(k(n),k(Object.keys(t))));return Array.from(i.values())}},{key:"getRelatedStyles",value:function(t){return this._consumables.get(t)||[]}},{key:"setNormalizer",value:function(t,e){this._normalizers.set(t,e)}},{key:"setExtractor",value:function(t,e){this._extractors.set(t,e)}},{key:"setReducer",value:function(t,e){this._reducers.set(t,e)}},{key:"setStyleRelation",value:function(t,e){this._mapStyleNames(t,e);var n,i=b(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._mapStyleNames(r,[t])}}catch(t){i.e(t)}finally{i.f()}}},{key:"_mapStyleNames",value:function(t,e){var n;this._consumables.has(t)||this._consumables.set(t,[]),(n=this._consumables.get(t)).push.apply(n,k(e))}}])}();function Xi(t){return t.replace("-",".")}function tr(t,e,n){var i=n;K(n)&&(i=Ki({},Bi(t,e),n)),Qi(t,e,i)}var er=function(t){function e(t,n,i,r){var o;if(P(this,e),(o=_(this,e,[t])).name=n,o._attrs=function(t){var e,n=hi(t),i=b(n);try{for(i.s();!(e=i.n()).done;){var r=v(e.value,2),o=r[0],a=r[1];null===a?n.delete(o):"string"!=typeof a&&n.set(o,String(a))}}catch(t){i.e(t)}finally{i.f()}return n}(i),o._children=[],r&&o._insertChild(0,r),o._classes=new Set,o._attrs.has("class")){var a=o._attrs.get("class");nr(o._classes,a),o._attrs.delete("class")}return o._styles=new Zi(o.document.stylesProcessor),o._attrs.has("style")&&(o._styles.setTo(o._attrs.get("style")),o._attrs.delete("style")),o._customProperties=new Map,o._unsafeAttributesToRender=[],o}return C(e,t),M(e,[{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}},{key:"getChild",value:function(t){return this._children[t]}},{key:"getChildIndex",value:function(t){return this._children.indexOf(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._classes.size>0,!t.t0){t.next=4;break}return t.next=4,"class";case 4:if(t.t1=this._styles.isEmpty,t.t1){t.next=8;break}return t.next=8,"style";case 8:return t.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return t.stop()}}),t,this)}))},{key:"getAttributes",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._attrs.entries(),"t0",1);case 1:if(t.t1=this._classes.size>0,!t.t1){t.next=5;break}return t.next=5,["class",this.getAttribute("class")];case 5:if(t.t2=this._styles.isEmpty,t.t2){t.next=9;break}return t.next=9,["style",this.getAttribute("style")];case 9:case"end":return t.stop()}}),t,this)}))},{key:"getAttribute",value:function(t){if("class"==t)return this._classes.size>0?k(this._classes).join(" "):void 0;if("style"==t){var e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(t)}},{key:"hasAttribute",value:function(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}},{key:"isSimilar",value:function(t){if(!(t instanceof e))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;var n,i=b(this._attrs);try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];if(!t._attrs.has(o)||t._attrs.get(o)!==a)return!1}}catch(t){i.e(t)}finally{i.f()}var s,l=b(this._classes);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(!t._classes.has(c))return!1}}catch(t){l.e(t)}finally{l.f()}var u,d=b(this._styles.getStyleNames());try{for(d.s();!(u=d.n()).done;){var h=u.value;if(!t._styles.has(h)||t._styles.getAsString(h)!==this._styles.getAsString(h))return!1}}catch(t){d.e(t)}finally{d.f()}return!0}},{key:"hasClass",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];if(!this._classes.has(o))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(t){return this._styles.getAsString(t)}},{key:"getNormalizedStyle",value:function(t){return this._styles.getNormalized(t)}},{key:"getStyleNames",value:function(t){return this._styles.getStyleNames(t)}},{key:"hasStyle",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];if(!this._styles.has(o))return!1}return!0}},{key:"findAncestor",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=D(fi,e),r=this.parent;r&&!r.is("documentFragment");){if(i.match(r))return r;r=r.parent}return null}},{key:"getCustomProperty",value:function(t){return this._customProperties.get(t)}},{key:"getCustomProperties",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"getIdentity",value:function(){var t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map((function(t){return"".concat(t[0],'="').concat(t[1],'"')})).sort().join(" ");return this.name+(""==t?"":' class="'.concat(t,'"'))+(e?' style="'.concat(e,'"'):"")+(""==n?"":" ".concat(n))}},{key:"shouldRenderUnsafeAttribute",value:function(t){return this._unsafeAttributesToRender.includes(t)}},{key:"_clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];if(t){var n,i=b(this.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;e.push(r._clone(t))}}catch(t){i.e(t)}finally{i.f()}}var o=new this.constructor(this.document,this.name,this._attrs,e);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o._unsafeAttributesToRender=this._unsafeAttributesToRender,o}},{key:"_appendChild",value:function(t){return this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){this._fireChange("children",this);var n,i=0,r=function(t,e){return"string"==typeof e?[new ui(t,e)]:(Kn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new ui(t,e):e instanceof di?new ui(t,e.data):e})))}(this.document,e),o=b(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,a.document=this.document,this._children.splice(t,0,a),t++,i++}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"_removeChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}},{key:"_setAttribute",value:function(t,e){e=String(e),this._fireChange("attributes",this),"class"==t?nr(this._classes,e):"style"==t?this._styles.setTo(e):this._attrs.set(t,e)}},{key:"_removeAttribute",value:function(t){return this._fireChange("attributes",this),"class"==t?this._classes.size>0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}},{key:"_addClass",value:function(t){this._fireChange("attributes",this);var e,n=b(Xn(t));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._classes.add(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_removeClass",value:function(t){this._fireChange("attributes",this);var e,n=b(Xn(t));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._classes.delete(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_setStyle",value:function(t,e){this._fireChange("attributes",this),Pt(t)?this._styles.set(t):this._styles.set(t,e)}},{key:"_removeStyle",value:function(t){this._fireChange("attributes",this);var e,n=b(Xn(t));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._styles.remove(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_setCustomProperty",value:function(t,e){this._customProperties.set(t,e)}},{key:"_removeCustomProperty",value:function(t){return this._customProperties.delete(t)}}])}(ci);function nr(t,e){var n=e.split(/\s+/);t.clear(),n.forEach((function(e){return t.add(e)}))}er.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t};var ir=function(t){function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=_(this,e,[].concat(i))).getFillerOffset=rr,t}return C(e,t),M(e)}(er);function rr(){var t=k(this.getChildren()),e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;var n,i=b(t);try{for(i.s();!(n=i.n()).done;){if(!n.value.is("uiElement"))return null}}catch(t){i.e(t)}finally{i.f()}return this.childCount}ir.prototype.is=function(t,e){return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};var or=function(t){function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t=_(this,e,[].concat(i));var o=i[0];return t.set("isReadOnly",!1),t.set("isFocused",!1),t.bind("isReadOnly").to(o),t.bind("isFocused").to(o,"isFocused",(function(e){return e&&o.selection.editableElement==t})),t.listenTo(o.selection,"change",(function(){t.isFocused=o.isFocused&&o.selection.editableElement==t})),t}return C(e,t),M(e,[{key:"destroy",value:function(){this.stopListening()}}])}(et(ir));or.prototype.is=function(t,e){return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};var ar=Symbol("rootName"),sr=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t,n])).rootName="main",i}return C(e,t),M(e,[{key:"rootName",get:function(){return this.getCustomProperty(ar)},set:function(t){this._setCustomProperty(ar,t)}},{key:"_name",set:function(t){this.name=t}}])}(or);sr.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};var lr=function(){return M((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P(this,t),!e.boundaries&&!e.startPosition)throw new S("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new S("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this.position=cr._createAt(e.startPosition):this.position=cr._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}),[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(t){var e,n,i;do{var r;i=this.position,e=(r=this.next()).done,n=r.value}while(!e&&t(n));e||(this.position=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var t,e=this.position.clone(),n=this.position,i=e.parent;if(null===i.parent&&e.offset===i.childCount)return{done:!0,value:void 0};if(i===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};if(i instanceof ui){if(e.isAtEnd)return this.position=cr._createAfter(i),this._next();t=i.data[e.offset]}else t=i.getChild(e.offset);if(t instanceof er)return this.shallow?e.offset++:e=new cr(t,0),this.position=e,this._formatReturnValue("elementStart",t,n,e,1);if(t instanceof ui){if(this.singleCharacters)return e=new cr(t,0),this.position=e,this._next();var r,o=t.data.length;return t==this._boundaryEndParent?(o=this.boundaries.end.offset,r=new di(t,0,o),e=cr._createAfter(r)):(r=new di(t,0,t.data.length),e.offset++),this.position=e,this._formatReturnValue("text",r,n,e,o)}if("string"==typeof t){var a;a=this.singleCharacters?1:(i===this._boundaryEndParent?this.boundaries.end.offset:i.data.length)-e.offset;var s=new di(i,e.offset,a);return e.offset+=a,this.position=e,this._formatReturnValue("text",s,n,e,a)}return e=cr._createAfter(i),this.position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",i,n,e)}},{key:"_previous",value:function(){var t,e=this.position.clone(),n=this.position,i=e.parent;if(null===i.parent&&0===e.offset)return{done:!0,value:void 0};if(i==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};if(i instanceof ui){if(e.isAtStart)return this.position=cr._createBefore(i),this._previous();t=i.data[e.offset-1]}else t=i.getChild(e.offset-1);if(t instanceof er)return this.shallow?(e.offset--,this.position=e,this._formatReturnValue("elementStart",t,n,e,1)):(e=new cr(t,t.childCount),this.position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",t,n,e));if(t instanceof ui){if(this.singleCharacters)return e=new cr(t,t.data.length),this.position=e,this._previous();var r,o=t.data.length;if(t==this._boundaryStartParent){var a=this.boundaries.start.offset;o=(r=new di(t,a,t.data.length-a)).data.length,e=cr._createBefore(r)}else r=new di(t,0,t.data.length),e.offset--;return this.position=e,this._formatReturnValue("text",r,n,e,o)}if("string"==typeof t){var s;if(this.singleCharacters)s=1;else{var l=i===this._boundaryStartParent?this.boundaries.start.offset:0;s=e.offset-l}e.offset-=s;var c=new di(i,e.offset,s);return this.position=e,this._formatReturnValue("text",c,n,e,s)}return e=cr._createBefore(i),this.position=e,this._formatReturnValue("elementStart",i,n,e,1)}},{key:"_formatReturnValue",value:function(t,e,n,i,r){return e instanceof di&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=cr._createAfter(e.textNode):(i=cr._createAfter(e.textNode),this.position=i)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=cr._createBefore(e.textNode):(i=cr._createBefore(e.textNode),this.position=i))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}}])}(),cr=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e)).parent=t,i.offset=n,i}return C(e,t),M(e,[{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var t=this.parent;!(t instanceof or);){if(!t.parent)return null;t=t.parent}return t}},{key:"getShiftedBy",value:function(t){var n=e._createAt(this),i=n.offset+t;return n.offset=i<0?0:i,n}},{key:"getLastMatchingPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.startPosition=this;var n=new lr(e);return n.skip(t),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(t){for(var e=this.getAncestors(),n=t.getAncestors(),i=0;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-1]}},{key:"isEqual",value:function(t){return this.parent==t.parent&&this.offset==t.offset}},{key:"isBefore",value:function(t){return"before"==this.compareWith(t)}},{key:"isAfter",value:function(t){return"after"==this.compareWith(t)}},{key:"compareWith",value:function(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";var e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);var i=si(e,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return e[i]<n[i]?"before":"after"}}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.startPosition=this,new lr(t)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var i=t;if("end"==n)n=i.is("$text")?i.data.length:i.childCount;else{if("before"==n)return this._createBefore(i);if("after"==n)return this._createAfter(i);if(0!==n&&!n)throw new S("view-createpositionat-offset-required",i)}return new e(i,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new S("view-position-after-root",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new S("view-position-before-root",t,{root:t});return new e(t.parent,t.index)}}])}(ai);cr.prototype.is=function(t){return"position"===t||"view:position"===t};var ur=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return P(this,e),(n=_(this,e)).start=t.clone(),n.end=i?i.clone():t.clone(),n}return C(e,t),M(e,[{key:Symbol.iterator,value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(new lr({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(dr,{direction:"backward"}),n=this.end.getLastMatchingPosition(dr);return t.parent.is("$text")&&t.isAtStart&&(t=cr._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=cr._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(dr);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(dr,{direction:"backward"}),i=t.nodeAfter,r=n.nodeBefore;return i&&i.is("$text")&&(t=new cr(i,0)),r&&r.is("$text")&&(n=new cr(r,r.data.length)),new e(t,n)}},{key:"isEqual",value:function(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}},{key:"containsPosition",value:function(t){return t.isAfter(this.start)&&t.isBefore(this.end)}},{key:"containsRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.boundaries=this,new lr(t)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m().mark((function n(){var i,r,o,a;return m().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.boundaries=t,e.ignoreElementEnd=!0,i=new lr(e),r=b(i),n.prev=3,r.s();case 5:if((o=r.n()).done){n.next=11;break}return a=o.value,n.next=9,a.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),r.e(n.t0);case 16:return n.prev=16,r.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m().mark((function n(){var i,r,o,a;return m().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.boundaries=t,i=new lr(e),n.next=4,i.position;case 4:r=b(i),n.prev=5,r.s();case 7:if((o=r.n()).done){n.next=13;break}return a=o.value,n.next=11,a.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),r.e(n.t0);case 18:return n.prev=18,r.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"isIntersecting",value:function(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}}],[{key:"_createFromParentsAndOffsets",value:function(t,e,n,i){return new this(new cr(t,e),new cr(n,i))}},{key:"_createFromPositionAndShift",value:function(t,e){var n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}},{key:"_createOn",value:function(t){var e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(cr._createBefore(t),e)}}])}(ai);function dr(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}function hr(t){var e,n=0,i=b(t);try{for(i.s();!(e=i.n()).done;){e.value;n++}}catch(t){i.e(t)}finally{i.f()}return n}ur.prototype.is=function(t){return"range"===t||"view:range"===t};var fr=function(t){function e(){var t,n;return P(this,e),(n=_(this,e))._ranges=[],n._lastRangeBackward=!1,n._isFake=!1,n._fakeSelectionLabel="",arguments.length&&(t=n).setTo.apply(t,arguments),n}return C(e,t),M(e,[{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}},{key:"getRanges",value:m().mark((function t(){var e,n,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=b(this._ranges),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=n.value,t.next=7,i.clone();case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var t,e=null,n=b(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.start.isBefore(e.start)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?e.clone():null}},{key:"getLastRange",value:function(){var t,e=null,n=b(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.end.isAfter(e.end)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?e.clone():null}},{key:"getFirstPosition",value:function(){var t=this.getFirstRange();return t?t.start.clone():null}},{key:"getLastPosition",value:function(){var t=this.getLastRange();return t?t.end.clone():null}},{key:"isEqual",value:function(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;var e,n=b(this._ranges);try{for(n.s();!(e=n.n()).done;){var i,r=e.value,o=!1,a=b(t._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(r.isEqual(s)){o=!0;break}}}catch(t){a.e(t)}finally{a.f()}if(!o)return!1}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"isSimilar",value:function(t){if(this.isBackward!=t.isBackward)return!1;var e=hr(this.getRanges());if(e!=hr(t.getRanges()))return!1;if(0==e)return!0;var n,i=b(this.getRanges());try{for(i.s();!(n=i.n()).done;){var r=n.value;r=r.getTrimmed();var o,a=!1,s=b(t.getRanges());try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l=l.getTrimmed(),r.start.isEqual(l.start)&&r.end.isEqual(l.end)){a=!0;break}}}catch(t){s.e(t)}finally{s.f()}if(!a)return!1}}catch(t){i.e(t)}finally{i.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n[0],o=n[1],a=n[2];if("object"==N(o)&&(a=o,o=void 0),null===r)this._setRanges([]),this._setFakeOptions(a);else if(r instanceof e||r instanceof pr)this._setRanges(r.getRanges(),r.isBackward),this._setFakeOptions({fake:r.isFake,label:r.fakeSelectionLabel});else if(r instanceof ur)this._setRanges([r],a&&a.backward),this._setFakeOptions(a);else if(r instanceof cr)this._setRanges([new ur(r)]),this._setFakeOptions(a);else if(r instanceof ci){var s,l=!!a&&!!a.backward;if(void 0===o)throw new S("view-selection-setto-required-second-parameter",this);s="in"==o?ur._createIn(r):"on"==o?ur._createOn(r):new ur(cr._createAt(r,o)),this._setRanges([s],l),this._setFakeOptions(a)}else{if(!Kn(r))throw new S("view-selection-setto-not-selectable",this);this._setRanges(r,a&&a.backward),this._setFakeOptions(a)}this.fire("change")}},{key:"setFocus",value:function(t,e){if(null===this.anchor)throw new S("view-selection-setfocus-no-ranges",this);var n=cr._createAt(t,e);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new ur(n,i),!0):this._addRange(new ur(i,n)),this.fire("change")}}},{key:"_setRanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=Array.from(t),this._ranges=[];var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._addRange(r)}}catch(t){i.e(t)}finally{i.f()}this._lastRangeBackward=!!e}},{key:"_setFakeOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}},{key:"_addRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(t instanceof ur))throw new S("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}},{key:"_pushRange",value:function(t){var e,n=b(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(t.isIntersecting(i))throw new S("view-selection-range-intersects",this,{addedRange:t,intersectingRange:i})}}catch(t){n.e(t)}finally{n.f()}this._ranges.push(new ur(t.start,t.end))}}])}(F(ai));fr.prototype.is=function(t){return"selection"===t||"view:selection"===t};var pr=function(t){function e(){var t,n;return P(this,e),(n=_(this,e))._selection=new fr,n._selection.delegate("change").to(A(n)),arguments.length&&(t=n._selection).setTo.apply(t,arguments),n}return C(e,t),M(e,[{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(t){return this._selection.isEqual(t)}},{key:"isSimilar",value:function(t){return this._selection.isSimilar(t)}},{key:"_setTo",value:function(){var t;(t=this._selection).setTo.apply(t,arguments)}},{key:"_setFocus",value:function(t,e){this._selection.setFocus(t,e)}}])}(F(ai));pr.prototype.is=function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t};var gr=function(t){function e(t,n,i){var r;return P(this,e),(r=_(this,e,[t,n])).startRange=i,r._eventPhase="none",r._currentTarget=null,r}return C(e,t),M(e,[{key:"eventPhase",get:function(){return this._eventPhase}},{key:"currentTarget",get:function(){return this._currentTarget}}])}(d),mr=Symbol("bubbling contexts");function vr(t){return function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"fire",value:function(t){try{var e=t instanceof d?t:new d(this,t),n=_r(this);if(!n.size)return;for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(kr(e,"capturing",this),yr.apply(void 0,[n,"$capture",e].concat(r)))return e.return;var a=e.startRange||this.selection.getFirstRange(),s=a?a.getContainedElement():null,l=!!s&&Boolean(wr(n,s)),c=s||function(t){if(!t)return null;var e=t.start.parent,n=t.end.parent,i=e.getPath(),r=n.getPath();return i.length>r.length?e:n}(a);if(kr(e,"atTarget",c),!l){if(yr.apply(void 0,[n,"$text",e].concat(r)))return e.return;kr(e,"bubbling",c)}for(;c;){if(c.is("rootElement")){if(yr.apply(void 0,[n,"$root",e].concat(r)))return e.return}else if(c.is("element")&&yr.apply(void 0,[n,c.name,e].concat(r)))return e.return;if(yr.apply(void 0,[n,c,e].concat(r)))return e.return;kr(e,"bubbling",c=c.parent)}return kr(e,"bubbling",this),yr.apply(void 0,[n,"$document",e].concat(r)),e.return}catch(t){S.rethrowUnexpectedError(t,this)}}},{key:"_addEventListener",value:function(t,e,n){var i,r=Xn(n.context||"$document"),o=_r(this),a=b(r);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=o.get(s);l||(l=new H,o.set(s,l)),this.listenTo(l,t,e,n)}}catch(t){a.e(t)}finally{a.f()}}},{key:"_removeEventListener",value:function(t,e){var n,i=b(_r(this).values());try{for(i.s();!(n=i.n()).done;){var r=n.value;this.stopListening(r,t,e)}}catch(t){i.e(t)}finally{i.f()}}}])}(t)}var br=vr(Object);function kr(t,e,n){t instanceof gr&&(t._eventPhase=e,t._currentTarget=n)}function yr(t,e,n){for(var i="string"==typeof e?t.get(e):wr(t,e),r=arguments.length,o=new Array(r>3?r-3:0),a=3;a<r;a++)o[a-3]=arguments[a];return!!i&&(i.fire.apply(i,[n].concat(o)),n.stop.called)}function wr(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];if("function"==typeof o&&o(e))return a}}catch(t){i.e(t)}finally{i.f()}return null}function _r(t){return t[mr]||(t[mr]=new Map),t[mr]}["fire","_addEventListener","_removeEventListener"].forEach((function(t){vr[t]=br.prototype[t]}));var Ar=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).selection=new pr,n.roots=new Zn({idProperty:"rootName"}),n.stylesProcessor=t,n.set("isReadOnly",!1),n.set("isFocused",!1),n.set("isSelecting",!1),n.set("isComposing",!1),n._postFixers=new Set,n}return C(e,t),M(e,[{key:"getRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(t)}},{key:"registerPostFixer",value:function(t){this._postFixers.add(t)}},{key:"destroy",value:function(){this.roots.map((function(t){return t.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(t){var e=!1;do{var n,i=b(this._postFixers);try{for(i.s();!(n=i.n()).done;){if(e=(0,n.value)(t))break}}catch(t){i.e(t)}finally{i.f()}}while(e)}}])}(vr(nt)),Cr=function(t){function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=_(this,e,[].concat(i))).getFillerOffset=Dr,t._priority=10,t._id=null,t._clonesGroup=null,t}return C(e,t),M(e,[{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}},{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new S("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}},{key:"isSimilar",value:function(t){return null!==this.id||null!==t.id?this.id===t.id:p(e,"isSimilar",this,3)([t])&&this.priority==t.priority}},{key:"_clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=p(e,"_clone",this,3)([t]);return n._priority=this._priority,n._id=this._id,n}}])}(er);Cr.DEFAULT_PRIORITY=10;var xr=Cr;function Dr(){if(Er(this))return null;for(var t=this.parent;t&&t.is("attributeElement");){if(Er(t)>1)return null;t=t.parent}return!t||Er(t)>1?null:this.childCount}function Er(t){return Array.from(t.getChildren()).filter((function(t){return!t.is("uiElement")})).length}Cr.prototype.is=function(t,e){return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};var Sr=function(t){function e(t,n,i,r){var o;return P(this,e),(o=_(this,e,[t,n,i,r])).getFillerOffset=Tr,o}return C(e,t),M(e,[{key:"_insertChild",value:function(t,e){if(e&&(e instanceof ci||Array.from(e).length>0))throw new S("view-emptyelement-cannot-add",[this,e]);return 0}}])}(er);function Tr(){return null}Sr.prototype.is=function(t,e){return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};var Ir=function(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}(),Mr={isMac:Pr(Ir),isWindows:function(t){return t.indexOf("windows")>-1}(Ir),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(Ir),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(Ir),isiOS:function(t){return!!t.match(/iphone|ipad/i)||Pr(t)&&navigator.maxTouchPoints>0}(Ir),isAndroid:function(t){return t.indexOf("android")>-1}(Ir),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}(Ir),features:{isRegExpUnicodePropertySupported:function(){var t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()}},Or=Mr;function Pr(t){return t.indexOf("macintosh")>-1}var Nr={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Br={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Lr=function(){for(var t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896},e=65;e<=90;e++)t[String.fromCharCode(e).toLowerCase()]=e;for(var n=48;n<=57;n++)t[n-48]=n;for(var i=112;i<=123;i++)t["f"+(i-111)]=i;var r,o=b("`-=[];',./\\");try{for(o.s();!(r=o.n()).done;){var a=r.value;t[a]=a.charCodeAt(0)}}catch(t){o.e(t)}finally{o.f()}return t}(),jr=Object.fromEntries(Object.entries(Lr).map((function(t){var e=v(t,2),n=e[0];return[e[1],n.charAt(0).toUpperCase()+n.slice(1)]})));function Rr(t){var e;if("string"==typeof t){if(!(e=Lr[t.toLowerCase()]))throw new S("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?Lr.alt:0)+(t.ctrlKey?Lr.ctrl:0)+(t.shiftKey?Lr.shift:0)+(t.metaKey?Lr.cmd:0);return e}function zr(t){return"string"==typeof t&&(t=function(t){return t.split("+").map((function(t){return t.trim()}))}(t)),t.map((function(t){return"string"==typeof t?function(t){if(t.endsWith("!"))return Rr(t.slice(0,-1));var e=Rr(t);return Or.isMac&&e==Lr.ctrl?Lr.cmd:e}(t):t})).reduce((function(t,e){return e+t}),0)}function Fr(t){var e=zr(t);return Object.entries(Or.isMac?Nr:Br).reduce((function(t,n){var i=v(n,2),r=i[0],o=i[1];return!!(e&Lr[r])&&(e&=~Lr[r],t+=o),t}),"")+(e?jr[e]:"")}function Hr(t,e){var n="ltr"===e;switch(t){case Lr.arrowleft:return n?"left":"right";case Lr.arrowright:return n?"right":"left";case Lr.arrowup:return"up";case Lr.arrowdown:return"down"}}var Vr=function(t){function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=_(this,e,[].concat(i))).getFillerOffset=Ur,t}return C(e,t),M(e,[{key:"_insertChild",value:function(t,e){if(e&&(e instanceof ci||Array.from(e).length>0))throw new S("view-uielement-cannot-add",[this,e]);return 0}},{key:"render",value:function(t,e){return this.toDomElement(t)}},{key:"toDomElement",value:function(t){var e,n=t.createElement(this.name),i=b(this.getAttributeKeys());try{for(i.s();!(e=i.n()).done;){var r=e.value;n.setAttribute(r,this.getAttribute(r))}}catch(t){i.e(t)}finally{i.f()}return n}}])}(er);function Ur(){return null}Vr.prototype.is=function(t,e){return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};var Wr=function(t){function e(){var t;P(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=_(this,e,[].concat(i))).getFillerOffset=qr,t}return C(e,t),M(e,[{key:"_insertChild",value:function(t,e){if(e&&(e instanceof ci||Array.from(e).length>0))throw new S("view-rawelement-cannot-add",[this,e]);return 0}},{key:"render",value:function(){}}])}(er);function qr(){return null}Wr.prototype.is=function(t,e){return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t};var $r=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e)).document=t,i._children=[],n&&i._insertChild(0,n),i}return C(e,t),M(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}},{key:"_appendChild",value:function(t){return this._insertChild(this.childCount,t)}},{key:"getChild",value:function(t){return this._children[t]}},{key:"getChildIndex",value:function(t){return this._children.indexOf(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(t,e){this._fireChange("children",this);var n,i=0,r=function(t,e){return"string"==typeof e?[new ui(t,e)]:(Kn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new ui(t,e):e instanceof di?new ui(t,e.data):e})))}(this.document,e),o=b(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,this._children.splice(t,0,a),t++,i++}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"_removeChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}},{key:"_fireChange",value:function(t,e){this.fire("change:"+t,e)}}])}(F(ai));$r.prototype.is=function(t){return"documentFragment"===t||"view:documentFragment"===t};var Yr=function(){return M((function t(e){P(this,t),this.document=e,this._cloneGroups=new Map,this._slotFactory=null}),[{key:"setSelection",value:function(){var t;(t=this.document.selection)._setTo.apply(t,arguments)}},{key:"setSelectionFocus",value:function(){var t;(t=this.document.selection)._setFocus.apply(t,arguments)}},{key:"createDocumentFragment",value:function(t){return new $r(this.document,t)}},{key:"createText",value:function(t){return new ui(this.document,t)}},{key:"createAttributeElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new xr(this.document,t,e);return"number"==typeof i.priority&&(r._priority=i.priority),i.id&&(r._id=i.id),i.renderUnsafeAttributes&&(n=r._unsafeAttributesToRender).push.apply(n,k(i.renderUnsafeAttributes)),r}},{key:"createContainerElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=null;Pt(i)?r=i:o=i;var a=new ir(this.document,t,e,o);return r.renderUnsafeAttributes&&(n=a._unsafeAttributesToRender).push.apply(n,k(r.renderUnsafeAttributes)),a}},{key:"createEditableElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new or(this.document,t,e);return i.renderUnsafeAttributes&&(n=r._unsafeAttributesToRender).push.apply(n,k(i.renderUnsafeAttributes)),r}},{key:"createEmptyElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Sr(this.document,t,e);return i.renderUnsafeAttributes&&(n=r._unsafeAttributesToRender).push.apply(n,k(i.renderUnsafeAttributes)),r}},{key:"createUIElement",value:function(t,e,n){var i=new Vr(this.document,t,e);return n&&(i.render=n),i}},{key:"createRawElement",value:function(t,e,n){var i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new Wr(this.document,t,e);return n&&(o.render=n),r.renderUnsafeAttributes&&(i=o._unsafeAttributesToRender).push.apply(i,k(r.renderUnsafeAttributes)),o}},{key:"setAttribute",value:function(t,e,n){n._setAttribute(t,e)}},{key:"removeAttribute",value:function(t,e){e._removeAttribute(t)}},{key:"addClass",value:function(t,e){e._addClass(t)}},{key:"removeClass",value:function(t,e){e._removeClass(t)}},{key:"setStyle",value:function(t,e,n){Pt(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}},{key:"removeStyle",value:function(t,e){e._removeStyle(t)}},{key:"setCustomProperty",value:function(t,e,n){n._setCustomProperty(t,e)}},{key:"removeCustomProperty",value:function(t,e){return e._removeCustomProperty(t)}},{key:"breakAttributes",value:function(t){return t instanceof cr?this._breakAttributes(t):this._breakAttributesRange(t)}},{key:"breakContainer",value:function(t){var e=t.parent;if(!e.is("containerElement"))throw new S("view-writer-break-non-container-element",this.document);if(!e.parent)throw new S("view-writer-break-root",this.document);if(t.isAtStart)return cr._createBefore(e);if(!t.isAtEnd){var n=e._clone(!1);this.insert(cr._createAfter(e),n);var i=new ur(t,cr._createAt(e,"end")),r=new cr(n,0);this.move(i,r)}return cr._createAfter(e)}},{key:"mergeAttributes",value:function(t){var e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){var i=n.parent,r=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new cr(i,r))}var o=n.getChild(e-1),a=n.getChild(e);if(!o||!a)return t;if(o.is("$text")&&a.is("$text"))return Jr(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new cr(o,s))}return t}},{key:"mergeContainers",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new S("view-writer-merge-containers-invalid-position",this.document);var i=e.getChild(e.childCount-1),r=i instanceof ui?cr._createAt(i,"end"):cr._createAt(e,"end");return this.move(ur._createIn(n),cr._createAt(e,"end")),this.remove(ur._createOn(n)),r}},{key:"insert",value:function(t,e){to(e=Kn(e)?k(e):[e],this.document);var n,i=e.reduce((function(t,e){var n=t[t.length-1],i=!e.is("uiElement");return n&&n.breakAttributes==i?n.nodes.push(e):t.push({breakAttributes:i,nodes:[e]}),t}),[]),r=null,o=t,a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.nodes,c=s.breakAttributes,u=this._insertNodes(o,l,c);r||(r=u.start),o=u.end}}catch(t){a.e(t)}finally{a.f()}return r?new ur(r,o):new ur(t)}},{key:"remove",value:function(t){var e=t instanceof ur?t:ur._createOn(t);if(no(e,this.document),e.isCollapsed)return new $r(this.document);var n,i=this._breakAttributesRange(e,!0),r=i.start,o=i.end,a=r.parent,s=o.offset-r.offset,l=a._removeChildren(r.offset,s),c=b(l);try{for(c.s();!(n=c.n()).done;){var u=n.value;this._removeFromClonedElementsGroup(u)}}catch(t){c.e(t)}finally{c.f()}var d=this.mergeAttributes(r);return e.start=d,e.end=d.clone(),new $r(this.document,l)}},{key:"clear",value:function(t,e){no(t,this.document);var n,i=b(t.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.item,a=void 0;if(o.is("element")&&e.isSimilar(o))a=ur._createOn(o);else if(!r.nextPosition.isAfter(t.start)&&o.is("$textProxy")){var s=o.getAncestors().find((function(t){return t.is("element")&&e.isSimilar(t)}));s&&(a=ur._createIn(s))}a&&(a.end.isAfter(t.end)&&(a.end=t.end),a.start.isBefore(t.start)&&(a.start=t.start),this.remove(a))}}catch(t){i.e(t)}finally{i.f()}}},{key:"move",value:function(t,e){var n;if(e.isAfter(t.end)){var i=(e=this._breakAttributes(e,!0)).parent,r=i.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=i.childCount-r}else n=this.remove(t);return this.insert(e,n)}},{key:"wrap",value:function(t,e){if(!(e instanceof xr))throw new S("view-writer-wrap-invalid-attribute",this.document);if(no(t,this.document),t.isCollapsed){var n=t.start;n.parent.is("element")&&(r=n.parent,!Array.from(r.getChildren()).some((function(t){return!t.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(t){return t.item.is("uiElement")}))),n=this._wrapPosition(n,e);var i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(n),new ur(n)}return this._wrapRange(t,e);var r}},{key:"unwrap",value:function(t,e){if(!(e instanceof xr))throw new S("view-writer-unwrap-invalid-attribute",this.document);if(no(t,this.document),t.isCollapsed)return t;var n=this._breakAttributesRange(t,!0),i=n.start,r=n.end,o=i.parent,a=this._unwrapChildren(o,i.offset,r.offset,e),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var l=this.mergeAttributes(a.end);return new ur(s,l)}},{key:"rename",value:function(t,e){var n=new ir(this.document,t,e.getAttributes());return this.insert(cr._createAfter(e),n),this.move(ur._createIn(e),cr._createAt(n,0)),this.remove(ur._createOn(e)),n}},{key:"clearClonedElementsGroup",value:function(t){this._cloneGroups.delete(t)}},{key:"createPositionAt",value:function(t,e){return cr._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return cr._createAfter(t)}},{key:"createPositionBefore",value:function(t){return cr._createBefore(t)}},{key:"createRange",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D(ur,e)}},{key:"createRangeOn",value:function(t){return ur._createOn(t)}},{key:"createRangeIn",value:function(t){return ur._createIn(t)}},{key:"createSelection",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D(fr,e)}},{key:"createSlot",value:function(t){if(!this._slotFactory)throw new S("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}},{key:"_registerSlotFactory",value:function(t){this._slotFactory=t}},{key:"_clearSlotFactory",value:function(){this._slotFactory=null}},{key:"_insertNodes",value:function(t,e,n){var i,r;if(!(i=n?Gr(t):t.parent.is("$text")?t.parent.parent:t.parent))throw new S("view-writer-invalid-position-container",this.document);r=n?this._breakAttributes(t,!0):t.parent.is("$text")?Zr(t):t;var o,a=i._insertChild(r.offset,e),s=b(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;this._addToClonedElementsGroup(l)}}catch(t){s.e(t)}finally{s.f()}var c=r.getShiftedBy(a),u=this.mergeAttributes(r);u.isEqual(r)||c.offset--;var d=this.mergeAttributes(c);return new ur(u,d)}},{key:"_wrapChildren",value:function(t,e,n,i){for(var r=e,o=[];r<n;){var a=t.getChild(r),s=a.is("$text"),l=a.is("attributeElement");if(l&&this._wrapAttributeElement(i,a))o.push(new cr(t,r));else if(s||!l||Kr(i,a)){var c=i._clone();a._remove(),c._appendChild(a),t._insertChild(r,c),this._addToClonedElementsGroup(c),o.push(new cr(t,r))}else this._wrapChildren(a,0,a.childCount,i);r++}for(var u=0,d=0,h=o;d<h.length;d++){var f=h[d];(f.offset-=u,f.offset!=e)&&(this.mergeAttributes(f).isEqual(f)||(u++,n--))}return ur._createFromParentsAndOffsets(t,e,t,n)}},{key:"_unwrapChildren",value:function(t,e,n,i){for(var r=e,o=[];r<n;){var a=t.getChild(r);if(a.is("attributeElement"))if(a.isSimilar(i)){var s=a.getChildren(),l=a.childCount;a._remove(),t._insertChild(r,s),this._removeFromClonedElementsGroup(a),o.push(new cr(t,r),new cr(t,r+l)),r+=l,n+=l-1}else this._unwrapAttributeElement(i,a)?(o.push(new cr(t,r),new cr(t,r+1)),r++):(this._unwrapChildren(a,0,a.childCount,i),r++);else r++}for(var c=0,u=0,d=o;u<d.length;u++){var h=d[u];(h.offset-=c,h.offset!=e&&h.offset!=n)&&(this.mergeAttributes(h).isEqual(h)||(c++,n--))}return ur._createFromParentsAndOffsets(t,e,t,n)}},{key:"_wrapRange",value:function(t,e){var n=this._breakAttributesRange(t,!0),i=n.start,r=n.end,o=i.parent,a=this._wrapChildren(o,i.offset,r.offset,e),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var l=this.mergeAttributes(a.end);return new ur(s,l)}},{key:"_wrapPosition",value:function(t,e){if(e.isSimilar(t.parent))return Qr(t.clone());t.parent.is("$text")&&(t=Zr(t));var n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},t.parent._insertChild(t.offset,n);var i=new ur(t,t.getShiftedBy(1));this.wrap(i,e);var r=new cr(n.parent,n.index);n._remove();var o=r.nodeBefore,a=r.nodeAfter;return o instanceof ui&&a instanceof ui?Jr(o,a):Qr(r)}},{key:"_wrapAttributeElement",value:function(t,e){if(!io(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var n,i=b(t.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var r=n.value;if("class"!==r&&"style"!==r&&e.hasAttribute(r)&&e.getAttribute(r)!==t.getAttribute(r))return!1}}catch(t){i.e(t)}finally{i.f()}var o,a=b(t.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(e.hasStyle(s)&&e.getStyle(s)!==t.getStyle(s))return!1}}catch(t){a.e(t)}finally{a.f()}var l,c=b(t.getAttributeKeys());try{for(c.s();!(l=c.n()).done;){var u=l.value;"class"!==u&&"style"!==u&&(e.hasAttribute(u)||this.setAttribute(u,t.getAttribute(u),e))}}catch(t){c.e(t)}finally{c.f()}var d,h=b(t.getStyleNames());try{for(h.s();!(d=h.n()).done;){var f=d.value;e.hasStyle(f)||this.setStyle(f,t.getStyle(f),e)}}catch(t){h.e(t)}finally{h.f()}var p,g=b(t.getClassNames());try{for(g.s();!(p=g.n()).done;){var m=p.value;e.hasClass(m)||this.addClass(m,e)}}catch(t){g.e(t)}finally{g.f()}return!0}},{key:"_unwrapAttributeElement",value:function(t,e){if(!io(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var n,i=b(t.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var r=n.value;if("class"!==r&&"style"!==r&&(!e.hasAttribute(r)||e.getAttribute(r)!==t.getAttribute(r)))return!1}}catch(t){i.e(t)}finally{i.f()}if(!e.hasClass.apply(e,k(t.getClassNames())))return!1;var o,a=b(t.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!e.hasStyle(s)||e.getStyle(s)!==t.getStyle(s))return!1}}catch(t){a.e(t)}finally{a.f()}var l,c=b(t.getAttributeKeys());try{for(c.s();!(l=c.n()).done;){var u=l.value;"class"!==u&&"style"!==u&&this.removeAttribute(u,e)}}catch(t){c.e(t)}finally{c.f()}return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}},{key:"_breakAttributesRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.start,i=t.end;if(no(t,this.document),t.isCollapsed){var r=this._breakAttributes(t.start,e);return new ur(r,r)}var o=this._breakAttributes(i,e),a=o.parent.childCount,s=this._breakAttributes(n,e);return o.offset+=o.parent.childCount-a,new ur(s,o)}},{key:"_breakAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new S("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new S("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new S("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&eo(i.parent))return t.clone();if(eo(i))return t.clone();if(i.is("$text"))return this._breakAttributes(Zr(t),e);if(n==i.childCount){var r=new cr(i.parent,i.index+1);return this._breakAttributes(r,e)}if(0===n){var o=new cr(i.parent,i.index);return this._breakAttributes(o,e)}var a=i.index+1,s=i._clone();i.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var l=i.childCount-n,c=i._removeChildren(n,l);s._appendChild(c);var u=new cr(i.parent,a);return this._breakAttributes(u,e)}},{key:"_addToClonedElementsGroup",value:function(t){if(t.root.is("rootElement")){if(t.is("element")){var e,n=b(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._addToClonedElementsGroup(i)}}catch(t){n.e(t)}finally{n.f()}}var r=t.id;if(r){var o=this._cloneGroups.get(r);o||(o=new Set,this._cloneGroups.set(r,o)),o.add(t),t._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(t){if(t.is("element")){var e,n=b(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._removeFromClonedElementsGroup(i)}}catch(t){n.e(t)}finally{n.f()}}var r=t.id;if(r){var o=this._cloneGroups.get(r);o&&o.delete(t)}}}])}();function Gr(t){for(var e=t.parent;!eo(e);){if(!e)return;e=e.parent}return e}function Kr(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function Qr(t){var e=t.nodeBefore;if(e&&e.is("$text"))return new cr(e,e.data.length);var n=t.nodeAfter;return n&&n.is("$text")?new cr(n,0):t}function Zr(t){if(t.offset==t.parent.data.length)return new cr(t.parent.parent,t.parent.index+1);if(0===t.offset)return new cr(t.parent.parent,t.parent.index);var e=t.parent.data.slice(t.offset);return t.parent._data=t.parent.data.slice(0,t.offset),t.parent.parent._insertChild(t.parent.index+1,new ui(t.root.document,e)),new cr(t.parent.parent,t.parent.index+1)}function Jr(t,e){var n=t.data.length;return t._data+=e.data,e._remove(),new cr(t,n)}var Xr=[ui,xr,ir,Sr,Wr,Vr];function to(t,e){var n,i=b(t);try{var r=function(){var t=n.value;if(!Xr.some((function(e){return t instanceof e})))throw new S("view-writer-insert-invalid-node-type",e);t.is("$text")||to(t.getChildren(),e)};for(i.s();!(n=i.n()).done;)r()}catch(t){i.e(t)}finally{i.f()}}function eo(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function no(t,e){var n=Gr(t.start),i=Gr(t.end);if(!n||!i||n!==i)throw new S("view-writer-invalid-range-container",e)}function io(t,e){return null===t.id&&null===e.id}function ro(t){return"[object Text]"==Object.prototype.toString.call(t)}var oo=function(t){return t.createTextNode(" ")},ao=function(t){var e=t.createElement("span");return e.dataset.ckeFiller="true",e.innerText=" ",e},so=function(t){var e=t.createElement("br");return e.dataset.ckeFiller="true",e},lo="⁠".repeat(7);function co(t){return ro(t)&&t.data.substr(0,7)===lo}function uo(t){return 7==t.data.length&&co(t)}function ho(t){return co(t)?t.data.slice(7):t.data}function fo(t,e){if(e.keyCode==Lr.arrowleft){var n=e.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var i=n.getRangeAt(0).startContainer,r=n.getRangeAt(0).startOffset;co(i)&&r<=7&&n.collapse(i,0)}}}function po(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(t,e){return t===e};var r=Array.isArray(t)?t:Array.prototype.slice.call(t),o=Array.isArray(e)?e:Array.prototype.slice.call(e),a=function(t,e,n){var i=go(t,e,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var r=go(mo(t,i),mo(e,i),n);return{firstIndex:i,lastIndexOld:t.length-r,lastIndexNew:e.length-r}}(r,o,n);return i?function(t,e){var n=t.firstIndex,i=t.lastIndexOld,r=t.lastIndexNew;if(-1===n)return Array(e).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),r-n>0&&(o=o.concat(Array(r-n).fill("insert"))),i-n>0&&(o=o.concat(Array(i-n).fill("delete"))),r<e&&(o=o.concat(Array(e-r).fill("equal"))),o}(a,o.length):function(t,e){var n=[],i=e.firstIndex,r=e.lastIndexOld,o=e.lastIndexNew;return o-i>0&&n.push({index:i,type:"insert",values:t.slice(i,o)}),r-i>0&&n.push({index:i+(o-i),type:"delete",howMany:r-i}),n}(o,a)}function go(t,e,n){for(var i=0;i<Math.max(t.length,e.length);i++)if(void 0===t[i]||void 0===e[i]||!n(t[i],e[i]))return i;return-1}function mo(t,e){return t.slice(e).reverse()}function vo(t,e,n){n=n||function(t,e){return t===e};var i,r,o=t.length,a=e.length;if(o>200||a>200||o+a>300)return vo.fastDiff(t,e,n,!0);if(a<o){var s=t;t=e,e=s,i="delete",r="insert"}else i="insert",r="delete";var l=t.length,c=e.length,u=c-l,d={},h={};function f(o){var a=(void 0!==h[o-1]?h[o-1]:-1)+1,s=void 0!==h[o+1]?h[o+1]:-1,u=a>s?-1:1;d[o+u]&&(d[o]=d[o+u].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?i:r);for(var f=Math.max(a,s),p=f-o;p<l&&f<c&&n(t[p],e[f]);)p++,f++,d[o].push("equal");return f}var p,g=0;do{for(p=-g;p<u;p++)h[p]=f(p);for(p=u+g;p>u;p--)h[p]=f(p);h[u]=f(u),g++}while(h[u]!==c);return d[u].slice(1)}function bo(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function ko(t){var e=t.parentNode;e&&e.removeChild(t)}function yo(t){return t&&t.nodeType===Node.COMMENT_NODE}function wo(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}vo.fastDiff=po;var _o=o(6062),Ao=o.n(_o),Co=o(9315);Ao()(Co.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Co.Z.locals;var xo=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e)).domDocuments=new Set,i.domConverter=t,i.markedAttributes=new Set,i.markedChildren=new Set,i.markedTexts=new Set,i.selection=n,i.set("isFocused",!1),i.set("isSelecting",!1),Or.isBlink&&!Or.isAndroid&&i.on("change:isSelecting",(function(){i.isSelecting||i.render()})),i._inlineFiller=null,i._fakeSelectionContainer=null,i}return C(e,t),M(e,[{key:"markToSync",value:function(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t)throw new S("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}},{key:"render",value:function(){var t,e=null,n=!(Or.isBlink&&!Or.isAndroid&&this.isSelecting),i=b(this.markedChildren);try{for(i.s();!(t=i.n()).done;){var r=t.value;this._updateChildrenMappings(r)}}catch(t){i.e(t)}finally{i.f()}n?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&((e=this.domConverter.domPositionToView(this._inlineFiller))&&e.parent.is("$text")&&(e=cr._createBefore(e.parent)));var o,a=b(this.markedAttributes);try{for(a.s();!(o=a.n()).done;){var s=o.value;this._updateAttrs(s)}}catch(t){a.e(t)}finally{a.f()}var l,c=b(this.markedChildren);try{for(c.s();!(l=c.n()).done;){var u=l.value;this._updateChildren(u,{inlineFillerPosition:e})}}catch(t){c.e(t)}finally{c.f()}var d,h=b(this.markedTexts);try{for(h.s();!(d=h.n()).done;){var f=d.value;!this.markedChildren.has(f.parent)&&this.domConverter.mapViewToDom(f.parent)&&this._updateText(f,{inlineFillerPosition:e})}}catch(t){h.e(t)}finally{h.f()}if(n)if(e){var p=this.domConverter.viewPositionToDom(e),g=p.parent.ownerDocument;co(p.parent)?this._inlineFiller=p.parent:this._inlineFiller=Do(g,p.parent,p.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(t){if(this.domConverter.mapViewToDom(t)){var e=Array.from(this.domConverter.mapViewToDom(t).childNodes),n=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),i=this._diffNodeLists(e,n),r=this._findReplaceActions(i,e,n);if(-1!==r.indexOf("replace")){var o,a={equal:0,insert:0,delete:0},s=b(r);try{for(s.s();!(o=s.n()).done;){var l=o.value;if("replace"===l){var c=a.equal+a.insert,u=a.equal+a.delete,d=t.getChild(c);!d||d.is("uiElement")||d.is("rawElement")||this._updateElementMappings(d,e[u]),ko(n[c]),a.equal++}else a[l]++}}catch(t){s.e(t)}finally{s.f()}}}}},{key:"_updateElementMappings",value:function(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}},{key:"_getInlineFillerPosition",value:function(){var t=this.selection.getFirstPosition();return t.parent.is("$text")?cr._createBefore(t.parent):t}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&ro(e.parent)&&co(e.parent))}},{key:"_removeInlineFiller",value:function(){var t=this._inlineFiller;if(!co(t))throw new S("view-renderer-filler-was-lost",this);uo(t)?t.remove():t.data=t.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;var e=t.findAncestor((function(t){return t.hasAttribute("contenteditable")}));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;if(n===e.getFillerOffset())return!1;var i=t.nodeBefore,r=t.nodeAfter;return!(i instanceof ui||r instanceof ui)}},{key:"_updateText",value:function(t,e){var n=this.domConverter.findCorrespondingDomText(t),i=this.domConverter.viewToDom(t),r=n.data,o=i.data,a=e.inlineFillerPosition;if(a&&a.parent==t.parent&&a.offset==t.index&&(o=lo+o),r!=o){var s,l=b(po(r,o));try{for(l.s();!(s=l.n()).done;){var c=s.value;"insert"===c.type?n.insertData(c.index,c.values.join("")):n.deleteData(c.index,c.howMany)}}catch(t){l.e(t)}finally{l.f()}}}},{key:"_updateAttrs",value:function(t){var e=this.domConverter.mapViewToDom(t);if(e){var n,i=Array.from(e.attributes).map((function(t){return t.name})),r=b(t.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var o=n.value;this.domConverter.setDomElementAttribute(e,o,t.getAttribute(o),t)}}catch(t){r.e(t)}finally{r.f()}var a,s=b(i);try{for(s.s();!(a=s.n()).done;){var l=a.value;t.hasAttribute(l)||this.domConverter.removeDomElementAttribute(e,l)}}catch(t){s.e(t)}finally{s.f()}}}},{key:"_updateChildren",value:function(t,e){var n=this.domConverter.mapViewToDom(t);if(n){var i=e.inlineFillerPosition,r=this.domConverter.mapViewToDom(t).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));i&&i.parent===t&&Do(n.ownerDocument,o,i.offset);var a,s=this._diffNodeLists(r,o),l=0,c=new Set,u=b(s);try{for(u.s();!(a=u.n()).done;){var d=a.value;"delete"===d?(c.add(r[l]),ko(r[l])):"equal"===d&&l++}}catch(t){u.e(t)}finally{u.f()}l=0;var h,f=b(s);try{for(f.s();!(h=f.n()).done;){var p=h.value;"insert"===p?(bo(n,l,o[l]),l++):"equal"===p&&(this._markDescendantTextToSync(this.domConverter.domToView(o[l])),l++)}}catch(t){f.e(t)}finally{f.f()}var g,m=b(c);try{for(m.s();!(g=m.n()).done;){var v=g.value;v.parentNode||this.domConverter.unbindDomElement(v)}}catch(t){m.e(t)}finally{m.f()}}}},{key:"_diffNodeLists",value:function(t,e){return t=function(t,e){var n=Array.from(t);return 0!=n.length&&e?(n[n.length-1]==e&&n.pop(),n):n}(t,this._fakeSelectionContainer),vo(t,e,So.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(t,e,n){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;var i,r=[],o=[],a=[],s={equal:0,insert:0,delete:0},l=b(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;"insert"===c?a.push(n[s.equal+s.insert]):"delete"===c?o.push(e[s.equal+s.delete]):(r=r.concat(vo(o,a,Eo).map((function(t){return"equal"===t?"replace":t}))),r.push("equal"),o=[],a=[]),s[c]++}}catch(t){l.e(t)}finally{l.f()}return r.concat(vo(o,a,Eo).map((function(t){return"equal"===t?"replace":t})))}},{key:"_markDescendantTextToSync",value:function(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element")){var e,n=b(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._markDescendantTextToSync(i)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(!Or.isBlink||Or.isAndroid||!this.isSelecting||this.markedChildren.size){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):(this._removeFakeSelection(),this._updateDomSelection(t)))}}},{key:"_updateFakeSelection",value:function(t){var e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){var e=t.createElement("div");return e.className="ck-fake-selection-container",Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e}(e));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(t)){n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var i=e.getSelection(),r=e.createRange();i.removeAllRanges(),r.selectNodeContents(n),i.addRange(r)}}},{key:"_updateDomSelection",value:function(t){var e=t.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(e)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.collapse(n.parent,n.offset),e.extend(i.parent,i.offset),Or.isGecko&&function(t,e){var n=t.parent;if(n.nodeType==Node.ELEMENT_NODE&&t.offset==n.childNodes.length-1){var i=n.childNodes[t.offset];i&&"BR"==i.tagName&&e.addRange(e.getRangeAt(0))}}(i,e)}}},{key:"_domSelectionNeedsUpdate",value:function(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;var e=t&&this.domConverter.domSelectionToView(t);return!(e&&this.selection.isEqual(e)||!this.selection.isCollapsed&&this.selection.isSimilar(e))}},{key:"_fakeSelectionNeedsUpdate",value:function(t){var e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var t,e=b(this.domDocuments);try{for(e.s();!(t=e.n()).done;){var n=t.value,i=n.getSelection();if(i.rangeCount){var r=n.activeElement,o=this.domConverter.mapDomToView(r);r&&o&&i.removeAllRanges()}}}catch(t){e.e(t)}finally{e.f()}}},{key:"_removeFakeSelection",value:function(){var t=this._fakeSelectionContainer;t&&t.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}])}(nt);function Do(t,e,n){var i=e instanceof Array?e:e.childNodes,r=i[n];if(ro(r))return r.data=lo+r.data,r;var o=t.createTextNode(lo);return Array.isArray(e)?i.splice(n,0,o):bo(e,n,o),o}function Eo(t,e){return wo(t)&&wo(e)&&!ro(t)&&!ro(e)&&!yo(t)&&!yo(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function So(t,e,n){return e===n||(ro(e)&&ro(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}function To(t){for(var e=0;t.previousSibling;)t=t.previousSibling,e++;return e}function Io(t){for(var e=[],n=t;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e}var Mo=so(ti.document),Oo=oo(ti.document),Po=ao(ti.document),No="data-ck-unsafe-attribute-",Bo="data-ck-unsafe-element",Lo=function(){return M((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),this.document=e,this.renderingMode=n.renderingMode||"editing",this.blockFillerMode=n.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?ti.document:ti.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new fi,this._encounteredRawContentDomNodes=new WeakSet}),[{key:"bindFakeSelection",value:function(t,e){this._fakeSelectionMapping.set(t,new fr(e))}},{key:"fakeSelectionToView",value:function(t){return this._fakeSelectionMapping.get(t)}},{key:"bindElements",value:function(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}},{key:"unbindDomElement",value:function(t){var e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(var n=0,i=Array.from(t.children);n<i.length;n++){var r=i[n];this.unbindDomElement(r)}}}},{key:"bindDocumentFragments",value:function(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}},{key:"shouldRenderAttribute",value:function(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||"source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}},{key:"setContentOf",value:function(t,e){if("data"!==this.renderingMode){for(var n=(new DOMParser).parseFromString(e,"text/html"),i=n.createDocumentFragment(),r=n.body.childNodes;r.length>0;)i.appendChild(r[0]);for(var o,a=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT),s=[];o=a.nextNode();)s.push(o);for(var l=0,c=s;l<c.length;l++){var u,d=c[l],h=b(d.getAttributeNames());try{for(h.s();!(u=h.n()).done;){var f=u.value;this.setDomElementAttribute(d,f,d.getAttribute(f))}}catch(t){h.e(t)}finally{h.f()}var p=d.tagName.toLowerCase();this._shouldRenameElement(p)&&(zo(p),d.replaceWith(this._createReplacementDomElement(p,d)))}for(;t.firstChild;)t.firstChild.remove();t.append(i)}else t.innerHTML=e}},{key:"viewToDom",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.is("$text")){var i=this._processDataFromViewText(t);return this._domDocument.createTextNode(i)}if(this.mapViewToDom(t))return this.mapViewToDom(t);if(t.is("documentFragment"))e=this._domDocument.createDocumentFragment(),n.bind&&this.bindDocumentFragments(e,t);else{if(t.is("uiElement"))return e="$comment"===t.name?this._domDocument.createComment(t.getCustomProperty("$rawContent")):t.render(this._domDocument,this),n.bind&&this.bindElements(e,t),e;this._shouldRenameElement(t.name)?(zo(t.name),e=this._createReplacementDomElement(t.name)):e=t.hasAttribute("xmlns")?this._domDocument.createElementNS(t.getAttribute("xmlns"),t.name):this._domDocument.createElement(t.name),t.is("rawElement")&&t.render(e,this),n.bind&&this.bindElements(e,t);var r,o=b(t.getAttributeKeys());try{for(o.s();!(r=o.n()).done;){var a=r.value;this.setDomElementAttribute(e,a,t.getAttribute(a),t)}}catch(t){o.e(t)}finally{o.f()}}if(!1!==n.withChildren){var s,l=b(this.viewChildrenToDom(t,n));try{for(l.s();!(s=l.n()).done;){var c=s.value;e.appendChild(c)}}catch(t){l.e(t)}finally{l.f()}}return e}},{key:"setDomElementAttribute",value:function(t,e,n,i){var r=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(e);r||T("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),t.hasAttribute(e)&&!r?t.removeAttribute(e):t.hasAttribute(No+e)&&r&&t.removeAttribute(No+e),t.setAttribute(r?e:No+e,n)}},{key:"removeDomElementAttribute",value:function(t,e){e!=Bo&&(t.removeAttribute(e),t.removeAttribute(No+e))}},{key:"viewChildrenToDom",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return m().mark((function i(){var r,o,a,s,l,c;return m().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:r=t.getFillerOffset&&t.getFillerOffset(),o=0,a=b(t.getChildren()),i.prev=3,a.s();case 5:if((s=a.n()).done){i.next=22;break}if(l=s.value,i.t0=r===o,!i.t0){i.next=11;break}return i.next=11,e._getBlockFiller();case 11:if(!(c=l.is("element")&&l.getCustomProperty("dataPipeline:transparentRendering"))||"data"!=e.renderingMode){i.next=16;break}return i.delegateYield(e.viewChildrenToDom(l,n),"t1",14);case 14:i.next=19;break;case 16:return c&&T("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:l}),i.next=19,e.viewToDom(l,n);case 19:o++;case 20:i.next=5;break;case 22:i.next=27;break;case 24:i.prev=24,i.t2=i.catch(3),a.e(i.t2);case 27:return i.prev=27,a.f(),i.finish(27);case 30:if(i.t3=r===o,!i.t3){i.next=34;break}return i.next=34,e._getBlockFiller();case 34:case"end":return i.stop()}}),i,null,[[3,24,27,30]])}))()}},{key:"viewRangeToDom",value:function(t){var e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),i=this._domDocument.createRange();return i.setStart(e.parent,e.offset),i.setEnd(n.parent,n.offset),i}},{key:"viewPositionToDom",value:function(t){var e,n,i,r=t.parent;if(r.is("$text")){var o=this.findCorrespondingDomText(r);if(!o)return null;var a=t.offset;return co(o)&&(a+=7),{parent:o,offset:a}}if(0===t.offset){if(!(e=this.mapViewToDom(r)))return null;i=e.childNodes[0]}else{var s=t.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(s)))return null;e=n.parentNode,i=n.nextSibling}return ro(i)&&co(i)?{parent:i,offset:7}:{parent:e,offset:n?To(n)+1:0}}},{key:"domToView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(t))return null;var n,i=this.getHostViewElement(t);if(i)return i;if(yo(t)&&e.skipComments)return null;if(ro(t)){if(uo(t))return null;var r=this._processDataFromDomText(t);return""===r?null:new ui(this.document,r)}if(this.mapDomToView(t))return this.mapDomToView(t);if(this.isDocumentFragment(t))n=new $r(this.document),e.bind&&this.bindDocumentFragments(t,n);else{n=this._createViewElement(t,e),e.bind&&this.bindElements(t,n);var o=t.attributes;if(o)for(var a=o.length,s=0;s<a;s++)n._setAttribute(o[s].name,o[s].value);if(this._isViewElementWithRawContent(n,e)||yo(t)){var l=yo(t)?t.data:t.innerHTML;return n._setCustomProperty("$rawContent",l),this._encounteredRawContentDomNodes.add(t),n}}if(!1!==e.withChildren){var c,u=b(this.domChildrenToView(t,e));try{for(u.s();!(c=u.n()).done;){var d=c.value;n._appendChild(d)}}catch(t){u.e(t)}finally{u.f()}}return n}},{key:"domChildrenToView",value:m().mark((function t(e,n){var i,r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=0;case 1:if(!(i<e.childNodes.length)){t.next=10;break}if(r=e.childNodes[i],o=this.domToView(r,n),t.t0=null!==o,!t.t0){t.next=7;break}return t.next=7,o;case 7:i++,t.next=1;break;case 10:case"end":return t.stop()}}),t,this)}))},{key:"domSelectionToView",value:function(t){if(1===t.rangeCount){var e=t.getRangeAt(0).startContainer;ro(e)&&(e=e.parentNode);var n=this.fakeSelectionToView(e);if(n)return n}for(var i=this.isDomSelectionBackward(t),r=[],o=0;o<t.rangeCount;o++){var a=t.getRangeAt(o),s=this.domRangeToView(a);s&&r.push(s)}return new fr(r,{backward:i})}},{key:"domRangeToView",value:function(t){var e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new ur(e,n):null}},{key:"domPositionToView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,To(t));var n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return cr._createBefore(n);if(ro(t)){if(uo(t))return this.domPositionToView(t.parentNode,To(t));var i=this.findCorrespondingViewText(t),r=e;return i?(co(t)&&(r=(r-=7)<0?0:r),new cr(i,r)):null}if(0===e){var o=this.mapDomToView(t);if(o)return new cr(o,0)}else{var a=t.childNodes[e-1],s=ro(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new cr(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}},{key:"findCorrespondingViewText",value:function(t){if(uo(t))return null;var e=this.getHostViewElement(t);if(e)return e;var n=t.previousSibling;if(n){if(!this.isElement(n))return null;var i=this.mapDomToView(n);if(i){var r=i.nextSibling;return r instanceof ui?r:null}}else{var o=this.mapDomToView(t.parentNode);if(o){var a=o.getChild(0);return a instanceof ui?a:null}}return null}},{key:"mapViewToDom",value:function(t){return this._viewToDomMapping.get(t)}},{key:"findCorrespondingDomText",value:function(t){var e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}},{key:"focus",value:function(t){var e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){var n=ti.window,i=n.scrollX,r=n.scrollY,o=[];jo(e,(function(t){var e=t.scrollLeft,n=t.scrollTop;o.push([e,n])})),e.focus(),jo(e,(function(t){var e=v(o.shift(),2),n=e[0],i=e[1];t.scrollLeft=n,t.scrollTop=i})),ti.window.scrollTo(i,r)}}},{key:"isElement",value:function(t){return t&&t.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isBlockFiller",value:function(t){return"br"==this.blockFillerMode?t.isEqualNode(Mo):!("BR"!==t.tagName||!Ro(t,this.blockElements)||1!==t.parentNode.childNodes.length)||t.isEqualNode(Po)||function(t,e){return t.isEqualNode(Oo)&&Ro(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements)}},{key:"isDomSelectionBackward",value:function(t){if(t.isCollapsed)return!1;var e=this._domDocument.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);var n=e.collapsed;return e.detach(),n}},{key:"getHostViewElement",value:function(t){var e=Io(t);for(e.pop();e.length;){var n=e.pop(),i=this._domToViewMapping.get(n);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}return null}},{key:"isDomSelectionCorrect",value:function(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}},{key:"registerRawContentMatcher",value:function(t){this._rawContentElementMatcher.add(t)}},{key:"_getBlockFiller",value:function(){switch(this.blockFillerMode){case"nbsp":return oo(this._domDocument);case"markedNbsp":return ao(this._domDocument);case"br":return so(this._domDocument)}}},{key:"_isDomSelectionPositionCorrect",value:function(t,e){if(ro(t)&&co(t)&&e<7)return!1;if(this.isElement(t)&&co(t.childNodes[e]))return!1;var n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(t){var e=this,n=t.data;if(t.getAncestors().some((function(t){return e.preElements.includes(t.name)})))return n;if(" "==n.charAt(0)){var i=this._getTouchingInlineViewNode(t,!1);!(i&&i.is("$textProxy")&&this._nodeEndsWithSpace(i))&&i||(n=" "+n.substr(1))}if(" "==n.charAt(n.length-1)){var r=this._getTouchingInlineViewNode(t,!0),o=r&&r.is("$textProxy")&&" "==r.data.charAt(0);" "!=n.charAt(n.length-2)&&r&&!o||(n=n.substr(0,n.length-1)+" ")}return n.replace(/ {2}/g,"  ")}},{key:"_nodeEndsWithSpace",value:function(t){var e=this;if(t.getAncestors().some((function(t){return e.preElements.includes(t.name)})))return!1;var n=this._processDataFromViewText(t);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(t){var e=t.data;if(function(t,e){return Io(t).some((function(t){return t.tagName&&e.includes(t.tagName.toLowerCase())}))}(t,this.preElements))return ho(t);e=e.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(t,!1),i=this._getTouchingInlineDomNode(t,!0),r=this._checkShouldLeftTrimDomText(t,n),o=this._checkShouldRightTrimDomText(t,i);r&&(e=e.replace(/^ /,"")),o&&(e=e.replace(/ $/,"")),e=(e=ho(new Text(e))).replace(/ \u00A0/g,"  ");var a=i&&this.isElement(i)&&"BR"!=i.tagName,s=i&&ro(i)&&" "==i.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(e)||!i||a||s)&&(e=e.replace(/\u00A0$/," ")),(r||n&&this.isElement(n)&&"BR"!=n.tagName)&&(e=e.replace(/^\u00A0/," ")),e}},{key:"_checkShouldLeftTrimDomText",value:function(t,e){return!e||(this.isElement(e)?"BR"===e.tagName:!this._encounteredRawContentDomNodes.has(t.previousSibling)&&/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1)))}},{key:"_checkShouldRightTrimDomText",value:function(t,e){return!e&&!co(t)}},{key:"_getTouchingInlineViewNode",value:function(t,e){var n,i=b(new lr({startPosition:e?cr._createAfter(t):cr._createBefore(t),direction:e?"forward":"backward"}));try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.item.is("element")&&this.inlineObjectElements.includes(r.item.name))return r.item;if(r.item.is("containerElement"))return null;if(r.item.is("element","br"))return null;if(r.item.is("$textProxy"))return r.item}}catch(t){i.e(t)}finally{i.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(t,e){if(!t.parentNode)return null;var n=e?"firstChild":"lastChild",i=e?"nextSibling":"previousSibling",r=!0,o=t;do{if(!r&&o[n]?o=o[n]:o[i]?(o=o[i],r=!1):(o=o.parentNode,r=!0),!o||this._isBlockElement(o))return null}while(!ro(o)&&"BR"!=o.tagName&&!this._isInlineObjectElement(o));return o}},{key:"_isBlockElement",value:function(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}},{key:"_isInlineObjectElement",value:function(t){return this.isElement(t)&&this.inlineObjectElements.includes(t.tagName.toLowerCase())}},{key:"_createViewElement",value:function(t,e){if(yo(t))return new Vr(this.document,"$comment");var n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new er(this.document,n)}},{key:"_isViewElementWithRawContent",value:function(t,e){return!1!==e.withChildren&&!!this._rawContentElementMatcher.match(t)}},{key:"_shouldRenameElement",value:function(t){var e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e)}},{key:"_createReplacementDomElement",value:function(t,e){var n=this._domDocument.createElement("span");if(n.setAttribute(Bo,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);var i,r=b(e.getAttributeNames());try{for(r.s();!(i=r.n()).done;){var o=i.value;n.setAttribute(o,e.getAttribute(o))}}catch(t){r.e(t)}finally{r.f()}}return n}}])}();function jo(t,e){for(var n=t;n;)e(n),n=n.parentElement}function Ro(t,e){var n=t.parentNode;return!!n&&!!n.tagName&&e.includes(n.tagName.toLowerCase())}function zo(t){"script"===t&&T("domconverter-unsafe-script-element-detected"),"style"===t&&T("domconverter-unsafe-style-element-detected")}function Fo(t){var e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}function Ho(t){return function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"listenTo",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(wo(t)||Fo(t)){var r={capture:!!i.useCapture,passive:!!i.usePassive},o=this._getProxyEmitter(t,r)||new Uo(t,r);this.listenTo(o,e,n,i)}else H.prototype.listenTo.call(this,t,e,n,i)}},{key:"stopListening",value:function(t,e,n){if(wo(t)||Fo(t)){var i,r=b(this._getAllProxyEmitters(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;this.stopListening(o,e,n)}}catch(t){r.e(t)}finally{r.f()}}else H.prototype.stopListening.call(this,t,e,n)}},{key:"_getProxyEmitter",value:function(t,e){return function(t,e){var n=t[j];return n&&n[e]?n[e].emitter:null}(this,Wo(t,e))}},{key:"_getAllProxyEmitters",value:function(t){var e=this;return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((function(n){return e._getProxyEmitter(t,n)})).filter((function(t){return!!t}))}}])}(t)}var Vo=Ho(H);["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((function(t){Ho[t]=Vo.prototype[t]}));var Uo=function(t){function e(t,n){var i;return P(this,e),V(A(i=_(this,e)),Wo(t,n)),i._domNode=t,i._options=n,i}return C(e,t),M(e,[{key:"attach",value:function(t){if(!this._domListeners||!this._domListeners[t]){var e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}}},{key:"detach",value:function(t){var e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}},{key:"_addEventListener",value:function(t,e,n){this.attach(t),H.prototype._addEventListener.call(this,t,e,n)}},{key:"_removeEventListener",value:function(t,e){H.prototype._removeEventListener.call(this,t,e),this.detach(t)}},{key:"_createDomListener",value:function(t){var e=this,n=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(n){e.fire(t,n)}));return n.removeListener=function(){e._domNode.removeEventListener(t,n,e._options),delete e._domListeners[t]},n}}])}(H);function Wo(t,e){var n,i=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=y())}(t),r=b(Object.keys(e).sort());try{for(r.s();!(n=r.n()).done;){var o=n.value;e[o]&&(i+="-"+o)}}catch(t){r.e(t)}finally{r.f()}return i}var qo=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).view=t,n.document=t.document,n.isEnabled=!1,n}return C(e,t),M(e,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}])}(Vo);function $o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ae;++e<n;)this.add(t[e])}$o.prototype.add=$o.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},$o.prototype.has=function(t){return this.__data__.has(t)};var Yo=$o,Go=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1},Ko=function(t,e){return t.has(e)},Qo=function(t,e,n,i,r,o){var a=1&n,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var d=-1,h=!0,f=2&n?new Yo:void 0;for(o.set(t,e),o.set(e,t);++d<s;){var p=t[d],g=e[d];if(i)var m=a?i(g,p,d,e,t,o):i(p,g,d,t,e,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!Go(e,(function(t,e){if(!Ko(f,e)&&(p===t||r(p,t,n,i,o)))return f.push(e)}))){h=!1;break}}else if(p!==g&&!r(p,g,n,i,o)){h=!1;break}}return o.delete(t),o.delete(e),h},Zo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n},Jo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Xo=vt?vt.prototype:void 0,ta=Xo?Xo.valueOf:void 0,ea=Object.prototype.hasOwnProperty,na="[object Arguments]",ia="[object Array]",ra="[object Object]",oa=Object.prototype.hasOwnProperty,aa=function(t,e,n,i,r,o){var a=ke(t),s=ke(e),l=a?ia:An(t),c=s?ia:An(e),u=(l=l==na?ra:l)==ra,d=(c=c==na?ra:c)==ra,h=l==c;if(h&&Ae(t)){if(!Ae(e))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new le),a||Ne(t)?Qo(t,e,n,i,r,o):function(t,e,n,i,r,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new xn(t),new xn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Nt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Zo;case"[object Set]":var l=1&i;if(s||(s=Jo),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;i|=2,a.set(t,e);var u=Qo(s(t),s(e),i,r,o,a);return a.delete(t),u;case"[object Symbol]":if(ta)return ta.call(t)==ta.call(e)}return!1}(t,e,l,n,i,r,o);if(!(1&n)){var f=u&&oa.call(t,"__wrapped__"),p=d&&oa.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,m=p?e.value():e;return o||(o=new le),r(g,m,n,i,o)}}return!!h&&(o||(o=new le),function(t,e,n,i,r,o){var a=1&n,s=an(t),l=s.length;if(l!=an(e).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in e:ea.call(e,u)))return!1}var d=o.get(t),h=o.get(e);if(d&&h)return d==e&&h==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=a;++c<l;){var g=t[u=s[c]],m=e[u];if(i)var v=a?i(m,g,u,e,t,o):i(g,m,u,t,e,o);if(!(void 0===v?g===m||r(g,m,n,i,o):v)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var b=t.constructor,k=e.constructor;b==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof k&&k instanceof k||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,i,r,o))},sa=function t(e,n,i,r,o){return e===n||(null==e||null==n||!Et(e)&&!Et(n)?e!=e&&n!=n:aa(e,n,i,r,t,o))},la=function(t,e,n){var i=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===i?sa(t,e,void 0,n):!!i},ca=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},n.domConverter=t.domConverter,n.renderer=t._renderer,n._domElements=[],n._mutationObserver=new window.MutationObserver(n._onMutations.bind(A(n))),n}return C(e,t),M(e,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(t){this._domElements.push(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}},{key:"enable",value:function(){p(e,"enable",this,3)([]);var t,n=b(this._domElements);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._mutationObserver.observe(i,this._config)}}catch(t){n.e(t)}finally{n.f()}}},{key:"disable",value:function(){p(e,"disable",this,3)([]),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(t){if(0!==t.length){var e,n=this.domConverter,i=new Map,r=new Set,o=b(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;if("childList"===a.type){var s=n.mapDomToView(a.target);if(s&&(s.is("uiElement")||s.is("rawElement")))continue;s&&!this._isBogusBrMutation(a)&&r.add(s)}}}catch(t){o.e(t)}finally{o.f()}var l,c=b(t);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=n.mapDomToView(u.target);if((!d||!d.is("uiElement")&&!d.is("rawElement"))&&"characterData"===u.type){var h=n.findCorrespondingViewText(u.target);h&&!r.has(h.parent)?i.set(h,{type:"text",oldText:h.data,newText:ho(u.target),node:h}):!h&&co(u.target)&&r.add(n.mapDomToView(u.target.parentNode))}}}catch(t){c.e(t)}finally{c.f()}var f,p=[],g=b(i.values());try{for(g.s();!(f=g.n()).done;){var m=f.value;this.renderer.markToSync("text",m.node),p.push(m)}}catch(t){g.e(t)}finally{g.f()}var v,k=b(r);try{for(k.s();!(v=k.n()).done;){var y=v.value,w=n.mapViewToDom(y),_=Array.from(y.getChildren()),A=Array.from(n.domChildrenToView(w,{withChildren:!1}));la(_,A,S)||(this.renderer.markToSync("children",y),p.push({type:"children",oldChildren:_,newChildren:A,node:y}))}}catch(t){k.e(t)}finally{k.f()}var C=t[0].target.ownerDocument.getSelection(),x=null;if(C&&C.anchorNode){var D=n.domPositionToView(C.anchorNode,C.anchorOffset),E=n.domPositionToView(C.focusNode,C.focusOffset);D&&E&&(x=new fr(D)).setFocus(E)}p.length&&(this.document.fire("mutations",p,x),this.view.forceRender())}function S(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data}}},{key:"_isBogusBrMutation",value:function(t){var e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}])}(qo),ua=Gi((function(t,e){fe(e,qe(e),t)})),da=function(){return M((function t(e,n,i){P(this,t),this.view=e,this.document=e.document,this.domEvent=n,this.domTarget=n.target,ua(this,i)}),[{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}},{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}}])}(),ha=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).useCapture=!1,n}return C(e,t),M(e,[{key:"observe",value:function(t){var e=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){e.listenTo(t,n,(function(t,n){e.isEnabled&&!e.checkShouldIgnoreEventFromTarget(n.target)&&e.onDomEvent(n)}),{useCapture:e.useCapture})}))}},{key:"fire",value:function(t,e,n){this.isEnabled&&this.document.fire(t,new da(this.view,e,n))}}])}(qo),fa=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).domEventType=["keydown","keyup"],n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){var e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return Rr(this)}};this.fire(t.type,t,e)}}])}(ha),pa=function(){return mt.Date.now()},ga=/\s/,ma=/^\s+/,va=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&ga.test(t.charAt(e)););return e}(t)+1).replace(ma,""):t},ba=/^[-+]0x[0-9a-f]+$/i,ka=/^0b[01]+$/i,ya=/^0o[0-7]+$/i,wa=parseInt,_a=function(t){if("number"==typeof t)return t;if(mi(t))return NaN;if(K(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=K(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=va(t);var n=ka.test(t);return n||ya.test(t)?wa(t.slice(2),n?2:8):ba.test(t)?NaN:+t},Aa=Math.max,Ca=Math.min,xa=function(t,e,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=i,o=r;return i=r=void 0,c=e,a=t.apply(o,n)}function p(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=o}function g(){var t=pa();if(p(t))return m(t);s=setTimeout(g,function(t){var n=e-(t-l);return d?Ca(n,o-(t-c)):n}(t))}function m(t){return s=void 0,h&&i?f(t):(i=r=void 0,a)}function v(){var t=pa(),n=p(t);if(i=arguments,r=this,l=t,n){if(void 0===s)return function(t){return c=t,s=setTimeout(g,e),u?f(t):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,e),f(l)}return void 0===s&&(s=setTimeout(g,e)),a}return e=_a(e)||0,K(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Aa(_a(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},v.flush=function(){return void 0===s?a:m(pa())},v},Da=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._fireSelectionChangeDoneDebounced=xa((function(t){n.document.fire("selectionChangeDone",t)}),200),n}return C(e,t),M(e,[{key:"observe",value:function(){var t=this,e=this.document;e.on("arrowKey",(function(n,i){e.selection.isFake&&t.isEnabled&&i.preventDefault()}),{context:"$capture"}),e.on("arrowKey",(function(n,i){e.selection.isFake&&t.isEnabled&&t._handleSelectionMove(i.keyCode)}),{priority:"lowest"})}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(t){var e=this.document.selection,n=new fr(e.getRanges(),{backward:e.isBackward,fake:!1});t!=Lr.arrowleft&&t!=Lr.arrowup||n.setTo(n.getFirstPosition()),t!=Lr.arrowright&&t!=Lr.arrowdown||n.setTo(n.getLastPosition());var i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}])}(qo),Ea=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).mutationObserver=t.getObserver(ca),n.selection=n.document.selection,n.domConverter=t.domConverter,n._documents=new WeakSet,n._fireSelectionChangeDoneDebounced=xa((function(t){n.document.fire("selectionChangeDone",t)}),200),n._clearInfiniteLoopInterval=setInterval((function(){return n._clearInfiniteLoop()}),1e3),n._documentIsSelectingInactivityTimeoutDebounced=xa((function(){return n.document.isSelecting=!1}),5e3),n._loopbackCounter=0,n}return C(e,t),M(e,[{key:"observe",value:function(t){var e=this,n=t.ownerDocument,i=function(){e.document.isSelecting=!1,e._documentIsSelectingInactivityTimeoutDebounced.cancel()};this.listenTo(t,"selectstart",(function(){e.document.isSelecting=!0,e._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(t,"keydown",i,{priority:"highest"}),this.listenTo(t,"keyup",i,{priority:"highest"}),this._documents.has(n)||(this.listenTo(n,"mouseup",i,{priority:"highest"}),this.listenTo(n,"selectionchange",(function(t,i){e._handleSelectionChange(i,n),e._documentIsSelectingInactivityTimeoutDebounced()})),this._documents.add(n))}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}},{key:"_handleSelectionChange",value:function(t,e){if(this.isEnabled){var n=e.defaultView.getSelection();if(!this.checkShouldIgnoreEventFromTarget(n.anchorNode)){this.mutationObserver.flush();var i=this.domConverter.domSelectionToView(n);if(0!=i.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(i)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(i))this.view.forceRender();else{var r={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}])}(qo),Sa=function(t){function e(t){var n;P(this,e),(n=_(this,e,[t])).domEventType=["focus","blur"],n.useCapture=!0;var i=n.document;return i.on("focus",(function(){i.isFocused=!0,n._renderTimeoutId=setTimeout((function(){return t.change((function(){}))}),50)})),i.on("blur",(function(e,n){var r=i.selection.editableElement;null!==r&&r!==n.target||(i.isFocused=!1,t.change((function(){})))})),n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),p(e,"destroy",this,3)([])}}])}(ha),Ta=function(t){function e(t){var n;P(this,e),(n=_(this,e,[t])).domEventType=["compositionstart","compositionupdate","compositionend"];var i=n.document;return i.on("compositionstart",(function(){i.isComposing=!0})),i.on("compositionend",(function(){i.isComposing=!1})),n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}])}(ha),Ia=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).domEventType=["beforeinput"],n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}])}(ha),Ma=function(){return M((function t(){P(this,t),this._replacedElements=[]}),[{key:"replace",value:function(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(t){var e=t.element,n=t.newElement;e.style.display="",n&&n.remove()})),this._replacedElements=[]}}])}(),Oa=function(t){return"string"==typeof t||!ke(t)&&Et(t)&&"[object String]"==Ct(t)};function Pa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=n&&n.xmlns,o=r?t.createElementNS(r,e):t.createElement(e);for(var a in n)o.setAttribute(a,n[a]);!Oa(i)&&Kn(i)||(i=[i]);var s,l=b(i);try{for(l.s();!(s=l.n()).done;){var c=s.value;Oa(c)&&(c=t.createTextNode(c)),o.appendChild(c)}}catch(t){l.e(t)}finally{l.f()}return o}var Na=function(){function t(e,n){P(this,t),t._observerInstance||t._createObserver(),this._element=e,this._callback=n,t._addElementCallback(e,n),t._observerInstance.observe(e)}return M(t,[{key:"destroy",value:function(){t._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(e,n){t._elementCallbacks||(t._elementCallbacks=new Map);var i=t._elementCallbacks.get(e);i||(i=new Set,t._elementCallbacks.set(e,i)),i.add(n)}},{key:"_deleteElementCallback",value:function(e,n){var i=t._getElementCallbacks(e);i&&(i.delete(n),i.size||(t._elementCallbacks.delete(e),t._observerInstance.unobserve(e))),t._elementCallbacks&&!t._elementCallbacks.size&&(t._observerInstance=null,t._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(e){return t._elementCallbacks?t._elementCallbacks.get(e):null}},{key:"_createObserver",value:function(){t._observerInstance=new ti.window.ResizeObserver((function(e){var n,i=b(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=t._getElementCallbacks(r.target);if(o){var a,s=b(o);try{for(s.s();!(a=s.n()).done;){(0,a.value)(r)}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){i.e(t)}finally{i.f()}}))}}])}();Na._observerInstance=null,Na._elementCallbacks=null;var Ba=Na;function La(t){return!!(t&&t.getClientRects&&t.getClientRects().length)}function ja(t){var e=t.next();return e.done?null:e.value}var Ra=function(t){function e(){var t;return P(this,e),(t=_(this,e)).set("isFocused",!1),t.set("focusedElement",null),t._elements=new Set,t._nextEventLoopTimeout=null,t}return C(e,t),M(e,[{key:"add",value:function(t){var e=this;if(this._elements.has(t))throw new S("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(function(){return e._focus(t)}),{useCapture:!0}),this.listenTo(t,"blur",(function(){return e._blur()}),{useCapture:!0}),this._elements.add(t)}},{key:"remove",value:function(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}},{key:"_blur",value:function(){var t=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){t.focusedElement=null,t.isFocused=!1}),0)}}])}(Ho(nt)),za=function(){return M((function t(){P(this,t),this._listener=Object.create(Ho)}),[{key:"listenTo",value:function(t){var e=this;this._listener.listenTo(t,"keydown",(function(t,n){e._listener.fire("_keydown:"+Rr(n),n)}))}},{key:"set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=zr(t),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(function(t,n){e(n,(function(){n.preventDefault(),n.stopPropagation(),t.stop()})),t.return=!0}),{priority:r})}},{key:"press",value:function(t){return!!this._listener.fire("_keydown:"+Rr(t),t)}},{key:"destroy",value:function(){this._listener.stopListening()}}])}(),Fa=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).document.on("keydown",(function(t,e){if(n.isEnabled&&((r=e.keyCode)==Lr.arrowright||r==Lr.arrowleft||r==Lr.arrowup||r==Lr.arrowdown)){var i=new gr(n.document,"arrowKey",n.document.selection.getFirstRange());n.document.fire(i,e),i.stop.called&&t.stop()}var r})),n}return C(e,t),M(e,[{key:"observe",value:function(){}}])}(qo),Ha=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).document;return i.on("keydown",(function(t,e){if(n.isEnabled&&e.keyCode==Lr.tab&&!e.ctrlKey){var r=new gr(i,"tab",i.selection.getFirstRange());i.fire(r,e),r.stop.called&&t.stop()}})),n}return C(e,t),M(e,[{key:"observe",value:function(){}}])}(qo);function Va(t){return"[object Range]"==Object.prototype.toString.apply(t)}function Ua(t){var e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}var Wa=["top","right","bottom","left","width","height"],qa=function(){function t(e){P(this,t);var n=Va(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Ga(e)||n)if(n){var i=t.getDomRangeRects(e);$a(this,t.getBoundingRect(i))}else $a(this,e.getBoundingClientRect());else if(Fo(e)){var r=e.innerWidth,o=e.innerHeight;$a(this,{top:0,right:r,bottom:o,left:0,width:r,height:o})}else $a(this,e)}return M(t,[{key:"clone",value:function(){return new t(this)}},{key:"moveTo",value:function(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}},{key:"moveBy",value:function(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}},{key:"getIntersection",value:function(e){var n={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left),width:0,height:0};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new t(n)}},{key:"getIntersectionArea",value:function(t){var e=this.getIntersection(t);return e?e.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var e=this._source,n=this.clone();if(!Ya(e))for(var i=e.parentNode||e.commonAncestorContainer;i&&!Ya(i);){var r=new t(i),o=n.getIntersection(r);if(!o)return null;o.getArea()<n.getArea()&&(n=o),i=i.parentNode}return n}},{key:"isEqual",value:function(t){for(var e=0,n=Wa;e<n.length;e++){var i=n[e];if(this[i]!==t[i])return!1}return!0}},{key:"contains",value:function(t){var e=this.getIntersection(t);return!(!e||!e.isEqual(t))}},{key:"excludeScrollbarsAndBorders",value:function(){var t,e,n,i=this._source;if(Fo(i))t=i.innerWidth-i.document.documentElement.clientWidth,e=i.innerHeight-i.document.documentElement.clientHeight,n=i.getComputedStyle(i.document.documentElement).direction;else{var r=Ua(i);t=i.offsetWidth-i.clientWidth-r.left-r.right,e=i.offsetHeight-i.clientHeight-r.top-r.bottom,n=i.ownerDocument.defaultView.getComputedStyle(i).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===n?this.right-=t:this.left+=t,this.height-=e,this.bottom-=e,this}}],[{key:"getDomRangeRects",value:function(e){var n=[],i=Array.from(e.getClientRects());if(i.length){var r,o=b(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(new t(a))}}catch(t){o.e(t)}finally{o.f()}}else{var s=e.startContainer;ro(s)&&(s=s.parentNode);var l=new t(s.getBoundingClientRect());l.right=l.left,l.width=0,n.push(l)}return n}},{key:"getBoundingRect",value:function(e){var n,i={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0},r=0,o=b(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;r++,i.left=Math.min(i.left,a.left),i.top=Math.min(i.top,a.top),i.right=Math.max(i.right,a.right),i.bottom=Math.max(i.bottom,a.bottom)}}catch(t){o.e(t)}finally{o.f()}return 0==r?null:(i.width=i.right-i.left,i.height=i.bottom-i.top,new t(i))}}])}();function $a(t,e){var n,i=b(Wa);try{for(i.s();!(n=i.n()).done;){var r=n.value;t[r]=e[r]}}catch(t){i.e(t)}finally{i.f()}}function Ya(t){return!!Ga(t)&&t===t.ownerDocument.body}function Ga(t){return qn(t)}function Ka(t,e,n){var i=e.clone().moveBy(0,n),r=e.clone().moveBy(0,-n),o=new qa(t).excludeScrollbarsAndBorders();if(![r,i].every((function(t){return o.contains(t)}))){var a=t.scrollX,s=t.scrollY;Ja(r,o)?s-=o.top-e.top+n:Za(i,o)&&(s+=e.bottom-o.bottom+n),Xa(e,o)?a-=o.left-e.left+n:ts(e,o)&&(a+=e.right-o.right+n),t.scrollTo(a,s)}}function Qa(t,e){for(var n,i,r=es(t);t!=r.document.body;)i=e(),(n=new qa(t).excludeScrollbarsAndBorders()).contains(i)||(Ja(i,n)?t.scrollTop-=n.top-i.top:Za(i,n)&&(t.scrollTop+=i.bottom-n.bottom),Xa(i,n)?t.scrollLeft-=n.left-i.left:ts(i,n)&&(t.scrollLeft+=i.right-n.right)),t=t.parentNode}function Za(t,e){return t.bottom>e.bottom}function Ja(t,e){return t.top<e.top}function Xa(t,e){return t.left<e.left}function ts(t,e){return t.right>e.right}function es(t){return Va(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function ns(t){if(Va(t)){var e=t.commonAncestorContainer;return ro(e)&&(e=e.parentNode),e}return t.parentNode}function is(t,e){var n=es(t),i=new qa(t);if(n===e)return i;for(var r=n;r!=e;){var o=r.frameElement,a=new qa(o).excludeScrollbarsAndBorders();i.moveBy(a.left,a.top),r=r.parent}return i}var rs=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).document=new Ar(t),n.domConverter=new Lo(n.document),n.domRoots=new Map,n.set("isRenderingInProgress",!1),n.set("hasDomSelection",!1),n._renderer=new xo(n.domConverter,n.document.selection),n._renderer.bind("isFocused","isSelecting").to(n.document,"isFocused","isSelecting"),n._initialDomRootAttributes=new WeakMap,n._observers=new Map,n._ongoingChange=!1,n._postFixersInProgress=!1,n._renderingDisabled=!1,n._hasChangedSinceTheLastRendering=!1,n._writer=new Yr(n.document),n.addObserver(ca),n.addObserver(Ea),n.addObserver(Sa),n.addObserver(fa),n.addObserver(Da),n.addObserver(Ta),n.addObserver(Fa),n.addObserver(Ha),Or.isAndroid&&n.addObserver(Ia),n.document.on("arrowKey",fo,{priority:"low"}),function(t){t.document.on("arrowKey",(function(e,n){return function(t,e,n){if(e.keyCode==Lr.arrowright){var i=e.domTarget.ownerDocument.defaultView.getSelection(),r=1==i.rangeCount&&i.getRangeAt(0).collapsed;if(r||e.shiftKey){var o=i.focusNode,a=i.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var l=!1,c=s.getLastMatchingPosition((function(t){return t.item.is("uiElement")&&(l=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement"))}));if(l){var u=n.viewPositionToDom(c);r?i.collapse(u.parent,u.offset):i.extend(u.parent,u.offset)}}}}(0,n,t.domConverter)}),{priority:"low"})}(A(n)),n.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),n.listenTo(n.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0})),n.listenTo(n.document,"change:isFocused",(function(){n._hasChangedSinceTheLastRendering=!0})),n}return C(e,t),M(e,[{key:"attachDomRoot",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",i=this.document.getRoot(n);i._name=t.tagName.toLowerCase();for(var r={},o=0,a=Array.from(t.attributes);o<a.length;o++){var s=a[o],l=s.name,c=s.value;r[l]=c,"class"===l?this._writer.addClass(c.split(" "),i):this._writer.setAttribute(l,c,i)}this._initialDomRootAttributes.set(t,r);var u=function(){e._writer.setAttribute("contenteditable",(!i.isReadOnly).toString(),i),i.isReadOnly?e._writer.addClass("ck-read-only",i):e._writer.removeClass("ck-read-only",i)};u(),this.domRoots.set(n,t),this.domConverter.bindElements(t,i),this._renderer.markToSync("children",i),this._renderer.markToSync("attributes",i),this._renderer.domDocuments.add(t.ownerDocument),i.on("change:children",(function(t,n){return e._renderer.markToSync("children",n)})),i.on("change:attributes",(function(t,n){return e._renderer.markToSync("attributes",n)})),i.on("change:text",(function(t,n){return e._renderer.markToSync("text",n)})),i.on("change:isReadOnly",(function(){return e.change(u)})),i.on("change",(function(){e._hasChangedSinceTheLastRendering=!0}));var d,h=b(this._observers.values());try{for(h.s();!(d=h.n()).done;){d.value.observe(t,n)}}catch(t){h.e(t)}finally{h.f()}}},{key:"detachDomRoot",value:function(t){var e=this.domRoots.get(t);Array.from(e.attributes).forEach((function(t){var n=t.name;return e.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(e);for(var i in n)e.setAttribute(i,n[i]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e)}},{key:"getDomRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(t)}},{key:"addObserver",value:function(t){var e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);var n,i=b(this.domRoots);try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];e.observe(a,o)}}catch(t){i.e(t)}finally{i.f()}return e.enable(),e}},{key:"getObserver",value:function(t){return this._observers.get(t)}},{key:"disableObservers",value:function(){var t,e=b(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.disable()}}catch(t){e.e(t)}finally{e.f()}}},{key:"enableObservers",value:function(){var t,e=b(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.enable()}}catch(t){e.e(t)}finally{e.f()}}},{key:"scrollToTheSelection",value:function(){var t=this.document.selection.getFirstRange();t&&function(t){for(var e=t.target,n=t.viewportOffset,i=void 0===n?0:n,r=es(e),o=r,a=null;o;){Qa(ns(o==r?e:a),(function(){return is(e,o)}));var s=is(e,o);if(Ka(o,s,i),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}({target:this.domConverter.viewRangeToDom(t),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}},{key:"change",value:function(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new S("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;var e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(t){S.rethrowUnexpectedError(t,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var t,e=b(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(t,e){return cr._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return cr._createAfter(t)}},{key:"createPositionBefore",value:function(t){return cr._createBefore(t)}},{key:"createRange",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D(ur,e)}},{key:"createRangeOn",value:function(t){return ur._createOn(t)}},{key:"createRangeIn",value:function(t){return ur._createIn(t)}},{key:"createSelection",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D(fr,e)}},{key:"_disableRendering",value:function(t){this._renderingDisabled=t,0==t&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}])}(nt),os=function(){return M((function t(){P(this,t)}),[{key:"is",value:function(){throw new Error("is() method is abstract")}}])}(),as=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).parent=null,n._attrs=hi(t),n}return C(e,t),M(e,[{key:"document",get:function(){return null}},{key:"index",get:function(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new S("model-node-not-found-in-parent",this);return t}},{key:"startOffset",get:function(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new S("model-node-not-found-in-parent",this);return t}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null}},{key:"previousSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null}},{key:"root",get:function(){for(var t=this;t.parent;)t=t.parent;return t}},{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var t=[],e=this;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"getCommonAncestor",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(e),i=t.getAncestors(e),r=0;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}},{key:"isBefore",value:function(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),i=si(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}},{key:"isAfter",value:function(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}},{key:"hasAttribute",value:function(t){return this._attrs.has(t)}},{key:"getAttribute",value:function(t){return this._attrs.get(t)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce((function(t,e){return t[e[0]]=e[1],t}),{})),t}},{key:"_clone",value:function(t){return new e(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(t,e){this._attrs.set(t,e)}},{key:"_setAttributesTo",value:function(t){this._attrs=hi(t)}},{key:"_removeAttribute",value:function(t){return this._attrs.delete(t)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}}])}(os);as.prototype.is=function(t){return"node"===t||"model:node"===t};var ss=function(){return M((function t(e){P(this,t),this._nodes=[],e&&this._insertNodes(0,e)}),[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(t,e){return t+e.offsetSize}),0)}},{key:"getNode",value:function(t){return this._nodes[t]||null}},{key:"getNodeIndex",value:function(t){var e=this._nodes.indexOf(t);return-1==e?null:e}},{key:"getNodeStartOffset",value:function(t){var e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce((function(t,e){return t+e.offsetSize}),0)}},{key:"indexToOffset",value:function(t){if(t==this._nodes.length)return this.maxOffset;var e=this._nodes[t];if(!e)throw new S("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(t){var e,n=0,i=b(this._nodes);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(t>=n&&t<n+r.offsetSize)return this.getNodeIndex(r);n+=r.offsetSize}}catch(t){i.e(t)}finally{i.f()}if(n!=t)throw new S("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}},{key:"_insertNodes",value:function(t,e){var n,i,r=b(e);try{for(r.s();!(i=r.n()).done;){if(!(i.value instanceof as))throw new S("model-nodelist-insertnodes-not-node",this)}}catch(t){r.e(t)}finally{r.f()}(n=this._nodes).splice.apply(n,[t,0].concat(k(e)))}},{key:"_removeNodes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(t,e)}},{key:"toJSON",value:function(){return this._nodes.map((function(t){return t.toJSON()}))}}])}(),ls=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[n]))._data=t||"",i}return C(e,t),M(e,[{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.data=this.data,t}},{key:"_clone",value:function(){return new e(this.data,this.getAttributes())}}],[{key:"fromJSON",value:function(t){return new e(t.data,t.attributes)}}])}(as);ls.prototype.is=function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t};var cs=function(t){function e(t,n,i){var r;if(P(this,e),(r=_(this,e)).textNode=t,n<0||n>t.offsetSize)throw new S("model-textproxy-wrong-offsetintext",A(r));if(i<0||n+i>t.offsetSize)throw new S("model-textproxy-wrong-length",r);return r.data=t.data.substring(n,n+i),r.offsetInText=n,r}return C(e,t),M(e,[{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"getPath",value:function(){var t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"hasAttribute",value:function(t){return this.textNode.hasAttribute(t)}},{key:"getAttribute",value:function(t){return this.textNode.getAttribute(t)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}}])}(os);cs.prototype.is=function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t};var us=function(t){function e(t,n,i){var r;return P(this,e),(r=_(this,e,[n])).name=t,r._children=new ss,i&&r._insertChild(0,i),r}return C(e,t),M(e,[{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"getChild",value:function(t){return this._children.getNode(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(t){return this._children.getNodeIndex(t)}},{key:"getChildStartOffset",value:function(t){return this._children.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(t){return this._children.offsetToIndex(t)}},{key:"getNodeByPath",value:function(t){var e,n=this,i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;n=n.getChild(n.offsetToIndex(r))}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"findAncestor",value:function(t){for(var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).includeSelf?this:this.parent;e;){if(e.name===t)return e;e=e.parent}return null}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);if(t.name=this.name,this._children.length>0){t.children=[];var n,i=b(this._children);try{for(i.s();!(n=i.n()).done;){var r=n.value;t.children.push(r.toJSON())}}catch(t){i.e(t)}finally{i.f()}}return t}},{key:"_clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((function(t){return t._clone(!0)})):void 0;return new e(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(t){this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){var n,i=function(t){return"string"==typeof t?[new ls(t)]:(Kn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new ls(t):t instanceof cs?new ls(t.data,t.getAttributes()):t})))}(e),r=b(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(t){r.e(t)}finally{r.f()}this._children._insertNodes(t,i)}},{key:"_removeChildren",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(t,n),r=b(i);try{for(r.s();!(e=r.n()).done;){e.value.parent=null}}catch(t){r.e(t)}finally{r.f()}return i}}],[{key:"fromJSON",value:function(t){var n;if(t.children){n=[];var i,r=b(t.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.name?n.push(e.fromJSON(o)):n.push(ls.fromJSON(o))}}catch(t){r.e(t)}finally{r.f()}}return new e(t.name,t.attributes,n)}}])}(as);us.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t};var ds=function(){return M((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P(this,t),!e.boundaries&&!e.startPosition)throw new S("model-tree-walker-no-start-position",null);var n=e.direction||"forward";if("forward"!=n&&"backward"!=n)throw new S("model-tree-walker-unknown-direction",e,{direction:n});this.direction=n,this.boundaries=e.boundaries||null,e.startPosition?this.position=e.startPosition.clone():this.position=fs._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}),[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(t){var e,n,i,r;do{var o;i=this.position,r=this._visitedParent,e=(o=this.next()).done,n=o.value}while(!e&&t(n));e||(this.position=i,this._visitedParent=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};var i=ps(e,n),r=i||gs(e,n,i);if(r instanceof us)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=r),this.position=e,hs("elementStart",r,t,e,1);if(r instanceof ls){var o;if(this.singleCharacters)o=1;else{var a=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<a&&(a=this.boundaries.end.offset),o=a-e.offset}var s=e.offset-r.startOffset,l=new cs(r,s,o);return e.offset+=o,this.position=e,hs("text",l,t,e,o)}return e.path.pop(),e.offset++,this.position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():hs("elementEnd",n,t,e)}},{key:"_previous",value:function(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};var i=e.parent,r=ps(e,i),o=r||ms(e,i,r);if(o instanceof us)return e.offset--,this.shallow?(this.position=e,hs("elementStart",o,t,e,1)):(e.path.push(o.maxOffset),this.position=e,this._visitedParent=o,this.ignoreElementEnd?this._previous():hs("elementEnd",o,t,e));if(o instanceof ls){var a;if(this.singleCharacters)a=1;else{var s=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=e.offset-s}var l=e.offset-o.startOffset,c=new cs(o,l-a,a);return e.offset-=a,this.position=e,hs("text",c,t,e,a)}return e.path.pop(),this.position=e,this._visitedParent=n.parent,hs("elementStart",n,t,e,1)}}])}();function hs(t,e,n,i,r){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}var fs=function(t){function e(t,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(P(this,e),i=_(this,e),!t.is("element")&&!t.is("documentFragment"))throw new S("model-position-root-invalid",t);if(!(n instanceof Array)||0===n.length)throw new S("model-position-path-incorrect-format",t,{path:n});return t.is("rootElement")?n=n.slice():(n=[].concat(k(t.getPath()),k(n)),t=t.root),i.root=t,i.path=n,i.stickiness=r,i}return C(e,t),M(e,[{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(t){this.path[this.path.length-1]=t}},{key:"parent",get:function(){for(var t=this.root,e=0;e<this.path.length-1;e++)if(!(t=t.getChild(t.offsetToIndex(this.path[e]))))throw new S("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new S("model-position-path-incorrect",this,{position:this});return t}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return ps(this,this.parent)}},{key:"nodeAfter",get:function(){var t=this.parent;return gs(this,t,ps(this,t))}},{key:"nodeBefore",get:function(){var t=this.parent;return ms(this,t,ps(this,t))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}},{key:"compareWith",value:function(t){if(this.root!=t.root)return"different";var e=si(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.startPosition=this;var n=new ds(e);return n.skip(t),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(t){var e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(t){if(this.root!=t.root)return[];var e=si(this.path,t.path),n="string"==typeof e?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(t){for(var e=this.getAncestors(),n=t.getAncestors(),i=0;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-1]}},{key:"getShiftedBy",value:function(t){var e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}},{key:"isAfter",value:function(t){return"after"==this.compareWith(t)}},{key:"isBefore",value:function(t){return"before"==this.compareWith(t)}},{key:"isEqual",value:function(t){return"same"==this.compareWith(t)}},{key:"isTouching",value:function(t){var n=null,i=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),i=e._createAt(t);break;case"after":n=e._createAt(t),i=e._createAt(this);break;default:return!1}for(var r=n.parent;n.path.length+i.path.length;){if(n.isEqual(i))return!0;if(n.path.length>i.path.length){if(n.offset!==r.maxOffset)return!1;n.path=n.path.slice(0,-1),r=r.parent,n.offset++}else{if(0!==i.offset)return!1;i.path=i.path.slice(0,-1)}}throw new Error("unreachable code")}},{key:"hasSameParentAs",value:function(t){return this.root===t.root&&"same"==si(this.getParentPath(),t.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(t){return this._getTransformedByInsertion(t.position,t.howMany)}},{key:"_getTransformedByMoveOperation",value:function(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}},{key:"_getTransformedBySplitOperation",value:function(t){var e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,i=t.movedRange;return i.containsPosition(this)||i.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==si(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+n>this.offset)return null;i.offset-=n}}else if("prefix"==si(t.getParentPath(),this.getParentPath())){var r=t.path.length-1;if(t.offset<=this.path[r]){if(t.offset+n>this.path[r])return null;i.path[r]-=n}}return i}},{key:"_getTransformedByInsertion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==si(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(i.offset+=n);else if("prefix"==si(t.getParentPath(),this.getParentPath())){var r=t.path.length-1;t.offset<=this.path[r]&&(i.path[r]+=n)}return i}},{key:"_getTransformedByMove",value:function(t,n,i){if(n=n._getTransformedByDeletion(t,i),t.isEqual(n))return e._createAt(this);var r=this._getTransformedByDeletion(t,i);return null===r||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(i).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,n):r._getTransformedByInsertion(n,i)}},{key:"_getCombined",value:function(t,n){var i=t.path.length-1,r=e._createAt(n);return r.stickiness=this.stickiness,r.offset=r.offset+this.path[i]-t.offset,r.path=[].concat(k(r.path),k(this.path.slice(i+1))),r}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}}],[{key:"_createAt",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var r=t;if("end"==n)n=r.maxOffset;else{if("before"==n)return this._createBefore(r,i);if("after"==n)return this._createAfter(r,i);if(0!==n&&!n)throw new S("model-createpositionat-offset-required",[this,t])}if(!r.is("element")&&!r.is("documentFragment"))throw new S("model-position-parent-incorrect",[this,t]);var o=r.getPath();return o.push(n),new this(r.root,o,i)}},{key:"_createAfter",value:function(t,e){if(!t.parent)throw new S("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}},{key:"_createBefore",value:function(t,e){if(!t.parent)throw new S("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var i=new e(n.graveyard,t.path);return i.stickiness=t.stickiness,i}if(!n.getRoot(t.root))throw new S("model-position-fromjson-no-root",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}])}(os);function ps(t,e){var n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null}function gs(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset))}function ms(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1)}fs.prototype.is=function(t){return"position"===t||"model:position"===t};var vs=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e)).start=fs._createAt(t),i.end=n?fs._createAt(n):fs._createAt(t),i.start.stickiness=i.isCollapsed?"toNone":"toNext",i.end.stickiness=i.isCollapsed?"toNone":"toPrevious",i}return C(e,t),M(e,[{key:Symbol.iterator,value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(new ds({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==si(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}},{key:"containsPosition",value:function(t){return t.isAfter(this.start)&&t.isBefore(this.end)}},{key:"containsRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}},{key:"containsItem",value:function(t){var e=fs._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}},{key:"isEqual",value:function(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}},{key:"isIntersecting",value:function(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.isIntersecting(t);if(i||(i=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!i)return null;var r=this.start,o=this.end;return t.start.isBefore(r)&&(r=t.start),t.end.isAfter(o)&&(o=t.end),new e(r,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,i=fs._createAt(this.start),r=i.parent;i.path.length>n+1;){var o=r.maxOffset-i.offset;0!==o&&t.push(new e(i,i.getShiftedBy(o))),i.path=i.path.slice(0,-1),i.offset++,r=r.parent}for(;i.path.length<=this.end.path.length;){var a=this.end.path[i.path.length-1],s=a-i.offset;0!==s&&t.push(new e(i,i.getShiftedBy(s))),i.offset=a,i.path.push(0)}return t}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.boundaries=this,new ds(t)}},{key:"getItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m().mark((function n(){var i,r,o,a;return m().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.boundaries=t,e.ignoreElementEnd=!0,i=new ds(e),r=b(i),n.prev=3,r.s();case 5:if((o=r.n()).done){n.next=11;break}return a=o.value,n.next=9,a.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),r.e(n.t0);case 16:return n.prev=16,r.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return m().mark((function n(){var i,r,o,a;return m().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.boundaries=t,i=new ds(e),n.next=4,i.position;case 4:r=b(i),n.prev=5,r.s();case 7:if((o=r.n()).done){n.next=13;break}return a=o.value,n.next=11,a.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),r.e(n.t0);case 18:return n.prev=18,r.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"getTransformedByOperation",value:function(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,i=[new e(this.start,this.end)],r=b(t);try{for(r.s();!(n=r.n()).done;)for(var o=n.value,a=0;a<i.length;a++){var s=i[a].getTransformedByOperation(o);i.splice.apply(i,[a,1].concat(k(s))),a+=s.length-1}}catch(t){r.e(t)}finally{r.f()}for(var l=0;l<i.length;l++)for(var c=i[l],u=l+1;u<i.length;u++){var d=i[u];(c.containsRange(d)||d.containsRange(c)||c.isEqual(d))&&i.splice(u,1)}return i}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(t.position,t.howMany,e)}},{key:"_getTransformedByMoveOperation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.sourcePosition,i=t.howMany,r=t.targetPosition;return this._getTransformedByMove(n,r,i,e)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),i=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(i=this.end.getShiftedBy(1)),n.root!=i.root&&(i=this.end.getShiftedBy(-1)),new e(n,i)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),i=this.end._getTransformedByMergeOperation(t);return n.root!=i.root&&(i=this.end.getShiftedBy(-1)),n.isAfter(i)?(t.sourcePosition.isBefore(t.targetPosition)?(n=fs._createAt(i)).offset=0:(t.deletionPosition.isEqual(n)||(i=t.deletionPosition),n=t.targetPosition),new e(n,i)):new e(n,i)}},{key:"_getTransformedByInsertion",value:function(t,n){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var i=new e(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,n),i.end=i.end._getTransformedByInsertion(t,n),[i]}},{key:"_getTransformedByMove",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed)return[new e(this.start._getTransformedByMove(t,n,i))];var o,a=e._createFromPositionAndShift(t,i),s=n._getTransformedByDeletion(t,i);if(this.containsPosition(n)&&!r&&(a.containsPosition(this.start)||a.containsPosition(this.end)))return[new e(this.start._getTransformedByMove(t,n,i),this.end._getTransformedByMove(t,n,i))];var l=this.getDifference(a),c=null,u=this.getIntersection(a);if(1==l.length?c=new e(l[0].start._getTransformedByDeletion(t,i),l[0].end._getTransformedByDeletion(t,i)):2==l.length&&(c=new e(this.start,this.end._getTransformedByDeletion(t,i))),o=c?c._getTransformedByInsertion(s,i,null!==u||r):[],u){var d=new e(u.start._getCombined(a.start,s),u.end._getCombined(a.start,s));2==o.length?o.splice(1,0,d):o.push(d)}return o}},{key:"_getTransformedByDeletion",value:function(t,n){var i=this.start._getTransformedByDeletion(t,n),r=this.end._getTransformedByDeletion(t,n);return null==i&&null==r?null:(null==i&&(i=t),null==r&&(r=t),new e(i,r))}}],[{key:"_createFromPositionAndShift",value:function(t,e){var n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(t){return new this(fs._createAt(t,0),fs._createAt(t,t.maxOffset))}},{key:"_createOn",value:function(t){return this._createFromPositionAndShift(fs._createBefore(t),t.offsetSize)}},{key:"_createFromRanges",value:function(t){if(0===t.length)throw new S("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();var e=t[0];t.sort((function(t,e){return t.start.isAfter(e.start)?1:-1}));var n=t.indexOf(e),i=new this(e.start,e.end);if(n>0)for(var r=n-1;t[r].end.isEqual(i.start);r++)i.start=fs._createAt(t[r].start);for(var o=n+1;o<t.length&&t[o].start.isEqual(i.end);o++)i.end=fs._createAt(t[o].end);return i}},{key:"fromJSON",value:function(t,e){return new this(fs.fromJSON(t.start,e),fs.fromJSON(t.end,e))}}])}(os);vs.prototype.is=function(t){return"range"===t||"model:range"===t};var bs=function(t){function e(){var t;return P(this,e),(t=_(this,e))._modelToViewMapping=new WeakMap,t._viewToModelMapping=new WeakMap,t._viewToModelLengthCallbacks=new Map,t._markerNameToElements=new Map,t._elementToMarkerNames=new Map,t._deferredBindingRemovals=new Map,t._unboundMarkerNames=new Set,t.on("modelToViewPosition",(function(e,n){if(!n.viewPosition){var i=t._modelToViewMapping.get(n.modelPosition.parent);if(!i)throw new S("mapping-model-position-view-parent-not-found",A(t),{modelPosition:n.modelPosition});n.viewPosition=t.findPositionIn(i,n.modelPosition.offset)}}),{priority:"low"}),t.on("viewToModelPosition",(function(e,n){if(!n.modelPosition){var i=t.findMappedViewAncestor(n.viewPosition),r=t._viewToModelMapping.get(i),o=t._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,i);n.modelPosition=fs._createAt(r,o)}}),{priority:"low"}),t}return C(e,t),M(e,[{key:"bindElements",value:function(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}},{key:"unbindViewElement",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toModelElement(t);if(this._elementToMarkerNames.has(t)){var i,r=b(this._elementToMarkerNames.get(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;this._unboundMarkerNames.add(o)}}catch(t){r.e(t)}finally{r.f()}}e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}},{key:"unbindModelElement",value:function(t){var e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}},{key:"bindElementToMarker",value:function(t,e){var n=this._markerNameToElements.get(e)||new Set;n.add(t);var i=this._elementToMarkerNames.get(t)||new Set;i.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,i)}},{key:"unbindElementFromMarkerName",value:function(t,e){var n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));var i=this._elementToMarkerNames.get(t);i&&(i.delete(e),0==i.size&&this._elementToMarkerNames.delete(t))}},{key:"flushUnboundMarkerNames",value:function(){var t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}},{key:"flushDeferredBindings",value:function(){var t,e=b(this._deferredBindingRemovals);try{for(e.s();!(t=e.n()).done;){var n=v(t.value,2),i=n[0],r=n[1];i.root==r&&this.unbindViewElement(i)}}catch(t){e.e(t)}finally{e.f()}this._deferredBindingRemovals=new Map}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}},{key:"toModelElement",value:function(t){return this._viewToModelMapping.get(t)}},{key:"toViewElement",value:function(t){return this._modelToViewMapping.get(t)}},{key:"toModelRange",value:function(t){return new vs(this.toModelPosition(t.start),this.toModelPosition(t.end))}},{key:"toViewRange",value:function(t){return new ur(this.toViewPosition(t.start),this.toViewPosition(t.end))}},{key:"toModelPosition",value:function(t){var e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}},{key:"toViewPosition",value:function(t){var e={modelPosition:t,mapper:this,isPhantom:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isPhantom};return this.fire("modelToViewPosition",e),e.viewPosition}},{key:"markerNameToElements",value:function(t){var e=this._markerNameToElements.get(t);if(!e)return null;var n,i=new Set,r=b(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=b(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var l=a.value;i.add(l)}}catch(t){s.e(t)}finally{s.f()}}else i.add(o)}}catch(t){r.e(t)}finally{r.f()}return i}},{key:"registerViewToModelLength",value:function(t,e){this._viewToModelLengthCallbacks.set(t,e)}},{key:"findMappedViewAncestor",value:function(t){for(var e=t.parent;!this._viewToModelMapping.has(e);)e=e.parent;return e}},{key:"_toModelOffset",value:function(t,e,n){if(n!=t)return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t);if(t.is("$text"))return e;for(var i=0,r=0;r<e;r++)i+=this.getModelLength(t.getChild(r));return i}},{key:"getModelLength",value:function(t){if(this._viewToModelLengthCallbacks.get(t.name))return this._viewToModelLengthCallbacks.get(t.name)(t);if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;var e,n=0,i=b(t.getChildren());try{for(i.s();!(e=i.n()).done;){var r=e.value;n+=this.getModelLength(r)}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"findPositionIn",value:function(t,e){var n,i=0,r=0,o=0;if(t.is("$text"))return new cr(t,e);for(;r<e;)n=t.getChild(o),r+=i=this.getModelLength(n),o++;return r==e?this._moveViewPositionToTextNode(new cr(t,o)):this.findPositionIn(n,e-(r-i))}},{key:"_moveViewPositionToTextNode",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;return e instanceof ui?new cr(e,e.data.length):n instanceof ui?new cr(n,0):t}}])}(H),ks=function(){return M((function t(){P(this,t),this._consumable=new Map,this._textProxyRegistry=new Map}),[{key:"add",value:function(t,e){e=ys(e),t instanceof cs&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}},{key:"consume",value:function(t,e){return e=ys(e),t instanceof cs&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}},{key:"test",value:function(t,e){e=ys(e),t instanceof cs&&(t=this._getSymbolForTextProxy(t));var n=this._consumable.get(t);if(void 0===n)return null;var i=n.get(e);return void 0===i?null:i}},{key:"revert",value:function(t,e){e=ys(e),t instanceof cs&&(t=this._getSymbolForTextProxy(t));var n=this.test(t,e);return!1===n?(this._consumable.get(t).set(e,!0),!0):!0!==n&&null}},{key:"verifyAllConsumed",value:function(t){var e,n=[],i=b(this._consumable);try{for(i.s();!(e=i.n()).done;){var r,o=v(e.value,2),a=o[0],s=b(o[1]);try{for(s.s();!(r=s.n()).done;){var l=v(r.value,2),c=l[0],u=l[1],d=c.split(":")[0];u&&t==d&&n.push({event:c,item:a.name||a.description})}}catch(t){s.e(t)}finally{s.f()}}}catch(t){i.e(t)}finally{i.f()}if(n.length)throw new S("conversion-model-consumable-not-consumed",null,{items:n})}},{key:"_getSymbolForTextProxy",value:function(t){var e=null,n=this._textProxyRegistry.get(t.startOffset);if(n){var i=n.get(t.endOffset);i&&(e=i.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t)),e}},{key:"_addSymbolForTextProxy",value:function(t){var e,n,i=t.startOffset,r=t.endOffset,o=t.parent,a=Symbol("$textProxy:"+t.data);return(e=this._textProxyRegistry.get(i))||(e=new Map,this._textProxyRegistry.set(i,e)),(n=e.get(r))||(n=new Map,e.set(r,n)),n.set(o,a),a}}])}();function ys(t){var e=t.split(":");return"insert"==e[0]?e[0]:"addMarker"==e[0]||"removeMarker"==e[0]?t:e.length>1?e[0]+":"+e[1]:e[0]}var ws=function(t){function e(t){var n;return P(this,e),(n=_(this,e))._conversionApi=h({dispatcher:A(n)},t),n._firedEventsMap=new WeakMap,n}return C(e,t),M(e,[{key:"convertChanges",value:function(t,e,n){var i,r=this._createConversionApi(n,t.getRefreshedItems()),o=b(t.getMarkersToRemove());try{for(o.s();!(i=o.n()).done;){var a=i.value;this._convertMarkerRemove(a.name,a.range,r)}}catch(t){o.e(t)}finally{o.f()}var s,l=b(this._reduceChanges(t.getChanges()));try{for(l.s();!(s=l.n()).done;){var c=s.value;"insert"===c.type?this._convertInsert(vs._createFromPositionAndShift(c.position,c.length),r):"reinsert"===c.type?this._convertReinsert(vs._createFromPositionAndShift(c.position,c.length),r):"remove"===c.type?this._convertRemove(c.position,c.length,c.name,r):this._convertAttribute(c.range,c.attributeKey,c.attributeOldValue,c.attributeNewValue,r)}}catch(t){l.e(t)}finally{l.f()}var u,d=b(r.mapper.flushUnboundMarkerNames());try{for(d.s();!(u=d.n()).done;){var h=u.value,f=e.get(h).getRange();this._convertMarkerRemove(h,f,r),this._convertMarkerAdd(h,f,r)}}catch(t){d.e(t)}finally{d.f()}var p,g=b(t.getMarkersToAdd());try{for(g.s();!(p=g.n()).done;){var m=p.value;this._convertMarkerAdd(m.name,m.range,r)}}catch(t){g.e(t)}finally{g.f()}r.mapper.flushDeferredBindings(),r.consumable.verifyAllConsumed("insert")}},{key:"convert",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=this._createConversionApi(n,void 0,i);this._convertInsert(t,r);var o,a=b(e);try{for(a.s();!(o=a.n()).done;){var s=v(o.value,2),l=s[0],c=s[1];this._convertMarkerAdd(l,c,r)}}catch(t){a.e(t)}finally{a.f()}r.consumable.verifyAllConsumed("insert")}},{key:"convertSelection",value:function(t,e,n){var i=Array.from(e.getMarkersAtPosition(t.getFirstPosition())),r=this._createConversionApi(n);if(this._addConsumablesForSelection(r.consumable,t,i),this.fire("selection",{selection:t},r),t.isCollapsed){var o,a=b(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.getRange();if(_s(t.getFirstPosition(),s,r.mapper)){var c={item:t,markerName:s.name,markerRange:l};r.consumable.test(t,"addMarker:"+s.name)&&this.fire("addMarker:".concat(s.name),c,r)}}}catch(t){a.e(t)}finally{a.f()}var u,d=b(t.getAttributeKeys());try{for(d.s();!(u=d.n()).done;){var h=u.value,f={item:t,range:t.getFirstRange(),attributeKey:h,attributeOldValue:null,attributeNewValue:t.getAttribute(h)};r.consumable.test(t,"attribute:"+f.attributeKey)&&this.fire("attribute:".concat(f.attributeKey,":$text"),f,r)}}catch(t){d.e(t)}finally{d.f()}}}},{key:"_convertInsert",value:function(t,e){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).doNotAddConsumables||this._addConsumablesForInsert(e.consumable,Array.from(t));var n,i=b(Array.from(t.getWalker({shallow:!0})).map(As));try{for(i.s();!(n=i.n()).done;){var r=n.value;this._testAndFire("insert",r,e)}}catch(t){i.e(t)}finally{i.f()}}},{key:"_convertRemove",value:function(t,e,n,i){this.fire("remove:".concat(n),{position:t,length:e},i)}},{key:"_convertAttribute",value:function(t,e,n,i,r){this._addConsumablesForRange(r.consumable,t,"attribute:".concat(e));var o,a=b(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,l={item:s.item,range:vs._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:e,attributeOldValue:n,attributeNewValue:i};this._testAndFire("attribute:".concat(e),l,r)}}catch(t){a.e(t)}finally{a.f()}}},{key:"_convertReinsert",value:function(t,e){var n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);var i,r=b(n.map(As));try{for(r.s();!(i=r.n()).done;){var o=i.value;this._testAndFire("insert",h(h({},o),{},{reconversion:!0}),e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"_convertMarkerAdd",value:function(t,e,n){if("$graveyard"!=e.root.rootName){var i="addMarker:".concat(t);if(n.consumable.add(e,i),this.fire(i,{markerName:t,markerRange:e},n),n.consumable.consume(e,i)){this._addConsumablesForRange(n.consumable,e,i);var r,o=b(e.getItems());try{for(o.s();!(r=o.n()).done;){var a=r.value;if(n.consumable.test(a,i)){var s={item:a,range:vs._createOn(a),markerName:t,markerRange:e};this.fire(i,s,n)}}}catch(t){o.e(t)}finally{o.f()}}}}},{key:"_convertMarkerRemove",value:function(t,e,n){"$graveyard"!=e.root.rootName&&this.fire("removeMarker:".concat(t),{markerName:t,markerRange:e},n)}},{key:"_reduceChanges",value:function(t){var e={changes:t};return this.fire("reduceChanges",e),e.changes}},{key:"_addConsumablesForInsert",value:function(t,e){var n,i=b(e);try{for(i.s();!(n=i.n()).done;){var r=n.value.item;if(null===t.test(r,"insert")){t.add(r,"insert");var o,a=b(r.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;t.add(r,"attribute:"+s)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){i.e(t)}finally{i.f()}return t}},{key:"_addConsumablesForRange",value:function(t,e,n){var i,r=b(e.getItems());try{for(r.s();!(i=r.n()).done;){var o=i.value;t.add(o,n)}}catch(t){r.e(t)}finally{r.f()}return t}},{key:"_addConsumablesForSelection",value:function(t,e,n){t.add(e,"selection");var i,r=b(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.add(e,"addMarker:"+o.name)}}catch(t){r.e(t)}finally{r.f()}var a,s=b(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value;t.add(e,"attribute:"+l)}}catch(t){s.e(t)}finally{s.f()}return t}},{key:"_testAndFire",value:function(t,e,n){var i=function(t,e){var n=e.item.is("element")?e.item.name:"$text";return"".concat(t,":").concat(n)}(t,e),r=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,o=this._firedEventsMap.get(n),a=o.get(r);if(a){if(a.has(i))return;a.add(i)}else o.set(r,new Set([i]));this.fire(i,e,n)}},{key:"_testAndFireAddAttributes",value:function(t,e){var n,i={item:t,range:vs._createOn(t)},r=b(i.item.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var o=n.value;i.attributeKey=o,i.attributeOldValue=null,i.attributeNewValue=i.item.getAttribute(o),this._testAndFire("attribute:".concat(o),i,e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"_createConversionApi",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=h(h({},this._conversionApi),{},{consumable:new ks,writer:t,options:i,convertItem:function(t){return e._convertInsert(vs._createOn(t),r)},convertChildren:function(t){return e._convertInsert(vs._createIn(t),r,{doNotAddConsumables:!0})},convertAttributes:function(t){return e._testAndFireAddAttributes(t,r)},canReuseView:function(t){return!n.has(r.mapper.toModelElement(t))}});return this._firedEventsMap.set(r,new Map),r}}])}(H);function _s(t,e,n){var i=e.getRange(),r=Array.from(t.getAncestors());return r.shift(),r.reverse(),!r.some((function(t){if(i.containsItem(t))return!!n.toViewElement(t).getCustomProperty("addHighlight")}))}function As(t){return{item:t.item,range:vs._createFromPositionAndShift(t.previousPosition,t.length)}}var Cs=function(t){function e(){var t,n;return P(this,e),(n=_(this,e))._lastRangeBackward=!1,n._ranges=[],n._attrs=new Map,arguments.length&&(t=n).setTo.apply(t,arguments),n}return C(e,t),M(e,[{key:"anchor",get:function(){if(this._ranges.length>0){var t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"isEqual",value:function(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;var e,n=b(this._ranges);try{for(n.s();!(e=n.n()).done;){var i,r=e.value,o=!1,a=b(t._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(r.isEqual(s)){o=!0;break}}}catch(t){a.e(t)}finally{a.f()}if(!o)return!1}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"getRanges",value:m().mark((function t(){var e,n,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=b(this._ranges),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=n.value,t.next=7,new vs(i.start,i.end);case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var t,e=null,n=b(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.start.isBefore(e.start)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?new vs(e.start,e.end):null}},{key:"getLastRange",value:function(){var t,e=null,n=b(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.end.isAfter(e.end)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?new vs(e.start,e.end):null}},{key:"getFirstPosition",value:function(){var t=this.getFirstRange();return t?t.start.clone():null}},{key:"getLastPosition",value:function(){var t=this.getLastRange();return t?t.end.clone():null}},{key:"setTo",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n[0],o=n[1],a=n[2];if("object"==N(o)&&(a=o,o=void 0),null===r)this._setRanges([]);else if(r instanceof e)this._setRanges(r.getRanges(),r.isBackward);else if(r&&"function"==typeof r.getRanges)this._setRanges(r.getRanges(),r.isBackward);else if(r instanceof vs)this._setRanges([r],!!a&&!!a.backward);else if(r instanceof fs)this._setRanges([new vs(r)]);else if(r instanceof as){var s,l=!!a&&!!a.backward;if("in"==o)s=vs._createIn(r);else if("on"==o)s=vs._createOn(r);else{if(void 0===o)throw new S("model-selection-setto-required-second-parameter",[this,r]);s=new vs(fs._createAt(r,o))}this._setRanges([s],l)}else{if(!Kn(r))throw new S("model-selection-setto-not-selectable",[this,r]);this._setRanges(r,a&&!!a.backward)}}},{key:"_setRanges",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Array.from(t),r=i.some((function(n){if(!(n instanceof vs))throw new S("model-selection-set-ranges-not-range",[e,t]);return e._ranges.every((function(t){return!t.isEqual(n)}))}));(i.length!==this._ranges.length||r)&&(this._replaceAllRanges(i),this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0}))}},{key:"setFocus",value:function(t,e){if(null===this.anchor)throw new S("model-selection-setfocus-no-ranges",[this,t]);var n=fs._createAt(t,e);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new vs(n,i)),this._lastRangeBackward=!0):(this._pushRange(new vs(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(t){return this._attrs.get(t)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(t){return this._attrs.has(t)}},{key:"removeAttribute",value:function(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}},{key:"setAttribute",value:function(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"getSelectedBlocks",value:m().mark((function t(){var e,n,i,r,o,a,s,l,c,u;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new WeakSet,n=b(this.getRanges()),t.prev=2,n.s();case 4:if((i=n.n()).done){t.next=38;break}if(r=i.value,o=Es(r.start,e),t.t0=o&&Ss(o,r),!t.t0){t.next=11;break}return t.next=11,o;case 11:a=b(r.getWalker()),t.prev=12,a.s();case 14:if((s=a.n()).done){t.next=23;break}if(l=s.value,c=l.item,t.t1="elementEnd"==l.type&&Ds(c,e,r),!t.t1){t.next=21;break}return t.next=21,c;case 21:t.next=14;break;case 23:t.next=28;break;case 25:t.prev=25,t.t2=t.catch(12),a.e(t.t2);case 28:return t.prev=28,a.f(),t.finish(28);case 31:if(u=Es(r.end,e),t.t3=u&&!r.end.isTouching(fs._createAt(u,0))&&Ss(u,r),!t.t3){t.next=36;break}return t.next=36,u;case 36:t.next=4;break;case 38:t.next=43;break;case 40:t.prev=40,t.t4=t.catch(2),n.e(t.t4);case 43:return t.prev=43,n.f(),t.finish(43);case 46:case"end":return t.stop()}}),t,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,e=fs._createAt(t,0),n=fs._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(t){this._checkRange(t),this._ranges.push(new vs(t.start,t.end))}},{key:"_checkRange",value:function(t){for(var e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new S("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}},{key:"_replaceAllRanges",value:function(t){this._removeAllRanges();var e,n=b(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._pushRange(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}}])}(F(os));function xs(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&t.parent)}function Ds(t,e,n){return xs(t,e)&&Ss(t,n)}function Es(t,e){var n=t.parent.root.document.model.schema,i=t.parent.getAncestors({parentFirst:!0,includeSelf:!0}),r=!1,o=i.find((function(t){return!r&&(!(r=n.isLimit(t))&&xs(t,e))}));return i.forEach((function(t){return e.add(t)})),o}function Ss(t,e){var n=function(t){for(var e=t.root.document.model.schema,n=t.parent;n;){if(e.isBlock(n))return n;n=n.parent}}(t);return!n||!e.containsRange(vs._createOn(n),!0)}Cs.prototype.is=function(t){return"selection"===t||"model:selection"===t};var Ts=function(t){function e(t,n){var i;return P(this,e),i=_(this,e,[t,n]),Is.call(A(i)),i}return C(e,t),M(e,[{key:"detach",value:function(){this.stopListening()}},{key:"toRange",value:function(){return new vs(this.start,this.end)}}],[{key:"fromRange",value:function(t){return new e(t.start,t.end)}}])}(F(vs));function Is(){var t=this;this.listenTo(this.root.document.model,"applyOperation",(function(e,n){var i=n[0];i.isDocumentOperation&&Ms.call(t,i)}),{priority:"low"})}function Ms(t){var e=this.getTransformedByOperation(t),n=vs._createFromRanges(e),i=!n.isEqual(this),r=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t),o=null;if(i){"$graveyard"==n.root.rootName&&(o="remove"==t.type?t.sourcePosition:t.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else r&&this.fire("change:content",this.toRange(),{deletionPosition:o})}Ts.prototype.is=function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t};var Os="selection:",Ps=function(t){function e(t){var n;return P(this,e),(n=_(this,e))._selection=new Ns(t),n._selection.delegate("change:range").to(A(n)),n._selection.delegate("change:attribute").to(A(n)),n._selection.delegate("change:marker").to(A(n)),n}return C(e,t),M(e,[{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(t){return this._selection.containsEntireContent(t)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(t){return this._selection.getAttribute(t)}},{key:"hasAttribute",value:function(t){return this._selection.hasAttribute(t)}},{key:"refresh",value:function(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}},{key:"observeMarkers",value:function(t){this._selection.observeMarkers(t)}},{key:"_setFocus",value:function(t,e){this._selection.setFocus(t,e)}},{key:"_setTo",value:function(){var t;(t=this._selection).setTo.apply(t,arguments)}},{key:"_setAttribute",value:function(t,e){this._selection.setAttribute(t,e)}},{key:"_removeAttribute",value:function(t){this._selection.removeAttribute(t)}},{key:"_getStoredAttributes",value:function(){return this._selection.getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(t){this._selection.restoreGravity(t)}}],[{key:"_getStoreAttributeKey",value:function(t){return Os+t}},{key:"_isStoreAttributeKey",value:function(t){return t.startsWith(Os)}}])}(F(os));Ps.prototype.is=function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t};var Ns=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).markers=new Zn({idProperty:"name"}),n._model=t.model,n._document=t,n._attributePriority=new Map,n._selectionRestorePosition=null,n._hasChangedRange=!1,n._overriddenGravityRegister=new Set,n._observedMarkers=new Set,n.listenTo(n._model,"applyOperation",(function(t,e){var i=e[0];i.isDocumentOperation&&"marker"!=i.type&&"rename"!=i.type&&"noop"!=i.type&&(0==n._ranges.length&&n._selectionRestorePosition&&n._fixGraveyardSelection(n._selectionRestorePosition),n._selectionRestorePosition=null,n._hasChangedRange&&(n._hasChangedRange=!1,n.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),n.on("change:range",(function(){n._validateSelectionRanges(n.getRanges())})),n.listenTo(n._model.markers,"update",(function(t,e,i,r){n._updateMarker(e,r)})),n.listenTo(n._document,"change",(function(t,e){!function(t,e){var n,i=b(t.document.differ.getChanges());try{var r=function(){var i=n.value;if("insert"!=i.type)return 1;var r=i.position.parent;i.length===r.maxOffset&&t.enqueueChange(e,(function(t){var e,n=Array.from(r.getAttributeKeys()).filter((function(t){return t.startsWith(Os)})),i=b(n);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.removeAttribute(o,r)}}catch(t){i.e(t)}finally{i.f()}}))};for(i.s();!(n=i.n()).done;)r()}catch(t){i.e(t)}finally{i.f()}}(n._model,e)})),n}return C(e,t),M(e,[{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:p(e,"isCollapsed",this,1)}},{key:"anchor",get:function(){return p(e,"anchor",this,1)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return p(e,"focus",this,1)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}},{key:"destroy",value:function(){for(var t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}},{key:"getRanges",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._ranges.length){t.next=4;break}return t.delegateYield(p(e,"getRanges",this,3)([]),"t0",2);case 2:t.next=6;break;case 4:return t.next=6,this._document._getDefaultRange();case 6:case"end":return t.stop()}}),t,this)}))},{key:"getFirstRange",value:function(){return p(e,"getFirstRange",this,3)([])||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return p(e,"getLastRange",this,3)([])||this._document._getDefaultRange()}},{key:"setTo",value:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];p(e,"setTo",this,3)(n),this._updateAttributes(!0),this.updateMarkers()}},{key:"setFocus",value:function(t,n){p(e,"setFocus",this,3)([t,n]),this._updateAttributes(!0),this.updateMarkers()}},{key:"setAttribute",value:function(t,e){if(this._setAttribute(t,e)){var n=[t];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}},{key:"removeAttribute",value:function(t){if(this._removeAttribute(t)){var e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}},{key:"overrideGravity",value:function(){var t=y();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}},{key:"restoreGravity",value:function(t){if(!this._overriddenGravityRegister.has(t))throw new S("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"observeMarkers",value:function(t){this._observedMarkers.add(t),this.updateMarkers()}},{key:"_replaceAllRanges",value:function(t){this._validateSelectionRanges(t),p(e,"_replaceAllRanges",this,3)([t])}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(t){var e=this._prepareRange(t);e&&this._ranges.push(e)}},{key:"_validateSelectionRanges",value:function(t){var e,n=b(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!this._document._validateSelectionRange(i))throw new S("document-selection-wrong-position",this,{range:i})}}catch(t){n.e(t)}finally{n.f()}}},{key:"_prepareRange",value:function(t){var e=this;if(this._checkRange(t),t.root!=this._document.graveyard){var n=Ts.fromRange(t);return n.on("change:range",(function(t,i,r){if(e._hasChangedRange=!0,n.root==e._document.graveyard){e._selectionRestorePosition=r.deletionPosition;var o=e._ranges.indexOf(n);e._ranges.splice(o,1),n.detach()}})),n}}},{key:"updateMarkers",value:function(){if(this._observedMarkers.size){var t,e=[],n=!1,i=b(this._model.markers);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.name.split(":",1)[0];if(this._observedMarkers.has(o)){var a,s=r.getRange(),l=b(this.getRanges());try{for(l.s();!(a=l.n()).done;){var c=a.value;s.containsRange(c,!c.isCollapsed)&&e.push(r)}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){i.e(t)}finally{i.f()}for(var u=Array.from(this.markers),d=0,h=e;d<h.length;d++){var f=h[d];this.markers.has(f)||(this.markers.add(f),n=!0)}for(var p=0,g=Array.from(this.markers);p<g.length;p++){var m=g[p];e.includes(m)||(this.markers.remove(m),n=!0)}n&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}}},{key:"_updateMarker",value:function(t,e){var n=t.name.split(":",1)[0];if(this._observedMarkers.has(n)){var i=!1,r=Array.from(this.markers),o=this.markers.has(t);if(e){var a,s=!1,l=b(this.getRanges());try{for(l.s();!(a=l.n()).done;){var c=a.value;if(e.containsRange(c,!c.isCollapsed)){s=!0;break}}}catch(t){l.e(t)}finally{l.f()}s&&!o?(this.markers.add(t),i=!0):!s&&o&&(this.markers.remove(t),i=!0)}else o&&(this.markers.remove(t),i=!0);i&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}}},{key:"_updateAttributes",value:function(t){var e=hi(this._getSurroundingAttributes()),n=hi(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else{var i,r=b(this._attributePriority);try{for(r.s();!(i=r.n()).done;){var o=v(i.value,2),a=o[0];"low"==o[1]&&(this._attrs.delete(a),this._attributePriority.delete(a))}}catch(t){r.e(t)}finally{r.f()}}this._setAttributesTo(e);var s,l=[],c=b(this.getAttributes());try{for(c.s();!(s=c.n()).done;){var u=v(s.value,2),d=u[0],h=u[1];n.has(d)&&n.get(d)===h||l.push(d)}}catch(t){c.e(t)}finally{c.f()}var f,p=b(n);try{for(p.s();!(f=p.n()).done;){var g=v(f.value,1)[0];this.hasAttribute(g)||l.push(g)}}catch(t){p.e(t)}finally{p.f()}l.length>0&&this.fire("change:attribute",{attributeKeys:l,directChange:!1})}},{key:"_setAttribute",value:function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(t))&&(p(e,"getAttribute",this,3)([t])!==n&&(this._attrs.set(t,n),this._attributePriority.set(t,i),!0))}},{key:"_removeAttribute",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"normal":"low";return!("low"==n&&"normal"==this._attributePriority.get(t)||(this._attributePriority.set(t,n),!p(e,"hasAttribute",this,3)([t])||(this._attrs.delete(t),0)))}},{key:"_setAttributesTo",value:function(t){var e,n=new Set,i=b(this.getAttributes());try{for(i.s();!(e=i.n()).done;){var r=v(e.value,2),o=r[0],a=r[1];t.get(o)!==a&&this._removeAttribute(o,!1)}}catch(t){i.e(t)}finally{i.f()}var s,l=b(t);try{for(l.s();!(s=l.n()).done;){var c=v(s.value,2),u=c[0],d=c[1];this._setAttribute(u,d,!1)&&n.add(u)}}catch(t){l.e(t)}finally{l.f()}return n}},{key:"getStoredAttributes",value:m().mark((function t(){var e,n,i,r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.getFirstPosition().parent,!this.isCollapsed||!e.isEmpty){t.next=21;break}n=b(e.getAttributeKeys()),t.prev=3,n.s();case 5:if((i=n.n()).done){t.next=13;break}if(!(r=i.value).startsWith(Os)){t.next=11;break}return o=r.substr(10),t.next=11,[o,e.getAttribute(r)];case 11:t.next=5;break;case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),n.e(t.t0);case 18:return t.prev=18,n.f(),t.finish(18);case 21:case"end":return t.stop()}}),t,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var t=this.getFirstPosition(),e=this._model.schema,n=null;if(this.isCollapsed){var i=t.textNode?t.textNode:t.nodeBefore,r=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=Bs(i)),n||(n=Bs(r)),!this.isGravityOverridden&&!n)for(var o=i;o&&!e.isInline(o)&&!n;)n=Bs(o=o.previousSibling);if(!n)for(var a=r;a&&!e.isInline(a)&&!n;)n=Bs(a=a.nextSibling);n||(n=this.getStoredAttributes())}else{var s,l=b(this.getFirstRange());try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c.item.is("element")&&e.isObject(c.item))break;if("text"==c.type){n=c.item.getAttributes();break}}}catch(t){l.e(t)}finally{l.f()}}return n}},{key:"_fixGraveyardSelection",value:function(t){var e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}])}(Cs);function Bs(t){return t instanceof cs||t instanceof ls?t.getAttributes():null}var Ls=function(){return M((function t(e){P(this,t),this._dispatchers=e}),[{key:"add",value:function(t){var e,n=b(this._dispatchers);try{for(n.s();!(e=n.n()).done;){t(e.value)}}catch(t){n.e(t)}finally{n.f()}return this}}])}(),js=function(t){return Un(t,5)},Rs=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"elementToElement",value:function(t){return this.add(function(t){var e=Hs(t.model),n=Vs(t.view,"container");return e.attributes.length&&(e.children=!0),function(i){i.on("insert:".concat(e.name),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qs;return function(n,i,r){if(e(i.item,r.consumable,{preflight:!0})){var o=t(i.item,r,i);if(o){e(i.item,r.consumable);var a=r.mapper.toViewPosition(i.range.start);r.mapper.bindElements(i.item,o),r.writer.insert(a,o),r.convertAttributes(i.item),Gs(o,i.item.getChildren(),r,{reconversion:i.reconversion})}}}}(n,Ys(e)),{priority:t.converterPriority||"normal"}),(e.children||e.attributes.length)&&i.on("reduceChanges",$s(e),{priority:"low"})}}(t))}},{key:"elementToStructure",value:function(t){return this.add(function(t){var e=Hs(t.model),n=Vs(t.view,"container");return e.children=!0,function(i){if(i._conversionApi.schema.checkChild(e.name,"$text"))throw new S("conversion-element-to-structure-disallowed-text",i,{elementName:e.name});var r,o;i.on("insert:".concat(e.name),(r=n,o=Ys(e),function(t,e,n){if(o(e.item,n.consumable,{preflight:!0})){var i=new Map;n.writer._registerSlotFactory(function(t,e,n){return function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",o=i.createContainerElement("$slot"),a=null;if("children"===r)a=Array.from(t.getChildren());else{if("function"!=typeof r)throw new S("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:r});a=Array.from(t.getChildren()).filter((function(t){return r(t)}))}return e.set(o,a),o}}(e.item,i,n));var a=r(e.item,n,e);if(n.writer._clearSlotFactory(),a){!function(t,e,n){var i=Array.from(e.values()).flat(),r=new Set(i);if(r.size!=i.length)throw new S("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(r.size!=t.childCount)throw new S("conversion-slot-filter-incomplete",n.dispatcher,{element:t})}(e.item,i,n),o(e.item,n.consumable);var s=n.mapper.toViewPosition(e.range.start);n.mapper.bindElements(e.item,a),n.writer.insert(s,a),n.convertAttributes(e.item),function(t,e,n,i){n.mapper.on("modelToViewPosition",c,{priority:"highest"});var r,o=null,a=null,s=b(e);try{for(s.s();!(r=s.n()).done;){var l=v(r.value,2);o=l[0],Gs(t,a=l[1],n,i),n.writer.move(n.writer.createRangeIn(o),n.writer.createPositionBefore(o)),n.writer.remove(o)}}catch(t){s.e(t)}finally{s.f()}function c(t,e){var n=e.modelPosition.nodeAfter,i=a.indexOf(n);i<0||(e.viewPosition=e.mapper.findPositionIn(o,i))}n.mapper.off("modelToViewPosition",c)}(a,i,n,{reconversion:e.reconversion})}}}),{priority:t.converterPriority||"normal"}),i.on("reduceChanges",$s(e),{priority:"low"})}}(t))}},{key:"attributeToElement",value:function(t){return this.add(function(t){var e=(t=js(t)).model;"string"==typeof e&&(e={key:e});var n="attribute:".concat(e.key);if(e.name&&(n+=":"+e.name),e.values){var i,r=b(e.values);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.view[o]=Vs(t.view[o],"attribute")}}catch(t){r.e(t)}finally{r.f()}}else t.view=Vs(t.view,"attribute");var a=Us(t);return function(e){e.on(n,function(t){return function(e,n,i){if(i.consumable.test(n.item,e.name)){var r=t(n.attributeOldValue,i,n),o=t(n.attributeNewValue,i,n);if(r||o){i.consumable.consume(n.item,e.name);var a=i.writer,s=a.document.selection;if(n.item instanceof Cs||n.item instanceof Ps)a.wrap(s.getFirstRange(),o);else{var l=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&r&&(l=a.unwrap(l,r)),null!==n.attributeNewValue&&o&&a.wrap(l,o)}}}}}(a),{priority:t.converterPriority||"normal"})}}(t))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var e=(t=js(t)).model;"string"==typeof e&&(e={key:e});var n="attribute:".concat(e.key);if(e.name&&(n+=":"+e.name),e.values){var i,r=b(e.values);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.view[o]=Ws(t.view[o])}}catch(t){r.e(t)}finally{r.f()}}else t.view=Ws(t.view);var a=Us(t);return function(e){var i;e.on(n,(i=a,function(t,e,n){if(n.consumable.test(e.item,t.name)){var r=i(e.attributeOldValue,n,e),o=i(e.attributeNewValue,n,e);if(r||o){n.consumable.consume(e.item,t.name);var a=n.mapper.toViewElement(e.item),s=n.writer;if(!a)throw new S("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&r)if("class"==r.key){var l,c=b(Xn(r.value));try{for(c.s();!(l=c.n()).done;){var u=l.value;s.removeClass(u,a)}}catch(t){c.e(t)}finally{c.f()}}else if("style"==r.key)for(var d=0,h=Object.keys(r.value);d<h.length;d++){var f=h[d];s.removeStyle(f,a)}else s.removeAttribute(r.key,a);if(null!==e.attributeNewValue&&o)if("class"==o.key){var p,g=b(Xn(o.value));try{for(g.s();!(p=g.n()).done;){var m=p.value;s.addClass(m,a)}}catch(t){g.e(t)}finally{g.f()}}else if("style"==o.key)for(var v=0,k=Object.keys(o.value);v<k.length;v++){var y=k[v];s.setStyle(y,o.value[y],a)}else s.setAttribute(o.key,o.value,a)}}}),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToElement",value:function(t){return this.add(function(t){var e=Vs(t.view,"ui");return function(n){var i;n.on("addMarker:".concat(t.model),(i=e,function(t,e,n){e.isOpening=!0;var r=i(e,n);e.isOpening=!1;var o=i(e,n);if(r&&o){var a=e.markerRange;if(!a.isCollapsed||n.consumable.consume(a,t.name)){var s,l=b(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(!n.consumable.consume(c.item,t.name))return}}catch(t){l.e(t)}finally{l.f()}var u=n.mapper,d=n.writer;d.insert(u.toViewPosition(a.start),r),n.mapper.bindElementToMarker(r,e.markerName),a.isCollapsed||(d.insert(u.toViewPosition(a.end),o),n.mapper.bindElementToMarker(o,e.markerName)),t.stop()}}}),{priority:t.converterPriority||"normal"}),n.on("removeMarker:".concat(t.model),(function(t,e,n){var i=n.mapper.markerNameToElements(e.markerName);if(i){var r,o=b(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.mapper.unbindElementFromMarkerName(a,e.markerName),n.writer.clear(n.writer.createRangeOn(a),a)}}catch(t){o.e(t)}finally{o.f()}n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToHighlight",value:function(t){return this.add(function(t){return function(e){var n;e.on("addMarker:".concat(t.model),(n=t.view,function(t,e,i){if(e.item&&(e.item instanceof Cs||e.item instanceof Ps||e.item.is("$textProxy"))){var r=qs(n,e,i);if(r&&i.consumable.consume(e.item,t.name)){var o=i.writer,a=zs(o,r),s=o.document.selection;if(e.item instanceof Cs||e.item instanceof Ps)o.wrap(s.getFirstRange(),a);else{var l,c=i.mapper.toViewRange(e.range),u=b(o.wrap(c,a).getItems());try{for(u.s();!(l=u.n()).done;){var d=l.value;if(d.is("attributeElement")&&d.isSimilar(a)){i.mapper.bindElementToMarker(d,e.markerName);break}}}catch(t){u.e(t)}finally{u.f()}}}}}),{priority:t.converterPriority||"normal"}),e.on("addMarker:".concat(t.model),function(t){return function(e,n,i){if(n.item&&n.item instanceof us){var r=qs(t,n,i);if(r&&i.consumable.test(n.item,e.name)){var o=i.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){i.consumable.consume(n.item,e.name);var a,s=b(vs._createIn(n.item));try{for(s.s();!(a=s.n()).done;){var l=a.value;i.consumable.consume(l.item,e.name)}}catch(t){s.e(t)}finally{s.f()}o.getCustomProperty("addHighlight")(o,r,i.writer),i.mapper.bindElementToMarker(o,n.markerName)}}}}}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:".concat(t.model),function(t){return function(e,n,i){if(!n.markerRange.isCollapsed){var r=qs(t,n,i);if(r){var o=zs(i.writer,r),a=i.mapper.markerNameToElements(n.markerName);if(a){var s,l=b(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;i.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("attributeElement")?i.writer.unwrap(i.writer.createRangeOn(c),o):c.getCustomProperty("removeHighlight")(c,r.id,i.writer)}}catch(t){l.e(t)}finally{l.f()}i.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToData",value:function(t){return this.add(function(t){var e=(t=js(t)).model,n=t.view;return n||(n=function(n){return{group:e,name:n.substr(t.model.length+1)}}),function(i){var r;i.on("addMarker:".concat(e),(r=n,function(t,e,n){var i=r(e.markerName,n);if(i){var o=e.markerRange;n.consumable.consume(o,t.name)&&(Fs(o,!1,n,e,i),Fs(o,!0,n,e,i),t.stop())}}),{priority:t.converterPriority||"normal"}),i.on("removeMarker:".concat(e),function(t){return function(e,n,i){var r=t(n.markerName,i);if(r){var o=i.mapper.markerNameToElements(n.markerName);if(o){var a,s=b(o);try{for(s.s();!(a=s.n()).done;){var l=a.value;i.mapper.unbindElementFromMarkerName(l,n.markerName),l.is("containerElement")?(c("data-".concat(r.group,"-start-before"),l),c("data-".concat(r.group,"-start-after"),l),c("data-".concat(r.group,"-end-before"),l),c("data-".concat(r.group,"-end-after"),l)):i.writer.clear(i.writer.createRangeOn(l),l)}}catch(t){s.e(t)}finally{s.f()}i.writer.clearClonedElementsGroup(n.markerName),e.stop()}}function c(t,e){if(e.hasAttribute(t)){var n=new Set(e.getAttribute(t).split(","));n.delete(r.name),0==n.size?i.writer.removeAttribute(t,e):i.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(n),{priority:t.converterPriority||"normal"})}}(t))}}])}(Ls);function zs(t,e){var n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),"number"==typeof e.priority&&(n._priority=e.priority),n._id=e.id,n}function Fs(t,e,n,i,r){var o=e?t.start:t.end,a=o.nodeAfter&&o.nodeAfter.is("element")?o.nodeAfter:null,s=o.nodeBefore&&o.nodeBefore.is("element")?o.nodeBefore:null;if(a||s){var l,c;e&&a||!e&&!s?(l=a,c=!0):(l=s,c=!1);var u=n.mapper.toViewElement(l);if(u)return void function(t,e,n,i,r,o){var a="data-".concat(o.group,"-").concat(e?"start":"end","-").concat(n?"before":"after"),s=t.hasAttribute(a)?t.getAttribute(a).split(","):[];s.unshift(o.name),i.writer.setAttribute(a,s.join(","),t),i.mapper.bindElementToMarker(t,r.markerName)}(u,e,c,n,i,r)}!function(t,e,n,i,r){var o="".concat(r.group,"-").concat(e?"start":"end"),a=r.name?{name:r.name}:null,s=n.writer.createUIElement(o,a);n.writer.insert(t,s),n.mapper.bindElementToMarker(s,i.markerName)}(n.mapper.toViewPosition(o),e,n,i,r)}function Hs(t){return"string"==typeof t&&(t={name:t}),t.attributes?Array.isArray(t.attributes)||(t.attributes=[t.attributes]):t.attributes=[],t.children=!!t.children,t}function Vs(t,e){return"function"==typeof t?t:function(n,i){return function(t,e,n){var i;"string"==typeof t&&(t={name:t});var r=e.writer,o=Object.assign({},t.attributes);if("container"==n)i=r.createContainerElement(t.name,o);else if("attribute"==n){var a={priority:t.priority||xr.DEFAULT_PRIORITY};i=r.createAttributeElement(t.name,o,a)}else i=r.createUIElement(t.name,o);if(t.styles)for(var s=0,l=Object.keys(t.styles);s<l.length;s++){var c=l[s];r.setStyle(c,t.styles[c],i)}if(t.classes){var u=t.classes;if("string"==typeof u)r.addClass(u,i);else{var d,h=b(u);try{for(h.s();!(d=h.n()).done;){var f=d.value;r.addClass(f,i)}}catch(t){h.e(t)}finally{h.f()}}}return i}(t,i,e)}}function Us(t){return t.model.values?function(e,n,i){var r=t.view[e];return r?r(e,n,i):null}:t.view}function Ws(t){return"string"==typeof t?function(e){return{key:t,value:e}}:"object"==N(t)?t.value?function(){return t}:function(e){return{key:t.key,value:e}}:t}function qs(t,e,n){var i="function"==typeof t?t(e,n):t;return i?(i.priority||(i.priority=10),i.id||(i.id=e.markerName),i):null}function $s(t){var e=function(t){return function(e,n){if(!e.is("element",t.name))return!1;if("attribute"==n.type){if(t.attributes.includes(n.attributeKey))return!0}else if(t.children)return!0;return!1}}(t);return function(t,n){var i=[];n.reconvertedElements||(n.reconvertedElements=new Set);var r,o=b(n.changes);try{for(o.s();!(r=o.n()).done;){var a=r.value,s="attribute"==a.type?a.range.start.nodeAfter:a.position.parent;if(s&&e(s,a)){if(!n.reconvertedElements.has(s)){n.reconvertedElements.add(s);var l=fs._createBefore(s);i.push({type:"remove",name:s.name,position:l,length:1},{type:"reinsert",name:s.name,position:l,length:1})}}else i.push(a)}}catch(t){o.e(t)}finally{o.f()}n.changes=i}}function Ys(t){return function(e,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=["insert"],a=b(t.attributes);try{for(a.s();!(i=a.n()).done;){var s=i.value;e.hasAttribute(s)&&o.push("attribute:".concat(s))}}catch(t){a.e(t)}finally{a.f()}return!!o.every((function(t){return n.test(e,t)}))&&(r.preflight||o.forEach((function(t){return n.consume(e,t)})),!0)}}function Gs(t,e,n,i){var r,o=b(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;Ks(t.root,a,n,i)||n.convertItem(a)}}catch(t){o.e(t)}finally{o.f()}}function Ks(t,e,n,i){var r=n.writer,o=n.mapper;if(!i.reconversion)return!1;var a=o.toViewElement(e);return!(!a||a.root==t||!n.canReuseView(a)||(r.move(r.createRangeOn(a),o.toViewPosition(fs._createBefore(e))),0))}function Qs(t,e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).preflight?e.test(t,"insert"):e.consume(t,"insert")}function Zs(t){var e,n=t.model,i=n.schema,r=n.document,o=b(r.getRootNames());try{for(o.s();!(e=o.n()).done;){var a=e.value,s=r.getRoot(a);if(s.isEmpty&&!i.checkChild(s,"$text")&&i.checkChild(s,"paragraph"))return t.insertElement("paragraph",s),!0}}catch(t){o.e(t)}finally{o.f()}return!1}function Js(t,e,n){var i=n.createContext(t);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),e)}function Xs(t,e){var n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}var tl=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"elementToElement",value:function(t){return this.add(el(t))}},{key:"elementToAttribute",value:function(t){return this.add(function(t){rl(t=js(t));var e=ol(t,!1),n=nl(t.view),i=n?"element:".concat(n):"element";return function(n){n.on(i,e,{priority:t.converterPriority||"low"})}}(t))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var e=null;("string"==typeof(t=js(t)).view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});var e,n=t.view.key;return e="class"==n||"style"==n?f({},"class"==n?"classes":"styles",t.view.value):{attributes:f({},n,void 0===t.view.value?/[\s\S]*/:t.view.value)},t.view.name&&(e.name=t.view.name),t.view=e,n}(t)),rl(t,e);var n=ol(t,!0);return function(e){e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}},{key:"elementToMarker",value:function(t){return this.add(function(t){var e=function(t){return function(e,n){var i="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":i})}}(t.model);return el(h(h({},t),{},{model:e}))}(t))}},{key:"dataToMarker",value:function(t){return this.add(function(t){(t=js(t)).model||(t.model=function(e){return e?t.view+":"+e:t.view});var e={view:t.view,model:t.model},n=il(al(e,"start")),i=il(al(e,"end"));return function(r){r.on("element:".concat(t.view,"-start"),n,{priority:t.converterPriority||"normal"}),r.on("element:".concat(t.view,"-end"),i,{priority:t.converterPriority||"normal"});var o=w.get("low"),a=w.get("highest"),s=w.get(t.converterPriority)/a;r.on("element",function(t){return function(e,n,i){var r="data-".concat(t.view);function o(e,r){var o,a=b(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=t.model(s,i),c=i.writer.createElement("$marker",{"data-name":l});i.writer.insert(c,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0]}}catch(t){a.e(t)}finally{a.f()}}(i.consumable.test(n.viewItem,{attributes:r+"-end-after"})||i.consumable.test(n.viewItem,{attributes:r+"-start-after"})||i.consumable.test(n.viewItem,{attributes:r+"-end-before"})||i.consumable.test(n.viewItem,{attributes:r+"-start-before"}))&&(n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor)),i.consumable.consume(n.viewItem,{attributes:r+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(r+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(r+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(r+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(r+"-start-before").split(",")))}}(e),{priority:o+s})}}(t))}}])}(Ls);function el(t){var e=il(t=js(t)),n=nl(t.view),i=n?"element:".concat(n):"element";return function(n){n.on(i,e,{priority:t.converterPriority||"normal"})}}function nl(t){return"string"==typeof t?t:"object"==N(t)&&"string"==typeof t.name?t.name:null}function il(t){var e=new fi(t.view);return function(n,i,r){var o=e.match(i.viewItem);if(o){var a=o.match;if(a.name=!0,r.consumable.test(i.viewItem,a)){var s=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,i.viewItem,r);s&&r.safeInsert(s,i.modelCursor)&&(r.consumable.consume(i.viewItem,a),r.convertChildren(i.viewItem,s),r.updateConversionResult(s,i))}}}}function rl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===e||function(t){return t.getAttribute(e)},i="object"!=N(t.model)?t.model:t.model.key,r="object"!=N(t.model)||void 0===t.model.value?n:t.model.value;t.model={key:i,value:r}}function ol(t,e){var n=new fi(t.view);return function(i,r,o){if(r.modelRange||!e){var a=n.match(r.viewItem);if(a&&(function(t,e){var n="function"==typeof t?t(e):t;return!("object"==N(n)&&!nl(n))&&(!n.classes&&!n.attributes&&!n.styles)}(t.view,r.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(r.viewItem,a.match))){var s=t.model.key,l="function"==typeof t.model.value?t.model.value(r.viewItem,o):t.model.value;if(null!==l){r.modelRange||Object.assign(r,o.convertChildren(r.viewItem,r.modelCursor));var c=function(t,e,n,i){for(var r=!1,o=0,a=Array.from(t.getItems({shallow:n}));o<a.length;o++){var s=a[o];i.schema.checkAttribute(s,e.key)&&(r=!0,s.hasAttribute(e.key)||i.writer.setAttribute(e.key,e.value,s))}return r}(r.modelRange,{key:s,value:l},e,o);c&&(o.consumable.test(r.viewItem,{name:!0})&&(a.match.name=!0),o.consumable.consume(r.viewItem,a.match))}}}}}function al(t,e){return{view:"".concat(t.view,"-").concat(e),model:function(e,n){var i=e.getAttribute("name"),r=t.model(i,n);return n.writer.createElement("$marker",{"data-name":r})}}}var sl=function(t){function e(t,n){var i;P(this,e),(i=_(this,e)).model=t,i.view=new rs(n),i.mapper=new bs,i.downcastDispatcher=new ws({mapper:i.mapper,schema:t.schema});var r=i.model.document,o=r.selection,a=i.model.markers;return i.listenTo(i.model,"_beforeChanges",(function(){i.view._disableRendering(!0)}),{priority:"highest"}),i.listenTo(i.model,"_afterChanges",(function(){i.view._disableRendering(!1)}),{priority:"lowest"}),i.listenTo(r,"change",(function(){i.view.change((function(t){i.downcastDispatcher.convertChanges(r.differ,a,t),i.downcastDispatcher.convertSelection(o,a,t)}))}),{priority:"low"}),i.listenTo(i.view.document,"selectionChange",function(t,e){return function(n,i){var r,o=i.newSelection,a=[],s=b(o.getRanges());try{for(s.s();!(r=s.n()).done;){var l=r.value;a.push(e.toModelRange(l))}}catch(t){s.e(t)}finally{s.f()}var c=t.createSelection(a,{backward:o.isBackward});c.isEqual(t.document.selection)||t.change((function(t){t.setSelection(c)}))}}(i.model,i.mapper)),i.downcastDispatcher.on("insert:$text",(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=n.writer,r=n.mapper.toViewPosition(e.range.start),o=i.createText(e.item.data);i.insert(r,o)}}),{priority:"lowest"}),i.downcastDispatcher.on("insert",(function(t,e,n){n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),i.downcastDispatcher.on("remove",(function(t,e,n){var i,r=n.mapper.toViewPosition(e.position),o=e.position.getShiftedBy(e.length),a=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(r,a),l=n.writer.remove(s.getTrimmed()),c=b(n.writer.createRangeIn(l).getItems());try{for(c.s();!(i=c.n()).done;){var u=i.value;n.mapper.unbindViewElement(u,{defer:!0})}}catch(t){c.e(t)}finally{c.f()}}),{priority:"low"}),i.downcastDispatcher.on("selection",(function(t,e,n){var i,r=n.writer,o=b(r.document.selection.getRanges());try{for(o.s();!(i=o.n()).done;){var a=i.value;a.isCollapsed&&a.end.parent.isAttached()&&n.writer.mergeAttributes(a.start)}}catch(t){o.e(t)}finally{o.f()}r.setSelection(null)}),{priority:"high"}),i.downcastDispatcher.on("selection",(function(t,e,n){var i=e.selection;if(!i.isCollapsed&&n.consumable.consume(i,"selection")){var r,o=[],a=b(i.getRanges());try{for(a.s();!(r=a.n()).done;){var s=r.value;o.push(n.mapper.toViewRange(s))}}catch(t){a.e(t)}finally{a.f()}n.writer.setSelection(o,{backward:i.isBackward})}}),{priority:"low"}),i.downcastDispatcher.on("selection",(function(t,e,n){var i=e.selection;if(i.isCollapsed&&n.consumable.consume(i,"selection")){var r=n.writer,o=i.getFirstPosition(),a=n.mapper.toViewPosition(o),s=r.breakAttributes(a);r.setSelection(s)}}),{priority:"low"}),i.view.document.roots.bindTo(i.model.document.roots).using((function(t){if("$graveyard"==t.rootName)return null;var e=new sr(i.view.document,t.name);return e.rootName=t.rootName,i.mapper.bindElements(t,e),e})),i}return C(e,t),M(e,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}},{key:"reconvertMarker",value:function(t){var e=this,n="string"==typeof t?t:t.name,i=this.model.markers.get(n);if(!i)throw new S("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:n});this.model.change((function(){e.model.markers._refresh(i)}))}},{key:"reconvertItem",value:function(t){var e=this;this.model.change((function(){e.model.document.differ._refreshItem(t)}))}}])}(nt),ll=function(){return M((function t(){P(this,t),this._commands=new Map}),[{key:"add",value:function(t,e){this._commands.set(t,e)}},{key:"get",value:function(t){return this._commands.get(t)}},{key:"execute",value:function(t){var e=this.get(t);if(!e)throw new S("commandcollection-command-not-found",this,{commandName:t});for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e.execute.apply(e,i)}},{key:"names",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"commands",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var t,e=b(this.commands());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}}}])}(),cl=function(){function t(){P(this,t),this._consumables=new Map}return M(t,[{key:"add",value:function(t,e){var n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new dl(t),this._consumables.set(t,n)),n.add(e))}},{key:"test",value:function(t,e){var n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}},{key:"consume",value:function(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}},{key:"revert",value:function(t,e){var n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}}],[{key:"consumablesFromElement",value:function(t){var e,n={element:t,name:!0,attributes:[],classes:[],styles:[]},i=b(t.getAttributeKeys());try{for(i.s();!(e=i.n()).done;){var r=e.value;"style"!=r&&"class"!=r&&n.attributes.push(r)}}catch(t){i.e(t)}finally{i.f()}var o,a=b(t.getClassNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.classes.push(s)}}catch(t){a.e(t)}finally{a.f()}var l,c=b(t.getStyleNames());try{for(c.s();!(l=c.n()).done;){var u=l.value;n.styles.push(u)}}catch(t){c.e(t)}finally{c.f()}return n}},{key:"createFrom",value:function(e,n){if(n||(n=new t),e.is("$text"))return n.add(e),n;e.is("element")&&n.add(e,t.consumablesFromElement(e)),e.is("documentFragment")&&n.add(e);var i,r=b(e.getChildren());try{for(r.s();!(i=r.n()).done;){var o=i.value;n=t.createFrom(o,n)}}catch(t){r.e(t)}finally{r.f()}return n}}])}(),ul=["attributes","classes","styles"],dl=function(){return M((function t(e){P(this,t),this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}),[{key:"add",value:function(t){t.name&&(this._canConsumeName=!0);for(var e=0,n=ul;e<n.length;e++){var i=n[e];i in t&&this._add(i,t[i])}}},{key:"test",value:function(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(var e=0,n=ul;e<n.length;e++){var i=n[e];if(i in t){var r=this._test(i,t[i]);if(!0!==r)return r}}return!0}},{key:"consume",value:function(t){t.name&&(this._canConsumeName=!1);for(var e=0,n=ul;e<n.length;e++){var i=n[e];i in t&&this._consume(i,t[i])}}},{key:"revert",value:function(t){t.name&&(this._canConsumeName=!0);for(var e=0,n=ul;e<n.length;e++){var i=n[e];i in t&&this._revert(i,t[i])}}},{key:"_add",value:function(t,e){var n,i=ke(e)?e:[e],r=this._consumables[t],o=b(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"===t&&("class"===a||"style"===a))throw new S("viewconsumable-invalid-attribute",this);if(r.set(a,!0),"styles"===t){var s,l=b(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var c=s.value;r.set(c,!0)}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){o.e(t)}finally{o.f()}}},{key:"_test",value:function(t,e){var n,i=ke(e)?e:[e],r=this._consumables[t],o=b(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a){var s=r.get(a);if(void 0===s)return null;if(!s)return!1}else{var l="class"==a?"classes":"styles",c=this._test(l,k(this._consumables[l].keys()));if(!0!==c)return c}}}catch(t){o.e(t)}finally{o.f()}return!0}},{key:"_consume",value:function(t,e){var n,i=ke(e)?e:[e],r=this._consumables[t],o=b(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a){if(r.set(a,!1),"styles"==t){var s,l=b(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var c=s.value;r.set(c,!1)}}catch(t){l.e(t)}finally{l.f()}}}else{var u="class"==a?"classes":"styles";this._consume(u,k(this._consumables[u].keys()))}}}catch(t){o.e(t)}finally{o.f()}}},{key:"_revert",value:function(t,e){var n,i=ke(e)?e:[e],r=this._consumables[t],o=b(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a)!1===r.get(a)&&r.set(a,!0);else{var s="class"==a?"classes":"styles";this._revert(s,k(this._consumables[s].keys()))}}}catch(t){o.e(t)}finally{o.f()}}}])}(),hl=function(t){function e(){var t;return P(this,e),(t=_(this,e))._sourceDefinitions={},t._attributeProperties={},t.decorate("checkChild"),t.decorate("checkAttribute"),t.on("checkAttribute",(function(t,e){e[0]=new fl(e[0])}),{priority:"highest"}),t.on("checkChild",(function(e,n){n[0]=new fl(n[0]),n[1]=t.getDefinition(n[1])}),{priority:"highest"}),t}return C(e,t),M(e,[{key:"register",value:function(t,e){if(this._sourceDefinitions[t])throw new S("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}},{key:"extend",value:function(t,e){if(!this._sourceDefinitions[t])throw new S("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(t){var e;return e="string"==typeof t?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}},{key:"isRegistered",value:function(t){return!!this.getDefinition(t)}},{key:"isBlock",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isBlock)}},{key:"isLimit",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isLimit&&!e.isObject)}},{key:"isObject",value:function(t){var e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}},{key:"isInline",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isInline)}},{key:"isSelectable",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isSelectable&&!e.isObject)}},{key:"isContent",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isContent&&!e.isObject)}},{key:"checkChild",value:function(t,e){return!!e&&this._checkContextMatch(e,t)}},{key:"checkAttribute",value:function(t,e){var n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}},{key:"checkMerge",value:function(t,e){if(t instanceof fs){var n=t.nodeBefore,i=t.nodeAfter;if(!(n instanceof us))throw new S("schema-check-merge-no-element-before",this);if(!(i instanceof us))throw new S("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}var r,o=b(e.getChildren());try{for(o.s();!(r=o.n()).done;){var a=r.value;if(!this.checkChild(t,a))return!1}}catch(t){o.e(t)}finally{o.f()}return!0}},{key:"addChildCheck",value:function(t){this.on("checkChild",(function(e,n){var i=v(n,2),r=i[0],o=i[1];if(o){var a=t(r,o);"boolean"==typeof a&&(e.stop(),e.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(t){this.on("checkAttribute",(function(e,n){var i=v(n,2),r=i[0],o=i[1],a=t(r,o);"boolean"==typeof a&&(e.stop(),e.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}},{key:"getAttributeProperties",value:function(t){return this._attributeProperties[t]||{}}},{key:"getLimitElement",value:function(t){var e;for(e=t instanceof fs?t.parent:(t instanceof vs?[t]:Array.from(t.getRanges())).reduce((function(t,e){var n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}},{key:"checkAttributeInSelection",value:function(t,e){if(t.isCollapsed){var n=[].concat(k(t.getFirstPosition().getAncestors()),[new ls("",t.getAttributes())]);return this.checkAttribute(n,e)}var i,r=b(t.getRanges());try{for(r.s();!(i=r.n()).done;){var o,a=b(i.value);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.checkAttribute(s.item,e))return!0}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}return!1}},{key:"getValidRanges",value:m().mark((function t(e,n){var i,r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=m().mark((function t(e){var n,i,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=b(e),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=8;break}return r=i.value,t.delegateYield(r.getMinimalFlatRanges(),"t0",6);case 6:t.next=3;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),n.e(t.t1);case 13:return t.prev=13,n.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])}))(e),i=b(e),t.prev=2,i.s();case 4:if((r=i.n()).done){t.next=9;break}return o=r.value,t.delegateYield(this._getValidRangesForRange(o,n),"t0",7);case 7:t.next=4;break;case 9:t.next=14;break;case 11:t.prev=11,t.t1=t.catch(2),i.e(t.t1);case 14:return t.prev=14,i.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(t){var e,n,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(t,"$text"))return new vs(t);var o=t.getAncestors().reverse().find((function(t){return i.isLimit(t)}))||t.root;"both"!=r&&"backward"!=r||(e=new ds({boundaries:vs._createIn(o),startPosition:t,direction:"backward"})),"both"!=r&&"forward"!=r||(n=new ds({boundaries:vs._createIn(o),startPosition:t}));var a,s=b(m().mark((function t(e,n){var i,r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=!1;case 1:if(i){t.next=18;break}if(i=!0,!e){t.next=9;break}if(r=e.next(),t.t0=r.done,t.t0){t.next=9;break}return i=!1,t.next=9,{walker:e,value:r.value};case 9:if(!n){t.next=16;break}if(o=n.next(),t.t1=o.done,t.t1){t.next=16;break}return i=!1,t.next=16,{walker:n,value:o.value};case 16:t.next=1;break;case 18:case"end":return t.stop()}}),t)}))(e,n));try{for(s.s();!(a=s.n()).done;){var l=a.value,c=l.walker==e?"elementEnd":"elementStart",u=l.value;if(u.type==c&&this.isObject(u.item))return vs._createOn(u.item);if(this.checkChild(u.nextPosition,"$text"))return new vs(u.nextPosition)}}catch(t){s.e(t)}finally{s.f()}return null}},{key:"findAllowedParent",value:function(t,e){for(var n=t.parent;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"setAllowedAttributes",value:function(t,e,n){for(var i=n.model,r=0,o=Object.entries(e);r<o.length;r++){var a=v(o[r],2),s=a[0],l=a[1];i.schema.checkAttribute(t,s)&&n.setAttribute(s,l,t)}}},{key:"removeDisallowedAttributes",value:function(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.is("$text"))Dl(this,r,e);else{var o,a=b(vs._createIn(r).getPositions());try{for(a.s();!(o=a.n()).done;){var s=o.value;Dl(this,s.nodeBefore||s.parent,e)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){i.e(t)}finally{i.f()}}},{key:"getAttributesWithProperty",value:function(t,e,n){var i,r={},o=b(t.getAttributes());try{for(o.s();!(i=o.n()).done;){var a=v(i.value,2),s=a[0],l=a[1],c=this.getAttributeProperties(s);void 0!==c[e]&&(void 0!==n&&n!==c[e]||(r[s]=l))}}catch(t){o.e(t)}finally{o.f()}return r}},{key:"createContext",value:function(t){return new fl(t)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var t={},e=this._sourceDefinitions,n=Object.keys(e),i=0,r=n;i<r.length;i++){var o=r[i];t[o]=pl(e[o],o)}for(var a=0,s=n;a<s.length;a++){gl(t,s[a])}for(var l=0,c=n;l<c.length;l++){ml(t,c[l])}for(var u=0,d=n;u<d.length;u++){vl(t,d[u])}for(var h=0,f=n;h<f.length;h++){var p=f[h];bl(t,p),kl(t,p)}for(var g=0,m=n;g<m.length;g++){var v=m[g];yl(t,v),wl(t,v),_l(t,v)}this._compiledDefinitions=t}},{key:"_checkContextMatch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1,i=e.getItem(n);if(t.allowIn.includes(i.name)){if(0==n)return!0;var r=this.getDefinition(i);return this._checkContextMatch(r,e,n-1)}return!1}},{key:"_getValidRangesForRange",value:m().mark((function t(e,n){var i,r,o,a,s;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.start,r=e.start,o=b(e.getItems({shallow:!0})),t.prev=2,o.s();case 4:if((a=o.n()).done){t.next=19;break}if(s=a.value,t.t0=s.is("element"),!t.t0){t.next=9;break}return t.delegateYield(this._getValidRangesForRange(vs._createIn(s),n),"t1",9);case 9:if(t.t2=this.checkAttribute(s,n),t.t2){t.next=16;break}if(t.t3=i.isEqual(r),t.t3){t.next=15;break}return t.next=15,new vs(i,r);case 15:i=fs._createAfter(s);case 16:r=fs._createAfter(s);case 17:t.next=4;break;case 19:t.next=24;break;case 21:t.prev=21,t.t4=t.catch(2),o.e(t.t4);case 24:return t.prev=24,o.f(),t.finish(24);case 27:if(t.t5=i.isEqual(r),t.t5){t.next=31;break}return t.next=31,new vs(i,r);case 31:case"end":return t.stop()}}),t,this,[[2,21,24,27]])}))}])}(nt),fl=function(){function t(e){if(P(this,t),e instanceof t)return e;var n;n="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=n.map(xl)}return M(t,[{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(e){var n=new t([e]);return n._items=[].concat(k(this._items),k(n._items)),n}},{key:"getItem",value:function(t){return this._items[t]}},{key:"getNames",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._items.map((function(t){return t.name})),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"endsWith",value:function(t){return Array.from(this.getNames()).join(" ").endsWith(t)}},{key:"startsWith",value:function(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}])}();function pl(t,e){var n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r,o=n.value,a=Object.keys(o).filter((function(t){return t.startsWith("is")})),s=b(a);try{for(s.s();!(r=s.n()).done;){var l=r.value;e[l]=!!o[l]}}catch(t){s.e(t)}finally{s.f()}}}catch(t){i.e(t)}finally{i.f()}}(t,n),Al(t,n,"allowIn"),Al(t,n,"allowContentOf"),Al(t,n,"allowWhere"),Al(t,n,"allowAttributes"),Al(t,n,"allowAttributesOf"),Al(t,n,"allowChildren"),Al(t,n,"inheritTypesFrom"),function(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=n.value.inheritAllFrom;r&&(e.allowContentOf.push(r),e.allowWhere.push(r),e.allowAttributesOf.push(r),e.inheritTypesFrom.push(r))}}catch(t){i.e(t)}finally{i.f()}}(t,n),n}function gl(t,e){var n,i=t[e],r=b(i.allowChildren);try{for(r.s();!(n=r.n()).done;){var o=t[n.value];o&&o.allowIn.push(e)}}catch(t){r.e(t)}finally{r.f()}i.allowChildren.length=0}function ml(t,e){var n,i=b(t[e].allowContentOf);try{for(i.s();!(n=i.n()).done;){var r=n.value;t[r]&&Cl(t,r).forEach((function(t){t.allowIn.push(e)}))}}catch(t){i.e(t)}finally{i.f()}delete t[e].allowContentOf}function vl(t,e){var n,i=b(t[e].allowWhere);try{for(i.s();!(n=i.n()).done;){var r=t[n.value];if(r){var o,a=r.allowIn;(o=t[e].allowIn).push.apply(o,k(a))}}}catch(t){i.e(t)}finally{i.f()}delete t[e].allowWhere}function bl(t,e){var n,i=b(t[e].allowAttributesOf);try{for(i.s();!(n=i.n()).done;){var r=t[n.value];if(r){var o,a=r.allowAttributes;(o=t[e].allowAttributes).push.apply(o,k(a))}}}catch(t){i.e(t)}finally{i.f()}delete t[e].allowAttributesOf}function kl(t,e){var n,i=t[e],r=b(i.inheritTypesFrom);try{for(r.s();!(n=r.n()).done;){var o=t[n.value];if(o){var a,s=Object.keys(o).filter((function(t){return t.startsWith("is")})),l=b(s);try{for(l.s();!(a=l.n()).done;){var c=a.value;c in i||(i[c]=o[c])}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){r.e(t)}finally{r.f()}delete i.inheritTypesFrom}function yl(t,e){var n=t[e],i=n.allowIn.filter((function(e){return t[e]}));n.allowIn=Array.from(new Set(i))}function wl(t,e){var n,i=b(t[e].allowIn);try{for(i.s();!(n=i.n()).done;){t[n.value].allowChildren.push(e)}}catch(t){i.e(t)}finally{i.f()}}function _l(t,e){var n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Al(t,e,n){var i,r=b(t);try{for(r.s();!(i=r.n()).done;){var o,a=i.value[n];"string"==typeof a?e[n].push(a):Array.isArray(a)&&(o=e[n]).push.apply(o,k(a))}}catch(t){r.e(t)}finally{r.f()}}function Cl(t,e){var n,i=t[e];return(n=t,Object.keys(n).map((function(t){return n[t]}))).filter((function(t){return t.allowIn.includes(i.name)}))}function xl(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",getAttributeKeys:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})),getAttribute:function(){}}:{name:t.is("element")?t.name:"$text",getAttributeKeys:m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(t.getAttributeKeys(),"t0",1);case 1:case"end":return e.stop()}}),e)})),getAttribute:function(e){return t.getAttribute(e)}}}function Dl(t,e,n){var i,r=b(e.getAttributeKeys());try{for(r.s();!(i=r.n()).done;){var o=i.value;t.checkAttribute(e,o)||n.removeAttribute(o,e)}}catch(t){r.e(t)}finally{r.f()}}var El=function(t){function e(t){var n;return P(this,e),(n=_(this,e))._splitParts=new Map,n._cursorParents=new Map,n._modelCursor=null,n._emptyElementsToKeep=new Set,n.conversionApi=h(h({},t),{},{consumable:null,writer:null,store:null,convertItem:function(t,e){return n._convertItem(t,e)},convertChildren:function(t,e){return n._convertChildren(t,e)},safeInsert:function(t,e){return n._safeInsert(t,e)},updateConversionResult:function(t,e){return n._updateConversionResult(t,e)},splitToAllowedParent:function(t,e){return n._splitToAllowedParent(t,e)},getSplitParts:function(t){return n._getSplitParts(t)},keepEmptyElement:function(t){return n._keepEmptyElement(t)}}),n}return C(e,t),M(e,[{key:"convert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",t),this._modelCursor=function(t,e){var n,i,r=b(new fl(t));try{for(r.s();!(i=r.n()).done;){var o,a=i.value,s={},l=b(a.getAttributeKeys());try{for(l.s();!(o=l.n()).done;){var c=o.value;s[c]=a.getAttribute(c)}}catch(t){l.e(t)}finally{l.f()}var u=e.createElement(a.name,s);n&&e.insert(u,n),n=fs._createAt(u,0)}}catch(t){r.e(t)}finally{r.f()}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=cl.createFrom(t),this.conversionApi.store={};var i=this._convertItem(t,this._modelCursor).modelRange,r=e.createDocumentFragment();if(i){this._removeEmptyElements();for(var o=0,a=Array.from(this._modelCursor.parent.getChildren());o<a.length;o++){var s=a[o];e.append(s,r)}r.markers=function(t,e){var n,i=new Set,r=new Map,o=b(vs._createIn(t).getItems());try{for(o.s();!(n=o.n()).done;){var a=n.value;a.is("element","$marker")&&i.add(a)}}catch(t){o.e(t)}finally{o.f()}var s,l=b(i);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.getAttribute("data-name"),d=e.createPositionBefore(c);r.has(u)?r.get(u).end=d.clone():r.set(u,new vs(d.clone())),e.remove(c)}}catch(t){l.e(t)}finally{l.f()}return r}(r,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}},{key:"_convertItem",value:function(t,e){var n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire("element:".concat(t.name),n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof vs))throw new S("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(t,e){for(var n=e.is("position")?e:fs._createAt(e,0),i=new vs(n),r=0,o=Array.from(t.getChildren());r<o.length;r++){var a=o[r],s=this._convertItem(a,n);s.modelRange instanceof vs&&(i.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:i,modelCursor:n}}},{key:"_safeInsert",value:function(t,e){var n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}},{key:"_updateConversionResult",value:function(t,e){var n=this._getSplitParts(t),i=this.conversionApi.writer;e.modelRange||(e.modelRange=i.createRange(i.createPositionBefore(t),i.createPositionAfter(n[n.length-1])));var r=this._cursorParents.get(t);e.modelCursor=r?i.createPositionAt(r,0):e.modelRange.end}},{key:"_splitToAllowedParent",value:function(t,e){var n=this.conversionApi,i=n.schema,r=n.writer,o=i.findAllowedParent(e,t);if(o){if(o===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Js(e,t,i)?{position:Xs(e,r)}:null;var a,s=this.conversionApi.writer.split(e,o),l=[],c=b(s.range.getWalker());try{for(c.s();!(a=c.n()).done;){var u=a.value;if("elementEnd"==u.type)l.push(u.item);else{var d=l.pop(),h=u.item;this._registerSplitPair(d,h)}}}catch(t){c.e(t)}finally{c.f()}var f=s.range.end.parent;return this._cursorParents.set(t,f),{position:s.position,cursorParent:f}}},{key:"_registerSplitPair",value:function(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);var n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}},{key:"_getSplitParts",value:function(t){return this._splitParts.has(t)?this._splitParts.get(t):[t]}},{key:"_keepEmptyElement",value:function(t){this._emptyElementsToKeep.add(t)}},{key:"_removeEmptyElements",value:function(){var t,e=!1,n=b(this._splitParts.keys());try{for(n.s();!(t=n.n()).done;){var i=t.value;i.isEmpty&&!this._emptyElementsToKeep.has(i)&&(this.conversionApi.writer.remove(i),this._splitParts.delete(i),e=!0)}}catch(t){n.e(t)}finally{n.f()}e&&this._removeEmptyElements()}}])}(H),Sl=function(){return M((function t(){P(this,t)}),[{key:"getHtml",value:function(t){var e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}])}(),Tl=function(){return M((function t(e){P(this,t),this.domParser=new DOMParser,this.domConverter=new Lo(e,{renderingMode:"data"}),this.htmlWriter=new Sl}),[{key:"toData",value:function(t){var e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}},{key:"toView",value:function(t){var e=this._toDom(t);return this.domConverter.domToView(e)}},{key:"registerRawContentMatcher",value:function(t){this.domConverter.registerRawContentMatcher(t)}},{key:"useFillerType",value:function(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}},{key:"_toDom",value:function(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t="<body>".concat(t,"</body>"));for(var e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;i.length>0;)n.appendChild(i[0]);return n}}])}(),Il=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e)).model=t,i.mapper=new bs,i.downcastDispatcher=new ws({mapper:i.mapper,schema:t.schema}),i.downcastDispatcher.on("insert:$text",(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=n.writer,r=n.mapper.toViewPosition(e.range.start),o=i.createText(e.item.data);i.insert(r,o)}}),{priority:"lowest"}),i.downcastDispatcher.on("insert",(function(t,e,n){n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),i.upcastDispatcher=new El({schema:t.schema}),i.viewDocument=new Ar(n),i.stylesProcessor=n,i.htmlProcessor=new Tl(i.viewDocument),i.processor=i.htmlProcessor,i._viewWriter=new Yr(i.viewDocument),i.upcastDispatcher.on("text",(function(t,e,n){var i=n.schema,r=n.consumable,o=n.writer,a=e.modelCursor;if(r.test(e.viewItem)){if(!i.checkChild(a,"$text")){if(!Js(a,"$text",i))return;if(0==e.viewItem.data.trim().length)return;a=Xs(a,o)}r.consume(e.viewItem);var s=o.createText(e.viewItem.data);o.insert(s,a),e.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}}),{priority:"lowest"}),i.upcastDispatcher.on("element",(function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var i=n.convertChildren(e.viewItem,e.modelCursor),r=i.modelRange,o=i.modelCursor;e.modelRange=r,e.modelCursor=o}}),{priority:"lowest"}),i.upcastDispatcher.on("documentFragment",(function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var i=n.convertChildren(e.viewItem,e.modelCursor),r=i.modelRange,o=i.modelCursor;e.modelRange=r,e.modelCursor=o}}),{priority:"lowest"}),nt.prototype.decorate.call(A(i),"init"),nt.prototype.decorate.call(A(i),"set"),nt.prototype.decorate.call(A(i),"get"),i.on("init",(function(){i.fire("ready")}),{priority:"lowest"}),i.on("ready",(function(){i.model.enqueueChange({isUndoable:!1},Zs)}),{priority:"lowest"}),i}return C(e,t),M(e,[{key:"get",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.rootName,n=void 0===e?"main":e,i=t.trim,r=void 0===i?"empty":i;if(!this._checkIfRootsExists([n]))throw new S("datacontroller-get-non-existent-root",this);var o=this.model.document.getRoot(n);return"empty"!==r||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,t):""}},{key:"stringify",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toView(t,e);return this.processor.toData(n)}},{key:"toView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();var r=vs._createIn(t),o=new $r(n);this.mapper.bindElements(t,o);var a=t.is("documentFragment")?t.markers:function(t){var e=[],n=t.root.document;if(!n)return new Map;var i,r=vs._createIn(t),o=b(n.model.markers);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.getRange(),l=s.isCollapsed,c=s.start.isEqual(r.start)||s.end.isEqual(r.end);if(l&&c)e.push([a.name,s]);else{var u=r.getIntersection(s);u&&e.push([a.name,u])}}}catch(t){o.e(t)}finally{o.f()}return e.sort((function(t,e){var n=v(t,2),i=n[0],r=n[1],o=v(e,2),a=o[0],s=o[1];if("after"!==r.end.compareWith(s.start))return 1;if("before"!==r.start.compareWith(s.end))return-1;switch(r.start.compareWith(s.start)){case"before":return 1;case"after":return-1;default:switch(r.end.compareWith(s.end)){case"before":return 1;case"after":return-1;default:return a.localeCompare(i)}}})),new Map(e)}(t);return this.downcastDispatcher.convert(r,a,i,e),o}},{key:"init",value:function(t){var e=this;if(this.model.document.version)throw new S("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new S("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(function(t){for(var i=0,r=Object.keys(n);i<r.length;i++){var o=r[i],a=e.model.document.getRoot(o);t.insert(e.parse(n[o],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};if("string"==typeof t?i.main=t:i=t,!this._checkIfRootsExists(Object.keys(i)))throw new S("datacontroller-set-non-existent-root",this);this.model.enqueueChange(n.batchType||{},(function(t){t.setSelection(null),t.removeSelectionAttribute(e.model.document.selection.getAttributeKeys());for(var n=0,r=Object.keys(i);n<r.length;n++){var o=r[n],a=e.model.document.getRoot(o);t.remove(t.createRangeIn(a)),t.insert(e.parse(i[o],a),a,0)}}))}},{key:"parse",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(t);return this.toModel(n,e)}},{key:"toModel",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(i){return e.upcastDispatcher.convert(t,i,n)}))}},{key:"addStyleProcessorRules",value:function(t){t(this.stylesProcessor)}},{key:"registerRawContentMatcher",value:function(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(t){var e,n=b(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!this.model.document.getRootNames().includes(i))return!1}}catch(t){n.e(t)}finally{n.f()}return!0}}])}(H),Ml=function(){return M((function t(e,n){P(this,t),this._helpers=new Map,this._downcast=Xn(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Xn(n),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}),[{key:"addAlias",value:function(t,e){var n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new S("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}},{key:"for",value:function(t){if(!this._helpers.has(t))throw new S("conversion-for-unknown-group",this);return this._helpers.get(t)}},{key:"elementToElement",value:function(t){this.for("downcast").elementToElement(t);var e,n=b(Ol(t));try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.model,o=i.view;this.for("upcast").elementToElement({model:r,view:o,converterPriority:t.converterPriority})}}catch(t){n.e(t)}finally{n.f()}}},{key:"attributeToElement",value:function(t){this.for("downcast").attributeToElement(t);var e,n=b(Ol(t));try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.model,o=i.view;this.for("upcast").elementToAttribute({view:o,model:r,converterPriority:t.converterPriority})}}catch(t){n.e(t)}finally{n.f()}}},{key:"attributeToAttribute",value:function(t){this.for("downcast").attributeToAttribute(t);var e,n=b(Ol(t));try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.model,o=i.view;this.for("upcast").attributeToAttribute({view:o,model:r})}}catch(t){n.e(t)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(t){var e=t.name,n=t.dispatchers,i=t.isDowncast;if(this._helpers.has(e))throw new S("conversion-group-exists",this);var r=i?new Rs(n):new tl(n);this._helpers.set(e,r)}}])}();function Ol(t){var e,n,r,o,a,s;return m().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!t.model.values){i.next=20;break}e=b(t.model.values),i.prev=2,e.s();case 4:if((n=e.n()).done){i.next=10;break}return r=n.value,o={key:t.model.key,value:r},a=t.view[r],s=t.upcastAlso?t.upcastAlso[r]:void 0,i.delegateYield(Pl(o,a,s),"t0",8);case 8:i.next=4;break;case 10:i.next=15;break;case 12:i.prev=12,i.t1=i.catch(2),e.e(i.t1);case 15:return i.prev=15,e.f(),i.finish(15);case 18:i.next=21;break;case 20:return i.delegateYield(Pl(t.model,t.view,t.upcastAlso),"t2",21);case 21:case"end":return i.stop()}}),i,null,[[2,12,15,18]])}function Pl(t,e,n){var i,o,a;return m().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,{model:t,view:e};case 2:if(!n){r.next=20;break}i=b(Xn(n)),r.prev=4,i.s();case 6:if((o=i.n()).done){r.next=12;break}return a=o.value,r.next=10,{model:t,view:a};case 10:r.next=6;break;case 12:r.next=17;break;case 14:r.prev=14,r.t0=r.catch(4),i.e(r.t0);case 17:return r.prev=17,i.f(),r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[4,14,17,20]])}var Nl=function(){return M((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t),"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},T("batch-constructor-deprecated-string-type"));var n=e,i=n.isUndoable,r=void 0===i||i,o=n.isLocal,a=void 0===o||o,s=n.isUndo,l=void 0!==s&&s,c=n.isTyping,u=void 0!==c&&c;this.operations=[],this.isUndoable=r,this.isLocal=a,this.isUndo=l,this.isTyping=u}),[{key:"type",get:function(){return T("batch-type-deprecated"),"default"}},{key:"baseVersion",get:function(){var t,e=b(this.operations);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(null!==n.baseVersion)return n.baseVersion}}catch(t){e.e(t)}finally{e.f()}return null}},{key:"addOperation",value:function(t){return t.batch=this,this.operations.push(t),t}}])}(),Bl=function(){return M((function t(e){P(this,t),this._markerCollection=e,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}),[{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}},{key:"bufferOperation",value:function(t){var e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var n,i=b(e.range.getItems({shallow:!0}));try{for(i.s();!(n=i.n()).done;){var r=n.value;this._isInInsertedElement(r.parent)||this._markAttribute(r)}}catch(t){i.e(t)}finally{i.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var o=this._isInInsertedElement(e.sourcePosition.parent),a=this._isInInsertedElement(e.targetPosition.parent);o||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),a||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var s,l=vs._createFromPositionAndShift(e.position,1),c=b(this._markerCollection.getMarkersIntersectingRange(l));try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.getData();this.bufferMarkerChange(u.name,d,d)}}catch(t){c.e(t)}finally{c.f()}break;case"split":var h=e.splitPosition.parent;this._isInInsertedElement(h)||this._markRemove(h,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var f=e.sourcePosition.parent;this._isInInsertedElement(f.parent)||this._markRemove(f.parent,f.startOffset,1);var p=e.graveyardPosition.parent;this._markInsert(p,e.graveyardPosition.offset,1);var g=e.targetPosition.parent;this._isInInsertedElement(g)||this._markInsert(g,e.targetPosition.offset,f.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(t,e,n){var i=this._changedMarkers.get(t);i?(i.newMarkerData=n,null==i.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)):this._changedMarkers.set(t,{newMarkerData:n,oldMarkerData:e})}},{key:"getMarkersToRemove",value:function(){var t,e=[],n=b(this._changedMarkers);try{for(n.s();!(t=n.n()).done;){var i=v(t.value,2),r=i[0],o=i[1];null!=o.oldMarkerData.range&&e.push({name:r,range:o.oldMarkerData.range})}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"getMarkersToAdd",value:function(){var t,e=[],n=b(this._changedMarkers);try{for(n.s();!(t=n.n()).done;){var i=v(t.value,2),r=i[0],o=i[1];null!=o.newMarkerData.range&&e.push({name:r,range:o.newMarkerData.range})}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(t){var e=v(t,2),n=e[0],i=e[1];return{name:n,data:{oldRange:i.oldMarkerData.range,newRange:i.newMarkerData.range}}}))}},{key:"hasDataChanges",value:function(){if(this._changesInElement.size>0)return!0;var t,e=b(this._changedMarkers.values());try{for(e.s();!(t=e.n()).done;){var n=t.value,i=n.newMarkerData,r=n.oldMarkerData;if(i.affectsData!==r.affectsData)return!0;if(i.affectsData){var o=i.range&&!r.range,a=!i.range&&r.range,s=i.range&&r.range&&!i.range.isEqual(r.range);if(o||a||s)return!0}}}catch(t){e.e(t)}finally{e.f()}return!1}},{key:"getChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var e,n=[],i=b(this._changesInElement.keys());try{for(i.s();!(e=i.n()).done;){var r,o=e.value,a=this._changesInElement.get(o).sort((function(t,e){return t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset<e.offset?-1:1})),s=this._elementSnapshots.get(o),l=Ll(o.getChildren()),c=jl(s.length,a),u=0,d=0,h=b(c);try{for(h.s();!(r=h.n()).done;){var f=r.value;if("i"===f)n.push(this._getInsertDiff(o,u,l[u])),u++;else if("r"===f)n.push(this._getRemoveDiff(o,u,s[d])),d++;else if("a"===f){var p,g=l[u].attributes,m=s[d].attributes,v=void 0;if("$text"==l[u].name)v=new vs(fs._createAt(o,u),fs._createAt(o,u+1));else{var y=o.offsetToIndex(u);v=new vs(fs._createAt(o,u),fs._createAt(o.getChild(y),0))}(p=n).push.apply(p,k(this._getAttributesDiff(v,m,g))),u++,d++}else u++,d++}}catch(t){h.e(t)}finally{h.f()}}}catch(t){i.e(t)}finally{i.f()}n.sort((function(t,e){return t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1}));for(var w=1,_=0;w<n.length;w++){var A=n[_],C=n[w],x="remove"==A.type&&"remove"==C.type&&"$text"==A.name&&"$text"==C.name&&A.position.isEqual(C.position),D="insert"==A.type&&"insert"==C.type&&"$text"==A.name&&"$text"==C.name&&A.position.parent==C.position.parent&&A.position.offset+A.length==C.position.offset,E="attribute"==A.type&&"attribute"==C.type&&A.position.parent==C.position.parent&&A.range.isFlat&&C.range.isFlat&&A.position.offset+A.length==C.position.offset&&A.attributeKey==C.attributeKey&&A.attributeOldValue==C.attributeOldValue&&A.attributeNewValue==C.attributeNewValue;x||D||E?(A.length++,E&&(A.range.end=A.range.end.getShiftedBy(1)),n[w]=null):_=w}n=n.filter((function(t){return t}));var S,T=b(n);try{for(T.s();!(S=T.n()).done;){var I=S.value;delete I.changeCount,"attribute"==I.type&&(delete I.position,delete I.length)}}catch(t){T.e(t)}finally{T.f()}return this._changeCount=0,this._cachedChangesWithGraveyard=n,this._cachedChanges=n.filter(Rl),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}},{key:"getRefreshedItems",value:function(){return new Set(this._refreshedItems)}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}},{key:"_refreshItem",value:function(t){if(!this._isInInsertedElement(t.parent)){this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);var e,n=vs._createOn(t),i=b(this._markerCollection.getMarkersIntersectingRange(n));try{for(i.s();!(e=i.n()).done;){var r=e.value,o=r.getData();this.bufferMarkerChange(r.name,o,o)}}catch(t){i.e(t)}finally{i.f()}this._cachedChanges=null}}},{key:"_markInsert",value:function(t,e,n){var i={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i)}},{key:"_markRemove",value:function(t,e,n){var i={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i),this._removeAllNestedChanges(t,e,n)}},{key:"_markAttribute",value:function(t){var e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}},{key:"_markChange",value:function(t,e){this._makeSnapshot(t);var n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(var i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}},{key:"_getChangesForElement",value:function(t){var e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}},{key:"_makeSnapshot",value:function(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,Ll(t.getChildren()))}},{key:"_handleChange",value:function(t,e){t.nodesToHandle=t.howMany;var n,i=b(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=t.offset+t.howMany,a=r.offset+r.howMany;if("insert"==t.type&&("insert"==r.type&&(t.offset<=r.offset?r.offset+=t.howMany:t.offset<a&&(r.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==r.type&&t.offset<r.offset&&(r.offset+=t.howMany),"attribute"==r.type))if(t.offset<=r.offset)r.offset+=t.howMany;else if(t.offset<a){var s=r.howMany;r.howMany=t.offset-r.offset,e.unshift({type:"attribute",offset:o,howMany:s-r.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==r.type)if(o<=r.offset)r.offset-=t.howMany;else if(o<=a)if(t.offset<r.offset){var l=o-r.offset;r.offset=t.offset,r.howMany-=l,t.nodesToHandle-=l}else r.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=r.offset)t.nodesToHandle-=r.howMany,r.howMany=0;else if(t.offset<a){var c=a-t.offset;r.howMany-=c,t.nodesToHandle-=c}if("remove"==r.type&&(o<=r.offset?r.offset-=t.howMany:t.offset<r.offset&&(t.nodesToHandle+=r.howMany,r.howMany=0)),"attribute"==r.type)if(o<=r.offset)r.offset-=t.howMany;else if(t.offset<r.offset){var u=o-r.offset;r.offset=t.offset,r.howMany-=u}else if(t.offset<a)if(o<=a){var d=r.howMany;r.howMany=t.offset-r.offset;var h=d-r.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:h,count:this._changeCount++})}else r.howMany-=a-t.offset}if("attribute"==t.type){if("insert"==r.type)if(t.offset<r.offset&&o>r.offset){if(o>a){var f={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(f,e),e.push(f)}t.nodesToHandle=r.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=r.offset&&t.offset<a&&(o>a?(t.nodesToHandle=o-a,t.offset=a):t.nodesToHandle=0);if("remove"==r.type&&t.offset<r.offset&&o>r.offset){var p={type:"attribute",offset:r.offset,howMany:o-r.offset,count:this._changeCount++};this._handleChange(p,e),e.push(p),t.nodesToHandle=r.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==r.type&&(t.offset>=r.offset&&o<=a?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=r.offset&&o>=a&&(r.howMany=0))}}}catch(t){i.e(t)}finally{i.f()}t.howMany=t.nodesToHandle,delete t.nodesToHandle}},{key:"_getInsertDiff",value:function(t,e,n){return{type:"insert",position:fs._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(t,e,n){return{type:"remove",position:fs._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(t,e,n){var i=[];n=new Map(n);var r,o=b(e);try{for(o.s();!(r=o.n()).done;){var a=v(r.value,2),s=a[0],l=a[1],c=n.has(s)?n.get(s):null;c!==l&&i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:s,attributeOldValue:l,attributeNewValue:c,changeCount:this._changeCount++}),n.delete(s)}}catch(t){o.e(t)}finally{o.f()}var u,d=b(n);try{for(d.s();!(u=d.n()).done;){var h=v(u.value,2),f=h[0],p=h[1];i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:f,attributeOldValue:null,attributeNewValue:p,changeCount:this._changeCount++})}}catch(t){d.e(t)}finally{d.f()}return i}},{key:"_isInInsertedElement",value:function(t){var e=t.parent;if(!e)return!1;var n=this._changesInElement.get(e),i=t.startOffset;if(n){var r,o=b(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("insert"==a.type&&i>=a.offset&&i<a.offset+a.howMany)return!0}}catch(t){o.e(t)}finally{o.f()}}return this._isInInsertedElement(e)}},{key:"_removeAllNestedChanges",value:function(t,e,n){var i,r=b(new vs(fs._createAt(t,e),fs._createAt(t,e+n)).getItems({shallow:!0}));try{for(r.s();!(i=r.n()).done;){var o=i.value;o.is("element")&&(this._elementSnapshots.delete(o),this._changesInElement.delete(o),this._removeAllNestedChanges(o,0,o.maxOffset))}}catch(t){r.e(t)}finally{r.f()}}}])}();function Ll(t){var e,n=[],i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(r.is("$text"))for(var o=0;o<r.data.length;o++)n.push({name:"$text",attributes:new Map(r.getAttributes())});else n.push({name:r.name,attributes:new Map(r.getAttributes())})}}catch(t){i.e(t)}finally{i.f()}return n}function jl(t,e){var n,i=[],r=0,o=0,a=b(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.offset>r){for(var l=0;l<s.offset-r;l++)i.push("e");o+=s.offset-r}if("insert"==s.type){for(var c=0;c<s.howMany;c++)i.push("i");r=s.offset+s.howMany}else if("remove"==s.type){for(var u=0;u<s.howMany;u++)i.push("r");r=s.offset,o+=s.howMany}else i.push.apply(i,k("a".repeat(s.howMany).split(""))),r=s.offset+s.howMany,o+=s.howMany}}catch(t){a.e(t)}finally{a.f()}if(o<t)for(var d=0;d<t-o-r;d++)i.push("e");return i}function Rl(t){var e="position"in t&&"$graveyard"==t.position.root.rootName,n="range"in t&&"$graveyard"==t.range.root.rootName;return!e&&!n}var zl=function(){return M((function t(){P(this,t),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}),[{key:"version",get:function(){return this._version},set:function(t){this._operations.length&&t>this._version+1&&this._gaps.set(this._version,t),this._version=t}},{key:"lastOperation",get:function(){return this._operations[this._operations.length-1]}},{key:"addOperation",value:function(t){if(t.baseVersion!==this.version)throw new S("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}},{key:"getOperations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.version;if(!this._operations.length)return[];var n=this._operations[0];void 0===t&&(t=n.baseVersion);var i,r=e-1,o=b(this._gaps);try{for(o.s();!(i=o.n()).done;){var a=v(i.value,2),s=a[0],l=a[1];t>s&&t<l&&(t=l),r>s&&r<l&&(r=s-1)}}catch(t){o.e(t)}finally{o.f()}if(r<n.baseVersion||t>this.lastOperation.baseVersion)return[];var c=this._baseVersionToOperationIndex.get(t);void 0===c&&(c=0);var u=this._baseVersionToOperationIndex.get(r);return void 0===u&&(u=this._operations.length-1),this._operations.slice(c,u+1)}},{key:"getOperation",value:function(t){var e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}},{key:"setOperationAsUndone",value:function(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}},{key:"isUndoingOperation",value:function(t){return this._undoPairs.has(t)}},{key:"isUndoneOperation",value:function(t){return this._undoneOperations.has(t)}},{key:"getUndoneOperation",value:function(t){return this._undoPairs.get(t)}},{key:"reset",value:function(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}])}(),Fl=function(t){function e(t,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return P(this,e),(i=_(this,e,[n]))._document=t,i.rootName=r,i}return C(e,t),M(e,[{key:"document",get:function(){return this._document}},{key:"toJSON",value:function(){return this.rootName}}])}(us);function Hl(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e));var n}function Vl(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}Fl.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t):"rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t||"node"===t||"model:node"===t};var Ul=function(){var t=/(?:\uD83C[\uDDE6-\uDDFF]){2}/.source,e="(?:"+[/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8])(?:\uDB40[\uDC20-\uDC7E])+(?:\uDB40\uDC7F)/,/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8])\uFE0F?\u20E3/,/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8])\uFE0F/,/(?=(?:[\xA6\xA9\xAE\xB0\u0482\u058D\u058E\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u09FA\u0B70\u0BF3-\u0BF8\u0BFA\u0C7F\u0D4F\u0D79\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u214A\u214C\u214D\u214F\u218A\u218B\u2195-\u2199\u219C-\u219F\u21A1\u21A2\u21A4\u21A5\u21A7-\u21AD\u21AF-\u21CD\u21D0\u21D1\u21D3\u21D5-\u21F3\u2300-\u2307\u230C-\u231F\u2322-\u2328\u232B-\u237B\u237D-\u239A\u23B4-\u23DB\u23E2-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u25B6\u25B8-\u25C0\u25C2-\u25F7\u2600-\u266E\u2670-\u2767\u2794-\u27BF\u2800-\u28FF\u2B00-\u2B2F\u2B45\u2B46\u2B4D-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA828-\uA82B\uA836\uA837\uA839\uAA77-\uAA79\uFD40-\uFD4F\uFDCF\uFDFD-\uFDFF\uFFE4\uFFE8\uFFED\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFDC\uDFE1-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDD00-\uDEB3\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838\uDD4F|\uD83B[\uDCAC\uDD2E]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFA]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF]))(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8])(?:\uD83C[\uDFFB-\uDFFF])*/].map((function(t){return t.source})).join("|")+")";return new RegExp("".concat(t,"|").concat(e,"(?:‍").concat(e,")*"),"ug")}();function Wl(t,e){var n=String(t).matchAll(Ul);return Array.from(n).some((function(t){return t.index<e&&e<t.index+t[0].length}))}var ql="$graveyard",$l=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).model=t,n.history=new zl,n.selection=new Ps(A(n)),n.roots=new Zn({idProperty:"rootName"}),n.differ=new Bl(t.markers),n._postFixers=new Set,n._hasSelectionChangedFromTheLastChangeBlock=!1,n.createRoot("$root",ql),n.listenTo(t,"applyOperation",(function(t,e){var i=e[0];i.isDocumentOperation&&n.differ.bufferOperation(i)}),{priority:"high"}),n.listenTo(t,"applyOperation",(function(t,e){var i=e[0];i.isDocumentOperation&&n.history.addOperation(i)}),{priority:"low"}),n.listenTo(n.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),n.listenTo(t.markers,"update",(function(t,e,i,r,o){var a=h(h({},e.getData()),{},{range:r});n.differ.bufferMarkerChange(e.name,o,a),null===i&&e.on("change",(function(t,i){var r=e.getData();n.differ.bufferMarkerChange(e.name,h(h({},r),{},{range:i}),r)}))})),n}return C(e,t),M(e,[{key:"version",get:function(){return this.history.version},set:function(t){this.history.version=t}},{key:"graveyard",get:function(){return this.getRoot(ql)}},{key:"createRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(e))throw new S("model-document-createroot-name-exists",this,{name:e});var n=new Fl(this,t,e);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(t)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(t){return t.rootName})).filter((function(t){return t!=ql}))}},{key:"registerPostFixer",value:function(t){this._postFixers.add(t)}},{key:"toJSON",value:function(){var t=li(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}},{key:"_handleChangeBlock",value:function(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var t,e=b(this.roots);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n!==this.graveyard)return n}}catch(t){e.e(t)}finally{e.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var t=this._getDefaultRoot(),e=this.model,n=e.schema,i=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(i)||e.createRange(i)}},{key:"_validateSelectionRange",value:function(t){return Yl(t.start)&&Yl(t.end)}},{key:"_callPostFixers",value:function(t){var e=!1;do{var n,i=b(this._postFixers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(this.selection.refresh(),e=r(t))break}}catch(t){i.e(t)}finally{i.f()}}while(e)}}])}(H);function Yl(t){var e=t.textNode;if(e){var n=e.data,i=t.offset-e.startOffset;return!Hl(n,i)&&!Vl(n,i)}return!0}var Gl=function(t){function e(){var t;return P(this,e),(t=_(this,e))._markers=new Map,t}return C(e,t),M(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(t){var e=t instanceof Kl?t.name:t;return this._markers.has(e)}},{key:"get",value:function(t){return this._markers.get(t)||null}},{key:"_set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t instanceof Kl?t.name:t;if(r.includes(","))throw new S("markercollection-incorrect-marker-name",this);var o=this._markers.get(r);if(o){var a=o.getData(),s=o.getRange(),l=!1;return s.isEqual(e)||(o._attachLiveRange(Ts.fromRange(e)),l=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,l=!0),"boolean"==typeof i&&i!=o.affectsData&&(o._affectsData=i,l=!0),l&&this.fire("update:".concat(r),o,s,e,a),o}var c=Ts.fromRange(e),u=new Kl(r,c,n,i);return this._markers.set(r,u),this.fire("update:".concat(r),u,null,e,h(h({},u.getData()),{},{range:null})),u}},{key:"_remove",value:function(t){var e=t instanceof Kl?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire("update:".concat(e),n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(t){var e=t instanceof Kl?t.name:t,n=this._markers.get(e);if(!n)throw new S("markercollection-refresh-marker-not-exists",this);var i=n.getRange();this.fire("update:".concat(e),n,i,i,n.getData())}},{key:"getMarkersAtPosition",value:m().mark((function t(e){var n,i,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=b(this),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=11;break}if(r=i.value,t.t0=r.getRange().containsPosition(e),!t.t0){t.next=9;break}return t.next=9,r;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:m().mark((function t(e){var n,i,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=b(this),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=11;break}if(r=i.value,t.t0=null!==r.getRange().getIntersection(e),!t.t0){t.next=9;break}return t.next=9,r;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var t,e=b(this._markers.values());try{for(e.s();!(t=e.n()).done;){var n=t.value;this._destroyMarker(n)}}catch(t){e.e(t)}finally{e.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:m().mark((function t(e){var n,i,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=b(this._markers.values()),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=11;break}if(r=i.value,t.t0=r.name.startsWith(e+":"),!t.t0){t.next=9;break}return t.next=9,r;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(t){t.stopListening(),t._detachLiveRange()}}])}(H),Kl=function(t){function e(t,n,i,r){var o;return P(this,e),(o=_(this,e)).name=t,o._liveRange=o._attachLiveRange(n),o._managedUsingOperations=i,o._affectsData=r,o}return C(e,t),M(e,[{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new S("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new S("marker-destroyed",this);return this._affectsData}},{key:"getData",value:function(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}},{key:"getStart",value:function(){if(!this._liveRange)throw new S("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new S("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new S("marker-destroyed",this);return this._liveRange.toRange()}},{key:"_attachLiveRange",value:function(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}])}(F(os));Kl.prototype.is=function(t){return"marker"===t||"model:marker"===t};var Ql=function(){return M((function t(e){P(this,t),this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}),[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}}],[{key:"className",get:function(){return"Operation"}},{key:"fromJSON",value:function(t,e){return new this(t.baseVersion)}}])}();function Zl(t,e){var n=tc(e),i=n.reduce((function(t,e){return t+e.offsetSize}),0),r=t.parent;nc(t);var o=t.index;return r._insertChild(o,n),ec(r,o+n.length),ec(r,o),new vs(t,t.getShiftedBy(i))}function Jl(t){if(!t.isFlat)throw new S("operation-utils-remove-range-not-flat",this);var e=t.start.parent;nc(t.start),nc(t.end);var n=e._removeChildren(t.start.index,t.end.index-t.start.index);return ec(e,t.start.index),n}function Xl(t,e){if(!t.isFlat)throw new S("operation-utils-move-range-not-flat",this);var n=Jl(t);return Zl(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function tc(t){var e=[];!function t(n){if("string"==typeof n)e.push(new ls(n));else if(n instanceof cs)e.push(new ls(n.data,n.getAttributes()));else if(n instanceof as)e.push(n);else if(Kn(n)){var i,r=b(n);try{for(r.s();!(i=r.n()).done;){t(i.value)}}catch(t){r.e(t)}finally{r.f()}}}(t);for(var n=1;n<e.length;n++){var i=e[n],r=e[n-1];i instanceof ls&&r instanceof ls&&ic(i,r)&&(e.splice(n-1,2,new ls(r.data+i.data,r.getAttributes())),n--)}return e}function ec(t,e){var n=t.getChild(e-1),i=t.getChild(e);if(n&&i&&n.is("$text")&&i.is("$text")&&ic(n,i)){var r=new ls(n.data+i.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,r)}}function nc(t){var e=t.textNode,n=t.parent;if(e){var i=t.offset-e.startOffset,r=e.index;n._removeChildren(r,1);var o=new ls(e.data.substr(0,i),e.getAttributes()),a=new ls(e.data.substr(i),e.getAttributes());n._insertChild(r,[o,a])}}function ic(t,e){var n,i=t.getAttributes(),r=e.getAttributes(),o=b(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a[1]!==e.getAttribute(a[0]))return!1;r.next()}}catch(t){o.e(t)}finally{o.f()}return r.next().done}var rc=function(t,e){return sa(t,e)},oc=function(t){function e(t,n,i,r,o){var a;return P(this,e),(a=_(this,e,[o])).range=t.clone(),a.key=n,a.oldValue=void 0===i?null:i,a.newValue=void 0===r?null:r,a}return C(e,t),M(e,[{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}},{key:"clone",value:function(){return new e(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new e(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.range=this.range.toJSON(),t}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new S("attribute-operation-range-not-flat",this);var t,e=b(this.range.getItems({shallow:!0}));try{for(e.s();!(t=e.n()).done;){var n=t.value;if(null!==this.oldValue&&!rc(n.getAttribute(this.key),this.oldValue))throw new S("attribute-operation-wrong-old-value",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new S("attribute-operation-attribute-exists",this,{node:n,key:this.key})}}catch(t){e.e(t)}finally{e.f()}}},{key:"_execute",value:function(){rc(this.oldValue,this.newValue)||function(t,e,n){nc(t.start),nc(t.end);var i,r=b(t.getItems({shallow:!0}));try{for(r.s();!(i=r.n()).done;){var o=i.value,a=o.is("$textProxy")?o.textNode:o;null!==n?a._setAttribute(e,n):a._removeAttribute(e),ec(a.parent,a.index)}}catch(t){r.e(t)}finally{r.f()}ec(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}}],[{key:"className",get:function(){return"AttributeOperation"}},{key:"fromJSON",value:function(t,n){return new e(vs.fromJSON(t.range,n),t.key,t.oldValue,t.newValue,t.baseVersion)}}])}(Ql),ac=function(t){function e(t,n,i,r){var o;return P(this,e),(o=_(this,e,[r])).sourcePosition=t.clone(),o.sourcePosition.stickiness="toNext",o.howMany=n,o.targetPosition=i.clone(),o.targetPosition.stickiness="toNone",o}return C(e,t),M(e,[{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}},{key:"clone",value:function(){return new e(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new e(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new S("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new S("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==si(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var r=this.sourcePosition.path.length-1;if(this.targetPosition.path[r]>=n&&this.targetPosition.path[r]<n+this.howMany)throw new S("move-operation-node-into-itself",this)}}},{key:"_execute",value:function(){Xl(vs._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}}],[{key:"className",get:function(){return"MoveOperation"}},{key:"fromJSON",value:function(t,e){var n=fs.fromJSON(t.sourcePosition,e),i=fs.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}])}(Ql),sc=function(t){function e(t,n,i){var r;return P(this,e),(r=_(this,e,[i])).position=t.clone(),r.position.stickiness="toNone",r.nodes=new ss(tc(n)),r.shouldReceiveAttributes=!1,r}return C(e,t),M(e,[{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}},{key:"clone",value:function(){var t=new ss(k(this.nodes).map((function(t){return t._clone(!0)}))),n=new e(this.position,t,this.baseVersion);return n.shouldReceiveAttributes=this.shouldReceiveAttributes,n}},{key:"getReversed",value:function(){var t=this.position.root.document.graveyard,e=new fs(t,[0]);return new ac(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new S("insert-operation-position-invalid",this)}},{key:"_execute",value:function(){var t=this.nodes;this.nodes=new ss(k(t).map((function(t){return t._clone(!0)}))),Zl(this.position,t)}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}}],[{key:"className",get:function(){return"InsertOperation"}},{key:"fromJSON",value:function(t,n){var i,r=[],o=b(t.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.name?r.push(us.fromJSON(a)):r.push(ls.fromJSON(a))}}catch(t){o.e(t)}finally{o.f()}var s=new e(fs.fromJSON(t.position,n),r,t.baseVersion);return s.shouldReceiveAttributes=t.shouldReceiveAttributes,s}}])}(Ql),lc=function(t){function e(t,n,i,r,o,a){var s;return P(this,e),(s=_(this,e,[a])).name=t,s.oldRange=n?n.clone():null,s.newRange=i?i.clone():null,s.affectsData=o,s._markers=r,s}return C(e,t),M(e,[{key:"type",get:function(){return"marker"}},{key:"clone",value:function(){return new e(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new e(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}}],[{key:"className",get:function(){return"MarkerOperation"}},{key:"fromJSON",value:function(t,n){return new e(t.name,t.oldRange?vs.fromJSON(t.oldRange,n):null,t.newRange?vs.fromJSON(t.newRange,n):null,n.model.markers,t.affectsData,t.baseVersion)}}])}(Ql),cc=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"type",get:function(){return"noop"}},{key:"clone",value:function(){return new e(this.baseVersion)}},{key:"getReversed",value:function(){return new e(this.baseVersion+1)}},{key:"_execute",value:function(){}}],[{key:"className",get:function(){return"NoOperation"}}])}(Ql),uc=function(t){function e(t,n,i,r){var o;return P(this,e),(o=_(this,e,[r])).position=t,o.position.stickiness="toNext",o.oldName=n,o.newName=i,o}return C(e,t),M(e,[{key:"type",get:function(){return"rename"}},{key:"clone",value:function(){return new e(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new e(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.position.nodeAfter;if(!(t instanceof us))throw new S("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new S("rename-operation-wrong-name",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.position=this.position.toJSON(),t}}],[{key:"className",get:function(){return"RenameOperation"}},{key:"fromJSON",value:function(t,n){return new e(fs.fromJSON(t.position,n),t.oldName,t.newName,t.baseVersion)}}])}(Ql),dc=function(t){function e(t,n,i,r,o){var a;return P(this,e),(a=_(this,e,[o])).root=t,a.key=n,a.oldValue=i,a.newValue=r,a}return C(e,t),M(e,[{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}},{key:"clone",value:function(){return new e(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new e(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new S("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new S("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new S("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.root=this.root.toJSON(),t}}],[{key:"className",get:function(){return"RootAttributeOperation"}},{key:"fromJSON",value:function(t,n){if(!n.getRoot(t.root))throw new S("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new e(n.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}])}(Ql),hc=function(t){function e(t,n,i,r,o){var a;return P(this,e),(a=_(this,e,[o])).sourcePosition=t.clone(),a.sourcePosition.stickiness="toPrevious",a.howMany=n,a.targetPosition=i.clone(),a.targetPosition.stickiness="toNext",a.graveyardPosition=r.clone(),a}return C(e,t),M(e,[{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new fs(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new vs(this.sourcePosition,t)}},{key:"clone",value:function(){return new e(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new fs(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new fc(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new S("merge-operation-source-position-invalid",this);if(!e.parent)throw new S("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new S("merge-operation-how-many-invalid",this)}},{key:"_execute",value:function(){var t=this.sourcePosition.parent;Xl(vs._createIn(t),this.targetPosition),Xl(vs._createOn(t),this.graveyardPosition)}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}}],[{key:"className",get:function(){return"MergeOperation"}},{key:"fromJSON",value:function(t,e){var n=fs.fromJSON(t.sourcePosition,e),i=fs.fromJSON(t.targetPosition,e),r=fs.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,r,t.baseVersion)}}])}(Ql),fc=function(t){function e(t,n,i,r,o){var a;return P(this,e),(a=_(this,e,[o])).splitPosition=t.clone(),a.splitPosition.stickiness="toNext",a.howMany=n,a.insertionPosition=i,a.graveyardPosition=r?r.clone():null,a.graveyardPosition&&(a.graveyardPosition.stickiness="toNext"),a}return C(e,t),M(e,[{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var t=this.insertionPosition.path.slice();return t.push(0),new fs(this.insertionPosition.root,t)}},{key:"movedRange",get:function(){var t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new vs(this.splitPosition,t)}},{key:"clone",value:function(){return new e(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var t=this.splitPosition.root.document.graveyard,e=new fs(t,[0]);return new hc(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new S("split-operation-position-invalid",this);if(!t.parent)throw new S("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new S("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new S("split-operation-graveyard-position-invalid",this)}},{key:"_execute",value:function(){var t=this.splitPosition.parent;if(this.graveyardPosition)Xl(vs._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var e=t._clone();Zl(this.insertionPosition,e)}Xl(new vs(fs._createAt(t,this.splitPosition.offset),fs._createAt(t,t.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}}],[{key:"className",get:function(){return"SplitOperation"}},{key:"getInsertionPosition",value:function(t){var e=t.path.slice(0,-1);return e[e.length-1]++,new fs(t.root,e,"toPrevious")}},{key:"fromJSON",value:function(t,e){var n=fs.fromJSON(t.splitPosition,e),i=fs.fromJSON(t.insertionPosition,e),r=t.graveyardPosition?fs.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,r,t.baseVersion)}}])}(Ql),pc={};pc[oc.className]=oc,pc[sc.className]=sc,pc[lc.className]=lc,pc[ac.className]=ac,pc[cc.className]=cc,pc[Ql.className]=Ql,pc[uc.className]=uc,pc[dc.className]=dc,pc[fc.className]=fc,pc[hc.className]=hc;var gc=function(){return M((function t(){P(this,t)}),null,[{key:"fromJSON",value:function(t,e){return pc[t.__className].fromJSON(t,e)}}])}(),mc=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[null])).sourcePosition=t.clone(),i.howMany=n,i}return C(e,t),M(e,[{key:"type",get:function(){return"detach"}},{key:"toJSON",value:function(){var t=p(e,"toJSON",this,3)([]);return t.sourcePosition=this.sourcePosition.toJSON(),t}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new S("detach-operation-on-document-node",this)}},{key:"_execute",value:function(){Jl(vs._createFromPositionAndShift(this.sourcePosition,this.howMany))}}],[{key:"className",get:function(){return"DetachOperation"}}])}(Ql),vc=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).markers=new Map,n._children=new ss,t&&n._insertChild(0,t),n}return C(e,t),M(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}},{key:"document",get:function(){return null}},{key:"getAncestors",value:function(){return[]}},{key:"getChild",value:function(t){return this._children.getNode(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(t){return this._children.getNodeIndex(t)}},{key:"getChildStartOffset",value:function(t){return this._children.getNodeStartOffset(t)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(t){var e,n=this,i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;n=n.getChild(n.offsetToIndex(r))}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"offsetToIndex",value:function(t){return this._children.offsetToIndex(t)}},{key:"toJSON",value:function(){var t,e=[],n=b(this._children);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.push(i.toJSON())}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"_appendChild",value:function(t){this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){var n,i=function(t){return"string"==typeof t?[new ls(t)]:(Kn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new ls(t):t instanceof cs?new ls(t.data,t.getAttributes()):t})))}(e),r=b(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(t){r.e(t)}finally{r.f()}this._children._insertNodes(t,i)}},{key:"_removeChildren",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(t,n),r=b(i);try{for(r.s();!(e=r.n()).done;){e.value.parent=null}}catch(t){r.e(t)}finally{r.f()}return i}}],[{key:"fromJSON",value:function(t){var n,i=[],r=b(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.name?i.push(us.fromJSON(o)):i.push(ls.fromJSON(o))}}catch(t){r.e(t)}finally{r.f()}return new e(i)}}])}(os);vc.prototype.is=function(t){return"documentFragment"===t||"model:documentFragment"===t};var bc=function(){return M((function t(e,n){P(this,t),this.model=e,this.batch=n}),[{key:"createText",value:function(t,e){return new ls(t,e)}},{key:"createElement",value:function(t,e){return new us(t,e)}},{key:"createDocumentFragment",value:function(){return new vc}},{key:"cloneElement",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t._clone(e)}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(t instanceof ls&&""==t.data)){var i=fs._createAt(e,n);if(t.parent){if(Ac(t.root,i.root))return void this.move(vs._createOn(t),i);if(t.root.document)throw new S("model-writer-insert-forbidden-move",this);this.remove(t)}var r=i.root.document?i.root.document.version:null,o=new sc(i,t,r);if(t instanceof ls&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),t instanceof vc){var a,s=b(t.markers);try{for(s.s();!(a=s.n()).done;){var l=v(a.value,2),c=l[0],u=l[1],d=fs._createAt(u.root,0),h={range:new vs(u.start._getCombined(d,i),u.end._getCombined(d,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(c)?this.updateMarker(c,h):this.addMarker(c,h)}}catch(t){s.e(t)}finally{s.f()}}}}},{key:"insertText",value:function(t,e,n,i){e instanceof vc||e instanceof us||e instanceof fs?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,i)}},{key:"insertElement",value:function(t,e,n,i){e instanceof vc||e instanceof us||e instanceof fs?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,i)}},{key:"append",value:function(t,e){this.insert(t,e,"end")}},{key:"appendText",value:function(t,e,n){e instanceof vc||e instanceof us?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}},{key:"appendElement",value:function(t,e,n){e instanceof vc||e instanceof us?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}},{key:"setAttribute",value:function(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof vs){var i,r=b(n.getMinimalFlatRanges());try{for(r.s();!(i=r.n()).done;){kc(this,t,e,i.value)}}catch(t){r.e(t)}finally{r.f()}}else yc(this,t,e,n)}},{key:"setAttributes",value:function(t,e){var n,i=b(hi(t));try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];this.setAttribute(o,a,e)}}catch(t){i.e(t)}finally{i.f()}}},{key:"removeAttribute",value:function(t,e){if(this._assertWriterUsedCorrectly(),e instanceof vs){var n,i=b(e.getMinimalFlatRanges());try{for(i.s();!(n=i.n()).done;){kc(this,t,null,n.value)}}catch(t){i.e(t)}finally{i.f()}}else yc(this,t,null,e)}},{key:"clearAttributes",value:function(t){var e=this;this._assertWriterUsedCorrectly();var n=function(t){var n,i=b(t.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var r=n.value;e.removeAttribute(r,t)}}catch(t){i.e(t)}finally{i.f()}};if(t instanceof vs){var i,r=b(t.getItems());try{for(r.s();!(i=r.n()).done;){n(i.value)}}catch(t){r.e(t)}finally{r.f()}}else n(t)}},{key:"move",value:function(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof vs))throw new S("writer-move-invalid-range",this);if(!t.isFlat)throw new S("writer-move-range-not-flat",this);var i=fs._createAt(e,n);if(!i.isEqual(t.start)){if(this._addOperationForAffectedMarkers("move",t),!Ac(t.root,i.root))throw new S("writer-move-different-document",this);var r=t.root.document?t.root.document.version:null,o=new ac(t.start,t.end.offset-t.start.offset,i,r);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(t){this._assertWriterUsedCorrectly();var e,n=b((t instanceof vs?t:vs._createOn(t)).getMinimalFlatRanges().reverse());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._addOperationForAffectedMarkers("move",i),_c(i.start,i.end.offset-i.start.offset,this.batch,this.model)}}catch(t){n.e(t)}finally{n.f()}}},{key:"merge",value:function(t){this._assertWriterUsedCorrectly();var e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof us))throw new S("writer-merge-no-element-before",this);if(!(n instanceof us))throw new S("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}},{key:"createPositionFromPath",value:function(t,e,n){return this.model.createPositionFromPath(t,e,n)}},{key:"createPositionAt",value:function(t,e){return this.model.createPositionAt(t,e)}},{key:"createPositionAfter",value:function(t){return this.model.createPositionAfter(t)}},{key:"createPositionBefore",value:function(t){return this.model.createPositionBefore(t)}},{key:"createRange",value:function(t,e){return this.model.createRange(t,e)}},{key:"createRangeIn",value:function(t){return this.model.createRangeIn(t)}},{key:"createRangeOn",value:function(t){return this.model.createRangeOn(t)}},{key:"createSelection",value:function(){var t;return(t=this.model).createSelection.apply(t,arguments)}},{key:"_mergeDetached",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;this.move(vs._createIn(n),fs._createAt(e,"end")),this.remove(n)}},{key:"_merge",value:function(t){var e=fs._createAt(t.nodeBefore,"end"),n=fs._createAt(t.nodeAfter,0),i=t.root.document.graveyard,r=new fs(i,[0]),o=t.root.document.version,a=new hc(n,t.nodeAfter.maxOffset,e,r,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof us))throw new S("writer-rename-not-element-instance",this);var n=t.root.document?t.root.document.version:null,i=new uc(fs._createBefore(t),t.name,e,n);this.batch.addOperation(i),this.model.applyOperation(i)}},{key:"split",value:function(t,e){this._assertWriterUsedCorrectly();var n,i,r=t.parent;if(!r.parent)throw new S("writer-split-element-no-parent",this);if(e||(e=r.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new S("writer-split-invalid-limit-element",this);do{var o=r.root.document?r.root.document.version:null,a=r.maxOffset-t.offset,s=fc.getInsertionPosition(t),l=new fc(t,a,s,null,o);this.batch.addOperation(l),this.model.applyOperation(l),n||i||(n=r,i=t.parent.nextSibling),r=(t=this.createPositionAfter(t.parent)).parent}while(r!==e);return{position:t,range:new vs(fs._createAt(n,"end"),fs._createAt(i,0))}}},{key:"wrap",value:function(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new S("writer-wrap-range-not-flat",this);var n=e instanceof us?e:new us(e);if(n.childCount>0)throw new S("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new S("writer-wrap-element-attached",this);this.insert(n,t.start);var i=new vs(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(i,fs._createAt(n,0))}},{key:"unwrap",value:function(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new S("writer-unwrap-element-no-parent",this);this.move(vs._createIn(t),this.createPositionAfter(t)),this.remove(t)}},{key:"addMarker",value:function(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new S("writer-addmarker-no-usingoperation",this);var n=e.usingOperation,i=e.range,r=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new S("writer-addmarker-marker-exists",this);if(!i)throw new S("writer-addmarker-no-range",this);return n?(wc(this,t,null,i,r),this.model.markers.get(t)):this.model.markers._set(t,i,n,r)}},{key:"updateMarker",value:function(t,e){this._assertWriterUsedCorrectly();var n="string"==typeof t?t:t.name,i=this.model.markers.get(n);if(!i)throw new S("writer-updatemarker-marker-not-exists",this);if(!e)return T("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(i);var r="boolean"==typeof e.usingOperation,o="boolean"==typeof e.affectsData,a=o?e.affectsData:i.affectsData;if(!r&&!e.range&&!o)throw new S("writer-updatemarker-wrong-options",this);var s=i.getRange(),l=e.range?e.range:s;r&&e.usingOperation!==i.managedUsingOperations?e.usingOperation?wc(this,n,null,l,a):(wc(this,n,s,null,a),this.model.markers._set(n,l,void 0,a)):i.managedUsingOperations?wc(this,n,s,l,a):this.model.markers._set(n,l,void 0,a)}},{key:"removeMarker",value:function(t){this._assertWriterUsedCorrectly();var e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new S("writer-removemarker-no-marker",this);var n=this.model.markers.get(e);n.managedUsingOperations?wc(this,e,n.getRange(),null,n.affectsData):this.model.markers._remove(e)}},{key:"setSelection",value:function(){var t;this._assertWriterUsedCorrectly(),(t=this.model.document.selection)._setTo.apply(t,arguments)}},{key:"setSelectionFocus",value:function(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}},{key:"setSelectionAttribute",value:function(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else{var n,i=b(hi(t));try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];this._setSelectionAttribute(o,a)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"removeSelectionAttribute",value:function(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else{var e,n=b(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._removeSelectionAttribute(i)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(t){this.model.document.selection._restoreGravity(t)}},{key:"_setSelectionAttribute",value:function(t,e){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var i=Ps._getStoreAttributeKey(t);this.setAttribute(i,e,n.anchor.parent)}n._setAttribute(t,e)}},{key:"_removeSelectionAttribute",value:function(t){var e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){var n=Ps._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new S("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(t,e){var n,i=b(this.model.markers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.managedUsingOperations){var o=r.getRange(),a=!1;if("move"===t){var s=e;a=s.containsPosition(o.start)||s.start.isEqual(o.start)||s.containsPosition(o.end)||s.end.isEqual(o.end)}else{var l=e,c=l.nodeBefore,u=l.nodeAfter,d=o.start.parent==c&&o.start.isAtEnd,h=o.end.parent==u&&0==o.end.offset,f=o.end.nodeAfter==u,p=o.start.nodeAfter==u;a=d||h||f||p}a&&this.updateMarker(r.name,{range:o})}}}catch(t){i.e(t)}finally{i.f()}}}])}();function kc(t,e,n,i){var r,o,a,s,l=t.model,c=l.document,u=i.start,d=b(i.getWalker({shallow:!0}));try{for(d.s();!(s=d.n()).done;){var h=s.value;a=h.item.getAttribute(e),r&&o!=a&&(o!=n&&f(),u=r),r=h.nextPosition,o=a}}catch(t){d.e(t)}finally{d.f()}function f(){var i=new vs(u,r),a=i.root.document?c.version:null,s=new oc(i,e,o,n,a);t.batch.addOperation(s),l.applyOperation(s)}r instanceof fs&&r!=u&&o!=n&&f()}function yc(t,e,n,i){var r,o,a=t.model,s=a.document,l=i.getAttribute(e);if(l!=n){if(i.root===i){var c=i.document?s.version:null;o=new dc(i,e,l,n,c)}else{var u=(r=new vs(fs._createBefore(i),t.createPositionAfter(i))).root.document?s.version:null;o=new oc(r,e,l,n,u)}t.batch.addOperation(o),a.applyOperation(o)}}function wc(t,e,n,i,r){var o=t.model,a=o.document,s=new lc(e,n,i,o.markers,!!r,a.version);t.batch.addOperation(s),o.applyOperation(s)}function _c(t,e,n,i){var r;if(t.root.document){var o=i.document,a=new fs(o.graveyard,[0]);r=new ac(t,e,a,o.version)}else r=new mc(t,e);n.addOperation(r),i.applyOperation(r)}function Ac(t,e){return t===e||t instanceof Fl&&e instanceof Fl}function Cc(t,e){return t.isCollapsed?function(t,e){var n=t.start,i=e.getNearestSelectionRange(n);if(!i){var r=n.getAncestors().reverse().find((function(t){return e.isObject(t)}));return r?vs._createOn(r):null}if(!i.isCollapsed)return i;var o=i.start;return n.isEqual(o)?null:new vs(o)}(t,e):function(t,e){var n=t.start,i=t.end,r=e.checkChild(n,"$text"),o=e.checkChild(i,"$text"),a=e.getLimitElement(n),s=e.getLimitElement(i);if(a===s){if(r&&o)return null;if(function(t,e,n){var i=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),r=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return i||r}(n,i,e)){var l=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),c=i.nodeBefore&&e.isSelectable(i.nodeBefore)?null:e.getNearestSelectionRange(i,"backward"),u=l?l.start:n,d=c?c.end:i;return new vs(u,d)}}var h=a&&!a.is("rootElement"),f=s&&!s.is("rootElement");if(h||f){var p=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,g=h&&(!p||!Dc(n.nodeAfter,e)),m=f&&(!p||!Dc(i.nodeBefore,e)),v=n,b=i;return g&&(v=fs._createBefore(xc(a,e))),m&&(b=fs._createAfter(xc(s,e))),new vs(v,b)}return null}(t,e)}function xc(t,e){for(var n=t,i=n;e.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function Dc(t,e){return t&&e.isSelectable(t)}var Ec=function(t){function e(t,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(P(this,e),!(i=_(this,e,[t,n,r])).root.is("rootElement"))throw new S("model-liveposition-root-not-rootelement",t);return Sc.call(i),i}return C(e,t),M(e,[{key:"detach",value:function(){this.stopListening()}},{key:"toPosition",value:function(){return new fs(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}])}(F(fs));function Sc(){var t=this;this.listenTo(this.root.document.model,"applyOperation",(function(e,n){var i=n[0];i.isDocumentOperation&&Tc.call(t,i)}),{priority:"low"})}function Tc(t){var e=this.getTransformedByOperation(t);if(!this.isEqual(e)){var n=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",n)}}function Ic(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.isCollapsed){var i=e.getFirstRange();if("$graveyard"!=i.root.rootName){var r=t.schema;t.change((function(t){if(n.doNotResetEntireContent||!function(t,e){var n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;var i=e.getFirstRange();return i.start.parent!=i.end.parent&&t.checkChild(n,"paragraph")}(r,e)){var o={};if(!n.doNotAutoparagraph){var a=e.getSelectedElement();a&&Object.assign(o,r.getAttributesWithProperty(a,"copyOnReplace",!0))}var s=function(t){var e=t.root.document.model,n=t.start,i=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){var r=function(t){var e,n=t.parent,i=n.root.document.model.schema,r=b(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(r.s();!(e=r.n()).done;){var o=e.value;if(i.isLimit(o))return null;if(i.isBlock(o))return o}}catch(t){r.e(t)}finally{r.f()}}(i);if(r&&i.isTouching(e.createPositionAt(r,0))){var o=e.createSelection(t);e.modifySelection(o,{direction:"backward"});var a=o.getLastPosition(),s=e.createRange(a,i);e.hasContent(s,{ignoreMarkers:!0})||(i=a)}}return[Ec.fromPosition(n,"toPrevious"),Ec.fromPosition(i,"toNext")]}(i),l=v(s,2),c=l[0],u=l[1];c.isTouching(u)||t.remove(t.createRange(c,u)),n.leaveUnmerged||(function(t,e,n){var i=t.model;if(Pc(t.model.schema,e,n)){var r=function(t,e){for(var n=t.getAncestors(),i=e.getAncestors(),r=0;n[r]&&n[r]==i[r];)r++;return[n[r],i[r]]}(e,n),o=v(r,2),a=o[0],s=o[1];a&&s&&(!i.hasContent(a,{ignoreMarkers:!0})&&i.hasContent(s,{ignoreMarkers:!0})?Oc(t,e,n,a.parent):Mc(t,e,n,a.parent))}}(t,c,u),r.removeDisallowedAttributes(c.parent.getChildren(),t)),Bc(t,e,c),!n.doNotAutoparagraph&&function(t,e){var n=t.checkChild(e,"$text"),i=t.checkChild(e,"paragraph");return!n&&i}(r,c)&&Nc(t,c,e,o),c.detach(),u.detach()}else!function(t,e){var n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),Nc(t,t.createPositionAt(n,0),e)}(t,e)}))}}}function Mc(t,e,n,i){var r=e.parent,o=n.parent;if(r!=i&&o!=i){for(e=t.createPositionAfter(r),(n=t.createPositionBefore(o)).isEqual(e)||t.insert(o,e),t.merge(e);n.parent.isEmpty;){var a=n.parent;n=t.createPositionBefore(a),t.remove(a)}Pc(t.model.schema,e,n)&&Mc(t,e,n,i)}}function Oc(t,e,n,i){var r=e.parent,o=n.parent;if(r!=i&&o!=i){for(e=t.createPositionAfter(r),(n=t.createPositionBefore(o)).isEqual(e)||t.insert(r,n);e.parent.isEmpty;){var a=e.parent;e=t.createPositionBefore(a),t.remove(a)}n=t.createPositionBefore(o),function(t,e){var n=e.nodeBefore,i=e.nodeAfter;n.name!=i.name&&t.rename(n,i.name),t.clearAttributes(n),t.setAttributes(Object.fromEntries(i.getAttributes()),n),t.merge(e)}(t,n),Pc(t.model.schema,e,n)&&Oc(t,e,n,i)}}function Pc(t,e,n){var i=e.parent,r=n.parent;return i!=r&&!t.isLimit(i)&&!t.isLimit(r)&&function(t,e,n){var i,r=b(new vs(t,e).getWalker());try{for(r.s();!(i=r.n()).done;){var o=i.value;if(n.isLimit(o.item))return!1}}catch(t){r.e(t)}finally{r.f()}return!0}(e,n,t)}function Nc(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.createElement("paragraph");t.model.schema.setAllowedAttributes(r,i,t),t.insert(r,e),Bc(t,n,t.createPositionAt(r,0))}function Bc(t,e,n){e instanceof Ps?t.setSelection(n):e.setTo(n)}function Lc(t,e){var n=[];Array.from(t.getItems({direction:"backward"})).map((function(t){return e.createRangeOn(t)})).filter((function(e){return(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end))})).forEach((function(t){n.push(t.start.parent),e.remove(t)})),n.forEach((function(t){for(var n=t;n.parent&&n.isEmpty;){var i=e.createRangeOn(n);n=n.parent,e.remove(i)}}))}Ec.prototype.is=function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t};var jc=function(){return M((function t(e,n,i){P(this,t),this.model=e,this.writer=n,this.position=i,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=n.createDocumentFragment(),this._documentFragmentPosition=n.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}),[{key:"handleNodes",value:function(t){for(var e=0,n=Array.from(t);e<n.length;e++){var i=n[e];this._handleNode(i)}this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"_updateLastNodeFromAutoParagraph",value:function(t){var e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new S("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}},{key:"getSelectionRange",value:function(){return this._nodeToSelect?vs._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new vs(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(t){if(this.schema.isObject(t))this._handleObject(t);else{var e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t))?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}}},{key:"_insertPartialFragment",value:function(){if(!this._documentFragment.isEmpty){var t=Ec.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}}},{key:"_handleObject",value:function(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}},{key:"_handleDisallowedNode",value:function(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}},{key:"_appendToFragment",value:function(t){if(!this.schema.checkChild(this.position,t))throw new S("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=t:this._nodeToSelect=null,this._filterAttributesOf.push(t)}},{key:"_setAffectedBoundaries",value:function(t){this._affectedStart||(this._affectedStart=Ec.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Ec.fromPosition(t,"toNext"))}},{key:"_mergeOnLeft",value:function(){var t=this._firstNode;if(t instanceof us&&this._canMergeLeft(t)){var e=Ec._createBefore(t);e.stickiness="toNext";var n=Ec.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=Ec._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Ec._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}}},{key:"_mergeOnRight",value:function(){var t=this._lastNode;if(t instanceof us&&this._canMergeRight(t)){var e=Ec._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new S("insertcontent-invalid-insertion-position",this);this.position=fs._createAt(e.nodeBefore,"end");var n=Ec.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=Ec._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Ec._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}}},{key:"_canMergeLeft",value:function(t){var e=t.previousSibling;return e instanceof us&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}},{key:"_canMergeRight",value:function(t){var e=t.nextSibling;return e instanceof us&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}},{key:"_tryAutoparagraphing",value:function(t){var e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}},{key:"_checkAndAutoParagraphToAllowedPosition",value:function(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();var e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}},{key:"_checkAndSplitToAllowedPosition",value:function(t){var e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var i=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=i,this.canMergeWith.add(this.position.nodeAfter)}return!0}},{key:"_getAllowedIn",value:function(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}])}();function Rc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto",i=t.getSelectedElement();if(i&&e.schema.isObject(i)&&!e.schema.isInline(i))return"before"==n||"after"==n?e.createRange(e.createPositionAt(i,n)):e.createRangeOn(i);var r=ja(t.getSelectedBlocks());if(!r)return e.createRange(t.focus);if(r.isEmpty)return e.createRange(e.createPositionAt(r,0));var o=e.createPositionAfter(r);return t.focus.isTouching(o)?e.createRange(o):e.createRange(e.createPositionBefore(r))}var zc=' ,.?!:;"-()';function Fc(t,e){var n=t.root,i=fs._createAt(n,e?"end":0);return e?new vs(t,i):new vs(i,t)}function Hc(t,e,n){var i=e+(n?0:-1);return zc.includes(t.charAt(i))}function Vc(t,e,n){return e===(n?t.endOffset:0)}var Uc=function(t){function e(){var t;return P(this,e),(t=_(this,e)).markers=new Gl,t.document=new $l(A(t)),t.schema=new hl,t._pendingChanges=[],t._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),t.on("applyOperation",(function(t,e){e[0]._validate()}),{priority:"highest"}),t.schema.register("$root",{isLimit:!0}),t.schema.register("$container",{allowIn:["$root","$container"]}),t.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),t.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),t.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),t.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),t.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),t.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),t.schema.register("$marker"),t.schema.addChildCheck((function(t,e){if("$marker"===e.name)return!0})),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,i=e.document.selection,r=e.schema,o=[],a=!1,s=b(i.getRanges());try{for(s.s();!(n=s.n()).done;){var l=n.value,c=Cc(l,r);c&&!c.isEqual(l)?(o.push(c),a=!0):o.push(l)}}catch(t){s.e(t)}finally{s.f()}return a&&t.setSelection(function(t){for(var e=k(t),n=new Set,i=1;i<e.length;){var r,o=e[i],a=b(e.slice(0,i).entries());try{for(a.s();!(r=a.n()).done;){var s=v(r.value,2),l=s[0],c=s[1];if(!n.has(l))if(o.isEqual(c))n.add(l);else if(o.isIntersecting(c)){n.add(l),n.add(i);var u=o.getJoined(c);e.push(u)}}}catch(t){a.e(t)}finally{a.f()}i++}return e.filter((function(t,e){return!n.has(e)}))}(o),{backward:i.isBackward}),!1}(e,t)}))}(A(t)),t.document.registerPostFixer(Zs),t}return C(e,t),M(e,[{key:"change",value:function(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Nl,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){S.rethrowUnexpectedError(t,this)}}},{key:"enqueueChange",value:function(t,e){try{t?"function"==typeof t?(e=t,t=new Nl):t instanceof Nl||(t=new Nl(t)):t=new Nl,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){S.rethrowUnexpectedError(t,this)}}},{key:"applyOperation",value:function(t){t._execute()}},{key:"insertContent",value:function(t,e,n){return function(t,e,n,i){return t.change((function(r){var o;(o=n?n instanceof Cs||n instanceof Ps?n:r.createSelection(n,i):t.document.selection).isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new jc(t,r,o.anchor);a=e.is("documentFragment")?e.getChildren():[e],s.handleNodes(a);var l=s.getSelectionRange();l&&(o instanceof Ps?r.setSelection(l):o.setTo(l));var c=s.getAffectedRange()||t.createRange(o.anchor);return s.destroy(),c}))}(this,t,e,n)}},{key:"insertObject",value:function(t,e,n,i){return function(t,e,n,i){var r,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!t.schema.isObject(e))throw new S("insertobject-element-not-an-object",t,{object:e});var a=r=n?n instanceof Cs||n instanceof Ps?n:t.createSelection(n,i):t.document.selection;o.findOptimalPosition&&t.schema.isBlock(e)&&(a=t.createSelection(Rc(r,t,o.findOptimalPosition)));var s=ja(r.getSelectedBlocks()),l={};return s&&Object.assign(l,t.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),t.change((function(n){a.isCollapsed||t.deleteContent(a,{doNotAutoparagraph:!0});var i=e,r=a.anchor.parent;!t.schema.checkChild(r,e)&&t.schema.checkChild(r,"paragraph")&&t.schema.checkChild("paragraph",e)&&(i=n.createElement("paragraph"),n.insert(e,i)),t.schema.setAllowedAttributes(i,l,n);var s=t.insertContent(i,a);return s.isCollapsed||o.setSelection&&function(t,e,n,i){var r=t.model;if("after"==n){var o=e.nextSibling;!(o&&r.schema.checkChild(o,"$text"))&&r.schema.checkChild(e.parent,"paragraph")&&(o=t.createElement("paragraph"),r.schema.setAllowedAttributes(o,i,t),r.insertContent(o,t.createPositionAfter(e))),o&&t.setSelection(o,0)}else{if("on"!=n)throw new S("insertobject-invalid-place-parameter-value",r);t.setSelection(e,"on")}}(n,e,o.setSelection,l),s}))}(this,t,e,n,i)}},{key:"deleteContent",value:function(t,e){Ic(this,t,e)}},{key:"modifySelection",value:function(t,e){!function(t,e){for(var n,i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.schema,a="backward"!=r.direction,s=r.unit?r.unit:"character",l=!!r.treatEmojiAsSingleUnit,c=e.focus,u=new ds({boundaries:Fc(c,a),singleCharacters:!0,direction:a?"forward":"backward"}),d={walker:u,schema:o,isForward:a,unit:s,treatEmojiAsSingleUnit:l},h=function(){if(n.done)return{v:void 0};var i=function(t,e){var n=t.isForward,i=t.walker,r=t.unit,o=t.schema,a=t.treatEmojiAsSingleUnit,s=e.type,l=e.item,c=e.nextPosition;if("text"==s)return"word"===t.unit?function(t,e){var n=t.position.textNode;if(n)for(var i=t.position.offset-n.startOffset;!Hc(n.data,i,e)&&!Vc(n,i,e);){t.next();var r=e?t.position.nodeAfter:t.position.nodeBefore;if(r&&r.is("$text")){var o=r.data.charAt(e?0:r.data.length-1);zc.includes(o)||(t.next(),n=t.position.textNode)}i=t.position.offset-n.startOffset}return t.position}(i,n):function(t,e,n){var i=t.position.textNode;if(i)for(var r=i.data,o=t.position.offset-i.startOffset;Hl(r,o)||"character"==e&&Vl(r,o)||n&&Wl(r,o);)t.next(),o=t.position.offset-i.startOffset;return t.position}(i,r,a);if(s==(n?"elementStart":"elementEnd")){if(o.isSelectable(l))return fs._createAt(l,n?"after":"before");if(o.checkChild(c,"$text"))return c}else{if(o.isLimit(l))return void i.skip((function(){return!0}));if(o.checkChild(c,"$text"))return c}}(d,n.value);return i?{v:void(e instanceof Ps?t.change((function(t){t.setSelectionFocus(i)})):e.setFocus(i))}:void 0};n=u.next();)if(i=h())return i.v}(this,t,e)}},{key:"getSelectedContent",value:function(t){return function(t,e){return t.change((function(t){var n=t.createDocumentFragment(),i=e.getFirstRange();if(!i||i.isCollapsed)return n;var r,o,a=i.start.root,s=i.start.getCommonPath(i.end),l=a.getNodeByPath(s),c=(r=i.start.parent==i.end.parent?i:t.createRange(t.createPositionAt(l,i.start.path[s.length]),t.createPositionAt(l,i.end.path[s.length]+1))).end.offset-r.start.offset,u=b(r.getItems({shallow:!0}));try{for(u.s();!(o=u.n()).done;){var d=o.value;d.is("$textProxy")?t.appendText(d.data,d.getAttributes(),n):t.append(t.cloneElement(d,!0),n)}}catch(t){u.e(t)}finally{u.f()}if(r!=i){var h=i._getTransformedByMove(r.start,t.createPositionAt(n,0),c)[0],f=t.createRange(t.createPositionAt(n,0),h.start);Lc(t.createRange(h.end,t.createPositionAt(n,"end")),t),Lc(f,t)}return n}))}(this,t)}},{key:"hasContent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t instanceof vs?t:vs._createIn(t);if(n.isCollapsed)return!1;var i=e.ignoreWhitespaces,r=void 0!==i&&i,o=e.ignoreMarkers;if(!(void 0!==o&&o)){var a,s=b(this.markers.getMarkersIntersectingRange(n));try{for(s.s();!(a=s.n()).done;){if(a.value.affectsData)return!0}}catch(t){s.e(t)}finally{s.f()}}var l,c=b(n.getItems());try{for(c.s();!(l=c.n()).done;){var u=l.value;if(this.schema.isContent(u)){if(!u.is("$textProxy"))return!0;if(!r)return!0;if(-1!==u.data.search(/\S/))return!0}}}catch(t){c.e(t)}finally{c.f()}return!1}},{key:"createPositionFromPath",value:function(t,e,n){return new fs(t,e,n)}},{key:"createPositionAt",value:function(t,e){return fs._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return fs._createAfter(t)}},{key:"createPositionBefore",value:function(t){return fs._createBefore(t)}},{key:"createRange",value:function(t,e){return new vs(t,e)}},{key:"createRangeIn",value:function(t){return vs._createIn(t)}},{key:"createRangeOn",value:function(t){return vs._createOn(t)}},{key:"createSelection",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D(Cs,e)}},{key:"createBatch",value:function(t){return new Nl(t)}},{key:"createOperationFromJSON",value:function(t){return gc.fromJSON(t,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){var e=this._pendingChanges[0].batch;this._currentWriter=new bc(this,e);var n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}])}(nt),Wc=function(t){function e(t){var n;return P(this,e),(n=_(this,e)).editor=t,n}return C(e,t),M(e,[{key:"set",value:function(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n){var o=n;n=function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){i.editor.execute(o),e()}))}p(e,"set",this,3)([t,n,r])}}])}(za),qc=function(){return M((function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var i=n.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=n.context||new ri({language:i}),this._context._addEditor(this,!n.context);var r=Array.from(this.constructor.builtinPlugins||[]);this.config=new $n(n,this.constructor.defaultConfig),this.config.define("plugins",r),this.config.define(this._context._getEditorConfig()),this.plugins=new Jn(this,r,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new ll,this.set("state","initializing"),this.once("ready",(function(){return e.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return e.state="destroyed"}),{priority:"high"}),this.model=new Uc;var o=new Ji;this.data=new Il(this.model,o),this.editing=new sl(this.model,o),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Ml([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Wc(this),this.keystrokes.listenTo(this.editing.view.document)}),[{key:"isReadOnly",get:function(){return this._readOnlyLocks.size>0},set:function(t){throw new S("editor-isreadonly-has-no-setter")}},{key:"enableReadOnlyMode",value:function(t){if("string"!=typeof t&&"symbol"!=N(t))throw new S("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}},{key:"disableReadOnlyMode",value:function(t){if("string"!=typeof t&&"symbol"!=N(t))throw new S("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}},{key:"initPlugins",value:function(){var t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],i=t.get("extraPlugins")||[],r=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(i),n,r)}},{key:"destroy",value:function(){var t=this,e=Promise.resolve();return"initializing"==this.state&&(e=new Promise((function(e){return t.once("ready",e)}))),e.then((function(){t.fire("destroy"),t.stopListening(),t.commands.destroy()})).then((function(){return t.plugins.destroy()})).then((function(){t.model.destroy(),t.data.destroy(),t.editing.destroy(),t.keystrokes.destroy()})).then((function(){return t._context._removeEditor(t)}))}},{key:"execute",value:function(){try{var t;return(t=this.commands).execute.apply(t,arguments)}catch(t){S.rethrowUnexpectedError(t,this)}}},{key:"focus",value:function(){this.editing.view.focus()}}])}();lt(qc,et);var $c=function(){return M((function t(e){P(this,t),this.editor=e,this._components=new Map}),[{key:"names",value:m().mark((function t(){var e,n,i;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=b(this._components.values()),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=n.value,t.next=7,i.originalName;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"add",value:function(t,e){this._components.set(Yc(t),{callback:e,originalName:t})}},{key:"create",value:function(t){if(!this.has(t))throw new S("componentfactory-item-missing",this,{name:t});return this._components.get(Yc(t)).callback(this.editor.locale)}},{key:"has",value:function(t){return this._components.has(Yc(t))}}])}();function Yc(t){return String(t).toLowerCase()}var Gc=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return P(this,e),(t=_(this,e,[n,{idProperty:"viewUid"}])).on("add",(function(e,n,i){t._renderViewIntoCollectionParent(n,i)})),t.on("remove",(function(e,n){n.element&&t._parentElement&&n.element.remove()})),t._parentElement=null,t}return C(e,t),M(e,[{key:"destroy",value:function(){this.map((function(t){return t.destroy()}))}},{key:"setParent",value:function(t){this._parentElement=t;var e,n=b(this);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._renderViewIntoCollectionParent(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"delegate",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.length||!n.every((function(t){return"string"==typeof t})))throw new S("ui-viewcollection-delegate-wrong-events",this);return{to:function(e){var i,r=b(t);try{for(r.s();!(i=r.n()).done;)for(var o=i.value,a=0,s=n;a<s.length;a++){var l=s[a];o.delegate(l).to(e)}}catch(t){r.e(t)}finally{r.f()}t.on("add",(function(t,i){for(var r=0,o=n;r<o.length;r++){var a=o[r];i.delegate(a).to(e)}})),t.on("remove",(function(t,i){for(var r=0,o=n;r<o.length;r++){var a=o[r];i.stopDelegating(a,e)}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}}])}(Zn),Kc=function(){return M((function t(e){P(this,t),Object.assign(this,ou(ru(e))),this._isRendered=!1,this._revertData=null}),[{key:"render",value:function(){var t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}},{key:"apply",value:function(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,isApplying:!0,revertData:this._revertData}),t}},{key:"revert",value:function(t){if(!this._revertData)throw new S("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}},{key:"getViews",value:m().mark((function t(){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(m().mark((function t(e){var n,i,r;return m().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!e.children){o.next=24;break}n=b(e.children),o.prev=2,n.s();case 4:if((i=n.n()).done){o.next=16;break}if(!du(r=i.value)){o.next=11;break}return o.next=9,r;case 9:o.next=14;break;case 11:if(o.t0=hu(r),!o.t0){o.next=14;break}return o.delegateYield(t(r),"t1",14);case 14:o.next=4;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o.catch(2),n.e(o.t2);case 21:return o.prev=21,n.f(),o.finish(21);case 24:case"end":return o.stop()}}),t,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"_renderNode",value:function(t){if(t.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new S("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}},{key:"_renderElement",value:function(t){var e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}},{key:"_renderText",value:function(t){var e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Xc(this.text)?this._bindToObservable({schema:this.text,updater:eu(e),data:t}):e.textContent=this.text.join(""),e}},{key:"_renderAttributes",value:function(t){var e,n,i,r;if(this.attributes){var o=t.node,a=t.revertData;for(e in this.attributes)if(i=o.getAttribute(e),n=this.attributes[e],a&&(a.attributes[e]=i),r=K(n[0])&&n[0].ns?n[0].ns:null,Xc(n)){var s=r?n[0].value:n;a&&pu(e)&&s.unshift(i),this._bindToObservable({schema:s,updater:nu(o,e,r),data:t})}else"style"==e&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],t):(a&&i&&pu(e)&&n.unshift(i),n=n.map((function(t){return t&&t.value||t})).reduce((function(t,e){return t.concat(e)}),[]).reduce(su,""),uu(n)||o.setAttributeNS(r,e,n))}}},{key:"_renderStyleAttribute",value:function(t,e){var n=e.node;for(var i in t){var r=t[i];Xc(r)?this._bindToObservable({schema:[r],updater:iu(n,i),data:e}):n.style[i]=r}}},{key:"_renderElementChildren",value:function(t){var e,n=t.node,i=t.intoFragment?document.createDocumentFragment():n,r=t.isApplying,o=0,a=b(this.children);try{for(a.s();!(e=a.n()).done;){var s=e.value;if(fu(s)){if(!r){s.setParent(n);var l,c=b(s);try{for(c.s();!(l=c.n()).done;){var u=l.value;i.appendChild(u.element)}}catch(t){c.e(t)}finally{c.f()}}}else if(du(s))r||(s.isRendered||s.render(),i.appendChild(s.element));else if(wo(s))i.appendChild(s);else if(r){var d={children:[],bindings:[],attributes:{}};t.revertData.children.push(d),s._renderNode({node:i.childNodes[o++],isApplying:!0,revertData:d})}else i.appendChild(s.render())}}catch(t){a.e(t)}finally{a.f()}t.intoFragment&&n.appendChild(i)}},{key:"_setUpListeners",value:function(t){var e=this;if(this.eventListeners){var n=function(n){var i=e.eventListeners[n].map((function(e){var i=v(n.split("@"),2),r=i[0],o=i[1];return e.activateDomEventListener(r,o,t)}));t.revertData&&t.revertData.bindings.push(i)};for(var i in this.eventListeners)n(i)}}},{key:"_bindToObservable",value:function(t){var e=t.schema,n=t.updater,i=t.data,r=i.revertData;tu(e,n,i);var o=e.filter((function(t){return!uu(t)})).filter((function(t){return t.observable})).map((function(t){return t.activateAttributeListener(e,n,i)}));r&&r.bindings.push(o)}},{key:"_revertTemplateFromNode",value:function(t,e){var n,i=b(e.bindings);try{for(i.s();!(n=i.n()).done;){var r,o=b(n.value);try{for(o.s();!(r=o.n()).done;){(0,r.value)()}}catch(t){o.e(t)}finally{o.f()}}}catch(t){i.e(t)}finally{i.f()}if(e.text)t.textContent=e.text;else{for(var a in e.attributes){var s=e.attributes[a];null===s?t.removeAttribute(a):t.setAttribute(a,s)}for(var l=0;l<e.children.length;++l)this._revertTemplateFromNode(t.childNodes[l],e.children[l])}}}],[{key:"bind",value:function(t,e){return{to:function(n,i){return new Zc({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i})},if:function(n,i,r){return new Jc({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:r})}}}},{key:"extend",value:function(t,e){if(t._isRendered)throw new S("template-extend-render",[this,t]);cu(t,ou(ru(e)))}}])}();lt(Kc,F);var Qc=function(){return M((function t(e){P(this,t),Object.assign(this,e)}),[{key:"getValue",value:function(t){var e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}},{key:"activateAttributeListener",value:function(t,e,n){var i=this,r=function(){return tu(t,e,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,r),function(){i.emitter.stopListening(i.observable,"change:"+i.attribute,r)}}}])}(),Zc=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"activateDomEventListener",value:function(t,e,n){var i=this,r=function(t,n){e&&!n.target.matches(e)||("function"==typeof i.eventNameOrFunction?i.eventNameOrFunction(n):i.observable.fire(i.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,r),function(){i.emitter.stopListening(n.node,t,r)}}}])}(Qc),Jc=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"getValue",value:function(t){return!uu(p(e,"getValue",this,3)([t]))&&(this.valueIfTrue||!0)}}])}(Qc);function Xc(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(Xc):t instanceof Qc)}function tu(t,e,n){var i=function(t,e){return t.map((function(t){return t instanceof Qc?t.getValue(e):t}))}(t,n.node);uu(i=1==t.length&&t[0]instanceof Jc?i[0]:i.reduce(su,""))?e.remove():e.set(i)}function eu(t){return{set:function(e){t.textContent=e},remove:function(){t.textContent=""}}}function nu(t,e,n){return{set:function(i){t.setAttributeNS(n,e,i)},remove:function(){t.removeAttributeNS(n,e)}}}function iu(t,e){return{set:function(n){t.style[e]=n},remove:function(){t.style[e]=null}}}function ru(t){return Wn(t,(function(t){if(t&&(t instanceof Qc||hu(t)||du(t)||fu(t)))return t}))}function ou(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=Xn(t.text)}(t),t.on&&(t.eventListeners=function(t){for(var e in t)au(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(var e in t)t[e].value&&(t[e].value=Xn(t[e].value)),au(t,e)}(t.attributes);var e=[];if(t.children)if(fu(t.children))e.push(t.children);else{var n,i=b(t.children);try{for(i.s();!(n=i.n()).done;){var r=n.value;hu(r)||du(r)||wo(r)?e.push(r):e.push(new Kc(r))}}catch(t){i.e(t)}finally{i.f()}}t.children=e}return t}function au(t,e){t[e]=Xn(t[e])}function su(t,e){return uu(e)?t:uu(t)?e:"".concat(t," ").concat(e)}function lu(t,e){for(var n in e){var i;t[n]?(i=t[n]).push.apply(i,k(e[n])):t[n]=e[n]}}function cu(t,e){var n;if(e.attributes&&(t.attributes||(t.attributes={}),lu(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),lu(t.eventListeners,e.eventListeners)),e.text&&(n=t.text).push.apply(n,k(e.text)),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new S("ui-template-extend-children-mismatch",t);var i,r=0,o=b(e.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;cu(t.children[r++],a)}}catch(t){o.e(t)}finally{o.f()}}}function uu(t){return!t&&0!==t}function du(t){return t instanceof mu}function hu(t){return t instanceof Kc}function fu(t){return t instanceof Gc}function pu(t){return"class"==t||"style"==t}var gu=o(4793);Ao()(gu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),gu.Z.locals;var mu=function(){return M((function t(e){P(this,t),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new Zn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(t,n){n.locale=e})),this.decorate("render")}),[{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Kc.bind(this,this)}},{key:"createCollection",value:function(t){var e=new Gc(t);return this._viewCollections.add(e),e}},{key:"registerChild",value:function(t){Kn(t)||(t=[t]);var e,n=b(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._unboundChildren.add(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"deregisterChild",value:function(t){Kn(t)||(t=[t]);var e,n=b(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._unboundChildren.remove(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"setTemplate",value:function(t){this.template=new Kc(t)}},{key:"extendTemplate",value:function(t){Kc.extend(this.template,t)}},{key:"render",value:function(){if(this.isRendered)throw new S("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(t){return t.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}}])}();function vu(t){var e=t.element,n=t.target,i=t.positions,r=t.limiter,o=t.fitInViewport,a=t.viewportOffsetConfig;zt(n)&&(n=n()),zt(r)&&(r=r());var s,l=function(t){return t&&t.parentNode?t.offsetParent===ti.document.body?null:t.offsetParent:null}(e),c=new qa(e),u=new qa(n),d=o&&function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);var e=new qa(ti.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e}(a)||null,h={targetRect:u,elementRect:c,positionedElementAncestor:l,viewportRect:d};if(r||o){var f=r&&new qa(r).getVisible();Object.assign(h,{limiterRect:f,viewportRect:d}),s=function(t,e){var n,i=e.elementRect.getArea(),r=0,o=null,a=b(t.map((function(t){return new ku(t,e)})).filter((function(t){return!!t.name})));try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.limiterIntersectionArea,c=s.viewportIntersectionArea;if(l===i)return s;var u=Math.pow(c,2)+Math.pow(l,2);u>r&&(r=u,o=s)}}catch(t){a.e(t)}finally{a.f()}return o}(i,h)||new ku(i[0],h)}else s=new ku(i[0],h);return s}function bu(t){var e=ti.window,n=e.scrollX,i=e.scrollY;return t.clone().moveBy(n,i)}lt(mu,Ho),lt(mu,et);var ku=function(){return M((function t(e,n){P(this,t);var i=e(n.targetRect,n.elementRect,n.viewportRect);if(i){var r=i.left,o=i.top,a=i.name,s=i.config;this.name=a,this.config=s,this._positioningFunctionCorrdinates={left:r,top:o},this._options=n}}),[{key:"left",get:function(){return this._absoluteRect.left}},{key:"top",get:function(){return this._absoluteRect.top}},{key:"limiterIntersectionArea",get:function(){var t=this._options.limiterRect;if(t){var e=this._options.viewportRect;if(!e)return t.getIntersectionArea(this._rect);var n=t.getIntersection(e);if(n)return n.getIntersectionArea(this._rect)}return 0}},{key:"viewportIntersectionArea",get:function(){var t=this._options.viewportRect;return t?t.getIntersectionArea(this._rect):0}},{key:"_rect",get:function(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}},{key:"_absoluteRect",get:function(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=bu(this._rect),this._options.positionedElementAncestor&&function(t,e){var n=bu(new qa(e)),i=Ua(e),r=0,o=0;r-=n.left,o-=n.top,r+=e.scrollLeft,o+=e.scrollTop,r-=i.left,o-=i.top,t.moveBy(r,o)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}])}();function yu(t){return function(e){return e+t}}var wu=o(8793);Ao()(wu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),wu.Z.locals;var _u=yu("px"),Au=ti.document.body,Cu=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).bindTemplate;return n.set("top",0),n.set("left",0),n.set("position","arrow_nw"),n.set("isVisible",!1),n.set("withArrow",!0),n.set("class"),n.content=n.createCollection(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(t){return"ck-balloon-panel_".concat(t)})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",_u),left:i.to("left",_u)}},children:n.content}),n}return C(e,t),M(e,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(t){this.show();var n=e.defaultPositions,i=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast,n.viewportStickyNorth],limiter:Au,fitInViewport:!0},t),r=e._getOptimalPosition(i),o=parseInt(r.left),a=parseInt(r.top),s=r.name,l=r.config,c=(void 0===l?{}:l).withArrow,u=void 0===c||c;Object.assign(this,{top:a,left:o,position:s,withArrow:u})}},{key:"pin",value:function(t){var e=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){e.isVisible?e._startPinning(t):e._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(t){var e=this;this.attachTo(t);var n=xu(t.target),i=t.limiter?xu(t.limiter):Au;this.listenTo(ti.document,"scroll",(function(r,o){var a=o.target,s=n&&a.contains(n),l=i&&a.contains(i);!s&&!l&&n&&i||e.attachTo(t)}),{useCapture:!0}),this.listenTo(ti.window,"resize",(function(){e.attachTo(t)}))}},{key:"_stopPinning",value:function(){this.stopListening(ti.document,"scroll"),this.stopListening(ti.window,"resize")}}])}(mu);function xu(t){return qn(t)?t:Va(t)?t.commonAncestorContainer:"function"==typeof t?xu(t()):null}function Du(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.sideOffset,n=void 0===e?Cu.arrowSideOffset:e,i=t.heightOffset,r=void 0===i?Cu.arrowHeightOffset:i,o=t.stickyVerticalOffset,a=void 0===o?Cu.stickyVerticalOffset:o,s=t.config;return{northWestArrowSouthWest:function(t,e){return h({top:l(t,e),left:t.left-n,name:"arrow_sw"},s&&{config:s})},northWestArrowSouthMiddleWest:function(t,e){return h({top:l(t,e),left:t.left-.25*e.width-n,name:"arrow_smw"},s&&{config:s})},northWestArrowSouth:function(t,e){return h({top:l(t,e),left:t.left-e.width/2,name:"arrow_s"},s&&{config:s})},northWestArrowSouthMiddleEast:function(t,e){return h({top:l(t,e),left:t.left-.75*e.width+n,name:"arrow_sme"},s&&{config:s})},northWestArrowSouthEast:function(t,e){return h({top:l(t,e),left:t.left-e.width+n,name:"arrow_se"},s&&{config:s})},northArrowSouthWest:function(t,e){return h({top:l(t,e),left:t.left+t.width/2-n,name:"arrow_sw"},s&&{config:s})},northArrowSouthMiddleWest:function(t,e){return h({top:l(t,e),left:t.left+t.width/2-.25*e.width-n,name:"arrow_smw"},s&&{config:s})},northArrowSouth:function(t,e){return h({top:l(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s"},s&&{config:s})},northArrowSouthMiddleEast:function(t,e){return h({top:l(t,e),left:t.left+t.width/2-.75*e.width+n,name:"arrow_sme"},s&&{config:s})},northArrowSouthEast:function(t,e){return h({top:l(t,e),left:t.left+t.width/2-e.width+n,name:"arrow_se"},s&&{config:s})},northEastArrowSouthWest:function(t,e){return h({top:l(t,e),left:t.right-n,name:"arrow_sw"},s&&{config:s})},northEastArrowSouthMiddleWest:function(t,e){return h({top:l(t,e),left:t.right-.25*e.width-n,name:"arrow_smw"},s&&{config:s})},northEastArrowSouth:function(t,e){return h({top:l(t,e),left:t.right-e.width/2,name:"arrow_s"},s&&{config:s})},northEastArrowSouthMiddleEast:function(t,e){return h({top:l(t,e),left:t.right-.75*e.width+n,name:"arrow_sme"},s&&{config:s})},northEastArrowSouthEast:function(t,e){return h({top:l(t,e),left:t.right-e.width+n,name:"arrow_se"},s&&{config:s})},southWestArrowNorthWest:function(t,e){return h({top:c(t),left:t.left-n,name:"arrow_nw"},s&&{config:s})},southWestArrowNorthMiddleWest:function(t,e){return h({top:c(t),left:t.left-.25*e.width-n,name:"arrow_nmw"},s&&{config:s})},southWestArrowNorth:function(t,e){return h({top:c(t),left:t.left-e.width/2,name:"arrow_n"},s&&{config:s})},southWestArrowNorthMiddleEast:function(t,e){return h({top:c(t),left:t.left-.75*e.width+n,name:"arrow_nme"},s&&{config:s})},southWestArrowNorthEast:function(t,e){return h({top:c(t),left:t.left-e.width+n,name:"arrow_ne"},s&&{config:s})},southArrowNorthWest:function(t,e){return h({top:c(t),left:t.left+t.width/2-n,name:"arrow_nw"},s&&{config:s})},southArrowNorthMiddleWest:function(t,e){return h({top:c(t),left:t.left+t.width/2-.25*e.width-n,name:"arrow_nmw"},s&&{config:s})},southArrowNorth:function(t,e){return h({top:c(t),left:t.left+t.width/2-e.width/2,name:"arrow_n"},s&&{config:s})},southArrowNorthMiddleEast:function(t,e){return h({top:c(t),left:t.left+t.width/2-.75*e.width+n,name:"arrow_nme"},s&&{config:s})},southArrowNorthEast:function(t,e){return h({top:c(t),left:t.left+t.width/2-e.width+n,name:"arrow_ne"},s&&{config:s})},southEastArrowNorthWest:function(t,e){return h({top:c(t),left:t.right-n,name:"arrow_nw"},s&&{config:s})},southEastArrowNorthMiddleWest:function(t,e){return h({top:c(t),left:t.right-.25*e.width-n,name:"arrow_nmw"},s&&{config:s})},southEastArrowNorth:function(t,e){return h({top:c(t),left:t.right-e.width/2,name:"arrow_n"},s&&{config:s})},southEastArrowNorthMiddleEast:function(t,e){return h({top:c(t),left:t.right-.75*e.width+n,name:"arrow_nme"},s&&{config:s})},southEastArrowNorthEast:function(t,e){return h({top:c(t),left:t.right-e.width+n,name:"arrow_ne"},s&&{config:s})},westArrowEast:function(t,e){return h({top:t.top+t.height/2-e.height/2,left:t.left-e.width-r,name:"arrow_e"},s&&{config:s})},eastArrowWest:function(t,e){return h({top:t.top+t.height/2-e.height/2,left:t.right+r,name:"arrow_w"},s&&{config:s})},viewportStickyNorth:function(t,e,n){return t.getIntersection(n)?{top:n.top+a,left:t.left+t.width/2-e.width/2,name:"arrowless",config:h({withArrow:!1},s)}:null}};function l(t,e){return t.top-e.height-r}function c(t){return t.bottom+r}}Cu.arrowSideOffset=25,Cu.arrowHeightOffset=10,Cu.stickyVerticalOffset=20,Cu._getOptimalPosition=vu,Cu.defaultPositions=Du();var Eu=o(3332);Ao()(Eu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Eu.Z.locals;var Su="ck-tooltip",Tu=function(){function t(e){if(P(this,t),t._editors.add(e),t._instance)return t._instance;t._instance=this,this.tooltipTextView=new mu(e.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new Cu(e.locale),this.balloonPanelView.class=Su,this.balloonPanelView.content.add(this.tooltipTextView),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._pinTooltipDebounced=xa(this._pinTooltip,600),this.listenTo(ti.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(ti.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(ti.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(ti.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(ti.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}return M(t,[{key:"destroy",value:function(e){t._editors.delete(e),this.stopListening(e.ui),t._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),t._instance=null)}},{key:"_onEnterOrFocus",value:function(t,e){var n,i=Iu(e.target);i&&i!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(i,{text:(n=i).dataset.ckeTooltipText,position:n.dataset.ckeTooltipPosition||"s",cssClass:n.dataset.ckeTooltipClass||""}))}},{key:"_onLeaveOrBlur",value:function(t,e){var n=e.target,i=e.relatedTarget;if("mouseleave"===t.name){if(!qn(n))return;if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;var r=Iu(n),o=Iu(i);r&&r!==o&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;this._unpinTooltip()}}},{key:"_onScroll",value:function(t,e){var n=e.target;this._currentElementWithTooltip&&(n.contains(this.balloonPanelView.element)&&n.contains(this._currentElementWithTooltip)||this._unpinTooltip())}},{key:"_pinTooltip",value:function(e,n){var i=n.text,r=n.position,o=n.cssClass,a=ja(t._editors.values()).ui.view.body;a.has(this.balloonPanelView)||a.add(this.balloonPanelView),this.tooltipTextView.text=i,this.balloonPanelView.pin({target:e,positions:t.getPositioningFunctions(r)}),this.balloonPanelView.class=[Su,o].filter((function(t){return t})).join(" ");var s,l=b(t._editors);try{for(l.s();!(s=l.n()).done;){var c=s.value;this.listenTo(c.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"})}}catch(t){l.e(t)}finally{l.f()}this._currentElementWithTooltip=e,this._currentTooltipPosition=r}},{key:"_unpinTooltip",value:function(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();var e,n=b(t._editors);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.stopListening(i.ui,"update")}}catch(t){n.e(t)}finally{n.f()}this._currentElementWithTooltip=null,this._currentTooltipPosition=null}},{key:"_updateTooltipPosition",value:function(){La(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:t.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}],[{key:"getPositioningFunctions",value:function(e){var n=t.defaultBalloonPositions;return{s:[n.southArrowNorth,n.southArrowNorthEast,n.southArrowNorthWest],n:[n.northArrowSouth],e:[n.eastArrowWest],w:[n.westArrowEast],sw:[n.southArrowNorthEast],se:[n.southArrowNorthWest]}[e]}}])}();function Iu(t){return qn(t)?t.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}lt(Tu,Ho),Tu.defaultBalloonPositions=Du({heightOffset:5,sideOffset:13}),Tu._instance=null,Tu._editors=new Set;var Mu=function(){return M((function t(e){var n=this;P(this,t),this.editor=e,this.componentFactory=new $c(e),this.focusTracker=new Ra,this.tooltipManager=new Tu(e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.isReady=!1,this.once("ready",(function(){n.isReady=!0})),this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this.listenTo(e.editing.view.document,"layoutChanged",(function(){return n.update()})),this._initFocusTracking()}),[{key:"element",get:function(){return null}},{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor);var t,e=b(this._editableElementsMap.values());try{for(e.s();!(t=e.n()).done;){t.value.ckeditorInstance=null}}catch(t){e.e(t)}finally{e.f()}this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}},{key:"setEditableElement",value:function(t,e){var n=this;this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);var i=function(){n.editor.editing.view.getDomRoot(t)||n.editor.keystrokes.listenTo(e)};this.isReady?i():this.once("ready",i)}},{key:"getEditableElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(t)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"addToolbar",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",(function(){e.focusTracker.add(t.element),e.editor.keystrokes.listenTo(t.element)})),this._focusableToolbarDefinitions.push({toolbarView:t,options:n})}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}},{key:"_readViewportOffsetFromConfig",value:function(){var t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;var n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}},{key:"_initFocusTracking",value:function(){var t,e,n=this,i=this.editor,r=i.editing.view;i.keystrokes.set("Alt+F10",(function(i,o){var a=n.focusTracker.focusedElement;Array.from(n._editableElementsMap.values()).includes(a)&&!Array.from(r.domRoots.values()).includes(a)&&(t=a);var s=n._getCurrentFocusedToolbarDefinition();s&&e||(e=n._getFocusableCandidateToolbarDefinitions(s));for(var l=0;l<e.length;l++){var c=e.shift();if(e.push(c),c!==s&&n._focusFocusableCandidateToolbar(c)){s&&s.options.afterBlur&&s.options.afterBlur();break}}o()})),i.keystrokes.set("Esc",(function(e,r){var o=n._getCurrentFocusedToolbarDefinition();o&&(t?(t.focus(),t=null):i.editing.view.focus(),o.options.afterBlur&&o.options.afterBlur(),r())}))}},{key:"_getFocusableCandidateToolbarDefinitions",value:function(){var t,e=[],n=b(this._focusableToolbarDefinitions);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.toolbarView,o=i.options;(La(r.element)||o.beforeFocus)&&e.push(i)}}catch(t){n.e(t)}finally{n.f()}return e.sort((function(t,e){return Ou(t)-Ou(e)})),e}},{key:"_getCurrentFocusedToolbarDefinition",value:function(){var t,e=b(this._focusableToolbarDefinitions);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n.toolbarView.element&&n.toolbarView.element.contains(this.focusTracker.focusedElement))return n}}catch(t){e.e(t)}finally{e.f()}return null}},{key:"_focusFocusableCandidateToolbar",value:function(t){var e=t.toolbarView,n=t.options.beforeFocus;return n&&n(),!!La(e.element)&&(e.focus(),!0)}}])}();function Ou(t){var e=t.toolbarView,n=t.options,i=10;return La(e.element)&&i--,n.isContextual&&i--,i}lt(Mu,et);var Pu={setData:function(t){this.data.set(t)},getData:function(t){return this.data.get(t)}};var Nu={updateSourceElement:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.data.get();if(!this.sourceElement)throw new S("editor-missing-sourceelement",this);var e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;!function(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}(this.sourceElement,e||n?t:"")}},Bu=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new Zn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(t){if("string"!=typeof t)throw new S("pendingactions-add-invalid-message",this);var e=Object.create(et);return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}},{key:"remove",value:function(t){this._actions.remove(t),this.hasAny=!!this._actions.length}},{key:"first",get:function(){return this._actions.get(0)}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}}],[{key:"pluginName",get:function(){return"PendingActions"}}])}(oi),Lu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',ju='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',Ru='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',zu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Fu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',Hu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',Vu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',Uu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',Wu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',qu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',$u='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',Yu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',Gu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',Ku='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',Qu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',Zu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',Ju='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',Xu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',td='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>';function ed(t){var e=t.emitter,n=t.activator,i=t.callback,r=t.contextElements;e.listenTo(document,"mousedown",(function(t,e){if(n()){var o,a="function"==typeof e.composedPath?e.composedPath():[],s=b(r);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l.contains(e.target)||a.includes(l))return}}catch(t){s.e(t)}finally{s.f()}i()}}))}function nd(t){t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=function(){t._isCssTransitionsDisabled=!0},t.enableCssTransitions=function(){t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function id(t){var e=t.view;e.listenTo(e.element,"submit",(function(t,n){n.preventDefault(),e.fire("submit")}),{useCapture:!0})}var rd=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return P(this,e),(n=_(this,e,[i])).locale=t,n}return C(e,t),M(e,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Kc({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var t=document.querySelector(".ck-body-wrapper");t||(t=Pa(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){p(e,"destroy",this,3)([]),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}])}(Gc),od=o(6574);Ao()(od.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),od.Z.locals;var ad=function(t){function e(){var t;P(this,e);var n=(t=_(this,e)).bindTemplate;return t.set("content",""),t.set("viewBox","0 0 20 20"),t.set("fillColor",""),t.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:n.to("viewBox")}}),t}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){t._updateXMLContent(),t._colorFillPaths()})),this.on("change:fillColor",(function(){t._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");for(e&&(this.viewBox=e);this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var t=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(e){e.style.fill=t.fillColor}))}}])}(mu),sd=o(4906);Ao()(sd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),sd.Z.locals;var ld=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).bindTemplate,r=y();n.set("class"),n.set("labelStyle"),n.set("icon"),n.set("isEnabled",!0),n.set("isOn",!1),n.set("isVisible",!0),n.set("isToggleable",!1),n.set("keystroke"),n.set("label"),n.set("tabindex",-1),n.set("tooltip"),n.set("tooltipPosition","s"),n.set("type","button"),n.set("withText",!1),n.set("withKeystroke",!1),n.children=n.createCollection(),n.labelView=n._createLabelView(r),n.iconView=new ad,n.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),n.keystrokeView=n._createKeystrokeView(),n.bind("_tooltipString").to(n,"tooltip",n,"label",n,"keystroke",n._getTooltipString.bind(n));var o={tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(t){return!t})),i.if("isVisible","ck-hidden",(function(t){return!t})),i.to("isOn",(function(t){return t?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(t){return t||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_".concat(r),"aria-disabled":i.if("isEnabled",!0,(function(t){return!t})),"aria-pressed":i.to("isOn",(function(t){return!!n.isToggleable&&String(!!t)})),"data-cke-tooltip-text":i.to("_tooltipString"),"data-cke-tooltip-position":i.to("tooltipPosition")},children:n.children,on:{click:i.to((function(t){n.isEnabled?n.fire("execute"):t.preventDefault()}))}};return Or.isSafari&&(o.on.mousedown=i.to((function(t){n.focus(),t.preventDefault()}))),n.setTemplate(o),n}return C(e,t),M(e,[{key:"render",value:function(){p(e,"render",this,3)([]),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createLabelView",value:function(t){var e=new mu,n=this.bindTemplate;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_".concat(t)},children:[{text:this.bindTemplate.to("label")}]}),e}},{key:"_createKeystrokeView",value:function(){var t=new mu;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(t){return Fr(t)}))}]}),t}},{key:"_getTooltipString",value:function(t,e,n){return t?"string"==typeof t?t:(n&&(n=Fr(n)),t instanceof Function?t(e,n):"".concat(e).concat(n?" (".concat(n,")"):"")):""}}])}(mu),cd=o(5332);Ao()(cd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),cd.Z.locals;var ud=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).isToggleable=!0,n.toggleSwitchView=n._createToggleView(),n.extendTemplate({attributes:{class:"ck-switchbutton"}}),n}return C(e,t),M(e,[{key:"render",value:function(){p(e,"render",this,3)([]),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var t=new mu;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}])}(ld),dd=o(6781);Ao()(dd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),dd.Z.locals;var hd='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',fd=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).arrowView=n._createArrowView(),n.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":n.bindTemplate.to("isOn",(function(t){return String(t)}))}}),n.delegate("execute").to(A(n),"open"),n}return C(e,t),M(e,[{key:"render",value:function(){p(e,"render",this,3)([]),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var t=new ad;return t.content=hd,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}])}(ld),pd=o(7686);Ao()(pd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),pd.Z.locals;var gd=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).bindTemplate;return n.set("class"),n.set("icon"),n.set("isEnabled",!0),n.set("isOn",!1),n.set("isToggleable",!1),n.set("isVisible",!0),n.set("keystroke"),n.set("label"),n.set("tabindex",-1),n.set("tooltip"),n.set("tooltipPosition","s"),n.set("type","button"),n.set("withText",!1),n.children=n.createCollection(),n.actionView=n._createActionView(),n.arrowView=n._createArrowView(),n.keystrokes=new za,n.focusTracker=new Ra,n.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.to("class"),i.if("isVisible","ck-hidden",(function(t){return!t})),n.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:n.children}),n}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(e,n){t.focusTracker.focusedElement===t.actionView.element&&(t.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(e,n){t.focusTracker.focusedElement===t.arrowView.element&&(t.actionView.focus(),n())}))}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var t=new ld;return t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}},{key:"_createArrowView",value:function(){var t=new ld,e=t.bindTemplate;return t.icon=hd,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",(function(t){return String(t)}))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}])}(mu),md=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).bindTemplate;return n.set("isVisible",!1),n.set("position","se"),n.children=n.createCollection(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(t){return"ck-dropdown__panel_".concat(t)})),i.if("isVisible","ck-dropdown__panel-visible")]},children:n.children,on:{selectstart:i.to((function(t){return t.preventDefault()}))}}),n}return C(e,t),M(e,[{key:"focus",value:function(){this.children.length&&("function"==typeof this.children.first.focus?this.children.first.focus():T("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this}))}},{key:"focusLast",value:function(){if(this.children.length){var t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}])}(mu),vd=o(5485);Ao()(vd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vd.Z.locals;var bd=function(t){function e(t,n,i){var r;P(this,e);var o=(r=_(this,e,[t])).bindTemplate;return r.buttonView=n,r.panelView=i,r.set("isOpen",!1),r.set("isEnabled",!0),r.set("class"),r.set("id"),r.set("panelPosition","auto"),r.keystrokes=new za,r.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",o.to("class"),o.if("isEnabled","ck-disabled",(function(t){return!t}))],id:o.to("id"),"aria-describedby":o.to("ariaDescribedById")},children:[n,i]}),n.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":o.to("isOpen")}}),r}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),this.listenTo(this.buttonView,"open",(function(){t.isOpen=!t.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){t.isOpen?("auto"===t.panelPosition?t.panelView.position=e._getOptimalPosition({element:t.panelView.element,target:t.buttonView.element,fitInViewport:!0,positions:t._panelPositions}).name:t.panelView.position=t.panelPosition,t.panelView.focus()):t.focus()})),this.keystrokes.listenTo(this.element);var n=function(e,n){t.isOpen&&(t.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(e,n){t.buttonView.isEnabled&&!t.isOpen&&(t.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(e,n){t.isOpen&&n()})),this.keystrokes.set("arrowleft",n),this.keystrokes.set("esc",n)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var t=e.defaultPanelPositions,n=t.south,i=t.north,r=t.southEast,o=t.southWest,a=t.northEast,s=t.northWest,l=t.southMiddleEast,c=t.southMiddleWest,u=t.northMiddleEast,d=t.northMiddleWest;return"rtl"!==this.locale.uiLanguageDirection?[r,o,l,c,n,a,s,u,d,i]:[o,r,c,l,n,s,a,d,u,i]}}])}(mu);bd.defaultPanelPositions={south:function(t,e){return{top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}},southEast:function(t){return{top:t.bottom,left:t.left,name:"se"}},southWest:function(t,e){return{top:t.bottom,left:t.left-e.width+t.width,name:"sw"}},southMiddleEast:function(t,e){return{top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}},southMiddleWest:function(t,e){return{top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}},north:function(t,e){return{top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}},northEast:function(t,e){return{top:t.top-e.height,left:t.left,name:"ne"}},northWest:function(t,e){return{top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}},northMiddleEast:function(t,e){return{top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}},northMiddleWest:function(t,e){return{top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"}}},bd._getOptimalPosition=vu;var kd=function(){return M((function t(e){var n=this;if(P(this,t),Object.assign(this,e),e.actions&&e.keystrokeHandler){var i=function(t){var i=e.actions[t];"string"==typeof i&&(i=[i]);var r,o=b(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;e.keystrokeHandler.set(a,(function(e,i){n[t](),i()}))}}catch(t){o.e(t)}finally{o.f()}};for(var r in e.actions)i(r)}}),[{key:"first",get:function(){return this.focusables.find(yd)||null}},{key:"last",get:function(){return this.focusables.filter(yd).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var t=this,e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,i){var r=n.element===t.focusTracker.focusedElement;return r&&(e=i),r})),e)}},{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(t){t&&t.focus()}},{key:"_getFocusableItem",value:function(t){var e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];var i=(e+n+t)%n;do{var r=this.focusables.get(i);if(yd(r))return r;i=(i+n+t)%n}while(i!==e);return null}}])}();function yd(t){return!(!t.focus||!La(t.element))}var wd=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),n}return C(e,t),M(e)}(mu),_d=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}}),n}return C(e,t),M(e)}(mu);function Ad(t){return Array.isArray(t)?{items:t,removeItems:[]}:t?Object.assign({items:[],removeItems:[]},t):{items:[],removeItems:[]}}var Cd=o(5542);Ao()(Cd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Cd.Z.locals;var xd=function(t){function e(t,n){var i;P(this,e);var r=(i=_(this,e,[t])).bindTemplate,o=i.t;i.options=n||{},i.set("ariaLabel",o("Editor toolbar")),i.set("maxWidth","auto"),i.items=i.createCollection(),i.focusTracker=new Ra,i.keystrokes=new za,i.set("class"),i.set("isCompact",!1),i.itemsView=new Dd(t),i.children=i.createCollection(),i.children.add(i.itemsView),i.focusables=i.createCollection();var a="rtl"===t.uiLanguageDirection;i._focusCycler=new kd({focusables:i.focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:[a?"arrowright":"arrowleft","arrowup"],focusNext:[a?"arrowleft":"arrowright","arrowdown"]}});var s,l=["ck","ck-toolbar",r.to("class"),r.if("isCompact","ck-toolbar_compact")];return i.options.shouldGroupWhenFull&&i.options.isFloating&&l.push("ck-toolbar_floating"),i.setTemplate({tag:"div",attributes:{class:l,role:"toolbar","aria-label":r.to("ariaLabel"),style:{maxWidth:r.to("maxWidth")}},children:i.children,on:{mousedown:(s=i,s.bindTemplate.to((function(t){t.target===s.element&&t.preventDefault()})))}}),i._behavior=i.options.shouldGroupWhenFull?new Sd(i):new Ed(i),i}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]);var n,i=b(this.items);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.focusTracker.add(r.element)}}catch(t){i.e(t)}finally{i.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),p(e,"destroy",this,3)([])}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(t,e){var n=this,i=Ad(t),r=i.items.filter((function(t,r,o){return"|"===t||-1===i.removeItems.indexOf(t)&&("-"===t?!n.options.shouldGroupWhenFull||(T("toolbarview-line-break-ignored-when-grouping-items",o),!1):!!e.has(t)||(T("toolbarview-item-unavailable",{name:t}),!1))})),o=this._cleanSeparators(r).map((function(t){return"|"===t?new wd:"-"===t?new _d:e.create(t)}));this.items.addMany(o)}},{key:"_cleanSeparators",value:function(t){var e=function(t){return"-"!==t&&"|"!==t},n=t.length,i=t.findIndex(e),r=n-t.slice().reverse().findIndex(e);return t.slice(i,r).filter((function(t,n,i){return!!e(t)||!(n>0&&i[n-1]===t)}))}}])}(mu),Dd=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).children=n.createCollection(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:n.children}),n}return C(e,t),M(e)}(mu),Ed=function(){return M((function t(e){P(this,t);var n=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using((function(t){return t})),e.focusables.bindTo(e.items).using((function(t){return t})),e.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}),[{key:"render",value:function(){}},{key:"destroy",value:function(){}}])}(),Sd=function(){return M((function t(e){var n=this;P(this,t),this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using((function(t){return t})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",(function(t,e){var i,r=e.index,o=b(e.removed);try{for(o.s();!(i=o.n()).done;){var a=i.value;r>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(t){o.e(t)}finally{o.f()}for(var s=r;s<r+e.added.length;s++){var l=e.added[s-r];s>n.ungroupedItems.length?n.groupedItems.add(l,s-n.ungroupedItems.length):n.ungroupedItems.add(l,s)}n._updateGrouping()})),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}),[{key:"render",value:function(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(La(this.viewElement)){for(var t,e=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new qa(t.lastChild),i=new qa(t);if(!this.cachedPadding){var r=ti.window.getComputedStyle(t),o="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(r[o])}return"ltr"===e?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}},{key:"_enableGroupingOnResize",value:function(){var t,e=this;this.resizeObserver=new Ba(this.viewElement,(function(n){t&&t===n.contentRect.width&&!e.shouldUpdateGroupingOnNextResize||(e.shouldUpdateGroupingOnNextResize=!1,e._updateGrouping(),t=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(t){var e=this;t.on("change:maxWidth",(function(){e._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new wd),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var t=this.viewLocale,e=t.t,n=Bd(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Ld(n,[]),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:Lu}),n.toolbarView.items.bindTo(this.groupedItems).using((function(t){return t})),n}},{key:"_updateFocusCycleableItems",value:function(){var t=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(e){t.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}])}(),Td=o(1046);Ao()(Td.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Td.Z.locals;var Id=function(t){function e(){var t;return P(this,e),(t=_(this,e)).items=t.createCollection(),t.focusTracker=new Ra,t.keystrokes=new za,t._focusCycler=new kd({focusables:t.items,focusTracker:t.focusTracker,keystrokeHandler:t.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),t.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:t.items}),t}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]);var n,i=b(this.items);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.focusTracker.add(r.element)}}catch(t){i.e(t)}finally{i.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}])}(mu),Md=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).bindTemplate;return n.set("isVisible",!0),n.children=n.createCollection(),n.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",i.if("isVisible","ck-hidden",(function(t){return!t}))]},children:n.children}),n}return C(e,t),M(e,[{key:"focus",value:function(){this.children.first.focus()}}])}(mu),Od=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),n}return C(e,t),M(e)}(mu),Pd=o(7339);Ao()(Pd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pd.Z.locals;var Nd=o(3949);function Bd(t){var e=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:fd)(t),n=new md(t),i=new bd(t,e,n);return e.bind("isEnabled").to(i),e instanceof fd?e.bind("isOn").to(i,"isOpen"):e.arrowView.bind("isOn").to(i,"isOpen"),function(t){(function(t){t.on("render",(function(){ed({emitter:t,activator:function(){return t.isOpen},callback:function(){t.isOpen=!1},contextElements:[t.element]})}))})(t),function(t){t.on("execute",(function(e){e.source instanceof ud||(t.isOpen=!1)}))}(t),function(t){t.keystrokes.set("arrowdown",(function(e,n){t.isOpen&&(t.panelView.focus(),n())})),t.keystrokes.set("arrowup",(function(e,n){t.isOpen&&(t.panelView.focusLast(),n())}))}(t)}(i),i}function Ld(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.locale,r=i.t,o=t.toolbarView=new xd(i);o.set("ariaLabel",r("Dropdown toolbar")),t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.map((function(t){return o.items.add(t)})),n.enableActiveItemFocusOnDropdownOpen&&Rd(t,(function(){return o.items.find((function(t){return t.isOn}))})),t.panelView.children.add(o),o.items.delegate("execute").to(t)}function jd(t,e){var n=t.locale,i=t.listView=new Id(n);i.items.bindTo(e).using((function(t){var e=t.type,i=t.model;if("separator"===e)return new Od(n);if("button"===e||"switchbutton"===e){var r,o,a=new Md(n);return(r=o="button"===e?new ld(n):new ud(n)).bind.apply(r,k(Object.keys(i))).to(i),o.delegate("execute").to(a),a.children.add(o),a}})),t.panelView.children.add(i),i.items.delegate("execute").to(t),Rd(t,(function(){return i.items.find((function(t){return t instanceof Md&&t.children.first.isOn}))}))}function Rd(t,e){t.on("change:isOpen",(function(){if(t.isOpen){var n=e();n&&("function"==typeof n.focus?n.focus():T("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))}}),{priority:"low"})}Ao()(Nd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Nd.Z.locals;var zd=o(9688);Ao()(zd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),zd.Z.locals;var Fd=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).body=new rd(t),n}return C(e,t),M(e,[{key:"render",value:function(){p(e,"render",this,3)([]),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),p(e,"destroy",this,3)([])}}])}(mu),Hd=o(3662);Ao()(Hd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Hd.Z.locals;var Vd=function(t){function e(t){var n;P(this,e),(n=_(this,e,[t])).set("text"),n.set("for"),n.id="ck-editor__label_".concat(y());var i=n.bindTemplate;return n.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:n.id,for:i.to("for")},children:[{text:i.to("text")}]}),n}return C(e,t),M(e)}(mu),Ud=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).top=n.createCollection(),n.main=n.createCollection(),n._voiceLabelView=n._createVoiceLabel(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":n._voiceLabelView.id},children:[n._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:n.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:n.main}]}),n}return C(e,t),M(e,[{key:"_createVoiceLabel",value:function(){var t=this.t,e=new Vd;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}])}(Fd),Wd=function(t){function e(t,n,i){var r;return P(this,e),(r=_(this,e,[t])).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),r.name=null,r.set("isFocused",!1),r._editableElement=i,r._hasExternalElement=!!r._editableElement,r._editingView=n,r}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return t._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),p(e,"destroy",this,3)([])}},{key:"_updateIsFocusedClasses",value:function(){var t=this._editingView;function e(e){t.change((function(n){var i=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",i)}))}t.isRenderingInProgress?function n(i){t.once("change:isRenderingInProgress",(function(t,r,o){o?n(i):e(i)}))}(this):e(this)}}])}(mu),qd=function(t){function e(t,n,i){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};P(this,e),r=_(this,e,[t,n,i]);var a=t.t;return r.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),r._generateLabel=o.label||function(){return a("Editor editing area: %0",r.name)},r}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]);var n=this._editingView;n.change((function(e){var i=n.document.getRoot(t.name);e.setAttribute("aria-label",t._generateLabel(t),i)}))}}])}(Wd),$d=o(8847);Ao()($d.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$d.Z.locals;var Yd=o(4879);Ao()(Yd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Yd.Z.locals;var Gd=function(t){function e(t){var n;P(this,e),(n=_(this,e,[t])).set("value"),n.set("id"),n.set("placeholder"),n.set("isReadOnly",!1),n.set("hasError",!1),n.set("ariaDescribedById"),n.focusTracker=new Ra,n.bind("isFocused").to(n.focusTracker),n.set("isEmpty",!0),n.set("inputMode","text");var i=n.bindTemplate;return n.setTemplate({tag:"input",attributes:{class:["ck","ck-input",i.if("isFocused","ck-input_focused"),i.if("isEmpty","ck-input-text_empty"),i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),inputmode:i.to("inputMode"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to((function(){for(var t,e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];(t=n).fire.apply(t,["input"].concat(i)),n._updateIsEmpty()})),change:i.to(n._updateIsEmpty.bind(n))}}),n}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(function(e,n,i){t._setDomElementValue(i),t._updateIsEmpty()}))}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy()}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}},{key:"_updateIsEmpty",value:function(){this.isEmpty=!this.element.value}},{key:"_setDomElementValue",value:function(t){this.element.value=t||0===t?t:""}}])}(mu),Kd=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).extendTemplate({attributes:{type:"text",class:["ck-input-text"]}}),n}return C(e,t),M(e)}(Gd),Qd=o(2577);Ao()(Qd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Qd.Z.locals;var Zd=function(t){function e(t,n){var i;P(this,e),i=_(this,e,[t]);var r="ck-labeled-field-view-".concat(y()),o="ck-labeled-field-view-status-".concat(y());i.fieldView=n(i,r,o),i.set("label"),i.set("isEnabled",!0),i.set("isEmpty",!0),i.set("isFocused",!1),i.set("errorText",null),i.set("infoText",null),i.set("class"),i.set("placeholder"),i.labelView=i._createLabelView(r),i.statusView=i._createStatusView(o),i.bind("_statusText").to(i,"errorText",i,"infoText",(function(t,e){return t||e}));var a=i.bindTemplate;return i.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",a.to("class"),a.if("isEnabled","ck-disabled",(function(t){return!t})),a.if("isEmpty","ck-labeled-field-view_empty"),a.if("isFocused","ck-labeled-field-view_focused"),a.if("placeholder","ck-labeled-field-view_placeholder"),a.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[i.fieldView,i.labelView]},i.statusView]}),i}return C(e,t),M(e,[{key:"_createLabelView",value:function(t){var e=new Vd(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}},{key:"_createStatusView",value:function(t){var e=new mu(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(t){return!t}))],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}},{key:"focus",value:function(){this.fieldView.focus()}}])}(mu);function Jd(t,e,n){var i=new Kd(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isReadOnly").to(t,"isEnabled",(function(t){return!t})),i.bind("hasError").to(t,"errorText",(function(t){return!!t})),i.on("input",(function(){t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i}var Xd=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){this.on("show:warning",(function(t,e){window.alert(e.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}},{key:"showInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}},{key:"showWarning",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}},{key:"_showNotification",value:function(t){var e="show:".concat(t.type)+(t.namespace?":".concat(t.namespace):"");this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}])}(oi),th=M((function t(e,n){P(this,t),n&&ua(this,n),e&&this.set(e)}));lt(th,et);var eh=o(4650);Ao()(eh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),eh.Z.locals;var nh=o(7676);Ao()(nh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),nh.Z.locals;var ih=yu("px"),rh=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).positionLimiter=function(){var t=n.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},n.set("visibleView",null),n.view=new Cu(t.locale),t.ui.view.body.add(n.view),t.ui.focusTracker.add(n.view.element),n._viewToStack=new Map,n._idToStack=new Map,n.set("_numberOfStacks",0),n.set("_singleViewMode",!1),n._rotatorView=n._createRotatorView(),n._fakePanelsView=n._createFakePanelsView(),n}return C(e,t),M(e,[{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}},{key:"hasView",value:function(t){return Array.from(this._viewToStack.keys()).includes(t)}},{key:"add",value:function(t){if(this.hasView(t.view))throw new S("contextualballoon-add-view-exist",[this,t]);var e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));var n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}},{key:"remove",value:function(t){if(!this.hasView(t))throw new S("contextualballoon-remove-view-not-exist",[this,t]);var e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}},{key:"updatePosition",value:function(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(t){this.visibleStack=t;var e=this._idToStack.get(t);if(!e)throw new S("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}},{key:"_getStackId",value:function(t){return Array.from(this._idToStack.entries()).find((function(e){return e[1]===t}))[0]}},{key:"_showNextStack",value:function(){var t=Array.from(this._idToStack.values()),e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}},{key:"_showPrevStack",value:function(){var t=Array.from(this._idToStack.values()),e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}},{key:"_createRotatorView",value:function(){var t=this,e=new oh(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(t,e){return!e&&t>1})),e.on("change:isNavigationVisible",(function(){return t.updatePosition()}),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(e,i){if(i<2)return"";var r=Array.from(t._idToStack.values()).indexOf(t._visibleStack)+1;return n("%0 of %1",[r,i])})),e.buttonNextView.on("execute",(function(){e.focusTracker.isFocused&&t.editor.editing.view.focus(),t._showNextStack()})),e.buttonPrevView.on("execute",(function(){e.focusTracker.isFocused&&t.editor.editing.view.focus(),t._showPrevStack()})),e}},{key:"_createFakePanelsView",value:function(){var t=new ah(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(t,e){return!e&&t>=2?Math.min(t-1,2):0})),t.listenTo(this.view,"change:top",(function(){return t.updatePosition()})),t.listenTo(this.view,"change:left",(function(){return t.updatePosition()})),this.editor.ui.view.body.add(t),t}},{key:"_showView",value:function(t){var e=t.view,n=t.balloonClassName,i=void 0===n?"":n,r=t.withArrow,o=void 0===r||r,a=t.singleViewMode,s=void 0!==a&&a;this.view.class=i,this.view.withArrow=o,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}],[{key:"pluginName",get:function(){return"ContextualBalloon"}}])}(ct),oh=function(t){function e(t){var n;P(this,e),n=_(this,e,[t]);var i=t.t,r=n.bindTemplate;return n.set("isNavigationVisible",!0),n.focusTracker=new Ra,n.buttonPrevView=n._createButtonView(i("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),n.buttonNextView=n._createButtonView(i("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),n.content=n.createCollection(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",r.to("isNavigationVisible",(function(t){return t?"":"ck-hidden"}))]},children:[n.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:r.to("counter")}]},n.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:n.content}]}),n}return C(e,t),M(e,[{key:"render",value:function(){p(e,"render",this,3)([]),this.focusTracker.add(this.element)}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy()}},{key:"showView",value:function(t){this.hideView(),this.content.add(t)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(t,e){var n=new ld(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}])}(mu),ah=function(t){function e(t,n){var i;P(this,e);var r=(i=_(this,e,[t])).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=n,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",r.to("numberOfPanels",(function(t){return t?"":"ck-hidden"}))],style:{top:r.to("top",ih),left:r.to("left",ih),width:r.to("width",ih),height:r.to("height",ih)}},children:i.content}),i.on("change:numberOfPanels",(function(t,e,n,r){n>r?i._addPanels(n-r):i._removePanels(r-n),i.updatePosition()})),i}return C(e,t),M(e,[{key:"_addPanels",value:function(t){for(;t--;){var e=new mu;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}},{key:"_removePanels",value:function(t){for(;t--;){var e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var t=this._balloonPanelView,e=t.top,n=t.left,i=new qa(this._balloonPanelView.element),r=i.width,o=i.height;Object.assign(this,{top:e,left:n,width:r,height:o})}}}])}(mu),sh=o(5868);Ao()(sh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),sh.Z.locals;var lh=yu("px"),ch=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).bindTemplate;return n.set("isActive",!1),n.set("isSticky",!1),n.set("limiterElement",null),n.set("limiterBottomOffset",50),n.set("viewportTopOffset",0),n.set("_marginLeft",null),n.set("_isStickyToTheLimiter",!1),n.set("_hasViewportTopOffset",!1),n.content=n.createCollection(),n._contentPanelPlaceholder=new Kc({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(t){return t?"block":"none"})),height:i.to("isSticky",(function(t){return t?lh(n._panelRect.height):null}))}}}).render(),n._contentPanel=new Kc({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(t){return t?lh(n._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(t){return t?lh(n.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(t){return t?lh(n.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:n.content}).render(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[n._contentPanelPlaceholder,n._contentPanel]}),n}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),this._checkIfShouldBeSticky(),this.listenTo(ti.window,"scroll",(function(){t._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){t._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var t,e=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<t.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=t.bottom<e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:lh(-ti.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}])}(mu);yu("px");var uh=o(9695);Ao()(uh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uh.Z.locals,yu("px"),yu("px");var dh=o(4717);Ao()(dh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),dh.Z.locals;var hh=new WeakMap;function fh(t){var e=t.view,n=t.element,i=t.text,r=t.isDirectHost,o=void 0===r||r,a=t.keepOnFocus,s=void 0!==a&&a,l=e.document;hh.has(l)||(hh.set(l,new Map),l.registerPostFixer((function(t){return ph(l,t)}))),hh.get(l).set(n,{text:i,isDirectHost:o,keepOnFocus:s,hostElement:o?n:null}),e.change((function(t){return ph(l,t)}))}function ph(t,e){var n,i=hh.get(t),r=[],o=!1,a=b(i);try{for(a.s();!(n=a.n()).done;){var s=v(n.value,2),l=s[0],c=s[1];c.isDirectHost&&(r.push(l),gh(e,l,c)&&(o=!0))}}catch(t){a.e(t)}finally{a.f()}var u,d=b(i);try{for(d.s();!(u=d.n()).done;){var h=v(u.value,2),f=h[0],p=h[1];if(!p.isDirectHost){var g=mh(f);g&&(r.includes(g)||(p.hostElement=g,gh(e,f,p)&&(o=!0)))}}}catch(t){d.e(t)}finally{d.f()}return o}function gh(t,e,n){var i=n.text,r=n.isDirectHost,o=n.hostElement,a=!1;return o.getAttribute("data-placeholder")!==i&&(t.setAttribute("data-placeholder",i,o),a=!0),(r||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;var n=Array.from(t.getChildren()).some((function(t){return!t.is("uiElement")}));if(n)return!1;if(e)return!0;var i=t.document;if(!i.isFocused)return!0;var r=i.selection.anchor;return!!r&&r.parent!==t}(o,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,o)&&(a=!0):function(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}(t,o)&&(a=!0),a}function mh(t){if(t.childCount){var e=t.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}var vh=new Map;function bh(t,e,n){var i=vh.get(t);i||(i=new Map,vh.set(t,i)),i.set(e,n)}function kh(t){return[t]}function yh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(t,e){var n=vh.get(t);return n&&n.has(e)?n.get(e):kh}(t.constructor,e.constructor);try{return i(t=t.clone(),e,n)}catch(t){throw t}}function wh(t,e,n){t=t.slice(),e=e.slice();var i=new _h(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(t),i.setOriginalOperations(e);var r=i.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:r};var o,a=new WeakMap,s=b(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;a.set(l,0)}}catch(t){s.e(t)}finally{s.f()}for(var c={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length},u=0;u<t.length;){var d,h,f=t[u],p=a.get(f);if(p!=e.length){var g=e[p],m=yh(f,g,i.getContext(f,g,!0)),v=yh(g,f,i.getContext(g,f,!1));i.updateRelation(f,g),i.setOriginalOperations(m,f),i.setOriginalOperations(v,g);var y,w=b(m);try{for(w.s();!(y=w.n()).done;){var _=y.value;a.set(_,p+v.length)}}catch(t){w.e(t)}finally{w.f()}(d=t).splice.apply(d,[u,1].concat(k(m))),(h=e).splice.apply(h,[p,1].concat(k(v)))}else u++}if(n.padWithNoOps){var A=t.length-c.originalOperationsACount,C=e.length-c.originalOperationsBCount;Ch(t,C-A),Ch(e,A-C)}return Ah(t,c.nextBaseVersionB),Ah(e,c.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:r}}var _h=function(){return M((function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];P(this,t),this.originalOperations=new Map,this._history=e.history,this._useRelations=n,this._forceWeakRemove=!!i,this._relations=new Map}),[{key:"setOriginalOperations",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=n?this.originalOperations.get(n):null,r=b(t);try{for(r.s();!(e=r.n()).done;){var o=e.value;this.originalOperations.set(o,i||o)}}catch(t){r.e(t)}finally{r.f()}}},{key:"updateRelation",value:function(t,e){if(t instanceof ac)e instanceof hc?t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter"):e instanceof ac&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof fc){if(e instanceof hc)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof ac)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{var n=vs._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){var i=n.end.offset-t.splitPosition.offset,r=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:i,offset:r})}}}else if(t instanceof hc)e instanceof hc?(t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement")):e instanceof fc&&t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource");else if(t instanceof lc){var o=t.newRange;if(!o)return;if(e instanceof ac){var a=vs._createFromPositionAndShift(e.sourcePosition,e.howMany),s=a.containsPosition(o.start)||a.start.isEqual(o.start),l=a.containsPosition(o.end)||a.end.isEqual(o.end);!s&&!l||a.containsRange(o)||this._setRelation(t,e,{side:s?"left":"right",path:s?o.start.path.slice():o.end.path.slice()})}else if(e instanceof hc){var c=o.start.isEqual(e.targetPosition),u=o.start.isEqual(e.deletionPosition),d=o.end.isEqual(e.deletionPosition),h=o.end.isEqual(e.sourcePosition);(c||u||d||h)&&this._setRelation(t,e,{wasInLeftElement:c,wasStartBeforeMergedElement:u,wasEndBeforeMergedElement:d,wasInRightElement:h})}}}},{key:"getContext",value:function(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(t){var e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}},{key:"_getRelation",value:function(t,e){var n=this.originalOperations.get(e),i=this._history.getUndoneOperation(n);if(!i)return null;var r=this.originalOperations.get(t),o=this._relations.get(r);return o&&o.get(i)||null}},{key:"_setRelation",value:function(t,e,n){var i=this.originalOperations.get(t),r=this.originalOperations.get(e),o=this._relations.get(i);o||(o=new Map,this._relations.set(i,o)),o.set(r,n)}}])}();function Ah(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){n.value.baseVersion=e++}}catch(t){i.e(t)}finally{i.f()}}function Ch(t,e){for(var n=0;n<e;n++)t.push(new cc(0))}function xh(t,e,n){var i=t.nodes.getNode(0).getAttribute(e);if(i==n)return null;var r=new vs(t.position,t.position.getShiftedBy(t.howMany));return new oc(r,e,i,n,0)}function Dh(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function Eh(t,e){for(var n=[],i=0;i<t.length;i++){var r=t[i],o=new ac(r.start,r.end.offset-r.start.offset,e,0);n.push(o);for(var a=i+1;a<t.length;a++)t[a]=t[a]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];e=e._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}bh(oc,oc,(function(t,e,n){if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){var i=t.range.getDifference(e.range).map((function(e){return new oc(e,t.key,t.oldValue,t.newValue,0)})),r=t.range.getIntersection(e.range);return r&&n.aIsStrong&&i.push(new oc(r,e.key,e.newValue,t.newValue,0)),0==i.length?[new cc(0)]:i}return[t]})),bh(oc,sc,(function(t,e){if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){var n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((function(e){return new oc(e,t.key,t.oldValue,t.newValue,t.baseVersion)}));if(e.shouldReceiveAttributes){var i=xh(e,t.key,t.oldValue);i&&n.unshift(i)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),bh(oc,hc,(function(t,e){var n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(vs._createFromPositionAndShift(e.graveyardPosition,1));var i=t.range._getTransformedByMergeOperation(e);return i.isCollapsed||n.push(i),n.map((function(e){return new oc(e,t.key,t.oldValue,t.newValue,t.baseVersion)}))})),bh(oc,ac,(function(t,e){var n=function(t,e){var n=vs._createFromPositionAndShift(e.sourcePosition,e.howMany),i=null,r=[];n.containsRange(t,!0)?i=t:t.start.hasSameParentAs(n.start)?(r=t.getDifference(n),i=t.getIntersection(n)):r=[t];var o,a=[],s=b(r);try{for(s.s();!(o=s.n()).done;){var l=o.value;l=l._getTransformedByDeletion(e.sourcePosition,e.howMany);var c=e.getMovedRangeStart(),u=l.start.hasSameParentAs(c),d=l._getTransformedByInsertion(c,e.howMany,u);a.push.apply(a,k(d))}}catch(t){s.e(t)}finally{s.f()}return i&&a.push(i._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]),a}(t.range,e);return n.map((function(e){return new oc(e,t.key,t.oldValue,t.newValue,t.baseVersion)}))})),bh(oc,fc,(function(t,e){if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){var n=t.clone();return n.range=new vs(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),bh(sc,oc,(function(t,e){var n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){var i=xh(t,e.key,e.newValue);i&&n.push(i)}return n})),bh(sc,sc,(function(t,e,n){return t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]})),bh(sc,ac,(function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t]})),bh(sc,fc,(function(t,e){return t.position=t.position._getTransformedBySplitOperation(e),[t]})),bh(sc,hc,(function(t,e){return t.position=t.position._getTransformedByMergeOperation(e),[t]})),bh(lc,sc,(function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]})),bh(lc,lc,(function(t,e,n){if(t.name==e.name){if(!n.aIsStrong)return[new cc(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),bh(lc,hc,(function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]})),bh(lc,ac,(function(t,e,n){if(t.oldRange&&(t.oldRange=vs._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){var i=vs._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.end=i.end,t.newRange.start.path=n.abRelation.path,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=i.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=vs._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]})),bh(lc,fc,(function(t,e,n){if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){var i=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=fs._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=fs._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=fs._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=fs._createAt(e.insertionPosition):t.newRange.end=i.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),bh(hc,sc,(function(t,e){return t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]})),bh(hc,hc,(function(t,e,n){if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){var i=e.graveyardPosition.path.slice();return i.push(0),t.sourcePosition=new fs(e.graveyardPosition.root,i),t.howMany=0,[t]}return[new cc(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var r="$graveyard"==t.targetPosition.root.rootName,o="$graveyard"==e.targetPosition.root.rootName;if(o&&!r||(!r||o)&&n.aIsStrong){var a=e.targetPosition._getTransformedByMergeOperation(e),s=t.targetPosition._getTransformedByMergeOperation(e);return[new ac(a,t.howMany,s,0)]}return[new cc(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),bh(hc,ac,(function(t,e,n){var i=vs._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition)?[new cc(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),bh(hc,fc,(function(t,e,n){if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){var i=0!=e.howMany,r=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(i||r||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]})),bh(ac,sc,(function(t,e){var n=vs._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]})),bh(ac,ac,(function(t,e,n){var i,r=vs._createFromPositionAndShift(t.sourcePosition,t.howMany),o=vs._createFromPositionAndShift(e.sourcePosition,e.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),i=t.targetPosition.isEqual(e.targetPosition)&&s?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Dh(t,e)&&Dh(e,t))return[e.getReversed()];if(r.containsPosition(e.targetPosition)&&r.containsRange(o,!0))return r.start=r.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),r.end=r.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Eh([r],i);if(o.containsPosition(t.targetPosition)&&o.containsRange(r,!0))return r.start=r.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),r.end=r.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Eh([r],i);var l=si(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return r.start=r.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),r.end=r.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Eh([r],i);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var c,u=[],d=b(r.getDifference(o));try{for(d.s();!(c=d.n()).done;){var h=c.value;h.start=h.start._getTransformedByDeletion(e.sourcePosition,e.howMany),h.end=h.end._getTransformedByDeletion(e.sourcePosition,e.howMany);var f="same"==si(h.start.getParentPath(),e.getMovedRangeStart().getParentPath()),p=h._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,f);u.push.apply(u,k(p))}}catch(t){d.e(t)}finally{d.f()}var g=r.getIntersection(o);return null!==g&&a&&(g.start=g.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),g.end=g.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===u.length?u.push(g):1==u.length?o.start.isBefore(r.start)||o.start.isEqual(r.start)?u.unshift(g):u.push(g):u.splice(1,0,g)),0===u.length?[new cc(t.baseVersion)]:Eh(u,i)})),bh(ac,fc,(function(t,e,n){var i=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=t.targetPosition._getTransformedBySplitOperation(e));var r=vs._createFromPositionAndShift(t.sourcePosition,t.howMany);if(r.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=i,[t];if(r.start.hasSameParentAs(e.splitPosition)&&r.containsPosition(e.splitPosition)){var o=new vs(e.splitPosition,r.end);return o=o._getTransformedBySplitOperation(e),Eh([new vs(r.start,e.splitPosition),o],i)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(i=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(i=t.targetPosition);var a=[r._getTransformedBySplitOperation(e)];if(e.graveyardPosition){var s=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);t.howMany>1&&s&&!n.aWasUndone&&a.push(vs._createFromPositionAndShift(e.insertionPosition,1))}return Eh(a,i)})),bh(ac,hc,(function(t,e,n){var i=vs._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new cc(0)]}else if(!n.aWasUndone){var r=[],o=e.graveyardPosition.clone(),a=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(r.push(new ac(t.sourcePosition,t.howMany-1,t.targetPosition,0)),o=o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),a=a._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));var s=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),l=new ac(o,1,s,0),c=l.getMovedRangeStart().path.slice();c.push(0);var u=new fs(l.targetPosition.root,c);a=a._getTransformedByMove(o,s,1);var d=new ac(a,e.howMany,u,0);return r.push(l),r.push(d),r}var h=vs._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=h.start,t.howMany=h.end.offset-h.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),bh(uc,sc,(function(t,e){return t.position=t.position._getTransformedByInsertOperation(e),[t]})),bh(uc,hc,(function(t,e){return t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t])})),bh(uc,ac,(function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t]})),bh(uc,uc,(function(t,e,n){if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new cc(0)];t.oldName=e.newName}return[t]})),bh(uc,fc,(function(t,e){if("same"==si(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){var n=new uc(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,n]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),bh(dc,dc,(function(t,e,n){if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new cc(0)];t.oldValue=e.newValue}return[t]})),bh(fc,sc,(function(t,e){return t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset<e.position.offset&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByInsertOperation(e),t.insertionPosition=t.insertionPosition._getTransformedByInsertOperation(e),[t]})),bh(fc,hc,(function(t,e,n){if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){var i=e.graveyardPosition.path.slice();i.push(0);var r=new fs(e.graveyardPosition.root,i),o=fc.getInsertionPosition(new fs(e.graveyardPosition.root,i)),a=new fc(r,0,o,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=fc.getInsertionPosition(t.splitPosition),t.graveyardPosition=a.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[a,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=fc.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),bh(fc,ac,(function(t,e,n){var i=vs._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){var r=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&r){var o=t.splitPosition._getTransformedByMoveOperation(e),a=t.graveyardPosition._getTransformedByMoveOperation(e),s=a.path.slice();s.push(0);var l=new fs(a.root,s);return[new ac(o,t.howMany,l,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}var c=t.splitPosition.isEqual(e.targetPosition);if(c&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=fc.getInsertionPosition(t.splitPosition),[t];if(c&&n.abRelation&&n.abRelation.howMany){var u=n.abRelation,d=u.howMany,h=u.offset;return t.howMany+=d,t.splitPosition=t.splitPosition.getShiftedBy(h),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.splitPosition)){var f=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=f,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=fc.getInsertionPosition(t.splitPosition),[t]}return e.sourcePosition.isEqual(e.targetPosition)||(t.splitPosition.hasSameParentAs(e.sourcePosition)&&t.splitPosition.offset<=e.sourcePosition.offset&&(t.howMany-=e.howMany),t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany)),t.splitPosition.stickiness="toNone",t.splitPosition=t.splitPosition._getTransformedByMoveOperation(e),t.splitPosition.stickiness="toNext",t.graveyardPosition?t.insertionPosition=t.insertionPosition._getTransformedByMoveOperation(e):t.insertionPosition=fc.getInsertionPosition(t.splitPosition),[t]})),bh(fc,fc,(function(t,e,n){if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new cc(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new cc(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){var i="$graveyard"==t.splitPosition.root.rootName,r="$graveyard"==e.splitPosition.root.rootName;if(r&&!i||(!i||r)&&n.aIsStrong){var o=[];return e.howMany&&o.push(new ac(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&o.push(new ac(t.splitPosition,t.howMany,t.moveTargetPosition,0)),o}return[new cc(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){var a=e.insertionPosition.path.slice();a.push(0);var s=new fs(e.insertionPosition.root,a);return[t,new ac(t.insertionPosition,1,s,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset<e.splitPosition.offset&&(t.howMany-=e.howMany),t.splitPosition=t.splitPosition._getTransformedBySplitOperation(e),t.insertionPosition=fc.getInsertionPosition(t.splitPosition),[t]}));var Sh=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).domEventType="click",n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}])}(ha),Th=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).domEventType=["mousedown","mouseup","mouseover","mouseout"],n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}])}(ha),Ih=function(){return M((function t(e){P(this,t),this.document=e}),[{key:"createDocumentFragment",value:function(t){return new $r(this.document,t)}},{key:"createElement",value:function(t,e,n){return new er(this.document,t,e,n)}},{key:"createText",value:function(t){return new ui(this.document,t)}},{key:"clone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t._clone(e)}},{key:"appendChild",value:function(t,e){return e._appendChild(t)}},{key:"insertChild",value:function(t,e,n){return n._insertChild(t,e)}},{key:"removeChildren",value:function(t,e,n){return n._removeChildren(t,e)}},{key:"remove",value:function(t){var e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}},{key:"replace",value:function(t,e){var n=t.parent;if(n){var i=n.getChildIndex(t);return this.removeChildren(i,1,n),this.insertChild(i,e,n),!0}return!1}},{key:"unwrapElement",value:function(t){var e=t.parent;if(e){var n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}},{key:"rename",value:function(t,e){var n=new er(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}},{key:"setAttribute",value:function(t,e,n){n._setAttribute(t,e)}},{key:"removeAttribute",value:function(t,e){e._removeAttribute(t)}},{key:"addClass",value:function(t,e){e._addClass(t)}},{key:"removeClass",value:function(t,e){e._removeClass(t)}},{key:"setStyle",value:function(t,e,n){Pt(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}},{key:"removeStyle",value:function(t,e){e._removeStyle(t)}},{key:"setCustomProperty",value:function(t,e,n){n._setCustomProperty(t,e)}},{key:"removeCustomProperty",value:function(t,e){return e._removeCustomProperty(t)}},{key:"createPositionAt",value:function(t,e){return cr._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return cr._createAfter(t)}},{key:"createPositionBefore",value:function(t){return cr._createBefore(t)}},{key:"createRange",value:function(t,e){return new ur(t,e)}},{key:"createRangeOn",value:function(t){return ur._createOn(t)}},{key:"createRangeIn",value:function(t){return ur._createIn(t)}},{key:"createSelection",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return D(fr,e)}}])}();function Mh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""===t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};var e=t.replace(/, /g,",").split(" ").map((function(t){return t.replace(/,/g,", ")})),n=e[0],i=e[2]||n,r=e[1]||n;return{top:n,bottom:i,right:r,left:e[3]||r}}function Oh(t){var e=t.top,n=t.right,i=t.bottom,r=t.left,o=[];return r!==n?o.push(e,n,i,r):i!==e?o.push(e,n,i):n!==e?o.push(e,n):o.push(e),o.join(" ")}function Ph(t){var e;t.setNormalizer("margin",(function(t){return{path:"margin",value:Mh(t)}})),t.setNormalizer("margin-top",(function(t){return{path:"margin.top",value:t}})),t.setNormalizer("margin-right",(function(t){return{path:"margin.right",value:t}})),t.setNormalizer("margin-bottom",(function(t){return{path:"margin.bottom",value:t}})),t.setNormalizer("margin-left",(function(t){return{path:"margin.left",value:t}})),t.setReducer("margin",(e="margin",function(t){var n=t.top,i=t.right,r=t.bottom,o=t.left,a=[];return[n,i,o,r].every((function(t){return!!t}))?a.push([e,Oh(t)]):(n&&a.push([e+"-top",n]),i&&a.push([e+"-right",i]),r&&a.push([e+"-bottom",r]),o&&a.push([e+"-left",o])),a})),t.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);var Nh=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t])).view=n,i._toolbarConfig=Ad(t.config.get("toolbar")),i._elementReplacer=new Ma,i}return C(e,t),M(e,[{key:"element",get:function(){return this.view.element}},{key:"init",value:function(t){var e=this.editor,n=this.view,i=e.editing.view,r=n.editable,o=i.document.getRoot();r.name=o.rootName,n.render();var a=r.element;this.setEditableElement(r.name,a),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(a),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var t=this.view,n=this.editor.editing.view;this._elementReplacer.restore(),n.detachDomRoot(t.editable.name),t.destroy(),p(e,"destroy",this,3)([])}},{key:"_initToolbar",value:function(){var t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(function(t){return t.top})),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}},{key:"_initPlaceholder",value:function(){var t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.sourceElement,r=t.config.get("placeholder")||i&&"textarea"===i.tagName.toLowerCase()&&i.getAttribute("placeholder");r&&fh({view:e,element:n,text:r,isDirectHost:!1,keepOnFocus:!0})}}])}(Mu),Bh=o(3143);Ao()(Bh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bh.Z.locals;var Lh=function(t){function e(t,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return P(this,e),(i=_(this,e,[t])).stickyPanel=new ch(t),i.toolbar=new xd(t,{shouldGroupWhenFull:r.shouldToolbarGroupWhenFull}),i.editable=new qd(t,n),i}return C(e,t),M(e,[{key:"render",value:function(){p(e,"render",this,3)([]),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}])}(Ud),jh=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(P(this,e),!qn(t)&&void 0!==i.initialData)throw new S("editor-create-initial-data",null);void 0===(n=_(this,e,[i])).config.get("initialData")&&n.config.set("initialData",function(t){return qn(t)?(e=t)instanceof HTMLTextAreaElement?e.value:e.innerHTML:t;var e}(t)),qn(t)&&(n.sourceElement=t),n.model.document.createRoot();var r=!n.config.get("toolbar.shouldNotGroupWhenFull"),o=new Lh(n.locale,n.editing.view,{shouldToolbarGroupWhenFull:r});return n.ui=new Nh(n,o),function(t){if(!zt(t.updateSourceElement))throw new S("attachtoform-missing-elementapi-interface",t);var e=t.sourceElement;if(e&&"textarea"===e.tagName.toLowerCase()&&e.form){var n,i=e.form,r=function(){return t.updateSourceElement()};zt(i.submit)&&(n=i.submit,i.submit=function(){r(),n.apply(i)}),i.addEventListener("submit",r),t.on("destroy",(function(){i.removeEventListener("submit",r),n&&(i.submit=n)}))}}(n),n}return C(e,t),M(e,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),p(e,"destroy",this,3)([])}}],[{key:"create",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i){var r=new e(t,n);i(r.initPlugins().then((function(){return r.ui.init(qn(t)?t:null)})).then((function(){return r.data.init(r.config.get("initialData"))})).then((function(){return r.fire("ready")})).then((function(){return r})))}))}}])}(qc);lt(jh,Pu),lt(jh,Nu);var Rh=function(){return M((function t(e){P(this,t),this.files=function(t){var e=Array.from(t.files||[]),n=Array.from(t.items||[]);return e.length?e:n.filter((function(t){return"file"===t.kind})).map((function(t){return t.getAsFile()}))}(e),this._native=e}),[{key:"types",get:function(){return this._native.types}},{key:"getData",value:function(t){return this._native.getData(t)}},{key:"setData",value:function(t,e){this._native.setData(t,e)}},{key:"effectAllowed",get:function(){return this._native.effectAllowed},set:function(t){this._native.effectAllowed=t}},{key:"dropEffect",get:function(){return this._native.dropEffect},set:function(t){this._native.dropEffect=t}},{key:"isCanceled",get:function(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}])}(),zh=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).document;function r(t){return function(e,n){n.preventDefault();var r=n.dropRange?[n.dropRange]:null,o=new d(i,t);i.fire(o,{dataTransfer:n.dataTransfer,method:e.name,targetRanges:r,target:n.target}),o.stop.called&&n.stopPropagation()}}return n.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],n.listenTo(i,"paste",r("clipboardInput"),{priority:"low"}),n.listenTo(i,"drop",r("clipboardInput"),{priority:"low"}),n.listenTo(i,"dragover",r("dragging"),{priority:"low"}),n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){var e={dataTransfer:new Rh(t.clipboardData?t.clipboardData:t.dataTransfer)};"drop"!=t.type&&"dragover"!=t.type||(e.dropRange=function(t,e){var n,i=e.target.ownerDocument,r=e.clientX,o=e.clientY;return i.caretRangeFromPoint&&i.caretRangeFromPoint(r,o)?n=i.caretRangeFromPoint(r,o):e.rangeParent&&((n=i.createRange()).setStart(e.rangeParent,e.rangeOffset),n.collapse(!0)),n?t.domConverter.domRangeToView(n):null}(this.view,t)),this.fire(t.type,t,e)}}])}(ha),Fh=["figcaption","li"];function Hh(t){var e="";if(t.is("$text")||t.is("$textProxy"))e=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))e=t.getAttribute("alt");else if(t.is("element","br"))e="\n";else{var n,i=null,r=b(t.getChildren());try{for(r.s();!(n=r.n()).done;){var o=n.value,a=Hh(o);i&&(i.is("containerElement")||o.is("containerElement"))&&(Fh.includes(i.name)||Fh.includes(o.name)?e+="\n":e+="\n\n"),e+=a,i=o}}catch(t){r.e(t)}finally{r.f()}}return e}var Vh=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){this.editor.editing.view.addObserver(zh),this._setupPasteDrop(),this._setupCopyCut()}},{key:"_setupPasteDrop",value:function(){var t=this,e=this.editor,n=e.model,i=e.editing.view,r=i.document;this.listenTo(r,"clipboardInput",(function(t){e.isReadOnly&&t.stop()}),{priority:"highest"}),this.listenTo(r,"clipboardInput",(function(e,n){var r,o=n.dataTransfer,a=n.content||"";a||(o.getData("text/html")?a=function(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(t,e){return 1==e.length?" ":e})).replace(/<!--[\s\S]*?-->/g,"")}(o.getData("text/html")):o.getData("text/plain")&&(((r=(r=o.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||r.includes("<br>"))&&(r="<p>".concat(r,"</p>")),a=r),a=t.editor.data.htmlProcessor.toView(a));var s=new d(t,"inputTransformation");t.fire(s,{content:a,dataTransfer:o,targetRanges:n.targetRanges,method:n.method}),s.stop.called&&e.stop(),i.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(e,i){if(!i.content.isEmpty){var r=t.editor.data.toModel(i.content,"$clipboardHolder");0!=r.childCount&&(e.stop(),n.change((function(){t.fire("contentInsertion",{content:r,method:i.method,dataTransfer:i.dataTransfer,targetRanges:i.targetRanges})})))}}),{priority:"low"}),this.listenTo(this,"contentInsertion",(function(t,e){e.resultRange=n.insertContent(e.content)}),{priority:"low"})}},{key:"_setupCopyCut",value:function(){var t=this,e=this.editor,n=e.model.document,i=e.editing.view.document;function r(t,r){var o=r.dataTransfer;r.preventDefault();var a=e.data.toView(e.model.getSelectedContent(n.selection));i.fire("clipboardOutput",{dataTransfer:o,content:a,method:t.name})}this.listenTo(i,"copy",r,{priority:"low"}),this.listenTo(i,"cut",(function(t,n){e.isReadOnly?n.preventDefault():r(t,n)}),{priority:"low"}),this.listenTo(i,"clipboardOutput",(function(i,r){r.content.isEmpty||(r.dataTransfer.setData("text/html",t.editor.data.htmlProcessor.toData(r.content)),r.dataTransfer.setData("text/plain",Hh(r.content))),"cut"==r.method&&e.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ClipboardPipeline"}}])}(ct);function Uh(t,e){var n,i,r;return m().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=b(e),o.prev=1,n.s();case 3:if((i=n.n()).done){o.next=11;break}if(r=i.value,o.t0=r&&t.getAttributeProperties(r[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,r;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),s,null,[[1,13,16,19]])}var Wh=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document;e.change((function(i){!function(t,e,n,i){var r=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(i.isLimit(a)||i.isLimit(s))r||a!=s||t.deleteContent(n);else if(r){var l=Uh(e.model.schema,n.getAttributes());qh(e,o.start),e.setSelectionAttribute(l)}else{var c=!(o.start.isAtStart&&o.end.isAtEnd),u=a==s;t.deleteContent(n,{leaveUnmerged:c}),c&&(u?qh(e,n.focus):e.setSelection(s,0))}}(t.editor.model,i,n.selection,e.schema),t.fire("afterExecute",{writer:i})}))}}])}(dt);function qh(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}var $h=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).document;return i.on("keydown",(function(t,e){if(n.isEnabled&&e.keyCode==Lr.enter){var r=new gr(i,"enter",i.selection.getFirstRange());i.fire(r,new da(i,e.domEvent,{isSoft:e.shiftKey})),r.stop.called&&t.stop()}})),n}return C(e,t),M(e,[{key:"observe",value:function(){}}])}(qo),Yh=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.editing.view,n=e.document;e.addObserver($h),t.commands.add("enter",new Wh(t)),this.listenTo(n,"enter",(function(n,i){i.preventDefault(),i.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}])}(ct),Gh=function(){return M((function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;P(this,t),this.model=e,this.size=0,this.limit=i,this.isLocked=!1,this._changeCallback=function(t,e){e.isLocal&&e.isUndoable&&e!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}),[{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}},{key:"input",value:function(t){this.size+=t,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(t){this.isLocked&&!t||(this._batch=null,this.size=0)}}])}(),Kh=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t])).direction=n,i._buffer=new Gh(t.model,t.config.get("typing.undoStep")),i}return C(e,t),M(e,[{key:"buffer",get:function(){return this._buffer}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document;n.enqueueChange(this._buffer.batch,(function(r){t._buffer.lock();var o=r.createSelection(e.selection||i.selection),a=e.sequence||1,s=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:t.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),t._shouldEntireContentBeReplacedWithParagraph(a))t._replaceEntireContentWithParagraph(r);else if(t._shouldReplaceFirstBlockWithParagraph(o,a))t.editor.execute("paragraph",{selection:o});else if(!o.isCollapsed){var l=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(t){l+=hr(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:s,direction:t.direction}),t._buffer.input(l),r.setSelection(o),t._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(t){if(t>1)return!1;var e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(i))return!1;if(!e.schema.checkChild(i,"paragraph"))return!1;var r=i.getChild(0);return!r||"paragraph"!==r.name}},{key:"_replaceEntireContentWithParagraph",value:function(t){var e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n),r=t.createElement("paragraph");t.remove(t.createRangeIn(i)),t.insert(r,i),t.setSelection(r,0)}},{key:"_shouldReplaceFirstBlockWithParagraph",value:function(t,e){var n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;var i=t.getFirstPosition(),r=n.schema.getLimitElement(i),o=r.getChild(0);return i.parent==o&&!!t.containsEntireContent(o)&&!!n.schema.checkChild(r,"paragraph")&&"paragraph"!=o.name}}])}(dt);function Qh(t){if(t.newChildren.length-t.oldChildren.length==1){var e=function(t,e){var n=[],i=0,r=null;return t.forEach((function(t){"equal"==t?(o(),i++):"insert"==t?(r&&"insert"==r.type?r.values.push(e[i]):(o(),r={type:"insert",index:i,values:[e[i]]}),i++):r&&"delete"==r.type?r.howMany++:(o(),r={type:"delete",index:i,howMany:1})})),o(),n;function o(){r&&(n.push(r),r=null)}}(vo(t.oldChildren,t.newChildren,Zh),t.newChildren);if(!(e.length>1)){var n=e[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function Zh(t,e){return t&&t.is("$text")&&e&&e.is("$text")?t.data===e.data:t===e}function Jh(t,e){var n=e.selection,i=t.shiftKey&&t.keyCode===Lr.delete,r=!n.isCollapsed;return i&&r}var Xh=function(t){function e(t){var n;P(this,e),n=_(this,e,[t]);var i=t.document,r=0;function o(t,e,n){var r=new gr(i,"delete",i.selection.getFirstRange());i.fire(r,new da(i,e,n)),r.stop.called&&t.stop()}return i.on("keyup",(function(t,e){e.keyCode!=Lr.delete&&e.keyCode!=Lr.backspace||(r=0)})),i.on("keydown",(function(t,e){if(!Or.isWindows||!Jh(e,i)){var n={};if(e.keyCode==Lr.delete)n.direction="forward",n.unit="character";else{if(e.keyCode!=Lr.backspace)return;n.direction="backward",n.unit="codePoint"}var a=Or.isMac?e.altKey:e.ctrlKey;n.unit=a?"word":n.unit,n.sequence=++r,o(t,e.domEvent,n)}})),Or.isAndroid&&i.on("beforeinput",(function(e,n){if("deleteContentBackward"==n.domEvent.inputType){var i={unit:"codepoint",direction:"backward",sequence:1},r=n.domTarget.ownerDocument.defaultView.getSelection();r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset&&(i.selectionToRemove=t.domConverter.domSelectionToView(r)),o(e,n.domEvent,i)}})),n}return C(e,t),M(e,[{key:"observe",value:function(){}}])}(qo),tf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,i=n.document,r=e.model.document;n.addObserver(Xh),this._undoOnBackspace=!1;var o=new Kh(e,"forward");if(e.commands.add("deleteForward",o),e.commands.add("forwardDelete",o),e.commands.add("delete",new Kh(e,"backward")),this.listenTo(i,"delete",(function(t,i){var r={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){var o,a=e.model.createSelection(),s=[],l=b(i.selectionToRemove.getRanges());try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(e.editing.mapper.toModelRange(c))}}catch(t){l.e(t)}finally{l.f()}a.setTo(s),r.selection=a}e.execute("forward"==i.direction?"deleteForward":"delete",r),i.preventDefault(),n.scrollToTheSelection()}),{priority:"low"}),Or.isAndroid){var a=null;this.listenTo(i,"delete",(function(t,e){var n=e.domTarget.ownerDocument.defaultView.getSelection();a={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(i,"keyup",(function(t,e){if(a){var n=e.domTarget.ownerDocument.defaultView.getSelection();n.collapse(a.anchorNode,a.anchorOffset),n.extend(a.focusNode,a.focusOffset),a=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(i,"delete",(function(n,i){t._undoOnBackspace&&"backward"==i.direction&&1==i.sequence&&"codePoint"==i.unit&&(t._undoOnBackspace=!1,e.execute("undo"),i.preventDefault(),n.stop())}),{context:"$capture"}),this.listenTo(r,"change",(function(){t._undoOnBackspace=!1})))}},{key:"requestUndoOnBackspace",value:function(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}],[{key:"pluginName",get:function(){return"Delete"}}])}(ct),ef=function(){return M((function t(){P(this,t),this._stack=[]}),[{key:"add",value:function(t,e){var n=this._stack,i=n[0];this._insertDescriptor(t);var r=n[0];i===r||nf(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}},{key:"remove",value:function(t,e){var n=this._stack,i=n[0];this._removeDescriptor(t);var r=n[0];i===r||nf(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}},{key:"_insertDescriptor",value:function(t){var e=this._stack,n=e.findIndex((function(e){return e.id===t.id}));if(!nf(t,e[n])){n>-1&&e.splice(n,1);for(var i=0;e[i]&&rf(e[i],t);)i++;e.splice(i,0,t)}}},{key:"_removeDescriptor",value:function(t){var e=this._stack,n=e.findIndex((function(e){return e.id===t}));n>-1&&e.splice(n,1)}}])}();function nf(t,e){return t&&e&&t.priority==e.priority&&of(t.classes)==of(e.classes)}function rf(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&of(t.classes)>of(e.classes)}function of(t){return Array.isArray(t)?t.sort().join(","):t}lt(ef,F);var af="ck-widget_selected";function sf(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function lf(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.is("containerElement"))throw new S("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass("ck-widget",t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=gf,n.label&&function(t,e,n){n.setCustomProperty("widgetLabel",e,t)}(t,n.label,e),n.hasSelectionHandle&&function(t,e){var n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(t){var e=this.toDomElement(t),n=new ad;return n.set("content",'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),df(t,e),t}function cf(t,e,n){if(e.classes&&n.addClass(Xn(e.classes),t),e.attributes)for(var i in e.attributes)n.setAttribute(i,e.attributes[i],t)}function uf(t,e,n){if(e.classes&&n.removeClass(Xn(e.classes),t),e.attributes)for(var i in e.attributes)n.removeAttribute(i,t)}function df(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cf,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:uf,r=new ef;r.on("change:top",(function(e,r){r.oldDescriptor&&i(t,r.oldDescriptor,r.writer),r.newDescriptor&&n(t,r.newDescriptor,r.writer)})),e.setCustomProperty("addHighlight",(function(t,e,n){return r.add(e,n)}),t),e.setCustomProperty("removeHighlight",(function(t,e,n){return r.remove(e,n)}),t)}function hf(t){var e=t.getCustomProperty("widgetLabel");return e?"function"==typeof e?e():e:""}function ff(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("role","textbox",t),n.label&&e.setAttribute("aria-label",n.label,t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",(function(n,i,r){e.setAttribute("contenteditable",r?"false":"true",t)})),t.on("change:isFocused",(function(n,i,r){r?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),df(t,e),t}function pf(t,e){var n=t.getSelectedElement();if(n){var i=bf(t);if(i)return e.createRange(e.createPositionAt(n,i))}return Rc(t,e)}function gf(){return null}var mf="widget-type-around";function vf(t,e,n){return t&&sf(t)&&!n.isInline(e)}function bf(t){return t.getAttribute(mf)}for(var kf=[Rr("arrowUp"),Rr("arrowRight"),Rr("arrowDown"),Rr("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],yf=112;yf<=135;yf++)kf.push(yf);function wf(t){return!(!t.ctrlKey&&!t.metaKey)||kf.includes(t.keyCode)}var _f=o(4921);Ao()(_f.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_f.Z.locals;var Af=["before","after"],Cf=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,xf="ck-widget__type-around_disabled",Df=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._currentFakeCaretModelElement=null,n}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.editing.view;this.on("change:isEnabled",(function(n,i,r){e.change((function(t){var n,i=b(e.document.roots);try{for(i.s();!(n=i.n()).done;){var o=n.value;r?t.removeClass(xf,o):t.addClass(xf,o)}}catch(t){i.e(t)}finally{i.f()}})),r||t.model.change((function(t){t.removeSelectionAttribute(mf)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(t,e){var n=this.editor,i=n.editing.view,r=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:r}),i.focus(),i.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(t,e,n,i){var r=this;this.listenTo(t,e,(function(){r.isEnabled&&n.apply(void 0,arguments)}),i)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var t=this.editor.model.document.selection,e=bf(t);if(!e)return!1;var n=t.getSelectedElement();return this._insertParagraph(n,e),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var t=this.editor,e=t.model.schema,n=t.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(function(t,n,r){var o=r.mapper.toViewElement(n.item);vf(o,n.item,e)&&function(t,e,n){var i=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(t){var n=this.toDomElement(t);return function(t,e){for(var n=0,i=Af;n<i.length;n++){var r=i[n],o=new Kc({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_".concat(r)],title:e[r]},children:[t.ownerDocument.importNode(Cf,!0)]});t.appendChild(o.render())}}(n,e),function(t){var e=new Kc({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),i)}(r.writer,i,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var t=this,e=this.editor,n=e.model,i=n.document.selection,r=n.schema,o=e.editing.view;function a(t){return"ck-widget_type-around_show-fake-caret_".concat(t)}this._listenToIfEnabled(o.document,"arrowKey",(function(e,n){t._handleArrowKeyPress(e,n)}),{context:[sf,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(function(t,n){n.directChange&&e.model.change((function(t){t.removeSelectionAttribute(mf)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var t=i.getSelectedElement();t&&vf(e.editing.mapper.toViewElement(t),t,r)||e.model.change((function(t){t.removeSelectionAttribute(mf)}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(function(e,n,i){var o=i.writer;if(t._currentFakeCaretModelElement){var s=i.mapper.toViewElement(t._currentFakeCaretModelElement);s&&(o.removeClass(Af.map(a),s),t._currentFakeCaretModelElement=null)}var l=n.selection.getSelectedElement();if(l){var c=i.mapper.toViewElement(l);if(vf(c,l,r)){var u=bf(n.selection);u&&(o.addClass(a(u),c),t._currentFakeCaretModelElement=l)}}})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(function(t,n,i){i||e.model.change((function(t){t.removeSelectionAttribute(mf)}))}))}},{key:"_handleArrowKeyPress",value:function(t,e){var n,i=this.editor,r=i.model,o=r.document.selection,a=r.schema,s=i.editing.view,l=function(t,e){var n=Hr(t,e);return"down"===n||"right"===n}(e.keyCode,i.locale.contentLanguageDirection),c=s.document.selection.getSelectedElement();vf(c,i.editing.mapper.toModelElement(c),a)?n=this._handleArrowKeyPressOnSelectedWidget(l):o.isCollapsed?n=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):e.shiftKey||(n=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),n&&(e.preventDefault(),t.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(t){var e=this.editor.model,n=bf(e.document.selection);return e.change((function(e){return n?n!==(t?"after":"before")&&(e.removeSelectionAttribute(mf),!0):(e.setSelectionAttribute(mf,t?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(t){var e=this.editor,n=e.model,i=n.schema,r=e.plugins.get("Widget"),o=r._getObjectElementNextToSelection(t);return!!vf(e.editing.mapper.toViewElement(o),o,i)&&(n.change((function(e){r._setSelectionOverElement(o),e.setSelectionAttribute(mf,t?"before":"after")})),!0)}},{key:"_handleArrowKeyPressWhenNonCollapsedSelection",value:function(t){var e=this.editor,n=e.model,i=n.schema,r=e.editing.mapper,o=n.document.selection,a=t?o.getLastPosition().nodeBefore:o.getFirstPosition().nodeAfter;return!!vf(r.toViewElement(a),a,i)&&(n.change((function(e){e.setSelection(a,"on"),e.setSelectionAttribute(mf,t?"after":"before")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var t=this,e=this.editor,n=e.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(i,r){var o=r.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(t,e){var n=t.closest(".ck-widget");return e.mapDomToView(n)}(o,n.domConverter),l=e.editing.mapper.toModelElement(s);t._insertParagraph(l,a),r.preventDefault(),i.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var t=this,e=this.editor,n=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(function(i,r){if("atTarget"==i.eventPhase){var o,a=n.getSelectedElement(),s=e.editing.mapper.toViewElement(a),l=e.model.schema;t._insertParagraphAccordingToFakeCaretPosition()?o=!0:vf(s,a,l)&&(t._insertParagraph(a,r.isSoft?"before":"after"),o=!0),o&&(r.preventDefault(),i.stop())}}),{context:sf})}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var t=this,e=this.editor.editing.view,n=[Lr.enter,Lr.delete,Lr.backspace];this._listenToIfEnabled(e.document,"keydown",(function(e,i){n.includes(i.keyCode)||wf(i)||t._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}},{key:"_enableDeleteIntegration",value:function(){var t=this.editor,e=t.editing.view,n=t.model,i=n.schema;this._listenToIfEnabled(e.document,"delete",(function(e,r){if("atTarget"==e.eventPhase){var o=bf(n.document.selection);if(o){var a=r.direction,s=n.document.selection.getSelectedElement(),l="forward"==a;if("before"===o===l)t.execute("delete",{selection:n.createSelection(s,"on")});else{var c=i.getNearestSelectionRange(n.createPositionAt(s,o),a);if(c)if(c.isCollapsed){var u=n.createSelection(c.start);if(n.modifySelection(u,{direction:a}),u.focus.isEqual(c.start)){var d=function(t,e){var n,i=e,r=b(e.getAncestors({parentFirst:!0}));try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.childCount>1||t.isLimit(o))break;i=o}}catch(t){r.e(t)}finally{r.f()}return i}(i,c.start.parent);n.deleteContent(n.createSelection(d,"on"),{doNotAutoparagraph:!0})}else n.change((function(e){e.setSelection(c),t.execute(l?"deleteForward":"delete")}))}else n.change((function(e){e.setSelection(c),t.execute(l?"deleteForward":"delete")}))}r.preventDefault(),e.stop()}}}),{context:sf})}},{key:"_enableInsertContentIntegration",value:function(){var t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",(function(t,i){var r=v(i,2),o=r[0],a=r[1];if(!a||a.is("documentSelection")){var s=bf(n);return s?(t.stop(),e.change((function(t){var i=n.getSelectedElement(),r=e.createPositionAt(i,s),a=t.createSelection(r),l=e.insertContent(o,a);return t.setSelection(a),l}))):void 0}}),{priority:"high"})}},{key:"_enableInsertObjectIntegration",value:function(){var t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",(function(t,n){var i=v(n,4),r=i[1],o=i[3],a=void 0===o?{}:o;if(!r||r.is("documentSelection")){var s=bf(e);s&&(a.findOptimalPosition=s,n[3]=a)}}),{priority:"high"})}},{key:"_enableDeleteContentIntegration",value:function(){var t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",(function(t,n){var i=v(n,1)[0];i&&!i.is("documentSelection")||bf(e)&&t.stop()}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"WidgetTypeAround"}},{key:"requires",get:function(){return[Yh,tf]}}])}(ct);function Ef(t,e,n){var i,r=t.schema,o="forward"==n?"elementStart":"elementEnd",a=b(t.createRangeIn(e.root).getWalker({startPosition:e,direction:n}));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.previousPosition,c=s.item,u=s.type;if(r.isLimit(c)&&!r.isInline(c))return l;if(u==o&&r.isBlock(c))return null}}catch(t){a.e(t)}finally{a.f()}return null}function Sf(t,e,n){var i="backward"==n?e.end:e.start;if(t.checkChild(i,"$text"))return i;var r,o=b(e.getWalker({direction:n}));try{for(o.s();!(r=o.n()).done;){var a=r.value.nextPosition;if(t.checkChild(a,"$text"))return a}}catch(t){o.e(t)}finally{o.f()}return null}var Tf=o(3488);Ao()(Tf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Tf.Z.locals;var If=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,i=n.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,i){var r=i.writer,o=n.selection;if(!o.isCollapsed){var a=o.getSelectedElement();if(a){var s=e.editing.mapper.toViewElement(a);sf(s)&&i.consumable.consume(o,"selection")&&r.setSelection(r.createRangeOn(s),{fake:!0,label:hf(s)})}}})),this.editor.editing.downcastDispatcher.on("selection",(function(e,n,i){t._clearPreviouslySelectedWidgets(i.writer);var r,o=i.writer,a=null,s=b(o.document.selection.getRanges());try{for(s.s();!(r=s.n()).done;){var l,c=b(r.value);try{for(c.s();!(l=c.n()).done;){var u=l.value.item;sf(u)&&!Mf(u,a)&&(o.addClass(af,u),t._previouslySelected.add(u),a=u)}}catch(t){c.e(t)}finally{c.f()}}}catch(t){s.e(t)}finally{s.f()}}),{priority:"low"}),n.addObserver(Th),this.listenTo(i,"mousedown",(function(){return t._onMousedown.apply(t,arguments)})),this.listenTo(i,"arrowKey",(function(){t._handleSelectionChangeOnArrowKeyPress.apply(t,arguments)}),{context:[sf,"$text"]}),this.listenTo(i,"arrowKey",(function(){t._preventDefaultOnArrowKeyPress.apply(t,arguments)}),{context:"$root"}),this.listenTo(i,"arrowKey",function(t){var e=t.model;return function(n,i){var r=i.keyCode==Lr.arrowup,o=i.keyCode==Lr.arrowdown,a=i.shiftKey,s=e.document.selection;if(r||o){var l=o;if(!a||!function(t,e){return!t.isCollapsed&&t.isBackward==e}(s,l)){var c=function(t,e,n){var i=t.model;if(n){var r=e.isCollapsed?e.focus:e.getLastPosition(),o=Ef(i,r,"forward");if(!o)return null;var a=i.createRange(r,o),s=Sf(i.schema,a,"backward");return s?i.createRange(r,s):null}var l=e.isCollapsed?e.focus:e.getFirstPosition(),c=Ef(i,l,"backward");if(!c)return null;var u=i.createRange(c,l),d=Sf(i.schema,u,"forward");return d?i.createRange(d,l):null}(t,s,l);if(c){if(c.isCollapsed){if(s.isCollapsed)return;if(a)return}(c.isCollapsed||function(t,e,n){var i=t.model,r=t.view.domConverter;if(n){var o=i.createSelection(e.start);i.modifySelection(o),o.focus.isAtEnd||e.start.isEqual(o.focus)||(e=i.createRange(o.focus,e.end))}var a,s,l=t.mapper.toViewRange(e),c=r.viewRangeToDom(l),u=b(qa.getDomRangeRects(c));try{for(u.s();!(s=u.n()).done;){var d=s.value;if(void 0!==a){if(Math.round(d.top)>=a)return!1;a=Math.max(a,Math.round(d.bottom))}else a=Math.round(d.bottom)}}catch(t){u.e(t)}finally{u.f()}return!0}(t,c,l))&&(e.change((function(t){var n=l?c.end:c.start;if(a){var i=e.createSelection(s.anchor);i.setFocus(n),t.setSelection(i)}else t.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}}}(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",(function(e,n){t._handleDelete("forward"==n.direction)&&(n.preventDefault(),e.stop())}),{context:"$root"})}},{key:"_onMousedown",value:function(t,e){var n=this.editor,i=n.editing.view,r=i.document,o=e.target;if(function(t){for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(sf(t))return!1;t=t.parent}return!1}(o)){if((Or.isSafari||Or.isGecko)&&e.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(t){return!t.is("attributeElement")})):o,l=a.toModelElement(s);e.preventDefault(),this.editor.model.change((function(t){t.setSelection(l,"in")}))}}else if(sf(o)||(o=o.findAncestor(sf))){Or.isAndroid&&e.preventDefault(),r.isFocused||i.focus();var c=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(c)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(t,e){var n=e.keyCode,i=this.editor.model,r=i.schema,o=i.document.selection,a=o.getSelectedElement(),s=Hr(n,this.editor.locale.contentLanguageDirection),l="down"==s||"right"==s,c="up"==s||"down"==s;if(a&&r.isObject(a)){var u=l?o.getLastPosition():o.getFirstPosition(),d=r.getNearestSelectionRange(u,l?"forward":"backward");d&&(i.change((function(t){t.setSelection(d)})),e.preventDefault(),t.stop())}else if(o.isCollapsed||e.shiftKey){if(o.isCollapsed){var h=this._getObjectElementNextToSelection(l);if(h&&r.isObject(h)){if(r.isInline(h)&&c)return;this._setSelectionOverElement(h),e.preventDefault(),t.stop()}}}else{var f=o.getFirstPosition(),p=o.getLastPosition(),g=f.nodeAfter,m=p.nodeBefore;(g&&r.isObject(g)||m&&r.isObject(m))&&(i.change((function(t){t.setSelection(l?p:f)})),e.preventDefault(),t.stop())}}},{key:"_preventDefaultOnArrowKeyPress",value:function(t,e){var n=this.editor.model,i=n.schema,r=n.document.selection.getSelectedElement();r&&i.isObject(r)&&(e.preventDefault(),t.stop())}},{key:"_handleDelete",value:function(t){var e=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var i=this._getObjectElementNextToSelection(t);return i?(this.editor.model.change((function(t){for(var r=n.anchor.parent;r.isEmpty;){var o=r;r=o.parent,t.remove(o)}e._setSelectionOverElement(i)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(t){this.editor.model.change((function(e){e.setSelection(e.createRangeOn(t))}))}},{key:"_getObjectElementNextToSelection",value:function(t){var e=this.editor.model,n=e.schema,i=e.document.selection,r=e.createSelection(i);if(e.modifySelection(r,{direction:t?"forward":"backward"}),r.isEqual(i))return null;var o=t?r.focus.nodeBefore:r.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(t){var e,n=b(this._previouslySelected);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.removeClass(af,i)}}catch(t){n.e(t)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Df,tf]}}])}(ct);function Mf(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}var Of=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return K(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),xa(t,e,{leading:i,maxWait:e,trailing:r})},Pf=o(903);Ao()(Pf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pf.Z.locals;var Nf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=Of((function(e){return t._updateDropMarker(e)}),40),this._removeDropMarkerDelayed=jf((function(){return t._removeDropMarker()}),40),this._clearDraggableAttributesDelayed=jf((function(){return t._clearDraggableAttributes()}),40),n.addObserver(zh),n.addObserver(Th),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(function(e,n,i){i?t.forceDisabled("readOnlyMode"):t.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",(function(e,n,i){i||t._finalizeDragging(!1)})),Or.isAndroid&&this.forceDisabled("noAndroidSupport")}},{key:"destroy",value:function(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),p(e,"destroy",this,3)([])}},{key:"_setupDragging",value:function(){var t=this,e=this.editor,n=e.model,i=n.document,r=e.editing.view,o=r.document;this.listenTo(o,"dragstart",(function(r,a){var s=i.selection;if(a.target&&a.target.is("editableElement"))a.preventDefault();else{var l=a.target?Rf(a.target):null;if(l){var c=e.editing.mapper.toModelElement(l);t._draggedRange=Ts.fromRange(n.createRangeOn(c)),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!o.selection.isCollapsed){var u=o.selection.getSelectedElement();u&&sf(u)||(t._draggedRange=Ts.fromRange(s.getFirstRange()))}if(t._draggedRange){t._draggingUid=y(),a.dataTransfer.effectAllowed=t.isEnabled?"copyMove":"copy",a.dataTransfer.setData("application/ckeditor5-dragging-uid",t._draggingUid);var d=n.createSelection(t._draggedRange.toRange()),h=e.data.toView(n.getSelectedContent(d));o.fire("clipboardOutput",{dataTransfer:a.dataTransfer,content:h,method:r.name}),t.isEnabled||(t._draggedRange.detach(),t._draggedRange=null,t._draggingUid="")}else a.preventDefault()}}),{priority:"low"}),this.listenTo(o,"dragend",(function(e,n){t._finalizeDragging(!n.dataTransfer.isCanceled&&"move"==n.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(o,"dragenter",(function(){t.isEnabled&&r.focus()})),this.listenTo(o,"dragleave",(function(){t._removeDropMarkerDelayed()})),this.listenTo(o,"dragging",(function(n,i){if(t.isEnabled){t._removeDropMarkerDelayed.cancel();var r=Bf(e,i.targetRanges,i.target);t._draggedRange||(i.dataTransfer.dropEffect="copy"),Or.isGecko||("copy"==i.dataTransfer.effectAllowed?i.dataTransfer.dropEffect="copy":["all","copyMove"].includes(i.dataTransfer.effectAllowed)&&(i.dataTransfer.dropEffect="move")),r&&t._updateDropMarkerThrottled(r)}else i.dataTransfer.dropEffect="none"}),{priority:"low"})}},{key:"_setupClipboardInputIntegration",value:function(){var t=this,e=this.editor,n=e.editing.view.document;this.listenTo(n,"clipboardInput",(function(n,i){if("drop"==i.method){var r=Bf(e,i.targetRanges,i.target);if(t._removeDropMarker(),!r)return t._finalizeDragging(!1),void n.stop();if(t._draggedRange&&t._draggingUid!=i.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(t._draggedRange.detach(),t._draggedRange=null,t._draggingUid=""),"move"==Lf(i.dataTransfer)&&t._draggedRange&&t._draggedRange.containsRange(r,!0))return t._finalizeDragging(!1),void n.stop();i.targetRanges=[e.editing.mapper.toViewRange(r)]}}),{priority:"high"})}},{key:"_setupContentInsertionIntegration",value:function(){var t=this,e=this.editor.plugins.get(Vh);e.on("contentInsertion",(function(e,n){if(t.isEnabled&&"drop"===n.method){var i=n.targetRanges.map((function(e){return t.editor.editing.mapper.toModelRange(e)}));t.editor.model.change((function(t){return t.setSelection(i)}))}}),{priority:"high"}),e.on("contentInsertion",(function(e,n){if(t.isEnabled&&"drop"===n.method){var i="move"==Lf(n.dataTransfer),r=!n.resultRange||!n.resultRange.isCollapsed;t._finalizeDragging(r&&i)}}),{priority:"lowest"})}},{key:"_setupDraggableAttributeHandling",value:function(){var t=this,e=this.editor,n=e.editing.view,i=n.document;this.listenTo(i,"mousedown",(function(r,o){if(!Or.isAndroid&&o){t._clearDraggableAttributesDelayed.cancel();var a=Rf(o.target);if(Or.isBlink&&!e.isReadOnly&&!a&&!i.selection.isCollapsed){var s=i.selection.getSelectedElement();s&&sf(s)||(a=i.selection.editableElement)}a&&(n.change((function(t){t.setAttribute("draggable","true",a)})),t._draggableElement=e.editing.mapper.toModelElement(a))}})),this.listenTo(i,"mouseup",(function(){Or.isAndroid||t._clearDraggableAttributesDelayed()}))}},{key:"_clearDraggableAttributes",value:function(){var t=this,e=this.editor.editing;e.view.change((function(n){t._draggableElement&&"$graveyard"!=t._draggableElement.root.rootName&&n.removeAttribute("draggable",e.mapper.toViewElement(t._draggableElement)),t._draggableElement=null}))}},{key:"_setupDropMarker",value:function(){var t=this.editor;t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:function(e,n){var i=n.writer;if(t.model.schema.checkChild(e.markerRange.start,"$text"))return i.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(t){var e=this.toDomElement(t);return e.append("⁠",t.createElement("span"),"⁠"),e}))}})}},{key:"_updateDropMarker",value:function(t){var e=this.editor,n=e.model.markers;e.model.change((function(e){n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||e.updateMarker("drop-target",{range:t}):e.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})}))}},{key:"_removeDropMarker",value:function(){var t=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),t.markers.has("drop-target")&&t.change((function(t){t.removeMarker("drop-target")}))}},{key:"_finalizeDragging",value:function(t){var e=this.editor,n=e.model;this._removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(t&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}],[{key:"pluginName",get:function(){return"DragDrop"}},{key:"requires",get:function(){return[Vh,If]}}])}(ct);function Bf(t,e,n){var i=t.model,r=t.editing.mapper,o=null,a=e?e[0].start:null;if(n.is("uiElement")&&(n=n.parent),o=function(t,e){var n=t.model,i=t.editing.mapper;if(sf(e))return n.createRangeOn(i.toModelElement(e));if(!e.is("editableElement")){var r=e.findAncestor((function(t){return sf(t)||t.is("editableElement")}));if(sf(r))return n.createRangeOn(i.toModelElement(r))}return null}(t,n),o)return o;var s=function(t,e){var n=t.editing.mapper,i=t.editing.view,r=n.toModelElement(e);if(r)return r;var o=i.createPositionBefore(e),a=n.findMappedViewAncestor(o);return n.toModelElement(a)}(t,n),l=a?r.toModelPosition(a):null;return l?(o=function(t,e,n){var i=t.model;if(!i.schema.checkChild(n,"$block"))return null;var r=i.createPositionAt(n,0),o=e.path.slice(0,r.path.length),a=i.createPositionFromPath(e.root,o).nodeAfter;return a&&i.schema.isObject(a)?i.createRangeOn(a):null}(t,l,s),o||((o=i.schema.getNearestSelectionRange(l,Or.isGecko?"forward":"backward"))||function(t,e){for(var n=t.model;e;){if(n.schema.isObject(e))return n.createRangeOn(e);e=e.parent}}(t,l.parent))):function(t,e){var n=t.model,i=n.schema,r=n.createPositionAt(e,0);return i.getNearestSelectionRange(r,"forward")}(t,s)}function Lf(t){return Or.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function jf(t,e){var n;function i(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];i.cancel(),n=setTimeout((function(){return t.apply(void 0,o)}),e)}return i.cancel=function(){clearTimeout(n)},i}function Rf(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(sf);if(sf(t))return t;var e=t.findAncestor((function(t){return sf(t)||t.is("editableElement")}));return sf(e)?e:null}var zf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=e.document.selection,o=!1;n.addObserver(zh),this.listenTo(i,"keydown",(function(t,e){o=e.shiftKey})),t.plugins.get(Vh).on("contentInsertion",(function(t,n){(o||function(t,e){if(t.childCount>1)return!1;var n=t.getChild(0);return!e.isObject(n)&&0==k(n.getAttributeKeys()).length}(n.content,e.schema))&&e.change((function(t){var i=Array.from(r.getAttributes()).filter((function(t){var n=v(t,1)[0];return e.schema.getAttributeProperties(n).isFormatting}));r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0}),i.push.apply(i,k(r.getAttributes()));var o,a=b(t.createRangeIn(n.content).getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;s.is("$textProxy")&&t.setAttributes(i,s)}}catch(t){a.e(t)}finally{a.f()}}))}))}}],[{key:"pluginName",get:function(){return"PastePlainText"}},{key:"requires",get:function(){return[Vh]}}])}(ct),Ff=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[Vh,Nf,zf]}}])}(ct),Hf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document;e.change((function(i){!function(t,e,n){var i=n.isCollapsed,r=n.getFirstRange(),o=r.start.parent,a=r.end.parent,s=o==a;if(i){var l=Uh(t.schema,n.getAttributes());Vf(t,e,r.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(l)}else{var c=!(r.start.isAtStart&&r.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:c}),s?Vf(t,e,n.focus):c&&e.setSelection(a,0)}}(e,i,n.selection),t.fire("afterExecute",{writer:i})}))}},{key:"refresh",value:function(){var t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;var n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;var i=e.getFirstRange(),r=i.start.parent,o=i.end.parent;return!Uf(r,t)&&!Uf(o,t)||r===o}(t.schema,e.selection)}}])}(dt);function Vf(t,e,n){var i=e.createElement("softBreak");t.insertContent(i,n),e.setSelection(i,"after")}function Uf(t,e){return!t.is("rootElement")&&(e.isLimit(t)||Uf(t.parent,e))}var Wf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.conversion,i=t.editing.view,r=i.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(t,e){return e.writer.createEmptyElement("br")}}),i.addObserver($h),t.commands.add("shiftEnter",new Hf(t)),this.listenTo(r,"enter",(function(e,n){n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),i.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}])}(ct),qf=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).affectsData=!1,n}return C(e,t),M(e,[{key:"execute",value:function(){var t=this.editor.model,e=t.document.selection,n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!$f(t.schema,n))do{if(!(n=n.parent))return}while(!$f(t.schema,n));t.change((function(t){t.setSelection(n,"in")}))}}])}(dt);function $f(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}var Yf=zr("Ctrl+A"),Gf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new qf(t)),this.listenTo(e,"keydown",(function(e,n){Rr(n)===Yf&&(t.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}])}(ct),Kf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor;e.ui.componentFactory.add("selectAll",(function(n){var i=e.commands.get("selectAll"),r=new ld(n),o=n.t;return r.set({label:o("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),t.listenTo(r,"execute",(function(){e.execute("selectAll"),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}])}(ct),Qf=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Gf,Kf]}},{key:"pluginName",get:function(){return"SelectAll"}}])}(ct),Zf=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t]))._buffer=new Gh(t.model,n),i}return C(e,t),M(e,[{key:"buffer",get:function(){return this._buffer}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this._buffer.destroy()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document,r=e.text||"",o=r.length,a=e.range?n.createSelection(e.range):i.selection,s=e.resultRange;n.enqueueChange(this._buffer.batch,(function(e){t._buffer.lock(),n.deleteContent(a),r&&n.insertContent(e.createText(r,i.selection.getAttributes()),a),s?e.setSelection(s):a.is("documentSelection")||e.setSelection(a),t._buffer.unlock(),t._buffer.input(o)}))}}])}(dt),Jf=function(){return M((function t(e){P(this,t),this.editor=e,this.editing=this.editor.editing}),[{key:"handle",value:function(t,e){if(function(t){if(0==t.length)return!1;var e,n=b(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("children"===i.type&&!Qh(i))return!0}}catch(t){n.e(t)}finally{n.f()}return!1}(t))this._handleContainerChildrenMutations(t,e);else{var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._handleTextMutation(r,e),this._handleTextNodeInsertion(r)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"_handleContainerChildrenMutations",value:function(t,e){var n=function(t){var e=t.map((function(t){return t.node})).reduce((function(t,e){return t.getCommonAncestor(e,{includeSelf:!0})}));if(e)return e.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(t){return t.is("containerElement")||t.is("rootElement")}))}(t);if(n){var i=this.editor.editing.view.domConverter.mapViewToDom(n),r=new Lo(this.editor.editing.view.document),o=this.editor.data.toModel(r.domToView(i)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),l=Array.from(a.getChildren()),c=s[s.length-1],u=l[l.length-1],d=c&&c.is("element","softBreak"),h=u&&!u.is("element","softBreak");d&&h&&s.pop();var f=this.editor.model.schema;if(Xf(s,f)&&Xf(l,f)){var p=s.map((function(t){return t.is("$text")?t.data:"@"})).join("").replace(/\u00A0/g," "),g=l.map((function(t){return t.is("$text")?t.data:"@"})).join("").replace(/\u00A0/g," ");if(g!==p){var m=tp(vo(g,p)),v=m.firstChangeAt,b=m.insertions,k=m.deletions,y=null;e&&(y=this.editing.mapper.toModelRange(e.getFirstRange()));var w=p.substr(v,b),_=this.editor.model.createRange(this.editor.model.createPositionAt(a,v),this.editor.model.createPositionAt(a,v+k));this.editor.execute("input",{text:w,range:_,resultRange:y})}}}}}},{key:"_handleTextMutation",value:function(t,e){if("text"==t.type){var n=t.newText.replace(/\u00A0/g," "),i=t.oldText.replace(/\u00A0/g," ");if(i!==n){var r=tp(vo(i,n)),o=r.firstChangeAt,a=r.insertions,s=r.deletions,l=null;e&&(l=this.editing.mapper.toModelRange(e.getFirstRange()));var c=this.editing.view.createPositionAt(t.node,o),u=this.editing.mapper.toModelPosition(c),d=this.editor.model.createRange(u,u.getShiftedBy(s)),h=n.substr(o,a);this.editor.execute("input",{text:h,range:d,resultRange:l})}}}},{key:"_handleTextNodeInsertion",value:function(t){if("children"==t.type){var e=Qh(t),n=this.editing.view.createPositionAt(t.node,e.index),i=this.editing.mapper.toModelPosition(n),r=e.values[0].data;this.editor.execute("input",{text:r.replace(/\u00A0/g," "),range:this.editor.model.createRange(i)})}}}])}();function Xf(t,e){return t.every((function(t){return e.isInline(t)}))}function tp(t){for(var e=null,n=null,i=0;i<t.length;i++)"equal"!=t[i]&&(e=null===e?i:e,n=i);for(var r=0,o=0,a=e;a<=n;a++)"insert"!=t[a]&&r++,"delete"!=t[a]&&o++;return{insertions:o,deletions:r,firstChangeAt:e}}var ep=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=new Zf(t,t.config.get("typing.undoStep")||20);t.commands.add("input",e),function(t){var e=null,n=t.model,i=t.editing.view,r=t.commands.get("input");function o(t){if(!Or.isWindows||!Jh(t,i.document)){var o=n.document,s=i.document.isComposing,l=e&&e.isEqual(o.selection);e=null,r.isEnabled&&(wf(t)||o.selection.isCollapsed||s&&229===t.keyCode||!s&&229===t.keyCode&&l||a())}}function a(){var t=r.buffer;t.lock();var e=t.batch;n.enqueueChange(e,(function(){n.deleteContent(n.document.selection)})),t.unlock()}Or.isAndroid?i.document.on("beforeinput",(function(t,e){return o(e)}),{priority:"lowest"}):i.document.on("keydown",(function(t,e){return o(e)}),{priority:"lowest"}),i.document.on("compositionstart",(function(){var t=n.document,e=1!==t.selection.rangeCount||t.selection.getFirstRange().isFlat;t.selection.isCollapsed||e||a()}),{priority:"lowest"}),i.document.on("compositionend",(function(){e=n.createSelection(n.document.selection)}),{priority:"lowest"})}(t),function(t){t.editing.view.document.on("mutations",(function(e,n,i){new Jf(t).handle(n,i)}))}(t)}}],[{key:"pluginName",get:function(){return"Input"}}])}(ct),np=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[ep,tf]}},{key:"pluginName",get:function(){return"Typing"}}])}(ct);function ip(t,e){var n=t.start;return{text:Array.from(t.getItems()).reduce((function(t,i){return i.is("$text")||i.is("$textProxy")?t+i.data:(n=e.createPositionAfter(i),"")}),""),range:e.createRange(n,t.end)}}var rp=function(){return M((function t(e,n){var i=this;P(this,t),this.model=e,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){i.isEnabled?i._startListening():(i.stopListening(e.document.selection),i.stopListening(e.document))})),this._startListening()}),[{key:"_startListening",value:function(){var t=this,e=this.model.document;this.listenTo(e.selection,"change:range",(function(n,i){i.directChange&&(e.selection.isCollapsed?t._evaluateTextBeforeSelection("selection"):t.hasMatch&&(t.fire("unmatched"),t.hasMatch=!1))})),this.listenTo(e,"change:data",(function(e,n){!n.isUndo&&n.isLocal&&t._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,i=n.document.selection,r=ip(n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),n),o=r.text,a=r.range,s=this.testCallback(o);if(!s&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!s,s){var l=Object.assign(e,{text:o,range:a});"object"==N(s)&&Object.assign(l,s),this.fire("matched:".concat(t),l)}}}])}();lt(rp,et);var op=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).attributes=new Set,n._overrideUid=null,n}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model,i=e.editing.view,r=e.locale,o=n.document.selection;this.listenTo(i.document,"arrowKey",(function(e,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var i=n.keyCode==Lr.arrowright,a=n.keyCode==Lr.arrowleft;if(i||a){var s=r.contentLanguageDirection;!0===("ltr"===s&&i||"rtl"===s&&a?t._handleForwardMovement(n):t._handleBackwardMovement(n))&&e.stop()}}}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(e,n){t._isNextGravityRestorationSkipped?t._isNextGravityRestorationSkipped=!1:t._isGravityOverridden&&(!n.directChange&&cp(o.getFirstPosition(),t.attributes)||t._restoreGravity())}))}},{key:"registerAttribute",value:function(t){this.attributes.add(t)}},{key:"_handleForwardMovement",value:function(t){var e=this.attributes,n=this.editor.model.document.selection,i=n.getFirstPosition();return!this._isGravityOverridden&&(!i.isAtStart||!ap(n,e))&&(cp(i,e)?(lp(t),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(t){var e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(lp(t),this._restoreGravity(),sp(n,e,r),!0):r.isAtStart?!!ap(i,e)&&(lp(t),sp(n,e,r),!0):function(t,e){return cp(t.getShiftedBy(-1),e)}(r,e)?r.isAtEnd&&!ap(i,e)&&cp(r,e)?(lp(t),sp(n,e,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(t){return t.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var t=this;this.editor.model.change((function(e){e.restoreSelectionGravity(t._overrideUid),t._overrideUid=null}))}}],[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}])}(ct);function ap(t,e){var n,i=b(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(t.hasAttribute(r))return!0}}catch(t){i.e(t)}finally{i.f()}return!1}function sp(t,e,n){var i=n.nodeBefore;t.change((function(t){i?t.setSelectionAttribute(i.getAttributes()):t.removeSelectionAttribute(e)}))}function lp(t){t.preventDefault()}function cp(t,e){var n,i=t.nodeBefore,r=t.nodeAfter,o=b(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=i?i.getAttribute(a):void 0;if((r?r.getAttribute(a):void 0)!==s)return!0}}catch(t){o.e(t)}finally{o.f()}return!1}var up=/[\\^$.*+?()[\]{}|]/g,dp=RegExp(up.source),hp={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:bp('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:bp("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:bp("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:bp('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:bp('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:bp("'"),to:[null,"‚",null,"’"]}},fp={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},pp=["symbols","mathematical","typography","quotes"];function gp(t){return"string"==typeof t?new RegExp("(".concat(function(t){return(t=Ti(t))&&dp.test(t)?t.replace(up,"\\$&"):t}(t),")$")):t}function mp(t){return"string"==typeof t?function(){return[t]}:t instanceof Array?function(){return t}:t}function vp(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function bp(t){return new RegExp("(^|\\s)(".concat(t,")([^").concat(t,"]*)(").concat(t,")$"))}function kp(t,e,n,i){return i.createRange(yp(t,e,n,!0,i),yp(t,e,n,!1,i))}function yp(t,e,n,i,r){for(var o=t.textNode||(i?t.nodeBefore:t.nodeAfter),a=null;o&&o.getAttribute(e)==n;)a=o,o=i?o.previousSibling:o.nextSibling;return a?r.createPositionAt(a,i?"before":"after"):t}var wp=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._stack=[],n._createdBatches=new WeakSet,n.refresh(),n.listenTo(t.data,"set",(function(t,e){e[1]=h({},e[1]);var n=e[1];n.batchType||(n.batchType={isUndoable:!1})}),{priority:"high"}),n.listenTo(t.data,"set",(function(t,e){e[1].batchType.isUndoable||n.clearStack()})),n}return C(e,t),M(e,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(t){var e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(t,e,n){var i,r=this.editor.model,o=r.document,a=[],s=t.map((function(t){return t.getTransformedByOperations(n)})),l=s.flat(),c=b(s);try{for(c.s();!(i=c.n()).done;){var u=i.value.filter((function(t){return t.root!=o.graveyard})).filter((function(t){return!Ap(t,l)}));u.length&&(_p(u),a.push(u[0]))}}catch(t){c.e(t)}finally{c.f()}a.length&&r.change((function(t){t.setSelection(a,{backward:e})}))}},{key:"_undo",value:function(t,e){var n=this.editor.model,i=n.document;this._createdBatches.add(e);var r=t.operations.slice().filter((function(t){return t.isDocumentOperation}));r.reverse();var o,a=b(r);try{for(a.s();!(o=a.n()).done;){var s,l=o.value,c=l.baseVersion+1,u=Array.from(i.history.getOperations(c)),d=b(wh([l.getReversed()],u,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(d.s();!(s=d.n()).done;){var h=s.value;e.addOperation(h),n.applyOperation(h),i.history.setOperationAsUndone(l,h)}}catch(t){d.e(t)}finally{d.f()}}}catch(t){a.e(t)}finally{a.f()}}}])}(dt);function _p(t){t.sort((function(t,e){return t.start.isBefore(e.start)?-1:1}));for(var e=1;e<t.length;e++){var n=t[e-1].getJoined(t[e],!0);n&&(e--,t.splice(e,2,n))}}function Ap(t,e){return e.some((function(e){return e!==t&&e.containsRange(t,!0)}))}var Cp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e?this._stack.findIndex((function(t){return t.batch==e})):this._stack.length-1,i=this._stack.splice(n,1)[0],r=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(r,(function(){t._undo(i.batch,r);var e=t.editor.model.document.history.getOperations(i.batch.baseVersion);t._restoreSelection(i.selection.ranges,i.selection.isBackward,e),t.fire("revert",i.batch,r)})),this.refresh()}}])}(wp),xp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"execute",value:function(){var t=this,e=this._stack.pop(),n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,(function(){var i=e.batch.operations[e.batch.operations.length-1].baseVersion+1,r=t.editor.model.document.history.getOperations(i);t._restoreSelection(e.selection.ranges,e.selection.isBackward,r),t._undo(e.batch,n)})),this.refresh()}}])}(wp),Dp=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._batchRegistry=new WeakSet,n}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor;this._undoCommand=new Cp(e),this._redoCommand=new xp(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(function(e,n){var i=n[0];if(i.isDocumentOperation){var r=i.batch,o=t._redoCommand._createdBatches.has(r),a=t._undoCommand._createdBatches.has(r);t._batchRegistry.has(r)||(t._batchRegistry.add(r),r.isUndoable&&(o?t._undoCommand.addBatch(r):a||(t._undoCommand.addBatch(r),t._redoCommand.clearStack())))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(e,n,i){t._redoCommand.addBatch(i)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}],[{key:"pluginName",get:function(){return"UndoEditing"}}])}(ct),Ep='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Sp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',Tp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?Ep:Sp,r="ltr"==e.uiLanguageDirection?Sp:Ep;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",r)}},{key:"_addButton",value:function(t,e,n,i){var r=this,o=this.editor;o.ui.componentFactory.add(t,(function(a){var s=o.commands.get(t),l=new ld(a);return l.set({label:e,icon:i,keystroke:n,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),r.listenTo(l,"execute",(function(){o.execute(t),o.editing.view.focus()})),l}))}}],[{key:"pluginName",get:function(){return"UndoUI"}}])}(ct),Ip=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Dp,Tp]}},{key:"pluginName",get:function(){return"Undo"}}])}(ct),Mp=function(){return M((function t(){var e=this;P(this,t);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(t){e.loaded=t.loaded}}),[{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}},{key:"read",value:function(t){var e=this,n=this._reader;return this.total=t.size,new Promise((function(i,r){n.onload=function(){var t=n.result;e._data=t,i(t)},n.onerror=function(){r("error")},n.onabort=function(){r("aborted")},e._reader.readAsDataURL(t)}))}},{key:"abort",value:function(){this._reader.abort()}}])}();lt(Mp,et);var Op=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this;this.loaders=new Zn,this.loaders.on("add",(function(){return t._updatePendingAction()})),this.loaders.on("remove",(function(){return t._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(t,e){return e?t/e*100:0}))}},{key:"getLoader",value:function(t){return this._loadersMap.get(t)||null}},{key:"createLoader",value:function(t){var e=this;if(!this.createUploadAdapter)return T("filerepository-no-upload-adapter"),null;var n=new Pp(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(t,n),t instanceof Promise&&n.file.then((function(t){e._loadersMap.set(t,n)})).catch((function(){})),n.on("change:uploaded",(function(){var t,n=0,i=b(e.loaders);try{for(i.s();!(t=i.n()).done;){n+=t.value.uploaded}}catch(t){i.e(t)}finally{i.f()}e.uploaded=n})),n.on("change:uploadTotal",(function(){var t,n=0,i=b(e.loaders);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.uploadTotal&&(n+=r.uploadTotal)}}catch(t){i.e(t)}finally{i.f()}e.uploadTotal=n})),n}},{key:"destroyLoader",value:function(t){var e=this,n=t instanceof Pp?t:this.getLoader(t);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(t,i){t===n&&e._loadersMap.delete(i)}))}},{key:"_updatePendingAction",value:function(){var t=this.editor.plugins.get(Bu);if(this.loaders.length){if(!this._pendingAction){var e=this.editor.t,n=function(t){return"".concat(e("Upload in progress")," ").concat(parseInt(t),"%.")};this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[Bu]}}])}(ct);lt(Op,et);var Pp=function(){return M((function t(e,n){P(this,t),this.id=y(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=n(this),this._reader=new Mp,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(t,e){return e?t/e*100:0})),this.set("uploadResponse",null)}),[{key:"file",get:function(){var t=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(e){return t._filePromiseWrapper?e:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}},{key:"read",value:function(){var t=this;if("idle"!=this.status)throw new S("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(e){return t._reader.read(e)})).then((function(e){if("reading"!==t.status)throw t.status;return t.status="idle",e})).catch((function(e){if("aborted"===e)throw t.status="aborted","aborted";throw t.status="error",t._reader.error?t._reader.error:e}))}},{key:"upload",value:function(){var t=this;if("idle"!=this.status)throw new S("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return t._adapter.upload()})).then((function(e){return t.uploadResponse=e,t.status="idle",e})).catch((function(e){if("aborted"===t.status)throw"aborted";throw t.status="error",e}))}},{key:"abort",value:function(){var t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(t){var e={};return e.promise=new Promise((function(n,i){e.rejecter=i,e.isFulfilled=!1,t.then((function(t){e.isFulfilled=!0,n(t)})).catch((function(t){e.isFulfilled=!0,i(t)}))})),e}}])}();lt(Pp,et);var Np=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).buttonView=new ld(t),n._fileInputView=new Bp(t),n._fileInputView.bind("acceptedType").to(A(n)),n._fileInputView.bind("allowMultipleFiles").to(A(n)),n._fileInputView.delegate("done").to(A(n)),n.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[n.buttonView,n._fileInputView]}),n.buttonView.on("execute",(function(){n._fileInputView.open()})),n}return C(e,t),M(e,[{key:"focus",value:function(){this.buttonView.focus()}}])}(mu),Bp=function(t){function e(t){var n;P(this,e),(n=_(this,e,[t])).set("acceptedType"),n.set("allowMultipleFiles",!1);var i=n.bindTemplate;return n.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){n.element&&n.element.files&&n.element.files.length&&n.fire("done",n.element.files),n.element.value=""}))}}),n}return C(e,t),M(e,[{key:"open",value:function(){this.element.click()}}])}(mu),Lp="ckCsrfToken",jp="abcdefghijklmnopqrstuvwxyz0123456789";var Rp=function(){return M((function t(e,n,i){P(this,t),this.loader=e,this.url=n,this.t=i}),[{key:"upload",value:function(){var t=this;return this.loader.file.then((function(e){return new Promise((function(n,i){t._initRequest(),t._initListeners(n,i,e),t._sendRequest(e)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}},{key:"_initListeners",value:function(t,e,n){var i=this.xhr,r=this.loader,o=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");i.addEventListener("error",(function(){return e(o)})),i.addEventListener("abort",(function(){return e()})),i.addEventListener("load",(function(){var n=i.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:o);t({default:n.url})})),i.upload&&i.upload.addEventListener("progress",(function(t){t.lengthComputable&&(r.uploadTotal=t.total,r.uploaded=t.loaded)}))}},{key:"_sendRequest",value:function(t){var e=new FormData;e.append("upload",t),e.append("ckCsrfToken",function(){var t,e,n=function(t){t=t.toLowerCase();var e,n=b(document.cookie.split(";"));try{for(n.s();!(e=n.n()).done;){var i=e.value.split("=");if(decodeURIComponent(i[0].trim().toLowerCase())===t)return decodeURIComponent(i[1])}}catch(t){n.e(t)}finally{n.f()}return null}(Lp);return n&&40==n.length||(n=function(){var t="",e=new Uint8Array(40);window.crypto.getRandomValues(e);for(var n=0;n<e.length;n++){var i=jp.charAt(e[n]%36);t+=Math.random()>.5?i.toUpperCase():i}return t}(),t=Lp,e=n,document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/"),n}()),this.xhr.send(e)}}])}();function zp(t,e,n,i){var r,o=null;"function"==typeof i?r=i:(o=t.commands.get(i),r=function(){t.execute(i)}),t.model.document.on("change:data",(function(a,s){if((!o||o.isEnabled)&&e.isEnabled){var l=ja(t.model.document.selection.getRanges());if(l.isCollapsed&&!s.isUndo&&s.isLocal){var c=Array.from(t.model.document.differ.getChanges()),u=c[0];if(1==c.length&&"insert"===u.type&&"$text"==u.name&&1==u.length){var d=u.position.parent;if(!d.is("element","codeBlock")&&(!d.is("element","listItem")||"function"==typeof i||["numberedList","bulletedList","todoList"].includes(i))&&(!o||!0!==o.value)){var h=d.getChild(0),f=t.model.createRangeOn(h);if(f.containsRange(l)||l.end.isEqual(f.end)){var p=n.exec(h.data.substr(0,l.end.offset));p&&t.model.enqueueChange((function(e){var n=e.createPositionAt(d,0),i=e.createPositionAt(d,p[0].length),o=new Ts(n,i);if(!1!==r({match:p})){e.remove(o);var a=t.model.document.selection.getFirstRange(),s=e.createRangeIn(d);!d.isEmpty||s.isEqual(a)||s.containsRange(a,!0)||e.remove(d)}o.detach(),t.model.enqueueChange((function(){t.plugins.get("Delete").requestUndoOnBackspace()}))}))}}}}}}))}function Fp(t,e,n,i){var r,o;n instanceof RegExp?r=n:o=n,o=o||function(t){for(var e,n=[],i=[];null!==(e=r.exec(t))&&!(e&&e.length<4);){var o=e,a=o.index,s=o[1],l=o[2],c=o[3],u=s+l+c,d=[a+=e[0].length-u.length,a+s.length],h=[a+s.length+l.length,a+s.length+l.length+c.length];n.push(d),n.push(h),i.push([a+s.length,a+s.length+l.length])}return{remove:n,format:i}},t.model.document.on("change:data",(function(n,r){if(!r.isUndo&&r.isLocal&&e.isEnabled){var a=t.model,s=a.document.selection;if(s.isCollapsed){var l=Array.from(a.document.differ.getChanges()),c=l[0];if(1==l.length&&"insert"===c.type&&"$text"==c.name&&1==c.length){var u=s.focus,d=u.parent,h=function(t,e){var n=t.start;return{text:Array.from(t.getItems()).reduce((function(t,i){return!i.is("$text")&&!i.is("$textProxy")||i.getAttribute("code")?(n=e.createPositionAfter(i),""):t+i.data}),""),range:e.createRange(n,t.end)}}(a.createRange(a.createPositionAt(d,0),u),a),f=h.text,p=h.range,g=o(f),m=Hp(p.start,g.format,a),v=Hp(p.start,g.remove,a);m.length&&v.length&&a.enqueueChange((function(e){if(!1!==i(e,m)){var n,r=b(v.reverse());try{for(r.s();!(n=r.n()).done;){var o=n.value;e.remove(o)}}catch(t){r.e(t)}finally{r.f()}a.enqueueChange((function(){t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}}}}))}function Hp(t,e,n){return e.filter((function(t){return void 0!==t[0]&&void 0!==t[1]})).map((function(e){return n.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]))}))}function Vp(t,e){return function(n,i){if(!t.commands.get(e).isEnabled)return!1;var r,o=b(t.model.schema.getValidRanges(i,e));try{for(o.s();!(r=o.n()).done;){var a=r.value;n.setAttribute(e,!0,a)}}catch(t){o.e(t)}finally{o.f()}n.removeSelectionAttribute(e)}}var Up=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t])).attributeKey=n,i}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,r=void 0===e.forceValue?!this.value:e.forceValue;n.change((function(e){if(i.isCollapsed)r?e.setSelectionAttribute(t.attributeKey,!0):e.removeSelectionAttribute(t.attributeKey);else{var o,a=b(n.schema.getValidRanges(i.getRanges(),t.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;r?e.setAttribute(t.attributeKey,r,s):e.removeAttribute(t.attributeKey,s)}}catch(t){a.e(t)}finally{a.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var i,r=b(n.getRanges());try{for(r.s();!(i=r.n()).done;){var o,a=b(i.value.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(e.checkAttribute(s,this.attributeKey))return s.hasAttribute(this.attributeKey)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}return!1}}])}(dt),Wp="bold",qp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:Wp}),t.model.schema.setAttributeProperties(Wp,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Wp,view:"strong",upcastAlso:["b",function(t){var e=t.getStyle("font-weight");return e?"bold"==e||Number(e)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),t.commands.add(Wp,new Up(t,Wp)),t.keystrokes.set("CTRL+B",Wp)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}])}(ct),$p="bold",Yp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add($p,(function(i){var r=e.commands.get($p),o=new ld(i);return o.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute($p),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"BoldUI"}}])}(ct),Gp="italic",Kp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:Gp}),t.model.schema.setAttributeProperties(Gp,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Gp,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Gp,new Up(t,Gp)),t.keystrokes.set("CTRL+I",Gp)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}])}(ct),Qp="italic",Zp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(Qp,(function(i){var r=e.commands.get(Qp),o=new ld(i);return o.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute(Qp),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"ItalicUI"}}])}(ct),Jp=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.schema,r=n.document.selection,o=Array.from(r.getSelectedBlocks()),a=void 0===e.forceValue?!this.value:e.forceValue;n.change((function(e){if(a){var n=o.filter((function(t){return Xp(t)||eg(i,t)}));t._applyQuote(e,n)}else t._removeQuote(e,o.filter(Xp))}))}},{key:"_getValue",value:function(){var t=ja(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Xp(t))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var t=this.editor.model.document.selection,e=this.editor.model.schema,n=ja(t.getSelectedBlocks());return!!n&&eg(e,n)}},{key:"_removeQuote",value:function(t,e){tg(t,e).reverse().forEach((function(e){if(e.start.isAtStart&&e.end.isAtEnd)t.unwrap(e.start.parent);else if(e.start.isAtStart){var n=t.createPositionBefore(e.start.parent);t.move(e,n)}else{e.end.isAtEnd||t.split(e.end);var i=t.createPositionAfter(e.end.parent);t.move(e,i)}}))}},{key:"_applyQuote",value:function(t,e){var n=[];tg(t,e).reverse().forEach((function(e){var i=Xp(e.start);i||(i=t.createElement("blockQuote"),t.wrap(e,i)),n.push(i)})),n.reverse().reduce((function(e,n){return e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n}))}}])}(dt);function Xp(t){return"blockQuote"==t.parent.name?t.parent:null}function tg(t,e){for(var n,i=0,r=[];i<e.length;){var o=e[i],a=e[i+1];n||(n=t.createPositionBefore(o)),a&&o.nextSibling==a||(r.push(t.createRange(n,t.createPositionAfter(o))),n=null),i++}return r}function eg(t,e){var n=t.checkChild(e.parent,"blockQuote"),i=t.checkChild(["$root","blockQuote"],e);return n&&i}var ng=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new Jp(t)),e.register("blockQuote",{inheritAllFrom:"$container"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer((function(n){var i,r=b(t.model.document.differ.getChanges());try{for(r.s();!(i=r.n()).done;){var o=i.value;if("insert"==o.type){var a=o.position.nodeAfter;if(!a)continue;if(a.is("element","blockQuote")&&a.isEmpty)return n.remove(a),!0;if(a.is("element","blockQuote")&&!e.checkChild(o.position,a))return n.unwrap(a),!0;if(a.is("element")){var s,l=b(n.createRangeIn(a).getItems());try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(c),c))return n.unwrap(c),!0}}catch(t){l.e(t)}finally{l.f()}}}else if("remove"==o.type){var u=o.position.parent;if(u.is("element","blockQuote")&&u.isEmpty)return n.remove(u),!0}}}catch(t){r.e(t)}finally{r.f()}return!1}));var n=this.editor.editing.view.document,i=t.model.document.selection,r=t.commands.get("blockQuote");this.listenTo(n,"enter",(function(e,n){i.isCollapsed&&r.value&&i.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",(function(e,n){if("backward"==n.direction&&i.isCollapsed&&r.value){var o=i.getLastPosition().parent;o.isEmpty&&!o.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}}),{context:"blockquote"})}}],[{key:"pluginName",get:function(){return"BlockQuoteEditing"}},{key:"requires",get:function(){return[Yh,tf]}}])}(ct),ig=o(3062);Ao()(ig.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ig.Z.locals;var rg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("blockQuote",(function(i){var r=e.commands.get("blockQuote"),o=new ld(i);return o.set({label:n("Block quote"),icon:td,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute("blockQuote"),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"BlockQuoteUI"}}])}(ct),og=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"afterInit",value:function(){var t=this.editor;if(t.commands.get("ckbox")){var e=t.t;t.ui.componentFactory.add("ckbox",(function(n){var i=t.commands.get("ckbox"),r=new ld(n);return r.set({label:e("Open file manager"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),r.on("execute",(function(){t.execute("ckbox")})),r}))}}}],[{key:"pluginName",get:function(){return"CKBoxUI"}}])}(ct);function ag(t){var e=t.token,n=t.id,i=t.origin,r=t.width,o=t.extension,a=sg(e),s=function(t){for(var e=[10*t/100,80],n=Math.floor(Math.max.apply(Math,e)),i=[Math.min(t,4e3)],r=i[0];r-n>=n;)r-=n,i.unshift(r);return i}(r),l=function(t){return"bmp"===t||"tiff"===t||"jpg"===t?"jpeg":t}(o);return{imageFallbackUrl:lg({environmentId:a,id:n,origin:i,width:r,extension:l}),imageSources:[{srcset:s.map((function(t){return"".concat(lg({environmentId:a,id:n,origin:i,width:t,extension:"webp"})," ").concat(t,"w")})).join(","),sizes:"(max-width: ".concat(r,"px) 100vw, ").concat(r,"px"),type:"image/webp"}]}}function sg(t){var e=v(t.value.split("."),2)[1];return JSON.parse(atob(e)).aud}function lg(t){var e=t.environmentId,n=t.id,i=t.origin,r=t.width,o=t.extension;return new URL("".concat(e,"/assets/").concat(n,"/images/").concat(r,".").concat(o),i).toString()}var cg=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._chosenAssets=new Set,n._wrapper=null,n._initListeners(),n}return C(e,t),M(e,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){this.fire("ckbox:open")}},{key:"_getValue",value:function(){return null!==this._wrapper}},{key:"_checkEnabled",value:function(){var t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}},{key:"_prepareOptions",value:function(){var t=this,e=this.editor.config.get("ckbox");return{theme:e.theme,language:e.language,tokenUrl:e.tokenUrl,serviceOrigin:e.serviceOrigin,assetsOrigin:e.assetsOrigin,dialog:{onClose:function(){return t.fire("ckbox:close")}},assets:{onChoose:function(e){return t.fire("ckbox:choose",e)}}}}},{key:"_initListeners",value:function(){var t=this,e=this.editor,n=e.model,i=!e.config.get("ckbox.ignoreDataId");this.on("ckbox",(function(){t.refresh()}),{priority:"low"}),this.on("ckbox:open",(function(){t.isEnabled&&!t.value&&(t._wrapper=Pa(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(t._wrapper),window.CKBox.mount(t._wrapper,t._prepareOptions()))})),this.on("ckbox:close",(function(){t.value&&(t._wrapper.remove(),t._wrapper=null)})),this.on("ckbox:choose",(function(r,o){if(t.isEnabled){var a=e.commands.get("insertImage"),s=e.commands.get("link"),l=e.plugins.get("CKBoxEditing"),c=function(t){var e=t.origin,n=t.token,i=t.isImageAllowed,r=t.isLinkAllowed;return t.assets.map((function(t){return{id:t.data.id,type:dg(t)?"image":"link",attributes:ug(t,n,e)}})).filter((function(t){return"image"===t.type?i:r}))}({assets:o,origin:e.config.get("ckbox.assetsOrigin"),token:l.getToken(),isImageAllowed:a.isEnabled,isLinkAllowed:s.isEnabled});0!==c.length&&n.change((function(e){var n,r=b(c);try{var o=function(){var r=n.value,o=r===c[c.length-1];t._insertAsset(r,o,e),i&&(setTimeout((function(){return t._chosenAssets.delete(r)}),1e3),t._chosenAssets.add(r))};for(r.s();!(n=r.n()).done;)o()}catch(t){r.e(t)}finally{r.f()}}))}})),this.listenTo(e,"destroy",(function(){t.fire("ckbox:close"),t._chosenAssets.clear()}))}},{key:"_insertAsset",value:function(t,e,n){var i=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n),e||n.setSelection(i.getLastPosition())}},{key:"_insertImage",value:function(t){var e=this.editor,n=t.attributes,i=n.imageFallbackUrl,r=n.imageSources,o=n.imageTextAlternative;e.execute("insertImage",{source:{src:i,sources:r,alt:o}})}},{key:"_insertLink",value:function(t,e){var n=this.editor,i=n.model,r=i.document.selection,o=t.attributes,a=o.linkName,s=o.linkHref;if(r.isCollapsed){var l=hi(r.getAttributes()),c=e.createText(a,l),u=i.insertContent(c);e.setSelection(u)}n.execute("link",s)}}])}(dt);function ug(t,e,n){if(dg(t)){var i=ag({token:e,origin:n,id:t.data.id,width:t.data.metadata.width,extension:t.data.extension});return{imageFallbackUrl:i.imageFallbackUrl,imageSources:i.imageSources,imageTextAlternative:t.data.metadata.description||""}}return{linkName:t.data.name,linkHref:hg(t,e,n)}}function dg(t){var e=t.data.metadata;return!!e&&e.width&&e.height}function hg(t,e,n){var i=sg(e),r=new URL("".concat(i,"/assets/").concat(t.data.id,"/file"),n);return r.searchParams.set("download","true"),r.toString()}var fg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"afterInit",value:(n=u(m().mark((function t(){var e,n,i,r,o,a,s;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.editor,n=!!e.config.get("ckbox"),i=!!window.CKBox,n||i){t.next=3;break}return t.abrupt("return");case 3:r=e.plugins.get(Op),o=e.plugins.get(mg),r.createUploadAdapter=function(t){return new pg(t,o.getToken(),e)},a=!e.config.get("ckbox.ignoreDataId"),s=e.plugins.get("ImageUploadEditing"),a&&s.on("uploadComplete",(function(t,n){var i=n.imageElement,r=n.data;e.model.change((function(t){t.setAttribute("ckboxImageId",r.ckboxImageId,i)}))}));case 7:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})}],[{key:"requires",get:function(){return["ImageUploadEditing","ImageUploadProgress",Op,mg]}},{key:"pluginName",get:function(){return"CKBoxUploadAdapter"}}]);var n}(ct),pg=function(){return M((function t(e,n,i){P(this,t),this.loader=e,this.token=n,this.editor=i,this.controller=new AbortController,this.serviceOrigin=i.config.get("ckbox.serviceOrigin"),this.assetsOrigin=i.config.get("ckbox.assetsOrigin")}),[{key:"getAvailableCategories",value:(n=u(m().mark((function t(){var e,n,i=this,r=arguments;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:0,n=new URL("categories",this.serviceOrigin),t.abrupt("return",(n.searchParams.set("limit",50..toString()),n.searchParams.set("offset",e.toString()),this._sendHttpRequest({url:n}).then(function(){var t=u(m().mark((function t(n){var r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n.totalCount-(e+50)>0)){t.next=5;break}return t.next=3,i.getAvailableCategories(e+50);case 3:return r=t.sent,t.abrupt("return",[].concat(k(n.items),k(r)));case 5:return t.abrupt("return",n.items);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){i.controller.signal.throwIfAborted(),I("ckbox-fetch-category-http-error")}))));case 3:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getCategoryIdForFile",value:(e=u(m().mark((function t(e){var n,i,r,o,a,s;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=gg(e.name),t.next=3,this.getAvailableCategories();case 3:if(i=t.sent){t.next=6;break}return t.abrupt("return",null);case 6:if(!(r=this.editor.config.get("ckbox.defaultUploadCategories"))){t.next=12;break}if(o=Object.keys(r).find((function(t){return r[t].includes(n)})),!o){t.next=12;break}return a=i.find((function(t){return t.id===o||t.name===o})),t.abrupt("return",a?a.id:null);case 12:return s=i.find((function(t){return t.extensions.includes(n)})),t.abrupt("return",s?s.id:null);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"upload",value:(t=u(m().mark((function t(){var e,n,i,r,o,a,s,l=this;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.editor.t,n=e("Cannot determine a category for the uploaded file."),t.next=4,this.loader.file;case 4:return i=t.sent,t.next=7,this.getCategoryIdForFile(i);case 7:if(r=t.sent){t.next=10;break}return t.abrupt("return",Promise.reject(n));case 10:return o=new URL("assets",this.serviceOrigin),(a=new FormData).append("categoryId",r),a.append("file",i),s={method:"POST",url:o,data:a,onUploadProgress:function(t){t.lengthComputable&&(l.loader.uploadTotal=t.total,l.loader.uploaded=t.loaded)}},t.abrupt("return",this._sendHttpRequest(s).then(function(){var t=u(m().mark((function t(e){var n,r,o;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l._getImageWidth();case 2:return n=t.sent,r=gg(i.name),o=ag({token:l.token,id:e.id,origin:l.assetsOrigin,width:n,extension:r}),t.abrupt("return",{ckboxImageId:e.id,default:o.imageFallbackUrl,sources:o.imageSources});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){var t=e("Cannot upload file:")+" ".concat(i.name,".");return Promise.reject(t)})));case 14:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"abort",value:function(){this.controller.abort()}},{key:"_sendHttpRequest",value:function(t){var e=t.url,n=t.data,i=t.onUploadProgress,r=t.method||"GET",o=this.controller.signal,a=new XMLHttpRequest;a.open(r,e.toString(),!0),a.setRequestHeader("Authorization",this.token.value),a.setRequestHeader("CKBox-Version","CKEditor 5"),a.responseType="json";var s=function(){a.abort()};return new Promise((function(t,e){o.addEventListener("abort",s),a.addEventListener("loadstart",(function(){o.addEventListener("abort",s)})),a.addEventListener("loadend",(function(){o.removeEventListener("abort",s)})),a.addEventListener("error",(function(){e()})),a.addEventListener("abort",(function(){e()})),a.addEventListener("load",u(m().mark((function n(){var i;return m().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=a.response,n.abrupt("return",!i||i.statusCode>=400?e(i&&i.message):t(i));case 2:case"end":return n.stop()}}),n)})))),i&&a.upload.addEventListener("progress",(function(t){i(t)})),a.send(n)}))}},{key:"_getImageWidth",value:function(){var t=this;return new Promise((function(e){var n=new Image;n.onload=function(){URL.revokeObjectURL(n.src),e(n.width)},n.src=t.loader.data}))}}]);var t,e,n}();function gg(t){return t.match(l(/\.([^.]+)$/,{ext:1})).groups.ext}var mg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:(n=u(m().mark((function t(){var e,n,i,r,o,a;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.editor,n=!!e.config.get("ckbox"),i=!!window.CKBox,n||i){t.next=3;break}return t.abrupt("return");case 3:if(this._initConfig(),r=e.plugins.get("CloudServicesCore"),o=e.config.get("ckbox.tokenUrl"),a=e.config.get("cloudServices.tokenUrl"),o!==a){t.next=9;break}t.t0=e.plugins.get("CloudServices").token,t.next=12;break;case 9:return t.next=11,r.createToken(o).init();case 11:t.t0=t.sent;case 12:this._token=t.t0,e.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),i&&e.commands.add("ckbox",new cg(e));case 15:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getToken",value:function(){return this._token}},{key:"_initConfig",value:function(){var t=this.editor;if(t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",assetsOrigin:"https://ckbox.cloud",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"default",tokenUrl:t.config.get("cloudServices.tokenUrl")}),!t.config.get("ckbox.tokenUrl"))throw new S("ckbox-plugin-missing-token-url",this);t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||I("ckbox-plugin-image-feature-missing",t)}},{key:"_initSchema",value:function(){var t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck((function(t,e){if(!t.last.getAttribute("linkHref")&&"ckboxLinkId"===e)return!1}))}},{key:"_initConversion",value:function(){var t=this.editor;t.conversion.for("downcast").add((function(t){t.on("attribute:ckboxLinkId:imageBlock",(function(t,e,n){var i=n.writer,r=n.mapper;if(n.consumable.consume(e.item,t.name)){var o=k(r.toViewElement(e.item).getChildren()).find((function(t){return"a"===t.name}));o&&(e.item.hasAttribute("ckboxLinkId")?i.setAttribute("data-ckbox-resource-id",e.item.getAttribute("ckboxLinkId"),o):i.removeAttribute("data-ckbox-resource-id",o))}}),{priority:"low"}),t.on("attribute:ckboxLinkId",(function(t,e,n){var i=n.writer,r=n.mapper;if(n.consumable.consume(e.item,t.name)){if(e.attributeOldValue){var o=bg(i,e.attributeOldValue);i.unwrap(r.toViewRange(e.range),o)}if(e.attributeNewValue){var a=bg(i,e.attributeNewValue);if(e.item.is("selection")){var s=i.document.selection;i.wrap(s.getFirstRange(),a)}else i.wrap(r.toViewRange(e.range),a)}}}),{priority:"low"})})),t.conversion.for("upcast").add((function(t){t.on("element:a",(function(t,e,n){var i=n.writer,r=n.consumable;if(e.viewItem.getAttribute("href")&&r.consume(e.viewItem,{attributes:["data-ckbox-resource-id"]})){var o=e.viewItem.getAttribute("data-ckbox-resource-id");if(o)if(e.modelRange){var a,s=b(e.modelRange.getItems());try{for(s.s();!(a=s.n()).done;){var l=a.value;l.is("$textProxy")&&(l=l.textNode),kg(l)&&i.setAttribute("ckboxLinkId",o,l)}}catch(t){s.e(t)}finally{s.f()}}else{var c=e.modelCursor.nodeBefore||e.modelCursor.parent;i.setAttribute("ckboxLinkId",o,c)}}}),{priority:"low"})})),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:function(t){return t.getAttribute("data-ckbox-resource-id")}},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}},{key:"_initFixers",value:function(){var t=this.editor,e=t.model,n=e.document.selection;e.document.registerPostFixer(function(t){return function(e){var n=!1,i=t.model,r=t.commands.get("ckbox");if(!r)return n;var o,a=b(i.document.differ.getChanges());try{for(a.s();!(o=a.n()).done;){var s=o.value;if("insert"===s.type||"attribute"===s.type){var l,c="insert"===s.type?new vs(s.position,s.position.getShiftedBy(s.length)):s.range,u="attribute"===s.type&&"linkHref"===s.attributeKey&&null===s.attributeNewValue,d=b(c.getItems());try{for(d.s();!(l=d.n()).done;){var h=l.value;if(u&&h.hasAttribute("ckboxLinkId"))e.removeAttribute("ckboxLinkId",h),n=!0;else{var f,p=b(vg(h,r._chosenAssets));try{for(p.s();!(f=p.n()).done;){var g=f.value,m="image"===g.type?"ckboxImageId":"ckboxLinkId";g.id!==h.getAttribute(m)&&(e.setAttribute(m,g.id,h),n=!0)}}catch(t){p.e(t)}finally{p.f()}}}}catch(t){d.e(t)}finally{d.f()}}}}catch(t){a.e(t)}finally{a.f()}return n}}(t)),e.document.registerPostFixer(function(t){return function(e){!t.hasAttribute("linkHref")&&t.hasAttribute("ckboxLinkId")&&e.removeSelectionAttribute("ckboxLinkId")}}(n))}}],[{key:"pluginName",get:function(){return"CKBoxEditing"}},{key:"requires",get:function(){return["CloudServices","LinkEditing","PictureEditing",fg]}}]);var n}(ct);function vg(t,e){var n=t.is("element","imageInline")||t.is("element","imageBlock"),i=t.hasAttribute("linkHref");return k(e).filter((function(e){return"image"===e.type&&n?e.attributes.imageFallbackUrl===t.getAttribute("src"):"link"===e.type&&i?e.attributes.linkHref===t.getAttribute("linkHref"):void 0}))}function bg(t,e){var n=t.createAttributeElement("a",{"data-ckbox-resource-id":e},{priority:5});return t.setCustomProperty("link",!0,n),n}function kg(t){return!!t.is("$text")||!(!t.is("element","imageInline")&&!t.is("element","imageBlock"))}var yg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.ui.componentFactory,n=t.t;e.add("ckfinder",(function(e){var i=t.commands.get("ckfinder"),r=new ld(e);return r.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),r.bind("isEnabled").to(i),r.on("execute",(function(){t.execute("ckfinder"),t.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"CKFinderUI"}}])}(ct),wg=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).stopListening(n.editor.model.document,"change"),n.listenTo(n.editor.model.document,"change",(function(){return n.refresh()}),{priority:"low"}),n}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}},{key:"execute",value:function(){var t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new S("ckfinder-unknown-openermethod",t);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var i=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=function(e){i&&i(e),e.on("files:choose",(function(n){var i,r=n.data.files.toArray(),o=r.filter((function(t){return!t.isImage()})),a=r.filter((function(t){return t.isImage()})),s=b(o);try{for(s.s();!(i=s.n()).done;){var l=i.value;t.execute("link",l.getUrl())}}catch(t){s.e(t)}finally{s.f()}var c,u=[],d=b(a);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=h.getUrl();u.push(f||e.request("file:getProxyUrl",{file:h}))}}catch(t){d.e(t)}finally{d.f()}u.length&&_g(t,u)})),e.on("file:choose:resizedImage",(function(e){var n=e.data.resizedUrl;if(n)_g(t,[n]);else{var i=t.plugins.get("Notification"),r=t.locale.t;i.showWarning(r("Could not obtain resized image URL."),{title:r("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[e](n)}}])}(dt);function _g(t,e){if(t.commands.get("insertImage").isEnabled)t.execute("insertImage",{source:e});else{var n=t.plugins.get("Notification"),i=t.locale.t;n.showWarning(i("Could not insert image at the current position."),{title:i("Inserting image failed"),namespace:"ckfinder"})}}var Ag=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new S("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new wg(t))}}],[{key:"pluginName",get:function(){return"CKFinderEditing"}},{key:"requires",get:function(){return[Xd,"LinkEditing"]}}])}(ct),Cg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.plugins.get("CloudServices"),i=n.token,r=n.uploadUrl;i&&(this._uploadGateway=e.plugins.get("CloudServicesCore").createUploadGateway(i,r),e.plugins.get(Op).createUploadAdapter=function(e){return new xg(t._uploadGateway,e)})}}],[{key:"pluginName",get:function(){return"CloudServicesUploadAdapter"}},{key:"requires",get:function(){return["CloudServices",Op]}}])}(ct),xg=function(){return M((function t(e,n){P(this,t),this.uploadGateway=e,this.loader=n}),[{key:"upload",value:function(){var t=this;return this.loader.file.then((function(e){return t.fileUploader=t.uploadGateway.upload(e),t.fileUploader.on("progress",(function(e,n){t.loader.uploadTotal=n.total,t.loader.uploaded=n.uploaded})),t.fileUploader.send()}))}},{key:"abort",value:function(){this.fileUploader.abort()}}])}(),Dg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model,e=ja(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Eg(e,t.schema)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=e.document;e.change((function(i){var r,o=b((t.selection||n.selection).getSelectedBlocks());try{for(o.s();!(r=o.n()).done;){var a=r.value;!a.is("element","paragraph")&&Eg(a,e.schema)&&i.rename(a,"paragraph")}}catch(t){o.e(t)}finally{o.f()}}))}}])}(dt);function Eg(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}var Sg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"execute",value:function(t){var e=this.editor.model,n=t.attributes,i=t.position;e.change((function(t){var r=t.createElement("paragraph");if(n&&e.schema.setAllowedAttributes(r,n,t),!e.schema.checkChild(i.parent,r)){var o=e.schema.findAllowedParent(i,r);if(!o)return;i=t.split(i,o).position}e.insertContent(r,i),t.setSelection(r,"in")}))}}])}(dt),Tg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,n=t.model;t.commands.add("paragraph",new Dg(t)),t.commands.add("insertParagraph",new Sg(t)),n.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:function(t,n){var i=n.writer;return e.paragraphLikeElements.has(t.name)?t.isEmpty?null:i.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}])}(ct);Tg.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var Ig=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t])).modelElements=n,i}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this,e=ja(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some((function(n){return Mg(e,n,t.editor.model.schema)}))}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document,i=t.value;e.change((function(t){var r,o=Array.from(n.selection.getSelectedBlocks()).filter((function(t){return Mg(t,i,e.schema)})),a=b(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;s.is("element",i)||t.rename(s,i)}}catch(t){a.e(t)}finally{a.f()}}))}}])}(dt);function Mg(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}var Og="paragraph",Pg=function(t){function e(t){var n;return P(this,e),n=_(this,e,[t]),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),n}return C(e,t),M(e,[{key:"init",value:function(){var t,e=this.editor,n=[],i=b(e.config.get("heading.options"));try{for(i.s();!(t=i.n()).done;){var r=t.value;r.model!==Og&&(e.model.schema.register(r.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(r),n.push(r.model))}}catch(t){i.e(t)}finally{i.f()}this._addDefaultH1Conversion(e),e.commands.add("heading",new Ig(e,n))}},{key:"afterInit",value:function(){var t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(function(e,i){var r=t.model.document.selection.getFirstPosition().parent;n.some((function(t){return r.is("element",t.model)}))&&!r.is("element",Og)&&0===r.childCount&&i.writer.rename(r,Og)}))}},{key:"_addDefaultH1Conversion",value:function(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:w.get("low")+1})}}],[{key:"pluginName",get:function(){return"HeadingEditing"}},{key:"requires",get:function(){return[Tg]}}])}(ct),Ng=o(8733);Ao()(Ng.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ng.Z.locals;var Bg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t,i=function(t){var e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")};return t.config.get("heading.options").map((function(t){var e=n[t.title];return e&&e!=t.title&&(t.title=e),t}))}(e),r=n("Choose heading"),o=n("Heading");e.ui.componentFactory.add("heading",(function(n){var a,s={},l=new Zn,c=e.commands.get("heading"),u=e.commands.get("paragraph"),d=[c],h=b(i);try{var f=function(){var t=a.value,e={type:"button",model:new th({label:t.title,class:t.class,withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(u,"value"),e.model.set("commandName","paragraph"),d.push(u)):(e.model.bind("isOn").to(c,"value",(function(e){return e===t.model})),e.model.set({commandName:"heading",commandValue:t.model})),l.add(e),s[t.model]=t.title};for(h.s();!(a=h.n()).done;)f()}catch(t){h.e(t)}finally{h.f()}var p=Bd(n);return jd(p,l),p.buttonView.set({isOn:!1,withText:!0,tooltip:o}),p.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),p.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),p.buttonView.bind("label").to(c,"value",u,"value",(function(t,e){var n=t||e&&"paragraph";return s[n]?s[n]:r})),t.listenTo(p,"execute",(function(t){e.execute(t.source.commandName,t.source.commandValue?{value:t.source.commandValue}:void 0),e.editing.view.focus()})),p}))}}],[{key:"pluginName",get:function(){return"HeadingUI"}}])}(ct),Lg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor;if(e.plugins.has("BalloonToolbar")){var n=e.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(t){(function(t){var e=t.getSelectedElement();return!(!e||!sf(e))})(e.editing.view.document.selection)&&t.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){t._updateToolbarsVisibility()})),this.listenTo(e.ui,"update",(function(){t._updateToolbarsVisibility()})),this.listenTo(e.ui.focusTracker,"change:isFocused",(function(){t._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]);var t,n=b(this._toolbarDefinitions.values());try{for(n.s();!(t=n.n()).done;){t.value.view.destroy()}}catch(t){n.e(t)}finally{n.f()}}},{key:"register",value:function(t,e){var n=this,i=e.ariaLabel,r=e.items,o=e.getRelatedElement,a=e.balloonClassName,s=void 0===a?"ck-toolbar-container":a;if(r.length){var l=this.editor,c=l.t,u=new xd(l.locale);if(u.ariaLabel=i||c("Widget toolbar"),this._toolbarDefinitions.has(t))throw new S("widget-toolbar-duplicated",this,{toolbarId:t});u.fillFromConfig(r,l.ui.componentFactory);var d={view:u,getRelatedElement:o,balloonClassName:s};l.ui.addToolbar(u,{isContextual:!0,beforeFocus:function(){var t=o(l.editing.view.document.selection);t&&n._showToolbar(d,t)},afterBlur:function(){n._hideToolbar(d)}}),this._toolbarDefinitions.set(t,d)}else T("widget-toolbar-no-items",{toolbarId:t})}},{key:"_updateToolbarsVisibility",value:function(){var t,e=0,n=null,i=null,r=b(this._toolbarDefinitions.values());try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>e&&(e=s,n=a,i=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(t){r.e(t)}finally{r.f()}i&&this._showToolbar(i,n)}},{key:"_hideToolbar",value:function(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(t,e){var n=this;this._isToolbarVisible(t)?jg(this.editor,e):this._isToolbarInBalloon(t)||(this._balloon.add({view:t.view,position:Rg(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var t,e=b(n._toolbarDefinitions.values());try{for(e.s();!(t=e.n()).done;){var i=t.value;if(n._isToolbarVisible(i)){var r=i.getRelatedElement(n.editor.editing.view.document.selection);jg(n.editor,r)}}}catch(t){e.e(t)}finally{e.f()}})))}},{key:"_isToolbarVisible",value:function(t){return this._balloon.visibleView===t.view}},{key:"_isToolbarInBalloon",value:function(t){return this._balloon.hasView(t.view)}}],[{key:"requires",get:function(){return[rh]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}])}(ct);function jg(t,e){var n=t.plugins.get("ContextualBalloon"),i=Rg(t,e);n.updatePosition(i)}function Rg(t,e){var n=t.editing.view,i=Cu.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}var zg=function(){return M((function t(e){P(this,t),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}),[{key:"begin",value:function(t,e,n){var i=new qa(e);this.activeHandlePosition=function(t){for(var e=0,n=["top-left","top-right","bottom-right","bottom-left"];e<n.length;e++){var i=n[e];if(t.classList.contains(Fg(i)))return i}}(t),this._referenceCoordinates=function(t,e){var n=new qa(t),i=e.split("-"),r={x:"right"==i[1]?n.right:n.left,y:"bottom"==i[0]?n.bottom:n.top};return r.x+=t.ownerDocument.defaultView.scrollX,r.y+=t.ownerDocument.defaultView.scrollY,r}(e,function(t){var e=t.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[e[0]],"-").concat(n[e[1]])}(this.activeHandlePosition)),this.originalWidth=i.width,this.originalHeight=i.height,this.aspectRatio=i.width/i.height;var r=n.style.width;r&&r.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(r):this.originalWidthPercents=function(t,e){var n=t.parentElement,i=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return e.width/i*100}(n,i)}},{key:"update",value:function(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}])}();function Fg(t){return"ck-widget__resizer__handle-".concat(t)}lt(zg,et);var Hg=function(t){function e(){var t;P(this,e);var n=(t=_(this,e)).bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",n.to("_viewPosition",(function(t){return t?"ck-orientation-".concat(t):""}))],style:{display:n.if("_isVisible","none",(function(t){return!t}))}},children:[{text:n.to("_label")}]}),t}return C(e,t),M(e,[{key:"_bindToState",value:function(t,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",(function(t,e){return null!==t&&null!==e})),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",(function(e,n,i){return"px"===t.unit?"".concat(e,"×").concat(n):"".concat(i,"%")})),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",(function(t,e,n){return e<50||n<50?"above-center":t}))}},{key:"_dismiss",value:function(){this.unbind(),this._isVisible=!1}}])}(mu),Vg=function(){return M((function t(e){var n=this;P(this,t),this._options=e,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(t){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),t.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}),[{key:"attach",value:function(){var t=this,e=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(i){var r=i.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){var n=this.toDomElement(t);return e._appendHandles(n),e._appendSizeUI(n),e.on("change:isEnabled",(function(t,e,i){n.style.display=i?"":"none"})),n.style.display=e.isEnabled?"":"none",n}));i.insert(i.createPositionAt(n,"end"),r),i.addClass("ck-widget_with-resizer",n),t._viewResizerWrapper=r}))}},{key:"begin",value:function(t){this.state=new zg(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}},{key:"updateSize",value:function(t){var e=this,n=this._proposeNewSize(t);this._options.editor.editing.view.change((function(t){var i=e._options.unit||"%",r=("%"===i?n.widthPercents:n.width)+i;t.setStyle("width",r,e._options.viewElement)}));var i=this._getHandleHost(),r=new qa(i);n.handleHostWidth=Math.round(r.width),n.handleHostHeight=Math.round(r.height);var o=new qa(i);n.width=Math.round(o.width),n.height=Math.round(o.height),this.redraw(r),this.state.update(n)}},{key:"commit",value:function(){var t=this,e=this._options.unit||"%",n=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change((function(){t._cleanup(),t._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(t){var e=this._domResizerWrapper;if((n=e)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,i,r=e.parentElement,o=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(r.isSameNode(o)){var l=t||new qa(o);i=[l.width+"px",l.height+"px",void 0,void 0]}else i=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==si(s,i)&&this._options.editor.editing.view.change((function(t){t.setStyle({width:i[0],height:i[1],left:i[2],top:i[3]},a)}))}}},{key:"containsHandle",value:function(t){return this._domResizerWrapper.contains(t)}},{key:"_cleanup",value:function(){var t=this;this._sizeView._dismiss(),this._options.editor.editing.view.change((function(e){e.setStyle("width",t._initialViewWidth,t._options.viewElement)}))}},{key:"_proposeNewSize",value:function(t){var e,n=this.state,i=(e=t).pageX,r=e.pageY,o=!this._options.isCentered||this._options.isCentered(this),a={x:n._referenceCoordinates.x-(i+n.originalWidth),y:r-n.originalHeight-n._referenceCoordinates.y};o&&n.activeHandlePosition.endsWith("-right")&&(a.x=i-(n._referenceCoordinates.x+n.originalWidth)),o&&(a.x*=2);var s={width:Math.abs(n.originalWidth+a.x),height:Math.abs(n.originalHeight+a.y)};s.dominant=s.width/n.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];var l={width:s.width,height:s.height};return"width"==s.dominant?l.height=l.width/n.aspectRatio:l.width=l.height*n.aspectRatio,{width:Math.round(l.width),height:Math.round(l.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*l.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}},{key:"_getHandleHost",value:function(){var t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}},{key:"_domResizerWrapper",get:function(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}},{key:"_appendHandles",value:function(t){for(var e,n=0,i=["top-left","top-right","bottom-right","bottom-left"];n<i.length;n++){var r=i[n];t.appendChild(new Kc({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(e=r,"ck-widget__resizer__handle-".concat(e))}}).render())}}},{key:"_appendSizeUI",value:function(t){this._sizeView=new Hg,this._sizeView.render(),t.appendChild(this._sizeView.element)}}],[{key:"isResizeHandle",value:function(t){return t.classList.contains("ck-widget__resizer__handle")}}])}();lt(Vg,et);var Ug=o(8506);Ao()(Ug.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ug.Z.locals,lt(function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.editing,n=ti.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,e.view.addObserver(Th),this._observer=Object.create(Ho),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(n,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(n,"mouseup",this._mouseUpListener.bind(this));var i=function(){t.visibleResizer&&t.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Of(i,200),this.on("change:visibleResizer",i),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(function(){var e,n=b(t._resizers);try{for(n.s();!(e=n.n()).done;){var i=v(e.value,2),r=i[0],o=i[1];r.isAttached()||(t._resizers.delete(r),o.destroy())}}catch(t){n.e(t)}finally{n.f()}}),{priority:"lowest"}),this._observer.listenTo(ti.window,"resize",this._redrawFocusedResizerThrottled);var r=this.editor.editing.view.document.selection;r.on("change",(function(){var e=r.getSelectedElement();t.visibleResizer=t.getResizerByViewElement(e)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var t,e=b(this._resizers.values());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}this._redrawFocusedResizerThrottled.cancel()}},{key:"attachTo",value:function(t){var e=new Vg(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){var i=n.get("WidgetToolbarRepository");e.on("begin",(function(){i.forceDisabled("resize")}),{priority:"lowest"}),e.on("cancel",(function(){i.clearForceDisabled("resize")}),{priority:"highest"}),e.on("commit",(function(){i.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(t.viewElement,e);var r=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(r)==e&&(this.visibleResizer=e),e}},{key:"getResizerByViewElement",value:function(t){return this._resizers.get(t)}},{key:"_getResizerByHandle",value:function(t){var e,n=b(this._resizers.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.containsHandle(t))return i}}catch(t){n.e(t)}finally{n.f()}}},{key:"_mouseDownListener",value:function(t,e){var n=e.domTarget;Vg.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}},{key:"_mouseMoveListener",value:function(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}])}(ct),et);var Wg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(t){var e=this.editor,n=e.plugins.get("ImageUtils"),i=e.model,r=n.getClosestSelectedImageElement(i.document.selection);i.change((function(e){e.setAttribute("alt",t.newValue,r)}))}}])}(dt);function qg(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot()])}function $g(t,e){var n=t.plugins.get("ImageUtils"),i=t.plugins.has("ImageInlineEditing")&&t.plugins.has("ImageBlockEditing");return function(t){return n.isInlineImageView(t)?i&&(t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:r(t):null};function r(t){var e={name:!0};return t.hasAttribute("src")&&(e.attributes=["src"]),e}}function Yg(t,e){var n=ja(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}var Gg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"isImage",value:function(t){return this.isInlineImage(t)||this.isBlockImage(t)}},{key:"isInlineImageView",value:function(t){return!!t&&t.is("element","img")}},{key:"isBlockImageView",value:function(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}},{key:"insertImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.editor,r=i.model,o=r.document.selection;for(var a in n=Kg(i,e||o,n),t=h(h({},Object.fromEntries(o.getAttributes())),t))r.schema.checkAttribute(n,a)||delete t[a];return r.change((function(i){var o=i.createElement(n,t);return r.insertObject(o,e,null,{setSelection:"on",findOptimalPosition:!e&&"imageInline"!=n}),o.parent?o:null}))}},{key:"getClosestSelectedImageWidget",value:function(t){var e=t.getFirstPosition();if(!e)return null;var n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;for(var i=e.parent;i;){if(i.is("element")&&this.isImageWidget(i))return i;i=i.parent}return null}},{key:"getClosestSelectedImageElement",value:function(t){var e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}},{key:"isImageAllowed",value:function(){var t=this.editor.model.document.selection;return function(t,e){if("imageBlock"==Kg(t,e)){var n=function(t,e){var n=pf(t,e).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,t.model);if(t.model.schema.checkChild(n,"imageBlock"))return!0}else if(t.model.schema.checkChild(e.focus,"imageInline"))return!0;return!1}(this.editor,t)&&function(t){return k(t.focus.getAncestors()).every((function(t){return!t.is("element","imageBlock")}))}(t)}},{key:"toImageWidget",value:function(t,e,n){var i=this;return e.setCustomProperty("image",!0,t),lf(t,e,{label:function(){var e=i.findViewImgElement(t).getAttribute("alt");return e?"".concat(e," ").concat(n):n}})}},{key:"isImageWidget",value:function(t){return!!t.getCustomProperty("image")&&sf(t)}},{key:"isBlockImage",value:function(t){return!!t&&t.is("element","imageBlock")}},{key:"isInlineImage",value:function(t){return!!t&&t.is("element","imageInline")}},{key:"findViewImgElement",value:function(t){if(this.isInlineImageView(t))return t;var e,n=b(this.editor.editing.view.createRangeIn(t));try{for(n.s();!(e=n.n()).done;){var i=e.value.item;if(this.isInlineImageView(i))return i}}catch(t){n.e(t)}finally{n.f()}}}],[{key:"pluginName",get:function(){return"ImageUtils"}}])}(ct);function Kg(t,e,n){var i=t.model.schema,r=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===r?"imageInline":"block"===r?"imageBlock":e.is("selection")?Yg(i,e):i.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}var Qg=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new Wg(this.editor))}}],[{key:"requires",get:function(){return[Gg]}},{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}])}(ct),Zg=o(1905);Ao()(Zg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Zg.Z.locals;var Jg=o(6764);Ao()(Jg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Jg.Z.locals;var Xg=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).locale.t;return n.focusTracker=new Ra,n.keystrokes=new za,n.labeledInput=n._createLabeledInputView(),n.saveButtonView=n._createButton(i("Save"),zu,"ck-button-save"),n.saveButtonView.type="submit",n.cancelButtonView=n._createButton(i("Cancel"),ju,"ck-button-cancel","cancel"),n._focusables=new Gc,n._focusCycler=new kd({focusables:n._focusables,focusTracker:n.focusTracker,keystrokeHandler:n.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),n.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[n.labeledInput,n.saveButtonView,n.cancelButtonView]}),nd(n),n}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),this.keystrokes.listenTo(this.element),id({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)}))}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"_createButton",value:function(t,e,n,i){var r=new ld(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"_createLabeledInputView",value:function(){var t=this.locale.t,e=new Zd(this.locale,Jd);return e.label=t("Text alternative"),e}}])}(mu);function tm(t){var e=t.editing.view,n=Cu.defaultPositions,i=t.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(i.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}var em=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this._form.destroy()}},{key:"_createButton",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("imageTextAlternative",(function(i){var r=e.commands.get("imageTextAlternative"),o=new ld(i);return o.set({label:n("Change image text alternative"),icon:Fu,tooltip:!0}),o.bind("isEnabled").to(r,"isEnabled"),t.listenTo(o,"execute",(function(){t._showForm()})),o}))}},{key:"_createForm",value:function(){var t=this,e=this.editor,n=e.editing.view.document,i=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Xg(e.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){e.execute("imageTextAlternative",{newValue:t._form.labeledInput.fieldView.element.value}),t._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){t._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(e,n){t._hideForm(!0),n()})),this.listenTo(e.ui,"update",(function(){i.getClosestSelectedImageWidget(n.selection)?t._isVisible&&function(t){var e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){var n=tm(t);e.updatePosition(n)}}(e):t._hideForm(!0)})),ed({emitter:this._form,activator:function(){return t._isVisible},contextElements:[this._balloon.view.element],callback:function(){return t._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:tm(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}}},{key:"_hideForm",value:function(t){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[rh]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}])}(ct),nm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Qg,em]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}])}(ct);function im(t,e){return function(t){t.on("attribute:srcset:".concat(e),n)};function n(e,n,i){if(i.consumable.consume(n.item,e.name)){var r=i.writer,o=i.mapper.toViewElement(n.item),a=t.findViewImgElement(o);if(null===n.attributeNewValue){var s=n.attributeOldValue;s.data&&(r.removeAttribute("srcset",a),r.removeAttribute("sizes",a),s.width&&r.removeAttribute("width",a))}else{var l=n.attributeNewValue;l.data&&(r.setAttribute("srcset",l.data,a),r.setAttribute("sizes","100vw",a),l.width&&r.setAttribute("width",l.width,a))}}}}function rm(t,e,n){return function(t){t.on("attribute:".concat(n,":").concat(e),i)};function i(e,n,i){if(i.consumable.consume(n.item,e.name)){var r=i.writer,o=i.mapper.toViewElement(n.item),a=t.findViewImgElement(o);r.setAttribute(n.attributeKey,n.attributeNewValue||"",a)}}}var om=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"observe",value:function(t){var e=this;this.listenTo(t,"load",(function(t,n){var i=n.target;e.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&e._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}])}(qo),am=function(t){function e(t){var n;P(this,e),n=_(this,e,[t]);var i=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")||"block"===i&&T("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===i&&T("image-inline-plugin-required"),n}return C(e,t),M(e,[{key:"refresh",value:function(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}},{key:"execute",value:function(t){var e=this,n=Xn(t.source),i=this.editor.model.document.selection,r=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());n.forEach((function(t,n){var a=i.getSelectedElement();if("string"==typeof t&&(t={src:t}),n&&a&&r.isImage(a)){var s=e.editor.model.createPositionAfter(a);r.insertImage(h(h({},t),o),s)}else r.insertImage(h(h({},t),o))}))}}])}(dt),sm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.conversion;t.editing.view.addObserver(om),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(t){var e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e}}});var n=new am(t);t.commands.add("insertImage",n),t.commands.add("imageInsert",n)}}],[{key:"requires",get:function(){return[Gg]}},{key:"pluginName",get:function(){return"ImageEditing"}}])}(ct),lm=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t]))._modelElementName=n,i}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=t.isInlineImage(e):this.isEnabled=t.isBlockImage(e)}},{key:"execute",value:function(){var t=this,e=this.editor,n=this.editor.model,i=e.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection),o=Object.fromEntries(r.getAttributes());return o.src||o.uploadId?n.change((function(e){var a=Array.from(n.markers).filter((function(t){return t.getRange().containsItem(r)})),s=i.insertImage(o,n.createSelection(r,"on"),t._modelElementName);if(!s)return null;var l,c=e.createRangeOn(s),u=b(a);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=d.getRange(),f="$graveyard"!=h.root.rootName?h.getJoined(c,!0):c;e.updateMarker(d,{range:f})}}catch(t){u.e(t)}finally{u.f()}return{oldElement:r,newElement:s}})):null}}])}(dt),cm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new lm(this.editor,"imageBlock")),this._setupClipboardIntegration())}},{key:"_setupConversion",value:function(){var t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:function(t,e){return qg(e.writer)}}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:function(t,n){var r=n.writer;return i.toImageWidget(qg(r),r,e("image widget"))}}),n.for("downcast").add(rm(i,"imageBlock","src")).add(rm(i,"imageBlock","alt")).add(im(i,"imageBlock")),n.for("upcast").elementToElement({view:$g(t,"imageBlock"),model:function(t,e){return e.writer.createElement("imageBlock",t.hasAttribute("src")?{src:t.getAttribute("src")}:null)}}).add(function(t){return function(t){t.on("element:figure",e)};function e(e,n,i){if(i.consumable.test(n.viewItem,{name:!0,classes:"image"})){var r=t.findViewImgElement(n.viewItem);if(r&&i.consumable.test(r,{name:!0})){i.consumable.consume(n.viewItem,{name:!0,classes:"image"});var o=ja(i.convertItem(r,n.modelCursor).modelRange.getItems());o?(i.convertChildren(n.viewItem,o),i.updateConversionResult(o,n)):i.consumable.revert(n.viewItem,{name:!0,classes:"image"})}}}}(i))}},{key:"_setupClipboardIntegration",value:function(){var t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils");this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(function(r,o){var a,s=Array.from(o.content.getChildren());if(s.every(i.isInlineImageView)){a=o.targetRanges?t.editing.mapper.toModelRange(o.targetRanges[0]):e.document.selection.getFirstRange();var l=e.createSelection(a);if("imageBlock"===Yg(e.schema,l)){var c=new Ih(n.document),u=s.map((function(t){return c.createElement("figure",{class:"image"},t)}));o.content=c.createDocumentFragment(u)}}}))}}],[{key:"requires",get:function(){return[sm,Gg,Vh]}},{key:"pluginName",get:function(){return"ImageBlockEditing"}}])}(ct),um=o(3508);Ao()(um.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),um.Z.locals;var dm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[cm,If,nm]}},{key:"pluginName",get:function(){return"ImageBlock"}}])}(ct),hm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((function(t,e){if(t.endsWith("caption")&&"imageInline"===e.name)return!1})),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new lm(this.editor,"imageInline")),this._setupClipboardIntegration())}},{key:"_setupConversion",value:function(){var t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:function(t,e){return e.writer.createEmptyElement("img")}}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:function(t,n){var r=n.writer;return i.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"))}(r),r,e("image widget"))}}),n.for("downcast").add(rm(i,"imageInline","src")).add(rm(i,"imageInline","alt")).add(im(i,"imageInline")),n.for("upcast").elementToElement({view:$g(t,"imageInline"),model:function(t,e){return e.writer.createElement("imageInline",t.hasAttribute("src")?{src:t.getAttribute("src")}:null)}})}},{key:"_setupClipboardIntegration",value:function(){var t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils");this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(function(r,o){var a,s=Array.from(o.content.getChildren());if(s.every(i.isBlockImageView)){a=o.targetRanges?t.editing.mapper.toModelRange(o.targetRanges[0]):e.document.selection.getFirstRange();var l=e.createSelection(a);if("imageInline"===Yg(e.schema,l)){var c=new Ih(n.document),u=s.map((function(t){return 1===t.childCount?(Array.from(t.getAttributes()).forEach((function(e){return c.setAttribute.apply(c,k(e).concat([i.findViewImgElement(t)]))})),t.getChild(0)):t}));o.content=c.createDocumentFragment(u)}}}))}}],[{key:"requires",get:function(){return[sm,Gg,Vh]}},{key:"pluginName",get:function(){return"ImageInlineEditing"}}])}(ct),fm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[hm,If,nm]}},{key:"pluginName",get:function(){return"ImageInline"}}])}(ct),pm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor,e=t.plugins.get("ImageCaptionUtils");if(!t.plugins.has(cm))return this.isEnabled=!1,void(this.value=!1);var n=t.model.document.selection,i=n.getSelectedElement();if(!i){var r=e.getCaptionFromModelSelection(n);return this.isEnabled=!!r,void(this.value=!!r)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(i),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(i):this.value=!1}},{key:"execute",value:function(){var t=this,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).focusCaptionOnShow;this.editor.model.change((function(n){t.value?t._hideImageCaption(n):t._showImageCaption(n,e)}))}},{key:"_showImageCaption",value:function(t,e){var n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageCaptionEditing"),r=n.getSelectedElement(),o=i._getSavedCaption(r);this.editor.plugins.get("ImageUtils").isInlineImage(r)&&(this.editor.execute("imageTypeBlock"),r=n.getSelectedElement());var a=o||t.createElement("caption");t.append(a,r),e&&t.setSelection(a,"in")}},{key:"_hideImageCaption",value:function(t){var e,n=this.editor,i=n.model.document.selection,r=n.plugins.get("ImageCaptionEditing"),o=n.plugins.get("ImageCaptionUtils"),a=i.getSelectedElement();a?e=o.getCaptionFromImageModelElement(a):a=(e=o.getCaptionFromModelSelection(i)).parent,r._saveCaption(a,e),t.setSelection(a,"on"),t.remove(e)}}])}(dt),gm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"getCaptionFromImageModelElement",value:function(t){var e,n=b(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i&&i.is("element","caption"))return i}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"getCaptionFromModelSelection",value:function(t){var e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}},{key:"matchImageCaptionViewElement",value:function(t){var e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}],[{key:"pluginName",get:function(){return"ImageCaptionUtils"}},{key:"requires",get:function(){return[Gg]}}])}(ct),mm=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._savedCaptionsMap=new WeakMap,n}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new pm(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}},{key:"_setupConversion",value:function(){var t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils"),r=t.t;t.conversion.for("upcast").elementToElement({view:function(t){return i.matchImageCaptionViewElement(t)},model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:function(t,e){var i=e.writer;return n.isBlockImage(t.parent)?i.createContainerElement("figcaption"):null}}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:function(t,i){var o=i.writer;if(!n.isBlockImage(t.parent))return null;var a=o.createEditableElement("figcaption");o.setCustomProperty("imageCaption",!0,a),fh({view:e,element:a,text:r("Enter image caption"),keepOnFocus:!0});var s=t.parent.getAttribute("alt");return ff(a,o,{label:s?r("Caption for image: %0",[s]):r("Caption for the image")})}})}},{key:"_setupImageTypeCommandsIntegration",value:function(){var t=this,e=this.editor,n=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils"),r=e.commands.get("imageTypeInline"),o=e.commands.get("imageTypeBlock"),a=function(e){if(e.return){var r=e.return,o=r.oldElement,a=r.newElement;if(o){if(n.isBlockImage(o)){var s=i.getCaptionFromImageModelElement(o);if(s)return void t._saveCaption(a,s)}var l=t._getSavedCaption(o);l&&t._saveCaption(a,l)}}};r&&this.listenTo(r,"execute",a,{priority:"low"}),o&&this.listenTo(o,"execute",a,{priority:"low"})}},{key:"_getSavedCaption",value:function(t){var e=this._savedCaptionsMap.get(t);return e?us.fromJSON(e):null}},{key:"_saveCaption",value:function(t,e){this._savedCaptionsMap.set(t,e.toJSON())}},{key:"_registerCaptionReconversion",value:function(){var t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",(function(){var r,o=b(e.document.differ.getChanges());try{for(o.s();!(r=o.n()).done;){var a=r.value;if("alt"===a.attributeKey){var s=a.range.start.nodeAfter;if(n.isBlockImage(s)){var l=i.getCaptionFromImageModelElement(s);if(!l)return;t.editing.reconvertItem(l)}}}}catch(t){o.e(t)}finally{o.f()}}))}}],[{key:"requires",get:function(){return[Gg,gm]}},{key:"pluginName",get:function(){return"ImageCaptionEditing"}}])}(ct),vm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,i=e.plugins.get("ImageCaptionUtils"),r=e.t;e.ui.componentFactory.add("toggleImageCaption",(function(o){var a=e.commands.get("toggleImageCaption"),s=new ld(o);return s.set({icon:Ru,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),s.bind("label").to(a,"value",(function(t){return r(t?"Toggle caption off":"Toggle caption on")})),t.listenTo(s,"execute",(function(){e.execute("toggleImageCaption",{focusCaptionOnShow:!0});var t=i.getCaptionFromModelSelection(e.model.document.selection);if(t){var r=e.editing.mapper.toViewElement(t);n.scrollToTheSelection(),n.change((function(t){t.addClass("image__caption_highlighted",r)}))}e.editing.view.focus()})),s}))}}],[{key:"requires",get:function(){return[gm]}},{key:"pluginName",get:function(){return"ImageCaptionUI"}}])}(ct),bm=o(2640);Ao()(bm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bm.Z.locals;var km=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t]))._defaultStyles={imageBlock:!1,imageInline:!1},i._styles=new Map(n.map((function(t){if(t.isDefault){var e,n=b(t.modelElements);try{for(n.s();!(e=n.n()).done;){var r=e.value;i._defaultStyles[r]=t.name}}catch(t){n.e(t)}finally{n.f()}}return[t.name,t]}))),i}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?t.hasAttribute("imageStyle")?this.value=t.getAttribute("imageStyle"):this.value=this._defaultStyles[t.name]:this.value=!1}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,i=n.model,r=n.plugins.get("ImageUtils");i.change((function(n){var o=e.value,a=r.getClosestSelectedImageElement(i.document.selection);o&&t.shouldConvertImageType(o,a)&&(t.editor.execute(r.isBlockImage(a)?"imageTypeInline":"imageTypeBlock"),a=r.getClosestSelectedImageElement(i.document.selection)),!o||t._styles.get(o).isDefault?n.removeAttribute("imageStyle",a):n.setAttribute("imageStyle",o,a)}))}},{key:"shouldConvertImageType",value:function(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}])}(dt),ym=Ku,wm=Qu,_m=$u,Am=Gu,Cm=Yu,xm=Zu,Dm=Ju,Em={get inline(){return{name:"inline",title:"In line",icon:wm,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:_m,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:xm,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Cm,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Am,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Dm,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Cm,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Am,modelElements:["imageBlock"],className:"image-style-side"}}},Sm={full:ym,left:xm,right:Dm,center:Cm,inlineLeft:_m,inlineRight:Am,inline:wm},Tm=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Im(t){T("image-style-configuration-definition-invalid",t)}var Mm={normalizeStyles:function(t){return(t.configuredStyles.options||[]).map((function(t){return function(t){return t="string"==typeof t?Em[t]?h({},Em[t]):{name:t}:function(t,e){var n=h({},e);for(var i in t)Object.prototype.hasOwnProperty.call(e,i)||(n[i]=t[i]);return n}(Em[t.name],t),"string"==typeof t.icon&&(t.icon=Sm[t.icon]||t.icon),t}(t)})).filter((function(e){return function(t,e){var n=e.isBlockPluginLoaded,i=e.isInlinePluginLoaded,r=t.modelElements,o=t.name;if(!(r&&r.length&&o))return Im({style:t}),!1;var a=[n?"imageBlock":null,i?"imageInline":null];return!!r.some((function(t){return a.includes(t)}))||(T("image-style-missing-dependency",{style:t,missingPlugins:r.map((function(t){return"imageBlock"===t?"ImageBlockEditing":"ImageInlineEditing"}))}),!1)}(e,t)}))},getDefaultStylesConfiguration:function(t,e){return t&&e?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:t?{options:["block","side"]}:e?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(t){return t.has("ImageBlockEditing")&&t.has("ImageInlineEditing")?[].concat(Tm):[]},warnInvalidStyle:Im,DEFAULT_OPTIONS:Em,DEFAULT_ICONS:Sm,DEFAULT_DROPDOWN_DEFINITIONS:Tm};function Om(t,e){var n,i=b(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.name===t)return r}}catch(t){i.e(t)}finally{i.f()}}var Pm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=Mm.normalizeStyles,e=Mm.getDefaultStylesConfiguration,n=this.editor,i=n.plugins.has("ImageBlockEditing"),r=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(i,r)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:r}),this._setupConversion(i,r),this._setupPostFixer(),n.commands.add("imageStyle",new km(n,this.normalizedStyles))}},{key:"_setupConversion",value:function(t,e){var n,i=this.editor,r=i.model.schema,o=(n=this.normalizedStyles,function(t,e,i){if(i.consumable.consume(e.item,t.name)){var r=Om(e.attributeNewValue,n),o=Om(e.attributeOldValue,n),a=i.mapper.toViewElement(e.item),s=i.writer;o&&s.removeClass(o.className,a),r&&s.addClass(r.className,a)}}),a=function(t){var e={imageInline:t.filter((function(t){return!t.isDefault&&t.modelElements.includes("imageInline")})),imageBlock:t.filter((function(t){return!t.isDefault&&t.modelElements.includes("imageBlock")}))};return function(t,n,i){if(n.modelRange){var r=n.viewItem,o=ja(n.modelRange.getItems());if(o&&i.schema.checkAttribute(o,"imageStyle")){var a,s=b(e[o.name]);try{for(s.s();!(a=s.n()).done;){var l=a.value;i.consumable.consume(r,{classes:l.className})&&i.writer.setAttribute("imageStyle",l.name,o)}}catch(t){s.e(t)}finally{s.f()}}}}}(this.normalizedStyles);i.editing.downcastDispatcher.on("attribute:imageStyle",o),i.data.downcastDispatcher.on("attribute:imageStyle",o),t&&(r.extend("imageBlock",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:figure",a,{priority:"low"})),e&&(r.extend("imageInline",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:img",a,{priority:"low"}))}},{key:"_setupPostFixer",value:function(){var t=this.editor,e=t.model.document,n=t.plugins.get(Gg),i=new Map(this.normalizedStyles.map((function(t){return[t.name,t]})));e.registerPostFixer((function(t){var r,o=!1,a=b(e.differ.getChanges());try{for(a.s();!(r=a.n()).done;){var s=r.value;if("insert"==s.type||"attribute"==s.type&&"imageStyle"==s.attributeKey){var l="insert"==s.type?s.position.nodeAfter:s.range.start.nodeAfter;if(l&&l.is("element","paragraph")&&l.childCount>0&&(l=l.getChild(0)),!n.isImage(l))continue;var c=l.getAttribute("imageStyle");if(!c)continue;var u=i.get(c);u&&u.modelElements.includes(l.name)||(t.removeAttribute("imageStyle",l),o=!0)}}}catch(t){a.e(t)}finally{a.f()}return o}))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}},{key:"requires",get:function(){return[Gg]}}])}(ct),Nm=o(5083);Ao()(Nm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Nm.Z.locals;var Bm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"localizedDefaultStylesTitles",get:function(){var t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}},{key:"init",value:function(){var t,e=this.editor.plugins,n=this.editor.config.get("image.toolbar")||[],i=Lm(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles),r=b(i);try{for(r.s();!(t=r.n()).done;){var o=t.value;this._createButton(o)}}catch(t){r.e(t)}finally{r.f()}var a,s=b(Lm([].concat(k(n.filter(K)),k(Mm.getDefaultDropdownDefinitions(e))),this.localizedDefaultStylesTitles));try{for(s.s();!(a=s.n()).done;){var l=a.value;this._createDropdown(l,i)}}catch(t){s.e(t)}finally{s.f()}}},{key:"_createDropdown",value:function(t,e){var n=this,i=this.editor.ui.componentFactory;i.add(t.name,(function(r){var o,a=t.defaultItem,s=t.items,l=t.title,c=s.filter((function(t){return e.find((function(e){return jm(e.name)===t}))})).map((function(t){var e=i.create(t);return t===a&&(o=e),e}));s.length!==c.length&&Mm.warnInvalidStyle({dropdown:t});var u=Bd(r,gd),d=u.buttonView,h=d.arrowView;return Ld(u,c,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:Rm(l,o.label),class:null,tooltip:!0}),h.unbind("label"),h.set({label:l}),d.bind("icon").toMany(c,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.findIndex(Hi);return i<0?o.icon:c[i].icon})),d.bind("label").toMany(c,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.findIndex(Hi);return Rm(l,i<0?o.label:c[i].label)})),d.bind("isOn").toMany(c,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some(Hi)})),d.bind("class").toMany(c,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some(Hi)?"ck-splitbutton_flatten":null})),d.on("execute",(function(){c.some((function(t){return t.isOn}))?u.isOpen=!u.isOpen:o.fire("execute")})),u.bind("isEnabled").toMany(c,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some(Hi)})),n.listenTo(u,"execute",(function(){n.editor.editing.view.focus()})),u}))}},{key:"_createButton",value:function(t){var e=this,n=t.name;this.editor.ui.componentFactory.add(jm(n),(function(i){var r=e.editor.commands.get("imageStyle"),o=new ld(i);return o.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r,"isEnabled"),o.bind("isOn").to(r,"value",(function(t){return t===n})),o.on("execute",e._executeCommand.bind(e,n)),o}))}},{key:"_executeCommand",value:function(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}],[{key:"requires",get:function(){return[Pm]}},{key:"pluginName",get:function(){return"ImageStyleUI"}}])}(ct);function Lm(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;e[r.title]&&(r.title=e[r.title])}}catch(t){i.e(t)}finally{i.f()}return t}function jm(t){return"imageStyle:".concat(t)}function Rm(t,e){return(t?t+": ":"")+e}function zm(t){var e=t.map((function(t){return t.replace("+","\\+")}));return new RegExp("^image\\/(".concat(e.join("|"),")$"))}function Fm(t){return new Promise((function(e,n){var i=t.getAttribute("src");fetch(i).then((function(t){return t.blob()})).then((function(t){var n=Hm(t,i),r=n.replace("image/",""),o=new File([t],"image.".concat(r),{type:n});e(o)})).catch((function(t){return t&&"TypeError"===t.name?function(t){return function(t){return new Promise((function(e,n){var i=ti.document.createElement("img");i.addEventListener("load",(function(){var t=ti.document.createElement("canvas");t.width=i.width,t.height=i.height,t.getContext("2d").drawImage(i,0,0),t.toBlob((function(t){return t?e(t):n()}))})),i.addEventListener("error",(function(){return n()})),i.src=t}))}(t).then((function(e){var n=Hm(e,t),i=n.replace("image/","");return new File([e],"image.".concat(i),{type:n})}))}(i).then(e).catch(n):n(t)}))}))}function Hm(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}var Vm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.t,n=function(n){var i=new Np(n),r=t.commands.get("uploadImage"),o=t.config.get("image.upload.types"),a=zm(o);return i.set({acceptedType:o.map((function(t){return"image/".concat(t)})).join(","),allowMultipleFiles:!0}),i.buttonView.set({label:e("Insert image"),icon:Hu,tooltip:!0}),i.buttonView.bind("isEnabled").to(r),i.on("done",(function(e,n){var i=Array.from(n).filter((function(t){return a.test(t.type)}));i.length&&(t.execute("uploadImage",{file:i}),t.editing.view.focus())})),i};t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n)}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}])}(ct),Um=o(3689);Ao()(Um.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Um.Z.locals;var Wm=o(4036);Ao()(Wm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Wm.Z.locals;var qm=o(3773);Ao()(qm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),qm.Z.locals;var $m=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(function(){return t.uploadStatusChange.apply(t,arguments)})),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(function(){return t.uploadStatusChange.apply(t,arguments)}))}},{key:"uploadStatusChange",value:function(t,e,n){var i=this.editor,r=e.item,o=r.getAttribute("uploadId");if(n.consumable.consume(e.item,t.name)){var a=i.plugins.get("ImageUtils"),s=i.plugins.get(Op),l=o?e.attributeNewValue:null,c=this.placeholder,u=i.editing.mapper.toViewElement(r),d=n.writer;if("reading"==l)return Ym(u,d),void Gm(a,c,u,d);if("uploading"==l){var h=s.loaders.get(o);return Ym(u,d),void(h?(Km(u,d),function(t,e,n,i){var r=function(t){var e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),r),n.on("change:uploadedPercent",(function(t,e,n){i.change((function(t){t.setStyle("width",n+"%",r)}))}))}(u,d,h,i.editing.view),function(t,e,n,i){if(i.data){var r=t.findViewImgElement(e);n.setAttribute("src",i.data,r)}}(a,u,d,h)):Gm(a,c,u,d))}"complete"==l&&s.loaders.get(o)&&function(t,e,n){var i=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),i),setTimeout((function(){n.change((function(t){return t.remove(t.createRangeOn(i))}))}),3e3)}(u,d,i.editing.view),function(t,e){Zm(t,e,"progressBar")}(u,d),Km(u,d),function(t,e){e.removeClass("ck-appear",t)}(u,d)}}}],[{key:"pluginName",get:function(){return"ImageUploadProgress"}}])}(ct);function Ym(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function Gm(t,e,n,i){n.hasClass("ck-image-upload-placeholder")||i.addClass("ck-image-upload-placeholder",n);var r=t.findViewImgElement(n);r.getAttribute("src")!==e&&i.setAttribute("src",e,r),Qm(n,"placeholder")||i.insert(i.createPositionAfter(r),function(t){var e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(i))}function Km(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),Zm(t,e,"placeholder")}function Qm(t,e){var n,i=b(t.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.getCustomProperty(e))return r}}catch(t){i.e(t)}finally{i.f()}}function Zm(t,e,n){var i=Qm(t,n);i&&e.remove(e.createRangeOn(i))}var Jm=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}},{key:"execute",value:function(t){var e=this,n=Xn(t.file),i=this.editor.model.document.selection,r=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(i.getAttributes());n.forEach((function(t,n){var a=i.getSelectedElement();if(n&&a&&r.isImage(a)){var s=e.editor.model.createPositionAfter(a);e._uploadImage(t,o,s)}else e._uploadImage(t,o)}))}},{key:"_uploadImage",value:function(t,e,n){var i=this.editor,r=i.plugins.get(Op).createLoader(t),o=i.plugins.get("ImageUtils");r&&o.insertImage(h(h({},e),{},{uploadId:r.id}),n)}}])}(dt),Xm=function(t){function e(t){var n;return P(this,e),n=_(this,e,[t]),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),n._uploadImageElements=new Map,n}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document,i=e.conversion,r=e.plugins.get(Op),o=e.plugins.get("ImageUtils"),a=zm(e.config.get("image.upload.types")),s=new Jm(e);e.commands.add("uploadImage",s),e.commands.add("imageUpload",s),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(function(t,n){if(i=n.dataTransfer,!Array.from(i.types).includes("text/html")||""===i.getData("text/html")){var i,r=Array.from(n.dataTransfer.files).filter((function(t){return!!t&&a.test(t.type)}));r.length&&(t.stop(),e.model.change((function(t){n.targetRanges&&t.setSelection(n.targetRanges.map((function(t){return e.editing.mapper.toModelRange(t)}))),e.model.enqueueChange((function(){e.execute("uploadImage",{file:r})}))})))}})),this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(function(t,n){var i=Array.from(e.editing.view.createRangeIn(n.content)).filter((function(t){return function(t,e){return!(!t.isInlineImageView(e)||!e.getAttribute("src"))&&(e.getAttribute("src").match(/^data:image\/\w+;base64,/g)||e.getAttribute("src").match(/^blob:/g))}(o,t.item)&&!t.item.getAttribute("uploadProcessed")})).map((function(t){return{promise:Fm(t.item),imageElement:t.item}}));if(i.length){var a,s=new Ih(e.editing.view.document),l=b(i);try{for(l.s();!(a=l.n()).done;){var c=a.value;s.setAttribute("uploadProcessed",!0,c.imageElement);var u=r.createLoader(c.promise);u&&(s.setAttribute("src","",c.imageElement),s.setAttribute("uploadId",u.id,c.imageElement))}}catch(t){l.e(t)}finally{l.f()}}})),e.editing.view.document.on("dragover",(function(t,e){e.preventDefault()})),n.on("change",(function(){var i,o=n.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),a=new Set,s=b(o);try{for(s.s();!(i=s.n()).done;){var l=i.value;if("insert"==l.type&&"$text"!=l.name){var c,u=l.position.nodeAfter,d="$graveyard"==l.position.root.rootName,h=b(tv(e,u));try{for(h.s();!(c=h.n()).done;){var f=c.value,p=f.getAttribute("uploadId");if(p){var g=r.loaders.get(p);g&&(d?a.has(p)||g.abort():(a.add(p),t._uploadImageElements.set(p,f),"idle"==g.status&&t._readAndUpload(g)))}}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){s.e(t)}finally{s.f()}})),this.on("uploadComplete",(function(e,n){var i=n.imageElement,r=n.data,o=r.urls?r.urls:r;t.editor.model.change((function(e){e.setAttribute("src",o.default,i),t._parseAndSetSrcsetAttributeOnImage(o,i,e)}))}),{priority:"low"})}},{key:"afterInit",value:function(){var t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}},{key:"_readAndUpload",value:function(t){var e=this,n=this.editor,i=n.model,r=n.locale.t,o=n.plugins.get(Op),a=n.plugins.get(Xd),s=n.plugins.get("ImageUtils"),l=this._uploadImageElements;return i.enqueueChange({isUndoable:!1},(function(e){e.setAttribute("uploadStatus","reading",l.get(t.id))})),t.read().then((function(){var e=t.upload(),r=l.get(t.id);if(Or.isSafari){var o=n.editing.mapper.toViewElement(r),a=s.findViewImgElement(o);n.editing.view.once("render",(function(){if(a.parent){var t=n.editing.view.domConverter.mapViewToDom(a.parent);if(t){var e=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=e}}}))}return i.enqueueChange({isUndoable:!1},(function(t){t.setAttribute("uploadStatus","uploading",r)})),e})).then((function(n){i.enqueueChange({isUndoable:!1},(function(i){var r=l.get(t.id);i.setAttribute("uploadStatus","complete",r),e.fire("uploadComplete",{data:n,imageElement:r})})),c()})).catch((function(e){if("error"!==t.status&&"aborted"!==t.status)throw e;"error"==t.status&&e&&a.showWarning(e,{title:r("Upload failed"),namespace:"upload"}),i.enqueueChange({isUndoable:!1},(function(e){e.remove(l.get(t.id))})),c()}));function c(){i.enqueueChange({isUndoable:!1},(function(e){var n=l.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),l.delete(t.id)})),o.destroyLoader(t)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(t,e,n){var i=0,r=Object.keys(t).filter((function(t){var e=parseInt(t,10);if(!isNaN(e))return i=Math.max(i,e),!0})).map((function(e){return"".concat(t[e]," ").concat(e,"w")})).join(", ");""!=r&&n.setAttribute("srcset",{data:r,width:i},e)}}],[{key:"requires",get:function(){return[Op,Xd,Vh,Gg]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}])}(ct);function tv(t,e){var n=t.plugins.get("ImageUtils");return Array.from(t.model.createRangeOn(e)).filter((function(t){return n.isImage(t.item)})).map((function(t){return t.item}))}var ev=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.commands.add("indent",new ft(t)),t.commands.add("outdent",new ft(t))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}])}(ct),nv='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',iv='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',rv=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?nv:iv,r="ltr"==e.uiLanguageDirection?iv:nv;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),r)}},{key:"_defineButton",value:function(t,e,n){var i=this,r=this.editor;r.ui.componentFactory.add(t,(function(o){var a=r.commands.get(t),s=new ld(o);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),i.listenTo(s,"execute",(function(){r.execute(t),r.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}])}(ct),ov=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t]))._indentBehavior=n,i}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model,e=ja(t.document.selection.getSelectedBlocks());e&&t.schema.checkAttribute(e,"blockIndent")?this.isEnabled=this._indentBehavior.checkEnabled(e.getAttribute("blockIndent")):this.isEnabled=!1}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=function(t){var e=t.document.selection,n=t.schema;return Array.from(e.getSelectedBlocks()).filter((function(t){return n.checkAttribute(t,"blockIndent")}))}(e);e.change((function(e){var i,r=b(n);try{for(r.s();!(i=r.n()).done;){var o=i.value,a=o.getAttribute("blockIndent"),s=t._indentBehavior.getNextIndent(a);s?e.setAttribute("blockIndent",s,o):e.removeAttribute("blockIndent",o)}}catch(t){r.e(t)}finally{r.f()}}))}}])}(dt),av=function(){return M((function t(e){P(this,t),this.isForward="forward"===e.direction,this.offset=e.offset,this.unit=e.unit}),[{key:"checkEnabled",value:function(t){var e=parseFloat(t||0);return this.isForward||e>0}},{key:"getNextIndent",value:function(t){var e=parseFloat(t||0);if(t&&!t.endsWith(this.unit))return this.isForward?this.offset+this.unit:void 0;var n=e+(this.isForward?this.offset:-this.offset);return n>0?n+this.unit:void 0}}])}(),sv=function(){return M((function t(e){P(this,t),this.isForward="forward"===e.direction,this.classes=e.classes}),[{key:"checkEnabled",value:function(t){var e=this.classes.indexOf(t);return this.isForward?e<this.classes.length-1:e>=0}},{key:"getNextIndent",value:function(t){var e=this.classes.indexOf(t),n=this.isForward?1:-1;return this.classes[e+n]}}])}(),lv=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"],cv=function(){return M((function t(){P(this,t),this._definitions=new Set}),[{key:"length",get:function(){return this._definitions.size}},{key:"add",value:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){return e._definitions.add(t)})):this._definitions.add(t)}},{key:"getDispatcher",value:function(){var t=this;return function(e){e.on("attribute:linkHref",(function(e,n,i){if(i.consumable.test(n.item,"attribute:linkHref")&&(n.item.is("selection")||i.schema.isInline(n.item))){var r,o=i.writer,a=o.document.selection,s=b(t._definitions);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=o.createAttributeElement("a",l.attributes,{priority:5});for(var u in l.classes&&o.addClass(l.classes,c),l.styles)o.setStyle(u,l.styles[u],c);o.setCustomProperty("link",!0,c),l.callback(n.attributeNewValue)?n.item.is("selection")?o.wrap(a.getFirstRange(),c):o.wrap(i.mapper.toViewRange(n.range),c):o.unwrap(i.mapper.toViewRange(n.range),c)}}catch(t){s.e(t)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var t=this;return function(e){e.on("attribute:linkHref:imageBlock",(function(e,n,i){var r,o=i.writer,a=i.mapper.toViewElement(n.item),s=Array.from(a.getChildren()).find((function(t){return"a"===t.name})),l=b(t._definitions);try{for(l.s();!(r=l.n()).done;){var c=r.value,u=hi(c.attributes);if(c.callback(n.attributeNewValue)){var d,h=b(u);try{for(h.s();!(d=h.n()).done;){var f=v(d.value,2),p=f[0],g=f[1];"class"===p?o.addClass(g,s):o.setAttribute(p,g,s)}}catch(t){h.e(t)}finally{h.f()}for(var m in c.classes&&o.addClass(c.classes,s),c.styles)o.setStyle(m,c.styles[m],s)}else{var k,y=b(u);try{for(y.s();!(k=y.n()).done;){var w=v(k.value,2),_=w[0],A=w[1];"class"===_?o.removeClass(A,s):o.removeAttribute(_,s)}}catch(t){y.e(t)}finally{y.f()}for(var C in c.classes&&o.removeClass(c.classes,s),c.styles)o.removeStyle(C,s)}}}catch(t){l.e(t)}finally{l.f()}}))}}}])}(),uv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),dv=function(t){return uv.test(t)},hv="\\ud800-\\udfff",fv="["+hv+"]",pv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",gv="\\ud83c[\\udffb-\\udfff]",mv="[^"+hv+"]",vv="(?:\\ud83c[\\udde6-\\uddff]){2}",bv="[\\ud800-\\udbff][\\udc00-\\udfff]",kv="(?:"+pv+"|"+gv+")?",yv="[\\ufe0e\\ufe0f]?",wv=yv+kv+"(?:\\u200d(?:"+[mv,vv,bv].join("|")+")"+yv+kv+")*",_v="(?:"+[mv+pv+"?",pv,vv,bv,fv].join("|")+")",Av=RegExp(gv+"(?="+gv+")|"+_v+wv,"g"),Cv=function(t){return dv(t)?function(t){return t.match(Av)||[]}(t):function(t){return t.split("")}(t)},xv=function(t){t=Ti(t);var e=dv(t)?Cv(t):void 0,n=e?e[0]:t.charAt(0),i=e?function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:Pi(t,e,n)}(e,1).join(""):t.slice(1);return n.toUpperCase()+i},Dv=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ev=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Sv=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Tv=/^((\w+:(\/{2,})?)|(\W))/i,Iv="Ctrl+K";function Mv(t,e){var n=e.writer,i=n.createAttributeElement("a",{href:t},{priority:5});return n.setCustomProperty("link",!0,i),i}function Ov(t){return function(t){return t.replace(Dv,"").match(Ev)}(t=String(t))?t:"#"}function Pv(t,e){return!!t&&e.checkAttribute(t.name,"linkHref")}function Nv(t,e){var n,i=(n=t,Sv.test(n)?"mailto:":e),r=!!i&&!Tv.test(t);return t&&r?i+t:t}function Bv(t){window.open(t,"_blank","noopener")}var Lv=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).manualDecorators=new Zn,n.automaticDecorators=new cv,n}return C(e,t),M(e,[{key:"restoreManualDecoratorStates",value:function(){var t,e=b(this.manualDecorators);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(t){e.e(t)}finally{e.f()}}},{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||ja(e.getSelectedBlocks());Pv(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));var i,r=b(this.manualDecorators);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(t){r.e(t)}finally{r.f()}}},{key:"execute",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,r=i.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);i.change((function(n){if(r.isCollapsed){var s=r.getFirstPosition();if(r.hasAttribute("linkHref")){var l=kp(s,"linkHref",r.getAttribute("linkHref"),i);n.setAttribute("linkHref",t,l),o.forEach((function(t){n.setAttribute(t,!0,l)})),a.forEach((function(t){n.removeAttribute(t,l)})),n.setSelection(n.createPositionAfter(l.end.nodeBefore))}else if(""!==t){var c=hi(r.getAttributes());c.set("linkHref",t),o.forEach((function(t){c.set(t,!0)}));var u=i.insertContent(n.createText(t,c),s).end;n.setSelection(u)}["linkHref"].concat(o,a).forEach((function(t){n.removeSelectionAttribute(t)}))}else{var d,h=i.schema.getValidRanges(r.getRanges(),"linkHref"),f=[],p=b(r.getSelectedBlocks());try{for(p.s();!(d=p.n()).done;){var g=d.value;i.schema.checkAttribute(g,"linkHref")&&f.push(n.createRangeOn(g))}}catch(t){p.e(t)}finally{p.f()}var m,v=f.slice(),k=b(h);try{for(k.s();!(m=k.n()).done;){var y=m.value;e._isRangeToUpdate(y,f)&&v.push(y)}}catch(t){k.e(t)}finally{k.f()}var w,_=b(v);try{var A=function(){var e=w.value;n.setAttribute("linkHref",t,e),o.forEach((function(t){n.setAttribute(t,!0,e)})),a.forEach((function(t){n.removeAttribute(t,e)}))};for(_.s();!(w=_.n()).done;)A()}catch(t){_.e(t)}finally{_.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(t){var e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return Pv(i,e.schema)?i.getAttribute(t):n.getAttribute(t)}},{key:"_isRangeToUpdate",value:function(t,e){var n,i=b(e);try{for(i.s();!(n=i.n()).done;){if(n.value.containsRange(t))return!1}}catch(t){i.e(t)}finally{i.f()}return!0}}])}(dt),jv=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();Pv(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}},{key:"execute",value:function(){var t=this.editor,e=this.editor.model,n=e.document.selection,i=t.commands.get("link");e.change((function(t){var r,o=b(n.isCollapsed?[kp(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref"));try{for(o.s();!(r=o.n()).done;){var a=r.value;if(t.removeAttribute("linkHref",a),i){var s,l=b(i.manualDecorators);try{for(l.s();!(s=l.n()).done;){var c=s.value;t.removeAttribute(c.id,a)}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){o.e(t)}finally{o.f()}}))}}])}(dt),Rv=function(){return M((function t(e){var n=e.id,i=e.label,r=e.attributes,o=e.classes,a=e.styles,s=e.defaultValue;P(this,t),this.id=n,this.set("value"),this.defaultValue=s,this.label=i,this.attributes=r,this.classes=o,this.styles=a}),[{key:"_createPattern",value:function(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}])}();lt(Rv,et);var zv=o(9773);Ao()(zv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),zv.Z.locals;var Fv="automatic",Hv=/^(https?:)?\/\//,Vv=function(t){function e(t){var n;return P(this,e),n=_(this,e,[t]),t.config.define("link",{addTargetToExternalLinks:!1}),n}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Mv}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(t,e){return Mv(Ov(t),e)}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(t){return t.getAttribute("href")}}}),t.commands.add("link",new Lv(t)),t.commands.add("unlink",new jv(t));var e=function(t,e){var n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((function(t){return t.label&&n[t.label]&&(t.label=n[t.label]),t})),e}(t.t,function(t){var e=[];if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1],s=Object.assign({},a,{id:"link".concat(xv(o))});e.push(s)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((function(t){return t.mode===Fv}))),this._enableManualDecorators(e.filter((function(t){return"manual"===t.mode}))),t.plugins.get(op).registerAttribute("linkHref"),function(t,e,n,i){var r=t.editing.view,o=new Set;r.document.registerPostFixer((function(n){var r=t.model.document.selection,a=!1;if(r.hasAttribute(e)){var s,l=kp(r.getFirstPosition(),e,r.getAttribute(e),t.model),c=b(t.editing.mapper.toViewRange(l).getItems());try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is("element","a")&&!u.hasClass(i)&&(n.addClass(i,u),o.add(u),a=!0)}}catch(t){c.e(t)}finally{c.f()}}return a})),t.conversion.for("editingDowncast").add((function(t){function e(){r.change((function(t){var e,n=b(o.values());try{for(n.s();!(e=n.n()).done;){var r=e.value;t.removeClass(i,r),o.delete(r)}}catch(t){n.e(t)}finally{n.f()}}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}(t,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(t){var e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Fv,callback:function(t){return Hv.test(t)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(t){if(t.length){var e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((function(t){e.model.schema.extend("$text",{allowAttributes:t.id}),t=new Rv(t),n.add(t),e.conversion.for("downcast").attributeToElement({model:t.id,view:function(e,n,i){var r=n.writer,o=n.schema,a=i.item;if((a.is("selection")||o.isInline(a))&&e){var s=r.createAttributeElement("a",t.attributes,{priority:5});for(var l in t.classes&&r.addClass(t.classes,s),t.styles)r.setStyle(l,t.styles[l],s);return r.setCustomProperty("link",!0,s),s}}}),e.conversion.for("upcast").elementToAttribute({view:h({name:"a"},t._createPattern()),model:{key:t.id}})}))}}},{key:"_enableLinkOpen",value:function(){var t=this.editor,e=t.editing.view.document,n=t.model.document;this.listenTo(e,"click",(function(t,e){if(Or.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey){var n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),n){var i=n.getAttribute("href");i&&(t.stop(),e.preventDefault(),Bv(i))}}}),{context:"$capture"}),this.listenTo(e,"enter",(function(t,e){var i=n.selection,r=i.getSelectedElement(),o=r?r.getAttribute("linkHref"):i.getAttribute("linkHref");o&&e.domEvent.altKey&&(t.stop(),Bv(o))}),{context:"a"})}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var t=this.editor.model,e=t.document.selection;this.listenTo(t,"insertContent",(function(){var n=e.anchor.nodeBefore,i=e.anchor.nodeAfter;e.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(i&&i.hasAttribute("linkHref")||t.change((function(e){Uv(e,qv(t.schema))})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var t=this.editor,e=t.model;t.editing.view.addObserver(Th);var n=!1;this.listenTo(t.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(t.editing.view.document,"selectionChange",(function(){if(n){n=!1;var t=e.document.selection;if(t.isCollapsed&&t.hasAttribute("linkHref")){var i=t.getFirstPosition(),r=kp(i,"linkHref",t.getAttribute("linkHref"),e);(i.isTouching(r.start)||i.isTouching(r.end))&&e.change((function(t){Uv(t,qv(e.schema))}))}}}))}},{key:"_enableTypingOverLink",value:function(){var t,e,n=this.editor,i=n.editing.view;this.listenTo(i.document,"delete",(function(){e=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var i=n.model.document.selection;i.isCollapsed||(e?e=!1:Wv(n)&&function(t){var e=t.document.selection,n=e.getFirstPosition(),i=e.getLastPosition(),r=n.nodeAfter;return!!r&&(!!r.is("$text")&&(!!r.hasAttribute("linkHref")&&(r===(i.textNode||i.nodeBefore)||kp(n,"linkHref",r.getAttribute("linkHref"),t).containsRange(t.createRange(n,i),!0))))}(n.model)&&(t=i.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(i,r){var o=v(r,1)[0];e=!1,Wv(n)&&t&&(n.model.change((function(e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),a=r[0],s=r[1];e.setAttribute(a,s,o)}}catch(t){i.e(t)}finally{i.f()}})),t=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view,r=!1,o=!1;this.listenTo(i.document,"delete",(function(t,e){o=e.domEvent.keyCode===Lr.backspace}),{priority:"high"}),this.listenTo(e,"deleteContent",(function(){r=!1;var t=n.getFirstPosition(),i=n.getAttribute("linkHref");if(i){var o=kp(t,"linkHref",i,e);r=o.containsPosition(t)||o.end.isEqual(t)}}),{priority:"high"}),this.listenTo(e,"deleteContent",(function(){o&&(o=!1,r||t.model.enqueueChange((function(t){Uv(t,qv(e.schema))})))}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[op,ep,Vh]}}])}(ct);function Uv(t,e){t.removeSelectionAttribute("linkHref");var n,i=b(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t.removeSelectionAttribute(r)}}catch(t){i.e(t)}finally{i.f()}}function Wv(t){return t.model.change((function(t){return t.batch})).isTyping}function qv(t){return t.getDefinition("$text").allowAttributes.filter((function(t){return t.startsWith("link")}))}var $v=o(7754);Ao()($v.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$v.Z.locals;var Yv=function(t){function e(t,n){var i;P(this,e),i=_(this,e,[t]);var r=t.t;i.focusTracker=new Ra,i.keystrokes=new za,i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(r("Save"),zu,"ck-button-save"),i.saveButtonView.type="submit",i.cancelButtonView=i._createButton(r("Cancel"),ju,"ck-button-cancel","cancel"),i._manualDecoratorSwitches=i._createManualDecoratorSwitches(n),i.children=i._createFormChildren(n.manualDecorators),i._focusables=new Gc,i._focusCycler=new kd({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var o=["ck","ck-link-form","ck-responsive-form"];return n.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),i.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:i.children}),nd(i),i}return C(e,t),M(e,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(t,e){return t[e.name]=e.isOn,t}),{})}},{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),id({view:this}),[this.urlInputView].concat(k(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var t=this.locale.t,e=new Zd(this.locale,Jd);return e.label=t("Link URL"),e}},{key:"_createButton",value:function(t,e,n,i){var r=new ld(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"_createManualDecoratorSwitches",value:function(t){var e,n=this,i=this.createCollection(),r=b(t.manualDecorators);try{var o=function(){var r=e.value,o=new ud(n.locale);o.set({name:r.id,label:r.label,withText:!0}),o.bind("isOn").toMany([r,t],"value",(function(t,e){return void 0===e&&void 0===t?r.defaultValue:t})),o.on("execute",(function(){r.set("value",!o.isOn)})),i.add(o)};for(r.s();!(e=r.n()).done;)o()}catch(t){r.e(t)}finally{r.f()}return i}},{key:"_createFormChildren",value:function(t){var e=this.createCollection();if(e.add(this.urlInputView),t.length){var n=new mu;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(t){return{tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}])}(mu),Gv=o(2347);Ao()(Gv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Gv.Z.locals;var Kv=function(t){function e(t){var n;P(this,e),n=_(this,e,[t]);var i=t.t;return n.focusTracker=new Ra,n.keystrokes=new za,n.previewButtonView=n._createPreviewButton(),n.unlinkButtonView=n._createButton(i("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),n.editButtonView=n._createButton(i("Edit link"),Xu,"edit"),n.set("href"),n._focusables=new Gc,n._focusCycler=new kd({focusables:n._focusables,focusTracker:n.focusTracker,keystrokeHandler:n.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),n.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[n.previewButtonView,n.editButtonView,n.unlinkButtonView]}),n}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(t,e,n){var i=new ld(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}},{key:"_createPreviewButton",value:function(){var t=new ld(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",(function(t){return t&&Ov(t)})),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",(function(t){return t||n("This link has no URL")})),t.bind("isEnabled").to(this,"href",(function(t){return!!t})),t.template.tag="a",t.template.eventListeners={},t}}])}(mu),Qv="link-ui",Zv=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.editing.view.addObserver(Sh),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=t.plugins.get(rh),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),t.conversion.for("editingDowncast").markerToHighlight({model:Qv,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:Qv,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.formView.destroy()}},{key:"_createActionsView",value:function(){var t=this,e=this.editor,n=new Kv(e.locale),i=e.commands.get("link"),r=e.commands.get("unlink");return n.bind("href").to(i,"value"),n.editButtonView.bind("isEnabled").to(i),n.unlinkButtonView.bind("isEnabled").to(r),this.listenTo(n,"edit",(function(){t._addFormView()})),this.listenTo(n,"unlink",(function(){e.execute("unlink"),t._hideUI()})),n.keystrokes.set("Esc",(function(e,n){t._hideUI(),n()})),n.keystrokes.set(Iv,(function(e,n){t._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var t=this,e=this.editor,n=e.commands.get("link"),i=e.config.get("link.defaultProtocol"),r=new Yv(e.locale,n);return r.urlInputView.fieldView.bind("value").to(n,"value"),r.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(t){return!t})),r.saveButtonView.bind("isEnabled").to(n),this.listenTo(r,"submit",(function(){var n=Nv(r.urlInputView.fieldView.element.value,i);e.execute("link",n,r.getDecoratorSwitchesState()),t._closeFormView()})),this.listenTo(r,"cancel",(function(){t._closeFormView()})),r.keystrokes.set("Esc",(function(e,n){t._closeFormView(),n()})),r}},{key:"_createToolbarLinkButton",value:function(){var t=this,e=this.editor,n=e.commands.get("link"),i=e.t;e.keystrokes.set(Iv,(function(e,i){i(),n.isEnabled&&t._showUI(!0)})),e.ui.componentFactory.add("link",(function(e){var r=new ld(e);return r.isEnabled=!0,r.label=i("Link"),r.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',r.keystroke=Iv,r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(n,"isEnabled"),r.bind("isOn").to(n,"value",(function(t){return!!t})),t.listenTo(r,"execute",(function(){return t._showUI(!0)})),r}))}},{key:"_enableUserBalloonInteractions",value:function(){var t=this,e=this.editor.editing.view.document;this.listenTo(e,"click",(function(){t._getSelectedLinkElement()&&t._showUI()})),this.editor.keystrokes.set("Tab",(function(e,n){t._areActionsVisible&&!t.actionsView.focusTracker.isFocused&&(t.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(e,n){t._isUIVisible&&(t._hideUI(),n())})),ed({emitter:this.formView,activator:function(){return t._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return t._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}}},{key:"_closeFormView",value:function(){var t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var t=this,e=this.editor,n=e.editing.view.document,i=this._getSelectedLinkElement(),r=a(),o=function(){var e=t._getSelectedLinkElement(),n=a();i&&!e||!i&&n!==r?t._hideUI():t._isUIVisible&&t._balloon.updatePosition(t._getBalloonPositionData()),i=e,r=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(t){return t.is("element")}))}this.listenTo(e.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}},{key:"_getBalloonPositionData",value:function(){var t=this,e=this.editor.editing.view,n=this.editor.model,i=e.document,r=null;if(n.markers.has(Qv)){var o=Array.from(this.editor.editing.mapper.markerNameToElements(Qv)),a=e.createRange(e.createPositionBefore(o[0]),e.createPositionAfter(o[o.length-1]));r=e.domConverter.viewRangeToDom(a)}else r=function(){var n=t._getSelectedLinkElement();return n?e.domConverter.mapViewToDom(n):e.domConverter.viewRangeToDom(i.selection.getFirstRange())};return{target:r}}},{key:"_getSelectedLinkElement",value:function(){var t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&sf(n))return Jv(e.getFirstPosition());var i=e.getFirstRange().getTrimmed(),r=Jv(i.start),o=Jv(i.end);return r&&r==o&&t.createRangeIn(r).getTrimmed().isEqual(i)?r:null}},{key:"_showFakeVisualSelection",value:function(){var t=this.editor.model;t.change((function(e){var n=t.document.selection.getFirstRange();if(t.markers.has(Qv))e.updateMarker(Qv,{range:n});else if(n.start.isAtEnd){var i=n.start.getLastMatchingPosition((function(e){var n=e.item;return!t.schema.isContent(n)}),{boundaries:n});e.addMarker(Qv,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(Qv,{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var t=this.editor.model;t.markers.has(Qv)&&t.change((function(t){t.removeMarker(Qv)}))}}],[{key:"requires",get:function(){return[rh]}},{key:"pluginName",get:function(){return"LinkUI"}}])}(ct);function Jv(t){return t.getAncestors().find((function(t){return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))}var Xv=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i"),tb=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.model.document.selection;e.on("change:range",(function(){t.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var t=this,e=this.editor,n=new rp(e.model,(function(t){if(function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t)){var e=eb(t.substr(0,t.length-1));return e?{url:e}:void 0}}));n.on("matched:data",(function(n,i){var r=i.batch,o=i.range,a=i.url;if(r.isTyping){var s=o.end.getShiftedBy(-1),l=s.getShiftedBy(-a.length),c=e.model.createRange(l,s);t._applyAutoLink(a,c)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var t=this,e=this.editor,n=e.model,i=e.commands.get("enter");i&&i.on("execute",(function(){var e=n.document.selection.getFirstPosition();if(e.parent.previousSibling){var i=n.createRangeIn(e.parent.previousSibling);t._checkAndApplyAutoLinkOnRange(i)}}))}},{key:"_enableShiftEnterHandling",value:function(){var t=this,e=this.editor,n=e.model,i=e.commands.get("shiftEnter");i&&i.on("execute",(function(){var e=n.document.selection.getFirstPosition(),i=n.createRange(n.createPositionAt(e.parent,0),e.getShiftedBy(-1));t._checkAndApplyAutoLinkOnRange(i)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(t){var e=this.editor.model,n=ip(t,e),i=n.text,r=n.range,o=eb(i);if(o){var a=e.createRange(r.end.getShiftedBy(-o.length),r.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(t,e){var n=this,i=this.editor.model,r=this.editor.plugins.get("Delete");this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,i)&&i.enqueueChange((function(o){var a=n.editor.config.get("link.defaultProtocol"),s=Nv(t,a);o.setAttribute("linkHref",s,e),i.enqueueChange((function(){r.requestUndoOnBackspace()}))}))}}],[{key:"requires",get:function(){return[tf]}},{key:"pluginName",get:function(){return"AutoLink"}}])}(ct);function eb(t){var e=Xv.exec(t);return e?e[2]:null}var nb=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t])).type=n,i}return C(e,t),M(e,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document,r=Array.from(i.selection.getSelectedBlocks()).filter((function(t){return rb(t,n.schema)})),o=void 0!==e.forceValue?!e.forceValue:this.value;n.change((function(e){if(o){for(var n=r[r.length-1].nextSibling,i=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s<i&&(i=s);var l=s-i;a.push({element:n,listIndent:l}),n=n.nextSibling}var c,u=b(a=a.reverse());try{for(u.s();!(c=u.n()).done;){var d=c.value;e.setAttribute("listIndent",d.listIndent,d.element)}}catch(t){u.e(t)}finally{u.f()}}if(!o){var h,f=Number.POSITIVE_INFINITY,p=b(r);try{for(p.s();!(h=p.n()).done;){var g=h.value;g.is("element","listItem")&&g.getAttribute("listIndent")<f&&(f=g.getAttribute("listIndent"))}}catch(t){p.e(t)}finally{p.f()}ib(r,!0,f=0===f?1:f),ib(r,!1,f)}var m,v=b(r.reverse());try{for(v.s();!(m=v.n()).done;){var k=m.value;o&&"listItem"==k.name?e.rename(k,"paragraph"):o||"listItem"==k.name?o||"listItem"!=k.name||k.getAttribute("listType")==t.type||e.setAttribute("listType",t.type,k):(e.setAttributes({listType:t.type,listIndent:0},k),e.rename(k,"listItem"))}}catch(t){v.e(t)}finally{v.f()}t.fire("_executeCleanup",r)}))}},{key:"_getValue",value:function(){var t=ja(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var t=this.editor.model.document.selection,e=this.editor.model.schema,n=ja(t.getSelectedBlocks());return!!n&&rb(n,e)}}])}(dt);function ib(t,e,n){var i=e?t[0]:t[t.length-1];if(i.is("element","listItem"))for(var r=i[e?"previousSibling":"nextSibling"],o=i.getAttribute("listIndent");r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=n;)o>r.getAttribute("listIndent")&&(o=r.getAttribute("listIndent")),r.getAttribute("listIndent")==o&&t[e?"unshift":"push"](r),r=r[e?"previousSibling":"nextSibling"]}function rb(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}var ob=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t]))._indentBy="forward"==n?1:-1,i}return C(e,t),M(e,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document,i=Array.from(n.selection.getSelectedBlocks());e.change((function(e){for(var n=i[i.length-1],r=n.nextSibling;r&&"listItem"==r.name&&r.getAttribute("listIndent")>n.getAttribute("listIndent");)i.push(r),r=r.nextSibling;t._indentBy<0&&(i=i.reverse());var o,a=b(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.getAttribute("listIndent")+t._indentBy;l<0?e.rename(s,"paragraph"):e.setAttribute("listIndent",l,s)}}catch(t){a.e(t)}finally{a.f()}t.fire("_executeCleanup",i)}))}},{key:"_checkEnabled",value:function(){var t=ja(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){for(var e=t.getAttribute("listIndent"),n=t.getAttribute("listType"),i=t.previousSibling;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=e;){if(i.getAttribute("listIndent")==e)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}])}(dt);function ab(t,e,n,i){var r=e.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(i.createPositionBefore(t)),l=cb(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),c=t.previousSibling;if(l&&l.getAttribute("listIndent")==t.getAttribute("listIndent")){var u=o.toViewElement(l);s=a.breakContainer(a.createPositionAfter(u))}else if(c&&"listItem"==c.name){s=o.toViewPosition(i.createPositionAt(c,"end"));var d=o.findMappedViewAncestor(s),h=function(t){var e,n=b(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if("ul"==i.name||"ol"==i.name)return i}}catch(t){n.e(t)}finally{n.f()}return null}(d);s=h?a.createPositionBefore(h):a.createPositionAt(d,"end")}else s=o.toViewPosition(i.createPositionBefore(t));if(s=lb(s),a.insert(s,r),c&&"listItem"==c.name){var f,p=o.toViewElement(c),g=a.createRange(a.createPositionAt(p,0),s).getWalker({ignoreElementEnd:!0}),m=b(g);try{for(m.s();!(f=m.n()).done;){var v=f.value;if(v.item.is("element","li")){var k=a.breakContainer(a.createPositionBefore(v.item)),y=v.item.parent,w=a.createPositionAt(e,"end");sb(a,w.nodeBefore,w.nodeAfter),a.move(a.createRangeOn(y),w),g.position=k}}}catch(t){m.e(t)}finally{m.f()}}else{var _=r.nextSibling;if(_&&(_.is("element","ul")||_.is("element","ol"))){var A,C=null,x=b(_.getChildren());try{for(x.s();!(A=x.n()).done;){var D=A.value,E=o.toModelElement(D);if(!(E&&E.getAttribute("listIndent")>t.getAttribute("listIndent")))break;C=D}}catch(t){x.e(t)}finally{x.f()}C&&(a.breakContainer(a.createPositionAfter(C)),a.move(a.createRangeOn(C.parent),a.createPositionAt(e,"end")))}}sb(a,r,r.nextSibling),sb(a,r.previousSibling,r)}function sb(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function lb(t){return t.getLastMatchingPosition((function(t){return t.item.is("uiElement")}))}function cb(t,e){for(var n=!!e.sameIndent,i=!!e.smallerIndent,r=e.listIndent,o=t;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&r==a||i&&r>a)return o;o="forward"===e.direction?o.nextSibling:o.previousSibling}return null}function ub(t,e,n,i){t.ui.componentFactory.add(e,(function(r){var o=t.commands.get(e),a=new ld(r);return a.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){t.execute(e),t.editing.view.focus()})),a}))}function db(){var t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:rr.call(this)}function hb(t){return function(e,n,i){var r=i.consumable;if(r.test(n.item,"insert")&&r.test(n.item,"attribute:listType")&&r.test(n.item,"attribute:listIndent")){r.consume(n.item,"insert"),r.consume(n.item,"attribute:listType"),r.consume(n.item,"attribute:listIndent");var o=n.item;ab(o,function(t,e){var n=e.mapper,i=e.writer,r="numbered"==t.getAttribute("listType")?"ol":"ul",o=function(t){var e=t.createContainerElement("li");return e.getFillerOffset=db,e}(i),a=i.createContainerElement(r,null);return i.insert(i.createPositionAt(a,0),o),n.bindElements(t,o),o}(o,i),i,t)}}}function fb(t,e,n){if(n.consumable.test(e.item,t.name)){var i=n.mapper.toViewElement(e.item),r=n.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));var o=i.parent,a="numbered"==e.attributeNewValue?"ol":"ul";r.rename(a,o)}}function pb(t,e,n){n.consumable.consume(e.item,t.name);var i=n.mapper.toViewElement(e.item).parent,r=n.writer;sb(r,i,i.nextSibling),sb(r,i.previousSibling,i)}function gb(t,e,n){if(n.consumable.test(e.item,t.name)&&"listItem"!=e.item.name){for(var i=n.mapper.toViewPosition(e.range.start),r=n.writer,o=[];("ul"==i.parent.name||"ol"==i.parent.name)&&"li"==(i=r.breakContainer(i)).parent.name;){var a=i,s=r.createPositionAt(i.parent,"end");if(!a.isEqual(s)){var l=r.remove(r.createRange(a,s));o.push(l)}i=r.createPositionAfter(i.parent)}if(o.length>0){for(var c=0;c<o.length;c++){var u=i.nodeBefore;if(i=r.insert(i,o[c]).end,c>0){var d=sb(r,u,u.nextSibling);d&&d.parent==u&&i.offset--}}sb(r,i.nodeBefore,i.nodeAfter)}}}function mb(t,e,n){var i=n.mapper.toViewPosition(e.position),r=i.nodeBefore,o=i.nodeAfter;sb(n.writer,r,o)}function vb(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0})){var i=n.writer,r=i.createElement("listItem"),o=function(t){for(var e=0,n=t.parent;n;){if(n.is("element","li"))e++;else{var i=n.previousSibling;i&&i.is("element","li")&&e++}n=n.parent}return e}(e.viewItem);i.setAttribute("listIndent",o,r);var a=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(i.setAttribute("listType",a,r),!n.safeInsert(r,e.modelCursor))return;var s=function(t,e,n){var i,r=n.writer,o=n.schema,a=r.createPositionAfter(t),s=b(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;if("ul"==l.name||"ol"==l.name)a=n.convertItem(l,a).modelCursor;else{var c=n.convertItem(l,r.createPositionAt(t,"end")),u=c.modelRange.start.nodeAfter;u&&u.is("element")&&!o.checkChild(t,u.name)&&(t=c.modelCursor.parent.is("element","listItem")?c.modelCursor.parent:_b(c.modelCursor),a=r.createPositionAfter(t))}}}catch(t){s.e(t)}finally{s.f()}return a}(r,e.viewItem.getChildren(),n);e.modelRange=i.createRange(e.modelCursor,s),n.updateConversionResult(r,e)}}function bb(t,e,n){if(n.consumable.test(e.viewItem,{name:!0}))for(var i=0,r=Array.from(e.viewItem.getChildren());i<r.length;i++){var o=r[i];!o.is("element","li")&&!Cb(o)&&o._remove()}}function kb(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;var i,r=!1,o=b(k(e.viewItem.getChildren()));try{for(o.s();!(i=o.n()).done;){var a=i.value;r&&!Cb(a)&&a._remove(),Cb(a)&&(r=!0)}}catch(t){o.e(t)}finally{o.f()}}}function yb(t){return function(e,n){if(!n.isPhantom){var i=n.modelPosition.nodeBefore;if(i&&i.is("element","listItem")){var r,o=n.mapper.toViewElement(i),a=o.getAncestors().find(Cb),s=b(t.createPositionAt(o,0).getWalker());try{for(s.s();!(r=s.n()).done;){var l=r.value;if("elementStart"==l.type&&l.item.is("element","li")){n.viewPosition=l.previousPosition;break}if("elementEnd"==l.type&&l.item==a){n.viewPosition=l.nextPosition;break}}}catch(t){s.e(t)}finally{s.f()}}}}}function wb(t,e){var n,i=v(e,2),r=i[0],o=i[1],a=r.is("documentFragment")?r.getChild(0):r;if(n=o?this.createSelection(o):this.document.selection,a&&a.is("element","listItem")){var s=n.getFirstPosition(),l=null;if(s.parent.is("element","listItem")?l=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(l=s.nodeBefore),l){var c=l.getAttribute("listIndent");if(c>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+c),a=a.nextSibling}}}function _b(t){var e,n=new ds({startPosition:t});do{e=n.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Ab(t,e,n,i,r,o){var a,s=cb(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t,foo:"b"}),l=r.mapper,c=r.writer,u=s?s.getAttribute("listIndent"):null;if(s)if(u==t){var d=l.toViewElement(s).parent;a=c.createPositionAfter(d)}else{var h=o.createPositionAt(s,"end");a=l.toViewPosition(h)}else a=n;a=lb(a);for(var f=0,p=k(i.getChildren());f<p.length;f++){var g=p[f];Cb(g)&&(a=c.move(c.createRangeOn(g),a).end,sb(c,g,g.nextSibling),sb(c,g.previousSibling,g))}}function Cb(t){return t.is("element","ol")||t.is("element","ul")}var xb=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor;e.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,i=e.data,r=e.editing;e.model.document.registerPostFixer((function(t){return function(t,e){var n,i=t.document.differ.getChanges(),r=new Map,o=!1,a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("insert"==s.type&&"listItem"==s.name)p(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){var l=s.position.nodeAfter;l.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",l),o=!0),l.hasAttribute("listType")&&(e.removeAttribute("listType",l),o=!0),l.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",l),o=!0),l.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",l),o=!0),l.hasAttribute("listStart")&&(e.removeAttribute("listStart",l),o=!0);var c,u=b(Array.from(t.createRangeIn(l)).filter((function(t){return t.item.is("element","listItem")})));try{for(u.s();!(c=u.n()).done;){p(c.value.previousPosition)}}catch(t){u.e(t)}finally{u.f()}}p(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?p(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&p(s.range.start)}}catch(t){a.e(t)}finally{a.f()}var d,h=b(r.values());try{for(h.s();!(d=h.n()).done;){var f=d.value;g(f),m(f)}}catch(t){h.e(t)}finally{h.f()}return o;function p(t){var e=t.nodeBefore;if(e&&e.is("element","listItem")){var n=e;if(r.has(n))return;for(var i=n.previousSibling;i&&i.is("element","listItem");i=n.previousSibling)if(n=i,r.has(n))return;r.set(e,n)}else{var o=t.nodeAfter;o&&o.is("element","listItem")&&r.set(o,o)}}function g(t){for(var n=0,i=null;t&&t.is("element","listItem");){var r=t.getAttribute("listIndent");if(r>n){var a=void 0;null===i?(i=r-n,a=n):(i>r&&(i=r),a=r-i),e.setAttribute("listIndent",a,t),o=!0}else i=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function m(t){for(var n=[],i=null;t&&t.is("element","listItem");){var r=t.getAttribute("listIndent");if(i&&i.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){var a=n[r];t.getAttribute("listType")!=a&&(e.setAttribute("listType",a,t),o=!0)}else n[r]=t.getAttribute("listType");i=t,t=t.nextSibling}}}(e.model,t)})),r.mapper.registerViewToModelLength("li",Db),i.mapper.registerViewToModelLength("li",Db),r.mapper.on("modelToViewPosition",yb(r.view)),r.mapper.on("viewToModelPosition",(n=e.model,function(t,e){var i=e.viewPosition,r=i.parent,o=e.mapper;if("ul"==r.name||"ol"==r.name){if(i.isAtEnd){var a=o.toModelElement(i.nodeBefore),s=o.getModelLength(i.nodeBefore);e.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var l=o.toModelElement(i.nodeAfter);e.modelPosition=n.createPositionBefore(l)}t.stop()}else if("li"==r.name&&i.nodeBefore&&("ul"==i.nodeBefore.name||"ol"==i.nodeBefore.name)){for(var c=o.toModelElement(r),u=1,d=i.nodeBefore;d&&Cb(d);)u+=o.getModelLength(d),d=d.previousSibling;e.modelPosition=n.createPositionBefore(c).getShiftedBy(u),t.stop()}})),i.mapper.on("modelToViewPosition",yb(r.view)),e.conversion.for("editingDowncast").add((function(t){t.on("insert",gb,{priority:"high"}),t.on("insert:listItem",hb(e.model)),t.on("attribute:listType:listItem",fb,{priority:"high"}),t.on("attribute:listType:listItem",pb,{priority:"low"}),t.on("attribute:listIndent:listItem",function(t){return function(e,n,i){if(i.consumable.consume(n.item,"attribute:listIndent")){var r=i.mapper.toViewElement(n.item),o=i.writer;o.breakContainer(o.createPositionBefore(r)),o.breakContainer(o.createPositionAfter(r));var a=r.parent,s=a.previousSibling,l=o.createRangeOn(a);o.remove(l),s&&s.nextSibling&&sb(o,s,s.nextSibling),Ab(n.attributeOldValue+1,n.range.start,l.start,r,i,t),ab(n.item,r,i,t);var c,u=b(n.item.getChildren());try{for(u.s();!(c=u.n()).done;){var d=c.value;i.consumable.consume(d,"insert")}}catch(t){u.e(t)}finally{u.f()}}}}(e.model)),t.on("remove:listItem",function(t){return function(e,n,i){var r=i.mapper.toViewPosition(n.position).getLastMatchingPosition((function(t){return!t.item.is("element","li")})).nodeAfter,o=i.writer;o.breakContainer(o.createPositionBefore(r)),o.breakContainer(o.createPositionAfter(r));var a=r.parent,s=a.previousSibling,l=o.createRangeOn(a),c=o.remove(l);s&&s.nextSibling&&sb(o,s,s.nextSibling),Ab(i.mapper.toModelElement(r).getAttribute("listIndent")+1,n.position,l.start,r,i,t);var u,d=b(o.createRangeIn(c).getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;i.mapper.unbindViewElement(h)}}catch(t){d.e(t)}finally{d.f()}e.stop()}}(e.model)),t.on("remove",mb,{priority:"low"})})),e.conversion.for("dataDowncast").add((function(t){t.on("insert",gb,{priority:"high"}),t.on("insert:listItem",hb(e.model))})),e.conversion.for("upcast").add((function(t){t.on("element:ul",bb,{priority:"high"}),t.on("element:ol",bb,{priority:"high"}),t.on("element:li",kb,{priority:"high"}),t.on("element:li",vb)})),e.model.on("insertContent",wb,{priority:"high"}),e.commands.add("numberedList",new nb(e,"numbered")),e.commands.add("bulletedList",new nb(e,"bulleted")),e.commands.add("indentList",new ob(e,"forward")),e.commands.add("outdentList",new ob(e,"backward"));var o=r.view.document;this.listenTo(o,"enter",(function(e,n){var i=t.editor.model.document,r=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==r.name&&r.isEmpty&&(t.editor.execute("outdentList"),n.preventDefault(),e.stop())}),{context:"li"}),this.listenTo(o,"delete",(function(e,n){if("backward"===n.direction){var i=t.editor.model.document.selection;if(i.isCollapsed){var r=i.getFirstPosition();if(r.isAtStart){var o=r.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(t.editor.execute("outdentList"),n.preventDefault(),e.stop()))}}}}),{context:"li"}),this.listenTo(e.editing.view.document,"tab",(function(n,i){var r=i.shiftKey?"outdentList":"indentList";t.editor.commands.get(r).isEnabled&&(e.execute(r),i.stopPropagation(),i.preventDefault(),n.stop())}),{context:"li"})}},{key:"afterInit",value:function(){var t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[Yh,tf]}}])}(ct);function Db(t){var e,n=1,i=b(t.getChildren());try{for(i.s();!(e=i.n()).done;){var r=e.value;if("ul"==r.name||"ol"==r.name){var o,a=b(r.getChildren());try{for(a.s();!(o=a.n()).done;){n+=Db(o.value)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){i.e(t)}finally{i.f()}return n}var Eb=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor.t;ub(this.editor,"numberedList",t("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),ub(this.editor,"bulletedList",t("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}],[{key:"pluginName",get:function(){return"ListUI"}}])}(ct);function Sb(t,e){return function(t){t.on("attribute:url:media",n)};function n(n,i,r){if(r.consumable.consume(i.item,n.name)){var o=i.attributeNewValue,a=r.writer,s=r.mapper.toViewElement(i.item),l=k(s.getChildren()).find((function(t){return t.getCustomProperty("media-content")}));a.remove(l);var c=t.getMediaViewElement(a,o,e);a.insert(a.createPositionAt(s,0),c)}}}function Tb(t,e,n,i){return t.createContainerElement("figure",{class:"media"},[e.getMediaViewElement(t,n,i),t.createSlot()])}function Ib(t){var e=t.getSelectedElement();return e&&e.is("element","media")?e:null}function Mb(t,e,n,i){t.change((function(r){var o=r.createElement("media",{url:e});t.insertObject(o,n,null,{setSelection:"on",findOptimalPosition:i})}))}var Ob=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=Ib(e);this.value=n?n.getAttribute("url"):null,this.isEnabled=function(t){var e=t.getSelectedElement();return!!e&&"media"===e.name}(e)||function(t,e){var n=pf(t,e).start.parent;return n.isEmpty&&!e.schema.isLimit(n)&&(n=n.parent),e.schema.checkChild(n,"media")}(e,t)}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document.selection,i=Ib(n);i?e.change((function(e){e.setAttribute("url",t,i)})):Mb(e,t,n,!0)}}])}(dt),Pb=function(){return M((function t(e,n){P(this,t);var i=n.providers,r=n.extraProviders||[],o=new Set(n.removeProviders),a=i.concat(r).filter((function(t){var e=t.name;return e?!o.has(e):(T("media-embed-no-provider-name",{provider:t}),!1)}));this.locale=e,this.providerDefinitions=a}),[{key:"hasMedia",value:function(t){return!!this._getMedia(t)}},{key:"getMediaViewElement",value:function(t,e,n){return this._getMedia(e).getViewElement(t,n)}},{key:"_getMedia",value:function(t){if(!t)return new Nb(this.locale);t=t.trim();var e,n=b(this.providerDefinitions);try{for(n.s();!(e=n.n()).done;){var i,r=e.value,o=r.html,a=b(Xn(r.url));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=this._getUrlMatches(t,s);if(l)return new Nb(this.locale,t,l,o)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(t,e){var n=t.match(e);if(n)return n;var i=t.replace(/^https?:\/\//,"");return(n=i.match(e))||((n=(i=i.replace(/^www\./,"")).match(e))||null)}}])}(),Nb=function(){return M((function t(e,n,i,r){P(this,t),this.url=this._getValidUrl(n),this._locale=e,this._match=i,this._previewRenderer=r}),[{key:"getViewElement",value:function(t,e){var n,i={};if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(i["data-oembed-url"]=this.url),e.renderForEditingView&&(i.class="ck-media__wrapper");var r=this._getPreviewHtml(e);n=t.createRawElement("div",i,(function(t,e){e.setContentOf(t,r)}))}else this.url&&(i.url=this.url),n=t.createEmptyElement(e.elementName,i);return t.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var t=new ad,e=this._locale.t;return t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Kc({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(t){return t?t.match(/^https?/)?t:"https://"+t:null}}])}(),Bb=o(7442);Ao()(Bb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Bb.Z.locals;var Lb=function(t){function e(t){var n;return P(this,e),n=_(this,e,[t]),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(t[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(t[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:function(t){var e=t[1],n=t[2];return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(e).concat(n?"?start=".concat(n):"",'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(t[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),n.registry=new Pb(t.locale,t.config.get("mediaEmbed")),n}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.t,i=t.conversion,r=t.config.get("mediaEmbed.previewsInData"),o=t.config.get("mediaEmbed.elementName"),a=this.registry;t.commands.add("mediaEmbed",new Ob(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),i.for("dataDowncast").elementToStructure({model:"media",view:function(t,e){var n=e.writer,i=t.getAttribute("url");return Tb(n,a,i,{elementName:o,renderMediaPreview:i&&r})}}),i.for("dataDowncast").add(Sb(a,{elementName:o,renderMediaPreview:r})),i.for("editingDowncast").elementToStructure({model:"media",view:function(t,e){var i=e.writer,r=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),lf(t,e,{label:n})}(Tb(i,a,r,{elementName:o,renderForEditingView:!0}),i,n("media widget"))}}),i.for("editingDowncast").add(Sb(a,{elementName:o,renderForEditingView:!0})),i.for("upcast").elementToElement({view:function(t){return["oembed",o].includes(t.name)&&t.getAttribute("url")?{name:!0}:null},model:function(t,e){var n=e.writer,i=t.getAttribute("url");if(a.hasMedia(i))return n.createElement("media",{url:i})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(t,e){var n=e.writer,i=t.getAttribute("data-oembed-url");if(a.hasMedia(i))return n.createElement("media",{url:i})}}).add((function(t){t.on("element:figure",(function(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0,classes:"media"})){var i=n.convertChildren(e.viewItem,e.modelCursor),r=i.modelRange,o=i.modelCursor;e.modelRange=r,e.modelCursor=o,ja(r.getItems())||n.consumable.revert(e.viewItem,{name:!0,classes:"media"})}}))}))}}],[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}])}(ct),jb=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/,Rb=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._timeoutId=null,n._positionToInsert=null,n}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(function(){var e=n.selection.getFirstRange(),i=Ec.fromPosition(e.start);i.stickiness="toPrevious";var r=Ec.fromPosition(e.end);r.stickiness="toNext",n.once("change:data",(function(){t._embedMediaBetweenPositions(i,r),i.detach(),r.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(function(){t._timeoutId&&(ti.window.clearTimeout(t._timeoutId),t._positionToInsert.detach(),t._timeoutId=null,t._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(t,e){var n,i=this,r=this.editor,o=r.plugins.get(Lb).registry,a=new Ts(t,e),s=a.getWalker({ignoreElementEnd:!0}),l="",c=b(s);try{for(c.s();!(n=c.n()).done;){var u=n.value;u.item.is("$textProxy")&&(l+=u.item.data)}}catch(t){c.e(t)}finally{c.f()}(l=l.trim()).match(jb)&&o.hasMedia(l)&&r.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Ec.fromPosition(t),this._timeoutId=ti.window.setTimeout((function(){r.model.change((function(t){var e;i._timeoutId=null,t.remove(a),a.detach(),"$graveyard"!==i._positionToInsert.root.rootName&&(e=i._positionToInsert),Mb(r.model,l,e,!1),i._positionToInsert.detach(),i._positionToInsert=null})),r.plugins.get("Delete").requestUndoOnBackspace()}),100)):a.detach()}}],[{key:"requires",get:function(){return[Ff,tf,Ip]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}])}(ct),zb=o(9292);Ao()(zb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),zb.Z.locals;var Fb=function(t){function e(t,n){var i;P(this,e),i=_(this,e,[n]);var r=n.t;return i.focusTracker=new Ra,i.keystrokes=new za,i.set("mediaURLInputValue",""),i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(r("Save"),zu,"ck-button-save"),i.saveButtonView.type="submit",i.saveButtonView.bind("isEnabled").to(i,"mediaURLInputValue",(function(t){return!!t})),i.cancelButtonView=i._createButton(r("Cancel"),ju,"ck-button-cancel","cancel"),i._focusables=new Gc,i._focusCycler=new kd({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i._validators=t,i.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[i.urlInputView,i.saveButtonView,i.cancelButtonView]}),nd(i),i}return C(e,t),M(e,[{key:"render",value:function(){var t=this;p(e,"render",this,3)([]),id({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);var n=function(t){return t.stopPropagation()};this.keystrokes.set("arrowright",n),this.keystrokes.set("arrowleft",n),this.keystrokes.set("arrowup",n),this.keystrokes.set("arrowdown",n),this.listenTo(this.urlInputView.element,"selectstart",(function(t,e){e.stopPropagation()}),{priority:"high"})}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(t){this.urlInputView.fieldView.element.value=t.trim()}},{key:"isValid",value:function(){this.resetFormStatus();var t,e=b(this._validators);try{for(e.s();!(t=e.n()).done;){var n=(0,t.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(t){e.e(t)}finally{e.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var t=this,e=this.locale.t,n=new Zd(this.locale,Jd),i=n.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),n.label=e("Media URL"),n.infoText=this._urlInputViewInfoDefault,i.on("input",(function(){n.infoText=i.element.value?t._urlInputViewInfoTip:t._urlInputViewInfoDefault,t.mediaURLInputValue=i.element.value.trim()})),n}},{key:"_createButton",value:function(t,e,n,i){var r=new ld(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}}])}(mu),Hb=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.commands.get("mediaEmbed"),i=e.plugins.get(Lb).registry;e.ui.componentFactory.add("mediaEmbed",(function(r){var o=Bd(r),a=new Fb(function(t,e){return[function(e){if(!e.url.length)return t("The URL must not be empty.")},function(n){if(!e.hasMedia(n.url))return t("This media URL is not supported.")}]}(e.t,i),e.locale);return t._setUpDropdown(o,a,n,e),t._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(t,e,n){var i=this.editor,r=i.t,o=t.buttonView;function a(){i.editing.view.focus(),t.isOpen=!1}t.bind("isEnabled").to(n),t.panelView.children.add(e),o.set({label:r("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),o.on("open",(function(){e.disableCssTransitions(),e.url=n.value||"",e.urlInputView.fieldView.select(),e.enableCssTransitions()}),{priority:"low"}),t.on("submit",(function(){e.isValid()&&(i.execute("mediaEmbed",e.url),a())})),t.on("change:isOpen",(function(){return e.resetFormStatus()})),t.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(t,e,n){e.delegate("submit","cancel").to(t),e.urlInputView.bind("value").to(n,"value"),e.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(t){return!t}))}}],[{key:"requires",get:function(){return[Lb]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}])}(ct),Vb=o(4652);function Ub(t){if(t.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(t){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return t;default:return null}}function Wb(t,e,n){var i=e.parent,r=n.createElement(t.type),o=i.getChildIndex(e)+1;return n.insertChild(o,r,i),t.style&&n.setStyle("list-style-type",t.style,r),t.startIndex&&t.startIndex>1&&n.setAttribute("start",t.startIndex,r),r}function qb(t){var e={},n=t.getStyle("mso-list");if(n){var i=n.match(/(^|\s{1,100})l(\d+)/i),r=n.match(/\s{0,100}lfo(\d+)/i),o=n.match(/\s{0,100}level(\d+)/i);i&&r&&o&&(e.id=i[2],e.order=r[1],e.indent=o[1])}return e}Ao()(Vb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vb.Z.locals;var $b=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i,Yb=function(){return M((function t(e){P(this,t),this.document=e}),[{key:"isActive",value:function(t){return $b.test(t)}},{key:"execute",value:function(t){var e=new Ih(this.document),n=t._parsedData.body;!function(t,e){var n,i=b(t.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.is("element","b")&&"normal"===r.getStyle("font-weight")){var o=t.getChildIndex(r);e.remove(r),e.insertChild(o,r.getChildren(),t)}}}catch(t){i.e(t)}finally{i.f()}}(n,e),function(t,e){var n,i=b(e.createRangeIn(t));try{for(i.s();!(n=i.n()).done;){var r=n.value.item;if(r.is("element","li")){var o=r.getChild(0);o&&o.is("element","p")&&e.unwrapElement(o)}}}catch(t){i.e(t)}finally{i.f()}}(n,e),t.content=n}}])}();function Gb(t){return btoa(t.match(/\w{2}/g).map((function(t){return String.fromCharCode(parseInt(t,16))})).join(""))}var Kb=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Qb=/xmlns:o="urn:schemas-microsoft-com/i,Zb=function(){return M((function t(e){P(this,t),this.document=e}),[{key:"isActive",value:function(t){return Kb.test(t)||Qb.test(t)}},{key:"execute",value:function(t){var e=t._parsedData,n=e.body;(function(t,e){if(t.childCount){var n=new Ih(t.document),i=function(t,e){var n,i=e.createRangeIn(t),r=new fi({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[],a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"===s.type&&r.match(s.item)){var l=qb(s.item);o.push({element:s.item,id:l.id,order:l.order,indent:l.indent})}}}catch(t){a.e(t)}finally{a.f()}return o}(t,n);if(i.length){var r=null,o=1;i.forEach((function(t,a){var s,l,c=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;var n,i=e.element.previousSibling;return!i||!((n=i).is("element","ol")||n.is("element","ul"))}(i[a-1],t),u=(l=t,(s=c?null:i[a-1])?l.indent-s.indent:l.indent-1);if(c&&(r=null,o=1),!r||0!==u){var d=function(t,e){var n=new RegExp("@list l".concat(t.id,":level").concat(t.indent,"\\s*({[^}]*)"),"gi").exec(e),i="decimal",r="ol",o=null;if(n&&n[1]){var a=/mso-level-number-format:([^;]{0,100});/gi.exec(n[1]);if(a&&a[1]&&(r="bullet"!==(i=a[1].trim())&&"image"!==i?"ol":"ul"),"bullet"===i){var s=function(t){var e=function(t){if(t.getChild(0).is("$text"))return null;var e,n=b(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.is("element","span")){var r=i.getChild(0);return r.is("$text")?r:r.getChild(0)}}}catch(t){n.e(t)}finally{n.f()}}(t);if(!e)return null;var n=e._data;return"o"===n?"circle":"·"===n?"disc":"§"===n?"square":null}(t.element);s&&(i=s)}else{var l=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi.exec(n[1]);l&&l[1]&&(o=parseInt(l[1]))}}return{type:r,startIndex:o,style:Ub(i)}}(t,e);if(r){if(t.indent>o){var h=r.getChild(r.childCount-1),f=h.getChild(h.childCount-1);r=Wb(d,f,n),o+=1}else if(t.indent<o){var p=o-t.indent;r=function(t,e){var n,i=null,r=0,o=b(t.getAncestors({parentFirst:!0}));try{for(o.s();!(n=o.n()).done;){var a=n.value;if("ul"!==a.name&&"ol"!==a.name||r++,r===e){i=a;break}}}catch(t){o.e(t)}finally{o.f()}return i}(r,p),o=parseInt(t.indent)}}else r=Wb(d,t.element,n);t.indent<=o&&(r.is("element",d.type)||(r=n.rename(d.type,r)))}var g=function(t,e){return function(t,e){var n,i=new fi({name:"span",styles:{"mso-list":"Ignore"}}),r=b(e.createRangeIn(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;"elementStart"===o.type&&i.match(o.item)&&e.remove(o.item)}}catch(t){r.e(t)}finally{r.f()}}(t,e),e.rename("li",t)}(t.element,n);n.appendChild(g,r)}))}}})(n,e.stylesString),function(t,e){if(t.childCount){var n=new Ih,i=function(t,e){var n,i=e.createRangeIn(t),r=new fi({name:/v:(.+)/}),o=[],a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"==s.type){var l=s.item,c=l.previousSibling&&l.previousSibling.name||null;r.match(l)&&l.getAttribute("o:gfxdata")&&"v:shapetype"!==c&&o.push(s.item.getAttribute("id"))}}}catch(t){a.e(t)}finally{a.f()}return o}(t,n);!function(t,e,n){var i,r=n.createRangeIn(e),o=new fi({name:"img"}),a=[],s=b(r);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(o.match(l.item)){var c=l.item,u=c.getAttribute("v:shapes")?c.getAttribute("v:shapes").split(" "):[];u.length&&u.every((function(e){return t.indexOf(e)>-1}))?a.push(c):c.getAttribute("src")||a.push(c)}}}catch(t){s.e(t)}finally{s.f()}for(var d=0,h=a;d<h.length;d++){var f=h[d];n.remove(f)}}(i,t,n),function(t,e){var n,i=e.createRangeIn(t),r=new fi({name:/v:(.+)/}),o=[],a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;"elementStart"==s.type&&r.match(s.item)&&o.push(s.item)}}catch(t){a.e(t)}finally{a.f()}for(var l=0,c=o;l<c.length;l++){var u=c[l];e.remove(u)}}(t,n);var r=function(t,e){var n,i=e.createRangeIn(t),r=new fi({name:"img"}),o=[],a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;r.match(s.item)&&s.item.getAttribute("src").startsWith("file://")&&o.push(s.item)}}catch(t){a.e(t)}finally{a.f()}return o}(t,n);r.length&&function(t,e,n){if(t.length===e.length)for(var i=0;i<t.length;i++){var r="data:".concat(e[i].type,";base64,").concat(Gb(e[i].hex));n.setAttribute("src",r,t[i])}}(r,function(t){if(!t)return[];var e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),i=t.match(n),r=[];if(i){var o,a=b(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=!1;s.includes("\\pngblip")?l="image/png":s.includes("\\jpegblip")&&(l="image/jpeg"),l&&r.push({hex:s.replace(e,"").replace(/[^\da-fA-F]/g,""),type:l})}}catch(t){a.e(t)}finally{a.f()}}return r}(e),n)}}(n,t.dataTransfer.getData("text/rtf")),t.content=n}}])}();function Jb(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(t,e){return 1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)}))}function Xb(t,e,n,i){e>(arguments.length>4&&void 0!==arguments[4]?arguments[4]:1)?i.setAttribute(t,e,n):i.removeAttribute(t,n)}function tk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.createElement("tableCell",n);return t.insertElement("paragraph",i),t.insert(i,e),i}function ek(t,e){var n=e.parent.parent,i=parseInt(n.getAttribute("headingColumns")||0),r=t.getCellLocation(e).column;return!!i&&r<i}function nk(t){return function(e){e.on("element:".concat(t),(function(t,e,n){if(e.modelRange&&e.viewItem.isEmpty){var i=e.modelRange.start.nodeAfter,r=n.writer.createPositionAt(i,0);n.writer.insertElement("paragraph",r)}}),{priority:"low"})}}function ik(t){for(var e=0,n=0,i=Array.from(t.getChildren()).filter((function(t){return"th"===t.name||"td"===t.name}));n<i.length&&"th"===i[n].name;){var r=i[n];e+=parseInt(r.getAttribute("colspan")||1),n++}return e}var rk=function(){return M((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),this._table=e,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}),[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var t=this._table.getChild(this._rowIndex);if(!t||this._isOverEndRow())return{done:!0};if(!t.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();var e=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{var i=t.getChild(this._cellIndex);if(!i)return this._advanceToNextRow();var r=parseInt(i.getAttribute("colspan")||1),o=parseInt(i.getAttribute("rowspan")||1);(r>1||o>1)&&this._recordSpans(i,o,r),this._shouldSkipSlot()||(e=this._formatOutValue(i)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}},{key:"skipRow",value:function(t){this._skipRows.add(t)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new ok(this,t,e,n)}}},{key:"_shouldSkipSlot",value:function(){var t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,i=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||i}},{key:"_getSpanned",value:function(){var t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}},{key:"_recordSpans",value:function(t,e,n){for(var i={cell:t,row:this._row,column:this._column},r=this._row;r<this._row+e;r++)for(var o=this._column;o<this._column+n;o++)r==this._row&&o==this._column||this._markSpannedCell(r,o,i)}},{key:"_markSpannedCell",value:function(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map),this._spannedCells.get(t).set(e,n)}}])}(),ok=function(){return M((function t(e,n,i,r){P(this,t),this.cell=n,this.row=e._row,this.column=e._column,this.cellAnchorRow=i,this.cellAnchorColumn=r,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}),[{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}},{key:"rowIndex",get:function(){return this._rowIndex}},{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}])}();function ak(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,i){var r=i.writer,o=n.getAttribute("headingRows")||0,a=[];o>0&&a.push(r.createContainerElement("thead",null,r.createSlot((function(t){return t.is("element","tableRow")&&t.index<o})))),o<t.getRows(n)&&a.push(r.createContainerElement("tbody",null,r.createSlot((function(t){return t.is("element","tableRow")&&t.index>=o}))));var s=r.createContainerElement("figure",{class:"table"},[r.createContainerElement("table",null,a),r.createSlot((function(t){return!t.is("element","tableRow")}))]);return e.asWidget?function(t,e){return e.setCustomProperty("table",!0,t),lf(t,e,{hasSelectionHandle:!0})}(s,r):s}}function sk(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,n){var i,r=n.writer,o=e.parent,a=o.parent,s=a.getChildIndex(o),l=new rk(a,{row:s}),c=a.getAttribute("headingRows")||0,u=a.getAttribute("headingColumns")||0,d=b(l);try{for(d.s();!(i=d.n()).done;){var h=i.value;if(h.cell==e){var f=h.row<c||h.column<u?"th":"td";return t.asWidget?ff(r.createEditableElement(f),r):r.createContainerElement(f)}}}catch(t){d.e(t)}finally{d.f()}}}function lk(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,n){var i=n.writer,r=n.consumable,o=n.mapper;if(e.parent.is("element","tableCell")&&ck(e))return t.asWidget?i.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):(r.consume(e,"insert"),void o.bindElements(e,o.toViewElement(e.parent)))}}function ck(t){return 1==t.parent.childCount&&!k(t.getAttributeKeys()).length}var uk=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(t,e){var n=t.getFirstPosition().parent,i=n===n.root?n:n.parent;return e.checkChild(i,"table")}(e,n)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=this.editor.plugins.get("TableUtils"),i=this.editor.config.get("table"),r=i.defaultHeadings.rows,o=i.defaultHeadings.columns;void 0===t.headingRows&&r&&(t.headingRows=r),void 0===t.headingColumns&&o&&(t.headingColumns=o),e.change((function(i){var r=n.createTable(i,t);e.insertObject(r,null,null,{findOptimalPosition:"auto"}),i.setSelection(i.createPositionAt(r.getNodeByPath([0,0,0]),0))}))}}])}(dt),dk=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,e),(n=_(this,e,[t])).order=i.order||"below",n}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}},{key:"execute",value:function(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i="above"===this.order,r=n.getSelectionAffectedTableCells(e),o=n.getRowIndexes(r),a=i?o.first:o.last,s=r[0].findAncestor("table");n.insertRows(s,{at:i?a:a+1,copyStructureFromAbove:!i})}}])}(dt),hk=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,e),(n=_(this,e,[t])).order=i.order||"right",n}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}},{key:"execute",value:function(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i="left"===this.order,r=n.getSelectionAffectedTableCells(e),o=n.getColumnIndexes(r),a=i?o.first:o.last,s=r[0].findAncestor("table");n.insertColumns(s,{columns:1,at:i?a:a+1})}}])}(dt),fk=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,e),(n=_(this,e,[t])).direction=i.direction||"horizontally",n}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}},{key:"execute",value:function(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}])}(dt);function pk(t,e,n){for(var i=e.startRow,r=e.startColumn,o=e.endRow,a=e.endColumn,s=n.createElement("table"),l=o-i+1,c=0;c<l;c++)n.insertElement("tableRow",s,"end");var u,d=b(k(new rk(t,{startRow:i,endRow:o,startColumn:r,endColumn:a,includeAllSlots:!0})));try{for(d.s();!(u=d.n()).done;){var h=u.value,f=h.row,p=h.column,g=h.cell,m=h.isAnchor,v=h.cellAnchorRow,y=h.cellAnchorColumn,w=f-i,_=s.getChild(w);if(m){var A=n.cloneElement(g);n.append(A,_),kk(A,f,p,o,a,n)}else(v<i||y<r)&&tk(n,n.createPositionAt(_,"end"))}}catch(t){d.e(t)}finally{d.f()}return function(t,e,n,i,r){var o=parseInt(e.getAttribute("headingRows")||0);o>0&&Xb("headingRows",o-n,t,r,0);var a=parseInt(e.getAttribute("headingColumns")||0);a>0&&Xb("headingColumns",a-i,t,r,0)}(s,t,i,r,n),s}function gk(t,e){var n,i=[],r=b(new rk(t,{startRow:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,endRow:e-1}));try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.row,s=o.cellHeight;a<e&&e<=a+s-1&&i.push(o)}}catch(t){r.e(t)}finally{r.f()}return i}function mk(t,e,n){var i=t.parent,r=i.parent,o=i.index,a=e-o,s={},l=parseInt(t.getAttribute("rowspan"))-a;l>1&&(s.rowspan=l);var c=parseInt(t.getAttribute("colspan")||1);c>1&&(s.colspan=c);var u,d,h=o+a,f=null,p=b(k(new rk(r,{startRow:o,endRow:h,includeAllSlots:!0})));try{for(p.s();!(d=p.n()).done;){var g=d.value,m=g.row,v=g.column;g.cell===t&&void 0===u&&(u=v),void 0!==u&&u===v&&m===h&&(f=tk(n,g.getPositionBefore(),s))}}catch(t){p.e(t)}finally{p.f()}return Xb("rowspan",a,t,n),f}function vk(t,e){var n,i=[],r=b(new rk(t));try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.column,s=o.cellWidth;a<e&&e<=a+s-1&&i.push(o)}}catch(t){r.e(t)}finally{r.f()}return i}function bk(t,e,n,i){var r=n-e,o={},a=parseInt(t.getAttribute("colspan"))-r;a>1&&(o.colspan=a);var s=parseInt(t.getAttribute("rowspan")||1);s>1&&(o.rowspan=s);var l=tk(i,i.createPositionAfter(t),o);return Xb("colspan",r,t,i),l}function kk(t,e,n,i,r,o){var a=parseInt(t.getAttribute("colspan")||1),s=parseInt(t.getAttribute("rowspan")||1);n+a-1>r&&Xb("colspan",r-n+1,t,o,1),e+s-1>i&&Xb("rowspan",i-e+1,t,o,1)}function yk(t,e){var n,i=e.getColumns(t),r=new Array(i).fill(0),o=b(new rk(t));try{for(o.s();!(n=o.n()).done;){r[n.value.column]++}}catch(t){o.e(t)}finally{o.f()}var a=r.reduce((function(t,e,n){return e?t:[].concat(k(t),[n])}),[]);if(a.length>0){var s=a[a.length-1];return e.removeColumns(t,{at:s}),!0}return!1}function wk(t,e){for(var n=[],i=e.getRows(t),r=0;r<i;r++)t.getChild(r).isEmpty&&n.push(r);if(n.length>0){var o=n[n.length-1];return e.removeRows(t,{at:o}),!0}return!1}function _k(t,e){yk(t,e)||wk(t,e)}function Ak(t,e){var n=Array.from(new rk(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every((function(t){return 1===t.cellHeight})))return e.lastRow;var i=n[0].cellHeight-1;return e.lastRow+i}function Ck(t,e){var n=Array.from(new rk(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every((function(t){return 1===t.cellWidth})))return e.lastColumn;var i=n[0].cellWidth-1;return e.lastColumn+i}var xk=function(t){function e(t,n){var i;return P(this,e),(i=_(this,e,[t])).direction=n.direction,i.isHorizontal="right"==i.direction||"left"==i.direction,i}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document,i=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(n.selection)[0],r=this.value,o=this.direction;e.change((function(e){var n="right"==o||"down"==o,a=n?i:r,s=n?r:i,l=s.parent;!function(t,e,n){Dk(t)||(Dk(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}(s,a,e);var c=t.isHorizontal?"colspan":"rowspan",u=parseInt(i.getAttribute(c)||1),d=parseInt(r.getAttribute(c)||1);e.setAttribute(c,u+d,a),e.setSelection(e.createRangeIn(a));var h=t.editor.plugins.get("TableUtils");_k(l.findAncestor("table"),h)}))}},{key:"_getMergeableCell",value:function(){var t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(n){var i=this.isHorizontal?function(t,e,n){var i=t.parent.parent,r="right"==e?t.nextSibling:t.previousSibling,o=(i.getAttribute("headingColumns")||0)>0;if(r){var a="right"==e?t:r,s="right"==e?r:t,l=n.getCellLocation(a).column,c=n.getCellLocation(s).column,u=parseInt(a.getAttribute("colspan")||1),d=ek(n,a),h=ek(n,s);if(!o||d==h)return l+u===c?r:void 0}}(n,this.direction,e):function(t,e,n){var i=t.parent,r=i.parent,o=r.getChildIndex(i);if(!("down"==e&&o===n.getRows(r)-1||"up"==e&&0===o)){var a=parseInt(t.getAttribute("rowspan")||1),s=r.getAttribute("headingRows")||0;if(!s||!("down"==e&&o+a===s)&&!("up"==e&&o===s)){var l=parseInt(t.getAttribute("rowspan")||1),c="down"==e?o+l:o,u=k(new rk(r,{endRow:c})),d=u.find((function(e){return e.cell===t})),h=d.column,f=u.find((function(t){var n=t.row,i=t.cellHeight;return t.column===h&&("down"==e?n===c:c===n+i)}));return f&&f.cell}}}(n,this.direction,e);if(i){var r=this.isHorizontal?"rowspan":"colspan",o=parseInt(n.getAttribute(r)||1);return parseInt(i.getAttribute(r)||1)===o?i:void 0}}}}])}(dt);function Dk(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}var Ek=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){var i=n.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getRows(i)-1,o=t.getRowIndexes(e),a=0===o.first&&o.last===r;this.isEnabled=!a}else this.isEnabled=!1}},{key:"execute",value:function(){var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0],o=r.findAncestor("table"),a=e.getCellLocation(r).column;t.change((function(t){var n=i.last-i.first+1;e.removeRows(o,{at:i.first,rows:n});var r=function(t,e,n,i){var r,o=t.getChild(Math.min(e,i-1)),a=o.getChild(0),s=0,l=b(o.getChildren());try{for(l.s();!(r=l.n()).done;){var c=r.value;if(s>n)return a;a=c,s+=parseInt(c.getAttribute("colspan")||1)}}catch(t){l.e(t)}finally{l.f()}return a}(o,i.first,a,e.getRows(o));t.setSelection(t.createPositionAt(r,0))}))}}])}(dt),Sk=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){var i=n.findAncestor("table"),r=t.getColumns(i),o=t.getColumnIndexes(e),a=o.first,s=o.last;this.isEnabled=s-a<r-1}else this.isEnabled=!1}},{key:"execute",value:function(){var t=this,e=this.editor.plugins.get("TableUtils"),n=function(t,e){var n=e.getSelectionAffectedTableCells(t),i=n[0],r=n.pop(),o=[i,r];return i.isBefore(r)?o:o.reverse()}(this.editor.model.document.selection,e),i=v(n,2),r=i[0],o=i[1],a=r.parent.parent,s=k(new rk(a)),l={first:s.find((function(t){return t.cell===r})).column,last:s.find((function(t){return t.cell===o})).column},c=function(t,e,n,i){return parseInt(n.getAttribute("colspan")||1)>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:i.first?t.reverse().find((function(t){return t.column<i.first})).cell:t.reverse().find((function(t){return t.column>i.last})).cell}(s,r,o,l);this.editor.model.change((function(e){var n=l.last-l.first+1;t.editor.plugins.get("TableUtils").removeColumns(a,{at:l.first,columns:n}),e.setSelection(e.createPositionAt(c,0))}))}}])}(dt),Tk=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this,e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i.length>0;this.isEnabled=r,this.value=r&&i.every((function(e){return t._isInHeading(e,e.parent.parent)}))}},{key:"execute",value:function(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue!==this.value){var t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n[0].findAncestor("table"),r=t.getRowIndexes(n),o=r.first,a=r.last,s=this.value?o:a+1,l=i.getAttribute("headingRows")||0;e.change((function(t){if(s){var e,n=b(gk(i,s,s>l?l:0));try{for(n.s();!(e=n.n()).done;){mk(e.value.cell,s,t)}}catch(t){n.e(t)}finally{n.f()}}Xb("headingRows",s,i,t,0)}))}}},{key:"_isInHeading",value:function(t,e){var n=parseInt(e.getAttribute("headingRows")||0);return!!n&&t.parent.index<n}}])}(dt),Ik=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every((function(t){return ek(e,t)}))}},{key:"execute",value:function(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue!==this.value){var t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n[0].findAncestor("table"),r=t.getColumnIndexes(n),o=r.first,a=r.last,s=this.value?o:a+1;e.change((function(t){if(s){var e,n=b(vk(i,s));try{for(n.s();!(e=n.n()).done;){var r=e.value;bk(r.cell,r.column,s,t)}}catch(t){n.e(t)}finally{n.f()}}Xb("headingColumns",s,i,t,0)}))}}}])}(dt),Mk=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){this.decorate("insertColumns"),this.decorate("insertRows")}},{key:"getCellLocation",value:function(t){var e,n=t.parent,i=n.parent,r=i.getChildIndex(n),o=b(new rk(i,{row:r}));try{for(o.s();!(e=o.n()).done;){var a=e.value,s=a.cell,l=a.row,c=a.column;if(s===t)return{row:l,column:c}}}catch(t){o.e(t)}finally{o.f()}}},{key:"createTable",value:function(t,e){var n=t.createElement("table"),i=parseInt(e.rows)||2,r=parseInt(e.columns)||2;return Ok(t,n,0,i,r),e.headingRows&&Xb("headingRows",Math.min(e.headingRows,i),n,t,0),e.headingColumns&&Xb("headingColumns",Math.min(e.headingColumns,r),n,t,0),n}},{key:"insertRows",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,i=e.at||0,r=e.rows||1,o=void 0!==e.copyStructureFromAbove,a=e.copyStructureFromAbove?i-1:i,s=this.getRows(t),l=this.getColumns(t);if(i>s)throw new S("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change((function(e){var n=t.getAttribute("headingRows")||0;if(n>i&&Xb("headingRows",n+r,t,e,0),o||0!==i&&i!==s){var c,u=o?Math.max(i,a):i,d=new rk(t,{endRow:u}),h=new Array(l).fill(1),f=b(d);try{for(f.s();!(c=f.n()).done;){var p=c.value,g=p.row,m=p.column,v=p.cellHeight,k=p.cellWidth,y=p.cell,w=g+v-1,_=g<=a&&a<=w;g<i&&i<=w?(e.setAttribute("rowspan",v+r,y),h[m]=-k):o&&_&&(h[m]=k)}}catch(t){f.e(t)}finally{f.f()}for(var A=0;A<r;A++){var C=e.createElement("tableRow");e.insert(C,t,i);for(var x=0;x<h.length;x++){var D=h[x],E=e.createPositionAt(C,"end");D>0&&tk(e,E,D>1?{colspan:D}:null),x+=Math.abs(D)-1}}}else Ok(e,t,i,r,l)}))}},{key:"insertColumns",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,r=n.at||0,o=n.columns||1;i.change((function(n){var i=t.getAttribute("headingColumns");r<i&&n.setAttribute("headingColumns",i+o,t);var a=e.getColumns(t);if(0!==r&&a!==r){var s,l=new rk(t,{column:r,includeAllSlots:!0}),c=b(l);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.row,h=u.cell,f=u.cellAnchorColumn,p=u.cellAnchorRow,g=u.cellWidth,m=u.cellHeight;if(f<r){n.setAttribute("colspan",g+o,h);for(var v=p+m-1,k=d;k<=v;k++)l.skipRow(k)}else Pk(o,n,u.getPositionBefore())}}catch(t){c.e(t)}finally{c.f()}}else{var y,w=b(t.getChildren());try{for(w.s();!(y=w.n()).done;){var _=y.value;_.is("element","tableRow")&&Pk(o,n,n.createPositionAt(_,r?"end":0))}}catch(t){w.e(t)}finally{w.f()}}}))}},{key:"removeRows",value:function(t,e){var n=this,i=this.editor.model,r=e.rows||1,o=this.getRows(t),a=e.at,s=a+r-1;if(s>o-1)throw new S("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});i.change((function(e){var i=function(t,e,n){var i,r=new Map,o=[],a=b(new rk(t,{endRow:n}));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.row,c=s.column,u=s.cellHeight,d=s.cell,h=l+u-1;if(l>=e&&l<=n&&h>n){var f=u-(n-l+1);r.set(c,{cell:d,rowspan:f})}if(l<e&&h>=e){var p;p=h>=n?n-e+1:h-e+1,o.push({cell:d,rowspan:u-p})}}}catch(t){a.e(t)}finally{a.f()}return{cellsToMove:r,cellsToTrim:o}}(t,a,s),r=i.cellsToMove,o=i.cellsToTrim;r.size&&function(t,e,n,i){var r,o,a=k(new rk(t,{includeAllSlots:!0,row:e})),s=t.getChild(e),l=b(a);try{for(l.s();!(o=l.n()).done;){var c=o.value,u=c.column,d=c.cell,h=c.isAnchor;if(n.has(u)){var f=n.get(u),p=f.cell,g=f.rowspan,m=r?i.createPositionAfter(r):i.createPositionAt(s,0);i.move(i.createRangeOn(p),m),Xb("rowspan",g,p,i),r=p}else h&&(r=d)}}catch(t){l.e(t)}finally{l.f()}}(t,s+1,r,e);for(var l=s;l>=a;l--)e.remove(t.getChild(l));var c,u=b(o);try{for(u.s();!(c=u.n()).done;){var d=c.value;Xb("rowspan",d.rowspan,d.cell,e)}}catch(t){u.e(t)}finally{u.f()}!function(t,e,n,i){var r=t.getAttribute("headingRows")||0;e<r&&Xb("headingRows",n<r?r-(n-e+1):e,t,i,0)}(t,a,s,e),yk(t,n)||wk(t,n)}))}},{key:"removeColumns",value:function(t,e){var n=this,i=this.editor.model,r=e.at,o=e.columns||1,a=e.at+o-1;i.change((function(e){!function(t,e,n){var i=t.getAttribute("headingColumns")||0;if(i&&e.first<i){var r=Math.min(i-1,e.last)-e.first+1;n.setAttribute("headingColumns",i-r,t)}}(t,{first:r,last:a},e);for(var i=a;i>=r;i--)for(var o=0,s=k(new rk(t));o<s.length;o++){var l=s[o],c=l.cell,u=l.column,d=l.cellWidth;u<=i&&d>1&&u+d>i?Xb("colspan",d-1,c,e):u===i&&e.remove(c)}wk(t,n)||yk(t,n)}))}},{key:"splitCellVertically",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=t.parent.parent,r=parseInt(t.getAttribute("rowspan")||1),o=parseInt(t.getAttribute("colspan")||1);n.change((function(n){if(o>1){var a=Nk(o,e),s=a.newCellsSpan;Xb("colspan",a.updatedSpan,t,n);var l={};s>1&&(l.colspan=s),r>1&&(l.rowspan=r),Pk(o>e?e-1:o-1,n,n.createPositionAfter(t),l)}if(o<e){var c,u=e-o,d=k(new rk(i)),h=d.find((function(e){return e.cell===t})).column,f=d.filter((function(e){var n=e.cell,i=e.cellWidth,r=e.column;return n!==t&&r===h||r<h&&r+i>h})),p=b(f);try{for(p.s();!(c=p.n()).done;){var g=c.value,m=g.cell,v=g.cellWidth;n.setAttribute("colspan",v+u,m)}}catch(t){p.e(t)}finally{p.f()}var y={};r>1&&(y.rowspan=r),Pk(u,n,n.createPositionAfter(t),y);var w=i.getAttribute("headingColumns")||0;w>h&&Xb("headingColumns",w+u,i,n)}}))}},{key:"splitCellHorizontally",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=t.parent,r=i.parent,o=r.getChildIndex(i),a=parseInt(t.getAttribute("rowspan")||1),s=parseInt(t.getAttribute("colspan")||1);n.change((function(n){if(a>1){var i=k(new rk(r,{startRow:o,endRow:o+a-1,includeAllSlots:!0})),l=Nk(a,e),c=l.newCellsSpan,u=l.updatedSpan;Xb("rowspan",u,t,n);var d=i.find((function(e){return e.cell===t})).column,h={};c>1&&(h.rowspan=c),s>1&&(h.colspan=s);var f,p=b(i);try{for(p.s();!(f=p.n()).done;){var g=f.value,m=g.column,v=g.row;v>=o+u&&m===d&&(v+o+u)%c==0&&Pk(1,n,g.getPositionBefore(),h)}}catch(t){p.e(t)}finally{p.f()}}if(a<e){var y,w=e-a,_=b(k(new rk(r,{startRow:0,endRow:o})));try{for(_.s();!(y=_.n()).done;){var A=y.value,C=A.cell,x=A.cellHeight,D=A.row;if(C!==t&&D+x>o){var E=x+w;n.setAttribute("rowspan",E,C)}}}catch(t){_.e(t)}finally{_.f()}var S={};s>1&&(S.colspan=s),Ok(n,r,o+1,w,1,S);var T=r.getAttribute("headingRows")||0;T>o&&Xb("headingRows",T+w,r,n)}}))}},{key:"getColumns",value:function(t){return k(t.getChild(0).getChildren()).reduce((function(t,e){return t+parseInt(e.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(t){return Array.from(t.getChildren()).reduce((function(t,e){return e.is("element","tableRow")?t+1:t}),0)}},{key:"createTableWalker",value:function(t){return new rk(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"getSelectedTableCells",value:function(t){var e,n=[],i=b(this.sortRanges(t.getRanges()));try{for(i.s();!(e=i.n()).done;){var r=e.value.getContainedElement();r&&r.is("element","tableCell")&&n.push(r)}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"getTableCellsContainingSelection",value:function(t){var e,n=[],i=b(t.getRanges());try{for(i.s();!(e=i.n()).done;){var r=e.value.start.findAncestor("tableCell");r&&n.push(r)}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"getSelectionAffectedTableCells",value:function(t){var e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}},{key:"getRowIndexes",value:function(t){var e=t.map((function(t){return t.parent.index}));return this._getFirstLastIndexesObject(e)}},{key:"getColumnIndexes",value:function(t){var e=t[0].findAncestor("table"),n=k(new rk(e)).filter((function(e){return t.includes(e.cell)})).map((function(t){return t.column}));return this._getFirstLastIndexesObject(n)}},{key:"isSelectionRectangular",value:function(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;var e,n=new Set,i=new Set,r=0,o=b(t);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=this.getCellLocation(a),l=s.row,c=s.column,u=parseInt(a.getAttribute("rowspan")||1),d=parseInt(a.getAttribute("colspan")||1);n.add(l),i.add(c),u>1&&n.add(l+u-1),d>1&&i.add(c+d-1),r+=u*d}}catch(t){o.e(t)}finally{o.f()}var h=function(t,e){var n=Array.from(t.values()),i=Array.from(e.values());return(Math.max.apply(Math,n)-Math.min.apply(Math,n)+1)*(Math.max.apply(Math,i)-Math.min.apply(Math,i)+1)}(n,i);return h==r}},{key:"sortRanges",value:function(t){return Array.from(t).sort(Bk)}},{key:"_getFirstLastIndexesObject",value:function(t){var e=t.sort((function(t,e){return t-e}));return{first:e[0],last:e[e.length-1]}}},{key:"_areCellInTheSameTableSection",value:function(t){var e=t[0].findAncestor("table"),n=this.getRowIndexes(t),i=parseInt(e.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(n,i))return!1;var r=parseInt(e.getAttribute("headingColumns")||0),o=this.getColumnIndexes(t);return this._areIndexesInSameSection(o,r)}},{key:"_areIndexesInSameSection",value:function(t,e){return t.first<e==t.last<e}}],[{key:"pluginName",get:function(){return"TableUtils"}}])}(ct);function Ok(t,e,n,i,r){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<i;a++){var s=t.createElement("tableRow");t.insert(s,e,n),Pk(r,t,t.createPositionAt(s,"end"),o)}}function Pk(t,e,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=0;r<t;r++)tk(e,n,i)}function Nk(t,e){if(t<e)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(t/e);return{newCellsSpan:n,updatedSpan:t-n*e+n}}function Bk(t,e){var n=t.start,i=e.start;return n.isBefore(i)?-1:1}var Lk=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get(Mk),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e,this.editor.plugins.get(Mk))}},{key:"execute",value:function(){var t=this.editor.model,e=this.editor.plugins.get(Mk);t.change((function(n){var i=e.getSelectedTableCells(t.document.selection),r=i.shift(),o=function(t,e,n){var i,r=0,o=0,a=b(e);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=n.getCellLocation(s),c=l.row;r=zk(s,l.column,r,"colspan"),o=zk(s,c,o,"rowspan")}}catch(t){a.e(t)}finally{a.f()}var u=n.getCellLocation(t),d=u.row;return{mergeWidth:r-u.column,mergeHeight:o-d}}(r,i,e),a=o.mergeWidth,s=o.mergeHeight;Xb("colspan",a,r,n),Xb("rowspan",s,r,n);var l,c=b(i);try{for(c.s();!(l=c.n()).done;){jk(l.value,r,n)}}catch(t){c.e(t)}finally{c.f()}_k(r.findAncestor("table"),e),n.setSelection(r,"in")}))}}])}(dt);function jk(t,e,n){Rk(t)||(Rk(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}function Rk(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}function zk(t,e,n,i){var r=parseInt(t.getAttribute(i)||1);return Math.max(n,e+r)}var Fk=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).affectsData=!1,n}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}},{key:"execute",value:function(){for(var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0].findAncestor("table"),o=[],a=i.first;a<=i.last;a++){var s,l=b(r.getChild(a).getChildren());try{for(l.s();!(s=l.n()).done;){var c=s.value;o.push(t.createRangeOn(c))}}catch(t){l.e(t)}finally{l.f()}}t.change((function(t){t.setSelection(o)}))}}])}(dt),Hk=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).affectsData=!1,n}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}},{key:"execute",value:function(){var t,e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i[0],o=i.pop(),a=r.findAncestor("table"),s=e.getCellLocation(r),l=e.getCellLocation(o),c=Math.min(s.column,l.column),u=Math.max(s.column,l.column),d=[],h=b(new rk(a,{startColumn:c,endColumn:u}));try{for(h.s();!(t=h.n()).done;){var f=t.value;d.push(n.createRangeOn(f.cell))}}catch(t){h.e(t)}finally{h.f()}n.change((function(t){t.setSelection(d)}))}}])}(dt);function Vk(t,e){var n=!1,i=function(t){var e,n=parseInt(t.getAttribute("headingRows")||0),i=Array.from(t.getChildren()).reduce((function(t,e){return e.is("element","tableRow")?t+1:t}),0),r=[],o=b(new rk(t));try{for(o.s();!(e=o.n()).done;){var a=e.value,s=a.row,l=a.cell,c=a.cellHeight;if(!(c<2)){var u=s<n?n:i;if(s+c>u){var d=u-s;r.push({cell:l,rowspan:d})}}}}catch(t){o.e(t)}finally{o.f()}return r}(t);if(i.length){n=!0;var r,o=b(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;Xb("rowspan",a.rowspan,a.cell,e,1)}}catch(t){o.e(t)}finally{o.f()}}return n}function Uk(t,e){var n,i=!1,r=function(t){var e,n=new Array(t.childCount).fill(0),i=b(new rk(t,{includeAllSlots:!0}));try{for(i.s();!(e=i.n()).done;){n[e.value.rowIndex]++}}catch(t){i.e(t)}finally{i.f()}return n}(t),o=[],a=b(r.entries());try{for(a.s();!(n=a.n()).done;){var s=v(n.value,2),l=s[0];!s[1]&&t.getChild(l).is("element","tableRow")&&o.push(l)}}catch(t){a.e(t)}finally{a.f()}if(o.length){i=!0;var c,u=b(o.reverse());try{for(u.s();!(c=u.n()).done;){var d=c.value;e.remove(t.getChild(d)),r.splice(d,1)}}catch(t){u.e(t)}finally{u.f()}}var h=r.filter((function(e,n){return t.getChild(n).is("element","tableRow")})),f=h[0];if(!h.every((function(t){return t===f}))){var p,g=h.reduce((function(t,e){return e>t?e:t}),0),m=b(h.entries());try{for(m.s();!(p=m.n()).done;){var k=v(p.value,2),y=k[0],w=g-k[1];if(w){for(var _=0;_<w;_++)tk(e,e.createPositionAt(t.getChild(y),"end"));i=!0}}}catch(t){m.e(t)}finally{m.f()}}return i}function Wk(t){var e="attribute"===t.type,n=t.attributeKey;return e&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function qk(t,e){var n,i=!1,r=b(t.getChildren());try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is("element","tableRow")&&(i=$k(o,e)||i)}}catch(t){r.e(t)}finally{r.f()}return i}function $k(t,e){var n,i=!1,r=b(t.getChildren());try{for(r.s();!(n=r.n()).done;){i=Yk(n.value,e)||i}}catch(t){r.e(t)}finally{r.f()}return i}function Yk(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;var n,i=Array.from(t.getChildren()).filter((function(t){return t.is("$text")})),r=b(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.wrap(e.createRangeOn(o),"paragraph")}}catch(t){r.e(t)}finally{r.f()}return!!i.length}function Gk(t){return!(!t.position||!t.position.parent.is("element","tableCell"))&&("insert"==t.type&&"$text"==t.name||"remove"==t.type)}function Kk(t,e){if(!t.is("element","paragraph"))return!1;var n=e.toViewElement(t);return!!n&&ck(t)!==n.is("element","span")}var Qk=o(3881);Ao()(Qk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Qk.Z.locals;var Zk=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.model,n=e.schema,i=t.conversion,r=t.plugins.get(Mk);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),i.for("upcast").add((function(t){t.on("element:figure",(function(t,e,n){if(n.consumable.test(e.viewItem,{name:!0,classes:"table"})){var i=function(t){var e,n=b(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.is("element","table"))return i}}catch(t){n.e(t)}finally{n.f()}}(e.viewItem);if(i&&n.consumable.test(i,{name:!0})){n.consumable.consume(e.viewItem,{name:!0,classes:"table"});var r=ja(n.convertItem(i,e.modelCursor).modelRange.getItems());r?(n.convertChildren(e.viewItem,n.writer.createPositionAt(r,"end")),n.updateConversionResult(r,e)):n.consumable.revert(e.viewItem,{name:!0,classes:"table"})}}}))})),i.for("upcast").add((function(t){t.on("element:table",(function(t,e,n){var i=e.viewItem;if(n.consumable.test(i,{name:!0})){var r=function(t){for(var e,n={headingRows:0,headingColumns:0},i=[],r=[],o=0,a=Array.from(t.getChildren());o<a.length;o++){var s=a[o];if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||e||(e=s);var l,c=Array.from(s.getChildren()).filter((function(t){return t.is("element","tr")})),u=b(c);try{for(u.s();!(l=u.n()).done;){var d=l.value;if("thead"===d.parent.name&&d.parent===e)n.headingRows++,i.push(d);else{r.push(d);var h=ik(d);h>n.headingColumns&&(n.headingColumns=h)}}}catch(t){u.e(t)}finally{u.f()}}}return n.rows=[].concat(i,r),n}(i),o=r.rows,a=r.headingRows,s=r.headingColumns,l={};s&&(l.headingColumns=s),a&&(l.headingRows=a);var c=n.writer.createElement("table",l);if(n.safeInsert(c,e.modelCursor)){if(n.consumable.consume(i,{name:!0}),o.forEach((function(t){return n.convertItem(t,n.writer.createPositionAt(c,"end"))})),n.convertChildren(i,n.writer.createPositionAt(c,"end")),c.isEmpty){var u=n.writer.createElement("tableRow");n.writer.insert(u,n.writer.createPositionAt(c,"end")),tk(n.writer,n.writer.createPositionAt(u,"end"))}n.updateConversionResult(c,e)}}}))})),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:ak(r,{asWidget:!0})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:ak(r)}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add((function(t){t.on("element:tr",(function(t,e){e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop()}),{priority:"high"})})),i.for("downcast").elementToElement({model:"tableRow",view:function(t,e){var n=e.writer;return t.isEmpty?n.createEmptyElement("tr"):n.createContainerElement("tr")}}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(nk("td")),i.for("upcast").add(nk("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:sk({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:sk()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:lk({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:lk(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:Jk("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Jk("rowspan")},view:"rowspan"}),t.data.mapper.on("modelToViewPosition",(function(t,e){var n=e.modelPosition.parent,i=e.modelPosition.nodeBefore;if(n.is("element","tableCell")&&i&&i.is("element","paragraph")){var r=e.mapper.toViewElement(i),o=e.mapper.toViewElement(n);r===o&&(e.viewPosition=e.mapper.findPositionIn(o,i.maxOffset))}})),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new uk(t)),t.commands.add("insertTableRowAbove",new dk(t,{order:"above"})),t.commands.add("insertTableRowBelow",new dk(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new hk(t,{order:"left"})),t.commands.add("insertTableColumnRight",new hk(t,{order:"right"})),t.commands.add("removeTableRow",new Ek(t)),t.commands.add("removeTableColumn",new Sk(t)),t.commands.add("splitTableCellVertically",new fk(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new fk(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new Lk(t)),t.commands.add("mergeTableCellRight",new xk(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new xk(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new xk(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new xk(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new Ik(t)),t.commands.add("setTableRowHeader",new Tk(t)),t.commands.add("selectTableRow",new Fk(t)),t.commands.add("selectTableColumn",new Hk(t)),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,i=e.document.differ.getChanges(),r=!1,o=new Set,a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=void 0;"table"==s.name&&"insert"==s.type&&(l=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(l=s.position.findAncestor("table")),Wk(s)&&(l=s.range.start.findAncestor("table")),l&&!o.has(l)&&(r=Vk(l,t)||r,r=Uk(l,t)||r,o.add(l))}}catch(t){a.e(t)}finally{a.f()}return r}(e,t)}))}(e),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,i=!1,r=b(e.document.differ.getChanges());try{for(r.s();!(n=r.n()).done;){var o=n.value;"insert"==o.type&&"table"==o.name&&(i=qk(o.position.nodeAfter,t)||i),"insert"==o.type&&"tableRow"==o.name&&(i=$k(o.position.nodeAfter,t)||i),"insert"==o.type&&"tableCell"==o.name&&(i=Yk(o.position.nodeAfter,t)||i),Gk(o)&&(i=Yk(o.position.parent,t)||i)}}catch(t){r.e(t)}finally{r.f()}return i}(e,t)}))}(e),this.listenTo(e.document,"change:data",(function(){!function(t,e){var n,i=b(t.document.differ.getChanges());try{for(i.s();!(n=i.n()).done;){var r=n.value,o=void 0,a=!1;if("attribute"==r.type){var s=r.range.start.nodeAfter;if(!s||!s.is("element","table"))continue;if("headingRows"!=r.attributeKey&&"headingColumns"!=r.attributeKey)continue;o=s,a="headingRows"==r.attributeKey}else"tableRow"!=r.name&&"tableCell"!=r.name||(o=r.position.findAncestor("table"),a="tableRow"==r.name);if(o){var l,c=o.getAttribute("headingRows")||0,u=o.getAttribute("headingColumns")||0,d=b(new rk(o));try{for(d.s();!(l=d.n()).done;){var h=l.value,f=h.row<c||h.column<u?"th":"td",p=e.mapper.toViewElement(h.cell);p&&p.is("element")&&p.name!=f&&e.reconvertItem(a?h.cell.parent:h.cell)}}catch(t){d.e(t)}finally{d.f()}}}}catch(t){i.e(t)}finally{i.f()}}(e,t.editing),function(t,e){var n,i=t.document.differ,r=new Set,o=b(i.getChanges());try{for(o.s();!(n=o.n()).done;){var a=n.value,s="attribute"==a.type?a.range.start.parent:a.position.parent;s.is("element","tableCell")&&r.add(s)}}catch(t){o.e(t)}finally{o.f()}var l,c=b(r.values());try{for(c.s();!(l=c.n()).done;){var u,d=l.value,h=Array.from(d.getChildren()).filter((function(t){return Kk(t,e.mapper)})),f=b(h);try{for(f.s();!(u=f.n()).done;){var p=u.value;e.reconvertItem(p)}}catch(t){f.e(t)}finally{f.f()}}}catch(t){c.e(t)}finally{c.f()}}(e,t.editing)}))}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[Mk]}}])}(ct);function Jk(t){return function(e){var n=parseInt(e.getAttribute(t));return Number.isNaN(n)||n<=0?null:n}}var Xk=o(1613);Ao()(Xk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Xk.Z.locals;var ty=function(t){function e(t){var n;P(this,e);var i=(n=_(this,e,[t])).bindTemplate;return n._geometryLabelId="ck-editor__label_".concat(y()),n.items=n._createGridCollection(),n.keystrokes=new za,n.focusTracker=new Ra,n.set("rows",0),n.set("columns",0),n.bind("label").to(n,"columns",n,"rows",(function(t,e){return"".concat(e," × ").concat(t)})),n.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":i.to("boxover")},children:n.items},{tag:"div",attributes:{id:n._geometryLabelId,class:["ck","ck-insert-table-dropdown__label"]},children:[{text:i.to("label")}]}],on:{mousedown:i.to((function(t){t.preventDefault()})),click:i.to((function(){n.fire("execute")})),keydown:i.to((function(t){"Enter"===t.key&&(n.fire("execute"),t.preventDefault())}))}}),n.on("boxover",(function(t,e){var i=e.target.dataset,r=i.row,o=i.column;n.items.get(10*(r-1)+(o-1)).focus()})),n.focusTracker.on("change:focusedElement",(function(t,e,i){if(i){var r=i.dataset,o=r.row,a=r.column;n.set({rows:parseInt(o),columns:parseInt(a)})}})),n.on("change:columns",(function(){return n._highlightGridBoxes()})),n.on("change:rows",(function(){return n._highlightGridBoxes()})),n}return C(e,t),M(e,[{key:"render",value:function(){p(e,"render",this,3)([]),function(t){var e=t.keystrokeHandler,n=t.focusTracker,i=t.gridItems,r=t.numberOfColumns,o="number"==typeof r?function(){return r}:r;function a(t){return function(e){var r=i.find((function(t){return t.element===n.focusedElement})),o=i.getIndex(r),a=t(o,i);i.get(a).focus(),e.stopPropagation(),e.preventDefault()}}e.set("arrowright",a((function(t,e){return t===e.length-1?0:t+1}))),e.set("arrowleft",a((function(t,e){return 0===t?e.length-1:t-1}))),e.set("arrowup",a((function(t,e){var n=t-o();return n<0&&((n=t+o()*Math.floor(e.length/o()))>e.length-1&&(n-=o())),n}))),e.set("arrowdown",a((function(t,e){var n=t+o();return n>e.length-1&&(n=t%o()),n})))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10});var t,n=b(this.items);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(t){n.e(t)}finally{n.f()}this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this.items.get(0).focus()}},{key:"focusLast",value:function(){this.items.get(0).focus()}},{key:"_highlightGridBoxes",value:function(){var t=this.rows,e=this.columns;this.items.map((function(n,i){var r=Math.floor(i/10)<t&&i%10<e;n.set("isOn",r)}))}},{key:"_createGridCollection",value:function(){for(var t=[],e=0;e<100;e++){var n=Math.floor(e/10),i=e%10;t.push(new ey(this.locale,n+1,i+1,this._geometryLabelId))}return this.createCollection(t)}}])}(mu),ey=function(t){function e(t,n,i,r){var o;P(this,e);var a=(o=_(this,e,[t])).bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck","ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":n,"data-column":i,tabindex:-1,"aria-labelledby":r}}),o}return C(e,t),M(e,[{key:"focus",value:function(){this.element.focus()}}])}(mu),ny=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=this.editor.t,i="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",(function(t){var i,r=e.commands.get("insertTable"),o=Bd(t);return o.bind("isEnabled").to(r),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",(function(){i||(i=new ty(t),o.panelView.children.add(i),i.delegate("execute").to(o),o.on("execute",(function(){e.execute("insertTable",{rows:i.rows,columns:i.columns}),e.editing.view.focus()})))})),o})),e.ui.componentFactory.add("tableColumn",(function(e){var r=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:i?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return t._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',r,e)})),e.ui.componentFactory.add("tableRow",(function(e){var i=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return t._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',i,e)})),e.ui.componentFactory.add("mergeTableCells",(function(e){var r=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:i?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return t._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',r,e)}))}},{key:"_prepareDropdown",value:function(t,e,n,i){var r=this.editor,o=Bd(i),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:t,icon:e,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),this.listenTo(o,"execute",(function(t){r.execute(t.source.commandName),t.source instanceof ud||r.editing.view.focus()})),o}},{key:"_prepareMergeSplitButtonDropdown",value:function(t,e,n,i){var r=this.editor,o=Bd(i,gd),a="mergeTableCells",s=r.commands.get(a),l=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),o.bind("isEnabled").toMany([s].concat(k(l)),"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),this.listenTo(o.buttonView,"execute",(function(){r.execute(a),r.editing.view.focus()})),this.listenTo(o,"execute",(function(t){r.execute(t.source.commandName),r.editing.view.focus()})),o}},{key:"_fillDropdownWithListOptions",value:function(t,e){var n,i=this.editor,r=[],o=new Zn,a=b(e);try{for(a.s();!(n=a.n()).done;){iy(n.value,i,r,o)}}catch(t){a.e(t)}finally{a.f()}return jd(t,o,i.ui.componentFactory),r}}],[{key:"pluginName",get:function(){return"TableUI"}}])}(ct);function iy(t,e,n,i){var r=t.model=new th(t.model),o=t.model,a=o.commandName,s=o.bindIsOn;if("button"===t.type||"switchbutton"===t.type){var l=e.commands.get(a);n.push(l),r.set({commandName:a}),r.bind("isEnabled").to(l),s&&r.bind("isOn").to(l,"value")}r.set({withText:!0}),i.add(t)}var ry=o(6945);Ao()(ry.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ry.Z.locals;var oy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.model;this.listenTo(e,"deleteContent",(function(e,n){return t._handleDeleteContent(e,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var t=this.editor.plugins.get(Mk),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return 0==n.length?null:n}},{key:"getSelectionAsFragment",value:function(){var t=this.editor.plugins.get(Mk),e=this.getSelectedTableCells();return e?this.editor.model.change((function(n){var i=n.createDocumentFragment(),r=t.getColumnIndexes(e),o=r.first,a=r.last,s=t.getRowIndexes(e),l=s.first,c=s.last,u=e[0].findAncestor("table"),d=c,h=a;if(t.isSelectionRectangular(e)){var f={firstColumn:o,lastColumn:a,firstRow:l,lastRow:c};d=Ak(u,f),h=Ck(u,f)}var p=pk(u,{startRow:l,startColumn:o,endRow:d,endColumn:h},n);return n.insert(p,i,0),i})):null}},{key:"setCellSelection",value:function(t,e){var n=this._getCellsToSelect(t,e);this.editor.model.change((function(t){t.setSelection(n.cells.map((function(e){return t.createRangeOn(e)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var t=k(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}},{key:"getAnchorCell",value:function(){var t=ja(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}},{key:"_defineSelectionConverter",value:function(){var t=this,e=this.editor,n=new Set;e.conversion.for("editingDowncast").add((function(e){return e.on("selection",(function(e,i,r){var o=r.writer;!function(t){var e,i=b(n);try{for(i.s();!(e=i.n()).done;){var r=e.value;t.removeClass("ck-editor__editable_selected",r)}}catch(t){i.e(t)}finally{i.f()}n.clear()}(o);var a=t.getSelectedTableCells();if(a){var s,l=b(a);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=r.mapper.toViewElement(c);o.addClass("ck-editor__editable_selected",u),n.add(u)}}catch(t){l.e(t)}finally{l.f()}var d=r.mapper.toViewElement(a[a.length-1]);o.setSelection(d,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var t=this,e=this.editor;this.on("change:isEnabled",(function(){if(!t.isEnabled){var n=t.getSelectedTableCells();if(!n)return;e.model.change((function(t){var i=t.createPositionAt(n[0],0),r=e.model.schema.getNearestSelectionRange(i);t.setSelection(r)}))}}))}},{key:"_handleDeleteContent",value:function(t,e){var n=this.editor.plugins.get(Mk),i=v(e,2),r=i[0],o=i[1],a=this.editor.model,s=!o||"backward"==o.direction,l=n.getSelectedTableCells(r);l.length&&(t.stop(),a.change((function(t){var e=l[s?l.length-1:0];a.change((function(t){var e,n=b(l);try{for(n.s();!(e=n.n()).done;){var i=e.value;a.deleteContent(t.createSelection(i,"in"))}}catch(t){n.e(t)}finally{n.f()}}));var n=a.schema.getNearestSelectionRange(t.createPositionAt(e,0));r.is("documentSelection")?t.setSelection(n):r.setTo(n)})))}},{key:"_getCellsToSelect",value:function(t,e){var n,i=this.editor.plugins.get("TableUtils"),r=i.getCellLocation(t),o=i.getCellLocation(e),a=Math.min(r.row,o.row),s=Math.max(r.row,o.row),l=Math.min(r.column,o.column),c=Math.max(r.column,o.column),u=new Array(s-a+1).fill(null).map((function(){return[]})),d={startRow:a,endRow:s,startColumn:l,endColumn:c},h=b(new rk(t.findAncestor("table"),d));try{for(h.s();!(n=h.n()).done;){var f=n.value,p=f.row,g=f.cell;u[p-a].push(g)}}catch(t){h.e(t)}finally{h.f()}var m=o.row<r.row,v=o.column<r.column;return m&&u.reverse(),v&&u.forEach((function(t){return t.reverse()})),{cells:u.flat(),backward:m||v}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[Mk,Mk]}}])}(ct),ay=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view.document;this.listenTo(n,"copy",(function(e,n){return t._onCopyCut(e,n)})),this.listenTo(n,"cut",(function(e,n){return t._onCopyCut(e,n)})),this.listenTo(e.model,"insertContent",(function(e,n){return t._onInsertContent.apply(t,[e].concat(k(n)))}),{priority:"high"}),this.decorate("_replaceTableSlotCell")}},{key:"_onCopyCut",value:function(t,e){var n=this.editor.plugins.get(oy);if(n.getSelectedTableCells()&&("cut"!=t.name||!this.editor.isReadOnly)){e.preventDefault(),t.stop();var i=this.editor.data,r=this.editor.editing.view.document,o=i.toView(n.getSelectionAsFragment());r.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:o,method:t.name})}}},{key:"_onInsertContent",value:function(t,e,n){var i=this;if(!n||n.is("documentSelection")){var r=this.editor.model,o=this.editor.plugins.get(Mk),a=sy(e,r);if(a){var s=o.getSelectionAffectedTableCells(r.document.selection);s.length?(t.stop(),r.change((function(t){var e={width:o.getColumns(a),height:o.getRows(a)},n=function(t,e,n,i){var r=t[0].findAncestor("table"),o=i.getColumnIndexes(t),a=i.getRowIndexes(t),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},l=1===t.length;return l&&(s.lastRow+=e.height-1,s.lastColumn+=e.width-1,function(t,e,n,i){var r=i.getColumns(t),o=i.getRows(t);n>r&&i.insertColumns(t,{at:r,columns:n-r}),e>o&&i.insertRows(t,{at:o,rows:e-o})}(r,s.lastRow+1,s.lastColumn+1,i)),l||!i.isSelectionRectangular(t)?function(t,e,n){var i=e.firstRow,r=e.lastRow,o=e.firstColumn,a=e.lastColumn,s={first:i,last:r},l={first:o,last:a};cy(t,o,s,n),cy(t,a+1,s,n),ly(t,i,l,n),ly(t,r+1,l,n,i)}(r,s,n):(s.lastRow=Ak(r,s),s.lastColumn=Ck(r,s)),s}(s,e,t,o),r=n.lastRow-n.firstRow+1,l=n.lastColumn-n.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(r,e.height)-1,endColumn:Math.min(l,e.width)-1};a=pk(a,c,t);var u=s[0].findAncestor("table"),d=i._replaceSelectedCellsWithPasted(a,e,u,n,t);if(i.editor.plugins.get("TableSelection").isEnabled){var h=o.sortRanges(d.map((function(e){return t.createRangeOn(e)})));t.setSelection(h)}else t.setSelection(d[0],0)}))):_k(a,o)}}}},{key:"_replaceSelectedCellsWithPasted",value:function(t,e,n,i,r){var o,a,s=e.width,l=e.height,c=function(t,e,n){var i,r=new Array(n).fill(null).map((function(){return new Array(e).fill(null)})),o=b(new rk(t));try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.column,l=a.row,c=a.cell;r[l][s]=c}}catch(t){o.e(t)}finally{o.f()}return r}(t,s,l),u=[],d=b(k(new rk(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})));try{for(d.s();!(a=d.n()).done;){var h=a.value,f=h.row,p=h.column;p===i.firstColumn&&(o=h.getPositionBefore());var g=f-i.firstRow,m=p-i.firstColumn,v=c[g%l][m%s],y=v?r.cloneElement(v):null,w=this._replaceTableSlotCell(h,y,o,r);w&&(kk(w,f,p,i.lastRow,i.lastColumn,r),u.push(w),o=r.createPositionAfter(w))}}catch(t){d.e(t)}finally{d.f()}var _=parseInt(n.getAttribute("headingRows")||0),A=parseInt(n.getAttribute("headingColumns")||0),C=i.firstRow<_&&_<=i.lastRow,x=i.firstColumn<A&&A<=i.lastColumn;if(C){var D=ly(n,_,{first:i.firstColumn,last:i.lastColumn},r,i.firstRow);u.push.apply(u,k(D))}if(x){var E=cy(n,A,{first:i.firstRow,last:i.lastRow},r);u.push.apply(u,k(E))}return u}},{key:"_replaceTableSlotCell",value:function(t,e,n,i){var r=t.cell;return t.isAnchor&&i.remove(r),e?(i.insert(e,n),e):null}},{key:"getTableIfOnlyTableInContent",value:function(t,e){return sy(t,e)}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[oy,Mk]}}])}(ct);function sy(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(1==t.childCount&&t.getChild(0).is("element","table"))return t.getChild(0);var n,i=e.createRangeIn(t),r=b(i.getItems());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is("element","table")){var a=e.createRange(i.start,e.createPositionBefore(o));if(e.hasContent(a,{ignoreWhitespaces:!0}))return null;var s=e.createRange(e.createPositionAfter(o),i.end);return e.hasContent(s,{ignoreWhitespaces:!0})?null:o}}}catch(t){r.e(t)}finally{r.f()}return null}function ly(t,e,n,i){if(!(e<1))return gk(t,e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0).filter((function(t){return uy(t.column,t.cellWidth,n)})).map((function(t){return mk(t.cell,e,i)}))}function cy(t,e,n,i){if(!(e<1))return vk(t,e).filter((function(t){return uy(t.row,t.cellHeight,n)})).map((function(t){return bk(t.cell,t.column,e,i)}))}function uy(t,e,n){var i=t+e-1,r=n.first,o=n.last;return t>=r&&t<=o||t<r&&i>=r}var dy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.editing.view.document;this.listenTo(e,"arrowKey",(function(){return t._onArrowKey.apply(t,arguments)}),{context:"table"}),this.listenTo(e,"tab",(function(){return t._handleTabOnSelectedTable.apply(t,arguments)}),{context:"figure"}),this.listenTo(e,"tab",(function(){return t._handleTab.apply(t,arguments)}),{context:["th","td"]})}},{key:"_handleTabOnSelectedTable",value:function(t,e){var n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change((function(t){t.setSelection(t.createRangeIn(i.getChild(0).getChild(0)))})))}},{key:"_handleTab",value:function(t,e){var n=this.editor,i=this.editor.plugins.get(Mk),r=n.model.document.selection,o=!e.shiftKey,a=i.getTableCellsContainingSelection(r)[0];if(a||(a=this.editor.plugins.get("TableSelection").getFocusCell()),a){e.preventDefault(),e.stopPropagation(),t.stop();var s=a.parent,l=s.parent,c=l.getChildIndex(s),u=s.getChildIndex(a),d=0===u;if(o||!d||0!==c){var h=u===s.childCount-1,f=c===i.getRows(l)-1;if(o&&f&&h&&(n.execute("insertTableRowBelow"),c===i.getRows(l)-1))n.model.change((function(t){t.setSelection(t.createRangeOn(l))}));else{var p;if(o&&h){var g=l.getChild(c+1);p=g.getChild(0)}else if(!o&&d){var m=l.getChild(c-1);p=m.getChild(m.childCount-1)}else p=s.getChild(u+(o?1:-1));n.model.change((function(t){t.setSelection(t.createRangeIn(p))}))}}else n.model.change((function(t){t.setSelection(t.createRangeOn(l))}))}}},{key:"_onArrowKey",value:function(t,e){var n=this.editor,i=Hr(e.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(i,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}},{key:"_handleArrowKeys",value:function(t,e){var n,i=this.editor.plugins.get(Mk),r=this.editor.model,o=r.document.selection,a=["right","down"].includes(t),s=i.getSelectedTableCells(o);if(s.length)return n=e?this.editor.plugins.get("TableSelection").getFocusCell():a?s[s.length-1]:s[0],this._navigateFromCellInDirection(n,t,e),!0;var l=o.focus.findAncestor("tableCell");if(!l)return!1;if(!o.isCollapsed)if(e){if(o.isBackward==a&&!o.containsEntireContent(l))return!1}else{var c=o.getSelectedElement();if(!c||!r.schema.isObject(c))return!1}return!!this._isSelectionAtCellEdge(o,l,a)&&(this._navigateFromCellInDirection(l,t,e),!0)}},{key:"_isSelectionAtCellEdge",value:function(t,e,n){var i=this.editor.model,r=this.editor.model.schema,o=n?t.getLastPosition():t.getFirstPosition();if(!r.getLimitElement(o).is("element","tableCell"))return i.createPositionAt(e,n?"end":0).isTouching(o);var a=i.createSelection(o);return i.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.editor.model,r=t.findAncestor("table"),o=k(new rk(r,{includeAllSlots:!0})),a=o[o.length-1],s=a.row,l=a.column,c=o.find((function(e){return e.cell==t})),u=c.row,d=c.column;switch(e){case"left":d--;break;case"up":u--;break;case"right":d+=c.cellWidth;break;case"down":u+=c.cellHeight}if(u<0||u>s||d<0&&u<=0||d>l&&u>=s)i.change((function(t){t.setSelection(t.createRangeOn(r))}));else{d<0?(d=n?0:l,u--):d>l&&(d=n?l:0,u++);var h=o.find((function(t){return t.row==u&&t.column==d})).cell,f=["right","down"].includes(e),p=this.editor.plugins.get("TableSelection");if(n&&p.isEnabled){var g=p.getAnchorCell()||t;p.setCellSelection(g,h)}else{var m=i.createPositionAt(h,f?0:"end");i.change((function(t){t.setSelection(m)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[oy,Mk]}}])}(ct),hy=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).domEventType=["mousemove","mouseleave"],n}return C(e,t),M(e,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}])}(ha),fy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){this.editor.editing.view.addObserver(hy),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var t=this,e=this.editor,n=e.plugins.get(Mk),i=!1,r=e.plugins.get(oy);this.listenTo(e.editing.view.document,"mousedown",(function(o,a){var s=e.model.document.selection;if(t.isEnabled&&r.isEnabled&&a.domEvent.shiftKey){var l=r.getAnchorCell()||n.getTableCellsContainingSelection(s)[0];if(l){var c=t._getModelTableCellFromDomEvent(a);c&&py(l,c)&&(i=!0,r.setCellSelection(l,c),a.preventDefault())}}})),this.listenTo(e.editing.view.document,"mouseup",(function(){i=!1})),this.listenTo(e.editing.view.document,"selectionChange",(function(t){i&&t.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var t,e,n=this,i=this.editor,r=!1,o=!1,a=i.plugins.get(oy);this.listenTo(i.editing.view.document,"mousedown",(function(e,i){n.isEnabled&&a.isEnabled&&(i.domEvent.shiftKey||i.domEvent.ctrlKey||i.domEvent.altKey||(t=n._getModelTableCellFromDomEvent(i)))})),this.listenTo(i.editing.view.document,"mousemove",(function(i,s){if(s.domEvent.buttons&&t){var l=n._getModelTableCellFromDomEvent(s);l&&py(t,l)&&(e=l,r||e==t||(r=!0)),r&&(o=!0,a.setCellSelection(t,e),s.preventDefault())}})),this.listenTo(i.editing.view.document,"mouseup",(function(){r=!1,o=!1,t=null,e=null})),this.listenTo(i.editing.view.document,"selectionChange",(function(t){o&&t.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(t){var e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[oy,Mk]}}])}(ct);function py(t,e){return t.parent.parent==e.parent.parent}var gy=o(6306);function my(t){var e=t.getSelectedElement();return e&&by(e)?e:null}function vy(t){var e=t.getFirstPosition();if(!e)return null;for(var n=e.parent;n;){if(n.is("element")&&by(n))return n;n=n.parent}return null}function by(t){return!!t.getCustomProperty("table")&&sf(t)}Ao()(gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),gy.Z.locals;var ky={autoRefresh:!0},yy=36e5,wy=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ky;if(P(this,t),!e)throw new S("token-missing-token-url",this);n.initValue&&this._validateTokenValue(n.initValue),this.set("value",n.initValue),this._refresh="function"==typeof e?e:function(){return t=e,new Promise((function(e,n){var i=new XMLHttpRequest;i.open("GET",t),i.addEventListener("load",(function(){var t=i.status,r=i.response;return t<200||t>299?n(new S("token-cannot-download-new-token",null)):e(r)})),i.addEventListener("error",(function(){return n(new Error("Network Error"))})),i.addEventListener("abort",(function(){return n(new Error("Abort"))})),i.send()}));var t},this._options=Object.assign({},ky,n)}return M(t,[{key:"init",value:function(){var t=this;return new Promise((function(e,n){t.value?(t._options.autoRefresh&&t._registerRefreshTokenTimeout(),e(t)):t.refreshToken().then(e).catch(n)}))}},{key:"refreshToken",value:function(){var t=this;return this._refresh().then((function(e){t._validateTokenValue(e),t.set("value",e),t._options.autoRefresh&&t._registerRefreshTokenTimeout()})).then((function(){return t}))}},{key:"destroy",value:function(){clearTimeout(this._tokenRefreshTimeout)}},{key:"_validateTokenValue",value:function(t){var e="string"==typeof t,n=!/^".*"$/.test(t),i=e&&3===t.split(".").length;if(!n||!i)throw new S("token-not-in-jwt-format",this)}},{key:"_registerRefreshTokenTimeout",value:function(){var t=this,e=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((function(){t.refreshToken()}),e)}},{key:"_getTokenRefreshTimeoutTime",value:function(){try{var t=v(this.value.split("."),2)[1],e=JSON.parse(atob(t)).exp;return e?Math.floor((1e3*e-Date.now())/2):yy}catch(t){return yy}}}],[{key:"create",value:function(e){return new t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:ky).init()}}])}();lt(wy,et);var _y=wy,Ay=/^data:(\S*?);base64,/,Cy=function(){return M((function t(e,n,i){if(P(this,t),!e)throw new S("fileuploader-missing-file",null);if(!n)throw new S("fileuploader-missing-token",null);if(!i)throw new S("fileuploader-missing-api-address",null);this.file=function(t){if("string"!=typeof t)return!1;var e=t.match(Ay);return!(!e||!e.length)}(e)?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512;try{for(var n=t.match(Ay)[1],i=atob(t.replace(Ay,"")),r=[],o=0;o<i.length;o+=e){for(var a=i.slice(o,o+e),s=new Array(a.length),l=0;l<a.length;l++)s[l]=a.charCodeAt(l);r.push(new Uint8Array(s))}return new Blob(r,{type:n})}catch(t){throw new S("fileuploader-decoding-image-data-error",null)}}(e):e,this._token=n,this._apiAddress=i}),[{key:"onProgress",value:function(t){return this.on("progress",(function(e,n){return t(n)})),this}},{key:"onError",value:function(t){return this.once("error",(function(e,n){return t(n)})),this}},{key:"abort",value:function(){this.xhr.abort()}},{key:"send",value:function(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}},{key:"_prepareRequest",value:function(){var t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}},{key:"_attachXHRListeners",value:function(){var t=this,e=this,n=this.xhr;function i(t){return function(){return e.fire("error",t)}}n.addEventListener("error",i("Network Error")),n.addEventListener("abort",i("Abort")),n.upload&&n.upload.addEventListener("progress",(function(e){e.lengthComputable&&t.fire("progress",{total:e.total,uploaded:e.loaded})})),n.addEventListener("load",(function(){var e=n.status,i=n.response;if(e<200||e>299)return t.fire("error",i.message||i.error)}))}},{key:"_sendRequest",value:function(){var t=this,e=new FormData,n=this.xhr;return e.append("file",this.file),new Promise((function(i,r){n.addEventListener("load",(function(){var e=n.status,o=n.response;return e<200||e>299?o.message?r(new S("fileuploader-uploading-data-failed",t,{message:o.message})):r(o.error):i(o)})),n.addEventListener("error",(function(){return r(new Error("Network Error"))})),n.addEventListener("abort",(function(){return r(new Error("Abort"))})),n.send(e)}))}}])}();lt(Cy,F);var xy=function(){return M((function t(e,n){if(P(this,t),!e)throw new S("uploadgateway-missing-token",null);if(!n)throw new S("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=n}),[{key:"upload",value:function(t){return new Cy(t,this._token,this._apiAddress)}}])}(),Dy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"createToken",value:function(t,e){return new _y(t,e)}},{key:"createUploadGateway",value:function(t,e){return new xy(t,e)}}],[{key:"pluginName",get:function(){return"CloudServicesCore"}}])}(oi);function Ey(t,e){return"".concat((arguments.length>2&&void 0!==arguments[2]?arguments[2]:"    ").repeat(Math.max(0,e))).concat(t)}var Sy=o(2896);Ao()(Sy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Sy.Z.locals;var Ty="SourceEditingMode";function Iy(t){return function(t){return t.startsWith("<")}(t)?function(t){var e=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"br",isVoid:!0},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"input",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"textarea",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],n=e.map((function(t){return t.name})).join("|"),i=t.replace(new RegExp("</?(".concat(n,")( .*?)?>"),"g"),"\n$&\n").split("\n"),r=0;return i.filter((function(t){return t.length})).map((function(t){return function(t,e){return e.some((function(e){return!e.isVoid&&!!new RegExp("<".concat(e.name,"( .*?)?>")).test(t)}))}(t,e)?Ey(t,r++):function(t,e){return e.some((function(e){return new RegExp("</".concat(e.name,">")).test(t)}))}(t,e)?Ey(t,--r):Ey(t,r)})).join("\n")}(t):t}var My="subscript",Oy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:My}),t.model.schema.setAttributeProperties(My,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:My,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(My,new Up(t,My))}}],[{key:"pluginName",get:function(){return"SubscriptEditing"}}])}(ct),Py="subscript",Ny=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(Py,(function(i){var r=e.commands.get(Py),o=new ld(i);return o.set({label:n("Subscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82zm8.147 7.829h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute(Py),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"SubscriptUI"}}])}(ct),By="superscript",Ly=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:By}),t.model.schema.setAttributeProperties(By,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:By,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(By,new Up(t,By))}}],[{key:"pluginName",get:function(){return"SuperscriptEditing"}}])}(ct),jy="superscript",Ry=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(jy,(function(i){var r=e.commands.get(jy),o=new ld(i);return o.set({label:n("Superscript"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.677 8.678h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82z"/></svg>',tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute(jy),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"SuperscriptUI"}}])}(ct),zy="strikethrough",Fy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:zy}),t.model.schema.setAttributeProperties(zy,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:zy,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(zy,new Up(t,zy)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}],[{key:"pluginName",get:function(){return"StrikethroughEditing"}}])}(ct),Hy="strikethrough",Vy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(Hy,(function(i){var r=e.commands.get(Hy),o=new ld(i);return o.set({label:n("Strikethrough"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute(Hy),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"StrikethroughUI"}}])}(ct),Uy="underline",Wy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:Uy}),t.model.schema.setAttributeProperties(Uy,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Uy,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(Uy,new Up(t,Uy)),t.keystrokes.set("CTRL+U","underline")}}],[{key:"pluginName",get:function(){return"UnderlineEditing"}}])}(ct),qy="underline",$y=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(qy,(function(i){var r=e.commands.get(qy),o=new ld(i);return o.set({label:n("Underline"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute(qy),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"UnderlineUI"}}])}(ct),Yy=["left","right","center","justify"];function Gy(t){return Yy.includes(t)}function Ky(t,e){return"rtl"==e.contentLanguageDirection?"right"===t:"left"===t}function Qy(t){var e=t.map((function(t){return"string"==typeof t?{name:t}:t})).filter((function(t){var e=!!Yy.includes(t.name);return e||T("alignment-config-name-not-recognized",{option:t}),e})),n=e.filter((function(t){return!!t.className})).length;if(n&&n<e.length)throw new S("alignment-config-classnames-are-missing",{configuredOptions:t});return e.forEach((function(e,n,i){var r=i.slice(n+1);if(r.some((function(t){return t.name==e.name})))throw new S("alignment-config-name-already-defined",{option:e,configuredOptions:t});if(e.className&&r.some((function(t){return t.className==e.className})))throw new S("alignment-config-classname-already-defined",{option:e,configuredOptions:t})})),e}var Zy="alignment",Jy=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"refresh",value:function(){var t=this.editor.locale,e=ja(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!e&&this._canBeAligned(e),this.isEnabled&&e.hasAttribute("alignment")?this.value=e.getAttribute("alignment"):this.value="rtl"===t.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,i=n.locale,r=n.model,o=r.document,a=e.value;r.change((function(e){var n=Array.from(o.selection.getSelectedBlocks()).filter((function(e){return t._canBeAligned(e)})),r=n[0].getAttribute("alignment");Ky(a,i)||r===a||!a?function(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.removeAttribute(Zy,r)}}catch(t){i.e(t)}finally{i.f()}}(n,e):function(t,e,n){var i,r=b(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;e.setAttribute(Zy,n,o)}}catch(t){r.e(t)}finally{r.f()}}(n,e,a)}))}},{key:"_canBeAligned",value:function(t){return this.editor.model.schema.checkAttribute(t,Zy)}}])}(dt),Xy=function(t){function e(t){var n;return P(this,e),n=_(this,e,[t]),t.config.define("alignment",{options:k(Yy.map((function(t){return{name:t}})))}),n}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.model.schema,i=Qy(t.config.get("alignment.options")).filter((function(t){return Gy(t.name)&&!Ky(t.name,e)})),r=i.some((function(t){return!!t.className}));n.extend("$block",{allowAttributes:"alignment"}),t.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),r?t.conversion.attributeToAttribute(function(t){var e,n={model:{key:"alignment",values:t.map((function(t){return t.name}))},view:{}},i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;n.view[r.name]={key:"class",value:r.className}}}catch(t){i.e(t)}finally{i.f()}return n}(i)):t.conversion.for("downcast").attributeToAttribute(function(t){var e,n={model:{key:"alignment",values:t.map((function(t){return t.name}))},view:{}},i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value.name;n.view[r]={key:"style",value:{"text-align":r}}}}catch(t){i.e(t)}finally{i.f()}return n}(i));var o,a=function(t){var e,n=[],i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value.name;n.push({view:{key:"style",value:{"text-align":r}},model:{key:"alignment",value:r}})}}catch(t){i.e(t)}finally{i.f()}return n}(i),s=b(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;t.conversion.for("upcast").attributeToAttribute(l)}}catch(t){s.e(t)}finally{s.f()}var c,u=function(t){var e,n=[],i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value.name;n.push({view:{key:"align",value:r},model:{key:"alignment",value:r}})}}catch(t){i.e(t)}finally{i.f()}return n}(i),d=b(u);try{for(d.s();!(c=d.n()).done;){var h=c.value;t.conversion.for("upcast").attributeToAttribute(h)}}catch(t){d.e(t)}finally{d.f()}t.commands.add("alignment",new Jy(t))}}],[{key:"pluginName",get:function(){return"AlignmentEditing"}}])}(ct),tw=new Map([["left",Vu],["right",Wu],["center",Uu],["justify",qu]]),ew=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"localizedOptionTitles",get:function(){var t=this.editor.t;return{left:t("Align left"),right:t("Align right"),center:t("Align center"),justify:t("Justify")}}},{key:"init",value:function(){var t=this,e=this.editor,n=e.ui.componentFactory,i=e.t,r=Qy(e.config.get("alignment.options"));r.map((function(t){return t.name})).filter(Gy).forEach((function(e){return t._addButton(e)})),n.add("alignment",(function(o){var a=Bd(o),s=r.map((function(t){return n.create("alignment:".concat(t.name))}));Ld(a,s,{enableActiveItemFocusOnDropdownOpen:!0}),a.buttonView.set({label:i("Text alignment"),tooltip:!0}),a.toolbarView.isVertical=!0,a.toolbarView.ariaLabel=i("Text alignment toolbar"),a.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var l="rtl"===o.contentLanguageDirection?tw.get("right"):tw.get("left");return a.buttonView.bind("icon").toMany(s,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.findIndex((function(t){return t}));return i<0?l:s[i].icon})),a.bind("isEnabled").toMany(s,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),t.listenTo(a,"execute",(function(){e.editing.view.focus()})),a}))}},{key:"_addButton",value:function(t){var e=this,n=this.editor;n.ui.componentFactory.add("alignment:".concat(t),(function(i){var r=n.commands.get("alignment"),o=new ld(i);return o.set({label:e.localizedOptionTitles[t],icon:tw.get(t),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r),o.bind("isOn").to(r,"value",(function(e){return e===t})),e.listenTo(o,"execute",(function(){n.execute("alignment",{value:t}),n.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}])}(ct),nw=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!0}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!0}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!0}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!0}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!0}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!0}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"]}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container"}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container"}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!0}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!0}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!0}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!0}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!0}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd"],isBlock:!0}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!0}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!0}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!0}}],iw=[{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref",attributeProperties:{copyOnEnter:!0}},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],isInline:!0}}],rw=Gi((function(t,e,n,i){Fi(t,e,n,i)})),ow=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._definitions=new Map,n}return C(e,t),M(e,[{key:"init",value:function(){for(var t=0,e=nw;t<e.length;t++){var n=e[t];this.registerBlockElement(n)}for(var i=0,r=iw;i<r.length;i++){var o=r[i];this.registerInlineElement(o)}}},{key:"registerBlockElement",value:function(t){this._definitions.set(t.model,h(h({},t),{},{isBlock:!0}))}},{key:"registerInlineElement",value:function(t){this._definitions.set(t.model,h(h({},t),{},{isInline:!0}))}},{key:"extendBlockElement",value:function(t){this._extendDefinition(h(h({},t),{},{isBlock:!0}))}},{key:"extendInlineElement",value:function(t){this._extendDefinition(h(h({},t),{},{isInline:!0}))}},{key:"getDefinitionsForView",value:function(t,e){var n,i=new Set,r=b(this._getMatchingViewDefinitions(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;if(e){var a,s=b(this._getReferences(o.model));try{for(s.s();!(a=s.n()).done;){var l=a.value;i.add(l)}}catch(t){s.e(t)}finally{s.f()}}i.add(o)}}catch(t){r.e(t)}finally{r.f()}return i}},{key:"_getMatchingViewDefinitions",value:function(t){return Array.from(this._definitions.values()).filter((function(e){return e.view&&function(t,e){return"string"==typeof t?t===e:t instanceof RegExp&&t.test(e)}(t,e.view)}))}},{key:"_getReferences",value:m().mark((function t(e){var n,i,r,o,a,s,l,c,u;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this._definitions.get(e),i=n.modelSchema){t.next=3;break}return t.abrupt("return");case 3:r=0,o=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"];case 5:if(!(r<o.length)){t.next=31;break}a=o[r],s=b(Xn(i[a]||[])),t.prev=8,s.s();case 10:if((l=s.n()).done){t.next=20;break}if(c=l.value,u=this._definitions.get(c),t.t0=c!==e&&u,!t.t0){t.next=18;break}return t.delegateYield(this._getReferences(u.model),"t1",16);case 16:return t.next=18,u;case 18:t.next=10;break;case 20:t.next=25;break;case 22:t.prev=22,t.t2=t.catch(8),s.e(t.t2);case 25:return t.prev=25,s.f(),t.finish(25);case 28:r++,t.next=5;break;case 31:case"end":return t.stop()}}),t,this,[[8,22,25,28]])}))},{key:"_extendDefinition",value:function(t){var e=this._definitions.get(t.model),n=rw({},e,t,(function(t,e){return Array.isArray(t)?t.concat(e):void 0}));this._definitions.set(t.model,n)}}],[{key:"pluginName",get:function(){return"DataSchema"}}])}(ct);function aw(t,e,n,i){e&&function(t,e,n){if(e.attributes)for(var i=0,r=Object.entries(e.attributes);i<r.length;i++){var o=v(r[i],1)[0];t.removeAttribute(o,n)}if(e.styles)for(var a=0,s=Object.keys(e.styles);a<s.length;a++){var l=s[a];t.removeStyle(l,n)}e.classes&&t.removeClass(e.classes,n)}(t,e,i),n&&sw(t,n,i)}function sw(t,e,n){if(e.attributes)for(var i=0,r=Object.entries(e.attributes);i<r.length;i++){var o=v(r[i],2),a=o[0],s=o[1];t.setAttribute(a,s,n)}e.styles&&t.setStyle(e.styles,n),e.classes&&t.addClass(e.classes,n)}function lw(t,e){var n=js(t);for(var i in e)Array.isArray(e[i])?n[i]=Array.from(new Set([].concat(k(t[i]||[]),k(e[i])))):n[i]=h(h({},t[i]),e[i]);return n}function cw(t){var e=t.model;return function(t,n){return n.writer.createElement(e,{htmlContent:t.getCustomProperty("$rawContent")})}}function uw(t,e){var n=e.view,i=e.isInline,r=t.t;return function(t,e){var o=e.writer,a=r("HTML object"),s=dw(n,t,o),l=t.getAttribute("htmlAttributes");return o.addClass("html-object-embed__content",s),l&&sw(o,l,s),lf(o.createContainerElement(i?"span":"div",{class:"html-object-embed","data-html-object-embed-label":a},s),o,{widgetLabel:a})}}function dw(t,e,n){return n.createRawElement(t,null,(function(t,n){n.setContentOf(t,e.getAttribute("htmlContent"))}))}function hw(t){var e=t.priority,n=t.view;return function(t,i){if(t){var r=i.writer,o=r.createAttributeElement(n,null,{priority:e});return sw(r,t,o),o}}}function fw(t,e){var n=t.view;return function(t){t.on("element:".concat(n),(function(t,n,i){if(n.modelRange&&!n.modelRange.isCollapsed){var r=e.processViewAttributes(n.viewItem,i);r&&i.writer.setAttribute("htmlAttributes",r,n.modelRange)}}),{priority:"low"})}}function pw(t){var e=t.model;return function(t){t.on("attribute:htmlAttributes:".concat(e),(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=e.attributeOldValue,r=e.attributeNewValue;aw(n.writer,i,r,n.mapper.toViewElement(e.item))}}))}}var gw=function(t){return t!=t},mw=function(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}(t,gw,n)},vw=function(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1},bw=Array.prototype.splice,kw=Yi((function(t,e){return t&&t.length&&e&&e.length?function(t,e,n,i){var r=i?vw:mw,o=-1,a=e.length,s=t;for(t===e&&(e=Ze(e)),n&&(s=xi(t,Se(n)));++o<a;)for(var l=0,c=e[o],u=n?n(c):c;(l=r(s,u,l,i))>-1;)s!==t&&bw.call(s,l,1),bw.call(t,l,1);return t}(t,e):t})),yw=o(5049);Ao()(yw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),yw.Z.locals;var ww=function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t]))._dataSchema=t.plugins.get("DataSchema"),n._allowedAttributes=new fi,n._disallowedAttributes=new fi,n._allowedElements=new Set,n._dataInitialized=!1,n._coupledAttributes=null,n._registerElementsAfterInit(),n._registerElementHandlers(),n._registerModelPostFixer(),n}return C(e,t),M(e,[{key:"loadAllowedConfig",value:function(t){var e=this;this._loadConfig(t,(function(t){return e.allowAttributes(t)}))}},{key:"loadDisallowedConfig",value:function(t){var e=this;this._loadConfig(t,(function(t){return e.disallowAttributes(t)}))}},{key:"allowElement",value:function(t){var e,n=b(this._dataSchema.getDefinitionsForView(t,!0));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._allowedElements.has(i)||(this._allowedElements.add(i),this._dataInitialized&&this._fireRegisterEvent(i),this._coupledAttributes=null)}}catch(t){n.e(t)}finally{n.f()}}},{key:"allowAttributes",value:function(t){this._allowedAttributes.add(t)}},{key:"disallowAttributes",value:function(t){this._disallowedAttributes.add(t)}},{key:"_loadConfig",value:function(t,e){var n,i=b(t);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.name||/[\s\S]+/;this.allowElement(o),Dw(r).forEach(e)}}catch(t){i.e(t)}finally{i.f()}}},{key:"processViewAttributes",value:function(t,e){return _w(t,e,this._disallowedAttributes),_w(t,e,this._allowedAttributes)}},{key:"_registerElementsAfterInit",value:function(){var t=this;this.editor.data.on("init",(function(){t._dataInitialized=!0;var e,n=b(t._allowedElements);try{for(n.s();!(e=n.n()).done;){var i=e.value;t._fireRegisterEvent(i)}}catch(t){n.e(t)}finally{n.f()}}),{priority:w.get("highest")+1})}},{key:"_registerElementHandlers",value:function(){var t=this;this.on("register",(function(e,n){var i=t.editor.model.schema;if(n.isObject&&!i.isRegistered(n.model))t._registerObjectElement(n);else if(n.isBlock)t._registerBlockElement(n);else{if(!n.isInline)throw new S("data-filter-invalid-definition",null,n);t._registerInlineElement(n)}e.stop()}),{priority:"lowest"})}},{key:"_registerModelPostFixer",value:function(){var t=this,e=this.editor.model;e.document.registerPostFixer((function(n){var i,r=e.document.differ.getChanges(),o=!1,a=t._getCoupledAttributesMap(),s=b(r);try{for(s.s();!(i=s.n()).done;){var l=i.value;if("attribute"==l.type&&null===l.attributeNewValue){var c=a.get(l.attributeKey);if(c){var u,d=b(l.range.getWalker({shallow:!0}));try{for(d.s();!(u=d.n()).done;){var h,f=u.value.item,p=b(c);try{for(p.s();!(h=p.n()).done;){var g=h.value;f.hasAttribute(g)&&(n.removeAttribute(g,f),o=!0)}}catch(t){p.e(t)}finally{p.f()}}}catch(t){d.e(t)}finally{d.f()}}}}}catch(t){s.e(t)}finally{s.f()}return o}))}},{key:"_getCoupledAttributesMap",value:function(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;var t,e=b(this._allowedElements);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n.coupledAttribute&&n.model){var i=this._coupledAttributes.get(n.coupledAttribute);i?i.push(n.model):this._coupledAttributes.set(n.coupledAttribute,[n.model])}}}catch(t){e.e(t)}finally{e.f()}}},{key:"_fireRegisterEvent",value:function(t){this.fire(t.view?"register:".concat(t.view):"register",t)}},{key:"_registerObjectElement",value:function(t){var e=this.editor,n=e.model.schema,i=e.conversion,r=t.view,o=t.model;n.register(o,t.modelSchema),r&&(n.extend(t.model,{allowAttributes:["htmlAttributes","htmlContent"]}),e.data.registerRawContentMatcher({name:r}),i.for("upcast").elementToElement({view:r,model:cw(t),converterPriority:w.get("low")+1}),i.for("upcast").add(fw(t,this)),i.for("editingDowncast").elementToStructure({model:{name:o,attributes:["htmlAttributes"]},view:uw(e,t)}),i.for("dataDowncast").elementToElement({model:o,view:function(t,e){var n=e.writer;return dw(r,t,n)}}),i.for("dataDowncast").add(pw(t)))}},{key:"_registerBlockElement",value:function(t){var e=this.editor,n=e.model.schema,i=e.conversion,r=t.view,o=t.model;if(!n.isRegistered(t.model)){if(n.register(t.model,t.modelSchema),!r)return;i.for("upcast").elementToElement({model:o,view:r,converterPriority:w.get("low")+1}),i.for("downcast").elementToElement({model:o,view:r})}r&&(n.extend(t.model,{allowAttributes:"htmlAttributes"}),i.for("upcast").add(fw(t,this)),i.for("downcast").add(pw(t)))}},{key:"_registerInlineElement",value:function(t){var e=this.editor,n=e.model.schema,i=e.conversion,r=t.model;n.extend("$text",{allowAttributes:r}),t.attributeProperties&&n.setAttributeProperties(r,t.attributeProperties),i.for("upcast").add(function(t,e){var n=t.view,i=t.model;return function(t){t.on("element:".concat(n),(function(t,n,r){var o=e.processViewAttributes(n.viewItem,r);if(o||r.consumable.test(n.viewItem,{name:!0})){o=o||{},r.consumable.consume(n.viewItem,{name:!0}),n.modelRange||(n=Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor)));var a,s=b(n.modelRange.getItems());try{for(s.s();!(a=s.n()).done;){var l=a.value;if(r.schema.checkAttribute(l,i)){var c=lw(o,l.getAttribute(i)||{});r.writer.setAttribute(i,c,l)}}}catch(t){s.e(t)}finally{s.f()}}}),{priority:"low"})}}(t,this)),i.for("downcast").attributeToElement({model:r,view:hw(t)})}}],[{key:"pluginName",get:function(){return"DataFilter"}},{key:"requires",get:function(){return[ow,If]}}])}(ct);function _w(t,e,n){var i=function(t,e,n){var i,r=e.consumable,o=[],a=b(n.matchAll(t)||[]);try{for(a.s();!(i=a.n()).done;){var s=i.value;Aw(r,t,s),delete s.match.name,r.consume(t,s.match),o.push(s)}}catch(t){a.e(t)}finally{a.f()}return o}(t,e,n),r=function(t){var e,n={attributes:new Set,classes:new Set,styles:new Set},i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=function(t){(r.match[t]||[]).forEach((function(e){return n[t].add(e)}))};for(var a in n)o(a)}}catch(t){i.e(t)}finally{i.f()}return n}(i),o=r.attributes,a=r.styles,s=r.classes,l={};if(o.size){var c,u=b(o);try{for(u.s();!(c=u.n()).done;){var d=c.value;Ew(d)||o.delete(d)}}catch(t){u.e(t)}finally{u.f()}}return o.size&&(l.attributes=Cw(o,(function(e){return t.getAttribute(e)}))),a.size&&(l.styles=Cw(a,(function(e){return t.getStyle(e)}))),s.size&&(l.classes=Array.from(s)),Object.keys(l).length?l:null}function Aw(t,e,n){for(var i=0,r=["attributes","classes","styles"];i<r.length;i++){var o=r[i],a=n.match[o];if(a)for(var s=0,l=Array.from(a);s<l.length;s++){var c=l[s];t.test(e,f({},o,[c]))||kw(a,c)}}}function Cw(t,e){var n,i={},r=b(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;void 0!==e(o)&&(i[o]=e(o))}}catch(t){r.e(t)}finally{r.f()}return i}function xw(t,e){var n=t.name;return Pt(t[e])?Object.entries(t[e]).map((function(t){var i=v(t,2),r=i[0],o=i[1];return f({name:n},e,f({},r,o))})):Array.isArray(t[e])?t[e].map((function(t){return f({name:n},e,[t])})):[t]}function Dw(t){var e=t.name,n=t.attributes,i=t.classes,r=t.styles,o=[];return n&&o.push.apply(o,k(xw({name:e,attributes:n},"attributes"))),i&&o.push.apply(o,k(xw({name:e,classes:i},"classes"))),r&&o.push.apply(o,k(xw({name:e,styles:r},"styles"))),o}function Ew(t){try{document.createAttribute(t)}catch(t){return!1}return!0}var Sw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this;if(this.editor.plugins.has("CodeBlockEditing")){var e=this.editor.plugins.get(ww);e.on("register:pre",(function(n,i){if("codeBlock"===i.model){var r=t.editor,o=r.model.schema,a=r.conversion;o.extend("codeBlock",{allowAttributes:["htmlAttributes","htmlContentAttributes"]}),a.for("upcast").add(function(t){return function(e){e.on("element:code",(function(e,n,i){var r=n.viewItem,o=r.parent;function a(e,r){var o=t.processViewAttributes(e,i);o&&i.writer.setAttribute(r,o,n.modelRange)}o&&o.is("element","pre")&&(a(o,"htmlAttributes"),a(r,"htmlContentAttributes"))}),{priority:"low"})}}(e)),a.for("downcast").add((function(t){t.on("attribute:htmlAttributes:codeBlock",(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=e.attributeOldValue,r=e.attributeNewValue,o=n.mapper.toViewElement(e.item).parent;aw(n.writer,i,r,o)}})),t.on("attribute:htmlContentAttributes:codeBlock",(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=e.attributeOldValue,r=e.attributeNewValue,o=n.mapper.toViewElement(e.item);aw(n.writer,i,r,o)}}))})),n.stop()}}))}}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"CodeBlockElementSupport"}}])}(ct),Tw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this;this.editor.plugins.get(ww).on("register",(function(e,n){var i=t.editor,r=i.model.schema,o=i.conversion;if(n.paragraphLikeModel&&!r.isRegistered(n.model)&&!r.isRegistered(n.paragraphLikeModel)){var a={model:n.paragraphLikeModel,view:n.view};r.register(n.model,n.modelSchema),r.register(a.model,{inheritAllFrom:"$block"}),o.for("upcast").elementToElement({view:n.view,model:function(e,i){var r=i.writer;return t._hasBlockContent(e)?r.createElement(n.model):r.createElement(a.model)},converterPriority:w.get("low")+1}),o.for("downcast").elementToElement({view:n.view,model:n.model}),t._addAttributeConversion(n),o.for("downcast").elementToElement({view:a.view,model:a.model}),t._addAttributeConversion(a),e.stop()}}))}},{key:"_hasBlockContent",value:function(t){var e,n=this.editor.editing.view,i=n.domConverter.blockElements,r=b(n.createRangeIn(t).getItems());try{for(r.s();!(e=r.n()).done;){var o=e.value;if(o.is("element")&&i.includes(o.name))return!0}}catch(t){r.e(t)}finally{r.f()}return!1}},{key:"_addAttributeConversion",value:function(t){var e=this.editor,n=e.conversion,i=e.plugins.get(ww);e.model.schema.extend(t.model,{allowAttributes:"htmlAttributes"}),n.for("upcast").add(fw(t,i)),n.for("downcast").add(pw(t))}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"DualContentModelElementSupport"}}])}(ct),Iw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;if(t.plugins.has("HeadingEditing")){var e,n=t.plugins.get(ow),i=[],r=b(t.config.get("heading.options"));try{for(r.s();!(e=r.n()).done;){var o=e.value;"model"in o&&"view"in o&&(n.registerBlockElement({view:o.view,model:o.model}),i.push(o.model))}}catch(t){r.e(t)}finally{r.f()}n.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:i}})}}}],[{key:"requires",get:function(){return[ow]}},{key:"pluginName",get:function(){return"HeadingElementSupport"}}])}(ct),Mw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;if(t.plugins.has("ImageInlineEditing")||t.plugins.has("ImageBlockEditing")){var e=t.model.schema,n=t.conversion,i=t.plugins.get(ww);i.on("register:figure",(function(){n.for("upcast").add(function(t){return function(e){e.on("element:figure",(function(e,n,i){var r=n.viewItem;if(n.modelRange&&r.hasClass("image")){var o=t.processViewAttributes(r,i);o&&i.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}}),{priority:"low"})}}(i))})),i.on("register:img",(function(t,r){"imageBlock"!==r.model&&"imageInline"!==r.model||(e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["htmlA","htmlAttributes"]}),n.for("upcast").add(function(t){return function(e){e.on("element:img",(function(e,n,i){if(n.modelRange){var r=n.viewItem,o=r.parent;a(r,"htmlAttributes"),o.is("element","a")&&function(t){n.modelRange&&n.modelRange.getContainedElement().is("element","imageBlock")&&a(t,"htmlLinkAttributes")}(o)}function a(e,r){var o=t.processViewAttributes(e,i);o&&i.writer.setAttribute(r,o,n.modelRange)}}),{priority:"low"})}}(i)),n.for("downcast").add((function(t){function e(e,n){t.on("attribute:".concat(n,":imageBlock"),(function(t,n,i){if(i.consumable.test(n.item,t.name)){var r=n.attributeOldValue,o=n.attributeNewValue,a=i.mapper.toViewElement(n.item),s=Ow(i.writer,a,e);s&&(aw(i.writer,r,o,s),i.consumable.consume(n.item,t.name))}}),{priority:"low"}),"a"===e&&t.on("attribute:linkHref:imageBlock",(function(t,e,n){if(n.consumable.consume(e.item,"attribute:htmlLinkAttributes:imageBlock")){var i=n.mapper.toViewElement(e.item),r=Ow(n.writer,i,"a");sw(n.writer,e.item.getAttribute("htmlLinkAttributes"),r)}}),{priority:"low"})}(function(e){t.on("attribute:".concat(e,":imageInline"),(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=e.attributeOldValue,r=e.attributeNewValue,o=n.mapper.toViewElement(e.item);aw(n.writer,i,r,o)}}),{priority:"low"})})("htmlAttributes"),e("img","htmlAttributes"),e("figure","htmlFigureAttributes"),e("a","htmlLinkAttributes")})),t.stop())}))}}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"ImageElementSupport"}}])}(ct);function Ow(t,e,n){var i,r=b(t.createRangeOn(e).getWalker());try{for(r.s();!(i=r.n()).done;){var o=i.value.item;if(o.is("element",n))return o}}catch(t){r.e(t)}finally{r.f()}}var Pw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;if(t.plugins.has("MediaEmbed")&&!t.config.get("mediaEmbed.previewsInData")){var e=t.model.schema,n=t.conversion,i=this.editor.plugins.get(ww),r=this.editor.plugins.get(ow),o=t.config.get("mediaEmbed.elementName");r.registerBlockElement({model:"media",view:o}),i.on("register:figure",(function(){n.for("upcast").add(function(t){return function(e){e.on("element:figure",(function(e,n,i){var r=n.viewItem;if(n.modelRange&&r.hasClass("media")){var o=t.processViewAttributes(r,i);o&&i.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}}),{priority:"low"})}}(i))})),i.on("register:".concat(o),(function(t,r){"media"===r.model&&(e.extend("media",{allowAttributes:["htmlAttributes","htmlFigureAttributes"]}),n.for("upcast").add(function(t,e){return function(t){t.on("element:".concat(e),n)};function n(e,n,i){!function(e,r){var o=t.processViewAttributes(e,i);o&&i.writer.setAttribute(r,o,n.modelRange)}(n.viewItem,"htmlAttributes")}}(i,o)),n.for("dataDowncast").add(function(t){return function(e){function n(t,n){e.on("attribute:".concat(n,":media"),(function(e,n,i){if(i.consumable.consume(n.item,e.name)){var r=n.attributeOldValue,o=n.attributeNewValue,a=i.mapper.toViewElement(n.item),s=function(t,e,n){var i,r=b(t.createRangeOn(e).getWalker());try{for(r.s();!(i=r.n()).done;){var o=i.value.item;if(o.is("element",n))return o}}catch(t){r.e(t)}finally{r.f()}}(i.writer,a,t);aw(i.writer,r,o,s)}}))}n(t,"htmlAttributes"),n("figure","htmlFigureAttributes")}}(o)),t.stop())}))}}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"MediaEmbedElementSupport"}}])}(ct),Nw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.plugins.get(ww);e.on("register:script",(function(n,i){var r=t.editor,o=r.model.schema,a=r.conversion;o.register("htmlScript",i.modelSchema),o.extend("htmlScript",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),r.data.registerRawContentMatcher({name:"script"}),a.for("upcast").elementToElement({view:"script",model:cw(i)}),a.for("upcast").add(fw(i,e)),a.for("downcast").elementToElement({model:"htmlScript",view:function(t,e){return dw("script",t,e.writer)}}),a.for("downcast").add(pw(i)),n.stop()}))}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"ScriptElementSupport"}}])}(ct),Bw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;if(t.plugins.has("TableEditing")){var e=t.model.schema,n=t.conversion,i=t.plugins.get(ww);i.on("register:figure",(function(){n.for("upcast").add(function(t){return function(e){e.on("element:figure",(function(e,n,i){var r=n.viewItem;if(n.modelRange&&r.hasClass("table")){var o=t.processViewAttributes(r,i);o&&i.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}}),{priority:"low"})}}(i))})),i.on("register:table",(function(t,r){"table"===r.model&&(e.extend("table",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),n.for("upcast").add(function(t){return function(e){e.on("element:table",(function(e,n,i){var r=n.viewItem;l(r,"htmlAttributes");var o,a=b(r.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;s.is("element","thead")&&l(s,"htmlTheadAttributes"),s.is("element","tbody")&&l(s,"htmlTbodyAttributes")}}catch(t){a.e(t)}finally{a.f()}function l(e,r){var o=t.processViewAttributes(e,i);o&&i.writer.setAttribute(r,o,n.modelRange)}}))}}(i)),n.for("downcast").add((function(t){function e(e,n){t.on("attribute:".concat(n,":table"),(function(t,n,i){if(i.consumable.consume(n.item,t.name)){var r=i.mapper.toViewElement(n.item),o=function(t,e,n){var i,r=b(t.createRangeOn(e).getWalker());try{for(r.s();!(i=r.n()).done;){var o=i.value.item;if(o.is("element",n))return o}}catch(t){r.e(t)}finally{r.f()}}(i.writer,r,e);sw(i.writer,n.attributeNewValue,o)}}))}e("table","htmlAttributes"),e("figure","htmlFigureAttributes"),e("thead","htmlTheadAttributes"),e("tbody","htmlTbodyAttributes")})),t.stop())}))}}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"TableElementSupport"}}])}(ct),Lw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.plugins.get(ww);e.on("register:style",(function(n,i){var r=t.editor,o=r.model.schema,a=r.conversion;o.register("htmlStyle",i.modelSchema),o.extend("htmlStyle",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),r.data.registerRawContentMatcher({name:"style"}),a.for("upcast").elementToElement({view:"style",model:cw(i)}),a.for("upcast").add(fw(i,e)),a.for("downcast").elementToElement({model:"htmlStyle",view:function(t,e){return dw("style",t,e.writer)}}),a.for("downcast").add(pw(i)),n.stop()}))}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"StyleElementSupport"}}])}(ct),jw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;if(t.plugins.has("DocumentListEditing")){var e=t.model.schema,n=t.conversion,i=t.plugins.get(ww),r=t.plugins.get("DocumentListEditing");r.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:function(t,e,n){sw(t,e,n)}}),r.registerDowncastStrategy({scope:"list",attributeName:"htmlListAttributes",setAttributeOnDowncast:function(t,e,n){sw(t,e,n)}}),i.on("register",(function(t,r){["ul","ol","li"].includes(r.view)&&(t.stop(),e.checkAttribute("$block","htmlListAttributes")||(e.extend("$block",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),e.extend("$blockObject",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),e.extend("$container",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),n.for("upcast").add((function(t){t.on("element:ul",Rw("htmlListAttributes",i),{priority:"low"}),t.on("element:ol",Rw("htmlListAttributes",i),{priority:"low"}),t.on("element:li",Rw("htmlLiAttributes",i),{priority:"low"})}))))})),r.on("postFixer",(function(t,e){var n,i=e.listNodes,r=e.writer,o=[],a=b(i);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.node,c=s.previous;if(c){var u=l.getAttribute("listIndent"),d=c.getAttribute("listIndent"),h=null;if(u>d?o[d]=c:u<d?(h=o[u],o.length=u):h=c,h){if(h.getAttribute("listType")==l.getAttribute("listType")){var f=h.getAttribute("htmlListAttributes");rc(l.getAttribute("htmlListAttributes"),f)||(r.setAttribute("htmlListAttributes",f,l),t.return=!0)}if(h.getAttribute("listItemId")==l.getAttribute("listItemId")){var p=h.getAttribute("htmlLiAttributes");rc(l.getAttribute("htmlLiAttributes"),p)||(r.setAttribute("htmlLiAttributes",p,l),t.return=!0)}}}}}catch(t){a.e(t)}finally{a.f()}}))}}},{key:"afterInit",value:function(){var t=this.editor;t.commands.get("indentList")&&this.listenTo(t.commands.get("indentList"),"afterExecute",(function(e,n){t.model.change((function(t){var e,i=b(n);try{for(i.s();!(e=i.n()).done;){var r=e.value;t.setAttribute("htmlListAttributes",{},r)}}catch(t){i.e(t)}finally{i.f()}}))}))}}],[{key:"requires",get:function(){return[ww]}},{key:"pluginName",get:function(){return"DocumentListElementSupport"}}])}(ct);function Rw(t,e){return function(n,i,r){var o=i.viewItem;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor));var a,s=e.processViewAttributes(o,r),l=b(i.modelRange.getItems({shallow:!0}));try{for(l.s();!(a=l.n()).done;){var c=a.value;c.hasAttribute("listItemId")&&(c.hasAttribute(t)||r.writer.setAttribute(t,s||{},c))}}catch(t){l.e(t)}finally{l.f()}}}var zw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.plugins.get(ww),n=this.editor.plugins.get(ow);e.on("register:$customElement",(function(i,r){i.stop();var o=t.editor,a=o.model.schema,s=o.conversion,l=o.editing.view.domConverter.unsafeElements,c=o.data.htmlProcessor.domConverter.preElements;a.register(r.model,r.modelSchema),a.extend(r.model,{allowAttributes:["htmlElementName","htmlAttributes","htmlContent"],isContent:!0}),s.for("upcast").elementToElement({view:/.*/,model:function(t,i){if("$comment"!=t.name&&function(t){try{document.createElement(t)}catch(t){return!1}return!0}(t.name)&&!n.getDefinitionsForView(t.name).size){l.includes(t.name)||l.push(t.name),c.includes(t.name)||c.push(t.name);var a=i.writer.createElement(r.model,{htmlElementName:t.name}),s=e.processViewAttributes(t,i);s&&i.writer.setAttribute("htmlAttributes",s,a);var u=new Ih(t.document).createDocumentFragment(t),d=o.data.processor.toData(u);i.writer.setAttribute("htmlContent",d,a);var h,f=b(o.editing.view.createRangeIn(t));try{for(f.s();!(h=f.n()).done;){var p=h.value.item;i.consumable.consume(p,{name:!0})}}catch(t){f.e(t)}finally{f.f()}return a}},converterPriority:"low"}),s.for("editingDowncast").elementToElement({model:{name:r.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:function(t,e){var n=e.writer,i=t.getAttribute("htmlElementName"),r=n.createRawElement(i);return t.hasAttribute("htmlAttributes")&&sw(n,t.getAttribute("htmlAttributes"),r),r}}),s.for("dataDowncast").elementToElement({model:{name:r.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:function(t,e){var n=e.writer,i=t.getAttribute("htmlElementName"),r=t.getAttribute("htmlContent"),o=n.createRawElement(i,null,(function(t,e){e.setContentOf(t,r);var n=t.firstChild;for(n.remove();n.firstChild;)t.appendChild(n.firstChild)}));return t.hasAttribute("htmlAttributes")&&sw(n,t.getAttribute("htmlAttributes"),o),o}})}))}}],[{key:"requires",get:function(){return[ww,ow]}},{key:"pluginName",get:function(){return"CustomElementSupport"}}])}(ct);function Fw(t,e,n){var i,r,o;return m().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!e.is("documentSelection")||!e.isCollapsed){a.next=7;break}if(a.t0=t.schema.checkAttributeInSelection(e,n),!a.t0){a.next=5;break}return a.next=5,e;case 5:a.next=23;break;case 7:i=b(function(t,e,n){return e.is("node")||e.is("$text")||e.is("$textProxy")?t.schema.checkAttribute(e,n)?[t.createRangeOn(e)]:[]:t.schema.getValidRanges(t.createSelection(e).getRanges(),n)}(t,e,n)),a.prev=8,i.s();case 10:if((r=i.n()).done){a.next=15;break}return o=r.value,a.delegateYield(o.getItems({shallow:!0}),"t1",13);case 13:a.next=10;break;case 15:a.next=20;break;case 17:a.prev=17,a.t2=a.catch(8),i.e(a.t2);case 20:return a.prev=20,i.f(),a.finish(20);case 23:case"end":return a.stop()}}),c,null,[[8,17,20,23]])}function Hw(t,e,n,i,r){for(var o=e.getAttribute(n),a={},s=0,l=["attributes","styles","classes"];s<l.length;s++){var c=l[s];if(c!=i)o&&o[c]&&(a[c]=o[c]);else{var u="classes"==c?new Set(o&&o[c]||[]):new Map(Object.entries(o&&o[c]||{}));r(u),u.size&&(a[c]="classes"==c?Array.from(u):Object.fromEntries(u))}}Object.keys(a).length?e.is("documentSelection")?t.setSelectionAttribute(n,a):t.setAttribute(n,a,e):o&&(e.is("documentSelection")?t.removeSelectionAttribute(n):t.removeAttribute(n,e))}var Vw=function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e)}(jh);Vw.builtinPlugins=[function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Ff,Yh,Qf,Wf,np,Ip]}},{key:"pluginName",get:function(){return"Essentials"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(Op).createUploadAdapter=function(n){return new Rp(n,e,t.editor.t)})}}],[{key:"requires",get:function(){return[Op]}},{key:"pluginName",get:function(){return"CKFinderUploadAdapter"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"afterInit",value:function(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}},{key:"_addListAutoformats",value:function(){var t=this,e=this.editor.commands;e.get("bulletedList")&&zp(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&zp(this.editor,this,/^1[.|)]\s$/,"numberedList"),e.get("todoList")&&zp(this.editor,this,/^\[\s?\]\s$/,"todoList"),e.get("checkTodoList")&&zp(this.editor,this,/^\[\s?x\s?\]\s$/,(function(){t.editor.execute("todoList"),t.editor.execute("checkTodoList")}))}},{key:"_addBasicStylesAutoformats",value:function(){var t=this.editor.commands;if(t.get("bold")){var e=Vp(this.editor,"bold");Fp(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),Fp(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(t.get("italic")){var n=Vp(this.editor,"italic");Fp(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,n),Fp(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,n)}if(t.get("code")){var i=Vp(this.editor,"code");Fp(this.editor,this,/(`)([^`]+)(`)$/g,i)}if(t.get("strikethrough")){var r=Vp(this.editor,"strikethrough");Fp(this.editor,this,/(~~)([^~]+)(~~)$/g,r)}}},{key:"_addHeadingAutoformats",value:function(){var t=this,e=this.editor.commands.get("heading");e&&e.modelElements.filter((function(t){return t.match(/^heading[1-6]$/)})).forEach((function(n){var i=n[7],r=new RegExp("^(#{".concat(i,"})\\s$"));zp(t.editor,t,r,(function(){if(!e.isEnabled||e.value===n)return!1;t.editor.execute("heading",{value:n})}))}))}},{key:"_addBlockQuoteAutoformats",value:function(){this.editor.commands.get("blockQuote")&&zp(this.editor,this,/^>\s$/,"blockQuote")}},{key:"_addCodeBlockAutoformats",value:function(){var t=this,e=this.editor,n=e.model.document.selection;e.commands.get("codeBlock")&&zp(e,this,/^```$/,(function(){if(n.getFirstPosition().parent.is("element","listItem"))return!1;t.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}},{key:"_addHorizontalLineAutoformats",value:function(){this.editor.commands.get("horizontalLine")&&zp(this.editor,this,/^---$/,"horizontalLine")}}],[{key:"requires",get:function(){return[tf]}},{key:"pluginName",get:function(){return"Autoformat"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[qp,Yp]}},{key:"pluginName",get:function(){return"Bold"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Kp,Zp]}},{key:"pluginName",get:function(){return"Italic"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[ng,rg]}},{key:"pluginName",get:function(){return"BlockQuote"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"pluginName",get:function(){return"CKBox"}},{key:"requires",get:function(){return[mg,og]}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"pluginName",get:function(){return"CKFinder"}},{key:"requires",get:function(){return["Link","CKFinderUploadAdapter",Ag,yg]}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.context.config.get("cloudServices")||{};for(var e in t)this[e]=t[e];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}},{key:"registerTokenUrl",value:function(t){if(this._tokens.has(t))return Promise.resolve(this.getTokenFor(t));var e=this.context.plugins.get("CloudServicesCore").createToken(t);return this._tokens.set(t,e),e.init()}},{key:"getTokenFor",value:function(t){var e=this._tokens.get(t);if(!e)throw new S("cloudservices-token-not-registered",this);return e}},{key:"destroy",value:function(){p(e,"destroy",this,3)([]);var t,n=b(this._tokens.values());try{for(n.s();!(t=n.n()).done;){t.value.destroy()}}catch(t){n.e(t)}finally{n.f()}}}],[{key:"pluginName",get:function(){return"CloudServices"}},{key:"requires",get:function(){return[Dy]}}])}(oi),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||T("easy-image-image-feature-missing",t)}}],[{key:"requires",get:function(){return[Cg,"ImageUpload"]}},{key:"pluginName",get:function(){return"EasyImage"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Pg,Bg]}},{key:"pluginName",get:function(){return"Heading"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[dm,fm]}},{key:"pluginName",get:function(){return"Image"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[mm,vm]}},{key:"pluginName",get:function(){return"ImageCaption"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Pm,Bm]}},{key:"pluginName",get:function(){return"ImageStyle"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"afterInit",value:function(){var t,e=this.editor,n=e.t,i=e.plugins.get(Lg),r=e.plugins.get("ImageUtils");i.register("image",{ariaLabel:n("Image toolbar"),items:(t=e.config.get("image.toolbar")||[],t.map((function(t){return K(t)?t.name:t}))),getRelatedElement:function(t){return r.getClosestSelectedImageWidget(t)}})}}],[{key:"requires",get:function(){return[Lg,Gg]}},{key:"pluginName",get:function(){return"ImageToolbar"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[Xm,Vm,$m]}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[ev,rv]}}])}(ct),function(t){function e(t){var n;return P(this,e),n=_(this,e,[t]),t.config.define("indentBlock",{offset:40,unit:"px"}),n}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.config.get("indentBlock"),n=!e.classes||!e.classes.length,i=Object.assign({direction:"forward"},e),r=Object.assign({direction:"backward"},e);n?(t.data.addStyleProcessorRules(Ph),this._setupConversionUsingOffset(t.conversion),t.commands.add("indentBlock",new ov(t,new av(i))),t.commands.add("outdentBlock",new ov(t,new av(r)))):(this._setupConversionUsingClasses(e.classes),t.commands.add("indentBlock",new ov(t,new sv(i))),t.commands.add("outdentBlock",new ov(t,new sv(r))))}},{key:"afterInit",value:function(){var t=this.editor,e=t.model.schema,n=t.commands.get("indent"),i=t.commands.get("outdent"),r=t.config.get("heading.options");(r&&r.map((function(t){return t.model}))||lv).forEach((function(t){e.isRegistered(t)&&e.extend(t,{allowAttributes:"blockIndent"})})),e.setAttributeProperties("blockIndent",{isFormatting:!0}),n.registerChildCommand(t.commands.get("indentBlock")),i.registerChildCommand(t.commands.get("outdentBlock"))}},{key:"_setupConversionUsingOffset",value:function(){var t=this.editor.conversion,e="rtl"===this.editor.locale.contentLanguageDirection?"margin-right":"margin-left";t.for("upcast").attributeToAttribute({view:{styles:f({},e,/[\s\S]+/)},model:{key:"blockIndent",value:function(t){return t.getStyle(e)}}}),t.for("downcast").attributeToAttribute({model:"blockIndent",view:function(t){return{key:"style",value:f({},e,t)}}})}},{key:"_setupConversionUsingClasses",value:function(t){var e,n={model:{key:"blockIndent",values:[]},view:{}},i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;n.model.values.push(r),n.view[r]={key:"class",value:[r]}}}catch(t){i.e(t)}finally{i.f()}this.editor.conversion.attributeToAttribute(n)}}],[{key:"pluginName",get:function(){return"IndentBlock"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Vv,Zv,tb]}},{key:"pluginName",get:function(){return"Link"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[xb,Eb]}},{key:"pluginName",get:function(){return"List"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Lb,Hb,Rb,If]}},{key:"pluginName",get:function(){return"MediaEmbed"}}])}(ct),Tg,function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.editing.view.document,n=[];n.push(new Zb(e)),n.push(new Yb(e)),t.plugins.get("ClipboardPipeline").on("inputTransformation",(function(i,r){if(!r._isTransformedWithPasteFromOffice&&!t.model.document.selection.getFirstPosition().parent.is("element","codeBlock")){var o=r.dataTransfer.getData("text/html"),a=n.find((function(t){return t.isActive(o)}));a&&(r._parsedData=function(t,e){var n=new DOMParser,i=function(t){return Jb(Jb(t)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(t){var e="</body>",n=t.indexOf(e);if(n<0)return t;var i=t.indexOf("</html>",n+7);return t.substring(0,n+7)+(i>=0?t.substring(i):"")}(t=t.replace(/<!--\[if gte vml 1]>/g,""))),r=n.parseFromString(i,"text/html");!function(t){t.querySelectorAll("span[style*=spacerun]").forEach((function(t){var e=t.innerText.length||0;t.innerText=Array(e+1).join("  ").substr(0,e)}))}(r);var o=r.body.innerHTML,a=function(t,e){for(var n=new Ar(e),i=new Lo(n,{renderingMode:"data"}),r=t.createDocumentFragment(),o=t.body.childNodes;o.length>0;)r.appendChild(o[0]);return i.domToView(r,{skipComments:!0})}(r,e),s=function(t){for(var e=[],n=[],i=0,r=Array.from(t.getElementsByTagName("style"));i<r.length;i++){var o=r[i];o.sheet&&o.sheet.cssRules&&o.sheet.cssRules.length&&(e.push(o.sheet),n.push(o.innerHTML))}return{styles:e,stylesString:n.join(" ")}}(r);return{body:a,bodyString:o,styles:s.styles,stylesString:s.stylesString}}(o,e.stylesProcessor),a.execute(r),r._isTransformedWithPasteFromOffice=!0)}}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PasteFromOffice"}},{key:"requires",get:function(){return[Vh]}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"afterInit",value:function(){var t=this.editor;t.plugins.has("ImageBlockEditing")&&t.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),t.plugins.has("ImageInlineEditing")&&t.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}},{key:"_setupConversion",value:function(){var t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("upcast").add(function(t){var e=["srcset","media","type","sizes"];return function(t){t.on("element:picture",n)};function n(n,i,r){var o=i.viewItem;if(r.consumable.test(o,{name:!0})){var a,s=new Map,l=b(o.getChildren());try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.is("element","source")){for(var u={},d=0,h=e;d<h.length;d++){var f=h[d];c.hasAttribute(f)&&r.consumable.test(c,{attributes:f})&&(u[f]=c.getAttribute(f))}Object.keys(u).length&&s.set(c,u)}}}catch(t){l.e(t)}finally{l.f()}var p=t.findViewImgElement(o);if(p){var g=i.modelCursor.parent;if(!g.is("element","imageBlock")){var m=r.convertItem(p,i.modelCursor);i.modelRange=m.modelRange,i.modelCursor=m.modelCursor,g=ja(m.modelRange.getItems())}r.consumable.consume(o,{name:!0});var k,y=b(s);try{for(y.s();!(k=y.n()).done;){var w=v(k.value,2),_=w[0],A=w[1];r.consumable.consume(_,{attributes:Object.keys(A)})}}catch(t){y.e(t)}finally{y.f()}s.size&&r.writer.setAttribute("sources",Array.from(s.values()),g),r.convertChildren(o,g)}}}}(n)),e.for("downcast").add(function(t){return function(t){t.on("attribute:sources:imageBlock",e),t.on("attribute:sources:imageInline",e)};function e(e,n,i){if(i.consumable.consume(n.item,e.name)){var r=i.writer,o=i.mapper.toViewElement(n.item),a=t.findViewImgElement(o);if(n.attributeNewValue&&n.attributeNewValue.length){for(var s=r.createContainerElement("picture",null,n.attributeNewValue.map((function(t){return r.createEmptyElement("source",t)}))),l=[],c=a.parent;c&&c.is("attributeElement");){var u=c.parent;r.unwrap(r.createRangeOn(a),c),l.unshift(c),c=u}r.insert(r.createPositionBefore(a),s),r.move(r.createRangeOn(a),r.createPositionAt(s,"end"));for(var d=0,h=l;d<h.length;d++){var f=h[d];r.wrap(r.createRangeOn(s),f)}}else if(a.parent.is("element","picture")){var p=a.parent;r.move(r.createRangeOn(a),r.createPositionBefore(p)),r.remove(p)}}}}(n))}},{key:"_setupImageUploadEditingIntegration",value:function(){var t=this.editor;t.plugins.has("ImageUploadEditing")&&this.listenTo(t.plugins.get("ImageUploadEditing"),"uploadComplete",(function(e,n){var i=n.imageElement,r=n.data.sources;r&&t.model.change((function(t){t.setAttributes({sources:r},i)}))}))}}],[{key:"requires",get:function(){return[sm,Gg]}},{key:"pluginName",get:function(){return"PictureEditing"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Zk,ny,oy,fy,dy,ay,If]}},{key:"pluginName",get:function(){return"Table"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"afterInit",value:function(){var t=this.editor,e=t.t,n=t.plugins.get(Lg),i=t.config.get("table.contentToolbar"),r=t.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:vy}),r&&n.register("table",{ariaLabel:e("Table toolbar"),items:r,getRelatedElement:my})}}],[{key:"requires",get:function(){return[Lg]}},{key:"pluginName",get:function(){return"TableToolbar"}}])}(ct),function(t){function e(t){var n;return P(this,e),n=_(this,e,[t]),t.config.define("typing",{transformations:{include:pp}}),n}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor.model.document.selection;e.on("change:range",(function(){t.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var t=this.editor,e=t.model,n=t.plugins.get("Delete"),i=function(t){var e=t.extra||[],n=t.remove||[],i=function(t){return!n.includes(t)};return function(t){var e,n=new Set,i=b(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(fp[r]){var o,a=b(fp[r]);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(s)}}catch(t){a.e(t)}finally{a.f()}}else n.add(r)}}catch(t){i.e(t)}finally{i.f()}return Array.from(n)}(t.include.concat(e).filter(i)).filter(i).map((function(t){return hp[t]||t})).filter((function(t){return"object"==N(t)})).map((function(t){return{from:gp(t.from),to:mp(t.to)}}))}(t.config.get("typing.transformations")),r=new rp(t.model,(function(t){var e,n=b(i);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.from.test(t))return{normalizedTransformation:r}}}catch(t){n.e(t)}finally{n.f()}}));r.on("matched:data",(function(t,i){if(i.batch.isTyping){var r=i.normalizedTransformation,o=r.from,a=r.to,s=o.exec(i.text),l=a(s.slice(1)),c=i.range,u=s.index;e.enqueueChange((function(t){for(var i=1;i<s.length;i++){var r=s[i],o=l[i-1];if(null!=o){var a=c.start.getShiftedBy(u),d=e.createRange(a,a.getShiftedBy(r.length)),h=vp(a);e.insertContent(t.createText(o,h),d),u+=o.length}else u+=r.length}e.enqueueChange((function(){n.requestUndoOnBackspace()}))}))}})),r.bind("isEnabled").to(this)}}],[{key:"requires",get:function(){return["Delete","Input"]}},{key:"pluginName",get:function(){return"TextTransformation"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Oy,Ny]}},{key:"pluginName",get:function(){return"Subscript"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Ly,Ry]}},{key:"pluginName",get:function(){return"Superscript"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Fy,Vy]}},{key:"pluginName",get:function(){return"Strikethrough"}}])}(ct),function(t){function e(t){var n;return P(this,e),(n=_(this,e,[t])).set("isSourceEditingMode",!1),n._elementReplacer=new Ma,n._replacedRoots=new Map,n._dataFromRoots=new Map,n}return C(e,t),M(e,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("sourceEditing",(function(i){var r=new ld(i);return r.set({label:n("Source"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',tooltip:!0,withText:!0,class:"ck-source-editing-button"}),r.bind("isOn").to(t,"isSourceEditingMode"),r.bind("isEnabled").to(t,"isEnabled",e,"isReadOnly",e.plugins.get(Bu),"hasAny",(function(t,e,n){return!!t&&!e&&!n})),t.listenTo(r,"execute",(function(){t.isSourceEditingMode=!t.isSourceEditingMode})),r})),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(function(e,n,i){i?(t._showSourceEditing(),t._disableCommands()):(t._hideSourceEditing(),t._enableCommands())})),this.on("change:isEnabled",(function(e,n,i){return t._handleReadOnlyMode(!i)})),this.listenTo(e,"change:isReadOnly",(function(e,n,i){return t._handleReadOnlyMode(i)}))),e.data.on("get",(function(){t.isSourceEditingMode&&t._updateEditorData()}),{priority:"high"})}},{key:"afterInit",value:function(){var t=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some((function(e){return t.plugins.has(e)}))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),t.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}},{key:"_showSourceEditing",value:function(){var t=this,e=this.editor,n=e.editing.view,i=e.model;i.change((function(t){t.setSelection(null),t.removeSelectionAttribute(i.document.selection.getAttributeKeys())}));var r,o=b(n.domRoots);try{var a=function(){var i=v(r.value,2),o=i[0],a=i[1],s=Iy(e.data.get({rootName:o})),l=Pa(a.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),c=Pa(a.ownerDocument,"div",{class:"ck-source-editing-area","data-value":s},[l]);l.value=s,l.setSelectionRange(0,0),l.addEventListener("input",(function(){c.dataset.value=l.value})),n.change((function(t){var e=n.document.getRoot(o);t.addClass("ck-hidden",e)})),e.ui.setEditableElement("sourceEditing:"+o,l),t._replacedRoots.set(o,c),t._elementReplacer.replace(a,c),t._dataFromRoots.set(o,s)};for(o.s();!(r=o.n()).done;)a()}catch(t){o.e(t)}finally{o.f()}this._focusSourceEditing()}},{key:"_hideSourceEditing",value:function(){var t=this,e=this.editor.editing.view;this._updateEditorData(),e.change((function(n){var i,r=b(t._replacedRoots);try{for(r.s();!(i=r.n()).done;){var o=v(i.value,1)[0];n.removeClass("ck-hidden",e.document.getRoot(o))}}catch(t){r.e(t)}finally{r.f()}})),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),e.focus()}},{key:"_updateEditorData",value:function(){var t,e=this.editor,n={},i=b(this._replacedRoots);try{for(i.s();!(t=i.n()).done;){var r=v(t.value,2),o=r[0],a=r[1],s=this._dataFromRoots.get(o),l=a.dataset.value;s!==l&&(n[o]=l)}}catch(t){i.e(t)}finally{i.f()}Object.keys(n).length&&e.data.set(n,{batchType:{isUndoable:!0}})}},{key:"_focusSourceEditing",value:function(){var t=this.editor,e=v(this._replacedRoots.values(),1)[0].querySelector("textarea");t.editing.view.document.isFocused=!1,e.focus()}},{key:"_disableCommands",value:function(){var t,e=b(this.editor.commands.commands());try{for(e.s();!(t=e.n()).done;){t.value.forceDisabled(Ty)}}catch(t){e.e(t)}finally{e.f()}}},{key:"_enableCommands",value:function(){var t,e=b(this.editor.commands.commands());try{for(e.s();!(t=e.n()).done;){t.value.clearForceDisabled(Ty)}}catch(t){e.e(t)}finally{e.f()}}},{key:"_handleReadOnlyMode",value:function(t){if(this.isSourceEditingMode){var e,n=b(this._replacedRoots);try{for(n.s();!(e=n.n()).done;){v(e.value,2)[1].querySelector("textarea").readOnly=t}}catch(t){n.e(t)}finally{n.f()}}}},{key:"_isAllowedToHandleSourceEditingMode",value:function(){var t=this.editor.ui.view.editable;return t&&!t._hasExternalElement}}],[{key:"pluginName",get:function(){return"SourceEditing"}},{key:"requires",get:function(){return[Bu]}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Wy,$y]}},{key:"pluginName",get:function(){return"Underline"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,null,[{key:"requires",get:function(){return[Xy,ew]}},{key:"pluginName",get:function(){return"Alignment"}}])}(ct),function(t){function e(){return P(this,e),_(this,e,arguments)}return C(e,t),M(e,[{key:"init",value:function(){var t=this.editor,e=t.plugins.get(ww);e.loadAllowedConfig(t.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(t.config.get("htmlSupport.disallow")||[])}},{key:"getGhsAttributeNameForElement",value:function(t){var e=this.editor.plugins.get("DataSchema"),n=Array.from(e.getDefinitionsForView(t,!1));return n&&n.length&&n[0].isInline&&!n[0].isObject?n[0].model:"htmlAttributes"}},{key:"addModelHtmlClass",value:function(t,e,n){var i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((function(t){var o,a=b(Fw(i,n,r));try{for(a.s();!(o=a.n()).done;){Hw(t,o.value,r,"classes",(function(t){var n,i=b(Xn(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;t.add(r)}}catch(t){i.e(t)}finally{i.f()}}))}}catch(t){a.e(t)}finally{a.f()}}))}},{key:"removeModelHtmlClass",value:function(t,e,n){var i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((function(t){var o,a=b(Fw(i,n,r));try{for(a.s();!(o=a.n()).done;){Hw(t,o.value,r,"classes",(function(t){var n,i=b(Xn(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;t.delete(r)}}catch(t){i.e(t)}finally{i.f()}}))}}catch(t){a.e(t)}finally{a.f()}}))}},{key:"setModelHtmlAttributes",value:function(t,e,n){var i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((function(t){var o,a=b(Fw(i,n,r));try{for(a.s();!(o=a.n()).done;){Hw(t,o.value,r,"attributes",(function(t){for(var n=0,i=Object.entries(e);n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1];t.set(o,a)}}))}}catch(t){a.e(t)}finally{a.f()}}))}},{key:"removeModelHtmlAttributes",value:function(t,e,n){var i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((function(t){var o,a=b(Fw(i,n,r));try{for(a.s();!(o=a.n()).done;){Hw(t,o.value,r,"attributes",(function(t){var n,i=b(Xn(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;t.delete(r)}}catch(t){i.e(t)}finally{i.f()}}))}}catch(t){a.e(t)}finally{a.f()}}))}},{key:"setModelHtmlStyles",value:function(t,e,n){var i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((function(t){var o,a=b(Fw(i,n,r));try{for(a.s();!(o=a.n()).done;){Hw(t,o.value,r,"styles",(function(t){for(var n=0,i=Object.entries(e);n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1];t.set(o,a)}}))}}catch(t){a.e(t)}finally{a.f()}}))}},{key:"removeModelHtmlStyles",value:function(t,e,n){var i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((function(t){var o,a=b(Fw(i,n,r));try{for(a.s();!(o=a.n()).done;){Hw(t,o.value,r,"styles",(function(t){var n,i=b(Xn(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;t.delete(r)}}catch(t){i.e(t)}finally{i.f()}}))}}catch(t){a.e(t)}finally{a.f()}}))}}],[{key:"pluginName",get:function(){return"GeneralHtmlSupport"}},{key:"requires",get:function(){return[ww,Sw,Tw,Iw,Mw,Pw,Nw,Bw,Lw,jw,zw]}}])}(ct)],Vw.defaultConfig={toolbar:{items:["heading","|","bold","italic","link","bulletedList","numberedList","|","outdent","indent","|","uploadImage","blockQuote","insertTable","mediaEmbed","undo","redo","subscript","Superscript","sourceEditing","strikethrough","underline","alignment"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","toggleImageCaption","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}}(),a.default}()}))},82610:(t,e,n)=>{"use strict";n(69139),n(23662),n(41758),n(79914),n(65285),n(20097),n(71193),n(28330),n(4224),n(25670),n(83431)},89854:(t,e,n)=>{"use strict";n.d(e,{Ep:()=>r,LD:()=>i,ff:()=>o});var i="An unexpected error occured when logging in. Please contact MVIS support.",r="The selected Index has already been charted. Please choose another Index.",o="Something went wrong"},31321:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s,m:()=>a});n(25276),n(48598),n(62062);var i=n(4523),r=n(74692),o=n.n(r);function a(t){var e=t.indexOf("?"),n={url:t};if(e>=0&&e<t.length){var i=t.substring(e+1).split("&"),r={};o().each(i,(function(t,e){var n=e.indexOf("="),i=e,o=null;n>=0&&(i=e.substring(0,n),o=e.substring(n+1)),r[unescape(i)]=o})),n={url:t.substring(0,e),query:r}}else n={url:t,query:{}};return n}function s(t){var e=t.url;return i.Ay.isNull(t.query)||(e+="?"+i.Ay.map(t.query,(function(t,e){return escape(e)+"="+escape(i.Ay.isNull(t)?"":t)})).join("&")),e}},33205:(t,e,n)=>{"use strict";n.d(e,{k:()=>r});n(27495),n(42762);var i=n(74692);function r(t,e){var n=!1,r=i("#"+t)[0].files;if(null!=r)for(var o=0;o<r.length;o++)if(i("#"+t)[0].files[o].size>e){n=!0;break}n?(i("#"+t+"_error").show(),i("#"+t+"_error").css("display","block"),i("#"+t).val("")):i("#"+t+"_error").css("display","none")}},9798:function(t,e,n){var i,r,o;n(52675),n(89463),n(2259),n(28706),n(2008),n(74423),n(25276),n(64346),n(23792),n(48598),n(62062),n(34782),n(26910),n(54554),n(60739),n(23288),n(94170),n(84185),n(26099),n(84864),n(27495),n(38781),n(23860),n(27337),n(21699),n(47764),n(71761),n(25440),n(5746),n(11392),n(42762),n(62953),n(76031),r=[],i=function(t){function e(t,e){return t.hasOwnProperty(e)&&(!0===t[e]||t[e].length)}function n(t,e,n){t.parentNode?t.parentNode.parentNode||e.appendChild(t.parentNode):e.appendChild(t),r.removeClass(t,"excluded"),n||(t.innerHTML=t.textContent)}var i=function(){};i.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){this._events=this._events||{},0!=t in this._events&&this._events[t].splice(this._events[t].indexOf(e),1)},emit:function(t){if(this._events=this._events||{},0!=t in this._events)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},i.mixin=function(t){for(var e=["on","off","emit"],n=0;n<e.length;n++)"function"==typeof t?t.prototype[e[n]]=i.prototype[e[n]]:t[e[n]]=i.prototype[e[n]];return t};var r={extend:function(t,e){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i&&"[object Object]"===Object.prototype.toString.call(i)?(t[n]=t[n]||{},r.extend(t[n],i)):t[n]=i}return t},each:function(t,e,n){if("[object Object]"===Object.prototype.toString.call(t))for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(n,i,t[i],t);else{i=0;for(var r=t.length;i<r;i++)e.call(n,i,t[i],t)}},createElement:function(t,e){var n=document,i=n.createElement(t);if(e&&"[object Object]"===Object.prototype.toString.call(e))for(var r in e)if(r in i)i[r]=e[r];else if("html"===r)i.innerHTML=e[r];else if("text"===r){var o=n.createTextNode(e[r]);i.appendChild(o)}else i.setAttribute(r,e[r]);return i},hasClass:function(t,e){if(t)return t.classList?t.classList.contains(e):!!t.className&&!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){r.hasClass(t,e)||(t.classList?t.classList.add(e):t.className=t.className.trim()+" "+e)},removeClass:function(t,e){r.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," "))},closest:function(t,e){return t&&t!==document.body&&(e(t)?t:r.closest(t.parentNode,e))},isInt:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},debounce:function(t,e,n){var i;return function(){var r=this,o=arguments,a=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||t.apply(r,o)}),e),a&&t.apply(r,o)}},rect:function(t,e){var n=window,i=t.getBoundingClientRect(),r=e?n.pageXOffset:0;return n=e?n.pageYOffset:0,{bottom:i.bottom+n,height:i.height,left:i.left+r,right:i.right+r,top:i.top+n,width:i.width}},includes:function(t,e){return-1<t.indexOf(e)},startsWith:function(t,e){return t.substr(0,e.length)===e},truncate:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}},o=function(){if(this.items.length){var t=document.createDocumentFragment();if(this.config.pagination){var e=this.pages.slice(0,this.pageIndex);r.each(e,(function(e,i){r.each(i,(function(e,i){n(i,t,this.customOption)}),this)}),this)}else r.each(this.items,(function(e,i){n(i,t,this.customOption)}),this);t.childElementCount&&(r.removeClass(this.items[this.navIndex],"active"),this.navIndex=(t.querySelector(".selectr-option.selected")||t.querySelector(".selectr-option")).idx,r.addClass(this.items[this.navIndex],"active")),this.tree.appendChild(t)}},a=function(t){this.container.contains(t.target)||!this.opened&&!r.hasClass(this.container,"notice")||this.close()},s=function(t,e){var n=this.customOption?this.config.renderOption(e||t):t.textContent;return(n=r.createElement("li",{class:"selectr-option",html:n,role:"treeitem","aria-selected":!1})).idx=t.idx,this.items.push(n),t.defaultSelected&&this.defaultSelected.push(t.idx),t.disabled&&(n.disabled=!0,r.addClass(n,"disabled")),n},l=function(){this.requiresPagination=this.config.pagination&&0<this.config.pagination,e(this.config,"width")&&(r.isInt(this.config.width)?this.width=this.config.width+"px":"auto"===this.config.width?this.width="100%":r.includes(this.config.width,"%")&&(this.width=this.config.width)),this.container=r.createElement("div",{class:"selectr-container"}),this.config.customClass&&r.addClass(this.container,this.config.customClass),this.mobileDevice?r.addClass(this.container,"selectr-mobile"):r.addClass(this.container,"selectr-desktop"),this.el.tabIndex=-1,this.config.nativeDropdown||this.mobileDevice?r.addClass(this.el,"selectr-visible"):r.addClass(this.el,"selectr-hidden"),this.selected=r.createElement("div",{class:"selectr-selected",disabled:this.disabled,tabIndex:0,"aria-expanded":!1}),this.label=r.createElement(this.el.multiple?"ul":"span",{class:"selectr-label"});var t=r.createElement("div",{class:"selectr-options-container"});if(this.tree=r.createElement("ul",{class:"selectr-options",role:"tree","aria-hidden":!0,"aria-expanded":!1}),this.notice=r.createElement("div",{class:"selectr-notice"}),this.el.setAttribute("aria-hidden",!0),this.disabled&&(this.el.disabled=!0),this.el.multiple&&(r.addClass(this.label,"selectr-tags"),r.addClass(this.container,"multiple"),this.tags=[],this.selectedValues=this.getSelectedProperties("value"),this.selectedIndexes=this.getSelectedProperties("idx")),this.selected.appendChild(this.label),this.config.clearable&&(this.selectClear=r.createElement("button",{class:"selectr-clear",type:"button"}),this.container.appendChild(this.selectClear),r.addClass(this.container,"clearable")),this.config.taggable){var n=r.createElement("li",{class:"input-tag"});this.input=r.createElement("input",{class:"selectr-tag-input",placeholder:this.config.tagPlaceholder,tagIndex:0,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),n.appendChild(this.input),this.label.appendChild(n),r.addClass(this.container,"taggable"),this.tagSeperators=[","],this.config.tagSeperators&&(this.tagSeperators=this.tagSeperators.concat(this.config.tagSeperators))}this.config.searchable&&(this.input=r.createElement("input",{class:"selectr-input",tagIndex:-1,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),this.inputClear=r.createElement("button",{class:"selectr-input-clear",type:"button"}),this.inputContainer=r.createElement("div",{class:"selectr-input-container"}),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(this.inputClear),t.appendChild(this.inputContainer)),t.appendChild(this.notice),t.appendChild(this.tree),this.items=[],this.options=[],this.el.options.length&&(this.options=[].slice.call(this.el.options));var i=!1,o=0;if(this.el.children.length&&r.each(this.el.children,(function(t,e){"OPTGROUP"===e.nodeName?(i=r.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+e.label+"</li>"}),r.each(e.children,(function(t,e){e.idx=o,i.appendChild(s.call(this,e,i)),o++}),this)):(e.idx=o,s.call(this,e),o++)}),this),this.config.data&&Array.isArray(this.config.data)){this.data=[];var a,l=!1;i=!1,o=0,r.each(this.config.data,(function(t,n){e(n,"children")?(l=r.createElement("optgroup",{label:n.text}),i=r.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+n.text+"</li>"}),r.each(n.children,(function(t,n){(a=new Option(n.text,n.value,!1,n.hasOwnProperty("selected")&&!0===n.selected)).disabled=e(n,"disabled"),this.options.push(a),l.appendChild(a),a.idx=o,i.appendChild(s.call(this,a,n)),this.data[o]=n,o++}),this),this.el.appendChild(l)):((a=new Option(n.text,n.value,!1,n.hasOwnProperty("selected")&&!0===n.selected)).disabled=e(n,"disabled"),this.options.push(a),a.idx=o,s.call(this,a,n),this.data[o]=n,o++)}),this)}this.setSelected(!0);for(var c=this.navIndex=0;c<this.items.length;c++)if(n=this.items[c],!r.hasClass(n,"disabled")){r.addClass(n,"active"),this.navIndex=c;break}this.requiresPagination&&(this.pageIndex=1,this.paginate()),this.container.appendChild(this.selected),this.container.appendChild(t),this.placeEl=r.createElement("div",{class:"selectr-placeholder"}),this.setPlaceholder(),this.selected.appendChild(this.placeEl),this.disabled&&this.disable(),this.el.parentNode.insertBefore(this.container,this.el),this.container.appendChild(this.el)},c=function(t){if(t=t||window.event,this.items.length&&this.opened&&r.includes([13,38,40],t.which)){if(t.preventDefault(),13===t.which)return!(this.noResults||this.config.taggable&&0<this.input.value.length)&&this.change(this.navIndex);var e=this.items[this.navIndex],n=this.navIndex;switch(t.which){case 38:var i=0;0<this.navIndex&&this.navIndex--;break;case 40:i=1,this.navIndex<this.items.length-1&&this.navIndex++}for(this.navigating=!0;r.hasClass(this.items[this.navIndex],"disabled")||r.hasClass(this.items[this.navIndex],"excluded");){if(!(0<this.navIndex&&this.navIndex<this.items.length-1)){this.navIndex=n;break}if(i?this.navIndex++:this.navIndex--,this.searching){if(this.navIndex>this.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndex<this.tree.firstElementChild.idx){this.navIndex=this.tree.firstElementChild.idx;break}}}t=r.rect(this.items[this.navIndex]),i?(0===this.navIndex?this.tree.scrollTop=0:t.top+t.height>this.optsRect.top+this.optsRect.height&&(this.tree.scrollTop+=t.top+t.height-(this.optsRect.top+this.optsRect.height)),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&h.call(this)):0===this.navIndex?this.tree.scrollTop=0:0>t.top-this.optsRect.top&&(this.tree.scrollTop+=t.top-this.optsRect.top),e&&r.removeClass(e,"active"),r.addClass(this.items[this.navIndex],"active")}else this.navigating=!1},u=function(t){var e=this,n=document.createDocumentFragment(),i=this.options[t.idx],o=this.data?this.data[t.idx]:i;o=this.customSelected?this.config.renderSelection(o):i.textContent,o=r.createElement("li",{class:"selectr-tag",html:o});var a=r.createElement("button",{class:"selectr-tag-remove",type:"button"});if(o.appendChild(a),o.idx=t.idx,o.tag=i.value,this.tags.push(o),this.config.sortSelected){t=this.tags.slice();var s=function(t,e){t.replace(/(\d+)|(\D+)/g,(function(t,n,i){e.push([n||1/0,i||""])}))};t.sort((function(t,n){var i=[],r=[];if(!0===e.config.sortSelected)var o=t.tag,a=n.tag;else"text"===e.config.sortSelected&&(o=t.textContent,a=n.textContent);for(s(o,i),s(a,r);i.length&&r.length;)if(o=i.shift(),a=r.shift(),o=o[0]-a[0]||o[1].localeCompare(a[1]))return o;return i.length-r.length})),r.each(t,(function(t,e){n.appendChild(e)})),this.label.innerHTML=""}else n.appendChild(o);this.config.taggable?this.label.insertBefore(n,this.input.parentNode):this.label.appendChild(n)},d=function(t){var e=!1;r.each(this.tags,(function(n,i){i.idx===t.idx&&(e=i)}),this),e&&(this.label.removeChild(e),this.tags.splice(this.tags.indexOf(e),1))},h=function(){var t=this.tree;if(t.scrollTop>=t.scrollHeight-t.offsetHeight&&this.pageIndex<this.pages.length){var e=document.createDocumentFragment();r.each(this.pages[this.pageIndex],(function(t,i){n(i,e,this.customOption)}),this),t.appendChild(e),this.pageIndex++,this.emit("selectr.paginate",{items:this.items.length,total:this.data.length,page:this.pageIndex,pages:this.pages.length})}},f=function(){(this.config.searchable||this.config.taggable)&&(this.input.value=null,this.searching=!1,this.config.searchable&&r.removeClass(this.inputContainer,"active"),r.hasClass(this.container,"notice")&&(r.removeClass(this.container,"notice"),r.addClass(this.container,"open"),this.input.focus()),r.each(this.items,(function(t,e){r.removeClass(e,"excluded"),this.customOption||(e.innerHTML=e.textContent)}),this))};return t=function(t,e){if(this.defaultConfig={defaultSelected:!0,width:"auto",disabled:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,nativeKeyboard:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag...",messages:{noResults:"No results.",noOptions:"No options available.",maxSelections:"A maximum of {max} items can be selected.",tagDuplicate:"That tag is already in use."}},!t)throw Error("You must supply either a HTMLSelectElement or a CSS3 selector string.");if(this.el=t,"string"==typeof t&&(this.el=document.querySelector(t)),null===this.el)throw Error("The element you passed to Selectr can not be found.");if("select"!==this.el.nodeName.toLowerCase())throw Error("The element you passed to Selectr is not a HTMLSelectElement.");this.render(e)},t.prototype.render=function(t){if(!this.rendered){this.el.selectr=this,this.config=r.extend(this.defaultConfig,t),this.originalType=this.el.type,this.originalIndex=this.el.tabIndex,this.defaultSelected=[],this.originalOptionCount=this.el.options.length,(this.config.multiple||this.config.taggable)&&(this.el.multiple=!0),this.disabled=e(this.config,"disabled"),this.opened=!1,this.config.taggable&&(this.config.searchable=!1),this.mobileDevice=this.navigating=!1,/Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(navigator.userAgent)&&(this.mobileDevice=!0),this.customOption=this.config.hasOwnProperty("renderOption")&&"function"==typeof this.config.renderOption,this.customSelected=this.config.hasOwnProperty("renderSelection")&&"function"==typeof this.config.renderSelection,this.supportsEventPassiveOption=this.detectEventPassiveOption(),i.mixin(this),l.call(this),this.bindEvents(),this.update(),this.optsRect=r.rect(this.tree),this.rendered=!0,this.el.multiple||(this.el.selectedIndex=this.selectedIndex);var n=this;setTimeout((function(){n.emit("selectr.init")}),20)}},t.prototype.getSelected=function(){return this.el.querySelectorAll("option:checked")},t.prototype.getSelectedProperties=function(t){var e=this.getSelected();return[].slice.call(e).map((function(e){return e[t]})).filter((function(t){return null!=t}))},t.prototype.detectEventPassiveOption=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t},t.prototype.bindEvents=function(){var t=this;if(this.events={},this.events.dismiss=a.bind(this),this.events.navigate=c.bind(this),this.events.reset=this.reset.bind(this),this.config.nativeDropdown||this.mobileDevice){this.container.addEventListener("touchstart",(function(e){e.changedTouches[0].target===t.el&&t.toggle()}),!!this.supportsEventPassiveOption&&{passive:!0}),this.container.addEventListener("click",(function(e){e.target===t.el&&t.toggle()}));var e=function(t,e){for(var n,i=[],r=t.slice(0),o=0;o<e.length;o++)-1<(n=r.indexOf(e[o]))?r.splice(n,1):i.push(e[o]);return[i,r]};this.el.addEventListener("change",(function(n){t.el.multiple?(n=t.getSelectedProperties("idx"),n=e(t.selectedIndexes,n),r.each(n[0],(function(e,n){t.select(n)}),t),r.each(n[1],(function(e,n){t.deselect(n)}),t)):-1<t.el.selectedIndex&&t.select(t.el.selectedIndex)}))}if(this.container.addEventListener("keydown",(function(e){"Escape"===e.key&&t.close(),"Enter"===e.key&&t.selected===document.activeElement&&void 0!==t.el.form.submit&&t.el.form.submit()," "!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||t.selected!==document.activeElement||(setTimeout((function(){t.toggle()}),200),t.config.nativeDropdown&&setTimeout((function(){t.el.focus()}),200))})),this.selected.addEventListener("click",(function(e){t.disabled||t.toggle(),e.preventDefault()})),this.config.nativeKeyboard){var n="";this.selected.addEventListener("keydown",(function(e){if(!(t.disabled||t.selected!==document.activeElement||e.altKey||e.ctrlKey||e.metaKey))if(" "===e.key||!t.opened&&-1<["Enter","ArrowUp","ArrowDown"].indexOf(e.key))t.toggle(),e.preventDefault(),e.stopPropagation();else if(2>=e.key.length&&String[String.fromCodePoint?"fromCodePoint":"fromCharCode"](e.key[String.codePointAt?"codePointAt":"charCodeAt"](0))===e.key){if(t.config.multiple)t.open(),t.config.searchable&&(t.input.value=e.key,t.input.focus(),t.search(null,!0));else{n+=e.key;var i=t.search(n,!0);i&&i.length&&(t.clear(),t.setValue(i[0].value)),setTimeout((function(){n=""}),1e3)}e.preventDefault(),e.stopPropagation()}})),this.container.addEventListener("keyup",(function(e){t.opened&&"Escape"===e.key&&(t.close(),e.stopPropagation(),t.selected.focus())}))}this.label.addEventListener("click",(function(e){r.hasClass(e.target,"selectr-tag-remove")&&t.deselect(e.target.parentNode.idx)})),this.selectClear&&this.selectClear.addEventListener("click",this.clear.bind(this)),this.tree.addEventListener("mousedown",(function(t){t.preventDefault()})),this.tree.addEventListener("click",(function(e){var n=r.closest(e.target,(function(t){return t&&r.hasClass(t,"selectr-option")}));n&&!r.hasClass(n,"disabled")&&(r.hasClass(n,"selected")?(t.el.multiple||!t.el.multiple&&t.config.allowDeselect)&&t.deselect(n.idx):t.select(n.idx),t.opened&&!t.el.multiple&&t.close()),e.preventDefault(),e.stopPropagation()})),this.tree.addEventListener("mouseover",(function(e){r.hasClass(e.target,"selectr-option")&&!r.hasClass(e.target,"disabled")&&(r.removeClass(t.items[t.navIndex],"active"),r.addClass(e.target,"active"),t.navIndex=[].slice.call(t.items).indexOf(e.target))})),this.config.searchable&&(this.input.addEventListener("focus",(function(e){t.searching=!0})),this.input.addEventListener("blur",(function(e){t.searching=!1})),this.input.addEventListener("keyup",(function(e){t.search(),t.config.taggable||(this.value.length?r.addClass(this.parentNode,"active"):r.removeClass(this.parentNode,"active"))})),this.inputClear.addEventListener("click",(function(e){t.input.value=null,f.call(t),t.tree.childElementCount||o.call(t)}))),this.config.taggable&&this.input.addEventListener("keyup",(function(e){if(t.search(),t.config.taggable&&this.value.length){var n=this.value.trim();(13===e.which||r.includes(t.tagSeperators,e.key))&&(r.each(t.tagSeperators,(function(t,e){n=n.replace(e,"")})),t.add({value:n,text:n,selected:!0},!0)?(t.close(),f.call(t)):(this.value="",t.setMessage(t.config.messages.tagDuplicate)))}})),this.update=r.debounce((function(){t.opened&&t.config.closeOnScroll&&t.close(),t.width&&(t.container.style.width=t.width),t.invert()}),50),this.requiresPagination&&(this.paginateItems=r.debounce((function(){h.call(this)}),50),this.tree.addEventListener("scroll",this.paginateItems.bind(this))),document.addEventListener("click",this.events.dismiss),window.addEventListener("keydown",this.events.navigate),window.addEventListener("resize",this.update),window.addEventListener("scroll",this.update),this.on("selectr.destroy",(function(){document.removeEventListener("click",this.events.dismiss),window.removeEventListener("keydown",this.events.navigate),window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update)})),this.el.form&&(this.el.form.addEventListener("reset",this.events.reset),this.on("selectr.destroy",(function(){this.el.form.removeEventListener("reset",this.events.reset)})))},t.prototype.setSelected=function(t){if(this.config.data||this.el.multiple||!this.el.options.length||(0!==this.el.selectedIndex||this.el.options[0].defaultSelected||this.config.defaultSelected||(this.el.selectedIndex=-1),this.selectedIndex=this.el.selectedIndex,-1<this.selectedIndex&&this.select(this.selectedIndex)),this.config.multiple&&"select-one"===this.originalType&&!this.config.data&&this.el.options[0].selected&&!this.el.options[0].defaultSelected&&(this.el.options[0].selected=!1),r.each(this.options,(function(t,e){e.selected&&e.defaultSelected&&this.select(e.idx)}),this),this.config.selectedValue&&this.setValue(this.config.selectedValue),this.config.data){!this.el.multiple&&this.config.defaultSelected&&0>this.el.selectedIndex&&this.select(0);var n=0;r.each(this.config.data,(function(t,i){e(i,"children")?r.each(i.children,(function(t,e){e.hasOwnProperty("selected")&&!0===e.selected&&this.select(n),n++}),this):(i.hasOwnProperty("selected")&&!0===i.selected&&this.select(n),n++)}),this)}},t.prototype.destroy=function(){this.rendered&&(this.emit("selectr.destroy"),"select-one"===this.originalType&&(this.el.multiple=!1),this.config.data&&(this.el.innerHTML=""),r.removeClass(this.el,"selectr-hidden"),this.container.parentNode.replaceChild(this.el,this.container),this.rendered=!1,delete this.el.selectr)},t.prototype.change=function(t){var e=this.items[t],n=this.options[t];n.disabled||(n.selected&&r.hasClass(e,"selected")?this.deselect(t):this.select(t),this.opened&&!this.el.multiple&&this.close())},t.prototype.select=function(t){var e=this.items[t],n=[].slice.call(this.el.options),i=this.options[t];if(this.el.multiple){if(r.includes(this.selectedIndexes,t))return!1;if(this.config.maxSelections&&this.tags.length===this.config.maxSelections)return this.setMessage(this.config.messages.maxSelections.replace("{max}",this.config.maxSelections),!0),!1;this.selectedValues.push(i.value),this.selectedIndexes.push(t),u.call(this,e)}else{var o=this.data?this.data[t]:i;this.label.innerHTML=this.customSelected?this.config.renderSelection(o):i.textContent,this.selectedValue=i.value,this.selectedIndex=t,r.each(this.options,(function(e,n){var i=this.items[e];e!==t&&(i&&r.removeClass(i,"selected"),n.selected=!1,n.removeAttribute("selected"))}),this)}r.includes(n,i)||this.el.add(i),e.setAttribute("aria-selected",!0),r.addClass(e,"selected"),r.addClass(this.container,"has-selected"),i.selected=!0,i.setAttribute("selected",""),this.emit("selectr.change",i),this.emit("selectr.select",i),"createEvent"in document?((e=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),this.el.dispatchEvent(e)):this.el.fireEvent("onchange")},t.prototype.deselect=function(t,e){var n=this.items[t],i=this.options[t];if(this.el.multiple){var o=this.selectedIndexes.indexOf(t);this.selectedIndexes.splice(o,1),o=this.selectedValues.indexOf(i.value),this.selectedValues.splice(o,1),d.call(this,n),this.tags.length||r.removeClass(this.container,"has-selected")}else{if(!e&&!this.config.clearable&&!this.config.allowDeselect)return!1;this.label.innerHTML="",this.selectedValue=null,this.el.selectedIndex=this.selectedIndex=-1,r.removeClass(this.container,"has-selected")}this.items[t].setAttribute("aria-selected",!1),r.removeClass(this.items[t],"selected"),i.selected=!1,i.removeAttribute("selected"),this.emit("selectr.change",null),this.emit("selectr.deselect",i),"createEvent"in document?((n=document.createEvent("HTMLEvents")).initEvent("change",!0,!0),this.el.dispatchEvent(n)):this.el.fireEvent("onchange")},t.prototype.setValue=function(t){var e=Array.isArray(t);if(e||(t=t.toString().trim()),!this.el.multiple&&e)return!1;r.each(this.options,(function(n,i){(e&&-1<t.indexOf(i.value)||i.value===t)&&this.change(i.idx)}),this)},t.prototype.getValue=function(t,e){if(this.el.multiple)if(t){if(this.selectedIndexes.length){var n={values:[]};r.each(this.selectedIndexes,(function(t,e){var i=this.options[e];n.values[t]={value:i.value,text:i.textContent}}),this)}}else n=this.selectedValues.slice();else if(t){var i=this.options[this.selectedIndex];n={value:i.value,text:i.textContent}}else n=this.selectedValue;return t&&e&&(n=JSON.stringify(n)),n},t.prototype.add=function(t,e){if(t){if(this.data=this.data||[],this.items=this.items||[],this.options=this.options||[],Array.isArray(t))r.each(t,(function(t,n){this.add(n,e)}),this);else if("[object Object]"===Object.prototype.toString.call(t)){if(e){var n=!1;if(r.each(this.options,(function(e,i){i.value.toLowerCase()===t.value.toLowerCase()&&(n=!0)})),n)return!1}var i=r.createElement("option",t);return this.data.push(t),this.options.push(i),i.idx=0<this.options.length?this.options.length-1:0,s.call(this,i),t.selected&&this.select(i.idx),this.setPlaceholder(),i}return this.config.pagination&&this.paginate(),!0}},t.prototype.remove=function(t){var e,n=[];Array.isArray(t)?r.each(t,(function(t,e){r.isInt(e)?n.push(this.getOptionByIndex(e)):"string"==typeof e&&n.push(this.getOptionByValue(e))}),this):r.isInt(t)?n.push(this.getOptionByIndex(t)):"string"==typeof t&&n.push(this.getOptionByValue(t)),n.length&&(r.each(n,(function(t,n){e=n.idx,this.el.remove(n),this.options.splice(e,1);var i=this.items[e].parentNode;i&&i.removeChild(this.items[e]),this.items.splice(e,1),r.each(this.options,(function(t,e){e.idx=t,this.items[t].idx=t}),this)}),this),this.setPlaceholder(),this.config.pagination&&this.paginate())},t.prototype.removeAll=function(){this.clear(!0),r.each(this.el.options,(function(t,e){this.el.remove(e)}),this),r.truncate(this.tree),this.items=[],this.options=[],this.data=[],this.navIndex=0,this.requiresPagination&&(this.requiresPagination=!1,this.pageIndex=1,this.pages=[]),this.setPlaceholder()},t.prototype.search=function(t,e){if(!this.navigating){var i=!1;t||(t=this.input.value,i=!0,this.removeMessage(),r.truncate(this.tree));var a=[],s=document.createDocumentFragment();if(0<(t=t.trim().toLowerCase()).length){var l=e?r.startsWith:r.includes;if(r.each(this.options,(function(e,o){var c=this.items[o.idx];if(l(o.textContent.trim().toLowerCase(),t)&&!o.disabled){if(a.push({text:o.textContent,value:o.value}),i&&(n(c,s,this.customOption),r.removeClass(c,"excluded"),!this.customOption)){var u=!!(u=new RegExp(t,"i").exec(o.textContent))&&o.textContent.replace(u[0],"<span class='selectr-match'>"+u[0]+"</span>");c.innerHTML=u}}else i&&r.addClass(c,"excluded")}),this),i){if(s.childElementCount){var c=this.items[this.navIndex],u=s.querySelector(".selectr-option:not(.excluded)");this.noResults=!1,r.removeClass(c,"active"),this.navIndex=u.idx,r.addClass(u,"active")}else this.config.taggable||(this.noResults=!0,this.setMessage(this.config.messages.noResults));this.tree.appendChild(s)}}else o.call(this);return a}},t.prototype.toggle=function(){this.disabled||(this.opened?this.close():this.open())},t.prototype.open=function(){var t=this;if(!this.options.length)return!1;this.opened||this.emit("selectr.open"),this.opened=!0,this.mobileDevice||this.config.nativeDropdown?(r.addClass(this.container,"native-open"),this.config.data&&r.each(this.options,(function(t,e){this.el.add(e)}),this)):(r.addClass(this.container,"open"),o.call(this),this.invert(),this.tree.scrollTop=0,r.removeClass(this.container,"notice"),this.selected.setAttribute("aria-expanded",!0),this.tree.setAttribute("aria-hidden",!1),this.tree.setAttribute("aria-expanded",!0),this.config.searchable&&!this.config.taggable&&setTimeout((function(){t.input.focus(),t.input.tabIndex=0}),10))},t.prototype.close=function(){if(this.opened&&this.emit("selectr.close"),this.navigating=this.opened=!1,this.mobileDevice||this.config.nativeDropdown)r.removeClass(this.container,"native-open");else{var t=r.hasClass(this.container,"notice");this.config.searchable&&!t&&(this.input.blur(),this.input.tabIndex=-1,this.searching=!1),t&&(r.removeClass(this.container,"notice"),this.notice.textContent=""),r.removeClass(this.container,"open"),r.removeClass(this.container,"native-open"),this.selected.setAttribute("aria-expanded",!1),this.tree.setAttribute("aria-hidden",!0),this.tree.setAttribute("aria-expanded",!1),r.truncate(this.tree),f.call(this),this.selected.focus()}},t.prototype.enable=function(){this.disabled=!1,this.el.disabled=!1,this.selected.tabIndex=this.originalIndex,this.el.multiple&&r.each(this.tags,(function(t,e){e.lastElementChild.tabIndex=0})),r.removeClass(this.container,"selectr-disabled")},t.prototype.disable=function(t){t||(this.el.disabled=!0),this.selected.tabIndex=-1,this.el.multiple&&r.each(this.tags,(function(t,e){e.lastElementChild.tabIndex=-1})),this.disabled=!0,r.addClass(this.container,"selectr-disabled")},t.prototype.reset=function(){this.disabled||(this.clear(),this.setSelected(!0),r.each(this.defaultSelected,(function(t,e){this.select(e)}),this),this.emit("selectr.reset"))},t.prototype.clear=function(t){this.el.multiple?this.selectedIndexes.length&&(t=this.selectedIndexes.slice(),r.each(t,(function(t,e){this.deselect(e)}),this)):-1<this.selectedIndex&&this.deselect(this.selectedIndex,t),this.emit("selectr.clear")},t.prototype.serialise=function(t){var e=[];return r.each(this.options,(function(t,n){var i={value:n.value,text:n.textContent};n.selected&&(i.selected=!0),n.disabled&&(i.disabled=!0),e[t]=i})),t?JSON.stringify(e):e},t.prototype.serialize=function(t){return this.serialise(t)},t.prototype.setPlaceholder=function(t){t=t||this.config.placeholder||this.el.getAttribute("placeholder"),this.options.length||(t=this.config.messages.noOptions),this.placeEl.innerHTML=t},t.prototype.paginate=function(){if(this.items.length){var t=this;return this.pages=this.items.map((function(e,n){return 0==n%t.config.pagination?t.items.slice(n,n+t.config.pagination):null})).filter((function(t){return t}))}},t.prototype.setMessage=function(t,e){e&&this.close(),r.addClass(this.container,"notice"),this.notice.textContent=t},t.prototype.removeMessage=function(){r.removeClass(this.container,"notice"),this.notice.innerHTML=""},t.prototype.invert=function(){var t=r.rect(this.selected);t.top+t.height+this.tree.parentNode.offsetHeight>window.innerHeight?(r.addClass(this.container,"inverted"),this.isInverted=!0):(r.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=r.rect(this.tree)},t.prototype.getOptionByIndex=function(t){return this.options[t]},t.prototype.getOptionByValue=function(t){for(var e=!1,n=0,i=this.options.length;n<i;n++)if(this.options[n].value.trim()===t.toString().trim()){e=this.options[n];break}return e},t},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)},74486:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});n(62062),n(26910),n(78459);var i,r=n(4523),o=n(74692);(i=function(t){var e=this;this.table=t.first(),this.size=this.table.attr("data-size"),this.theadTr=this.table.children("thead").first().children("tr").first(),this.tbody=this.table.children("tbody").first(),this.sortableHeaderFields=this.theadTr.children("th.sortable"),this.sortableHeaderFields.each((function(){var t=o(this);r.Ay.isUndefined(t.attr("data-title"))&&t.attr("data-title",t.html())})),this.sortableHeaderFields.on("click",(function(t){e.onClickHeader(o(this)),t.preventDefault()})),this.updateHeader(),this.sort()}).prototype={onClickHeader:function(t){this.resetHeaderSiblingsOrder(t);var e=this.toggleHeaderFieldOrder(t);this.updateHeader(),e&&this.sort()},updateHeader:function(){var t=this;this.sortableHeaderFields.each((function(){var e=o(this);e.attr("data-order");t.updateHeaderField(e)}))},updateHeaderField:function(t,e,n){t.html((e||"")+t.attr("data-title")+(n||""))},toggleHeaderFieldOrder:function(t){var e=t.attr("data-order-disallow");if(!r.Ay.isUndefined(e)){var n="asc"==e?"desc":"asc",i=t.attr("data-order");return t.attr("data-order",n),n!=i}return"asc"==t.attr("data-order")?t.attr("data-order","desc"):t.attr("data-order","asc"),!0},resetHeaderSiblingsOrder:function(t){t.siblings("th").attr("data-order",null)},sortvalFromTd:function(t,e){var n=t.attr("data-value");return r.Ay.isUndefined(n)&&(n=t.html()),"numeric"==e&&(n=parseFloat(n)),n},sort:function(){var t,e=this,n=1;if(this.theadTr.children("th").each((function(e){var i=o(this).attr("data-order");if(i)return n="asc"==i?-1:1,t=e,!1})),!r.Ay.isUndefined(t)){var i=this,a=this.tbody,s=this.theadTr,l=a.children("tr").length,c=(r.Ay.range(0,l),s.children().eq(t).attr("data-sorttype"));a.children("tr").map((function(e,n){return{tr:n,sortval:i.sortvalFromTd(o(n).children("td").eq(t),c)}})).sort((function(t,e){return t.sortval<e.sortval?-1*n:t.sortval>e.sortval?1*n:0})).each((function(t,e){o(e.tr).prependTo(a)}))}if(!r.Ay.isUndefined(this.size)){var u=0;this.tbody.children("tr").each((function(){var t=o(this);u<e.size?t.removeClass("hide"):t.addClass("hide"),++u}))}}};const a=i},68775:(t,e,n)=>{var i=n(74692);n(51783),n(53979),n(2969),n(86640),n(94974),n(65507),n(80507),function(t,e){var n,r,o,a=t(window),s="onwheel"in document||document.documentMode>=9?"wheel":"mousewheel DOMMouseScroll";function l(e,i,a){var l;document.body&&(i="number"==typeof i?{duration:i}:i||{},n=n||t("html, body"),l=i.container||n,"number"==typeof e&&(e={top:e}),r&&o&&r.off(s,o),i.wheelBehavior&&"none"!==i.wheelBehavior&&(o=function(t){"stop"===i.wheelBehavior?(l.off(s,o),l.stop()):"ignore"===i.wheelBehavior&&t.preventDefault()},r=l.on(s,o)),l.stop().animate({scrollLeft:e.left,scrollTop:e.top},i.duration,(function(){o&&l.off(s,o),t.isFunction(a)&&a()})))}function c(e){this.options=t.extend({anchorLinks:'a[href^="#"]',container:null,extraOffset:null,activeClasses:null,easing:"swing",animMode:"duration",animDuration:800,animSpeed:1500,anchorActiveClass:"anchor-active",sectionActiveClass:"section-active",wheelBehavior:"stop",useNativeAnchorScrolling:!1},e),this.init()}c.prototype={init:function(){this.initStructure(),this.attachEvents(),this.isInit=!0},initStructure:function(){var e=this;this.container=this.options.container?t(this.options.container):t("html,body"),this.scrollContainer=this.options.container?this.container:a,this.anchorLinks=i(this.options.anchorLinks).filter((function(){return i(e.getAnchorTarget(i(this))).length}))},getId:function(t){try{return"#"+t.replace(/^.*?(#|$)/,"")}catch(t){return null}},getAnchorTarget:function(e){var n=this.getId(t(e).attr("href"));return t(n.length>1?n:"html")},getTargetOffset:function(t){var e=t.offset().top;return this.options.container&&(e-=this.container.offset().top-this.container.prop("scrollTop")),"number"==typeof this.options.extraOffset?e-=this.options.extraOffset:"function"==typeof this.options.extraOffset&&(e-=this.options.extraOffset(t)),{top:e}},attachEvents:function(){var e=this;if(this.options.activeClasses&&this.anchorLinks.length){this.anchorData=[];for(var n=0;n<this.anchorLinks.length;n++){var r=i(this.anchorLinks[n]),o=e.getAnchorTarget(r),s=null;t.each(e.anchorData,(function(t,e){e.block[0]===o[0]&&(s=e)})),s?s.link=s.link.add(r):e.anchorData.push({link:r,block:o})}this.resizeHandler=function(){e.isInit&&e.recalculateOffsets()},this.scrollHandler=function(){e.refreshActiveClass()},this.recalculateOffsets(),this.scrollContainer.on("scroll",this.scrollHandler),a.on("resize.SmoothScroll load.SmoothScroll orientationchange.SmoothScroll refreshAnchor.SmoothScroll",this.resizeHandler)}this.clickHandler=function(t){e.onClick(t)},this.options.useNativeAnchorScrolling||this.anchorLinks.on("click",this.clickHandler)},recalculateOffsets:function(){var e=this;t.each(this.anchorData,(function(t,n){n.offset=e.getTargetOffset(n.block),n.height=n.block.outerHeight()})),this.refreshActiveClass()},toggleActiveClass:function(t,e,n){t.toggleClass(this.options.anchorActiveClass,n),e.toggleClass(this.options.sectionActiveClass,n)},refreshActiveClass:function(){var e=this,n=!1,i=this.container.prop("scrollHeight"),r=this.scrollContainer.height(),o=this.options.container?this.container.prop("scrollTop"):a.scrollTop();this.options.customScrollHandler?this.options.customScrollHandler.call(this,o,this.anchorData):(this.anchorData.sort((function(t,e){return t.offset.top-e.offset.top})),t.each(this.anchorData,(function(t){var a=e.anchorData.length-t-1,s=e.anchorData[a],l="parent"===e.options.activeClasses?s.link.parent():s.link;o>=i-r?a===e.anchorData.length-1?e.toggleActiveClass(l,s.block,!0):e.toggleActiveClass(l,s.block,!1):!n&&(o>=s.offset.top-1||0===a)?(n=!0,e.toggleActiveClass(l,s.block,!0)):e.toggleActiveClass(l,s.block,!1)})))},calculateScrollDuration:function(t){return"speed"===this.options.animMode?Math.abs(this.scrollContainer.scrollTop()-t.top)/this.options.animSpeed*1e3:this.options.animDuration},onClick:function(t){var e=this.getAnchorTarget(t.currentTarget),n=this.getTargetOffset(e);t.preventDefault(),l(n,{container:this.container,wheelBehavior:this.options.wheelBehavior,duration:this.calculateScrollDuration(n)}),this.makeCallback("onBeforeScroll",t.currentTarget)},makeCallback:function(t){if("function"==typeof this.options[t]){var e=Array.prototype.slice.call(arguments);e.shift(),this.options[t].apply(this,e)}},destroy:function(){var e=this;this.isInit=!1,this.options.activeClasses&&(a.off("resize.SmoothScroll load.SmoothScroll orientationchange.SmoothScroll refreshAnchor.SmoothScroll",this.resizeHandler),this.scrollContainer.off("scroll",this.scrollHandler),t.each(this.anchorData,(function(t){var n=e.anchorData.length-t-1,i=e.anchorData[n],r="parent"===e.options.activeClasses?i.link.parent():i.link;e.toggleActiveClass(r,i.block,!1)}))),this.anchorLinks.off("click",this.clickHandler)}},t.extend(c,{scrollTo:function(t,e,n){l(t,e,n)}}),e.SmoothScroll=c}(i,window)},16930:(t,e,n)=>{var i=n(74692);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n(57644),n(74516),n(75826),n(55146),n(84443),n(53979),n(86640),n(64777),n(92536),function(t){function e(e){this.options=t.extend({addClassBeforeAnimation:!0,hideOnClickOutside:!1,activeClass:"active",opener:".opener",slider:".slide",animSpeed:400,effect:"fade",event:"click"},e),this.init()}e.prototype={init:function(){this.options.holder&&(this.findElements(),this.attachEvents(),this.makeCallback("onInit",this))},findElements:function(){this.holder=t(this.options.holder),this.opener=this.holder.find(this.options.opener),this.slider=this.holder.find(this.options.slider)},attachEvents:function(){var e=this;this.eventHandler=function(t){t.preventDefault(),e.slider.hasClass(a)?e.showSlide():e.hideSlide()},e.slider.attr("aria-hidden","true"),e.opener.attr("aria-expanded","false"),e.opener.on(e.options.event,this.eventHandler),"hover"===e.options.event&&(e.opener.on("mouseenter",(function(){e.holder.hasClass(e.options.activeClass)||e.showSlide()})),e.holder.on("mouseleave",(function(){e.hideSlide()}))),e.outsideClickHandler=function(n){if(e.options.hideOnClickOutside){var i=t(n.target);i.is(e.holder)||i.closest(e.holder).length||e.hideSlide()}},this.holder.hasClass(this.options.activeClass)?t(document).on("click touchstart",e.outsideClickHandler):this.slider.addClass(a)},showSlide:function(){var e=this;e.options.addClassBeforeAnimation&&e.holder.addClass(e.options.activeClass),e.slider.attr("aria-hidden","false"),e.opener.attr("aria-expanded","true"),e.slider.removeClass(a),t(document).on("click touchstart",e.outsideClickHandler),e.makeCallback("animStart",!0),s[e.options.effect].show({box:e.slider,speed:e.options.animSpeed,complete:function(){e.options.addClassBeforeAnimation||e.holder.addClass(e.options.activeClass),e.makeCallback("animEnd",!0)}})},hideSlide:function(){var e=this;e.options.addClassBeforeAnimation&&e.holder.removeClass(e.options.activeClass),t(document).off("click touchstart",e.outsideClickHandler),e.makeCallback("animStart",!1),s[e.options.effect].hide({box:e.slider,speed:e.options.animSpeed,complete:function(){e.options.addClassBeforeAnimation||e.holder.removeClass(e.options.activeClass),e.slider.addClass(a),e.slider.attr("aria-hidden","true"),e.opener.attr("aria-expanded","false"),e.makeCallback("animEnd",!1)}})},destroy:function(){this.makeCallback("onDestroy",!1),this.slider.removeClass(a).css({display:""}),this.opener.off(this.options.event,this.eventHandler),this.holder.removeClass(this.options.activeClass).removeData("OpenClose"),t(document).off("click touchstart",this.outsideClickHandler)},makeCallback:function(t){if("function"==typeof this.options[t]){var e=Array.prototype.slice.call(arguments);e.shift(),this.options[t].apply(this,e)}}};var n,o,a="js-slide-hidden";n=t('<style type="text/css">')[0],o="."+a,o+="{position:absolute !important;left:-9999px !important;top:-9999px !important;display:block !important}",n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),t("head").append(n);var s={slide:{show:function(t){t.box.stop(!0).hide().slideDown(t.speed,t.complete)},hide:function(t){t.box.stop(!0).slideUp(t.speed,t.complete)}},fade:{show:function(t){t.box.stop(!0).hide().fadeIn(t.speed,t.complete)},hide:function(t){t.box.stop(!0).fadeOut(t.speed,t.complete)}},none:{show:function(t){t.box.hide().show(0,t.complete)},hide:function(t){t.box.hide(0,t.complete)}}};t.fn.openClose=function(n){var o=Array.prototype.slice.call(arguments),a=o[0];return this.each((function(){var s=i(this),l=s.data("OpenClose");"object"===r(n)||void 0===n?s.data("OpenClose",new e(t.extend({holder:this},n))):"string"==typeof a&&l&&"function"==typeof l[a]&&(o.shift(),l[a].apply(l,o))}))}}(i)},77322:(t,e,n)=>{var i=n(74692);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n(57644),n(74516),n(75826),n(84443),n(52477),n(84535),n(53979),n(43843),n(86640),n(64777),n(92536),n(15782),function(t,e){"use strict";function n(t,e){this.options=e,this.$stickyBox=t,this.init()}var o={init:function(){this.findElements(),this.attachEvents(),this.makeCallback("onInit")},findElements:function(){this.$container=this.$stickyBox.closest(this.options.container),this.isWrap="fixed"===this.options.positionType&&this.options.setBoxHeight,this.moveInContainer=!!this.$container.length,this.isWrap&&(this.$stickyBoxWrap=this.$stickyBox.wrap('<div class="'+this.getWrapClass()+'"/>').parent()),this.parentForActive=this.getParentForActive(),this.isInit=!0},attachEvents:function(){var t=this;this.onResize=function(){t.isInit&&(t.resetState(),t.recalculateOffsets(),t.checkStickyPermission(),t.scrollHandler())},this.onScroll=function(){t.scrollHandler()},this.onResize(),e.on("load resize orientationchange",this.onResize).on("scroll",this.onScroll)},defineExtraTop:function(){var t;"number"==typeof this.options.extraTop?t=this.options.extraTop:"function"==typeof this.options.extraTop&&(t=this.options.extraTop()),this.extraTop="absolute"===this.options.positionType?t:Math.min(this.winParams.height-this.data.boxFullHeight,t)},checkStickyPermission:function(){this.isStickyEnabled=!this.moveInContainer||this.data.containerOffsetTop+this.data.containerHeight>this.data.boxFullHeight+this.data.boxOffsetTop+this.options.extraBottom},getParentForActive:function(){return this.isWrap?this.$stickyBoxWrap:this.$container.length?this.$container:this.$stickyBox},getWrapClass:function(){try{return this.$stickyBox.attr("class").split(" ").map((function(t){return"sticky-wrap-"+t})).join(" ")}catch(t){return"sticky-wrap"}},resetState:function(){this.stickyFlag=!1,this.$stickyBox.css({"-webkit-transition":"","-webkit-transform":"",transition:"",transform:"",position:"",width:"",left:"",top:""}).removeClass(this.options.activeClass),this.isWrap&&this.$stickyBoxWrap.removeClass(this.options.activeClass).removeAttr("style"),this.moveInContainer&&this.$container.removeClass(this.options.activeClass)},recalculateOffsets:function(){this.winParams=this.getWindowParams(),this.data=t.extend(this.getBoxOffsets(),this.getContainerOffsets()),this.defineExtraTop()},getBoxOffsets:function(){var t,e="fixed"===this.$stickyBox.css("position")?((t=this.$stickyBox.offset()).top=0,t):this.$stickyBox.offset(),n=this.$stickyBox.position();return{boxOffsetLeft:e.left,boxOffsetTop:e.top,boxTopPosition:n.top,boxLeftPosition:n.left,boxFullHeight:this.$stickyBox.outerHeight(!0),boxHeight:this.$stickyBox.outerHeight(),boxWidth:this.$stickyBox.outerWidth()}},getContainerOffsets:function(){var t=this.moveInContainer?this.$container.offset():null;return t?{containerOffsetLeft:t.left,containerOffsetTop:t.top,containerHeight:this.$container.outerHeight()}:{}},getWindowParams:function(){return{height:window.innerHeight||document.documentElement.clientHeight}},makeCallback:function(t){if("function"==typeof this.options[t]){var e=Array.prototype.slice.call(arguments);e.shift(),this.options[t].apply(this,e)}},destroy:function(){this.isInit=!1,e.off("load resize orientationchange",this.onResize).off("scroll",this.onScroll),this.resetState(),this.$stickyBox.removeData("StickyScrollBlock"),this.isWrap&&this.$stickyBox.unwrap(),this.makeCallback("onDestroy")}},a={fixed:{scrollHandler:function(){this.winScrollTop=e.scrollTop(),this.winScrollTop-(this.options.showAfterScrolled?this.extraTop:0)-(this.options.showAfterScrolled?this.data.boxHeight+this.extraTop:0)>this.data.boxOffsetTop-this.extraTop?this.isStickyEnabled&&this.stickyOn():this.stickyOff()},stickyOn:function(){this.stickyFlag||(this.stickyFlag=!0,this.parentForActive.addClass(this.options.activeClass),this.$stickyBox.css({width:this.data.boxWidth,position:this.options.positionType}),this.isWrap&&this.$stickyBoxWrap.css({height:this.data.boxFullHeight}),this.makeCallback("fixedOn")),this.setDynamicPosition()},stickyOff:function(){this.stickyFlag&&(this.stickyFlag=!1,this.resetState(),this.makeCallback("fixedOff"))},setDynamicPosition:function(){this.$stickyBox.css({top:this.getTopPosition(),left:this.data.boxOffsetLeft-e.scrollLeft()})},getTopPosition:function(){if(this.moveInContainer){var t=this.winScrollTop+this.data.boxHeight+this.options.extraBottom;return Math.min(this.extraTop,this.data.containerHeight+this.data.containerOffsetTop-t)}return this.extraTop}},absolute:{scrollHandler:function(){this.winScrollTop=e.scrollTop(),this.winScrollTop>this.data.boxOffsetTop-this.extraTop?this.isStickyEnabled&&this.stickyOn():this.stickyOff()},stickyOn:function(){this.stickyFlag||(this.stickyFlag=!0,this.parentForActive.addClass(this.options.activeClass),this.$stickyBox.css({width:this.data.boxWidth,transition:"transform "+this.options.animSpeed+"s ease","-webkit-transition":"transform "+this.options.animSpeed+"s ease"}),this.isWrap&&this.$stickyBoxWrap.css({height:this.data.boxFullHeight}),this.makeCallback("fixedOn")),this.clearTimer(),this.timer=setTimeout(function(){this.setDynamicPosition()}.bind(this),1e3*this.options.animDelay)},stickyOff:function(){this.stickyFlag&&(this.clearTimer(),this.stickyFlag=!1,this.timer=setTimeout(function(){this.setDynamicPosition(),setTimeout(function(){this.resetState()}.bind(this),1e3*this.options.animSpeed)}.bind(this),1e3*this.options.animDelay),this.makeCallback("fixedOff"))},clearTimer:function(){clearTimeout(this.timer)},setDynamicPosition:function(){var t=Math.max(0,this.getTopPosition());this.$stickyBox.css({transform:"translateY("+t+"px)","-webkit-transform":"translateY("+t+"px)"})},getTopPosition:function(){var t=this.winScrollTop-this.data.boxOffsetTop+this.extraTop;if(this.moveInContainer){var e=this.winScrollTop+this.data.boxHeight+this.options.extraBottom;return t-Math.abs(Math.min(0,this.data.containerHeight+this.data.containerOffsetTop-e-this.extraTop))}return t}}};t.fn.stickyScrollBlock=function(e){var s=Array.prototype.slice.call(arguments),l=s[0],c=t.extend({container:null,positionType:"fixed",activeClass:"fixed-position",setBoxHeight:!0,showAfterScrolled:!1,extraTop:0,extraBottom:0,animDelay:.1,animSpeed:.2},e);return this.each((function(){var u=i(this),d=u.data("StickyScrollBlock");"object"===r(e)||void 0===e?(n.prototype=t.extend(a[c.positionType],o),u.data("StickyScrollBlock",new n(u,c))):"string"==typeof l&&d&&"function"==typeof d[l]&&(s.shift(),d[l].apply(d,s))}))},window.StickyScrollBlock=n}(i,i(window))},75111:(t,e,n)=>{var i=n(74692);if(void 0===i)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(i),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",(function(){n=!0}));return setTimeout((function(){n||t(i).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})}))}(i),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.3.5",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){a.detach().trigger("closed.bs.alert").remove()}var r=t(this),o=r.attr("data-target");o||(o=(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var a=t(o);e&&e.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var i=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof e&&r[e].call(i)}))},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(i),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof e&&e;r||i.data("bs.button",r=new n(this,o)),"toggle"==e?r.toggle():e&&r.setState(e)}))}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.5",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy((function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))}),this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(n){var i=t(n.target);i.hasClass("btn")||(i=i.closest(".btn")),e.call(i,"toggle"),t(n.target).is('input[type="radio"]')||t(n.target).is('input[type="checkbox"]')||n.preventDefault()})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))}))}(i),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof e?r.to(e):a?r[a]():o.interval&&r.pause().cycle()}))}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.5",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",(function(){e.to(t)})):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(e,r),a=this.interval,s="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",(function(){o.removeClass([e,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(h)}),0)})).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),a&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),o=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),e.call(o,a),s&&o.data("bs.carousel").to(s),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var n=t(this);e.call(n,n.data())}))}))}(i),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each((function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof e&&r[e]()}))}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.5",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)}),this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var o=e(r),a=o.data("bs.collapse")?"toggle":r.data();n.call(o,a)}))}(i),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(i).remove(),t(r).each((function(){var i=t(this),r=e(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger("hidden.bs.dropdown",o))))})))}var i=".dropdown-backdrop",r='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.3.5",o.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var o=e(r),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},o.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var o=e(i),a=o.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&o.find(r).trigger("focus"),i.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new o(this)),"string"==typeof e&&i[e].call(n)}))},t.fn.dropdown.Constructor=o,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",r,o.prototype.toggle).on("keydown.bs.dropdown.data-api",r,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(i),function(t){"use strict";function e(e,i){return this.each((function(){var r=t(this),o=r.data("bs.modal"),a=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);o||r.data("bs.modal",o=new n(this,a)),"string"==typeof e?o[e](i):a.show&&o.show(i)}))}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};n.VERSION="3.3.5",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){i.$element.one("mouseup.dismiss.bs.modal",(function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",(function(){i.$element.trigger("focus").trigger(o)})).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)})))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))}),this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(n){var i=t(this),r=i.attr("href"),o=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&n.preventDefault(),o.one("show.bs.modal",(function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",(function(){i.is(":visible")&&i.trigger("focus")}))})),e.call(o,a,this)}))}(i),function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};e.VERSION="3.3.5",e.TRANSITION_DURATION=150,e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},e.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,(function(t,i){n[t]!=i&&(e[t]=i)})),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)):n.show())},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)):n.hide())},e.prototype.show=function(){var n=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);c&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),d=o[0].offsetWidth,h=o[0].offsetHeight;if(c){var f=s,p=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+h>p.bottom?"top":"top"==s&&u.top-h<p.top?"bottom":"right"==s&&u.right+d>p.width?"left":"left"==s&&u.left-d<p.left?"right":s,o.removeClass(f).addClass(s)}var g=this.getCalculatedOffset(s,u,d,h);this.applyPlacement(g,s);var m=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(e.TRANSITION_DURATION):m()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=o&&(e.top=e.top+o-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var d=/top|bottom/.test(n),h=d?2*u.left-r+l:2*u.top-o+c,f=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][f],d)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){function i(){"in"!=r.hoverState&&o.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),n&&n()}var r=this,o=t(this.$tip),a=t.Event("hide.bs."+this.type);return this.$element.trigger(a),a.isDefaultPrevented()?void 0:(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(e.TRANSITION_DURATION):i(),this.hoverState=null,this)},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=i?{top:0,left:0}:e.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},s=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,a,s,o)},e.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var c=e.left-o,u=e.left+o+n;c<a.left?r.left=a.left-c:u>a.right&&(r.left=a.left+a.width-u)}return r},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null}))};var n=t.fn.tooltip;t.fn.tooltip=function(n){return this.each((function(){var i=t(this),r=i.data("bs.tooltip"),o="object"==typeof n&&n;(r||!/destroy|hide/.test(n))&&(r||i.data("bs.tooltip",r=new e(this,o)),"string"==typeof n&&r[n]())}))},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(i),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.5",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each((function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof n&&n;(r||!/destroy|hide/.test(n))&&(r||i.data("bs.popover",r=new e(this,o)),"string"==typeof n&&r[n]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(i),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()}))}e.VERSION="3.3.5",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){e.offsets.push(this[0]),e.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",(function(){t('[data-spy="scroll"]').each((function(){var e=t(this);n.call(e,e.data())}))}))}(i),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()}))}var n=function(e){this.element=t(e)};n.VERSION="3.3.5",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},n.prototype.activate=function(e,i,r){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=i.find("> .active"),s=r&&t.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),a.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(i),function(t){"use strict";function e(e){return this.each((function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof e&&r[e]()}))}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.5",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(t-i>=r+a)&&"bottom";var s=null==this.affixed,l=s?r:o.top;return null!=n&&n>=r?"top":null!=i&&l+(s?a:e)>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,e,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-e-o})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)}))}))}(i)},69983:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo((function(e){return function(n){return!!t.data(n,e)}}))})})?i.apply(e,r):i)||(t.exports=o)}()},724:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e})?i.apply(e,r):i)||(t.exports=o)}()},61255:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.ui.focusable=function(e,n){var i,r,o,a,s,l=e.nodeName.toLowerCase();return"area"===l?(r=(i=e.parentNode).name,!(!e.href||!r||"map"!==i.nodeName.toLowerCase())&&((o=t("img[usemap='#"+r+"']")).length>0&&o.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(l)?(a=!e.disabled)&&(s=t(e).closest("fieldset")[0])&&(a=!s.disabled):a="a"===l&&e.href||n,a&&t(e).is(":visible")&&"visible"===t(e).css("visibility"))},t.extend(t.expr.pseudos,{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable})?i.apply(e,r):i)||(t.exports=o)}()},47687:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout((function(){var n=e.data("ui-form-reset-instances");t.each(n,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=t(this.element.prop("form")),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}})?i.apply(e,r):i)||(t.exports=o)}()},41897:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?i.apply(e,r):i)||(t.exports=o)}()},92420:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.fn.labels=function(){var t,e,n,i,r;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(n=this.attr("id"))&&(r=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),e="label[for='"+CSS.escape(n)+"']",i=i.add(r.find(e).addBack(e))),this.pushStack(i)):this.pushStack([])}})?i.apply(e,r):i)||(t.exports=o)}()},12336:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],i=function(t){return t.ui.plugin={add:function(e,n,i){var r,o=t.ui[e].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(t,e,n,i){var r,o=t.plugins[e];if(o&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,n)}}},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},4224:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],i=function(t){return function(){var e,n=Math.max,i=Math.abs,r=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,c=t.fn.position;function u(t,e,n){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?n/100:1)]}function d(e,n){return parseInt(t.css(e,n),10)||0}function h(t){return null!=t&&t===t.window}function f(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:h(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var n,i,r=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=r.children()[0];return t("body").append(r),n=o.offsetWidth,r.css("overflow","scroll"),n===(i=o.offsetWidth)&&(i=r[0].clientWidth),r.remove(),e=n-i},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),i=h(n[0]),r=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:r,offset:!i&&!r?t(e).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return c.apply(this,arguments);var l,h,p,g,m,v,b="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),k=t.position.getWithinInfo(e.within),y=t.position.getScrollInfo(k),w=(e.collision||"flip").split(" "),_={};return v=f(b),b[0].preventDefault&&(e.at="left top"),h=v.width,p=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],(function(){var t,n,i=(e[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):o.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=o.test(i[1])?i[1]:"center",t=a.exec(i[0]),n=a.exec(i[1]),_[this]=[t?t[0]:0,n?n[0]:0],e[this]=[s.exec(i[0])[0],s.exec(i[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?m.left+=h:"center"===e.at[0]&&(m.left+=h/2),"bottom"===e.at[1]?m.top+=p:"center"===e.at[1]&&(m.top+=p/2),l=u(_.at,h,p),m.left+=l[0],m.top+=l[1],this.each((function(){var r,o,a=t(this),s=a.outerWidth(),c=a.outerHeight(),f=d(this,"marginLeft"),v=d(this,"marginTop"),A=s+f+d(this,"marginRight")+y.width,C=c+v+d(this,"marginBottom")+y.height,x=t.extend({},m),D=u(_.my,a.outerWidth(),a.outerHeight());"right"===e.my[0]?x.left-=s:"center"===e.my[0]&&(x.left-=s/2),"bottom"===e.my[1]?x.top-=c:"center"===e.my[1]&&(x.top-=c/2),x.left+=D[0],x.top+=D[1],r={marginLeft:f,marginTop:v},t.each(["left","top"],(function(n,i){t.ui.position[w[n]]&&t.ui.position[w[n]][i](x,{targetWidth:h,targetHeight:p,elemWidth:s,elemHeight:c,collisionPosition:r,collisionWidth:A,collisionHeight:C,offset:[l[0]+D[0],l[1]+D[1]],my:e.my,at:e.at,within:k,elem:a})})),e.using&&(o=function(t){var r=g.left-x.left,o=r+h-s,l=g.top-x.top,u=l+p-c,d={target:{element:b,left:g.left,top:g.top,width:h,height:p},element:{element:a,left:x.left,top:x.top,width:s,height:c},horizontal:o<0?"left":r>0?"right":"center",vertical:u<0?"top":l>0?"bottom":"middle"};h<s&&i(r+o)<h&&(d.horizontal="center"),p<c&&i(l+u)<p&&(d.vertical="middle"),n(i(r),i(o))>n(i(l),i(u))?d.important="horizontal":d.important="vertical",e.using.call(this,t,d)}),a.offset(t.extend(x,{using:o}))}))},t.ui.position={fit:{left:function(t,e){var i,r=e.within,o=r.isWindow?r.scrollLeft:r.offset.left,a=r.width,s=t.left-e.collisionPosition.marginLeft,l=o-s,c=s+e.collisionWidth-a-o;e.collisionWidth>a?l>0&&c<=0?(i=t.left+l+e.collisionWidth-a-o,t.left+=l-i):t.left=c>0&&l<=0?o:l>c?o+a-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=n(t.left-s,t.left)},top:function(t,e){var i,r=e.within,o=r.isWindow?r.scrollTop:r.offset.top,a=e.within.height,s=t.top-e.collisionPosition.marginTop,l=o-s,c=s+e.collisionHeight-a-o;e.collisionHeight>a?l>0&&c<=0?(i=t.top+l+e.collisionHeight-a-o,t.top+=l-i):t.top=c>0&&l<=0?o:l>c?o+a-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=n(t.top-s,t.top)}},flip:{left:function(t,e){var n,r,o=e.within,a=o.offset.left+o.scrollLeft,s=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,d=c+e.collisionWidth-s-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];u<0?((n=t.left+h+f+p+e.collisionWidth-s-a)<0||n<i(u))&&(t.left+=h+f+p):d>0&&((r=t.left-e.collisionPosition.marginLeft+h+f+p-l)>0||i(r)<d)&&(t.left+=h+f+p)},top:function(t,e){var n,r,o=e.within,a=o.offset.top+o.scrollTop,s=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,d=c+e.collisionHeight-s-l,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];u<0?((r=t.top+h+f+p+e.collisionHeight-s-a)<0||r<i(u))&&(t.top+=h+f+p):d>0&&((n=t.top-e.collisionPosition.marginTop+h+f+p-l)>0||i(n)<d)&&(t.top+=h+f+p)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},82299:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.fn.scrollParent=function(e){var n=this.css("position"),i="absolute"===n,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!i||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==n&&o.length?o:t(this[0].ownerDocument||document)}})?i.apply(e,r):i)||(t.exports=o)}()},67144:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883),n(61255)],void 0===(o="function"==typeof(i=function(t){return t.extend(t.expr.pseudos,{tabbable:function(e){var n=t.attr(e,"tabindex"),i=null!=n;return(!i||n>=0)&&t.ui.focusable(e,i)}})})?i.apply(e,r):i)||(t.exports=o)}()},15304:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],void 0===(o="function"==typeof(i=function(t){return t.fn.extend({uniqueId:(e=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}});var e})?i.apply(e,r):i)||(t.exports=o)}()},56883:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692)],void 0===(o="function"==typeof(i=function(t){return t.ui=t.ui||{},t.ui.version="1.14.1"})?i.apply(e,r):i)||(t.exports=o)}()},69139:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883)],i=function(t){var e=0,n=Array.prototype.hasOwnProperty,i=Array.prototype.slice;return t.cleanData=function(e){return function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)(i=t._data(r,"events"))&&i.remove&&t(r).triggerHandler("remove");e(n)}}(t.cleanData),t.widget=function(e,n,i){var r,o,a,s={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var c=l+"-"+e;return i||(i=n,n=t.Widget),Array.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(i,(function(t,e){s[t]="function"==typeof e?function(){function i(){return n.prototype[t].apply(this,arguments)}function r(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=i,this._superApply=r,t=e.apply(this,arguments),this._super=n,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(a,{widgetEventPrefix:r&&a.widgetEventPrefix||e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),r?(t.each(r._childConstructors,(function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)})),delete r._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var r,o,a=i.call(arguments,1),s=0,l=a.length;s<l;s++)for(r in a[s])o=a[s][r],n.call(a[s],r)&&void 0!==o&&(t.isPlainObject(o)?e[r]=t.isPlainObject(e[r])?t.widget.extend({},e[r],o):t.widget.extend({},o):e[r]=o);return e},t.widget.bridge=function(e,n){var r=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=i.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var n,i=t.data(this,r);return"instance"===o?(l=i,!1):i?"function"!=typeof i[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(n=i[o].apply(i,s))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new n(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},i=e.split("."),e=i.shift(),i.length){for(r=a[e]=t.widget.extend({},this.options[e]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(e=i.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,r;for(n in e)r=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&r&&r.length&&(i=t(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],i=this;function r(){var n=[];e.element.each((function(e,r){t.map(i.classesElementLookup,(function(t){return t})).some((function(t){return t.is(r)}))||n.push(r)})),i._on(t(n),{remove:"_untrackClassesElement"})}function o(o,a){var s,l;for(l=0;l<o.length;l++)s=i.classesElementLookup[o[l]]||t(),e.add?(r(),s=t(t.uniqueSort(s.get().concat(e.element.get())))):s=t(s.not(e.element).get()),i.classesElementLookup[o[l]]=s,n.push(o[l]),a&&e.classes[o[l]]&&n.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(i,r){-1!==t.inArray(e.target,r)&&(n.classesElementLookup[i]=t(r.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof t||null===t,o={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(e,n,i){var r,o=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,(function(i,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?r.on(c,u,s):n.on(c,s)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var r,o,a=this.options[e];if(i=i||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!("function"==typeof a&&!1===a.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(i,r,o){var a;"string"==typeof r&&(r={effect:r});var s=r?!0===r||"number"==typeof r?n:r.effect||n:e;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),a=!t.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),a&&t.effects&&t.effects.effect[s]?i[e](r):s!==e&&i[s]?i[s](r.duration,r.easing,o):i.queue((function(n){t(this)[e](),o&&o.call(i[0]),n()}))}})),t.widget},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},20097:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(28330),n(41897),n(4224),n(56883),n(69139)],i=function(t){return t.widget("ui.autocomplete",{version:"1.14.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var e,n,i,r=this.element[0].nodeName.toLowerCase(),o="textarea"===r,a="input"===r;this.isMultiLine=o||!a&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,i=!0,void(n=!0);e=!1,i=!1,n=!1;var o=t.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",r);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case o.UP:e=!0,this._keyEvent("previous",r);break;case o.DOWN:e=!0,this._keyEvent("next",r);break;case o.ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:n=!0,this._searchTimeout(r)}},keypress:function(i){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var r=t.ui.keyCode;switch(i.keyCode){case r.PAGE_UP:this._move("previousPage",i);break;case r.PAGE_DOWN:this._move("nextPage",i);break;case r.UP:this._keyEvent("previous",i);break;case r.DOWN:this._keyEvent("next",i)}}},input:function(t){if(i)return i=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(e,n){var i,r;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}));r=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:r})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(r.value),(i=n.item.attr("aria-label")||r.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(t("<div>").text(i))}),100))},menuselect:function(t,e){var n=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var n=this.menu.element[0];return e.target===this.element[0]||e.target===n||t.contains(n,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,i=this;Array.isArray(this.options.source)?(e=this.options.source,this.source=function(n,i){i(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,r){i.xhr&&i.xhr.abort(),i.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),n=this.menu.element.is(":visible"),i=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||n||i)||(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var i=this;t.each(n,(function(t,n){i._renderItemData(e,n)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,n){return t("<li>").append(t("<div>").text(n.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var i=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,(function(t){return i.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(t("<div>").text(n))}),100))}}),t.ui.autocomplete},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},58481:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(96605),n(12097),n(41897),n(69139)],i=function(t){t.widget("ui.button",{version:"1.14.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,n){var i="iconPosition"!==e,r=i?this.options.iconPosition:n,o="top"===r||"bottom"===r;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,n),this._attachIcon(r),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,n=void 0===t.icon?this.options.icon:t.icon;e||n||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!0===t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),t.fn.button=(e=t.fn.button,function(n){var i="string"==typeof n,r=Array.prototype.slice.call(arguments,1),o=this;return i?this.length||"instance"!==n?this.each((function(){var e,i=t(this).attr("type"),a="checkbox"!==i&&"radio"!==i?"button":"checkboxradio",s=t.data(this,"ui-"+a);return"instance"===n?(o=s,!1):s?"function"!=typeof s[n]||"_"===n.charAt(0)?t.error("no such method '"+n+"' for button widget instance"):(e=s[n].apply(s,r))!==s&&void 0!==e?(o=e&&e.jquery?o.pushStack(e.get()):e,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+n+"'")})):o=void 0:(r.length&&(n=t.widget.extend.apply(null,[n].concat(r))),this.each((function(){var i=t(this).attr("type"),r="checkbox"!==i&&"radio"!==i?"button":"checkboxradio",o=t.data(this,"ui-"+r);if(o)o.option(n||{}),o._init&&o._init();else{if("button"===r)return void e.call(t(this),n);t(this).checkboxradio(t.extend({icon:!1},n))}}))),o}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});var e;return t.ui.button},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},12097:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(47687),n(92420),n(69139)],void 0===(o="function"==typeof(i=function(t){return t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.14.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,n,i,r=this._super()||{};return this._readType(),n=this.element.labels(),this.label=t(n[n.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",(i=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=i.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(r.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(r.disabled=e),r},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,n="input[name='"+CSS.escape(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(n):t(n).filter((function(){return 0===t(t(this).prop("form")).length}))).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each((function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(e){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio})?i.apply(e,r):i)||(t.exports=o)}()},96605:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(69139)],void 0===(o="function"==typeof(i=function(t){var e=/ui-corner-([a-z]){2,6}/g;return t.widget("ui.controlgroup",{version:"1.14.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,n=[];t.each(this.options.items,(function(i,r){var o,a={};if(r)return"controlgroupLabel"===i?((o=e.element.find(r)).each((function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(o.get()))):void(t.fn[i]&&(a=e["_"+i+"Options"]?e["_"+i+"Options"]("middle"):{classes:{}},e.element.find(r).each((function(){var r=t(this),o=r[i]("instance"),s=t.widget.extend({},a);if("button"!==i||!r.parent(".ui-spinner").length){o||(o=r[i]()[i]("instance")),o&&(s.classes=e._resolveClassesValues(s.classes,o)),r[i](s);var l=r[i]("widget");t.data(l[0],"ui-controlgroup-data",o||r[i]("instance")),n.push(l[0])}}))))})),this.childWidgets=t(t.uniqueSort(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var n=t(this).data("ui-controlgroup-data");n&&n[e]&&n[e]()}))},_updateCornerClass:function(t,e){var n="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,n),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[e]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[t],i},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(n,i){var r={};return t.each(n,(function(t){var o=i.options.classes[t]||"";o=String.prototype.trim.call(o.replace(e,"")),r[t]=(o+" "+n[t]).replace(/\s+/g," ")})),r},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],(function(t,i){var r=e[i]().data("ui-controlgroup-data");if(r&&n["_"+r.widgetName+"Options"]){var o=n["_"+r.widgetName+"Options"](1===e.length?"only":i);o.classes=n._resolveClassesValues(o.classes,r),r.element[r.widgetName](o)}else n._updateCornerClass(e[i](),i)})),this._callChildMethod("refresh"))}})})?i.apply(e,r):i)||(t.exports=o)}()},83431:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883),n(41897)],i=function(t){var e;function n(t){for(var e,n;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(n=parseInt(t.css("zIndex"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=r(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",n,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",n,o)}function o(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,n){for(var i in t.extend(e,n),n)null==n[i]&&(e[i]=n[i]);return e}return t.extend(t.ui,{datepicker:{version:"1.14.1"}}),t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,n){var i,r,o;r="div"===(i=e.nodeName.toLowerCase())||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(t(e),r)).settings=t.extend({},n||{}),"input"===i?this._connectDatepicker(e,o):r&&this._inlineDatepicker(e,o)},_newInst:function(e,n){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?r(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,n){var i=t(e);n.append=t([]),n.trigger=t([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),t.data(e,"datepicker",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var i,r,o,a=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),a&&(n.append=t("<span>").addClass(this._appendClass).text(a),e[s?"before":"after"](n.append)),e.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(i=this._get(n,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(r=this._get(n,"buttonText"),o=this._get(n,"buttonImage"),this._get(n,"buttonImageOnly")?n.trigger=t("<img>").addClass(this._triggerClass).attr({src:o,alt:r,title:r}):(n.trigger=t("<button type='button'>").addClass(this._triggerClass),o?n.trigger.html(t("<img>").attr({src:o,alt:r,title:r})):n.trigger.text(r)),e[s?"before":"after"](n.trigger),n.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,n,i,r,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(n=0,i=0,r=0;r<t.length;r++)t[r].length>n&&(n=t[r].length,i=r);return i},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,n){var i=t(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,i,r,o){var s,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",h)),a(h.settings,r||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(n){var i,r=t(n),o=t.data(n,"datepicker");r.hasClass(this.markerClassName)&&(i=n.nodeName.toLowerCase(),t.removeData(n,"datepicker"),"input"===i?(o.append.remove(),o.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||r.removeClass(this.markerClassName).empty(),t.datepicker._hideDatepicker(),e===o&&(e=null,this._curInst=null))},_enableDatepicker:function(e){var n,i,r=t(e),o=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!1,o.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((i=r.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var n,i,r=t(e),o=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!0,o.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((i=r.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,i){var r,o,s,l,c=this._getInst(e);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?t.extend({},t.datepicker._defaults):c?"all"===n?t.extend({},c.settings):this._get(c,n):null;r=n||{},"string"==typeof n&&((r={})[n]=i),c&&(this._curInst===c&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),s=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),a(c.settings,r),null!==s&&void 0!==r.dateFormat&&void 0===r.minDate&&(c.settings.minDate=this._formatDate(c,s)),null!==l&&void 0!==r.dateFormat&&void 0===r.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,o),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var n=this._getInst(t);n&&(this._setDate(n,e),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(t,e){var n=this._getInst(t);return n&&!n.inline&&this._setDateFromField(n,e),n?this._getDate(n):null},_doKeyDown:function(e){var n,i,r,o=t.datepicker._getInst(e.target),a=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return(r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,r[0]),(n=t.datepicker._get(o,"onSelect"))?(i=t.datepicker._formatDate(o),n.apply(o.input?o.input[0]:null,[i,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,i,r=t.datepicker._getInst(e.target);if(t.datepicker._get(r,"constrainInput"))return n=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||i<" "||!n||n.indexOf(i)>-1},_doKeyUp:function(e){var n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n))&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(t){}return!0},_showDatepicker:function(e){var i,r,o,s,l,c,u;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(o=(r=t.datepicker._get(i,"beforeShow"))?r.apply(e,[e,i]):{})&&(a(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each((function(){return!(s|="fixed"===t(this).css("position"))})),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),l=t.datepicker._checkOffset(i,l,s),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":s?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),i.inline||(c=t.datepicker._get(i,"showAnim"),u=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",n(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?i.dpDiv.show(c,t.datepicker._get(i,"showOptions"),u):i.dpDiv[c||"show"](c?u:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i)))},_updateDatepicker:function(n){this.maxRows=4,e=n,n.dpDiv.empty().append(this._generateHTML(n)),this._attachHandlers(n);var i,r=this._getNumberOfMonths(n),a=r[1],s=17,l=n.dpDiv.find("."+this._dayOverClass+" a"),c=t.datepicker._get(n,"onUpdateDatepicker");l.length>0&&o.apply(l.get(0)),n.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&n.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",s*a+"em"),n.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),n.dpDiv[(this._get(n,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),n===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),n.yearshtml&&(i=n.yearshtml,setTimeout((function(){i===n.yearshtml&&n.yearshtml&&n.dpDiv.find("select.ui-datepicker-year").first().replaceWith(n.yearshtml),i=n.yearshtml=null}),0)),c&&c.apply(n.input?n.input[0]:null,[n])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")},_checkOffset:function(e,n,i){var r=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(i?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?r-a:0,n.left-=i&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=i&&n.top===e.input.offset().top+s?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+r>l&&l>r?Math.abs(n.left+r-l):0),n.top-=Math.min(n.top,n.top+o>c&&c>o?Math.abs(o+s):0),n},_findPos:function(e){for(var n,i=this._getInst(e),r=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return[(n=t(e).offset()).left,n.top]},_hideDatepicker:function(e){var n,i,r,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(a,"showAnim"),i=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&&t.effects.effect[n]?a.dpDiv.hide(n,t.datepicker._get(a,"showOptions"),i,r):a.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,r),n||r(),this._datepickerShowing=!1,(o=this._get(a,"onClose"))&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),i=t.datepicker._getInst(n[0]);(n[0].id===t.datepicker._mainDivId||0!==n.parents("#"+t.datepicker._mainDivId).length||n.hasClass(t.datepicker.markerClassName)||n.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!n.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===i)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,i){var r=t(e),o=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(o,n,i),this._updateDatepicker(o))},_gotoToday:function(e){var n,i=t(e),r=this._getInst(i[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(n=new Date,r.selectedDay=n.getDate(),r.drawMonth=r.selectedMonth=n.getMonth(),r.drawYear=r.selectedYear=n.getFullYear()),this._notifyChange(r),this._adjustDate(i)},_selectMonthYear:function(e,n,i){var r=t(e),o=this._getInst(r[0]);o["selected"+("M"===i?"Month":"Year")]=o["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(r)},_selectDay:function(e,n,i,r){var o,a=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((o=this._getInst(a[0])).selectedDay=o.currentDay=parseInt(t("a",r).attr("data-date")),o.selectedMonth=o.currentMonth=n,o.selectedYear=o.currentYear=i,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var i,r=t(e),o=this._getInst(r[0]);n=null!=n?n:this._formatDate(o),o.input&&o.input.val(n),this._updateAlternate(o),(i=this._get(o,"onSelect"))?i.apply(o.input?o.input[0]:null,[n,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var n,i,r,o=this._get(e,"altField");o&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),r=this.formatDate(n,i,this._getFormatConfig(e)),t(document).find(o).val(r))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,n=new Date(t.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),e=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((e-n)/864e5)/7)+1},parseDate:function(e,n,i){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var r,o,a,s,l=0,c=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,h=(i?i.dayNames:null)||this._defaults.dayNames,f=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,p=(i?i.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,k=!1,y=function(t){var n=r+1<e.length&&e.charAt(r+1)===t;return n&&r++,n},w=function(t){var e=y(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,r=new RegExp("^\\d{"+("y"===t?i:1)+","+i+"}"),o=n.substring(l).match(r);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},_=function(e,i,r){var o=-1,a=t.map(y(e)?r:i,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(a,(function(t,e){var i=e[1];if(n.substr(l,i.length).toLowerCase()===i.toLowerCase())return o=e[0],l+=i.length,!1})),-1!==o)return o+1;throw"Unknown name at position "+l},A=function(){if(n.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<e.length;r++)if(k)"'"!==e.charAt(r)||y("'")?A():k=!1;else switch(e.charAt(r)){case"d":v=w("d");break;case"D":_("D",d,h);break;case"o":b=w("o");break;case"m":m=w("m");break;case"M":m=_("M",f,p);break;case"y":g=w("y");break;case"@":g=(s=new Date(w("@"))).getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"!":g=(s=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"'":y("'")?A():k=!0;break;default:A()}if(l<n.length&&(a=n.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),b>-1)for(m=1,v=b;;){if(v<=(o=this._getDaysInMonth(g,m-1)))break;m++,v-=o}if((s=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||s.getMonth()+1!==m||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,n){if(!e)return"";var i,r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,a=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=function(e){var n=i+1<t.length&&t.charAt(i+1)===e;return n&&i++,n},c=function(t,e,n){var i=""+e;if(l(t))for(;i.length<n;)i="0"+i;return i},u=function(t,e,n,i){return l(t)?i[e]:n[e]},d="",h=!1;if(e)for(i=0;i<t.length;i++)if(h)"'"!==t.charAt(i)||l("'")?d+=t.charAt(i):h=!1;else switch(t.charAt(i)){case"d":d+=c("d",e.getDate(),2);break;case"D":d+=u("D",e.getDay(),r,o);break;case"o":d+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",e.getMonth()+1,2);break;case"M":d+=u("M",e.getMonth(),a,s);break;case"y":d+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=t.charAt(i)}return d},_possibleChars:function(t){var e,n="",i=!1,r=function(n){var i=e+1<t.length&&t.charAt(e+1)===n;return i&&e++,i};for(e=0;e<t.length;e++)if(i)"'"!==t.charAt(e)||r("'")?n+=t.charAt(e):i=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":r("'")?n+="'":i=!0;break;default:n+=t.charAt(e)}return n},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),o=r,a=this._getFormatConfig(t);try{o=this.parseDate(n,i,a)||r}catch(t){i=e?"":i}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=i?o.getDate():0,t.currentMonth=i?o.getMonth():0,t.currentYear=i?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,n,i){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(n){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),n,t.datepicker._getFormatConfig(e))}catch(t){}for(var i=(n.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,r=i.getFullYear(),o=i.getMonth(),a=i.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(n);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o));break;case"y":case"Y":r+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o))}l=s.exec(n)}return new Date(r,o,a)},a=null==n||""===n?i:"string"==typeof n?o(n):"number"==typeof n?isNaN(n)?i:r(n):new Date(n.getTime());return(a=a&&"Invalid Date"===a.toString()?i:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var i=!e,r=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),r===t.selectedMonth&&o===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(i,-n,"M")},next:function(){t.datepicker._adjustDate(i,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(i)},selectDay:function(){return t.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(i,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,b,k,y,w,_,A,C,x,D,E,S,T,I,M,O,P,N,B,L,j,R,z,F,H=new Date,V=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),U=this._get(e,"isRTL"),W=this._get(e,"showButtonPanel"),q=this._get(e,"hideIfNoPrevNext"),$=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),G=this._get(e,"showCurrentAtPos"),K=this._get(e,"stepMonths"),Q=1!==Y[0]||1!==Y[1],Z=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(e,"min"),X=this._getMinMaxDate(e,"max"),tt=e.drawMonth-G,et=e.drawYear;if(tt<0&&(tt+=12,et--),X)for(n=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-Y[0]*Y[1]+1,X.getDate())),n=J&&n<J?J:n;this._daylightSavingAdjust(new Date(et,tt,1))>n;)--tt<0&&(tt=11,et--);for(e.drawMonth=tt,e.drawYear=et,i=this._get(e,"prevText"),i=$?this.formatDate(i,this._daylightSavingAdjust(new Date(et,tt-K,1)),this._getFormatConfig(e)):i,r=this._canAdjustMonth(e,-1,et,tt)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:i}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(i))[0].outerHTML:q?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:i}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(i))[0].outerHTML,o=this._get(e,"nextText"),o=$?this.formatDate(o,this._daylightSavingAdjust(new Date(et,tt+K,1)),this._getFormatConfig(e)):o,a=this._canAdjustMonth(e,1,et,tt)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:o}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(o))[0].outerHTML:q?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:o}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(o))[0].outerHTML,s=this._get(e,"currentText"),l=this._get(e,"gotoCurrent")&&e.currentDay?Z:V,s=$?this.formatDate(s,l,this._getFormatConfig(e)):s,c="",e.inline||(c=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),u="",W&&(u=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(U?c:"").append(this._isInRange(e,l)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(s):"").append(U?"":c)[0].outerHTML),d=parseInt(this._get(e,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(e,"showWeek"),f=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),g=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),b=this._get(e,"showOtherMonths"),k=this._get(e,"selectOtherMonths"),y=this._getDefaultDate(e),w="",A=0;A<Y[0];A++){for(C="",this.maxRows=4,x=0;x<Y[1];x++){if(D=this._daylightSavingAdjust(new Date(et,tt,e.selectedDay)),E=" ui-corner-all",S="",Q){if(S+="<div class='ui-datepicker-group",Y[1]>1)switch(x){case 0:S+=" ui-datepicker-group-first",E=" ui-corner-"+(U?"right":"left");break;case Y[1]-1:S+=" ui-datepicker-group-last",E=" ui-corner-"+(U?"left":"right");break;default:S+=" ui-datepicker-group-middle",E=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+E+"'>"+(/all|left/.test(E)&&0===A?U?a:r:"")+(/all|right/.test(E)&&0===A?U?r:a:"")+this._generateMonthYearHeader(e,tt,et,J,X,A>0||x>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",T=h?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",_=0;_<7;_++)T+="<th scope='col'"+((_+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+f[I=(_+d)%7]+"'>"+p[I]+"</span></th>";for(S+=T+"</tr></thead><tbody>",M=this._getDaysInMonth(et,tt),et===e.selectedYear&&tt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,M)),O=(this._getFirstDayOfMonth(et,tt)-d+7)%7,P=Math.ceil((O+M)/7),N=Q&&this.maxRows>P?this.maxRows:P,this.maxRows=N,B=this._daylightSavingAdjust(new Date(et,tt,1-O)),L=0;L<N;L++){for(S+="<tr>",j=h?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(B)+"</td>":"",_=0;_<7;_++)R=v?v.apply(e.input?e.input[0]:null,[B]):[!0,""],F=(z=B.getMonth()!==tt)&&!k||!R[0]||J&&B<J||X&&B>X,j+="<td class='"+((_+d+6)%7>=5?" ui-datepicker-week-end":"")+(z?" ui-datepicker-other-month":"")+(B.getTime()===D.getTime()&&tt===e.selectedMonth&&e._keyEvent||y.getTime()===B.getTime()&&y.getTime()===D.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(z&&!b?"":" "+R[1]+(B.getTime()===Z.getTime()?" "+this._currentClass:"")+(B.getTime()===V.getTime()?" ui-datepicker-today":""))+"'"+(z&&!b||!R[2]?"":" title='"+R[2].replace(/'/g,"&#39;")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+B.getMonth()+"' data-year='"+B.getFullYear()+"'")+">"+(z&&!b?"&#xa0;":F?"<span class='ui-state-default'>"+B.getDate()+"</span>":"<a class='ui-state-default"+(B.getTime()===V.getTime()?" ui-state-highlight":"")+(B.getTime()===Z.getTime()?" ui-state-active":"")+(z?" ui-priority-secondary":"")+"' href='#' aria-current='"+(B.getTime()===Z.getTime()?"true":"false")+"' data-date='"+B.getDate()+"'>"+B.getDate()+"</a>")+"</td>",B.setDate(B.getDate()+1),B=this._daylightSavingAdjust(B);S+=j+"</tr>"}++tt>11&&(tt=0,et++),C+=S+="</tbody></table>"+(Q?"</div>"+(Y[0]>0&&x===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}w+=C}return w+=u,e._keyEvent=!1,w},_generateMonthYearHeader:function(t,e,n,i,r,o,a,s){var l,c,u,d,h,f,p,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),k=this._get(t,"selectMonthLabel"),y=this._get(t,"selectYearLabel"),w="<div class='ui-datepicker-title'>",_="";if(o||!m)_+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=i&&i.getFullYear()===n,c=r&&r.getFullYear()===n,_+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=i.getMonth())&&(!c||u<=r.getMonth())&&(_+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+s[u]+"</option>");_+="</select>"}if(b||(w+=_+(!o&&m&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!v)w+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),f=function(t){var e=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},p=f(d[0]),g=Math.max(p,f(d[1]||"")),p=i?Math.max(p,i.getFullYear()):p,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+y+"' data-handler='selectYear' data-event='change'>";p<=g;p++)t.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",w+=t.yearshtml,t.yearshtml=null}return w+=this._get(t,"yearSuffix"),b&&(w+=(!o&&m&&v?"":"&#xa0;")+_),w+="</div>"},_adjustInstDate:function(t,e,n){var i=t.selectedYear+("Y"===n?e:0),r=t.selectedMonth+("M"===n?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(i,r))+("D"===n?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,r,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),i=this._getMinMaxDate(t,"max"),r=n&&e<n?n:e;return i&&r>i?i:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var r=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(n,i+(e<0?e:r[0]*r[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var n,i,r=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,s=null,l=this._get(t,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),a=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(a+=i),n[1].match(/[+\-].*/)&&(s+=i)),(!r||e.getTime()>=r.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.14.1",t.datepicker},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},71193:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(58481),n(41758),n(23662),n(68604),n(61255),n(41897),n(4224),n(67144),n(15304),n(56883),n(69139)],i=function(t){t.widget("ui.dialog",{version:"1.14.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;n<0&&t(this).css("top",e.top-n)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var n=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,(function(){n._trigger("close",e)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,n){var i=!1,r=this.uiDialog.siblings(".ui-front:visible").map((function(){return+t(this).css("z-index")})).get(),o=Math.max.apply(null,r);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),i=!0),i&&!n&&this._trigger("focus",e),i},open:function(){var e=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){e._focusTabbable(),e._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var e=this.document[0].activeElement;this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),i=n.first(),r=n.last();e.target!==r[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==i[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){r.trigger("focus")})),e.preventDefault()):(this._delay((function(){i.trigger("focus")})),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}});var n=Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&this.options.uiDialogTitleHeadingLevel>0&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span";e=t("<"+n+">").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,n=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(n)||Array.isArray(n)&&!n.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(n,(function(n,i){var r,o;i="function"==typeof i?{click:i,text:n}:i,i=t.extend({type:"button"},i),r=i.click,o={icon:i.icon,iconPosition:i.iconPosition,showLabel:i.showLabel,icons:i.icons,text:i.text},delete i.click,delete i.icon,delete i.iconPosition,delete i.showLabel,delete i.icons,"boolean"==typeof i.text&&delete i.text,t("<button></button>",i).button(o).appendTo(e.uiButtonSet).on("click",(function(){r.apply(e.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var e=this,n=this.options;function i(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,r){e._addClass(t(this),"ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",n,i(r))},drag:function(t,n){e._trigger("drag",t,i(n))},stop:function(r,o){var a=o.offset.left-e.document.scrollLeft(),s=o.offset.top-e.document.scrollTop();n.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(s>=0?"+":"")+s,of:e.window},e._removeClass(t(this),"ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",r,i(o))}})},_makeResizable:function(){var e=this,n=this.options,i=n.resizable,r=this.uiDialog.css("position"),o="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:o,start:function(n,i){e._addClass(t(this),"ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",n,a(i))},resize:function(t,n){e._trigger("resize",t,a(n))},stop:function(i,r){var o=e.uiDialog.offset(),s=o.left-e.document.scrollLeft(),l=o.top-e.document.scrollTop();n.height=e.uiDialog.height(),n.width=e.uiDialog.width(),n.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(l>=0?"+":"")+l,of:e.window},e._removeClass(t(this),"ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",i,a(r))}}).css("position",r)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),n=t.inArray(this,e);-1!==n&&e.splice(n,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var n=this,i=!1,r={};t.each(e,(function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(i=!0),t in n.resizableRelatedOptions&&(r[t]=e)})),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(e,n){var i,r,o=this.uiDialog;"disabled"!==e&&(this._super(e,n),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((i=o.is(":data(ui-draggable)"))&&!n&&o.draggable("destroy"),!i&&n&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((r=o.is(":data(ui-resizable)"))&&!n&&o.resizable("destroy"),r&&"string"==typeof n&&o.resizable("option","handles",n),r||!1===n||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===e&&o.attr("aria-modal",n?"true":null))},_size:function(){var t,e,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),e=Math.max(0,i.minHeight-t),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-t):"none","auto"===i.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay((function(){e=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){if(!e){var n=this._trackingInstances()[0];n._allowInteraction(t)||(t.preventDefault(),n._focusTabbable())}}.bind(this)),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!0===t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}});return t.ui.dialog},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},41758:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(23662),n(69983),n(12336),n(82299),n(56883),n(69139)],void 0===(o="function"==typeof(i=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=this.document[0].activeElement;t(e.target).closest(n).length||t(n).trigger("blur")},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==n._trigger("stop",e)&&n._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var n=this.options,i="function"==typeof n.helper,r=i?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options,o=this.document[0];this.relativeContainer=null,r.containment?"window"!==r.containment?"document"!==r.containment?r.containment.constructor!==Array?("parent"===r.containment&&(r.containment=this.helper[0].parentNode),(i=(n=t(r.containment))[0])&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=r.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,i,r,o,a=this.options,s=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),a.grid&&(r=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,c=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-a.grid[1]:r+a.grid[1]:r,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[n,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,i){var r=t.extend({},n,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each((function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,r))}))},stop:function(e,n,i){var r=t.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,(function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))}))},drag:function(e,n,i){t.each(i.sortables,(function(){var r=!1,o=this;o.positionAbs=i.positionAbs,o.helperProportions=i.helperProportions,o.offset.click=i.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,t.each(i.sortables,(function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(r=!1),r}))),r?(o.isOver||(o.isOver=1,i._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=i.offset.click.top,o.offset.click.left=i.offset.click.left,o.offset.parent.left-=i.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=i.offset.parent.top-o.offset.parent.top,i._trigger("toSortable",e),i.dropped=o.element,t.each(i.sortables,(function(){this.refreshPositions()})),i.currentItem=i.element,o.fromOutside=i),o.currentItem&&(o._mouseDrag(e),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(e),n.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,i){var r=t("body"),o=i.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(e,n,i){var r=i.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(e,n,i){var r=i.options;r._opacity&&t(n.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,i){var r=i.options,o=!1,a=i.scrollParentNotHidden[0],s=i.document[0];a!==s&&"HTML"!==a.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+a.offsetHeight-e.pageY<r.scrollSensitivity?a.scrollTop=o=a.scrollTop+r.scrollSpeed:e.pageY-i.overflowOffset.top<r.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+a.offsetWidth-e.pageX<r.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+r.scrollSpeed:e.pageX-i.overflowOffset.left<r.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(s).scrollTop()<r.scrollSensitivity?o=t(s).scrollTop(t(s).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<r.scrollSensitivity&&(o=t(s).scrollTop(t(s).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(s).scrollLeft()<r.scrollSensitivity?o=t(s).scrollLeft(t(s).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<r.scrollSensitivity&&(o=t(s).scrollLeft(t(s).scrollLeft()+r.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,i){var r=i.options;i.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each((function(){var e=t(this),n=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})}))},drag:function(e,n,i){var r,o,a,s,l,c,u,d,h,f,p=i.options,g=p.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,b=n.offset.top,k=b+i.helperProportions.height;for(h=i.snapElements.length-1;h>=0;h--)c=(l=i.snapElements[h].left-i.margins.left)+i.snapElements[h].width,d=(u=i.snapElements[h].top-i.margins.top)+i.snapElements[h].height,v<l-g||m>c+g||k<u-g||b>d+g||!t.contains(i.snapElements[h].item.ownerDocument,i.snapElements[h].item)?(i.snapElements[h].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=!1):("inner"!==p.snapMode&&(r=Math.abs(u-k)<=g,o=Math.abs(d-b)<=g,a=Math.abs(l-v)<=g,s=Math.abs(c-m)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),f=r||o||a||s,"outer"!==p.snapMode&&(r=Math.abs(u-b)<=g,o=Math.abs(d-k)<=g,a=Math.abs(l-m)<=g,s=Math.abs(c-v)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[h].snapping&&(r||o||a||s||f)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=r||o||a||s||f)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,i){var r,o=i.options,a=t.makeArray(t(o.stack)).sort((function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)}));a.length&&(r=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each((function(e){t(this).css("zIndex",r+e)})),this.css("zIndex",r+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(e,n,i){var r=i.options;r._zIndex&&t(n.helper).css("zIndex",r._zIndex)}}),t.ui.draggable})?i.apply(e,r):i)||(t.exports=o)}()},79914:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(41758),n(23662),n(56883),n(69139)],i=function(t){t.widget("ui.droppable",{version:"1.14.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,n=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof n?n:function(t){return t.is(n)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,n){if("accept"===e)this.accept="function"==typeof n?n:function(t){return t.is(n)};else if("scope"===e){var i=t.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var i=n||t.ui.ddmanager.current,r=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var n=t(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&t.ui.intersect(i,t.extend(n,{offset:n.element.offset()}),n.options.tolerance,e))return r=!0,!1})),!r&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),t.ui.intersect=function(){function t(t,e,n){return t>=e&&t<e+n}return function(e,n,i,r){if(!n.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,s=o+e.helperProportions.width,l=a+e.helperProportions.height,c=n.offset.left,u=n.offset.top,d=c+n.proportions().width,h=u+n.proportions().height;switch(i){case"fit":return c<=o&&s<=d&&u<=a&&l<=h;case"intersect":return c<o+e.helperProportions.width/2&&s-e.helperProportions.width/2<d&&u<a+e.helperProportions.height/2&&l-e.helperProportions.height/2<h;case"pointer":return t(r.pageY,u,n.proportions().height)&&t(r.pageX,c,n.proportions().width);case"touch":return(a>=u&&a<=h||l>=u&&l<=h||a<u&&l>h)&&(o>=c&&o<=d||s>=c&&s<=d||o<c&&s>d);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,n){var i,r,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=n?n.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<o.length;i++)if(!(o[i].options.disabled||e&&!o[i].accept.call(o[i].element[0],e.currentItem||e.element))){for(r=0;r<s.length;r++)if(s[r]===o[i].element[0]){o[i].proportions().height=0;continue t}o[i].visible="none"!==o[i].element.css("display"),o[i].visible&&("mousedown"===a&&o[i]._activate.call(o[i],n),o[i].offset=o[i].element.offset(),o[i].proportions({width:o[i].element[0].offsetWidth,height:o[i].element[0].offsetHeight}))}},drop:function(e,n){var i=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))})),i},dragStart:function(e,n){e.element.parentsUntil("body").on("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}))},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,r,o,a=t.ui.intersect(e,this,this.options.tolerance,n),s=!a&&this.isover?"isout":a&&!this.isover?"isover":null;s&&(this.options.greedy&&(r=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===r}))).length&&((i=t(o[0]).droppable("instance")).greedyChild="isover"===s)),i&&"isover"===s&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,n),i&&"isout"===s&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}}))},dragStop:function(e,n){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},!0===t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});return t.ui.droppable},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},28330:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(41897),n(4224),n(15304),n(56883),n(69139)],void 0===(o="function"==typeof(i=function(t){return t.widget("ui.menu",{version:"1.14.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(e){var n=t(e.target),i=t(this.document[0].activeElement);!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this._menuItems().first();e||this.focus(t,n)},blur:function(e){this._delay((function(){!t.contains(this.element[0],this.document[0].activeElement)&&this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(e){if(!this.previousFilter&&(e.clientX!==this.lastMousePosition.x||e.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:e.clientX,y:e.clientY};var n=t(e.target).closest(".ui-menu-item"),i=t(e.currentTarget);n[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i)))}},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each((function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var n,i,r,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,i=this.previousFilter||"",o=!1,r=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),r===i?o=!0:r=i+r,n=this._filterMenuItems(r),(n=o&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(r=String.fromCharCode(e.keyCode),n=this._filterMenuItems(r)),n.length?(this.focus(e,n),this.previousFilter=r,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n,i,r,o=this,a=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),n=e.prev(),i=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(i,"ui-menu-icon","ui-icon "+a),n.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",n.attr("id"))})),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(e=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")})),r=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(r,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n,i,r;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),r=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,i,r,o,a,s;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-n-i,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.outerHeight(),r<0?this.activeMenu.scrollTop(o+r):r+s>a&&this.activeMenu.scrollTop(o+r-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay((function(){var i=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i}),n?0:this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,n){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first()),i&&i.length&&this.active||(i=this._menuItems(this.activeMenu)[e]()),this.focus(n,i)},nextPage:function(e){var n,i,r;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(n=t(this)).offset().top-i-r<0})),this.focus(e,n)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var n,i,r;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(n=t(this)).offset().top-i+r>0})),this.focus(e,n)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)},_filterMenuItems:function(e){var n=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return i.test(String.prototype.trim.call(t(this).children(".ui-menu-item-wrapper").text()))}))}})})?i.apply(e,r):i)||(t.exports=o)}()},23662:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(56883),n(69139)],void 0===(o="function"==typeof(i=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,r=1===n.which,o="string"==typeof this.options.cancel&&t(n.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(n))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),!0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved&&!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t);return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?i.apply(e,r):i)||(t.exports=o)}()},68604:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(23662),n(724),n(12336),n(56883),n(69139)],i=function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,n){var i,r=!1,o=t(e).css("overflow");if("hidden"===o)return!1;if("scroll"===o)return!0;if(e[i=n&&"left"===n?"scrollLeft":"scrollTop"]>0)return!0;try{e[i]=1,r=e[i]>0,e[i]=0}catch(t){}return r},_create:function(){var e,n=this.options,i=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),n.autoHide&&t(this.element).on("mouseenter",(function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())})).on("mouseleave",(function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,n=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,n,i,r,o,a=this.options,s=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)r="ui-resizable-"+(e=String.prototype.trim.call(i[n])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var n,i,r,o;for(n in e=e||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=t(this.handles[n]),this._on(this.handles[n],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=t(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),e.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")})),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var n,i,r=!1;for(n in this.handles)((i=t(this.handles[n])[0])===e.target||t.contains(i,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var n,i,r,o,a=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),a.containment&&(n+=t(a.containment).scrollLeft()||0,i+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this._helper||(o=this._calculateAdjustedElementDimensions(s)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width,height:o.height},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:o.width,height:o.height},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,i,r=this.originalMousePosition,o=this.axis,a=e.pageX-r.left||0,s=e.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[e,a,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var n,i,r,o,a,s,l,c=this.options,u=this;return this._helper&&(r=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:u.sizeDiff.height,o=i?0:u.sizeDiff.width,a={width:u.helper.width()-o,height:u.helper.height()-r},s=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,l=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(t.extend(a,{top:l,left:s})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,n,i,r,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,i=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),i>o.minHeight&&(o.minHeight=i),n<o.maxWidth&&(o.maxWidth=n),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&c&&(t.left=s-e.minWidth),i&&c&&(t.left=s-e.maxWidth),a&&u&&(t.top=l-e.minHeight),r&&u&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(i[e])||0,n[e]+=parseFloat(r[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_calculateAdjustedElementDimensions:function(t){var e,n,i,r=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(r)&&!this._hasScroll(r,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(r.style.width),n=parseFloat(r.style.height),i=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,i,"width"):e,{height:n=isNaN(n)?this._getElementTheoreticalSize(t,i,"height"):n,width:e})},_getElementTheoreticalSize:function(t,e,n){return Math.max(0,Math.ceil(t.get(0)["offset"+n[0].toUpperCase()+n.slice(1)]-e[n]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},sw:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,i]))},ne:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},nw:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,i]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!==e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),i=n.options,r=n._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),a=o&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,s=o?0:n.sizeDiff.width,l={width:n.size.width-s,height:n.size.height-a},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,u=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(l,u&&c?{top:u,left:c}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&t(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,i,r,o,a,s,l=t(this).resizable("instance"),c=l.options,u=l.element,d=c.containment,h=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;h&&(l.containerElement=t(h),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(h),n=[],t(["Top","Right","Left","Bottom"]).each((function(t,i){n[t]=l._num(e.css("padding"+i))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},i=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(h,"left")?h.scrollWidth:o,s=l._hasScroll(h)?h.scrollHeight:r,l.parentData={element:h,left:i.left,top:i.top,width:a,height:s}))},resize:function(e){var n,i,r,o,a=t(this).resizable("instance"),s=a.options,l=a.containerOffset,c=a.position,u=a._aspectRatio||e.shiftKey,d={top:0,left:0},h=a.containerElement,f=!0;h[0]!==document&&/static/.test(h.css("position"))&&(d=l),c.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-d.left),u&&(a.size.height=a.size.width/a.aspectRatio,f=!1),a.position.left=s.helper?l.left:0),c.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),u&&(a.size.width=a.size.height*a.aspectRatio,f=!1),a.position.top=a._helper?l.top:0),r=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),r&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),n=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-l.left)),i=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-l.top)),n+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-n,u&&(a.size.height=a.size.width/a.aspectRatio,f=!1)),i+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-i,u&&(a.size.width=a.size.height*a.aspectRatio,f=!1)),f||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,i=e.containerOffset,r=e.containerPosition,o=e.containerElement,a=t(e.helper),s=a.offset(),l=a.outerWidth()-e.sizeDiff.width,c=a.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(o.css("position"))&&t(this).css({left:s.left-r.left-i.left,width:l,height:c}),e._helper&&!n.animate&&/static/.test(o.css("position"))&&t(this).css({left:s.left-r.left-i.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),n=e.options;t(n.alsoResize).each((function(){var n=t(this),i=e._calculateAdjustedElementDimensions(n);n.data("ui-resizable-alsoresize",{width:i.width,height:i.height,left:parseFloat(n.css("left")),top:parseFloat(n.css("top"))})}))},resize:function(e,n){var i=t(this).resizable("instance"),r=i.options,o=i.originalSize,a=i.originalPosition,s={height:i.size.height-o.height||0,width:i.size.width-o.width||0,top:i.position.top-a.top||0,left:i.position.left-a.left||0};t(r.alsoResize).each((function(){var e=t(this),i=t(this).data("ui-resizable-alsoresize"),r={},o=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var n=(i[e]||0)+(s[e]||0);n&&n>=0&&(r[e]=n||null)})),e.css(r)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),i=n.options,r=n.size,o=n.originalSize,a=n.originalPosition,s=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,c=l[0]||1,u=l[1]||1,d=Math.round((r.width-o.width)/c)*c,h=Math.round((r.height-o.height)/u)*u,f=o.width+d,p=o.height+h,g=i.maxWidth&&i.maxWidth<f,m=i.maxHeight&&i.maxHeight<p,v=i.minWidth&&i.minWidth>f,b=i.minHeight&&i.minHeight>p;i.grid=l,v&&(f+=c),b&&(p+=u),g&&(f-=c),m&&(p-=u),/^(se|s|e)$/.test(s)?(n.size.width=f,n.size.height=p):/^(ne)$/.test(s)?(n.size.width=f,n.size.height=p,n.position.top=a.top-h):/^(sw)$/.test(s)?(n.size.width=f,n.size.height=p,n.position.left=a.left-d):((p-u<=0||f-c<=0)&&(e=n._getPaddingPlusBorderDimensions(this)),p-u>0?(n.size.height=p,n.position.top=a.top-h):(p=u-e.height,n.size.height=p,n.position.top=a.top+o.height-p),f-c>0?(n.size.width=f,n.position.left=a.left-d):(f=c-e.width,n.size.width=f,n.position.left=a.left+o.width-f))}}),t.ui.resizable},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},65285:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(23662),n(69983),n(82299),n(56883),n(69139)],i=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var i=null,r=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,o.widgetName+"-item")===o)return i=t(this),!1})),t.data(e.target,o.widgetName+"-item")===o&&(i=t(e.target)),!!i&&(!(this.options.handle&&!n&&(t(this.options.handle,i).find("*").addBack().each((function(){this===e.target&&(r=!0)})),!r))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,n,i){var r,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this._storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,n=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),n},_mouseDrag:function(e){var n,i,r,o,a=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},n=this.items.length-1;n>=0;n--)if(r=(i=this.items[n]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,r=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){i._clear(e)}))}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each((function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))})),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each((function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")})),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,o=t.left,a=o+t.width,s=t.top,l=s+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||i+c>s&&i+c<l,h="y"===this.options.axis||e+u>o&&e+u<a,f=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?f:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<a&&s<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,n,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!i||!r)&&(e=this.dragDirection.vertical,n=this.dragDirection.horizontal,this.floating?"right"===n||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&n||"left"===r&&!n:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var n,i,r,o,a=[],s=[],l=this._connectWith();if(l&&e)for(n=l.length-1;n>=0;n--)for(i=(r=t(l[n],this.document[0])).length-1;i>=0;i--)(o=t.data(r[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&s.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){a.push(this)}for(s.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=s.length-1;n>=0;n--)s[n][0].each(c);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var n=0;n<e.length;n++)if(e[n]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var n,i,r,o,a,s,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(i=(r=t(h[n],this.document[0])).length-1;i>=0;i--)(o=t.data(r[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(d.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(n=d.length-1;n>=0;n--)for(a=d[n][1],i=0,c=(s=d[n][0]).length;i<c;i++)(l=t(s[i])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var n,i,r,o;for(n=this.items.length-1;n>=0;n--)i=this.items[n],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=r.outerWidth(),i.height=r.outerHeight()),o=r.offset(),i.left=o.left,i.top=o.top)},refreshPositions:function(t){var e,n;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)n=this.containers[e].element.offset(),this.containers[e].containerCache.left=n.left,this.containers[e].containerCache.top=n.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var n,i,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,i=e.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=t("<"+i+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",n||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===i?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===i?e._createTrPlaceholder(e.currentItem,r):"img"===i&&r.attr("src",e.currentItem.attr("src")),n||r.css("visibility","hidden"),r},update:function(t,o){n&&!r.forcePlaceholderSize||(o.height()&&(!r.forcePlaceholderSize||"tbody"!==i&&"tr"!==i)||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,n){var i=this;e.children().each((function(){t("<td>&#160;</td>",i.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)}))},_contactContainers:function(e){var n,i,r,o,a,s,l,c,u,d,h=null,f=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&t.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],f=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(r=1e4,o=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",s=u?"width":"height",d=u?"pageX":"pageY",i=this.items.length-1;i>=0;i--)t.contains(this.containers[f].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[a],c=!1,e[d]-l>this.items[i][s]/2&&(c=!0),Math.abs(e[d]-l)<r&&(r=Math.abs(e[d]-l),o=this.items[i],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[f].element,!0),this._trigger("change",e,this._uiHash()),this.containers[f]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(e){var n=this.options,i="function"==typeof n.helper?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||this.appendTo[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!n.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!n.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],n=t(r.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*i}},_generatePosition:function(e){var n,i,r=this.options,o=e.pageX,a=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),r.grid&&(n=this.originalPageY+Math.round((a-this.originalPageY)/r.grid[1])*r.grid[1],a=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-r.grid[1]:n+r.grid[1]:n,i=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-r.grid[0]:i+r.grid[0]:i)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay((function(){r===this.counter&&this.refreshPositions(!i)}))},_clear:function(t,e){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(t,e,n){return function(i){n._trigger(t,i,e._uiHash(e))}}for(this.fromOutside&&!e&&i.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||i.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(i.push((function(t){this._trigger("remove",t,this._uiHash())})),i.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||i.push(r("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(r("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<i.length;n++)i[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}})},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},25670:(t,e,n)=>{var i,r,o;!function(){"use strict";r=[n(74692),n(41897),n(4224),n(15304),n(56883),n(69139)],i=function(t){t.widget("ui.tooltip",{version:"1.14.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title");return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var n=(t.attr("aria-describedby")||"").split(/\s+/);n.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(n.join(" ")))},_removeDescribedBy:function(e){var n=e.data("ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(n,i);-1!==r&&i.splice(r,1),e.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,n){var i=this;this._super(e,n),"content"===e&&t.each(this.tooltips,(function(t,e){i._updateContent(e.element)}))},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,(function(n,i){var r=t.Event("blur");r.target=r.currentTarget=i.element[0],e.close(r,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})),this.disabledTitles=t([])},open:function(e){var n=this,i=t(e?e.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&i.parents().each((function(){var e,i=t(this);i.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,n.close(e,!0)),i.attr("title")&&(i.uniqueId(),n.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))})),this._registerCloseHandlers(e,i),this._updateContent(i,e))},_updateContent:function(t,e){var n,i=this.options.content,r=this,o=e?e.type:null;if("string"==typeof i||i.nodeType||i.jquery)return this._open(e,t,i);(n=i.call(t[0],(function(n){t.data("ui-tooltip-open")&&(e&&(e.type=o),r._open(e,t,n))})))&&this._open(e,t,n)},_open:function(e,n,i){var r,o,a,s,l=t.extend({},this.options.position);function c(t){l.of=t,o.is(":hidden")||o.position(l)}i&&((r=this._find(n))?r.tooltip.find(".ui-tooltip-content").html(i):(n.is("[title]")&&(e&&"mouseover"===e.type?n.attr("title",""):n.removeAttr("title")),r=this._tooltip(n),o=r.tooltip,this._addDescribedBy(n,o.attr("id")),o.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(s=t("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),s.removeAttr("id").find("[id]").removeAttr("id"),s.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:c}),c(e)):o.position(t.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(a=this.delayedShow=setInterval((function(){o.is(":visible")&&(c(l.of),clearInterval(a))}),13)),this._trigger("open",e,{tooltip:o})))},_registerCloseHandlers:function(e,n){var i={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}}};n[0]!==this.element[0]&&(i.remove=function(){var t=this._find(n);t&&this._removeTooltip(t.tooltip)}),e&&"mouseover"!==e.type||(i.mouseleave="close"),e&&"focusin"!==e.type||(i.focusout="close"),this._on(!0,n,i)},close:function(e){var n,i=this,r=t(e?e.currentTarget:this.element),o=this._find(r);o?(n=o.tooltip,o.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&&!r.attr("title")&&r.attr("title",r.data("ui-tooltip-title")),this._removeDescribedBy(r),o.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,(function(){i._removeTooltip(t(this))})),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,n){t(n.element).attr("title",n.title),delete i.parents[e]})),o.closing=!0,this._trigger("close",e,{tooltip:n}),o.hiding||(o.closing=!1))):r.removeData("ui-tooltip-open")},_tooltip:function(e){var n=t("<div>").attr("role","tooltip"),i=t("<div>").appendTo(n),r=n.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(e)),this.tooltips[r]={element:e,tooltip:n}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,(function(n,i){var r=t.Event("blur"),o=i.element;r.target=r.currentTarget=o[0],e.close(r,!0),t("#"+n).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!0===t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});return t.ui.tooltip},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},74692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},b=function(t){return null!=t&&t===t.window},k=i.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var i,r,o=(n=n||k).createElement("script");if(o.text=t,e)for(i in y)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var A="3.7.1",C=/HTML$/i,x=function(t,e){return new x.fn.init(t,e)};function D(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!v(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}x.fn=x.prototype={jquery:A,constructor:x,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=x.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return x.each(this,t)},map:function(t){return this.pushStack(x.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},x.extend=x.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(c&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,a[e]=x.extend(c,o,i)):void 0!==i&&(a[e]=i));return a},x.extend({expando:"jQuery"+(A+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==h.call(t))&&(!(e=a(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&p.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(D(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=x.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(D(Object(t))?x.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!C.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(D(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=o[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var S=o.pop,T=o.sort,I=o.splice,M="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g");x.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var P=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}x.escapeSelector=function(t){return(t+"").replace(P,N)};var B=k,L=c;!function(){var t,e,n,r,a,l,c,d,h,p,g=L,v=x.expando,b=0,k=0,y=tt(),w=tt(),_=tt(),A=tt(),C=function(t,e){return t===e&&(a=!0),0},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+M+"*("+P+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+M+"*\\]",j=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",R=new RegExp(M+"+","g"),z=new RegExp("^"+M+"*,"+M+"*"),F=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),H=new RegExp(M+"|>"),V=new RegExp(j),U=new RegExp("^"+P+"$"),W={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),Q=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){lt()},J=ht((function(t){return!0===t.disabled&&E(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(B.childNodes),B.childNodes),o[B.childNodes.length].nodeType}catch(t){g={apply:function(t,e){L.apply(t,s.call(e))},call:function(t){L.apply(t,s.call(arguments,1))}}}function X(t,e,n,i){var r,o,a,s,c,u,f,p=e&&e.ownerDocument,b=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==b&&9!==b&&11!==b)return n;if(!i&&(lt(e),e=e||l,d)){if(11!==b&&(c=Y.exec(t)))if(r=c[1]){if(9===b){if(!(a=e.getElementById(r)))return n;if(a.id===r)return g.call(n,a),n}else if(p&&(a=p.getElementById(r))&&X.contains(e,a)&&a.id===r)return g.call(n,a),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(A[t+" "]||h&&h.test(t))){if(f=t,p=e,1===b&&(H.test(t)||F.test(t))){for((p=G.test(t)&&st(e.parentNode)||e)==e&&m.scope||((s=e.getAttribute("id"))?s=x.escapeSelector(s):e.setAttribute("id",s=v)),o=(u=ut(t)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+dt(u[o]);f=u.join(",")}try{return g.apply(n,p.querySelectorAll(f)),n}catch(e){A(t,!0)}finally{s===v&&e.removeAttribute("id")}}}return bt(t.replace(O,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return E(e,"input")&&e.type===t}}function rt(t){return function(e){return(E(e,"input")||E(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:B;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!x.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&B!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),m.getById=nt((function(t){return c.appendChild(t).id=x.expando,!l.getElementsByName||!l.getElementsByName(x.expando).length})),m.disconnectedMatch=nt((function(t){return p.call(t,"*")})),m.scope=nt((function(){return l.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(K,Q);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(K,Q);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},h=[],nt((function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||h.push("\\["+M+"*(?:value|"+D+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),C=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==B&&X.contains(B,t)?-1:e===l||e.ownerDocument==B&&X.contains(B,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},l):l}for(t in X.matches=function(t,e){return X(t,null,null,e)},X.matchesSelector=function(t,e){if(lt(t),d&&!A[e+" "]&&(!h||!h.test(e)))try{var n=p.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){A(e,!0)}return X(e,l,null,[t]).length>0},X.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),x.contains(t,e)},X.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!d):void 0;return void 0!==r?r:t.getAttribute(n)},X.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},x.uniqueSort=function(t){var e,n=[],i=0,o=0;if(a=!m.sortStable,r=!m.sortStable&&s.call(t,0),T.call(t,C),a){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)I.call(t,n[i],1)}return r=null,t},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(s.apply(this)))},e=x.expr={cacheLength:50,createPseudo:et,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(K,Q),t[3]=(t[3]||t[4]||t[5]||"").replace(K,Q),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||X.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&X.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&V.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(K,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return E(t,e)}},CLASS:function(t){var e=y[t+" "];return e||(e=new RegExp("(^|"+M+")"+t+"("+M+"|$)"))&&y(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=X.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,d,h,f,p=o!==a?"nextSibling":"previousSibling",g=e.parentNode,m=s&&e.nodeName.toLowerCase(),k=!l&&!s,y=!1;if(g){if(o){for(;p;){for(d=e;d=d[p];)if(s?E(d,m):1===d.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&k){for(y=(h=(c=(u=g[v]||(g[v]={}))[t]||[])[0]===b&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[p]||(y=h=0)||f.pop();)if(1===d.nodeType&&++y&&d===e){u[t]=[b,h,y];break}}else if(k&&(y=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===b&&c[1]),!1===y)for(;(d=++h&&d&&d[p]||(y=h=0)||f.pop())&&(!(s?E(d,m):1===d.nodeType)||!++y||(k&&((u=d[v]||(d[v]={}))[t]=[b,y]),d!==e)););return(y-=r)===i||y%i==0&&y/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||X.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,o=r(t,n),a=o.length;a--;)t[i=u.call(t,o[a])]=!(e[i]=o[a])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=vt(t.replace(O,"$1"));return i[v]?et((function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return X(t,e).length>0}})),contains:et((function(t){return t=t.replace(K,Q),function(e){return(e.textContent||x.text(e)).indexOf(t)>-1}})),lang:et((function(t){return U.test(t||"")||X.error("unsupported lang: "+t),t=t.replace(K,Q).toLowerCase(),function(e){var n;do{if(n=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return E(t,"input")&&!!t.checked||E(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return $.test(t.nodeName)},input:function(t){return q.test(t.nodeName)},button:function(t){return E(t,"input")&&"button"===t.type||E(t,"button")},text:function(t){var e;return E(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:at((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:at((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:at((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ct(){}function ut(t,n){var i,r,o,a,s,l,c,u=w[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=e.preFilter;s;){for(a in i&&!(r=z.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=F.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(O," ")}),s=s.slice(i.length)),e.filter)!(r=W[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?X.error(t):w(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=k++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var c,u,d=[b,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(u=e[v]||(e[v]={}),r&&E(e,r))e=e[i]||e;else{if((c=u[o])&&c[0]===b&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=t(e,n,l))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function gt(t,e,n,i,r,o){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,o)),et((function(o,a,s,l){var c,d,h,f,p=[],m=[],v=a.length,b=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)X(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),k=!t||!o&&e?b:pt(b,p,t,s,l);if(n?n(k,f=r||(o?t:v||i)?[]:a,s,l):f=k,i)for(c=pt(f,m),i(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[m[d]]=!(k[m[d]]=h));if(o){if(r||t){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(k[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(o,h):p[d])>-1&&(o[c]=!(a[c]=h))}}else f=pt(f===a?f.splice(v,f.length):f),r?r(null,a,f,l):g.apply(a,f)}))}function mt(t){for(var i,r,o,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],c=s?1:0,d=ht((function(t){return t===i}),l,!0),h=ht((function(t){return u.call(i,t)>-1}),l,!0),f=[function(t,e,r){var o=!s&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,o}];c<a;c++)if(r=e.relative[t[c].type])f=[ht(ft(f),r)];else{if((r=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(o=++c;o<a&&!e.relative[t[o].type];o++);return gt(c>1&&ft(f),c>1&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(O,"$1"),r,c<o&&mt(t.slice(c,o)),o<a&&mt(t=t.slice(o)),o<a&&dt(t))}f.push(r)}return ft(f)}function vt(t,i){var r,o=[],a=[],s=_[t+" "];if(!s){for(i||(i=ut(t)),r=i.length;r--;)(s=mt(i[r]))[v]?o.push(s):a.push(s);s=_(t,function(t,i){var r=i.length>0,o=t.length>0,a=function(a,s,c,u,h){var f,p,m,v=0,k="0",y=a&&[],w=[],_=n,A=a||o&&e.find.TAG("*",h),C=b+=null==_?1:Math.random()||.1,D=A.length;for(h&&(n=s==l||s||h);k!==D&&null!=(f=A[k]);k++){if(o&&f){for(p=0,s||f.ownerDocument==l||(lt(f),c=!d);m=t[p++];)if(m(f,s||l,c)){g.call(u,f);break}h&&(b=C)}r&&((f=!m&&f)&&v--,a&&y.push(f))}if(v+=k,r&&k!==v){for(p=0;m=i[p++];)m(y,w,s,c);if(a){if(v>0)for(;k--;)y[k]||w[k]||(w[k]=S.call(u));w=pt(w)}g.apply(u,w),h&&!a&&w.length>0&&v+i.length>1&&x.uniqueSort(u)}return h&&(b=C,n=_),y};return r?et(a):a}(a,o)),s.selector=t}return s}function bt(t,n,i,r){var o,a,s,l,c,u="function"==typeof t&&t,h=!r&&ut(t=u.selector||t);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(K,Q),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(o=W.needsContext.test(t)?0:a.length;o--&&(s=a[o],!e.relative[l=s.type]);)if((c=e.find[l])&&(r=c(s.matches[0].replace(K,Q),G.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(o,1),!(t=r.length&&dt(a)))return g.apply(i,r),i;break}}return(u||vt(t,h))(r,n,!d,i,!n||G.test(t)&&st(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(C).join("")===v,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),x.find=X,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,X.compile=vt,X.select=bt,X.setDocument=lt,X.tokenize=ut,X.escape=x.escapeSelector,X.getText=x.text,X.isXML=x.isXMLDoc,X.selectors=x.expr,X.support=x.support,X.uniqueSort=x.uniqueSort}();var j=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&x(t).is(n))break;i.push(t)}return i},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},z=x.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(t,e,n){return v(e)?x.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?x.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?x.grep(t,(function(t){return u.call(e,t)>-1!==n})):x.filter(e,t,n)}x.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?x.find.matchesSelector(i,t)?[i]:[]:x.find.matches(t,x.grep(e,(function(t){return 1===t.nodeType})))},x.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(x(t).filter((function(){for(e=0;e<i;e++)if(x.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)x.find(t,r[e],n);return i>1?x.uniqueSort(n):n},filter:function(t){return this.pushStack(H(this,t||[],!1))},not:function(t){return this.pushStack(H(this,t||[],!0))},is:function(t){return!!H(this,"string"==typeof t&&z.test(t)?x(t):t||[],!1).length}});var V,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||V,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),F.test(i[1])&&x.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=k.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(x):x.makeArray(t,this)}).prototype=x.fn,V=x(k);var W=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&x(t);if(!z.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(x(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,"parentNode")},parentsUntil:function(t,e,n){return j(t,"parentNode",n)},next:function(t){return $(t,"nextSibling")},prev:function(t){return $(t,"previousSibling")},nextAll:function(t){return j(t,"nextSibling")},prevAll:function(t){return j(t,"previousSibling")},nextUntil:function(t,e,n){return j(t,"nextSibling",n)},prevUntil:function(t,e,n){return j(t,"previousSibling",n)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(E(t,"template")&&(t=t.content||t),x.merge([],t.childNodes))}},(function(t,e){x.fn[t]=function(n,i){var r=x.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(q[t]||x.uniqueSort(r),W.test(t)&&r.reverse()),this.pushStack(r)}}));var Y=/[^\x20\t\r\n\f]+/g;function G(t){return t}function K(t){throw t}function Q(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}x.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return x.each(t.match(Y)||[],(function(t,n){e[n]=!0})),e}(t):x.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){x.each(n,(function(n,i){v(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==_(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return x.each(arguments,(function(t,e){for(var n;(n=x.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?x.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},x.extend({Deferred:function(t){var e=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return x.Deferred((function(n){x.each(e,(function(e,i){var r=v(t[i[4]])&&t[i[4]];o[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var o=0;function a(t,e,n,r){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(t<o)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,a(o,e,G,r),a(o,e,K,r)):(o++,c.call(i,a(o,e,G,r),a(o,e,K,r),a(o,e,G,e.notifyWith))):(n!==G&&(s=void 0,l=[i]),(r||e.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(i){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(i,u.error),t+1>=o&&(n!==K&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?u():(x.Deferred.getErrorHook?u.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(u.error=x.Deferred.getStackHook()),i.setTimeout(u))}}return x.Deferred((function(i){e[0][3].add(a(0,i,v(r)?r:G,i.notifyWith)),e[1][3].add(a(0,i,v(t)?t:G)),e[2][3].add(a(0,i,v(n)?n:K))})).promise()},promise:function(t){return null!=t?x.extend(t,r):r}},o={};return x.each(e,(function(t,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=s.call(arguments),o=x.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Q(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)Q(r[n],a(n),o.reject);return o.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Z.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},x.readyException=function(t){i.setTimeout((function(){throw t}))};var J=x.Deferred();function X(){k.removeEventListener("DOMContentLoaded",X),i.removeEventListener("load",X),x.ready()}x.fn.ready=function(t){return J.then(t).catch((function(t){x.readyException(t)})),this},x.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==t&&--x.readyWait>0||J.resolveWith(k,[x]))}}),x.ready.then=J.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?i.setTimeout(x.ready):(k.addEventListener("DOMContentLoaded",X),i.addEventListener("load",X));var tt=function(t,e,n,i,r,o,a){var s=0,l=t.length,c=null==n;if("object"===_(n))for(s in r=!0,n)tt(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,v(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(x(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function at(){this.expando=x.expando+at.uid++}at.uid=1,at.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(Y)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||x.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!x.isEmptyObject(e)}};var st=new at,lt=new at,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return lt.hasData(t)||st.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return st.access(t,e,n)},_removeData:function(t,e){st.remove(t,e)}}),x.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!st.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=rt(i.slice(5)),dt(o,i,r[i]));st.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=dt(o,t))?n:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),x.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=st.get(t,e),n&&(!i||Array.isArray(n)?i=st.access(t,e,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),i=n.length,r=n.shift(),o=x._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){x.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:x.Callbacks("once memory").add((function(){st.remove(t,[e+"queue",n])}))})}}),x.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?x.queue(this[0],t):void 0===e?this:this.each((function(){var n=x.queue(this,t,e);x._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&x.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){x.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=x.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],gt=k.documentElement,mt=function(t){return x.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return x.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var bt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===x.css(t,"display")};function kt(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return x.css(t,e,"")},l=s(),c=n&&n[3]||(x.cssNumber[e]?"":"px"),u=t.nodeType&&(x.cssNumber[e]||"px"!==c&&+l)&&ft.exec(x.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)x.style(t,e,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,x.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var yt={};function wt(t){var e,n=t.ownerDocument,i=t.nodeName,r=yt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=x.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),yt[i]=r,r)}function _t(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=st.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&bt(i)&&(r[o]=wt(i))):"none"!==n&&(r[o]="none",st.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}x.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){bt(this)?x(this).show():x(this).hide()}))}});var At,Ct,xt=/^(?:checkbox|radio)$/i,Dt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Et=/^$|^module$|\/(?:java|ecma)script/i;At=k.createDocumentFragment().appendChild(k.createElement("div")),(Ct=k.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),At.appendChild(Ct),m.checkClone=At.cloneNode(!0).cloneNode(!0).lastChild.checked,At.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!At.cloneNode(!0).lastChild.defaultValue,At.innerHTML="<option></option>",m.option=!!At.lastChild;var St={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Tt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?x.merge([t],n):n}function It(t,e){for(var n=0,i=t.length;n<i;n++)st.set(t[n],"globalEval",!e||st.get(e[n],"globalEval"))}St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td,m.option||(St.optgroup=St.option=[1,"<select multiple='multiple'>","</select>"]);var Mt=/<|&#?\w+;/;function Ot(t,e,n,i,r){for(var o,a,s,l,c,u,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===_(o))x.merge(h,o.nodeType?[o]:o);else if(Mt.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(Dt.exec(o)||["",""])[1].toLowerCase(),l=St[s]||St._default,a.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;x.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&x.inArray(o,i)>-1)r&&r.push(o);else if(c=mt(o),a=Tt(d.appendChild(o),"script"),c&&It(a),n)for(u=0;o=a[u++];)Et.test(o.type||"")&&n.push(o);return d}var Pt=/^([^.]*)(?:\.(.+)|)/;function Nt(){return!0}function Bt(){return!1}function Lt(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Lt(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Bt;else if(!r)return t;return 1===o&&(a=r,r=function(t){return x().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=x.guid++)),t.each((function(){x.event.add(this,e,r,i,n)}))}function jt(t,e,n){n?(st.set(t,e,!1),x.event.add(t,e,{namespace:!1,handler:function(t){var n,i=st.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(x.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=s.call(arguments),st.set(this,e,i),this[e](),n=st.get(this,e),st.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(st.set(this,e,x.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Nt)}})):void 0===st.get(t,e)&&x.event.add(t,e,Nt)}x.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=st.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&x.find.matchesSelector(gt,r),n.guid||(n.guid=x.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(Y)||[""]).length;c--;)f=g=(s=Pt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},u=x.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),x.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,d,h,f,p,g,m=st.hasData(t)&&st.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(Y)||[""]).length;c--;)if(f=g=(s=Pt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||x.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)x.event.remove(t,f+e[c],n,i,!0);x.isEmptyObject(l)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=x.event.fix(t),c=(st.get(this,"events")||Object.create(null))[l.type]||[],u=x.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=x.event.handlers.call(this,l,c),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((x.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?x(r,this).index(c)>-1:x.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[x.expando]?t:new x.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return xt.test(e.type)&&e.click&&E(e,"input")&&jt(e,"click",!0),!1},trigger:function(t){var e=this||t;return xt.test(e.type)&&e.click&&E(e,"input")&&jt(e,"click"),!0},_default:function(t){var e=t.target;return xt.test(e.type)&&e.click&&E(e,"input")&&st.get(e,"click")||E(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Nt:Bt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Bt,isPropagationStopped:Bt,isImmediatePropagationStopped:Bt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Nt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Nt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Nt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(k.documentMode){var n=st.get(this,"handle"),i=x.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else x.event.simulate(e,t.target,x.event.fix(t))}x.event.special[t]={setup:function(){var i;if(jt(this,t,!0),!k.documentMode)return!1;(i=st.get(this,e))||this.addEventListener(e,n),st.set(this,e,(i||0)+1)},trigger:function(){return jt(this,t),!0},teardown:function(){var t;if(!k.documentMode)return!1;(t=st.get(this,e)-1)?st.set(this,e,t):(this.removeEventListener(e,n),st.remove(this,e))},_default:function(e){return st.get(e.target,t)},delegateType:e},x.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=k.documentMode?this:i,o=st.get(r,e);o||(k.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),st.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=k.documentMode?this:i,o=st.get(r,e)-1;o?st.set(r,e,o):(k.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),st.remove(r,e))}}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){x.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||x.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),x.fn.extend({on:function(t,e,n,i){return Lt(this,t,e,n,i)},one:function(t,e,n,i){return Lt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,x(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Bt),this.each((function(){x.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,zt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ht(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&x(t).children("tbody")[0]||t}function Vt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Wt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(r in st.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)x.event.add(e,r,s[r][n]);lt.hasData(t)&&(o=lt.access(t),a=x.extend({},o),lt.set(e,a))}}function qt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&xt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function $t(t,e,n,i){e=l(e);var r,o,a,s,c,u,d=0,h=t.length,f=h-1,p=e[0],g=v(p);if(g||h>1&&"string"==typeof p&&!m.checkClone&&zt.test(p))return t.each((function(r){var o=t.eq(r);g&&(e[0]=p.call(this,r,o.html())),$t(o,e,n,i)}));if(h&&(o=(r=Ot(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=(a=x.map(Tt(r,"script"),Vt)).length;d<h;d++)c=r,d!==f&&(c=x.clone(c,!0,!0),s&&x.merge(a,Tt(c,"script"))),n.call(t[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,x.map(a,Ut),d=0;d<s;d++)c=a[d],Et.test(c.type||"")&&!st.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Ft,""),c,u))}return t}function Yt(t,e,n){for(var i,r=e?x.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||x.cleanData(Tt(i)),i.parentNode&&(n&&mt(i)&&It(Tt(i,"script")),i.parentNode.removeChild(i));return t}x.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(a=Tt(s),i=0,r=(o=Tt(t)).length;i<r;i++)qt(o[i],a[i]);if(e)if(n)for(o=o||Tt(t),a=a||Tt(s),i=0,r=o.length;i<r;i++)Wt(o[i],a[i]);else Wt(t,s);return(a=Tt(s,"script")).length>0&&It(a,!l&&Tt(t,"script")),s},cleanData:function(t){for(var e,n,i,r=x.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[st.expando]){if(e.events)for(i in e.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,e.handle);n[st.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),x.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return $t(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ht(this,t).appendChild(t)}))},prepend:function(){return $t(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return $t(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return $t(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(Tt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return x.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!St[(Dt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(Tt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return $t(this,arguments,(function(e){var n=this.parentNode;x.inArray(this,t)<0&&(x.cleanData(Tt(this)),n&&n.replaceChild(e,this))}),t)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){x.fn[t]=function(t){for(var n,i=[],r=x(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(r[a])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Gt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Kt=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Zt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Jt=new RegExp(pt.join("|"),"i");function Xt(t,e,n){var i,r,o,a,s=Kt.test(e),l=t.style;return(n=n||Qt(t))&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(O,"$1")||void 0),""!==a||mt(t)||(a=x.style(t,e)),!m.pixelBoxStyles()&&Gt.test(a)&&Jt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==a?a+"":a}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,a,s,l,c=k.createElement("div"),u=k.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==s&&(t=k.createElement("table"),e=k.createElement("tr"),n=k.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),s}}))}();var ee=["Webkit","Moz","ms"],ne=k.createElement("div").style,ie={};function re(t){var e=x.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=x.css(t,n+pt[a],!0,r)),i?("content"===n&&(l-=x.css(t,"padding"+pt[a],!0,r)),"margin"!==n&&(l-=x.css(t,"border"+pt[a]+"Width",!0,r))):(l+=x.css(t,"padding"+pt[a],!0,r),"padding"!==n?l+=x.css(t,"border"+pt[a]+"Width",!0,r):s+=x.css(t,"border"+pt[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l+c}function ue(t,e,n){var i=Qt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===x.css(t,"boxSizing",!1,i),o=r,a=Xt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&E(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===x.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ce(t,e,n||(r?"border":"content"),o,i,a)+"px"}function de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Xt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=rt(e),l=Kt.test(e),c=t.style;if(l||(e=re(s)),a=x.cssHooks[e]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:c[e];"string"===(o=typeof n)&&(r=ft.exec(n))&&r[1]&&(n=kt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(x.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,a,s=rt(e);return Kt.test(e)||(e=re(s)),(a=x.cssHooks[e]||x.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Xt(t,e,i)),"normal"===r&&e in se&&(r=se[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),x.each(["height","width"],(function(t,e){x.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(x.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):Zt(t,ae,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,o=Qt(t),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===x.css(t,"boxSizing",!1,o),l=i?ce(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ce(t,e,"border",!1,o)-.5)),l&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=x.css(t,e)),le(0,n,l)}}})),x.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Xt(t,"marginLeft"))||t.getBoundingClientRect().left-Zt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(t,e){x.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+pt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(x.cssHooks[t+e].set=le)})),x.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Qt(t),r=e.length;a<r;a++)o[e[a]]=x.css(t,e[a],!1,i);return o}return void 0!==n?x.style(t,e,n):x.css(t,e)}),t,e,arguments.length>1)}}),x.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=x.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||!x.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=de.prototype.init,x.fx.step={};var he,fe,pe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){fe&&(!1===k.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,x.fx.interval),x.fx.tick())}function ve(){return i.setTimeout((function(){he=void 0})),he=Date.now()}function be(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=pt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ke(t,e,n){for(var i,r=(ye.tweeners[e]||[]).concat(ye.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function ye(t,e,n){var i,r,o=0,a=ye.prefilters.length,s=x.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=he||ve(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=x.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=x.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=ye.prefilters[o].call(c,t,u,c.opts))return v(i.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return x.map(u,ke,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ye,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return kt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(Y);for(var n,i=0,r=t.length;i<r;i++)n=t[i],ye.tweeners[n]=ye.tweeners[n]||[],ye.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,c,u,d="width"in e||"height"in e,h=this,f={},p=t.style,g=t.nodeType&&bt(t),m=st.get(t,"fxshow");for(i in n.queue||(null==(a=x._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,x.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[i],pe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||x.style(t,i)}if((l=!x.isEmptyObject(e))||!x.isEmptyObject(f))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=st.get(t,"display")),"none"===(u=x.css(t,"display"))&&(c?u=c:(_t([t],!0),c=t.style.display||c,u=x.css(t,"display"),_t([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(t,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=st.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&_t([t],!0),h.done((function(){for(i in g||_t([t]),st.remove(t,"fxshow"),f)x.style(t,i,f[i])}))),l=ke(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ye.prefilters.unshift(t):ye.prefilters.push(t)}}),x.speed=function(t,e,n){var i=t&&"object"==typeof t?x.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in x.fx.speeds?i.duration=x.fx.speeds[i.duration]:i.duration=x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(t,e,n,i){return this.filter(bt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=x.isEmptyObject(t),o=x.speed(e,n,i),a=function(){var e=ye(this,x.extend({},t),o);(r||st.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=x.timers,a=st.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ge.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||x.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=st.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=x.timers,a=i?i.length:0;for(n.finish=!0,x.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(t,e){var n=x.fn[e];x.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(be(e,!0),t,i,r)}})),x.each({slideDown:be("show"),slideUp:be("hide"),slideToggle:be("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){x.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),he=void 0},x.fx.timer=function(t){x.timers.push(t),x.fx.start()},x.fx.interval=13,x.fx.start=function(){fe||(fe=!0,me())},x.fx.stop=function(){fe=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,e){return t=x.fx&&x.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=k.createElement("input"),e=k.createElement("select").appendChild(k.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=k.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var we,_e=x.expr.attrHandle;x.fn.extend({attr:function(t,e){return tt(this,x.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){x.removeAttr(this,t)}))}}),x.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(r=x.attrHooks[e.toLowerCase()]||(x.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=x.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Y);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=_e[e]||x.find.attr;_e[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=_e[a],_e[a]=r,r=null!=n(t,e,i)?a:null,_e[a]=o),r}}));var Ae=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;function xe(t){return(t.match(Y)||[]).join(" ")}function De(t){return t.getAttribute&&t.getAttribute("class")||""}function Ee(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}x.fn.extend({prop:function(t,e){return tt(this,x.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[x.propFix[t]||t]}))}}),x.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,r=x.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):Ae.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(x.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(t){var e,n,i,r,o,a;return v(t)?this.each((function(e){x(this).addClass(t.call(this,e,De(this)))})):(e=Ee(t)).length?this.each((function(){if(i=De(this),n=1===this.nodeType&&" "+xe(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=xe(n),i!==a&&this.setAttribute("class",a)}})):this},removeClass:function(t){var e,n,i,r,o,a;return v(t)?this.each((function(e){x(this).removeClass(t.call(this,e,De(this)))})):arguments.length?(e=Ee(t)).length?this.each((function(){if(i=De(this),n=1===this.nodeType&&" "+xe(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=xe(n),i!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each((function(n){x(this).toggleClass(t.call(this,n,De(this),e),e)})):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Ee(t),this.each((function(){if(s)for(o=x(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==a||((i=De(this))&&st.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":st.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+xe(De(n))+" ").indexOf(e)>-1)return!0;return!1}});var Se=/\r/g;x.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,x(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(t){return null==t?"":t+""}))),(e=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Se,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:xe(x.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(e=x(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=x.makeArray(e),a=r.length;a--;)((i=r[a]).selected=x.inArray(x.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=x.inArray(x(t).val(),e)>-1}},m.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Te=i.location,Ie={guid:Date.now()},Me=/\?/;x.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,Pe=function(t){t.stopPropagation()};x.extend(x.event,{trigger:function(t,e,n,r){var o,a,s,l,c,u,d,h,p=[n||k],g=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=n=n||k,3!==n.nodeType&&8!==n.nodeType&&!Oe.test(g+x.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[x.expando]?t:new x.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:x.makeArray(e,[t]),d=x.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!b(n)){for(l=d.delegateType||g,Oe.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||k)&&p.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)h=a,t.type=o>1?l:d.bindType||g,(u=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&u.apply(a,e),(u=c&&a[c])&&u.apply&&ot(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),e)||!ot(n)||c&&v(n[g])&&!b(n)&&((s=n[c])&&(n[c]=null),x.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Pe),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Pe),x.event.triggered=void 0,s&&(n[c]=s)),t.result}},simulate:function(t,e,n){var i=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(i,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each((function(){x.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}});var Ne=/\[\]$/,Be=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,i){var r;if(Array.isArray(e))x.each(e,(function(e,r){n||Ne.test(t)?i(t,r):Re(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==_(e))i(t,e);else for(r in e)Re(t+"["+r+"]",e[r],n,i)}x.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,(function(){r(this.name,this.value)}));else for(n in t)Re(n,t[n],e,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&je.test(this.nodeName)&&!Le.test(t)&&(this.checked||!xt.test(t))})).map((function(t,e){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(t){return{name:e.name,value:t.replace(Be,"\r\n")}})):{name:e.name,value:n.replace(Be,"\r\n")}})).get()}});var ze=/%20/g,Fe=/#.*$/,He=/([?&])_=[^&]*/,Ve=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,We=/^\/\//,qe={},$e={},Ye="*/".concat("*"),Ge=k.createElement("a");function Ke(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(Y)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Qe(t,e,n,i){var r={},o=t===$e;function a(s){var l;return r[s]=!0,x.each(t[s]||[],(function(t,s){var c=s(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Ze(t,e){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&x.extend(!0,t,i),t}Ge.href=Te.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,x.ajaxSettings),e):Ze(x.ajaxSettings,t)},ajaxPrefilter:Ke(qe),ajaxTransport:Ke($e),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,a,s,l,c,u,d,h,f=x.ajaxSetup({},e),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?x(p):x.event,m=x.Deferred(),v=x.Callbacks("once memory"),b=f.statusCode||{},y={},w={},_="canceled",A={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=Ve.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,y[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)A.always(t[A.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),C(0,e),this}};if(m.promise(A),f.url=((t||f.url||Te.href)+"").replace(We,Te.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Y)||[""],null==f.crossDomain){l=k.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ge.protocol+"//"+Ge.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Qe(qe,f,e,A),c)return A;for(d in(u=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ue.test(f.type),r=f.url.replace(Fe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(ze,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Me.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(He,"$1"),h=(Me.test(r)?"&":"?")+"_="+Ie.guid+++h),f.url=r+h),f.ifModified&&(x.lastModified[r]&&A.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&A.setRequestHeader("If-None-Match",x.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&A.setRequestHeader("Content-Type",f.contentType),A.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ye+"; q=0.01":""):f.accepts["*"]),f.headers)A.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,A,f)||c))return A.abort();if(_="abort",v.add(f.complete),A.done(f.success),A.fail(f.error),n=Qe($e,f,e,A)){if(A.readyState=1,u&&g.trigger("ajaxSend",[A,f]),c)return A;f.async&&f.timeout>0&&(s=i.setTimeout((function(){A.abort("timeout")}),f.timeout));try{c=!1,n.send(y,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,a,l){var d,h,k,y,w,_=e;c||(c=!0,s&&i.clearTimeout(s),n=void 0,o=l||"",A.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(y=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,A,a)),!d&&x.inArray("script",f.dataTypes)>-1&&x.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),y=function(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,y,A,d),d?(f.ifModified&&((w=A.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=w),(w=A.getResponseHeader("etag"))&&(x.etag[r]=w)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=y.state,h=y.data,d=!(k=y.error))):(k=_,!t&&_||(_="error",t<0&&(t=0))),A.status=t,A.statusText=(e||_)+"",d?m.resolveWith(p,[h,_,A]):m.rejectWith(p,[A,_,k]),A.statusCode(b),b=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[A,f,d?h:k]),v.fireWith(p,[A,_]),u&&(g.trigger("ajaxComplete",[A,f]),--x.active||x.event.trigger("ajaxStop")))}return A},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],(function(t,e){x[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:t,type:e,dataType:r,data:n,success:i},x.isPlainObject(t)&&t))}})),x.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),x._evalUrl=function(t,e,n){return x.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){x.globalEval(t,e,n)}})},x.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=x(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){x(this).wrapInner(t.call(this,e))})):this.each((function(){var e=x(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){x(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(t){return!x.expr.pseudos.visible(t)},x.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Xe=x.ajaxSettings.xhr();m.cors=!!Xe&&"withCredentials"in Xe,m.ajax=Xe=!!Xe,x.ajaxTransport((function(t){var e,n;if(m.cors||Xe&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Je[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),x.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),x.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=x("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),k.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||x.expando+"_"+Ie.guid++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",(function(t,e,n){var r,o,a,s=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Me.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||x.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){void 0===o?x(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((tn=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),x.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(i)):e=k),o=!n&&[],(r=F.exec(t))?[e.createElement(r[1])]:(r=Ot([t],e,o),o&&o.length&&x(o).remove(),x.merge([],r.childNodes)));var i,r,o},x.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=xe(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&x.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(i?x("<div>").append(x.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,(function(e){return t===e.elem})).length},x.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c=x.css(t,"position"),u=x(t),d={};"static"===c&&(t.style.position="relative"),s=u.offset(),o=x.css(t,"top"),l=x.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,x.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):u.css(d)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){x.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===x.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=x(t).offset()).top+=x.css(t,"borderTopWidth",!0),r.left+=x.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-x.css(i,"marginTop",!0),left:e.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||gt}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;x.fn[t]=function(i){return tt(this,(function(t,i,r){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),x.each(["top","left"],(function(t,e){x.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=Xt(t,e),Gt.test(n)?x(t).position()[e]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(t,e){x.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){x.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return tt(this,(function(e,n,r){var o;return b(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?x.css(e,n,s):x.style(e,n,r,s)}),e,a?r:void 0,a)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){x.fn[e]=function(t){return this.on(e,t)}})),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){x.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=s.call(arguments,2),r=function(){return t.apply(e||this,i.concat(s.call(arguments)))},r.guid=t.guid=t.guid||x.guid++,r},x.holdReady=function(t){t?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=E,x.isFunction=v,x.isWindow=b,x.camelCase=rt,x.type=_,x.now=Date.now,x.isNumeric=function(t){var e=x.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},x.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return x}.apply(e,[]))||(t.exports=n);var on=i.jQuery,an=i.$;return x.noConflict=function(t){return i.$===x&&(i.$=an),t&&i.jQuery===x&&(i.jQuery=on),x},void 0===r&&(i.jQuery=i.$=x),x}))},76234:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Application:()=>Z,Context:()=>C,Controller:()=>at,defaultSchema:()=>Y});var i=function(){function t(t,e,n){this.eventTarget=t,this.eventName=e,this.eventOptions=n,this.unorderedBindings=new Set}return t.prototype.connect=function(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)},t.prototype.disconnect=function(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)},t.prototype.bindingConnected=function(t){this.unorderedBindings.add(t)},t.prototype.bindingDisconnected=function(t){this.unorderedBindings.delete(t)},t.prototype.handleEvent=function(t){for(var e=function(t){if("immediatePropagationStopped"in t)return t;var e=t.stopImmediatePropagation;return Object.assign(t,{immediatePropagationStopped:!1,stopImmediatePropagation:function(){this.immediatePropagationStopped=!0,e.call(this)}})}(t),n=0,i=this.bindings;n<i.length;n++){var r=i[n];if(e.immediatePropagationStopped)break;r.handleEvent(e)}},Object.defineProperty(t.prototype,"bindings",{get:function(){return Array.from(this.unorderedBindings).sort((function(t,e){var n=t.index,i=e.index;return n<i?-1:n>i?1:0}))},enumerable:!1,configurable:!0}),t}();var r=function(){function t(t){this.application=t,this.eventListenerMaps=new Map,this.started=!1}return t.prototype.start=function(){this.started||(this.started=!0,this.eventListeners.forEach((function(t){return t.connect()})))},t.prototype.stop=function(){this.started&&(this.started=!1,this.eventListeners.forEach((function(t){return t.disconnect()})))},Object.defineProperty(t.prototype,"eventListeners",{get:function(){return Array.from(this.eventListenerMaps.values()).reduce((function(t,e){return t.concat(Array.from(e.values()))}),[])},enumerable:!1,configurable:!0}),t.prototype.bindingConnected=function(t){this.fetchEventListenerForBinding(t).bindingConnected(t)},t.prototype.bindingDisconnected=function(t){this.fetchEventListenerForBinding(t).bindingDisconnected(t)},t.prototype.handleError=function(t,e,n){void 0===n&&(n={}),this.application.handleError(t,"Error "+e,n)},t.prototype.fetchEventListenerForBinding=function(t){var e=t.eventTarget,n=t.eventName,i=t.eventOptions;return this.fetchEventListener(e,n,i)},t.prototype.fetchEventListener=function(t,e,n){var i=this.fetchEventListenerMapForEventTarget(t),r=this.cacheKey(e,n),o=i.get(r);return o||(o=this.createEventListener(t,e,n),i.set(r,o)),o},t.prototype.createEventListener=function(t,e,n){var r=new i(t,e,n);return this.started&&r.connect(),r},t.prototype.fetchEventListenerMapForEventTarget=function(t){var e=this.eventListenerMaps.get(t);return e||(e=new Map,this.eventListenerMaps.set(t,e)),e},t.prototype.cacheKey=function(t,e){var n=[t];return Object.keys(e).sort().forEach((function(t){n.push((e[t]?"":"!")+t)})),n.join(":")},t}(),o=/^((.+?)(@(window|document))?->)?(.+?)(#([^:]+?))(:(.+))?$/;function a(t){return"window"==t?window:"document"==t?document:void 0}var s=function(){function t(t,e,n){this.element=t,this.index=e,this.eventTarget=n.eventTarget||t,this.eventName=n.eventName||function(t){var e=t.tagName.toLowerCase();if(e in l)return l[e](t)}(t)||c("missing event name"),this.eventOptions=n.eventOptions||{},this.identifier=n.identifier||c("missing identifier"),this.methodName=n.methodName||c("missing method name")}return t.forToken=function(t){return new this(t.element,t.index,(e=t.content,{eventTarget:a((i=e.trim().match(o)||[])[4]),eventName:i[2],eventOptions:i[9]?(n=i[9],n.split(":").reduce((function(t,e){var n;return Object.assign(t,((n={})[e.replace(/^!/,"")]=!/^!/.test(e),n))}),{})):{},identifier:i[5],methodName:i[7]}));var e,n,i},t.prototype.toString=function(){var t=this.eventTargetName?"@"+this.eventTargetName:"";return""+this.eventName+t+"->"+this.identifier+"#"+this.methodName},Object.defineProperty(t.prototype,"eventTargetName",{get:function(){return(t=this.eventTarget)==window?"window":t==document?"document":void 0;var t},enumerable:!1,configurable:!0}),t}(),l={a:function(t){return"click"},button:function(t){return"click"},form:function(t){return"submit"},input:function(t){return"submit"==t.getAttribute("type")?"click":"input"},select:function(t){return"change"},textarea:function(t){return"input"}};function c(t){throw new Error(t)}var u=function(){function t(t,e){this.context=t,this.action=e}return Object.defineProperty(t.prototype,"index",{get:function(){return this.action.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventTarget",{get:function(){return this.action.eventTarget},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eventOptions",{get:function(){return this.action.eventOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.context.identifier},enumerable:!1,configurable:!0}),t.prototype.handleEvent=function(t){this.willBeInvokedByEvent(t)&&this.invokeWithEvent(t)},Object.defineProperty(t.prototype,"eventName",{get:function(){return this.action.eventName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"method",{get:function(){var t=this.controller[this.methodName];if("function"==typeof t)return t;throw new Error('Action "'+this.action+'" references undefined method "'+this.methodName+'"')},enumerable:!1,configurable:!0}),t.prototype.invokeWithEvent=function(t){try{this.method.call(this.controller,t)}catch(i){var e=this,n={identifier:e.identifier,controller:e.controller,element:e.element,index:e.index,event:t};this.context.handleError(i,'invoking action "'+this.action+'"',n)}},t.prototype.willBeInvokedByEvent=function(t){var e=t.target;return this.element===e||(e instanceof Element&&this.element.contains(e)?this.scope.containsElement(e):this.scope.containsElement(this.action.element))},Object.defineProperty(t.prototype,"controller",{get:function(){return this.context.controller},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"methodName",{get:function(){return this.action.methodName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scope",{get:function(){return this.context.scope},enumerable:!1,configurable:!0}),t}(),d=function(){function t(t,e){var n=this;this.element=t,this.started=!1,this.delegate=e,this.elements=new Set,this.mutationObserver=new MutationObserver((function(t){return n.processMutations(t)}))}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,subtree:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started){for(var t=new Set(this.matchElementsInTree()),e=0,n=Array.from(this.elements);e<n.length;e++){var i=n[e];t.has(i)||this.removeElement(i)}for(var r=0,o=Array.from(t);r<o.length;r++){i=o[r];this.addElement(i)}}},t.prototype.processMutations=function(t){if(this.started)for(var e=0,n=t;e<n.length;e++){var i=n[e];this.processMutation(i)}},t.prototype.processMutation=function(t){"attributes"==t.type?this.processAttributeChange(t.target,t.attributeName):"childList"==t.type&&(this.processRemovedNodes(t.removedNodes),this.processAddedNodes(t.addedNodes))},t.prototype.processAttributeChange=function(t,e){var n=t;this.elements.has(n)?this.delegate.elementAttributeChanged&&this.matchElement(n)?this.delegate.elementAttributeChanged(n,e):this.removeElement(n):this.matchElement(n)&&this.addElement(n)},t.prototype.processRemovedNodes=function(t){for(var e=0,n=Array.from(t);e<n.length;e++){var i=n[e],r=this.elementFromNode(i);r&&this.processTree(r,this.removeElement)}},t.prototype.processAddedNodes=function(t){for(var e=0,n=Array.from(t);e<n.length;e++){var i=n[e],r=this.elementFromNode(i);r&&this.elementIsActive(r)&&this.processTree(r,this.addElement)}},t.prototype.matchElement=function(t){return this.delegate.matchElement(t)},t.prototype.matchElementsInTree=function(t){return void 0===t&&(t=this.element),this.delegate.matchElementsInTree(t)},t.prototype.processTree=function(t,e){for(var n=0,i=this.matchElementsInTree(t);n<i.length;n++){var r=i[n];e.call(this,r)}},t.prototype.elementFromNode=function(t){if(t.nodeType==Node.ELEMENT_NODE)return t},t.prototype.elementIsActive=function(t){return t.isConnected==this.element.isConnected&&this.element.contains(t)},t.prototype.addElement=function(t){this.elements.has(t)||this.elementIsActive(t)&&(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))},t.prototype.removeElement=function(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))},t}(),h=function(){function t(t,e,n){this.attributeName=e,this.delegate=n,this.elementObserver=new d(t,this)}return Object.defineProperty(t.prototype,"element",{get:function(){return this.elementObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selector",{get:function(){return"["+this.attributeName+"]"},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.elementObserver.start()},t.prototype.stop=function(){this.elementObserver.stop()},t.prototype.refresh=function(){this.elementObserver.refresh()},Object.defineProperty(t.prototype,"started",{get:function(){return this.elementObserver.started},enumerable:!1,configurable:!0}),t.prototype.matchElement=function(t){return t.hasAttribute(this.attributeName)},t.prototype.matchElementsInTree=function(t){var e=this.matchElement(t)?[t]:[],n=Array.from(t.querySelectorAll(this.selector));return e.concat(n)},t.prototype.elementMatched=function(t){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(t,this.attributeName)},t.prototype.elementUnmatched=function(t){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(t,this.attributeName)},t.prototype.elementAttributeChanged=function(t,e){this.delegate.elementAttributeValueChanged&&this.attributeName==e&&this.delegate.elementAttributeValueChanged(t,e)},t}(),f=function(){function t(t,e){var n=this;this.element=t,this.delegate=e,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver((function(t){return n.processMutations(t)}))}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started)for(var t=0,e=this.knownAttributeNames;t<e.length;t++){var n=e[t];this.refreshAttribute(n)}},t.prototype.processMutations=function(t){if(this.started)for(var e=0,n=t;e<n.length;e++){var i=n[e];this.processMutation(i)}},t.prototype.processMutation=function(t){var e=t.attributeName;e&&this.refreshAttribute(e)},t.prototype.refreshAttribute=function(t){var e=this.delegate.getStringMapKeyForAttribute(t);if(null!=e){this.stringMap.has(t)||this.stringMapKeyAdded(e,t);var n=this.element.getAttribute(t);this.stringMap.get(t)!=n&&this.stringMapValueChanged(n,e),null==n?(this.stringMap.delete(t),this.stringMapKeyRemoved(e,t)):this.stringMap.set(t,n)}},t.prototype.stringMapKeyAdded=function(t,e){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(t,e)},t.prototype.stringMapValueChanged=function(t,e){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(t,e)},t.prototype.stringMapKeyRemoved=function(t,e){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(t,e)},Object.defineProperty(t.prototype,"knownAttributeNames",{get:function(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentAttributeNames",{get:function(){return Array.from(this.element.attributes).map((function(t){return t.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordedAttributeNames",{get:function(){return Array.from(this.stringMap.keys())},enumerable:!1,configurable:!0}),t}();function p(t,e,n){m(t,e).add(n)}function g(t,e,n){m(t,e).delete(n),function(t,e){var n=t.get(e);null!=n&&0==n.size&&t.delete(e)}(t,e)}function m(t,e){var n=t.get(e);return n||(n=new Set,t.set(e,n)),n}var v,b=function(){function t(){this.valuesByKey=new Map}return Object.defineProperty(t.prototype,"values",{get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t.concat(Array.from(e))}),[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t+e.size}),0)},enumerable:!1,configurable:!0}),t.prototype.add=function(t,e){p(this.valuesByKey,t,e)},t.prototype.delete=function(t,e){g(this.valuesByKey,t,e)},t.prototype.has=function(t,e){var n=this.valuesByKey.get(t);return null!=n&&n.has(e)},t.prototype.hasKey=function(t){return this.valuesByKey.has(t)},t.prototype.hasValue=function(t){return Array.from(this.valuesByKey.values()).some((function(e){return e.has(t)}))},t.prototype.getValuesForKey=function(t){var e=this.valuesByKey.get(t);return e?Array.from(e):[]},t.prototype.getKeysForValue=function(t){return Array.from(this.valuesByKey).filter((function(e){e[0];return e[1].has(t)})).map((function(t){var e=t[0];t[1];return e}))},t}(),k=(v=function(t,e){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},v(t,e)},function(t,e){function n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=(function(t){function e(){var e=t.call(this)||this;return e.keysByValue=new Map,e}k(e,t),Object.defineProperty(e.prototype,"values",{get:function(){return Array.from(this.keysByValue.keys())},enumerable:!1,configurable:!0}),e.prototype.add=function(e,n){t.prototype.add.call(this,e,n),p(this.keysByValue,n,e)},e.prototype.delete=function(e,n){t.prototype.delete.call(this,e,n),g(this.keysByValue,n,e)},e.prototype.hasValue=function(t){return this.keysByValue.has(t)},e.prototype.getKeysForValue=function(t){var e=this.keysByValue.get(t);return e?Array.from(e):[]}}(b),function(){function t(t,e,n){this.attributeObserver=new h(t,e,this),this.delegate=n,this.tokensByElement=new b}return Object.defineProperty(t.prototype,"started",{get:function(){return this.attributeObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.attributeObserver.start()},t.prototype.stop=function(){this.attributeObserver.stop()},t.prototype.refresh=function(){this.attributeObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.attributeObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.attributeObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.elementMatchedAttribute=function(t){this.tokensMatched(this.readTokensForElement(t))},t.prototype.elementAttributeValueChanged=function(t){var e=this.refreshTokensForElement(t),n=e[0],i=e[1];this.tokensUnmatched(n),this.tokensMatched(i)},t.prototype.elementUnmatchedAttribute=function(t){this.tokensUnmatched(this.tokensByElement.getValuesForKey(t))},t.prototype.tokensMatched=function(t){var e=this;t.forEach((function(t){return e.tokenMatched(t)}))},t.prototype.tokensUnmatched=function(t){var e=this;t.forEach((function(t){return e.tokenUnmatched(t)}))},t.prototype.tokenMatched=function(t){this.delegate.tokenMatched(t),this.tokensByElement.add(t.element,t)},t.prototype.tokenUnmatched=function(t){this.delegate.tokenUnmatched(t),this.tokensByElement.delete(t.element,t)},t.prototype.refreshTokensForElement=function(t){var e,n,i,r=this.tokensByElement.getValuesForKey(t),o=this.readTokensForElement(t),a=(e=r,n=o,i=Math.max(e.length,n.length),Array.from({length:i},(function(t,i){return[e[i],n[i]]}))).findIndex((function(t){return!function(t,e){return t&&e&&t.index==e.index&&t.content==e.content}(t[0],t[1])}));return-1==a?[[],[]]:[r.slice(a),o.slice(a)]},t.prototype.readTokensForElement=function(t){var e=this.attributeName;return function(t,e,n){return t.trim().split(/\s+/).filter((function(t){return t.length})).map((function(t,i){return{element:e,attributeName:n,content:t,index:i}}))}(t.getAttribute(e)||"",t,e)},t}());var w=function(){function t(t,e,n){this.tokenListObserver=new y(t,e,this),this.delegate=n,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}return Object.defineProperty(t.prototype,"started",{get:function(){return this.tokenListObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.tokenListObserver.start()},t.prototype.stop=function(){this.tokenListObserver.stop()},t.prototype.refresh=function(){this.tokenListObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.tokenListObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.tokenListObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.tokenMatched=function(t){var e=t.element,n=this.fetchParseResultForToken(t).value;n&&(this.fetchValuesByTokenForElement(e).set(t,n),this.delegate.elementMatchedValue(e,n))},t.prototype.tokenUnmatched=function(t){var e=t.element,n=this.fetchParseResultForToken(t).value;n&&(this.fetchValuesByTokenForElement(e).delete(t),this.delegate.elementUnmatchedValue(e,n))},t.prototype.fetchParseResultForToken=function(t){var e=this.parseResultsByToken.get(t);return e||(e=this.parseToken(t),this.parseResultsByToken.set(t,e)),e},t.prototype.fetchValuesByTokenForElement=function(t){var e=this.valuesByTokenByElement.get(t);return e||(e=new Map,this.valuesByTokenByElement.set(t,e)),e},t.prototype.parseToken=function(t){try{return{value:this.delegate.parseValueForToken(t)}}catch(t){return{error:t}}},t}(),_=function(){function t(t,e){this.context=t,this.delegate=e,this.bindingsByAction=new Map}return t.prototype.start=function(){this.valueListObserver||(this.valueListObserver=new w(this.element,this.actionAttribute,this),this.valueListObserver.start())},t.prototype.stop=function(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())},Object.defineProperty(t.prototype,"element",{get:function(){return this.context.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.context.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionAttribute",{get:function(){return this.schema.actionAttribute},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.context.schema},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bindings",{get:function(){return Array.from(this.bindingsByAction.values())},enumerable:!1,configurable:!0}),t.prototype.connectAction=function(t){var e=new u(this.context,t);this.bindingsByAction.set(t,e),this.delegate.bindingConnected(e)},t.prototype.disconnectAction=function(t){var e=this.bindingsByAction.get(t);e&&(this.bindingsByAction.delete(t),this.delegate.bindingDisconnected(e))},t.prototype.disconnectAllActions=function(){var t=this;this.bindings.forEach((function(e){return t.delegate.bindingDisconnected(e)})),this.bindingsByAction.clear()},t.prototype.parseValueForToken=function(t){var e=s.forToken(t);if(e.identifier==this.identifier)return e},t.prototype.elementMatchedValue=function(t,e){this.connectAction(e)},t.prototype.elementUnmatchedValue=function(t,e){this.disconnectAction(e)},t}(),A=function(){function t(t,e){this.context=t,this.receiver=e,this.stringMapObserver=new f(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap,this.invokeChangedCallbacksForDefaultValues()}return t.prototype.start=function(){this.stringMapObserver.start()},t.prototype.stop=function(){this.stringMapObserver.stop()},Object.defineProperty(t.prototype,"element",{get:function(){return this.context.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controller",{get:function(){return this.context.controller},enumerable:!1,configurable:!0}),t.prototype.getStringMapKeyForAttribute=function(t){if(t in this.valueDescriptorMap)return this.valueDescriptorMap[t].name},t.prototype.stringMapValueChanged=function(t,e){this.invokeChangedCallbackForValue(e)},t.prototype.invokeChangedCallbacksForDefaultValues=function(){for(var t=0,e=this.valueDescriptors;t<e.length;t++){var n=e[t],i=n.key,r=n.name;null==n.defaultValue||this.controller.data.has(i)||this.invokeChangedCallbackForValue(r)}},t.prototype.invokeChangedCallbackForValue=function(t){var e=t+"Changed",n=this.receiver[e];if("function"==typeof n){var i=this.receiver[t];n.call(this.receiver,i)}},Object.defineProperty(t.prototype,"valueDescriptors",{get:function(){var t=this.valueDescriptorMap;return Object.keys(t).map((function(e){return t[e]}))},enumerable:!1,configurable:!0}),t}(),C=function(){function t(t,e){this.module=t,this.scope=e,this.controller=new t.controllerConstructor(this),this.bindingObserver=new _(this,this.dispatcher),this.valueObserver=new A(this,this.controller);try{this.controller.initialize()}catch(t){this.handleError(t,"initializing controller")}}return t.prototype.connect=function(){this.bindingObserver.start(),this.valueObserver.start();try{this.controller.connect()}catch(t){this.handleError(t,"connecting controller")}},t.prototype.disconnect=function(){try{this.controller.disconnect()}catch(t){this.handleError(t,"disconnecting controller")}this.valueObserver.stop(),this.bindingObserver.stop()},Object.defineProperty(t.prototype,"application",{get:function(){return this.module.application},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.module.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.application.schema},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dispatcher",{get:function(){return this.application.dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.element.parentElement},enumerable:!1,configurable:!0}),t.prototype.handleError=function(t,e,n){void 0===n&&(n={});var i=this,r=i.identifier,o=i.controller,a=i.element;n=Object.assign({identifier:r,controller:o,element:a},n),this.application.handleError(t,"Error "+e,n)},t}();function x(t,e){var n=E(t);return Array.from(n.reduce((function(t,n){return function(t,e){var n=t[e];return Array.isArray(n)?n:[]}(n,e).forEach((function(e){return t.add(e)})),t}),new Set))}function D(t,e){return E(t).reduce((function(t,n){return t.push.apply(t,function(t,e){var n=t[e];return n?Object.keys(n).map((function(t){return[t,n[t]]})):[]}(n,e)),t}),[])}function E(t){for(var e=[];t;)e.push(t),t=Object.getPrototypeOf(t);return e.reverse()}var S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),T=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};function I(t){return function(t,e){var n=O(t),i=function(t,e){return M(e).reduce((function(n,i){var r,o=function(t,e,n){var i=Object.getOwnPropertyDescriptor(t,n);if(!i||!("value"in i)){var r=Object.getOwnPropertyDescriptor(e,n).value;return i&&(r.get=i.get||r.get,r.set=i.set||r.set),r}}(t,e,i);return o&&Object.assign(n,((r={})[i]=o,r)),n}),{})}(t.prototype,e);return Object.defineProperties(n.prototype,i),n}(t,function(t){var e=x(t,"blessings");return e.reduce((function(e,n){var i=n(t);for(var r in i){var o=e[r]||{};e[r]=Object.assign(o,i[r])}return e}),{})}(t))}var M="function"==typeof Object.getOwnPropertySymbols?function(t){return T(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,O=function(){function t(t){function e(){var n=this&&this instanceof e?this.constructor:void 0;return Reflect.construct(t,arguments,n)}return e.prototype=Object.create(t.prototype,{constructor:{value:e}}),Reflect.setPrototypeOf(e,t),e}try{return(e=t((function(){this.a.call(this)}))).prototype.a=function(){},new e,t}catch(t){return function(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e}(t)}}var e}();var P=function(){function t(t,e){this.application=t,this.definition=function(t){return{identifier:t.identifier,controllerConstructor:I(t.controllerConstructor)}}(e),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}return Object.defineProperty(t.prototype,"identifier",{get:function(){return this.definition.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controllerConstructor",{get:function(){return this.definition.controllerConstructor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contexts",{get:function(){return Array.from(this.connectedContexts)},enumerable:!1,configurable:!0}),t.prototype.connectContextForScope=function(t){var e=this.fetchContextForScope(t);this.connectedContexts.add(e),e.connect()},t.prototype.disconnectContextForScope=function(t){var e=this.contextsByScope.get(t);e&&(this.connectedContexts.delete(e),e.disconnect())},t.prototype.fetchContextForScope=function(t){var e=this.contextsByScope.get(t);return e||(e=new C(this,t),this.contextsByScope.set(t,e)),e},t}(),N=function(){function t(t){this.scope=t}return t.prototype.has=function(t){return this.data.has(this.getDataKey(t))},t.prototype.get=function(t){return this.data.get(this.getDataKey(t))},t.prototype.getAttributeName=function(t){return this.data.getAttributeNameForKey(this.getDataKey(t))},t.prototype.getDataKey=function(t){return t+"-class"},Object.defineProperty(t.prototype,"data",{get:function(){return this.scope.data},enumerable:!1,configurable:!0}),t}();function B(t){return t.replace(/(?:[_-])([a-z0-9])/g,(function(t,e){return e.toUpperCase()}))}function L(t){return t.charAt(0).toUpperCase()+t.slice(1)}function j(t){return t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))}var R=function(){function t(t){this.scope=t}return Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.scope.identifier},enumerable:!1,configurable:!0}),t.prototype.get=function(t){var e=this.getAttributeNameForKey(t);return this.element.getAttribute(e)},t.prototype.set=function(t,e){var n=this.getAttributeNameForKey(t);return this.element.setAttribute(n,e),this.get(t)},t.prototype.has=function(t){var e=this.getAttributeNameForKey(t);return this.element.hasAttribute(e)},t.prototype.delete=function(t){if(this.has(t)){var e=this.getAttributeNameForKey(t);return this.element.removeAttribute(e),!0}return!1},t.prototype.getAttributeNameForKey=function(t){return"data-"+this.identifier+"-"+j(t)},t}(),z=function(){function t(t){this.warnedKeysByObject=new WeakMap,this.logger=t}return t.prototype.warn=function(t,e,n){var i=this.warnedKeysByObject.get(t);i||(i=new Set,this.warnedKeysByObject.set(t,i)),i.has(e)||(i.add(e),this.logger.warn(n,t))},t}();function F(t,e){return"["+t+'~="'+e+'"]'}var H=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},V=function(){function t(t){this.scope=t}return Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.scope.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.scope.schema},enumerable:!1,configurable:!0}),t.prototype.has=function(t){return null!=this.find(t)},t.prototype.find=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.reduce((function(e,n){return e||t.findTarget(n)||t.findLegacyTarget(n)}),void 0)},t.prototype.findAll=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.reduce((function(e,n){return H(e,t.findAllTargets(n),t.findAllLegacyTargets(n))}),[])},t.prototype.findTarget=function(t){var e=this.getSelectorForTargetName(t);return this.scope.findElement(e)},t.prototype.findAllTargets=function(t){var e=this.getSelectorForTargetName(t);return this.scope.findAllElements(e)},t.prototype.getSelectorForTargetName=function(t){return F("data-"+this.identifier+"-target",t)},t.prototype.findLegacyTarget=function(t){var e=this.getLegacySelectorForTargetName(t);return this.deprecate(this.scope.findElement(e),t)},t.prototype.findAllLegacyTargets=function(t){var e=this,n=this.getLegacySelectorForTargetName(t);return this.scope.findAllElements(n).map((function(n){return e.deprecate(n,t)}))},t.prototype.getLegacySelectorForTargetName=function(t){var e=this.identifier+"."+t;return F(this.schema.targetAttribute,e)},t.prototype.deprecate=function(t,e){if(t){var n=this.identifier,i=this.schema.targetAttribute;this.guide.warn(t,"target:"+e,"Please replace "+i+'="'+n+"."+e+'" with data-'+n+'-target="'+e+'". The '+i+" attribute is deprecated and will be removed in a future version of Stimulus.")}return t},Object.defineProperty(t.prototype,"guide",{get:function(){return this.scope.guide},enumerable:!1,configurable:!0}),t}(),U=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},W=function(){function t(t,e,n,i){var r=this;this.targets=new V(this),this.classes=new N(this),this.data=new R(this),this.containsElement=function(t){return t.closest(r.controllerSelector)===r.element},this.schema=t,this.element=e,this.identifier=n,this.guide=new z(i)}return t.prototype.findElement=function(t){return this.element.matches(t)?this.element:this.queryElements(t).find(this.containsElement)},t.prototype.findAllElements=function(t){return U(this.element.matches(t)?[this.element]:[],this.queryElements(t).filter(this.containsElement))},t.prototype.queryElements=function(t){return Array.from(this.element.querySelectorAll(t))},Object.defineProperty(t.prototype,"controllerSelector",{get:function(){return F(this.schema.controllerAttribute,this.identifier)},enumerable:!1,configurable:!0}),t}(),q=function(){function t(t,e,n){this.element=t,this.schema=e,this.delegate=n,this.valueListObserver=new w(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}return t.prototype.start=function(){this.valueListObserver.start()},t.prototype.stop=function(){this.valueListObserver.stop()},Object.defineProperty(t.prototype,"controllerAttribute",{get:function(){return this.schema.controllerAttribute},enumerable:!1,configurable:!0}),t.prototype.parseValueForToken=function(t){var e=t.element,n=t.content,i=this.fetchScopesByIdentifierForElement(e),r=i.get(n);return r||(r=this.delegate.createScopeForElementAndIdentifier(e,n),i.set(n,r)),r},t.prototype.elementMatchedValue=function(t,e){var n=(this.scopeReferenceCounts.get(e)||0)+1;this.scopeReferenceCounts.set(e,n),1==n&&this.delegate.scopeConnected(e)},t.prototype.elementUnmatchedValue=function(t,e){var n=this.scopeReferenceCounts.get(e);n&&(this.scopeReferenceCounts.set(e,n-1),1==n&&this.delegate.scopeDisconnected(e))},t.prototype.fetchScopesByIdentifierForElement=function(t){var e=this.scopesByIdentifierByElement.get(t);return e||(e=new Map,this.scopesByIdentifierByElement.set(t,e)),e},t}(),$=function(){function t(t){this.application=t,this.scopeObserver=new q(this.element,this.schema,this),this.scopesByIdentifier=new b,this.modulesByIdentifier=new Map}return Object.defineProperty(t.prototype,"element",{get:function(){return this.application.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this.application.schema},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logger",{get:function(){return this.application.logger},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controllerAttribute",{get:function(){return this.schema.controllerAttribute},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"modules",{get:function(){return Array.from(this.modulesByIdentifier.values())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contexts",{get:function(){return this.modules.reduce((function(t,e){return t.concat(e.contexts)}),[])},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.scopeObserver.start()},t.prototype.stop=function(){this.scopeObserver.stop()},t.prototype.loadDefinition=function(t){this.unloadIdentifier(t.identifier);var e=new P(this.application,t);this.connectModule(e)},t.prototype.unloadIdentifier=function(t){var e=this.modulesByIdentifier.get(t);e&&this.disconnectModule(e)},t.prototype.getContextForElementAndIdentifier=function(t,e){var n=this.modulesByIdentifier.get(e);if(n)return n.contexts.find((function(e){return e.element==t}))},t.prototype.handleError=function(t,e,n){this.application.handleError(t,e,n)},t.prototype.createScopeForElementAndIdentifier=function(t,e){return new W(this.schema,t,e,this.logger)},t.prototype.scopeConnected=function(t){this.scopesByIdentifier.add(t.identifier,t);var e=this.modulesByIdentifier.get(t.identifier);e&&e.connectContextForScope(t)},t.prototype.scopeDisconnected=function(t){this.scopesByIdentifier.delete(t.identifier,t);var e=this.modulesByIdentifier.get(t.identifier);e&&e.disconnectContextForScope(t)},t.prototype.connectModule=function(t){this.modulesByIdentifier.set(t.identifier,t),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((function(e){return t.connectContextForScope(e)}))},t.prototype.disconnectModule=function(t){this.modulesByIdentifier.delete(t.identifier),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((function(e){return t.disconnectContextForScope(e)}))},t}(),Y={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target"},G=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))},K=function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Q=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},Z=function(){function t(t,e){void 0===t&&(t=document.documentElement),void 0===e&&(e=Y),this.logger=console,this.element=t,this.schema=e,this.dispatcher=new r(this),this.router=new $(this)}return t.start=function(e,n){var i=new t(e,n);return i.start(),i},t.prototype.start=function(){return G(this,void 0,void 0,(function(){return K(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",t):t()}))];case 1:return t.sent(),this.dispatcher.start(),this.router.start(),[2]}}))}))},t.prototype.stop=function(){this.dispatcher.stop(),this.router.stop()},t.prototype.register=function(t,e){this.load({identifier:t,controllerConstructor:e})},t.prototype.load=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(Array.isArray(t)?t:Q([t],n)).forEach((function(t){return e.router.loadDefinition(t)}))},t.prototype.unload=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];(Array.isArray(t)?t:Q([t],n)).forEach((function(t){return e.router.unloadIdentifier(t)}))},Object.defineProperty(t.prototype,"controllers",{get:function(){return this.router.contexts.map((function(t){return t.controller}))},enumerable:!1,configurable:!0}),t.prototype.getControllerForElementAndIdentifier=function(t,e){var n=this.router.getContextForElementAndIdentifier(t,e);return n?n.controller:null},t.prototype.handleError=function(t,e,n){this.logger.error("%s\n\n%o\n\n%o",e,t,n)},t}();function J(t){return x(t,"classes").reduce((function(t,e){return Object.assign(t,((i={})[r=(n=e)+"Class"]={get:function(){var t=this.classes;if(t.has(n))return t.get(n);var e=t.getAttributeName(n);throw new Error('Missing attribute "'+e+'"')}},i["has"+L(r)]={get:function(){return this.classes.has(n)}},i));var n,i,r}),{})}function X(t){return x(t,"targets").reduce((function(t,e){return Object.assign(t,((i={})[(n=e)+"Target"]={get:function(){var t=this.targets.find(n);if(t)return t;throw new Error('Missing target element "'+this.identifier+"."+n+'"')}},i[n+"Targets"]={get:function(){return this.targets.findAll(n)}},i["has"+L(n)+"Target"]={get:function(){return this.targets.has(n)}},i));var n,i}),{})}function tt(t){var e=D(t,"values"),n={valueDescriptorMap:{get:function(){var t=this;return e.reduce((function(e,n){var i,r=et(n),o=t.data.getAttributeNameForKey(r.key);return Object.assign(e,((i={})[o]=r,i))}),{})}}};return e.reduce((function(t,e){return Object.assign(t,function(t){var e,n=et(t),i=n.type,r=n.key,o=n.name,a=it[i],s=rt[i]||rt.default;return(e={})[o]={get:function(){var t=this.data.get(r);return null!==t?a(t):n.defaultValue},set:function(t){void 0===t?this.data.delete(r):this.data.set(r,s(t))}},e["has"+L(o)]={get:function(){return this.data.has(r)}},e}(e))}),n)}function et(t){var e=t[0],n=function(t){switch(t){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}throw new Error('Unknown value type constant "'+t+'"')}(t[1]);return function(t,e){var n=j(t)+"-value";return{type:e,key:n,name:B(n),get defaultValue(){return nt[e]}}}(e,n)}var nt={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},it={array:function(t){var e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError("Expected array");return e},boolean:function(t){return!("0"==t||"false"==t)},number:function(t){return parseFloat(t)},object:function(t){var e=JSON.parse(t);if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError("Expected object");return e},string:function(t){return t}},rt={default:function(t){return""+t},array:ot,object:ot};function ot(t){return JSON.stringify(t)}var at=function(){function t(t){this.context=t}return Object.defineProperty(t.prototype,"application",{get:function(){return this.context.application},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scope",{get:function(){return this.context.scope},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.scope.identifier},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"targets",{get:function(){return this.scope.targets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classes",{get:function(){return this.scope.classes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.scope.data},enumerable:!1,configurable:!0}),t.prototype.initialize=function(){},t.prototype.connect=function(){},t.prototype.disconnect=function(){},t.blessings=[J,X,tt],t.targets=[],t.values={},t}()},23901:(t,e,n)=>{"use strict";function i(t){return t.keys().map((function(e){return function(t,e){var n=r(e);if(n)return function(t,e){var n=t.default;if("function"==typeof n)return{identifier:e,controllerConstructor:n}}(t(e),n)}(t,e)})).filter((function(t){return t}))}function r(t){var e=(t.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(e)return e.replace(/_/g,"-").replace(/\//g,"--")}n.r(e),n.d(e,{definitionsFromContext:()=>i,identifierForContextKey:()=>r})},53463:(t,e,n)=>{"use strict";var i=n(52210),r=n(71384),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},8067:(t,e,n)=>{"use strict";var i=n(78186),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},10100:(t,e,n)=>{"use strict";var i=n(27648),r=n(29891),o=n(32756).f,a=i("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},85760:(t,e,n)=>{"use strict";var i=n(76006).charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},8360:(t,e,n)=>{"use strict";var i=n(97893),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},82972:(t,e,n)=>{"use strict";var i=n(70694),r=n(63801),o=n(94903),a=function(t){return function(e,n,a){var s=i(e),l=o(s);if(0===l)return!t&&-1;var c,u=r(a,l);if(t&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},10142:(t,e,n)=>{"use strict";var i=n(50847),r=n(79979),o=n(61498),a=n(32890),s=n(94903),l=n(95152),c=r([].push),u=function(t){var e=1===t,n=2===t,r=3===t,u=4===t,d=6===t,h=7===t,f=5===t||d;return function(p,g,m,v){for(var b,k,y=a(p),w=o(y),_=s(w),A=i(g,m),C=0,x=v||l,D=e?x(p,_):n||h?x(p,0):void 0;_>C;C++)if((f||C in w)&&(k=A(b=w[C],C,y),t))if(e)D[C]=k;else if(k)switch(t){case 3:return!0;case 5:return b;case 6:return C;case 2:c(D,b)}else switch(t){case 4:return!1;case 7:c(D,b)}return d?-1:r||u?u:D}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},43896:(t,e,n)=>{"use strict";var i=n(75364),r=n(27648),o=n(17798),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},17871:(t,e,n)=>{"use strict";var i=n(75364);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},30795:(t,e,n)=>{"use strict";var i=n(79979);t.exports=i([].slice)},48457:(t,e,n)=>{"use strict";var i=n(30795),r=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=t[l];s&&e(t[s-1],a)>0;)t[s]=t[--s];s!==l++&&(t[s]=a)}else for(var c=r(n/2),u=o(i(t,0,c),e),d=o(i(t,c),e),h=u.length,f=d.length,p=0,g=0;p<h||g<f;)t[p+g]=p<h&&g<f?e(u[p],d[g])<=0?u[p++]:d[g++]:p<h?u[p++]:d[g++];return t};t.exports=o},85298:(t,e,n)=>{"use strict";var i=n(63721),r=n(91220),o=n(97893),a=n(27648)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===s||i(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},95152:(t,e,n)=>{"use strict";var i=n(85298);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},51607:(t,e,n)=>{"use strict";var i=n(79979),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},61268:(t,e,n)=>{"use strict";var i=n(66295),r=n(52210),o=n(51607),a=n(27648)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:l?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},13747:(t,e,n)=>{"use strict";var i=n(26836),r=n(26202),o=n(8190),a=n(32756);t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},92398:(t,e,n)=>{"use strict";var i=n(75364);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},48791:(t,e,n)=>{"use strict";var i=n(79979),r=n(24199),o=n(98472),a=/"/g,s=i("".replace);t.exports=function(t,e,n,i){var l=o(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(o(i),a,"&quot;")+'"'),c+">"+l+"</"+e+">"}},5830:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},97362:(t,e,n)=>{"use strict";var i=n(73199),r=n(32756),o=n(12017);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},12017:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},57679:(t,e,n)=>{"use strict";var i=n(73199),r=n(32756),o=n(12017);t.exports=function(t,e,n){i?r.f(t,e,o(0,n)):t[e]=n}},56651:(t,e,n)=>{"use strict";var i=n(10064),r=n(32756);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},82543:(t,e,n)=>{"use strict";var i=n(52210),r=n(32756),o=n(10064),a=n(83548);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},83548:(t,e,n)=>{"use strict";var i=n(38135),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},34207:(t,e,n)=>{"use strict";var i=n(71384),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+i(e)+" of "+i(t))}},73199:(t,e,n)=>{"use strict";var i=n(75364);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},95336:(t,e,n)=>{"use strict";var i=n(38135),r=n(97893),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},42399:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},91701:(t,e,n)=>{"use strict";var i=n(95336)("span").classList,r=i&&i.constructor&&i.constructor.prototype;t.exports=r===Object.prototype?void 0:r},5136:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},44248:(t,e,n)=>{"use strict";var i=n(63378).match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},96208:(t,e,n)=>{"use strict";var i=n(63378);t.exports=/MSIE|Trident/.test(i)},63378:(t,e,n)=>{"use strict";var i=n(38135).navigator,r=i&&i.userAgent;t.exports=r?String(r):""},17798:(t,e,n)=>{"use strict";var i,r,o=n(38135),a=n(63378),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},21122:(t,e,n)=>{"use strict";var i=n(63378).match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},39464:(t,e,n)=>{"use strict";var i=n(38135),r=n(63378),o=n(51607),a=function(t){return r.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},83291:(t,e,n)=>{"use strict";var i=n(38135),r=n(8190).f,o=n(97362),a=n(82543),s=n(83548),l=n(13747),c=n(12975);t.exports=function(t,e){var n,u,d,h,f,p=t.target,g=t.global,m=t.stat;if(n=g?i:m?i[p]||s(p,{}):i[p]&&i[p].prototype)for(u in e){if(h=e[u],d=t.dontCallGetSet?(f=r(n,u))&&f.value:n[u],!c(g?u:p+(m?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,t)}}},75364:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},47941:(t,e,n)=>{"use strict";n(94974);var i=n(5554),r=n(82543),o=n(7452),a=n(75364),s=n(27648),l=n(97362),c=s("species"),u=RegExp.prototype;t.exports=function(t,e,n,d){var h=s(t),f=!a((function(){var e={};return e[h]=function(){return 7},7!==""[t](e)})),p=f&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!f||!p||n){var g=/./[h],m=e(h,""[t],(function(t,e,n,r,a){var s=e.exec;return s===o||s===u.exec?f&&!a?{done:!0,value:i(g,e,n,r)}:{done:!0,value:i(t,n,e,r)}:{done:!1}}));r(String.prototype,t,m[0]),r(u,h,m[1])}d&&l(u[h],"sham",!0)}},12432:(t,e,n)=>{"use strict";var i=n(52489),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},50847:(t,e,n)=>{"use strict";var i=n(94385),r=n(53463),o=n(52489),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},52489:(t,e,n)=>{"use strict";var i=n(75364);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8201:(t,e,n)=>{"use strict";var i=n(79979),r=n(53463),o=n(97893),a=n(26836),s=n(30795),l=n(52489),c=Function,u=i([].concat),d=i([].join),h={};t.exports=l?c.bind:function(t){var e=r(this),n=e.prototype,i=s(arguments,1),l=function(){var n=u(i,s(arguments));return this instanceof l?function(t,e,n){if(!a(h,e)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";h[e]=c("C,a","return new C("+d(i,",")+")")}return h[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(l.prototype=n),l}},5554:(t,e,n)=>{"use strict";var i=n(52489),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},9801:(t,e,n)=>{"use strict";var i=n(73199),r=n(26836),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},54727:(t,e,n)=>{"use strict";var i=n(79979),r=n(53463);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},94385:(t,e,n)=>{"use strict";var i=n(51607),r=n(79979);t.exports=function(t){if("Function"===i(t))return r(t)}},79979:(t,e,n)=>{"use strict";var i=n(52489),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},71734:(t,e,n)=>{"use strict";var i=n(38135),r=n(52210);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},35240:(t,e,n)=>{"use strict";var i=n(79979),r=n(63721),o=n(52210),a=n(51607),s=n(98472),l=i([].push);t.exports=function(t){if(o(t))return t;if(r(t)){for(var e=t.length,n=[],i=0;i<e;i++){var c=t[i];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var u=n.length,d=!0;return function(t,e){if(d)return d=!1,e;if(r(this))return e;for(var i=0;i<u;i++)if(n[i]===t)return e}}}},56319:(t,e,n)=>{"use strict";var i=n(53463),r=n(84984);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},19663:(t,e,n)=>{"use strict";var i=n(79979),r=n(32890),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,i,d,h){var f=n+t.length,p=i.length,g=u;return void 0!==d&&(d=r(d),g=c),s(h,g,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,f);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>p){var h=o(u/10);return 0===h?r:h<=p?void 0===i[h-1]?a(s,1):i[h-1]+a(s,1):r}c=i[u-1]}return void 0===c?"":c}))}},38135:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},26836:(t,e,n)=>{"use strict";var i=n(79979),r=n(32890),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},48314:t=>{"use strict";t.exports={}},83336:(t,e,n)=>{"use strict";var i=n(71734);t.exports=i("document","documentElement")},72888:(t,e,n)=>{"use strict";var i=n(73199),r=n(75364),o=n(95336);t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},61498:(t,e,n)=>{"use strict";var i=n(79979),r=n(75364),o=n(51607),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},64431:(t,e,n)=>{"use strict";var i=n(79979),r=n(52210),o=n(88728),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},24156:(t,e,n)=>{"use strict";var i,r,o,a=n(42847),s=n(38135),l=n(97893),c=n(97362),u=n(26836),d=n(88728),h=n(86674),f=n(48314),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw new g(p);return e.facade=t,v.set(t,e),e},r=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var b=h("state");f[b]=!0,i=function(t,e){if(u(t,b))throw new g(p);return e.facade=t,c(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}}}},63721:(t,e,n)=>{"use strict";var i=n(51607);t.exports=Array.isArray||function(t){return"Array"===i(t)}},52210:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},91220:(t,e,n)=>{"use strict";var i=n(79979),r=n(75364),o=n(52210),a=n(61268),s=n(71734),l=n(64431),c=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=i(d.exec),f=!d.test(c),p=function(t){if(!o(t))return!1;try{return u(c,[],t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!u||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?g:p},12975:(t,e,n)=>{"use strict";var i=n(75364),r=n(52210),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},84984:t=>{"use strict";t.exports=function(t){return null==t}},97893:(t,e,n)=>{"use strict";var i=n(52210);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},78186:(t,e,n)=>{"use strict";var i=n(97893);t.exports=function(t){return i(t)||null===t}},55784:t=>{"use strict";t.exports=!1},19666:(t,e,n)=>{"use strict";var i=n(71734),r=n(52210),o=n(84659),a=n(82175),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},10581:(t,e,n)=>{"use strict";var i=n(76180).IteratorPrototype,r=n(29891),o=n(12017),a=n(4176),s=n(88742),l=function(){return this};t.exports=function(t,e,n,c){var u=e+" Iterator";return t.prototype=r(i,{next:o(+!c,n)}),a(t,u,!1,!0),s[u]=l,t}},30271:(t,e,n)=>{"use strict";var i=n(83291),r=n(5554),o=n(55784),a=n(9801),s=n(52210),l=n(10581),c=n(52812),u=n(87104),d=n(4176),h=n(97362),f=n(82543),p=n(27648),g=n(88742),m=n(76180),v=a.PROPER,b=a.CONFIGURABLE,k=m.IteratorPrototype,y=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),_="keys",A="values",C="entries",x=function(){return this};t.exports=function(t,e,n,a,p,m,D){l(n,e,a);var E,S,T,I=function(t){if(t===p&&B)return B;if(!y&&t&&t in P)return P[t];switch(t){case _:case A:case C:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",O=!1,P=t.prototype,N=P[w]||P["@@iterator"]||p&&P[p],B=!y&&N||I(p),L="Array"===e&&P.entries||N;if(L&&(E=c(L.call(new t)))!==Object.prototype&&E.next&&(o||c(E)===k||(u?u(E,k):s(E[w])||f(E,w,x)),d(E,M,!0,!0),o&&(g[M]=x)),v&&p===A&&N&&N.name!==A&&(!o&&b?h(P,"name",A):(O=!0,B=function(){return r(N,this)})),p)if(S={values:I(A),keys:m?B:I(_),entries:I(C)},D)for(T in S)(y||O||!(T in P))&&f(P,T,S[T]);else i({target:e,proto:!0,forced:y||O},S);return o&&!D||P[w]===B||f(P,w,B,{name:p}),g[e]=B,S}},76180:(t,e,n)=>{"use strict";var i,r,o,a=n(75364),s=n(52210),l=n(97893),c=n(29891),u=n(52812),d=n(82543),h=n(27648),f=n(55784),p=h("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(r=u(u(o)))!==Object.prototype&&(i=r):g=!0),!l(i)||a((function(){var t={};return i[p].call(t)!==t}))?i={}:f&&(i=c(i)),s(i[p])||d(i,p,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},88742:t=>{"use strict";t.exports={}},94903:(t,e,n)=>{"use strict";var i=n(96793);t.exports=function(t){return i(t.length)}},10064:(t,e,n)=>{"use strict";var i=n(79979),r=n(75364),o=n(52210),a=n(26836),s=n(73199),l=n(9801).CONFIGURABLE,c=n(64431),u=n(24156),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),b=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),k=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===g(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return a(i,"source")||(i.source=v(k,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&h(this).source||c(this)}),"toString")},73216:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},29891:(t,e,n)=>{"use strict";var i,r=n(8360),o=n(50452),a=n(5136),s=n(48314),l=n(83336),c=n(95336),u=n(86674),d="prototype",h="script",f=u("IE_PROTO"),p=function(){},g=function(t){return"<"+h+">"+t+"</"+h+">"},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v="undefined"!=typeof document?document.domain&&i?m(i):(e=c("iframe"),n="java"+h+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):m(i);for(var r=a.length;r--;)delete v[d][a[r]];return v()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[d]=r(t),n=new p,p[d]=null,n[f]=t):n=v(),void 0===e?n:o.f(n,e)}},50452:(t,e,n)=>{"use strict";var i=n(73199),r=n(59373),o=n(32756),a=n(8360),s=n(70694),l=n(42307);e.f=i&&!r?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),r=l(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],i[n]);return t}},32756:(t,e,n)=>{"use strict";var i=n(73199),r=n(72888),o=n(59373),a=n(8360),s=n(82958),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var i=u(t,e);i&&i[f]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},8190:(t,e,n)=>{"use strict";var i=n(73199),r=n(5554),o=n(18102),a=n(12017),s=n(70694),l=n(82958),c=n(26836),u=n(72888),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=l(e),u)try{return d(t,e)}catch(t){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},60039:(t,e,n)=>{"use strict";var i=n(51607),r=n(70694),o=n(85491).f,a=n(30795),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===i(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(r(t))}},85491:(t,e,n)=>{"use strict";var i=n(97485),r=n(5136).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},90714:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},52812:(t,e,n)=>{"use strict";var i=n(26836),r=n(52210),o=n(32890),a=n(86674),s=n(92398),l=a("IE_PROTO"),c=Object,u=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(i(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},84659:(t,e,n)=>{"use strict";var i=n(79979);t.exports=i({}.isPrototypeOf)},97485:(t,e,n)=>{"use strict";var i=n(79979),r=n(26836),o=n(70694),a=n(82972).indexOf,s=n(48314),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);for(;e.length>c;)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},42307:(t,e,n)=>{"use strict";var i=n(97485),r=n(5136);t.exports=Object.keys||function(t){return i(t,r)}},18102:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},87104:(t,e,n)=>{"use strict";var i=n(54727),r=n(97893),o=n(24199),a=n(8067);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),a(i),r(n)?(e?t(n,i):n.__proto__=i,n):n}}():void 0)},59094:(t,e,n)=>{"use strict";var i=n(66295),r=n(61268);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},64909:(t,e,n)=>{"use strict";var i=n(5554),r=n(52210),o=n(97893),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},26202:(t,e,n)=>{"use strict";var i=n(71734),r=n(79979),o=n(85491),a=n(90714),s=n(8360),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},94022:(t,e,n)=>{"use strict";var i=n(38135);t.exports=i},16131:(t,e,n)=>{"use strict";var i=n(5554),r=n(8360),o=n(52210),a=n(51607),s=n(7452),l=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=i(n,t,e);return null!==c&&r(c),c}if("RegExp"===a(t))return i(s,t,e);throw new l("RegExp#exec called on incompatible receiver")}},7452:(t,e,n)=>{"use strict";var i,r,o=n(5554),a=n(79979),s=n(98472),l=n(54430),c=n(126),u=n(27280),d=n(29891),h=n(24156).get,f=n(98206),p=n(18251),g=u("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,b=a("".charAt),k=a("".indexOf),y=a("".replace),w=a("".slice),_=(r=/b*/g,o(m,i=/a/,"a"),o(m,r,"a"),0!==i.lastIndex||0!==r.lastIndex),A=c.BROKEN_CARET,C=void 0!==/()??/.exec("")[1];(_||C||A||f||p)&&(v=function(t){var e,n,i,r,a,c,u,f=this,p=h(f),x=s(t),D=p.raw;if(D)return D.lastIndex=f.lastIndex,e=o(v,D,x),f.lastIndex=D.lastIndex,e;var E=p.groups,S=A&&f.sticky,T=o(l,f),I=f.source,M=0,O=x;if(S&&(T=y(T,"y",""),-1===k(T,"g")&&(T+="g"),O=w(x,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==b(x,f.lastIndex-1))&&(I="(?: "+I+")",O=" "+O,M++),n=new RegExp("^(?:"+I+")",T)),C&&(n=new RegExp("^"+I+"$(?!\\s)",T)),_&&(i=f.lastIndex),r=o(m,S?n:f,O),S?r?(r.input=w(r.input,M),r[0]=w(r[0],M),r.index=f.lastIndex,f.lastIndex+=r[0].length):f.lastIndex=0:_&&r&&(f.lastIndex=f.global?r.index+r[0].length:i),C&&r&&r.length>1&&o(g,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&E)for(r.groups=c=d(null),a=0;a<E.length;a++)c[(u=E[a])[0]]=r[u[1]];return r}),t.exports=v},54430:(t,e,n)=>{"use strict";var i=n(8360);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},126:(t,e,n)=>{"use strict";var i=n(75364),r=n(38135).RegExp,o=i((function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=o||i((function(){return!r("a","y").sticky})),s=o||i((function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},98206:(t,e,n)=>{"use strict";var i=n(75364),r=n(38135).RegExp;t.exports=i((function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},18251:(t,e,n)=>{"use strict";var i=n(75364),r=n(38135).RegExp;t.exports=i((function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},24199:(t,e,n)=>{"use strict";var i=n(84984),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},99565:(t,e,n)=>{"use strict";var i,r=n(38135),o=n(12432),a=n(52210),s=n(39464),l=n(63378),c=n(30795),u=n(11771),d=r.Function,h=/MSIE .\./.test(l)||"BUN"===s&&((i=r.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));t.exports=function(t,e){var n=e?2:1;return h?function(i,r){var s=u(arguments.length,1)>n,l=a(i)?i:d(i),h=s?c(arguments,n):[],f=s?function(){o(l,this,h)}:l;return e?t(f,r):t(f)}:t}},4176:(t,e,n)=>{"use strict";var i=n(32756).f,r=n(26836),o=n(27648)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},86674:(t,e,n)=>{"use strict";var i=n(27280),r=n(48555),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},88728:(t,e,n)=>{"use strict";var i=n(55784),r=n(38135),o=n(83548),a="__core-js_shared__",s=t.exports=r[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.39.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},27280:(t,e,n)=>{"use strict";var i=n(88728);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},62748:(t,e,n)=>{"use strict";var i=n(75364);t.exports=function(t){return i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},76006:(t,e,n)=>{"use strict";var i=n(79979),r=n(63746),o=n(98472),a=n(24199),s=i("".charAt),l=i("".charCodeAt),c=i("".slice),u=function(t){return function(e,n){var i,u,d=o(a(e)),h=r(n),f=d.length;return h<0||h>=f?t?"":void 0:(i=l(d,h))<55296||i>56319||h+1===f||(u=l(d,h+1))<56320||u>57343?t?s(d,h):i:t?c(d,h,h+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},17454:(t,e,n)=>{"use strict";var i=n(17798),r=n(75364),o=n(38135).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},31091:(t,e,n)=>{"use strict";var i=n(5554),r=n(71734),o=n(27648),a=n(82543);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return i(n,this)}),{arity:1})}},60003:(t,e,n)=>{"use strict";var i=n(17454);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},63801:(t,e,n)=>{"use strict";var i=n(63746),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},70694:(t,e,n)=>{"use strict";var i=n(61498),r=n(24199);t.exports=function(t){return i(r(t))}},63746:(t,e,n)=>{"use strict";var i=n(73216);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},96793:(t,e,n)=>{"use strict";var i=n(63746),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,9007199254740991):0}},32890:(t,e,n)=>{"use strict";var i=n(24199),r=Object;t.exports=function(t){return r(i(t))}},35892:(t,e,n)=>{"use strict";var i=n(5554),r=n(97893),o=n(19666),a=n(56319),s=n(64909),l=n(27648),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},82958:(t,e,n)=>{"use strict";var i=n(35892),r=n(19666);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},66295:(t,e,n)=>{"use strict";var i={};i[n(27648)("toStringTag")]="z",t.exports="[object z]"===String(i)},98472:(t,e,n)=>{"use strict";var i=n(61268),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},71384:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},48555:(t,e,n)=>{"use strict";var i=n(79979),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},82175:(t,e,n)=>{"use strict";var i=n(17454);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},59373:(t,e,n)=>{"use strict";var i=n(73199),r=n(75364);t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},11771:t=>{"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},42847:(t,e,n)=>{"use strict";var i=n(38135),r=n(52210),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},52870:(t,e,n)=>{"use strict";var i=n(94022),r=n(26836),o=n(62680),a=n(32756).f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||a(e,t,{value:o.f(t)})}},62680:(t,e,n)=>{"use strict";var i=n(27648);e.f=i},27648:(t,e,n)=>{"use strict";var i=n(38135),r=n(27280),o=n(26836),a=n(48555),s=n(17454),l=n(82175),c=i.Symbol,u=r("wks"),d=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},51783:(t,e,n)=>{"use strict";var i=n(83291),r=n(10142).filter;i({target:"Array",proto:!0,forced:!n(43896)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},55146:(t,e,n)=>{"use strict";var i=n(83291),r=n(10142).find,o=n(10100),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},84443:(t,e,n)=>{"use strict";var i=n(70694),r=n(10100),o=n(88742),a=n(24156),s=n(32756).f,l=n(30271),c=n(5830),u=n(55784),d=n(73199),h="Array Iterator",f=a.set,p=a.getterFor(h);t.exports=l(Array,"Array",(function(t,e){f(this,{type:h,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var g=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&d&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},52477:(t,e,n)=>{"use strict";var i=n(83291),r=n(79979),o=n(61498),a=n(70694),s=n(17871),l=r([].join);i({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(t){return l(a(this),void 0===t?",":t)}})},84535:(t,e,n)=>{"use strict";var i=n(83291),r=n(10142).map;i({target:"Array",proto:!0,forced:!n(43896)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},53979:(t,e,n)=>{"use strict";var i=n(83291),r=n(63721),o=n(91220),a=n(97893),s=n(63801),l=n(94903),c=n(70694),u=n(57679),d=n(27648),h=n(43896),f=n(30795),p=h("slice"),g=d("species"),m=Array,v=Math.max;i({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,i,d,h=c(this),p=l(h),b=s(t,p),k=s(void 0===e?p:e,p);if(r(h)&&(n=h.constructor,(o(n)&&(n===m||r(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return f(h,b,k);for(i=new(void 0===n?m:n)(v(k-b,0)),d=0;b<k;b++,d++)b in h&&u(i,d,h[b]);return i.length=d,i}})},2969:(t,e,n)=>{"use strict";var i=n(83291),r=n(79979),o=n(53463),a=n(32890),s=n(94903),l=n(34207),c=n(98472),u=n(75364),d=n(48457),h=n(17871),f=n(44248),p=n(96208),g=n(17798),m=n(21122),v=[],b=r(v.sort),k=r(v.push),y=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),_=h("sort"),A=!u((function(){if(g)return g<70;if(!(f&&f>3)){if(p)return!0;if(m)return m<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)v.push({k:e+i,v:n})}for(v.sort((function(t,e){return e.v-t.v})),i=0;i<v.length;i++)e=v[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}));i({target:"Array",proto:!0,forced:y||!w||!_||!A},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(A)return void 0===t?b(e):b(e,t);var n,i,r=[],u=s(e);for(i=0;i<u;i++)i in e&&k(r,e[i]);for(d(r,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(r),i=0;i<n;)e[i]=r[i++];for(;i<u;)l(e,i++);return e}})},43843:(t,e,n)=>{"use strict";var i=n(83291),r=n(8201);i({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},67793:(t,e,n)=>{"use strict";var i=n(83291),r=n(71734),o=n(12432),a=n(5554),s=n(79979),l=n(75364),c=n(52210),u=n(19666),d=n(30795),h=n(35240),f=n(17454),p=String,g=r("JSON","stringify"),m=s(/./.exec),v=s("".charAt),b=s("".charCodeAt),k=s("".replace),y=s(1..toString),w=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,C=!f||l((function(){var t=r("Symbol")("stringify detection");return"[null]"!==g([t])||"{}"!==g({a:t})||"{}"!==g(Object(t))})),x=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),D=function(t,e){var n=d(arguments),i=h(e);if(c(i)||void 0!==t&&!u(t))return n[1]=function(t,e){if(c(i)&&(e=a(i,this,p(t),e)),!u(e))return e},o(g,null,n)},E=function(t,e,n){var i=v(n,e-1),r=v(n,e+1);return m(_,t)&&!m(A,r)||m(A,t)&&!m(_,i)?"\\u"+y(b(t,0),16):t};g&&i({target:"JSON",stat:!0,arity:3,forced:C||x},{stringify:function(t,e,n){var i=d(arguments),r=o(C?D:g,null,i);return x&&"string"==typeof r?k(r,w,E):r}})},4840:(t,e,n)=>{"use strict";var i=n(83291),r=n(17454),o=n(75364),a=n(90714),s=n(32890);i({target:"Object",stat:!0,forced:!r||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},86640:(t,e,n)=>{"use strict";var i=n(66295),r=n(82543),o=n(59094);i||r(Object.prototype,"toString",o,{unsafe:!0})},94974:(t,e,n)=>{"use strict";var i=n(83291),r=n(7452);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},64777:(t,e,n)=>{"use strict";var i=n(76006).charAt,r=n(98472),o=n(24156),a=n(30271),s=n(5830),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",(function(t){c(this,{type:l,string:r(t),index:0})}),(function(){var t,e=u(this),n=e.string,r=e.index;return r>=n.length?s(void 0,!0):(t=i(n,r),e.index+=t.length,s(t,!1))}))},80507:(t,e,n)=>{"use strict";var i=n(83291),r=n(48791);i({target:"String",proto:!0,forced:n(62748)("link")},{link:function(t){return r(this,"a","href",t)}})},65507:(t,e,n)=>{"use strict";var i=n(12432),r=n(5554),o=n(79979),a=n(47941),s=n(75364),l=n(8360),c=n(52210),u=n(84984),d=n(63746),h=n(96793),f=n(98472),p=n(24199),g=n(85760),m=n(56319),v=n(19663),b=n(16131),k=n(27648)("replace"),y=Math.max,w=Math.min,_=o([].concat),A=o([].push),C=o("".indexOf),x=o("".slice),D="$0"==="a".replace(/./,"$0"),E=!!/./[k]&&""===/./[k]("a","$0");a("replace",(function(t,e,n){var o=E?"$":"$0";return[function(t,n){var i=p(this),o=u(t)?void 0:m(t,k);return o?r(o,t,i,n):r(e,f(i),t,n)},function(t,r){var a=l(this),s=f(t);if("string"==typeof r&&-1===C(r,o)&&-1===C(r,"$<")){var u=n(e,a,s,r);if(u.done)return u.value}var p=c(r);p||(r=f(r));var m,k=a.global;k&&(m=a.unicode,a.lastIndex=0);for(var D,E=[];null!==(D=b(a,s))&&(A(E,D),k);){""===f(D[0])&&(a.lastIndex=g(s,h(a.lastIndex),m))}for(var S,T="",I=0,M=0;M<E.length;M++){for(var O,P=f((D=E[M])[0]),N=y(w(d(D.index),s.length),0),B=[],L=1;L<D.length;L++)A(B,void 0===(S=D[L])?S:String(S));var j=D.groups;if(p){var R=_([P],B,N,s);void 0!==j&&A(R,j),O=f(i(r,void 0,R))}else O=v(P,s,N,B,j,r);N>=I&&(T+=x(s,I,N)+O,I=N+P.length)}return T+x(s,I)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!D||E)},6642:(t,e,n)=>{"use strict";var i=n(83291),r=n(38135),o=n(5554),a=n(79979),s=n(55784),l=n(73199),c=n(17454),u=n(75364),d=n(26836),h=n(84659),f=n(8360),p=n(70694),g=n(82958),m=n(98472),v=n(12017),b=n(29891),k=n(42307),y=n(85491),w=n(60039),_=n(90714),A=n(8190),C=n(32756),x=n(50452),D=n(18102),E=n(82543),S=n(56651),T=n(27280),I=n(86674),M=n(48314),O=n(48555),P=n(27648),N=n(62680),B=n(52870),L=n(31091),j=n(4176),R=n(24156),z=n(10142).forEach,F=I("hidden"),H="Symbol",V="prototype",U=R.set,W=R.getterFor(H),q=Object[V],$=r.Symbol,Y=$&&$[V],G=r.RangeError,K=r.TypeError,Q=r.QObject,Z=A.f,J=C.f,X=w.f,tt=D.f,et=a([].push),nt=T("symbols"),it=T("op-symbols"),rt=T("wks"),ot=!Q||!Q[V]||!Q[V].findChild,at=function(t,e,n){var i=Z(q,e);i&&delete q[e],J(t,e,n),i&&t!==q&&J(q,e,i)},st=l&&u((function(){return 7!==b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?at:J,lt=function(t,e){var n=nt[t]=b(Y);return U(n,{type:H,tag:t,description:e}),l||(n.description=e),n},ct=function(t,e,n){t===q&&ct(it,e,n),f(t);var i=g(e);return f(n),d(nt,i)?(n.enumerable?(d(t,F)&&t[F][i]&&(t[F][i]=!1),n=b(n,{enumerable:v(0,!1)})):(d(t,F)||J(t,F,v(1,b(null))),t[F][i]=!0),st(t,i,n)):J(t,i,n)},ut=function(t,e){f(t);var n=p(e),i=k(n).concat(pt(n));return z(i,(function(e){l&&!o(dt,n,e)||ct(t,e,n[e])})),t},dt=function(t){var e=g(t),n=o(tt,this,e);return!(this===q&&d(nt,e)&&!d(it,e))&&(!(n||!d(this,e)||!d(nt,e)||d(this,F)&&this[F][e])||n)},ht=function(t,e){var n=p(t),i=g(e);if(n!==q||!d(nt,i)||d(it,i)){var r=Z(n,i);return!r||!d(nt,i)||d(n,F)&&n[F][i]||(r.enumerable=!0),r}},ft=function(t){var e=X(p(t)),n=[];return z(e,(function(t){d(nt,t)||d(M,t)||et(n,t)})),n},pt=function(t){var e=t===q,n=X(e?it:p(t)),i=[];return z(n,(function(t){!d(nt,t)||e&&!d(q,t)||et(i,nt[t])})),i};c||(E(Y=($=function(){if(h(Y,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=O(t),n=function(t){var i=void 0===this?r:this;i===q&&o(n,it,t),d(i,F)&&d(i[F],e)&&(i[F][e]=!1);var a=v(1,t);try{st(i,e,a)}catch(t){if(!(t instanceof G))throw t;at(i,e,a)}};return l&&ot&&st(q,e,{configurable:!0,set:n}),lt(e,t)})[V],"toString",(function(){return W(this).tag})),E($,"withoutSetter",(function(t){return lt(O(t),t)})),D.f=dt,C.f=ct,x.f=ut,A.f=ht,y.f=w.f=ft,_.f=pt,N.f=function(t){return lt(P(t),t)},l&&(S(Y,"description",{configurable:!0,get:function(){return W(this).description}}),s||E(q,"propertyIsEnumerable",dt,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:$}),z(k(rt),(function(t){B(t)})),i({target:H,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:ht}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft}),L(),j($,H),M[F]=!0},74516:(t,e,n)=>{"use strict";var i=n(83291),r=n(73199),o=n(38135),a=n(79979),s=n(26836),l=n(52210),c=n(84659),u=n(98472),d=n(56651),h=n(13747),f=o.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),e=c(p,this)?new f(t):void 0===t?f():f(t);return""===t&&(g[e]=!0),e};h(m,f),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(f("description detection")),b=a(p.valueOf),k=a(p.toString),y=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),_=a("".slice);d(p,"description",{configurable:!0,get:function(){var t=b(this);if(s(g,t))return"";var e=k(t),n=v?_(e,7,-1):w(e,y,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:m})}},84313:(t,e,n)=>{"use strict";var i=n(83291),r=n(71734),o=n(26836),a=n(98472),s=n(27280),l=n(60003),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=r("Symbol")(e);return c[e]=n,u[n]=e,n}})},75826:(t,e,n)=>{"use strict";n(52870)("iterator")},57644:(t,e,n)=>{"use strict";n(6642),n(84313),n(7527),n(67793),n(4840)},7527:(t,e,n)=>{"use strict";var i=n(83291),r=n(26836),o=n(19666),a=n(71384),s=n(27280),l=n(60003),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(r(c,t))return c[t]}})},92536:(t,e,n)=>{"use strict";var i=n(38135),r=n(42399),o=n(91701),a=n(84443),s=n(97362),l=n(4176),c=n(27648)("iterator"),u=a.values,d=function(t,e){if(t){if(t[c]!==u)try{s(t,c,u)}catch(e){t[c]=u}if(l(t,e,!0),r[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var h in r)d(i[h]&&i[h].prototype,h);d(o,"DOMTokenList")},2946:(t,e,n)=>{"use strict";var i=n(83291),r=n(38135),o=n(99565)(r.setInterval,!0);i({global:!0,bind:!0,forced:r.setInterval!==o},{setInterval:o})},96376:(t,e,n)=>{"use strict";var i=n(83291),r=n(38135),o=n(99565)(r.setTimeout,!0);i({global:!0,bind:!0,forced:r.setTimeout!==o},{setTimeout:o})},15782:(t,e,n)=>{"use strict";n(2946),n(96376)},79306:(t,e,n)=>{"use strict";var i=n(94901),r=n(16823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},35548:(t,e,n)=>{"use strict";var i=n(33517),r=n(16823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a constructor")}},73506:(t,e,n)=>{"use strict";var i=n(13925),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},6469:(t,e,n)=>{"use strict";var i=n(78227),r=n(2360),o=n(24913).f,a=i("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},57829:(t,e,n)=>{"use strict";var i=n(68183).charAt;t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},90679:(t,e,n)=>{"use strict";var i=n(1625),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw new r("Incorrect invocation")}},28551:(t,e,n)=>{"use strict";var i=n(20034),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},77811:t=>{"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},15652:(t,e,n)=>{"use strict";var i=n(79039);t.exports=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},94644:(t,e,n)=>{"use strict";var i,r,o,a=n(77811),s=n(43724),l=n(44576),c=n(94901),u=n(20034),d=n(39297),h=n(36955),f=n(16823),p=n(66699),g=n(36840),m=n(62106),v=n(1625),b=n(42787),k=n(52967),y=n(78227),w=n(33392),_=n(91181),A=_.enforce,C=_.get,x=l.Int8Array,D=x&&x.prototype,E=l.Uint8ClampedArray,S=E&&E.prototype,T=x&&b(x),I=D&&b(D),M=Object.prototype,O=l.TypeError,P=y("toStringTag"),N=w("TYPED_ARRAY_TAG"),B="TypedArrayConstructor",L=a&&!!k&&"Opera"!==h(l.opera),j=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},F=function(t){var e=b(t);if(u(e)){var n=C(e);return n&&d(n,B)?n[B]:F(e)}},H=function(t){if(!u(t))return!1;var e=h(t);return d(R,e)||d(z,e)};for(i in R)(o=(r=l[i])&&r.prototype)?A(o)[B]=r:L=!1;for(i in z)(o=(r=l[i])&&r.prototype)&&(A(o)[B]=r);if((!L||!c(T)||T===Function.prototype)&&(T=function(){throw new O("Incorrect invocation")},L))for(i in R)l[i]&&k(l[i],T);if((!L||!I||I===M)&&(I=T.prototype,L))for(i in R)l[i]&&k(l[i].prototype,I);if(L&&b(S)!==I&&k(S,I),s&&!d(I,P))for(i in j=!0,m(I,P,{configurable:!0,get:function(){return u(this)?this[N]:void 0}}),R)l[i]&&p(l[i],N,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:j&&N,aTypedArray:function(t){if(H(t))return t;throw new O("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!k||v(T,t)))return t;throw new O(f(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,i){if(s){if(n)for(var r in R){var o=l[r];if(o&&d(o.prototype,t))try{delete o.prototype[t]}catch(n){try{o.prototype[t]=e}catch(t){}}}I[t]&&!n||g(I,t,n?e:L&&D[t]||e,i)}},exportTypedArrayStaticMethod:function(t,e,n){var i,r;if(s){if(k){if(n)for(i in R)if((r=l[i])&&d(r,t))try{delete r[t]}catch(t){}if(T[t]&&!n)return;try{return g(T,t,n?e:L&&T[t]||e)}catch(t){}}for(i in R)!(r=l[i])||r[t]&&!n||g(r,t,e)}},getTypedArrayConstructor:F,isView:function(t){if(!u(t))return!1;var e=h(t);return"DataView"===e||d(R,e)||d(z,e)},isTypedArray:H,TypedArray:T,TypedArrayPrototype:I}},66346:(t,e,n)=>{"use strict";var i=n(44576),r=n(79504),o=n(43724),a=n(77811),s=n(10350),l=n(66699),c=n(62106),u=n(56279),d=n(79039),h=n(90679),f=n(91291),p=n(18014),g=n(57696),m=n(15617),v=n(88490),b=n(42787),k=n(52967),y=n(84373),w=n(67680),_=n(23167),A=n(77740),C=n(10687),x=n(91181),D=s.PROPER,E=s.CONFIGURABLE,S="ArrayBuffer",T="DataView",I="prototype",M="Wrong index",O=x.getterFor(S),P=x.getterFor(T),N=x.set,B=i[S],L=B,j=L&&L[I],R=i[T],z=R&&R[I],F=Object.prototype,H=i.Array,V=i.RangeError,U=r(y),W=r([].reverse),q=v.pack,$=v.unpack,Y=function(t){return[255&t]},G=function(t){return[255&t,t>>8&255]},K=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Q=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Z=function(t){return q(m(t),23,4)},J=function(t){return q(t,52,8)},X=function(t,e,n){c(t[I],e,{configurable:!0,get:function(){return n(this)[e]}})},tt=function(t,e,n,i){var r=P(t),o=g(n),a=!!i;if(o+e>r.byteLength)throw new V(M);var s=r.bytes,l=o+r.byteOffset,c=w(s,l,l+e);return a?c:W(c)},et=function(t,e,n,i,r,o){var a=P(t),s=g(n),l=i(+r),c=!!o;if(s+e>a.byteLength)throw new V(M);for(var u=a.bytes,d=s+a.byteOffset,h=0;h<e;h++)u[d+h]=l[c?h:e-h-1]};if(a){var nt=D&&B.name!==S;d((function(){B(1)}))&&d((function(){new B(-1)}))&&!d((function(){return new B,new B(1.5),new B(NaN),1!==B.length||nt&&!E}))?nt&&E&&l(B,"name",S):((L=function(t){return h(this,j),_(new B(g(t)),this,L)})[I]=j,j.constructor=L,A(L,B)),k&&b(z)!==F&&k(z,F);var it=new R(new L(2)),rt=r(z.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||u(z,{setInt8:function(t,e){rt(this,t,e<<24>>24)},setUint8:function(t,e){rt(this,t,e<<24>>24)}},{unsafe:!0})}else j=(L=function(t){h(this,j);var e=g(t);N(this,{type:S,bytes:U(H(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)})[I],z=(R=function(t,e,n){h(this,z),h(t,j);var i=O(t),r=i.byteLength,a=f(e);if(a<0||a>r)throw new V("Wrong offset");if(a+(n=void 0===n?r-a:p(n))>r)throw new V("Wrong length");N(this,{type:T,buffer:t,byteLength:n,byteOffset:a,bytes:i.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=a)})[I],o&&(X(L,"byteLength",O),X(R,"buffer",P),X(R,"byteLength",P),X(R,"byteOffset",P)),u(z,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return $(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,Y,e)},setUint8:function(t,e){et(this,1,t,Y,e)},setInt16:function(t,e){et(this,2,t,G,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,G,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,K,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,K,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,Z,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,J,e,arguments.length>2&&arguments[2])}});C(L,S),C(R,T),t.exports={ArrayBuffer:L,DataView:R}},57029:(t,e,n)=>{"use strict";var i=n(48981),r=n(35610),o=n(26198),a=n(84606),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=i(this),l=o(n),c=r(t,l),u=r(e,l),d=arguments.length>2?arguments[2]:void 0,h=s((void 0===d?l:r(d,l))-u,l-c),f=1;for(u<c&&c<u+h&&(f=-1,u+=h-1,c+=h-1);h-- >0;)u in n?n[c]=n[u]:a(n,c),c+=f,u+=f;return n}},84373:(t,e,n)=>{"use strict";var i=n(48981),r=n(35610),o=n(26198);t.exports=function(t){for(var e=i(this),n=o(e),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)e[s++]=t;return e}},90235:(t,e,n)=>{"use strict";var i=n(59213).forEach,r=n(34598)("forEach");t.exports=r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},35370:(t,e,n)=>{"use strict";var i=n(26198);t.exports=function(t,e,n){for(var r=0,o=arguments.length>2?n:i(e),a=new t(o);o>r;)a[r]=e[r++];return a}},97916:(t,e,n)=>{"use strict";var i=n(76080),r=n(69565),o=n(48981),a=n(96319),s=n(44209),l=n(33517),c=n(26198),u=n(97040),d=n(70081),h=n(50851),f=Array;t.exports=function(t){var e=o(t),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=i(g,p>2?arguments[2]:void 0));var v,b,k,y,w,_,A=h(e),C=0;if(!A||this===f&&s(A))for(v=c(e),b=n?new this(v):f(v);v>C;C++)_=m?g(e[C],C):e[C],u(b,C,_);else for(b=n?new this:[],w=(y=d(e,A)).next;!(k=r(w,y)).done;C++)_=m?a(y,g,[k.value,C],!0):k.value,u(b,C,_);return b.length=C,b}},19617:(t,e,n)=>{"use strict";var i=n(25397),r=n(35610),o=n(26198),a=function(t){return function(e,n,a){var s=i(e),l=o(s);if(0===l)return!t&&-1;var c,u=r(a,l);if(t&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},59213:(t,e,n)=>{"use strict";var i=n(76080),r=n(79504),o=n(47055),a=n(48981),s=n(26198),l=n(1469),c=r([].push),u=function(t){var e=1===t,n=2===t,r=3===t,u=4===t,d=6===t,h=7===t,f=5===t||d;return function(p,g,m,v){for(var b,k,y=a(p),w=o(y),_=s(w),A=i(g,m),C=0,x=v||l,D=e?x(p,_):n||h?x(p,0):void 0;_>C;C++)if((f||C in w)&&(k=A(b=w[C],C,y),t))if(e)D[C]=k;else if(k)switch(t){case 3:return!0;case 5:return b;case 6:return C;case 2:c(D,b)}else switch(t){case 4:return!1;case 7:c(D,b)}return d?-1:r||u?u:D}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},8379:(t,e,n)=>{"use strict";var i=n(18745),r=n(25397),o=n(91291),a=n(26198),s=n(34598),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=u||!d;t.exports=h?function(t){if(u)return i(c,this,arguments)||0;var e=r(this),n=a(e);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=l(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},70597:(t,e,n)=>{"use strict";var i=n(79039),r=n(78227),o=n(39519),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},34598:(t,e,n)=>{"use strict";var i=n(79039);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},80926:(t,e,n)=>{"use strict";var i=n(79306),r=n(48981),o=n(47055),a=n(26198),s=TypeError,l="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,u){var d=r(e),h=o(d),f=a(d);if(i(n),0===f&&c<2)throw new s(l);var p=t?f-1:0,g=t?-1:1;if(c<2)for(;;){if(p in h){u=h[p],p+=g;break}if(p+=g,t?p<0:f<=p)throw new s(l)}for(;t?p>=0:f>p;p+=g)p in h&&(u=n(u,h[p],p,d));return u}};t.exports={left:c(!1),right:c(!0)}},34527:(t,e,n)=>{"use strict";var i=n(43724),r=n(34376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},67680:(t,e,n)=>{"use strict";var i=n(79504);t.exports=i([].slice)},74488:(t,e,n)=>{"use strict";var i=n(67680),r=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=t[l];s&&e(t[s-1],a)>0;)t[s]=t[--s];s!==l++&&(t[s]=a)}else for(var c=r(n/2),u=o(i(t,0,c),e),d=o(i(t,c),e),h=u.length,f=d.length,p=0,g=0;p<h||g<f;)t[p+g]=p<h&&g<f?e(u[p],d[g])<=0?u[p++]:d[g++]:p<h?u[p++]:d[g++];return t};t.exports=o},87433:(t,e,n)=>{"use strict";var i=n(34376),r=n(33517),o=n(20034),a=n(78227)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===s||i(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},1469:(t,e,n)=>{"use strict";var i=n(87433);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},96319:(t,e,n)=>{"use strict";var i=n(28551),r=n(9539);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e)}}},84428:(t,e,n)=>{"use strict";var i=n(78227)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},22195:(t,e,n)=>{"use strict";var i=n(79504),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},36955:(t,e,n)=>{"use strict";var i=n(92140),r=n(94901),o=n(22195),a=n(78227)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:l?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},86938:(t,e,n)=>{"use strict";var i=n(2360),r=n(62106),o=n(56279),a=n(76080),s=n(90679),l=n(64117),c=n(72652),u=n(51088),d=n(62529),h=n(87633),f=n(43724),p=n(3451).fastKey,g=n(91181),m=g.set,v=g.getterFor;t.exports={getConstructor:function(t,e,n,u){var d=t((function(t,r){s(t,h),m(t,{type:e,index:i(null),first:null,last:null,size:0}),f||(t.size=0),l(r)||c(r,t[u],{that:t,AS_ENTRIES:n})})),h=d.prototype,g=v(e),b=function(t,e,n){var i,r,o=g(t),a=k(t,e);return a?a.value=n:(o.last=a={index:r=p(e,!0),key:e,value:n,previous:i=o.last,next:null,removed:!1},o.first||(o.first=a),i&&(i.next=a),f?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},k=function(t,e){var n,i=g(t),r=p(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key===e)return n};return o(h,{clear:function(){for(var t=g(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=i(null),f?t.size=0:this.size=0},delete:function(t){var e=this,n=g(e),i=k(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first===i&&(n.first=r),n.last===i&&(n.last=o),f?n.size--:e.size--}return!!i},forEach:function(t){for(var e,n=g(this),i=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!k(this,t)}}),o(h,n?{get:function(t){var e=k(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),f&&r(h,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(t,e,n){var i=e+" Iterator",r=v(e),o=v(i);u(t,e,(function(t,e){m(this,{type:i,target:t,state:r(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?d("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,d(void 0,!0))}),n?"entries":"values",!n,!0),h(e)}}},91625:(t,e,n)=>{"use strict";var i=n(79504),r=n(56279),o=n(3451).getWeakData,a=n(90679),s=n(28551),l=n(64117),c=n(20034),u=n(72652),d=n(59213),h=n(39297),f=n(91181),p=f.set,g=f.getterFor,m=d.find,v=d.findIndex,b=i([].splice),k=0,y=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},_=function(t,e){return m(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=_(this,t);if(e)return e[1]},has:function(t){return!!_(this,t)},set:function(t,e){var n=_(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&b(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var d=t((function(t,r){a(t,f),p(t,{type:e,id:k++,frozen:null}),l(r)||u(r,t[i],{that:t,AS_ENTRIES:n})})),f=d.prototype,m=g(e),v=function(t,e,n){var i=m(t),r=o(s(e),!0);return!0===r?y(i).set(e,n):r[i.id]=n,t};return r(f,{delete:function(t){var e=m(this);if(!c(t))return!1;var n=o(t);return!0===n?y(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=m(this);if(!c(t))return!1;var n=o(t);return!0===n?y(e).has(t):n&&h(n,e.id)}}),r(f,n?{get:function(t){var e=m(this);if(c(t)){var n=o(t);if(!0===n)return y(e).get(t);if(n)return n[e.id]}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),d}}},16468:(t,e,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(79504),a=n(92796),s=n(36840),l=n(3451),c=n(72652),u=n(90679),d=n(94901),h=n(64117),f=n(20034),p=n(79039),g=n(84428),m=n(10687),v=n(23167);t.exports=function(t,e,n){var b=-1!==t.indexOf("Map"),k=-1!==t.indexOf("Weak"),y=b?"set":"add",w=r[t],_=w&&w.prototype,A=w,C={},x=function(t){var e=o(_[t]);s(_,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(k&&!f(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return k&&!f(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(k&&!f(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(a(t,!d(w)||!(k||_.forEach&&!p((function(){(new w).entries().next()})))))A=n.getConstructor(e,t,b,y),l.enable();else if(a(t,!0)){var D=new A,E=D[y](k?{}:-0,1)!==D,S=p((function(){D.has(1)})),T=g((function(t){new w(t)})),I=!k&&p((function(){for(var t=new w,e=5;e--;)t[y](e,e);return!t.has(-0)}));T||((A=e((function(t,e){u(t,_);var n=v(new w,t,A);return h(e)||c(e,n[y],{that:n,AS_ENTRIES:b}),n}))).prototype=_,_.constructor=A),(S||I)&&(x("delete"),x("has"),b&&x("get")),(I||E)&&x(y),k&&_.clear&&delete _.clear}return C[t]=A,i({global:!0,constructor:!0,forced:A!==w},C),m(A,t),k||n.setStrong(A,t,b),A}},77740:(t,e,n)=>{"use strict";var i=n(39297),r=n(35031),o=n(77347),a=n(24913);t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},41436:(t,e,n)=>{"use strict";var i=n(78227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(t){}}return!1}},12211:(t,e,n)=>{"use strict";var i=n(79039);t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},77240:(t,e,n)=>{"use strict";var i=n(79504),r=n(67750),o=n(655),a=/"/g,s=i("".replace);t.exports=function(t,e,n,i){var l=o(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(o(i),a,"&quot;")+'"'),c+">"+l+"</"+e+">"}},62529:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},66699:(t,e,n)=>{"use strict";var i=n(43724),r=n(24913),o=n(6980);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},97040:(t,e,n)=>{"use strict";var i=n(43724),r=n(24913),o=n(6980);t.exports=function(t,e,n){i?r.f(t,e,o(0,n)):t[e]=n}},53640:(t,e,n)=>{"use strict";var i=n(28551),r=n(84270),o=TypeError;t.exports=function(t){if(i(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return r(this,t)}},62106:(t,e,n)=>{"use strict";var i=n(50283),r=n(24913);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},36840:(t,e,n)=>{"use strict";var i=n(94901),r=n(24913),o=n(50283),a=n(39433);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},56279:(t,e,n)=>{"use strict";var i=n(36840);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},39433:(t,e,n)=>{"use strict";var i=n(44576),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},84606:(t,e,n)=>{"use strict";var i=n(16823),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+i(e)+" of "+i(t))}},43724:(t,e,n)=>{"use strict";var i=n(79039);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(t,e,n)=>{"use strict";var i=n(44576),r=n(20034),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},96837:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},67400:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:(t,e,n)=>{"use strict";var i=n(4055)("span").classList,r=i&&i.constructor&&i.constructor.prototype;t.exports=r===Object.prototype?void 0:r},88727:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},13709:(t,e,n)=>{"use strict";var i=n(82839).match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},13763:(t,e,n)=>{"use strict";var i=n(82839);t.exports=/MSIE|Trident/.test(i)},44265:(t,e,n)=>{"use strict";var i=n(82839);t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},89544:(t,e,n)=>{"use strict";var i=n(82839);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},16193:(t,e,n)=>{"use strict";var i=n(84215);t.exports="NODE"===i},7860:(t,e,n)=>{"use strict";var i=n(82839);t.exports=/web0s(?!.*chrome)/i.test(i)},82839:(t,e,n)=>{"use strict";var i=n(44576).navigator,r=i&&i.userAgent;t.exports=r?String(r):""},39519:(t,e,n)=>{"use strict";var i,r,o=n(44576),a=n(82839),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},3607:(t,e,n)=>{"use strict";var i=n(82839).match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},84215:(t,e,n)=>{"use strict";var i=n(44576),r=n(82839),o=n(22195),a=function(t){return r.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},46518:(t,e,n)=>{"use strict";var i=n(44576),r=n(77347).f,o=n(66699),a=n(36840),s=n(39433),l=n(77740),c=n(92796);t.exports=function(t,e){var n,u,d,h,f,p=t.target,g=t.global,m=t.stat;if(n=g?i:m?i[p]||s(p,{}):i[p]&&i[p].prototype)for(u in e){if(h=e[u],d=t.dontCallGetSet?(f=r(n,u))&&f.value:n[u],!c(g?u:p+(m?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,t)}}},79039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},89228:(t,e,n)=>{"use strict";n(27495);var i=n(69565),r=n(36840),o=n(57323),a=n(79039),s=n(78227),l=n(66699),c=s("species"),u=RegExp.prototype;t.exports=function(t,e,n,d){var h=s(t),f=!a((function(){var e={};return e[h]=function(){return 7},7!==""[t](e)})),p=f&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!f||!p||n){var g=/./[h],m=e(h,""[t],(function(t,e,n,r,a){var s=e.exec;return s===o||s===u.exec?f&&!a?{done:!0,value:i(g,e,n,r)}:{done:!0,value:i(t,n,e,r)}:{done:!1}}));r(String.prototype,t,m[0]),r(u,h,m[1])}d&&l(u[h],"sham",!0)}},70259:(t,e,n)=>{"use strict";var i=n(34376),r=n(26198),o=n(96837),a=n(76080),s=function(t,e,n,l,c,u,d,h){for(var f,p,g=c,m=0,v=!!d&&a(d,h);m<l;)m in n&&(f=v?v(n[m],m,e):n[m],u>0&&i(f)?(p=r(f),g=s(t,e,f,p,g,u-1)-1):(o(g+1),t[g]=f),g++),m++;return g};t.exports=s},92744:(t,e,n)=>{"use strict";var i=n(79039);t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},18745:(t,e,n)=>{"use strict";var i=n(40616),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},76080:(t,e,n)=>{"use strict";var i=n(27476),r=n(79306),o=n(40616),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},40616:(t,e,n)=>{"use strict";var i=n(79039);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},30566:(t,e,n)=>{"use strict";var i=n(79504),r=n(79306),o=n(20034),a=n(39297),s=n(67680),l=n(40616),c=Function,u=i([].concat),d=i([].join),h={};t.exports=l?c.bind:function(t){var e=r(this),n=e.prototype,i=s(arguments,1),l=function(){var n=u(i,s(arguments));return this instanceof l?function(t,e,n){if(!a(h,e)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";h[e]=c("C,a","return new C("+d(i,",")+")")}return h[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(l.prototype=n),l}},69565:(t,e,n)=>{"use strict";var i=n(40616),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},10350:(t,e,n)=>{"use strict";var i=n(43724),r=n(39297),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},46706:(t,e,n)=>{"use strict";var i=n(79504),r=n(79306);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},27476:(t,e,n)=>{"use strict";var i=n(22195),r=n(79504);t.exports=function(t){if("Function"===i(t))return r(t)}},79504:(t,e,n)=>{"use strict";var i=n(40616),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},97751:(t,e,n)=>{"use strict";var i=n(44576),r=n(94901);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},50851:(t,e,n)=>{"use strict";var i=n(36955),r=n(55966),o=n(64117),a=n(26269),s=n(78227)("iterator");t.exports=function(t){if(!o(t))return r(t,s)||r(t,"@@iterator")||a[i(t)]}},70081:(t,e,n)=>{"use strict";var i=n(69565),r=n(79306),o=n(28551),a=n(16823),s=n(50851),l=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(r(n))return o(i(n,t));throw new l(a(t)+" is not iterable")}},66933:(t,e,n)=>{"use strict";var i=n(79504),r=n(34376),o=n(94901),a=n(22195),s=n(655),l=i([].push);t.exports=function(t){if(o(t))return t;if(r(t)){for(var e=t.length,n=[],i=0;i<e;i++){var c=t[i];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var u=n.length,d=!0;return function(t,e){if(d)return d=!1,e;if(r(this))return e;for(var i=0;i<u;i++)if(n[i]===t)return e}}}},55966:(t,e,n)=>{"use strict";var i=n(79306),r=n(64117);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},2478:(t,e,n)=>{"use strict";var i=n(79504),r=n(48981),o=Math.floor,a=i("".charAt),s=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,i,d,h){var f=n+t.length,p=i.length,g=u;return void 0!==d&&(d=r(d),g=c),s(h,g,(function(r,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,f);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return r;if(u>p){var h=o(u/10);return 0===h?r:h<=p?void 0===i[h-1]?a(s,1):i[h-1]+a(s,1):r}c=i[u-1]}return void 0===c?"":c}))}},44576:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(t,e,n)=>{"use strict";var i=n(79504),r=n(48981),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},30421:t=>{"use strict";t.exports={}},90757:t=>{"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},20397:(t,e,n)=>{"use strict";var i=n(97751);t.exports=i("document","documentElement")},35917:(t,e,n)=>{"use strict";var i=n(43724),r=n(79039),o=n(4055);t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},88490:t=>{"use strict";var e=Array,n=Math.abs,i=Math.pow,r=Math.floor,o=Math.log,a=Math.LN2;t.exports={pack:function(t,s,l){var c,u,d,h=e(l),f=8*l-s-1,p=(1<<f)-1,g=p>>1,m=23===s?i(2,-24)-i(2,-77):0,v=t<0||0===t&&1/t<0?1:0,b=0;for((t=n(t))!=t||t===1/0?(u=t!=t?1:0,c=p):(c=r(o(t)/a),t*(d=i(2,-c))<1&&(c--,d*=2),(t+=c+g>=1?m/d:m*i(2,1-g))*d>=2&&(c++,d/=2),c+g>=p?(u=0,c=p):c+g>=1?(u=(t*d-1)*i(2,s),c+=g):(u=t*i(2,g-1)*i(2,s),c=0));s>=8;)h[b++]=255&u,u/=256,s-=8;for(c=c<<s|u,f+=s;f>0;)h[b++]=255&c,c/=256,f-=8;return h[b-1]|=128*v,h},unpack:function(t,e){var n,r=t.length,o=8*r-e-1,a=(1<<o)-1,s=a>>1,l=o-7,c=r-1,u=t[c--],d=127&u;for(u>>=7;l>0;)d=256*d+t[c--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=e;l>0;)n=256*n+t[c--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:u?-1/0:1/0;n+=i(2,e),d-=s}return(u?-1:1)*n*i(2,d-e)}}},47055:(t,e,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(22195),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},23167:(t,e,n)=>{"use strict";var i=n(94901),r=n(20034),o=n(52967);t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},33706:(t,e,n)=>{"use strict";var i=n(79504),r=n(94901),o=n(77629),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},3451:(t,e,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(30421),a=n(20034),s=n(39297),l=n(24913).f,c=n(38480),u=n(10298),d=n(34124),h=n(33392),f=n(92744),p=!1,g=h("meta"),m=0,v=function(t){l(t,g,{value:{objectID:"O"+m++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},p=!0;var t=c.f,e=r([].splice),n={};n[g]=1,t(n).length&&(c.f=function(n){for(var i=t(n),r=0,o=i.length;r<o;r++)if(i[r]===g){e(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,g)){if(!d(t))return"F";if(!e)return"E";v(t)}return t[g].objectID},getWeakData:function(t,e){if(!s(t,g)){if(!d(t))return!0;if(!e)return!1;v(t)}return t[g].weakData},onFreeze:function(t){return f&&p&&d(t)&&!s(t,g)&&v(t),t}};o[g]=!0},91181:(t,e,n)=>{"use strict";var i,r,o,a=n(58622),s=n(44576),l=n(20034),c=n(66699),u=n(39297),d=n(77629),h=n(66119),f=n(30421),p="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||d.state){var v=d.state||(d.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw new g(p);return e.facade=t,v.set(t,e),e},r=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var b=h("state");f[b]=!0,i=function(t,e){if(u(t,b))throw new g(p);return e.facade=t,c(t,b,e),e},r=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}}}},44209:(t,e,n)=>{"use strict";var i=n(78227),r=n(26269),o=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},34376:(t,e,n)=>{"use strict";var i=n(22195);t.exports=Array.isArray||function(t){return"Array"===i(t)}},18727:(t,e,n)=>{"use strict";var i=n(36955);t.exports=function(t){var e=i(t);return"BigInt64Array"===e||"BigUint64Array"===e}},94901:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},33517:(t,e,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(94901),a=n(36955),s=n(97751),l=n(33706),c=function(){},u=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=i(d.exec),f=!d.test(c),p=function(t){if(!o(t))return!1;try{return u(c,[],t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!u||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?g:p},16575:(t,e,n)=>{"use strict";var i=n(39297);t.exports=function(t){return void 0!==t&&(i(t,"value")||i(t,"writable"))}},92796:(t,e,n)=>{"use strict";var i=n(79039),r=n(94901),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},2087:(t,e,n)=>{"use strict";var i=n(20034),r=Math.floor;t.exports=Number.isInteger||function(t){return!i(t)&&isFinite(t)&&r(t)===t}},64117:t=>{"use strict";t.exports=function(t){return null==t}},20034:(t,e,n)=>{"use strict";var i=n(94901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},13925:(t,e,n)=>{"use strict";var i=n(20034);t.exports=function(t){return i(t)||null===t}},96395:t=>{"use strict";t.exports=!1},60788:(t,e,n)=>{"use strict";var i=n(20034),r=n(22195),o=n(78227)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===r(t))}},10757:(t,e,n)=>{"use strict";var i=n(97751),r=n(94901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},72652:(t,e,n)=>{"use strict";var i=n(76080),r=n(69565),o=n(28551),a=n(16823),s=n(44209),l=n(26198),c=n(1625),u=n(70081),d=n(50851),h=n(9539),f=TypeError,p=function(t,e){this.stopped=t,this.result=e},g=p.prototype;t.exports=function(t,e,n){var m,v,b,k,y,w,_,A=n&&n.that,C=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),D=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),S=i(e,A),T=function(t){return m&&h(m,"normal",t),new p(!0,t)},I=function(t){return C?(o(t),E?S(t[0],t[1],T):S(t[0],t[1])):E?S(t,T):S(t)};if(x)m=t.iterator;else if(D)m=t;else{if(!(v=d(t)))throw new f(a(t)+" is not iterable");if(s(v)){for(b=0,k=l(t);k>b;b++)if((y=I(t[b]))&&c(g,y))return y;return new p(!1)}m=u(t,v)}for(w=x?t.next:m.next;!(_=r(w,m)).done;){try{y=I(_.value)}catch(t){h(m,"throw",t)}if("object"==typeof y&&y&&c(g,y))return y}return new p(!1)}},9539:(t,e,n)=>{"use strict";var i=n(69565),r=n(28551),o=n(55966);t.exports=function(t,e,n){var a,s;r(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=i(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return r(a),n}},33994:(t,e,n)=>{"use strict";var i=n(57657).IteratorPrototype,r=n(2360),o=n(6980),a=n(10687),s=n(26269),l=function(){return this};t.exports=function(t,e,n,c){var u=e+" Iterator";return t.prototype=r(i,{next:o(+!c,n)}),a(t,u,!1,!0),s[u]=l,t}},51088:(t,e,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(96395),a=n(10350),s=n(94901),l=n(33994),c=n(42787),u=n(52967),d=n(10687),h=n(66699),f=n(36840),p=n(78227),g=n(26269),m=n(57657),v=a.PROPER,b=a.CONFIGURABLE,k=m.IteratorPrototype,y=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),_="keys",A="values",C="entries",x=function(){return this};t.exports=function(t,e,n,a,p,m,D){l(n,e,a);var E,S,T,I=function(t){if(t===p&&B)return B;if(!y&&t&&t in P)return P[t];switch(t){case _:case A:case C:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",O=!1,P=t.prototype,N=P[w]||P["@@iterator"]||p&&P[p],B=!y&&N||I(p),L="Array"===e&&P.entries||N;if(L&&(E=c(L.call(new t)))!==Object.prototype&&E.next&&(o||c(E)===k||(u?u(E,k):s(E[w])||f(E,w,x)),d(E,M,!0,!0),o&&(g[M]=x)),v&&p===A&&N&&N.name!==A&&(!o&&b?h(P,"name",A):(O=!0,B=function(){return r(N,this)})),p)if(S={values:I(A),keys:m?B:I(_),entries:I(C)},D)for(T in S)(y||O||!(T in P))&&f(P,T,S[T]);else i({target:e,proto:!0,forced:y||O},S);return o&&!D||P[w]===B||f(P,w,B,{name:p}),g[e]=B,S}},57657:(t,e,n)=>{"use strict";var i,r,o,a=n(79039),s=n(94901),l=n(20034),c=n(2360),u=n(42787),d=n(36840),h=n(78227),f=n(96395),p=h("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(r=u(u(o)))!==Object.prototype&&(i=r):g=!0),!l(i)||a((function(){var t={};return i[p].call(t)!==t}))?i={}:f&&(i=c(i)),s(i[p])||d(i,p,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},26269:t=>{"use strict";t.exports={}},26198:(t,e,n)=>{"use strict";var i=n(18014);t.exports=function(t){return i(t.length)}},50283:(t,e,n)=>{"use strict";var i=n(79504),r=n(79039),o=n(94901),a=n(39297),s=n(43724),l=n(10350).CONFIGURABLE,c=n(33706),u=n(91181),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),b=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),k=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===g(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return a(i,"source")||(i.source=v(k,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&h(this).source||c(this)}),"toString")},33164:(t,e,n)=>{"use strict";var i=n(77782),r=Math.abs,o=2220446049250313e-31,a=1/o;t.exports=function(t,e,n,s){var l=+t,c=r(l),u=i(l);if(c<s)return u*function(t){return t+a-a}(c/s/e)*s*e;var d=(1+e/o)*c,h=d-(d-c);return h>n||h!=h?u*(1/0):u*h}},15617:(t,e,n)=>{"use strict";var i=n(33164);t.exports=Math.fround||function(t){return i(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},77782:t=>{"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},80741:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},91955:(t,e,n)=>{"use strict";var i,r,o,a,s,l=n(44576),c=n(93389),u=n(76080),d=n(59225).set,h=n(18265),f=n(89544),p=n(44265),g=n(7860),m=n(16193),v=l.MutationObserver||l.WebKitMutationObserver,b=l.document,k=l.process,y=l.Promise,w=c("queueMicrotask");if(!w){var _=new h,A=function(){var t,e;for(m&&(t=k.domain)&&t.exit();e=_.get();)try{e()}catch(t){throw _.head&&i(),t}t&&t.enter()};f||m||g||!v||!b?!p&&y&&y.resolve?((a=y.resolve(void 0)).constructor=y,s=u(a.then,a),i=function(){s(A)}):m?i=function(){k.nextTick(A)}:(d=u(d,l),i=function(){d(A)}):(r=!0,o=b.createTextNode(""),new v(A).observe(o,{characterData:!0}),i=function(){o.data=r=!r}),w=function(t){_.head||i(),_.add(t)}}t.exports=w},36043:(t,e,n)=>{"use strict";var i=n(79306),r=TypeError,o=function(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw new r("Bad Promise constructor");e=t,n=i})),this.resolve=i(e),this.reject=i(n)};t.exports.f=function(t){return new o(t)}},60511:(t,e,n)=>{"use strict";var i=n(60788),r=TypeError;t.exports=function(t){if(i(t))throw new r("The method doesn't accept regular expressions");return t}},33904:(t,e,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(79504),a=n(655),s=n(43802).trim,l=n(47452),c=o("".charAt),u=i.parseFloat,d=i.Symbol,h=d&&d.iterator,f=1/u(l+"-0")!=-1/0||h&&!r((function(){u(Object(h))}));t.exports=f?function(t){var e=s(a(t)),n=u(e);return 0===n&&"-"===c(e,0)?-0:n}:u},52703:(t,e,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(79504),a=n(655),s=n(43802).trim,l=n(47452),c=i.parseInt,u=i.Symbol,d=u&&u.iterator,h=/^[+-]?0x/i,f=o(h.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||d&&!r((function(){c(Object(d))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(f(h,n)?16:10))}:c},44213:(t,e,n)=>{"use strict";var i=n(43724),r=n(79504),o=n(69565),a=n(79039),s=n(71072),l=n(33717),c=n(48773),u=n(48981),d=n(47055),h=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!h||a((function(){if(i&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==h({},t)[n]||s(h({},e)).join("")!==r}))?function(t,e){for(var n=u(t),r=arguments.length,a=1,h=l.f,f=c.f;r>a;)for(var g,m=d(arguments[a++]),v=h?p(s(m),h(m)):s(m),b=v.length,k=0;b>k;)g=v[k++],i&&!o(f,m,g)||(n[g]=m[g]);return n}:h},2360:(t,e,n)=>{"use strict";var i,r=n(28551),o=n(96801),a=n(88727),s=n(30421),l=n(20397),c=n(4055),u=n(66119),d="prototype",h="script",f=u("IE_PROTO"),p=function(){},g=function(t){return"<"+h+">"+t+"</"+h+">"},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v="undefined"!=typeof document?document.domain&&i?m(i):(e=c("iframe"),n="java"+h+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):m(i);for(var r=a.length;r--;)delete v[d][a[r]];return v()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[d]=r(t),n=new p,p[d]=null,n[f]=t):n=v(),void 0===e?n:o.f(n,e)}},96801:(t,e,n)=>{"use strict";var i=n(43724),r=n(48686),o=n(24913),a=n(28551),s=n(25397),l=n(71072);e.f=i&&!r?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),r=l(e),c=r.length,u=0;c>u;)o.f(t,n=r[u++],i[n]);return t}},24913:(t,e,n)=>{"use strict";var i=n(43724),r=n(35917),o=n(48686),a=n(28551),s=n(56969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var i=u(t,e);i&&i[f]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},77347:(t,e,n)=>{"use strict";var i=n(43724),r=n(69565),o=n(48773),a=n(6980),s=n(25397),l=n(56969),c=n(39297),u=n(35917),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=l(e),u)try{return d(t,e)}catch(t){}if(c(t,e))return a(!r(o.f,t,e),t[e])}},10298:(t,e,n)=>{"use strict";var i=n(22195),r=n(25397),o=n(38480).f,a=n(67680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===i(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(r(t))}},38480:(t,e,n)=>{"use strict";var i=n(61828),r=n(88727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},33717:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},42787:(t,e,n)=>{"use strict";var i=n(39297),r=n(94901),o=n(48981),a=n(66119),s=n(12211),l=a("IE_PROTO"),c=Object,u=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(i(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},34124:(t,e,n)=>{"use strict";var i=n(79039),r=n(20034),o=n(22195),a=n(15652),s=Object.isExtensible,l=i((function(){s(1)}));t.exports=l||a?function(t){return!!r(t)&&((!a||"ArrayBuffer"!==o(t))&&(!s||s(t)))}:s},1625:(t,e,n)=>{"use strict";var i=n(79504);t.exports=i({}.isPrototypeOf)},61828:(t,e,n)=>{"use strict";var i=n(79504),r=n(39297),o=n(25397),a=n(19617).indexOf,s=n(30421),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);for(;e.length>c;)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},71072:(t,e,n)=>{"use strict";var i=n(61828),r=n(88727);t.exports=Object.keys||function(t){return i(t,r)}},48773:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},52967:(t,e,n)=>{"use strict";var i=n(46706),r=n(20034),o=n(67750),a=n(73506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),a(i),r(n)?(e?t(n,i):n.__proto__=i,n):n}}():void 0)},32357:(t,e,n)=>{"use strict";var i=n(43724),r=n(79039),o=n(79504),a=n(42787),s=n(71072),l=n(25397),c=o(n(48773).f),u=o([].push),d=i&&r((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),h=function(t){return function(e){for(var n,r=l(e),o=s(r),h=d&&null===a(r),f=o.length,p=0,g=[];f>p;)n=o[p++],i&&!(h?n in r:c(r,n))||u(g,t?[n,r[n]]:r[n]);return g}};t.exports={entries:h(!0),values:h(!1)}},53179:(t,e,n)=>{"use strict";var i=n(92140),r=n(36955);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},84270:(t,e,n)=>{"use strict";var i=n(69565),r=n(94901),o=n(20034),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},35031:(t,e,n)=>{"use strict";var i=n(97751),r=n(79504),o=n(38480),a=n(33717),s=n(28551),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},19167:(t,e,n)=>{"use strict";var i=n(44576);t.exports=i},1103:t=>{"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},10916:(t,e,n)=>{"use strict";var i=n(44576),r=n(80550),o=n(94901),a=n(92796),s=n(33706),l=n(78227),c=n(84215),u=n(96395),d=n(39519),h=r&&r.prototype,f=l("species"),p=!1,g=o(i.PromiseRejectionEvent),m=a("Promise",(function(){var t=s(r),e=t!==String(r);if(!e&&66===d)return!0;if(u&&(!h.catch||!h.finally))return!0;if(!d||d<51||!/native code/.test(t)){var n=new r((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))};if((n.constructor={})[f]=i,!(p=n.then((function(){}))instanceof i))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||g)}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},80550:(t,e,n)=>{"use strict";var i=n(44576);t.exports=i.Promise},93438:(t,e,n)=>{"use strict";var i=n(28551),r=n(20034),o=n(36043);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},90537:(t,e,n)=>{"use strict";var i=n(80550),r=n(84428),o=n(10916).CONSTRUCTOR;t.exports=o||!r((function(t){i.all(t).then(void 0,(function(){}))}))},11056:(t,e,n)=>{"use strict";var i=n(24913).f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},18265:t=>{"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},56682:(t,e,n)=>{"use strict";var i=n(69565),r=n(28551),o=n(94901),a=n(22195),s=n(57323),l=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=i(n,t,e);return null!==c&&r(c),c}if("RegExp"===a(t))return i(s,t,e);throw new l("RegExp#exec called on incompatible receiver")}},57323:(t,e,n)=>{"use strict";var i,r,o=n(69565),a=n(79504),s=n(655),l=n(67979),c=n(58429),u=n(25745),d=n(2360),h=n(91181).get,f=n(83635),p=n(18814),g=u("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,v=m,b=a("".charAt),k=a("".indexOf),y=a("".replace),w=a("".slice),_=(r=/b*/g,o(m,i=/a/,"a"),o(m,r,"a"),0!==i.lastIndex||0!==r.lastIndex),A=c.BROKEN_CARET,C=void 0!==/()??/.exec("")[1];(_||C||A||f||p)&&(v=function(t){var e,n,i,r,a,c,u,f=this,p=h(f),x=s(t),D=p.raw;if(D)return D.lastIndex=f.lastIndex,e=o(v,D,x),f.lastIndex=D.lastIndex,e;var E=p.groups,S=A&&f.sticky,T=o(l,f),I=f.source,M=0,O=x;if(S&&(T=y(T,"y",""),-1===k(T,"g")&&(T+="g"),O=w(x,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==b(x,f.lastIndex-1))&&(I="(?: "+I+")",O=" "+O,M++),n=new RegExp("^(?:"+I+")",T)),C&&(n=new RegExp("^"+I+"$(?!\\s)",T)),_&&(i=f.lastIndex),r=o(m,S?n:f,O),S?r?(r.input=w(r.input,M),r[0]=w(r[0],M),r.index=f.lastIndex,f.lastIndex+=r[0].length):f.lastIndex=0:_&&r&&(f.lastIndex=f.global?r.index+r[0].length:i),C&&r&&r.length>1&&o(g,r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r&&E)for(r.groups=c=d(null),a=0;a<E.length;a++)c[(u=E[a])[0]]=r[u[1]];return r}),t.exports=v},67979:(t,e,n)=>{"use strict";var i=n(28551);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},61034:(t,e,n)=>{"use strict";var i=n(69565),r=n(39297),o=n(1625),a=n(67979),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!o(s,t)?e:i(a,t)}},58429:(t,e,n)=>{"use strict";var i=n(79039),r=n(44576).RegExp,o=i((function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=o||i((function(){return!r("a","y").sticky})),s=o||i((function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},83635:(t,e,n)=>{"use strict";var i=n(79039),r=n(44576).RegExp;t.exports=i((function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},18814:(t,e,n)=>{"use strict";var i=n(79039),r=n(44576).RegExp;t.exports=i((function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},67750:(t,e,n)=>{"use strict";var i=n(64117),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},93389:(t,e,n)=>{"use strict";var i=n(44576),r=n(43724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!r)return i[t];var e=o(i,t);return e&&e.value}},3470:t=>{"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},79472:(t,e,n)=>{"use strict";var i,r=n(44576),o=n(18745),a=n(94901),s=n(84215),l=n(82839),c=n(67680),u=n(22812),d=r.Function,h=/MSIE .\./.test(l)||"BUN"===s&&((i=r.Bun.version.split(".")).length<3||"0"===i[0]&&(i[1]<3||"3"===i[1]&&"0"===i[2]));t.exports=function(t,e){var n=e?2:1;return h?function(i,r){var s=u(arguments.length,1)>n,l=a(i)?i:d(i),h=s?c(arguments,n):[],f=s?function(){o(l,this,h)}:l;return e?t(f,r):t(f)}:t}},87633:(t,e,n)=>{"use strict";var i=n(97751),r=n(62106),o=n(78227),a=n(43724),s=o("species");t.exports=function(t){var e=i(t);a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},10687:(t,e,n)=>{"use strict";var i=n(24913).f,r=n(39297),o=n(78227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},66119:(t,e,n)=>{"use strict";var i=n(25745),r=n(33392),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},77629:(t,e,n)=>{"use strict";var i=n(96395),r=n(44576),o=n(39433),a="__core-js_shared__",s=t.exports=r[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.39.0",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:(t,e,n)=>{"use strict";var i=n(77629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},2293:(t,e,n)=>{"use strict";var i=n(28551),r=n(35548),o=n(64117),a=n(78227)("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||o(n=i(s)[a])?e:r(n)}},23061:(t,e,n)=>{"use strict";var i=n(79039);t.exports=function(t){return i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},68183:(t,e,n)=>{"use strict";var i=n(79504),r=n(91291),o=n(655),a=n(67750),s=i("".charAt),l=i("".charCodeAt),c=i("".slice),u=function(t){return function(e,n){var i,u,d=o(a(e)),h=r(n),f=d.length;return h<0||h>=f?t?"":void 0:(i=l(d,h))<55296||i>56319||h+1===f||(u=l(d,h+1))<56320||u>57343?t?s(d,h):i:t?c(d,h,h+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},3717:(t,e,n)=>{"use strict";var i=n(79504),r=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,c=i(a.exec),u=Math.floor,d=String.fromCharCode,h=i("".charCodeAt),f=i([].join),p=i([].push),g=i("".replace),m=i("".split),v=i("".toLowerCase),b=function(t){return t+22+75*(t<26)},k=function(t,e,n){var i=0;for(t=n?u(t/700):t>>1,t+=u(t/e);t>455;)t=u(t/35),i+=36;return u(i+36*t/(t+38))},y=function(t){var e=[];t=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=h(t,n++);if(r>=55296&&r<=56319&&n<i){var o=h(t,n++);56320==(64512&o)?p(e,((1023&r)<<10)+(1023&o)+65536):(p(e,r),n--)}else p(e,r)}return e}(t);var n,i,o=t.length,a=128,c=0,g=72;for(n=0;n<t.length;n++)(i=t[n])<128&&p(e,d(i));var m=e.length,v=m;for(m&&p(e,"-");v<o;){var y=r;for(n=0;n<t.length;n++)(i=t[n])>=a&&i<y&&(y=i);var w=v+1;if(y-a>u((r-c)/w))throw new l(s);for(c+=(y-a)*w,a=y,n=0;n<t.length;n++){if((i=t[n])<a&&++c>r)throw new l(s);if(i===a){for(var _=c,A=36;;){var C=A<=g?1:A>=g+26?26:A-g;if(_<C)break;var x=_-C,D=36-C;p(e,d(b(C+x%D))),_=u(x/D),A+=36}p(e,d(b(_))),g=k(c,w,v===m),c=0,v++}}c++,a++}return f(e,"")};t.exports=function(t){var e,n,i=[],r=m(g(v(t),a,"."),".");for(e=0;e<r.length;e++)n=r[e],p(i,c(o,n)?"xn--"+y(n):n);return f(i,".")}},72333:(t,e,n)=>{"use strict";var i=n(91291),r=n(655),o=n(67750),a=RangeError;t.exports=function(t){var e=r(o(this)),n="",s=i(t);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},60706:(t,e,n)=>{"use strict";var i=n(10350).PROPER,r=n(79039),o=n(47452);t.exports=function(t){return r((function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||i&&o[t].name!==t}))}},43802:(t,e,n)=>{"use strict";var i=n(79504),r=n(67750),o=n(655),a=n(47452),s=i("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(t){return function(e){var n=o(r(e));return 1&t&&(n=s(n,l,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},4495:(t,e,n)=>{"use strict";var i=n(39519),r=n(79039),o=n(44576).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},58242:(t,e,n)=>{"use strict";var i=n(69565),r=n(97751),o=n(78227),a=n(36840);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return i(n,this)}),{arity:1})}},91296:(t,e,n)=>{"use strict";var i=n(4495);t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},59225:(t,e,n)=>{"use strict";var i,r,o,a,s=n(44576),l=n(18745),c=n(76080),u=n(94901),d=n(39297),h=n(79039),f=n(20397),p=n(67680),g=n(4055),m=n(22812),v=n(89544),b=n(16193),k=s.setImmediate,y=s.clearImmediate,w=s.process,_=s.Dispatch,A=s.Function,C=s.MessageChannel,x=s.String,D=0,E={},S="onreadystatechange";h((function(){i=s.location}));var T=function(t){if(d(E,t)){var e=E[t];delete E[t],e()}},I=function(t){return function(){T(t)}},M=function(t){T(t.data)},O=function(t){s.postMessage(x(t),i.protocol+"//"+i.host)};k&&y||(k=function(t){m(arguments.length,1);var e=u(t)?t:A(t),n=p(arguments,1);return E[++D]=function(){l(e,void 0,n)},r(D),D},y=function(t){delete E[t]},b?r=function(t){w.nextTick(I(t))}:_&&_.now?r=function(t){_.now(I(t))}:C&&!v?(a=(o=new C).port2,o.port1.onmessage=M,r=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!h(O)?(r=O,s.addEventListener("message",M,!1)):r=S in g("script")?function(t){f.appendChild(g("script"))[S]=function(){f.removeChild(this),T(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:k,clear:y}},31240:(t,e,n)=>{"use strict";var i=n(79504);t.exports=i(1..valueOf)},35610:(t,e,n)=>{"use strict";var i=n(91291),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},75854:(t,e,n)=>{"use strict";var i=n(72777),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},57696:(t,e,n)=>{"use strict";var i=n(91291),r=n(18014),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw new o("Wrong length or index");return n}},25397:(t,e,n)=>{"use strict";var i=n(47055),r=n(67750);t.exports=function(t){return i(r(t))}},91291:(t,e,n)=>{"use strict";var i=n(80741);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},18014:(t,e,n)=>{"use strict";var i=n(91291),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,9007199254740991):0}},48981:(t,e,n)=>{"use strict";var i=n(67750),r=Object;t.exports=function(t){return r(i(t))}},58229:(t,e,n)=>{"use strict";var i=n(99590),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw new r("Wrong offset");return n}},99590:(t,e,n)=>{"use strict";var i=n(91291),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw new r("The argument can't be less than 0");return e}},72777:(t,e,n)=>{"use strict";var i=n(69565),r=n(20034),o=n(10757),a=n(55966),s=n(84270),l=n(78227),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},56969:(t,e,n)=>{"use strict";var i=n(72777),r=n(10757);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},92140:(t,e,n)=>{"use strict";var i={};i[n(78227)("toStringTag")]="z",t.exports="[object z]"===String(i)},655:(t,e,n)=>{"use strict";var i=n(36955),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},58319:t=>{"use strict";var e=Math.round;t.exports=function(t){var n=e(t);return n<0?0:n>255?255:255&n}},16823:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},15823:(t,e,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(69565),a=n(43724),s=n(72805),l=n(94644),c=n(66346),u=n(90679),d=n(6980),h=n(66699),f=n(2087),p=n(18014),g=n(57696),m=n(58229),v=n(58319),b=n(56969),k=n(39297),y=n(36955),w=n(20034),_=n(10757),A=n(2360),C=n(1625),x=n(52967),D=n(38480).f,E=n(43251),S=n(59213).forEach,T=n(87633),I=n(62106),M=n(24913),O=n(77347),P=n(35370),N=n(91181),B=n(23167),L=N.get,j=N.set,R=N.enforce,z=M.f,F=O.f,H=r.RangeError,V=c.ArrayBuffer,U=V.prototype,W=c.DataView,q=l.NATIVE_ARRAY_BUFFER_VIEWS,$=l.TYPED_ARRAY_TAG,Y=l.TypedArray,G=l.TypedArrayPrototype,K=l.isTypedArray,Q="BYTES_PER_ELEMENT",Z="Wrong length",J=function(t,e){I(t,e,{configurable:!0,get:function(){return L(this)[e]}})},X=function(t){var e;return C(U,t)||"ArrayBuffer"===(e=y(t))||"SharedArrayBuffer"===e},tt=function(t,e){return K(t)&&!_(e)&&e in t&&f(+e)&&e>=0},et=function(t,e){return e=b(e),tt(t,e)?d(2,t[e]):F(t,e)},nt=function(t,e,n){return e=b(e),!(tt(t,e)&&w(n)&&k(n,"value"))||k(n,"get")||k(n,"set")||n.configurable||k(n,"writable")&&!n.writable||k(n,"enumerable")&&!n.enumerable?z(t,e,n):(t[e]=n.value,t)};a?(q||(O.f=et,M.f=nt,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),i({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,l=t+(n?"Clamped":"")+"Array",c="get"+t,d="set"+t,f=r[l],b=f,k=b&&b.prototype,y={},_=function(t,e){z(t,e,{get:function(){return function(t,e){var n=L(t);return n.view[c](e*a+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,i){var r=L(t);r.view[d](e*a+r.byteOffset,n?v(i):i,!0)}(this,e,t)},enumerable:!0})};q?s&&(b=e((function(t,e,n,i){return u(t,k),B(w(e)?X(e)?void 0!==i?new f(e,m(n,a),i):void 0!==n?new f(e,m(n,a)):new f(e):K(e)?P(b,e):o(E,b,e):new f(g(e)),t,b)})),x&&x(b,Y),S(D(f),(function(t){t in b||h(b,t,f[t])})),b.prototype=k):(b=e((function(t,e,n,i){u(t,k);var r,s,l,c=0,d=0;if(w(e)){if(!X(e))return K(e)?P(b,e):o(E,b,e);r=e,d=m(n,a);var h=e.byteLength;if(void 0===i){if(h%a)throw new H(Z);if((s=h-d)<0)throw new H(Z)}else if((s=p(i)*a)+d>h)throw new H(Z);l=s/a}else l=g(e),r=new V(s=l*a);for(j(t,{buffer:r,byteOffset:d,byteLength:s,length:l,view:new W(r)});c<l;)_(t,c++)})),x&&x(b,Y),k=b.prototype=A(G)),k.constructor!==b&&h(k,"constructor",b),R(k).TypedArrayConstructor=b,$&&h(k,$,l);var C=b!==f;y[l]=b,i({global:!0,constructor:!0,forced:C,sham:!q},y),Q in b||h(b,Q,a),Q in k||h(k,Q,a),T(l)}):t.exports=function(){}},72805:(t,e,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(84428),a=n(94644).NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;t.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},29948:(t,e,n)=>{"use strict";var i=n(35370),r=n(94644).getTypedArrayConstructor;t.exports=function(t,e){return i(r(t),e)}},43251:(t,e,n)=>{"use strict";var i=n(76080),r=n(69565),o=n(35548),a=n(48981),s=n(26198),l=n(70081),c=n(50851),u=n(44209),d=n(18727),h=n(94644).aTypedArrayConstructor,f=n(75854);t.exports=function(t){var e,n,p,g,m,v,b,k,y=o(this),w=a(t),_=arguments.length,A=_>1?arguments[1]:void 0,C=void 0!==A,x=c(w);if(x&&!u(x))for(k=(b=l(w,x)).next,w=[];!(v=r(k,b)).done;)w.push(v.value);for(C&&_>2&&(A=i(A,arguments[2])),n=s(w),p=new(h(y))(n),g=d(p),e=0;n>e;e++)m=C?A(w[e],e):w[e],p[e]=g?f(m):+m;return p}},33392:(t,e,n)=>{"use strict";var i=n(79504),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},67416:(t,e,n)=>{"use strict";var i=n(79039),r=n(78227),o=n(43724),a=n(96395),s=r("iterator");t.exports=!i((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),n.delete("a",2),n.delete("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==i||"x"!==new URL("https://x",void 0).host}))},7040:(t,e,n)=>{"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(t,e,n)=>{"use strict";var i=n(43724),r=n(79039);t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},22812:t=>{"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},58622:(t,e,n)=>{"use strict";var i=n(44576),r=n(94901),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},70511:(t,e,n)=>{"use strict";var i=n(19167),r=n(39297),o=n(1951),a=n(24913).f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||a(e,t,{value:o.f(t)})}},1951:(t,e,n)=>{"use strict";var i=n(78227);e.f=i},78227:(t,e,n)=>{"use strict";var i=n(44576),r=n(25745),o=n(39297),a=n(33392),s=n(4495),l=n(7040),c=i.Symbol,u=r("wks"),d=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},47452:t=>{"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},54743:(t,e,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(66346),a=n(87633),s="ArrayBuffer",l=o[s];i({global:!0,constructor:!0,forced:r[s]!==l},{ArrayBuffer:l}),a(s)},11745:(t,e,n)=>{"use strict";var i=n(46518),r=n(27476),o=n(79039),a=n(66346),s=n(28551),l=n(35610),c=n(18014),u=a.ArrayBuffer,d=a.DataView,h=d.prototype,f=r(u.prototype.slice),p=r(h.getUint8),g=r(h.setUint8);i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(f&&void 0===e)return f(s(this),t);for(var n=s(this).byteLength,i=l(t,n),r=l(void 0===e?n:e,n),o=new u(c(r-i)),a=new d(this),h=new d(o),m=0;i<r;)g(h,m++,p(a,i++));return o}})},28706:(t,e,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(34376),a=n(20034),s=n(48981),l=n(26198),c=n(96837),u=n(97040),d=n(1469),h=n(70597),f=n(78227),p=n(39519),g=f("isConcatSpreadable"),m=p>=51||!r((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),v=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)};i({target:"Array",proto:!0,arity:1,forced:!m||!h("concat")},{concat:function(t){var e,n,i,r,o,a=s(this),h=d(a,0),f=0;for(e=-1,i=arguments.length;e<i;e++)if(v(o=-1===e?a:arguments[e]))for(r=l(o),c(f+r),n=0;n<r;n++,f++)n in o&&u(h,f,o[n]);else c(f+1),u(h,f++,o);return h.length=f,h}})},88431:(t,e,n)=>{"use strict";var i=n(46518),r=n(59213).every;i({target:"Array",proto:!0,forced:!n(34598)("every")},{every:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},33771:(t,e,n)=>{"use strict";var i=n(46518),r=n(84373),o=n(6469);i({target:"Array",proto:!0},{fill:r}),o("fill")},2008:(t,e,n)=>{"use strict";var i=n(46518),r=n(59213).filter;i({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},48980:(t,e,n)=>{"use strict";var i=n(46518),r=n(59213).findIndex,o=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},50113:(t,e,n)=>{"use strict";var i=n(46518),r=n(59213).find,o=n(6469),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},46449:(t,e,n)=>{"use strict";var i=n(46518),r=n(70259),o=n(48981),a=n(26198),s=n(91291),l=n(1469);i({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),i=l(e,0);return i.length=r(i,e,e,n,0,void 0===t?1:s(t)),i}})},51629:(t,e,n)=>{"use strict";var i=n(46518),r=n(90235);i({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},23418:(t,e,n)=>{"use strict";var i=n(46518),r=n(97916);i({target:"Array",stat:!0,forced:!n(84428)((function(t){Array.from(t)}))},{from:r})},74423:(t,e,n)=>{"use strict";var i=n(46518),r=n(19617).includes,o=n(79039),a=n(6469);i({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},25276:(t,e,n)=>{"use strict";var i=n(46518),r=n(27476),o=n(19617).indexOf,a=n(34598),s=r([].indexOf),l=!!s&&1/s([1],1,-0)<0;i({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return l?s(this,t,e)||0:o(this,t,e)}})},64346:(t,e,n)=>{"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},23792:(t,e,n)=>{"use strict";var i=n(25397),r=n(6469),o=n(26269),a=n(91181),s=n(24913).f,l=n(51088),c=n(62529),u=n(96395),d=n(43724),h="Array Iterator",f=a.set,p=a.getterFor(h);t.exports=l(Array,"Array",(function(t,e){f(this,{type:h,target:i(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var g=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&d&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(t){}},48598:(t,e,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(47055),a=n(25397),s=n(34598),l=r([].join);i({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(t){return l(a(this),void 0===t?",":t)}})},8921:(t,e,n)=>{"use strict";var i=n(46518),r=n(8379);i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},62062:(t,e,n)=>{"use strict";var i=n(46518),r=n(59213).map;i({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},72712:(t,e,n)=>{"use strict";var i=n(46518),r=n(80926).left,o=n(34598),a=n(39519);i({target:"Array",proto:!0,forced:!n(16193)&&a>79&&a<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},94490:(t,e,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(34376),a=r([].reverse),s=[1,2];i({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},34782:(t,e,n)=>{"use strict";var i=n(46518),r=n(34376),o=n(33517),a=n(20034),s=n(35610),l=n(26198),c=n(25397),u=n(97040),d=n(78227),h=n(70597),f=n(67680),p=h("slice"),g=d("species"),m=Array,v=Math.max;i({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,i,d,h=c(this),p=l(h),b=s(t,p),k=s(void 0===e?p:e,p);if(r(h)&&(n=h.constructor,(o(n)&&(n===m||r(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===m||void 0===n))return f(h,b,k);for(i=new(void 0===n?m:n)(v(k-b,0)),d=0;b<k;b++,d++)b in h&&u(i,d,h[b]);return i.length=d,i}})},15086:(t,e,n)=>{"use strict";var i=n(46518),r=n(59213).some;i({target:"Array",proto:!0,forced:!n(34598)("some")},{some:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},26910:(t,e,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(79306),a=n(48981),s=n(26198),l=n(84606),c=n(655),u=n(79039),d=n(74488),h=n(34598),f=n(13709),p=n(13763),g=n(39519),m=n(3607),v=[],b=r(v.sort),k=r(v.push),y=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),_=h("sort"),A=!u((function(){if(g)return g<70;if(!(f&&f>3)){if(p)return!0;if(m)return m<603;var t,e,n,i,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)v.push({k:e+i,v:n})}for(v.sort((function(t,e){return e.v-t.v})),i=0;i<v.length;i++)e=v[i].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}}));i({target:"Array",proto:!0,forced:y||!w||!_||!A},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(A)return void 0===t?b(e):b(e,t);var n,i,r=[],u=s(e);for(i=0;i<u;i++)i in e&&k(r,e[i]);for(d(r,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(r),i=0;i<n;)e[i]=r[i++];for(;i<u;)l(e,i++);return e}})},54554:(t,e,n)=>{"use strict";var i=n(46518),r=n(48981),o=n(35610),a=n(91291),s=n(26198),l=n(34527),c=n(96837),u=n(1469),d=n(97040),h=n(84606),f=n(70597)("splice"),p=Math.max,g=Math.min;i({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,i,f,m,v,b,k=r(this),y=s(k),w=o(t,y),_=arguments.length;for(0===_?n=i=0:1===_?(n=0,i=y-w):(n=_-2,i=g(p(a(e),0),y-w)),c(y+n-i),f=u(k,i),m=0;m<i;m++)(v=w+m)in k&&d(f,m,k[v]);if(f.length=i,n<i){for(m=w;m<y-i;m++)b=m+n,(v=m+i)in k?k[b]=k[v]:h(k,b);for(m=y;m>y-i+n;m--)h(k,m-1)}else if(n>i)for(m=y-i;m>w;m--)b=m+n-1,(v=m+i-1)in k?k[b]=k[v]:h(k,b);for(m=0;m<n;m++)k[m+w]=arguments[m+2];return l(k,y-i+n),f}})},93514:(t,e,n)=>{"use strict";n(6469)("flat")},24359:(t,e,n)=>{"use strict";var i=n(46518),r=n(66346);i({global:!0,constructor:!0,forced:!n(77811)},{DataView:r.DataView})},38309:(t,e,n)=>{"use strict";n(24359)},59089:(t,e,n)=>{"use strict";var i=n(46518),r=n(79504),o=Date,a=r(o.prototype.getTime);i({target:"Date",stat:!0},{now:function(){return a(new o)}})},60739:(t,e,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(48981),a=n(72777);i({target:"Date",proto:!0,arity:1,forced:r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=o(this),n=a(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},89572:(t,e,n)=>{"use strict";var i=n(39297),r=n(36840),o=n(53640),a=n(78227)("toPrimitive"),s=Date.prototype;i(s,a)||r(s,a,o)},23288:(t,e,n)=>{"use strict";var i=n(79504),r=n(36840),o=Date.prototype,a="Invalid Date",s="toString",l=i(o[s]),c=i(o.getTime);String(new Date(NaN))!==a&&r(o,s,(function(){var t=c(this);return t==t?l(this):a}))},94170:(t,e,n)=>{"use strict";var i=n(46518),r=n(30566);i({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},62010:(t,e,n)=>{"use strict";var i=n(43724),r=n(10350).EXISTS,o=n(79504),a=n(62106),s=Function.prototype,l=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec);i&&!r&&a(s,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(t){return""}}})},55081:(t,e,n)=>{"use strict";var i=n(46518),r=n(44576);i({global:!0,forced:r.globalThis!==r},{globalThis:r})},33110:(t,e,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(18745),a=n(69565),s=n(79504),l=n(79039),c=n(94901),u=n(10757),d=n(67680),h=n(66933),f=n(4495),p=String,g=r("JSON","stringify"),m=s(/./.exec),v=s("".charAt),b=s("".charCodeAt),k=s("".replace),y=s(1..toString),w=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,C=!f||l((function(){var t=r("Symbol")("stringify detection");return"[null]"!==g([t])||"{}"!==g({a:t})||"{}"!==g(Object(t))})),x=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),D=function(t,e){var n=d(arguments),i=h(e);if(c(i)||void 0!==t&&!u(t))return n[1]=function(t,e){if(c(i)&&(e=a(i,this,p(t),e)),!u(e))return e},o(g,null,n)},E=function(t,e,n){var i=v(n,e-1),r=v(n,e+1);return m(_,t)&&!m(A,r)||m(A,t)&&!m(_,i)?"\\u"+y(b(t,0),16):t};g&&i({target:"JSON",stat:!0,arity:3,forced:C||x},{stringify:function(t,e,n){var i=d(arguments),r=o(C?D:g,null,i);return x&&"string"==typeof r?k(r,w,E):r}})},4731:(t,e,n)=>{"use strict";var i=n(44576);n(10687)(i.JSON,"JSON",!0)},48523:(t,e,n)=>{"use strict";n(16468)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},36033:(t,e,n)=>{"use strict";n(48523)},60479:(t,e,n)=>{"use strict";n(10687)(Math,"Math",!0)},2892:(t,e,n)=>{"use strict";var i=n(46518),r=n(96395),o=n(43724),a=n(44576),s=n(19167),l=n(79504),c=n(92796),u=n(39297),d=n(23167),h=n(1625),f=n(10757),p=n(72777),g=n(79039),m=n(38480).f,v=n(77347).f,b=n(24913).f,k=n(31240),y=n(43802).trim,w="Number",_=a[w],A=s[w],C=_.prototype,x=a.TypeError,D=l("".slice),E=l("".charCodeAt),S=function(t){var e,n,i,r,o,a,s,l,c=p(t,"number");if(f(c))throw new x("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),43===(e=E(c,0))||45===e){if(88===(n=E(c,2))||120===n)return NaN}else if(48===e){switch(E(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(a=(o=D(c,2)).length,s=0;s<a;s++)if((l=E(o,s))<48||l>r)return NaN;return parseInt(o,i)}return+c},T=c(w,!_(" 0o1")||!_("0b1")||_("+0x1")),I=function(t){var e,n=arguments.length<1?0:_(function(t){var e=p(t,"number");return"bigint"==typeof e?e:S(e)}(t));return h(C,e=this)&&g((function(){k(e)}))?d(Object(n),this,I):n};I.prototype=C,T&&!r&&(C.constructor=I),i({global:!0,constructor:!0,wrap:!0,forced:T},{Number:I});var M=function(t,e){for(var n,i=o?m(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),r=0;i.length>r;r++)u(e,n=i[r])&&!u(t,n)&&b(t,n,v(e,n))};r&&A&&M(s[w],A),(T||r)&&M(s[w],_)},40150:(t,e,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},25843:(t,e,n)=>{"use strict";var i=n(46518),r=n(52703);i({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r})},69085:(t,e,n)=>{"use strict";var i=n(46518),r=n(44213);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},59904:(t,e,n)=>{"use strict";n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},67945:(t,e,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(96801).f;i({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!r},{defineProperties:o})},84185:(t,e,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(24913).f;i({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!r},{defineProperty:o})},5506:(t,e,n)=>{"use strict";var i=n(46518),r=n(32357).entries;i({target:"Object",stat:!0},{entries:function(t){return r(t)}})},53921:(t,e,n)=>{"use strict";var i=n(46518),r=n(72652),o=n(97040);i({target:"Object",stat:!0},{fromEntries:function(t){var e={};return r(t,(function(t,n){o(e,t,n)}),{AS_ENTRIES:!0}),e}})},83851:(t,e,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(25397),a=n(77347).f,s=n(43724);i({target:"Object",stat:!0,forced:!s||r((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},81278:(t,e,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(35031),a=n(25397),s=n(77347),l=n(97040);i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,n,i=a(t),r=s.f,c=o(i),u={},d=0;c.length>d;)void 0!==(n=r(i,e=c[d++]))&&l(u,e,n);return u}})},1480:(t,e,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(10298).f;i({target:"Object",stat:!0,forced:r((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},49773:(t,e,n)=>{"use strict";var i=n(46518),r=n(4495),o=n(79039),a=n(33717),s=n(48981);i({target:"Object",stat:!0,forced:!r||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},40875:(t,e,n)=>{"use strict";var i=n(46518),r=n(79039),o=n(48981),a=n(42787),s=n(12211);i({target:"Object",stat:!0,forced:r((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},79432:(t,e,n)=>{"use strict";var i=n(46518),r=n(48981),o=n(71072);i({target:"Object",stat:!0,forced:n(79039)((function(){o(1)}))},{keys:function(t){return o(r(t))}})},10287:(t,e,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},26099:(t,e,n)=>{"use strict";var i=n(92140),r=n(36840),o=n(53179);i||r(Object.prototype,"toString",o,{unsafe:!0})},78459:(t,e,n)=>{"use strict";var i=n(46518),r=n(33904);i({global:!0,forced:parseFloat!==r},{parseFloat:r})},58940:(t,e,n)=>{"use strict";var i=n(46518),r=n(52703);i({global:!0,forced:parseInt!==r},{parseInt:r})},16499:(t,e,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);i({target:"Promise",stat:!0,forced:n(90537)},{all:function(t){var e=this,n=a.f(e),i=n.resolve,c=n.reject,u=s((function(){var n=o(e.resolve),a=[],s=0,u=1;l(t,(function(t){var o=s++,l=!1;u++,r(n,e,t).then((function(t){l||(l=!0,a[o]=t,--u||i(a))}),c)})),--u||i(a)}));return u.error&&c(u.value),n.promise}})},82003:(t,e,n)=>{"use strict";var i=n(46518),r=n(96395),o=n(10916).CONSTRUCTOR,a=n(80550),s=n(97751),l=n(94901),c=n(36840),u=a&&a.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&l(a)){var d=s("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{unsafe:!0})}},10436:(t,e,n)=>{"use strict";var i,r,o,a=n(46518),s=n(96395),l=n(16193),c=n(44576),u=n(69565),d=n(36840),h=n(52967),f=n(10687),p=n(87633),g=n(79306),m=n(94901),v=n(20034),b=n(90679),k=n(2293),y=n(59225).set,w=n(91955),_=n(90757),A=n(1103),C=n(18265),x=n(91181),D=n(80550),E=n(10916),S=n(36043),T="Promise",I=E.CONSTRUCTOR,M=E.REJECTION_EVENT,O=E.SUBCLASSING,P=x.getterFor(T),N=x.set,B=D&&D.prototype,L=D,j=B,R=c.TypeError,z=c.document,F=c.process,H=S.f,V=H,U=!!(z&&z.createEvent&&c.dispatchEvent),W="unhandledrejection",q=function(t){var e;return!(!v(t)||!m(e=t.then))&&e},$=function(t,e){var n,i,r,o=e.value,a=1===e.state,s=a?t.ok:t.fail,l=t.resolve,c=t.reject,d=t.domain;try{s?(a||(2===e.rejection&&Z(e),e.rejection=1),!0===s?n=o:(d&&d.enter(),n=s(o),d&&(d.exit(),r=!0)),n===t.promise?c(new R("Promise-chain cycle")):(i=q(n))?u(i,n,l,c):l(n)):c(o)}catch(t){d&&!r&&d.exit(),c(t)}},Y=function(t,e){t.notified||(t.notified=!0,w((function(){for(var n,i=t.reactions;n=i.get();)$(n,t);t.notified=!1,e&&!t.rejection&&K(t)})))},G=function(t,e,n){var i,r;U?((i=z.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),c.dispatchEvent(i)):i={promise:e,reason:n},!M&&(r=c["on"+t])?r(i):t===W&&_("Unhandled promise rejection",n)},K=function(t){u(y,c,(function(){var e,n=t.facade,i=t.value;if(Q(t)&&(e=A((function(){l?F.emit("unhandledRejection",i,n):G(W,n,i)})),t.rejection=l||Q(t)?2:1,e.error))throw e.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){u(y,c,(function(){var e=t.facade;l?F.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(i){t(e,i,n)}},X=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Y(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new R("Promise can't be resolved itself");var i=q(e);i?w((function(){var n={done:!1};try{u(i,e,J(tt,n,t),J(X,n,t))}catch(e){X(n,e,t)}})):(t.value=e,t.state=1,Y(t,!1))}catch(e){X({done:!1},e,t)}}};if(I&&(j=(L=function(t){b(this,j),g(t),u(i,this);var e=P(this);try{t(J(tt,e),J(X,e))}catch(t){X(e,t)}}).prototype,(i=function(t){N(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=d(j,"then",(function(t,e){var n=P(this),i=H(k(this,L));return n.parent=!0,i.ok=!m(t)||t,i.fail=m(e)&&e,i.domain=l?F.domain:void 0,0===n.state?n.reactions.add(i):w((function(){$(i,n)})),i.promise})),r=function(){var t=new i,e=P(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(X,e)},S.f=H=function(t){return t===L||undefined===t?new r(t):V(t)},!s&&m(D)&&B!==Object.prototype)){o=B.then,O||d(B,"then",(function(t,e){var n=this;return new L((function(t,e){u(o,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete B.constructor}catch(t){}h&&h(B,j)}a({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:L}),f(L,T,!1,!0),p(T)},3362:(t,e,n)=>{"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743:(t,e,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);i({target:"Promise",stat:!0,forced:n(90537)},{race:function(t){var e=this,n=a.f(e),i=n.reject,c=s((function(){var a=o(e.resolve);l(t,(function(t){r(a,e,t).then(n.resolve,i)}))}));return c.error&&i(c.value),n.promise}})},51481:(t,e,n)=>{"use strict";var i=n(46518),r=n(36043);i({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})},40280:(t,e,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(96395),a=n(80550),s=n(10916).CONSTRUCTOR,l=n(93438),c=r("Promise"),u=o&&!s;i({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return l(u&&this===c?a:this,t)}})},60825:(t,e,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(18745),a=n(30566),s=n(35548),l=n(28551),c=n(20034),u=n(2360),d=n(79039),h=r("Reflect","construct"),f=Object.prototype,p=[].push,g=d((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),m=!d((function(){h((function(){}))})),v=g||m;i({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){s(t),l(e);var n=arguments.length<3?t:s(arguments[2]);if(m&&!g)return h(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return o(p,i,e),new(o(a,t,i))}var r=n.prototype,d=u(c(r)?r:f),v=o(t,d,e);return c(v)?v:d}})},40888:(t,e,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(20034),a=n(28551),s=n(16575),l=n(77347),c=n(42787);i({target:"Reflect",stat:!0},{get:function t(e,n){var i,u,d=arguments.length<3?e:arguments[2];return a(e)===d?e[n]:(i=l.f(e,n))?s(i)?i.value:void 0===i.get?void 0:r(i.get,d):o(u=c(e))?t(u,n,d):void 0}})},84864:(t,e,n)=>{"use strict";var i=n(43724),r=n(44576),o=n(79504),a=n(92796),s=n(23167),l=n(66699),c=n(2360),u=n(38480).f,d=n(1625),h=n(60788),f=n(655),p=n(61034),g=n(58429),m=n(11056),v=n(36840),b=n(79039),k=n(39297),y=n(91181).enforce,w=n(87633),_=n(78227),A=n(83635),C=n(18814),x=_("match"),D=r.RegExp,E=D.prototype,S=r.SyntaxError,T=o(E.exec),I=o("".charAt),M=o("".replace),O=o("".indexOf),P=o("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,L=/a/g,j=new D(B)!==B,R=g.MISSED_STICKY,z=g.UNSUPPORTED_Y,F=i&&(!j||R||A||C||b((function(){return L[x]=!1,D(B)!==B||D(L)===L||"/a/i"!==String(D(B,"i"))})));if(a("RegExp",F)){for(var H=function(t,e){var n,i,r,o,a,u,g=d(E,this),m=h(t),v=void 0===e,b=[],w=t;if(!g&&m&&v&&t.constructor===H)return t;if((m||d(E,t))&&(t=t.source,v&&(e=p(w))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),w=t,A&&"dotAll"in B&&(i=!!e&&O(e,"s")>-1)&&(e=M(e,/s/g,"")),n=e,R&&"sticky"in B&&(r=!!e&&O(e,"y")>-1)&&z&&(e=M(e,/y/g,"")),C&&(o=function(t){for(var e,n=t.length,i=0,r="",o=[],a=c(null),s=!1,l=!1,u=0,d="";i<=n;i++){if("\\"===(e=I(t,i)))e+=I(t,++i);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:if(r+=e,"?:"===P(t,i+1,i+3))continue;T(N,P(t,i+1))&&(i+=2,l=!0),u++;continue;case">"===e&&l:if(""===d||k(a,d))throw new S("Invalid capture group name");a[d]=!0,o[o.length]=[d,u],l=!1,d="";continue}l?d+=e:r+=e}return[r,o]}(t),t=o[0],b=o[1]),a=s(D(t,e),g?this:E,H),(i||r||b.length)&&(u=y(a),i&&(u.dotAll=!0,u.raw=H(function(t){for(var e,n=t.length,i=0,r="",o=!1;i<=n;i++)"\\"!==(e=I(t,i))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),r+=e):r+="[\\s\\S]":r+=e+I(t,++i);return r}(t),n)),r&&(u.sticky=!0),b.length&&(u.groups=b)),t!==w)try{l(a,"source",""===w?"(?:)":w)}catch(t){}return a},V=u(D),U=0;V.length>U;)m(H,D,V[U++]);E.constructor=H,H.prototype=E,v(r,"RegExp",H,{constructor:!0})}w("RegExp")},27495:(t,e,n)=>{"use strict";var i=n(46518),r=n(57323);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},38781:(t,e,n)=>{"use strict";var i=n(10350).PROPER,r=n(36840),o=n(28551),a=n(655),s=n(79039),l=n(61034),c="toString",u=RegExp.prototype,d=u[c],h=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),f=i&&d.name!==c;(h||f)&&r(u,c,(function(){var t=o(this);return"/"+a(t.source)+"/"+a(l(t))}),{unsafe:!0})},92405:(t,e,n)=>{"use strict";n(16468)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},31415:(t,e,n)=>{"use strict";n(92405)},89907:(t,e,n)=>{"use strict";var i=n(46518),r=n(77240);i({target:"String",proto:!0,forced:n(23061)("anchor")},{anchor:function(t){return r(this,"a","name",t)}})},23860:(t,e,n)=>{"use strict";var i=n(46518),r=n(68183).codeAt;i({target:"String",proto:!0},{codePointAt:function(t){return r(this,t)}})},99449:(t,e,n)=>{"use strict";var i,r=n(46518),o=n(27476),a=n(77347).f,s=n(18014),l=n(655),c=n(60511),u=n(67750),d=n(41436),h=n(96395),f=o("".slice),p=Math.min,g=d("endsWith");r({target:"String",proto:!0,forced:!!(h||g||(i=a(String.prototype,"endsWith"),!i||i.writable))&&!g},{endsWith:function(t){var e=l(u(this));c(t);var n=arguments.length>1?arguments[1]:void 0,i=e.length,r=void 0===n?i:p(s(n),i),o=l(t);return f(e,r-o.length,r)===o}})},27337:(t,e,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(35610),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,c=r([].join);i({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(e=+arguments[r++],o(e,1114111)!==e)throw new a(e+" is not a valid code point");n[r]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},21699:(t,e,n)=>{"use strict";var i=n(46518),r=n(79504),o=n(60511),a=n(67750),s=n(655),l=n(41436),c=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},47764:(t,e,n)=>{"use strict";var i=n(68183).charAt,r=n(655),o=n(91181),a=n(51088),s=n(62529),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",(function(t){c(this,{type:l,string:r(t),index:0})}),(function(){var t,e=u(this),n=e.string,r=e.index;return r>=n.length?s(void 0,!0):(t=i(n,r),e.index+=t.length,s(t,!1))}))},28543:(t,e,n)=>{"use strict";var i=n(46518),r=n(69565),o=n(27476),a=n(33994),s=n(62529),l=n(67750),c=n(18014),u=n(655),d=n(28551),h=n(64117),f=n(22195),p=n(60788),g=n(61034),m=n(55966),v=n(36840),b=n(79039),k=n(78227),y=n(2293),w=n(57829),_=n(56682),A=n(91181),C=n(96395),x=k("matchAll"),D="RegExp String",E=D+" Iterator",S=A.set,T=A.getterFor(E),I=RegExp.prototype,M=TypeError,O=o("".indexOf),P=o("".matchAll),N=!!P&&!b((function(){P("a",/./)})),B=a((function(t,e,n,i){S(this,{type:E,regexp:t,string:e,global:n,unicode:i,done:!1})}),D,(function(){var t=T(this);if(t.done)return s(void 0,!0);var e=t.regexp,n=t.string,i=_(e,n);return null===i?(t.done=!0,s(void 0,!0)):t.global?(""===u(i[0])&&(e.lastIndex=w(n,c(e.lastIndex),t.unicode)),s(i,!1)):(t.done=!0,s(i,!1))})),L=function(t){var e,n,i,r=d(this),o=u(t),a=y(r,RegExp),s=u(g(r));return e=new a(a===RegExp?r.source:r,s),n=!!~O(s,"g"),i=!!~O(s,"u"),e.lastIndex=c(r.lastIndex),new B(e,o,n,i)};i({target:"String",proto:!0,forced:N},{matchAll:function(t){var e,n,i,o,a=l(this);if(h(t)){if(N)return P(a,t)}else{if(p(t)&&(e=u(l(g(t))),!~O(e,"g")))throw new M("`.matchAll` does not allow non-global regexes");if(N)return P(a,t);if(void 0===(i=m(t,x))&&C&&"RegExp"===f(t)&&(i=L),i)return r(i,t,a)}return n=u(a),o=new RegExp(t,"g"),C?r(L,o,n):o[x](n)}}),C||x in I||v(I,x,L)},71761:(t,e,n)=>{"use strict";var i=n(69565),r=n(89228),o=n(28551),a=n(64117),s=n(18014),l=n(655),c=n(67750),u=n(55966),d=n(57829),h=n(56682);r("match",(function(t,e,n){return[function(e){var n=c(this),r=a(e)?void 0:u(e,t);return r?i(r,e,n):new RegExp(e)[t](l(n))},function(t){var i=o(this),r=l(t),a=n(e,i,r);if(a.done)return a.value;if(!i.global)return h(i,r);var c=i.unicode;i.lastIndex=0;for(var u,f=[],p=0;null!==(u=h(i,r));){var g=l(u[0]);f[p]=g,""===g&&(i.lastIndex=d(r,s(i.lastIndex),c)),p++}return 0===p?null:f}]}))},42781:(t,e,n)=>{"use strict";n(46518)({target:"String",proto:!0},{repeat:n(72333)})},25440:(t,e,n)=>{"use strict";var i=n(18745),r=n(69565),o=n(79504),a=n(89228),s=n(79039),l=n(28551),c=n(94901),u=n(64117),d=n(91291),h=n(18014),f=n(655),p=n(67750),g=n(57829),m=n(55966),v=n(2478),b=n(56682),k=n(78227)("replace"),y=Math.max,w=Math.min,_=o([].concat),A=o([].push),C=o("".indexOf),x=o("".slice),D="$0"==="a".replace(/./,"$0"),E=!!/./[k]&&""===/./[k]("a","$0");a("replace",(function(t,e,n){var o=E?"$":"$0";return[function(t,n){var i=p(this),o=u(t)?void 0:m(t,k);return o?r(o,t,i,n):r(e,f(i),t,n)},function(t,r){var a=l(this),s=f(t);if("string"==typeof r&&-1===C(r,o)&&-1===C(r,"$<")){var u=n(e,a,s,r);if(u.done)return u.value}var p=c(r);p||(r=f(r));var m,k=a.global;k&&(m=a.unicode,a.lastIndex=0);for(var D,E=[];null!==(D=b(a,s))&&(A(E,D),k);){""===f(D[0])&&(a.lastIndex=g(s,h(a.lastIndex),m))}for(var S,T="",I=0,M=0;M<E.length;M++){for(var O,P=f((D=E[M])[0]),N=y(w(d(D.index),s.length),0),B=[],L=1;L<D.length;L++)A(B,void 0===(S=D[L])?S:String(S));var j=D.groups;if(p){var R=_([P],B,N,s);void 0!==j&&A(R,j),O=f(i(r,void 0,R))}else O=v(P,s,N,B,j,r);N>=I&&(T+=x(s,I,N)+O,I=N+P.length)}return T+x(s,I)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!D||E)},5746:(t,e,n)=>{"use strict";var i=n(69565),r=n(89228),o=n(28551),a=n(64117),s=n(67750),l=n(3470),c=n(655),u=n(55966),d=n(56682);r("search",(function(t,e,n){return[function(e){var n=s(this),r=a(e)?void 0:u(e,t);return r?i(r,e,n):new RegExp(e)[t](c(n))},function(t){var i=o(this),r=c(t),a=n(e,i,r);if(a.done)return a.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var u=d(i,r);return l(i.lastIndex,s)||(i.lastIndex=s),null===u?-1:u.index}]}))},90744:(t,e,n)=>{"use strict";var i=n(69565),r=n(79504),o=n(89228),a=n(28551),s=n(64117),l=n(67750),c=n(2293),u=n(57829),d=n(18014),h=n(655),f=n(55966),p=n(56682),g=n(58429),m=n(79039),v=g.UNSUPPORTED_Y,b=Math.min,k=r([].push),y=r("".slice),w=!m((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),_="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(t,e,n){var r="0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e;return[function(e,n){var o=l(this),a=s(e)?void 0:f(e,t);return a?i(a,e,o,n):i(r,h(o),e,n)},function(t,i){var o=a(this),s=h(t);if(!_){var l=n(r,o,s,i,r!==e);if(l.done)return l.value}var f=c(o,RegExp),g=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"g":"y"),w=new f(v?"^(?:"+o.source+")":o,m),A=void 0===i?4294967295:i>>>0;if(0===A)return[];if(0===s.length)return null===p(w,s)?[s]:[];for(var C=0,x=0,D=[];x<s.length;){w.lastIndex=v?0:x;var E,S=p(w,v?y(s,x):s);if(null===S||(E=b(d(w.lastIndex+(v?x:0)),s.length))===C)x=u(s,x,g);else{if(k(D,y(s,C,x)),D.length===A)return D;for(var T=1;T<=S.length-1;T++)if(k(D,S[T]),D.length===A)return D;x=C=E}}return k(D,y(s,C)),D}]}),_||!w,v)},11392:(t,e,n)=>{"use strict";var i,r=n(46518),o=n(27476),a=n(77347).f,s=n(18014),l=n(655),c=n(60511),u=n(67750),d=n(41436),h=n(96395),f=o("".slice),p=Math.min,g=d("startsWith");r({target:"String",proto:!0,forced:!!(h||g||(i=a(String.prototype,"startsWith"),!i||i.writable))&&!g},{startsWith:function(t){var e=l(u(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),i=l(t);return f(e,n,n+i.length)===i}})},42762:(t,e,n)=>{"use strict";var i=n(46518),r=n(43802).trim;i({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return r(this)}})},66412:(t,e,n)=>{"use strict";n(70511)("asyncIterator")},6761:(t,e,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(69565),a=n(79504),s=n(96395),l=n(43724),c=n(4495),u=n(79039),d=n(39297),h=n(1625),f=n(28551),p=n(25397),g=n(56969),m=n(655),v=n(6980),b=n(2360),k=n(71072),y=n(38480),w=n(10298),_=n(33717),A=n(77347),C=n(24913),x=n(96801),D=n(48773),E=n(36840),S=n(62106),T=n(25745),I=n(66119),M=n(30421),O=n(33392),P=n(78227),N=n(1951),B=n(70511),L=n(58242),j=n(10687),R=n(91181),z=n(59213).forEach,F=I("hidden"),H="Symbol",V="prototype",U=R.set,W=R.getterFor(H),q=Object[V],$=r.Symbol,Y=$&&$[V],G=r.RangeError,K=r.TypeError,Q=r.QObject,Z=A.f,J=C.f,X=w.f,tt=D.f,et=a([].push),nt=T("symbols"),it=T("op-symbols"),rt=T("wks"),ot=!Q||!Q[V]||!Q[V].findChild,at=function(t,e,n){var i=Z(q,e);i&&delete q[e],J(t,e,n),i&&t!==q&&J(q,e,i)},st=l&&u((function(){return 7!==b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?at:J,lt=function(t,e){var n=nt[t]=b(Y);return U(n,{type:H,tag:t,description:e}),l||(n.description=e),n},ct=function(t,e,n){t===q&&ct(it,e,n),f(t);var i=g(e);return f(n),d(nt,i)?(n.enumerable?(d(t,F)&&t[F][i]&&(t[F][i]=!1),n=b(n,{enumerable:v(0,!1)})):(d(t,F)||J(t,F,v(1,b(null))),t[F][i]=!0),st(t,i,n)):J(t,i,n)},ut=function(t,e){f(t);var n=p(e),i=k(n).concat(pt(n));return z(i,(function(e){l&&!o(dt,n,e)||ct(t,e,n[e])})),t},dt=function(t){var e=g(t),n=o(tt,this,e);return!(this===q&&d(nt,e)&&!d(it,e))&&(!(n||!d(this,e)||!d(nt,e)||d(this,F)&&this[F][e])||n)},ht=function(t,e){var n=p(t),i=g(e);if(n!==q||!d(nt,i)||d(it,i)){var r=Z(n,i);return!r||!d(nt,i)||d(n,F)&&n[F][i]||(r.enumerable=!0),r}},ft=function(t){var e=X(p(t)),n=[];return z(e,(function(t){d(nt,t)||d(M,t)||et(n,t)})),n},pt=function(t){var e=t===q,n=X(e?it:p(t)),i=[];return z(n,(function(t){!d(nt,t)||e&&!d(q,t)||et(i,nt[t])})),i};c||(E(Y=($=function(){if(h(Y,this))throw new K("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=O(t),n=function(t){var i=void 0===this?r:this;i===q&&o(n,it,t),d(i,F)&&d(i[F],e)&&(i[F][e]=!1);var a=v(1,t);try{st(i,e,a)}catch(t){if(!(t instanceof G))throw t;at(i,e,a)}};return l&&ot&&st(q,e,{configurable:!0,set:n}),lt(e,t)})[V],"toString",(function(){return W(this).tag})),E($,"withoutSetter",(function(t){return lt(O(t),t)})),D.f=dt,C.f=ct,x.f=ut,A.f=ht,y.f=w.f=ft,_.f=pt,N.f=function(t){return lt(P(t),t)},l&&(S(Y,"description",{configurable:!0,get:function(){return W(this).description}}),s||E(q,"propertyIsEnumerable",dt,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:$}),z(k(rt),(function(t){B(t)})),i({target:H,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:ht}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft}),L(),j($,H),M[F]=!0},89463:(t,e,n)=>{"use strict";var i=n(46518),r=n(43724),o=n(44576),a=n(79504),s=n(39297),l=n(94901),c=n(1625),u=n(655),d=n(62106),h=n(77740),f=o.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),e=c(p,this)?new f(t):void 0===t?f():f(t);return""===t&&(g[e]=!0),e};h(m,f),m.prototype=p,p.constructor=m;var v="Symbol(description detection)"===String(f("description detection")),b=a(p.valueOf),k=a(p.toString),y=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),_=a("".slice);d(p,"description",{configurable:!0,get:function(){var t=b(this);if(s(g,t))return"";var e=k(t),n=v?_(e,7,-1):w(e,y,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:m})}},81510:(t,e,n)=>{"use strict";var i=n(46518),r=n(97751),o=n(39297),a=n(655),s=n(25745),l=n(91296),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=r("Symbol")(e);return c[e]=n,u[n]=e,n}})},2259:(t,e,n)=>{"use strict";n(70511)("iterator")},52675:(t,e,n)=>{"use strict";n(6761),n(81510),n(97812),n(33110),n(49773)},97812:(t,e,n)=>{"use strict";var i=n(46518),r=n(39297),o=n(10757),a=n(16823),s=n(25745),l=n(91296),c=s("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(r(c,t))return c[t]}})},83237:(t,e,n)=>{"use strict";n(70511)("replace")},45700:(t,e,n)=>{"use strict";var i=n(70511),r=n(58242);i("toPrimitive"),r()},78125:(t,e,n)=>{"use strict";var i=n(97751),r=n(70511),o=n(10687);r("toStringTag"),o(i("Symbol"),"Symbol")},81630:(t,e,n)=>{"use strict";var i=n(79504),r=n(94644),o=i(n(57029)),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(t,e){return o(a(this),t,e,arguments.length>2?arguments[2]:void 0)}))},72170:(t,e,n)=>{"use strict";var i=n(94644),r=n(59213).every,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("every",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},75044:(t,e,n)=>{"use strict";var i=n(94644),r=n(84373),o=n(75854),a=n(36955),s=n(69565),l=n(79504),c=n(79039),u=i.aTypedArray,d=i.exportTypedArrayMethod,h=l("".slice);d("fill",(function(t){var e=arguments.length;u(this);var n="Big"===h(a(this),0,3)?o(t):+t;return s(r,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},69539:(t,e,n)=>{"use strict";var i=n(94644),r=n(59213).filter,o=n(29948),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("filter",(function(t){var e=r(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},89955:(t,e,n)=>{"use strict";var i=n(94644),r=n(59213).findIndex,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("findIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},31694:(t,e,n)=>{"use strict";var i=n(94644),r=n(59213).find,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("find",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},33206:(t,e,n)=>{"use strict";var i=n(94644),r=n(59213).forEach,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("forEach",(function(t){r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},44496:(t,e,n)=>{"use strict";var i=n(94644),r=n(19617).includes,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("includes",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},66651:(t,e,n)=>{"use strict";var i=n(94644),r=n(19617).indexOf,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("indexOf",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},12887:(t,e,n)=>{"use strict";var i=n(44576),r=n(79039),o=n(79504),a=n(94644),s=n(23792),l=n(78227)("iterator"),c=i.Uint8Array,u=o(s.values),d=o(s.keys),h=o(s.entries),f=a.aTypedArray,p=a.exportTypedArrayMethod,g=c&&c.prototype,m=!r((function(){g[l].call([1])})),v=!!g&&g.values&&g[l]===g.values&&"values"===g.values.name,b=function(){return u(f(this))};p("entries",(function(){return h(f(this))}),m),p("keys",(function(){return d(f(this))}),m),p("values",b,m||!v,{name:"values"}),p(l,b,m||!v,{name:"values"})},19369:(t,e,n)=>{"use strict";var i=n(94644),r=n(79504),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=r([].join);a("join",(function(t){return s(o(this),t)}))},66812:(t,e,n)=>{"use strict";var i=n(94644),r=n(18745),o=n(8379),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return r(o,a(this),e>1?[t,arguments[1]]:[t])}))},8995:(t,e,n)=>{"use strict";var i=n(94644),r=n(59213).map,o=i.aTypedArray,a=i.getTypedArrayConstructor;(0,i.exportTypedArrayMethod)("map",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},36072:(t,e,n)=>{"use strict";var i=n(94644),r=n(80926).right,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},31575:(t,e,n)=>{"use strict";var i=n(94644),r=n(80926).left,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},88747:(t,e,n)=>{"use strict";var i=n(94644),r=i.aTypedArray,o=i.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var t,e=this,n=r(e).length,i=a(n/2),o=0;o<i;)t=e[o],e[o++]=e[--n],e[n]=t;return e}))},28845:(t,e,n)=>{"use strict";var i=n(44576),r=n(69565),o=n(94644),a=n(26198),s=n(58229),l=n(48981),c=n(79039),u=i.RangeError,d=i.Int8Array,h=d&&d.prototype,f=h&&h.set,p=o.aTypedArray,g=o.exportTypedArrayMethod,m=!c((function(){var t=new Uint8ClampedArray(2);return r(f,t,{length:1,0:3},1),3!==t[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new d(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){p(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=l(t);if(m)return r(f,this,n,e);var i=this.length,o=a(n),c=0;if(o+e>i)throw new u("Wrong length");for(;c<o;)this[e+c]=n[c++]}),!m||v)},29423:(t,e,n)=>{"use strict";var i=n(94644),r=n(79039),o=n(67680),a=i.aTypedArray,s=i.getTypedArrayConstructor;(0,i.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(a(this),t,e),i=s(this),r=0,l=n.length,c=new i(l);l>r;)c[r]=n[r++];return c}),r((function(){new Int8Array(1).slice()})))},57301:(t,e,n)=>{"use strict";var i=n(94644),r=n(59213).some,o=i.aTypedArray;(0,i.exportTypedArrayMethod)("some",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},373:(t,e,n)=>{"use strict";var i=n(44576),r=n(27476),o=n(79039),a=n(79306),s=n(74488),l=n(94644),c=n(13709),u=n(13763),d=n(39519),h=n(3607),f=l.aTypedArray,p=l.exportTypedArrayMethod,g=i.Uint16Array,m=g&&r(g.prototype.sort),v=!(!m||o((function(){m(new g(2),null)}))&&o((function(){m(new g(2),{})}))),b=!!m&&!o((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(h)return h<602;var t,e,n=new g(516),i=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,i[t]=t-2*e+3;for(m(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==i[t])return!0}));p("sort",(function(t){return void 0!==t&&a(t),b?m(this,t):s(f(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!b||v)},86614:(t,e,n)=>{"use strict";var i=n(94644),r=n(18014),o=n(35610),a=i.aTypedArray,s=i.getTypedArrayConstructor;(0,i.exportTypedArrayMethod)("subarray",(function(t,e){var n=a(this),i=n.length,l=o(t,i);return new(s(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((void 0===e?i:o(e,i))-l))}))},41405:(t,e,n)=>{"use strict";var i=n(44576),r=n(18745),o=n(94644),a=n(79039),s=n(67680),l=i.Int8Array,c=o.aTypedArray,u=o.exportTypedArrayMethod,d=[].toLocaleString,h=!!l&&a((function(){d.call(new l(1))}));u("toLocaleString",(function(){return r(d,h?s(c(this)):c(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])})))},33684:(t,e,n)=>{"use strict";var i=n(94644).exportTypedArrayMethod,r=n(79039),o=n(44576),a=n(79504),s=o.Uint8Array,l=s&&s.prototype||{},c=[].toString,u=a([].join);r((function(){c.call({})}))&&(c=function(){return u(this)});var d=l.toString!==c;i("toString",c,d)},21489:(t,e,n)=>{"use strict";n(15823)("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},65746:(t,e,n)=>{"use strict";var i,r=n(92744),o=n(44576),a=n(79504),s=n(56279),l=n(3451),c=n(16468),u=n(91625),d=n(20034),h=n(91181).enforce,f=n(79039),p=n(58622),g=Object,m=Array.isArray,v=g.isExtensible,b=g.isFrozen,k=g.isSealed,y=g.freeze,w=g.seal,_=!o.ActiveXObject&&"ActiveXObject"in o,A=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},C=c("WeakMap",A,u),x=C.prototype,D=a(x.set);if(p)if(_){i=u.getConstructor(A,"WeakMap",!0),l.enable();var E=a(x.delete),S=a(x.has),T=a(x.get);s(x,{delete:function(t){if(d(t)&&!v(t)){var e=h(this);return e.frozen||(e.frozen=new i),E(this,t)||e.frozen.delete(t)}return E(this,t)},has:function(t){if(d(t)&&!v(t)){var e=h(this);return e.frozen||(e.frozen=new i),S(this,t)||e.frozen.has(t)}return S(this,t)},get:function(t){if(d(t)&&!v(t)){var e=h(this);return e.frozen||(e.frozen=new i),S(this,t)?T(this,t):e.frozen.get(t)}return T(this,t)},set:function(t,e){if(d(t)&&!v(t)){var n=h(this);n.frozen||(n.frozen=new i),S(this,t)?D(this,t,e):n.frozen.set(t,e)}else D(this,t,e);return this}})}else r&&f((function(){var t=y([]);return D(new C,t,1),!b(t)}))&&s(x,{set:function(t,e){var n;return m(t)&&(b(t)?n=y:k(t)&&(n=w)),D(this,t,e),n&&n(t),this}})},73772:(t,e,n)=>{"use strict";n(65746)},5240:(t,e,n)=>{"use strict";n(16468)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(91625))},30958:(t,e,n)=>{"use strict";n(5240)},62480:(t,e,n)=>{"use strict";n(55081)},38344:(t,e,n)=>{"use strict";n(28543)},23500:(t,e,n)=>{"use strict";var i=n(44576),r=n(67400),o=n(79296),a=n(90235),s=n(66699),l=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in r)r[c]&&l(i[c]&&i[c].prototype);l(o)},62953:(t,e,n)=>{"use strict";var i=n(44576),r=n(67400),o=n(79296),a=n(23792),s=n(66699),l=n(10687),c=n(78227)("iterator"),u=a.values,d=function(t,e){if(t){if(t[c]!==u)try{s(t,c,u)}catch(e){t[c]=u}if(l(t,e,!0),r[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var h in r)d(i[h]&&i[h].prototype,h);d(o,"DOMTokenList")},15575:(t,e,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(79472)(r.setInterval,!0);i({global:!0,bind:!0,forced:r.setInterval!==o},{setInterval:o})},24599:(t,e,n)=>{"use strict";var i=n(46518),r=n(44576),o=n(79472)(r.setTimeout,!0);i({global:!0,bind:!0,forced:r.setTimeout!==o},{setTimeout:o})},76031:(t,e,n)=>{"use strict";n(15575),n(24599)},98406:(t,e,n)=>{"use strict";n(23792),n(27337);var i=n(46518),r=n(44576),o=n(93389),a=n(97751),s=n(69565),l=n(79504),c=n(43724),u=n(67416),d=n(36840),h=n(62106),f=n(56279),p=n(10687),g=n(33994),m=n(91181),v=n(90679),b=n(94901),k=n(39297),y=n(76080),w=n(36955),_=n(28551),A=n(20034),C=n(655),x=n(2360),D=n(6980),E=n(70081),S=n(50851),T=n(62529),I=n(22812),M=n(78227),O=n(74488),P=M("iterator"),N="URLSearchParams",B=N+"Iterator",L=m.set,j=m.getterFor(N),R=m.getterFor(B),z=o("fetch"),F=o("Request"),H=o("Headers"),V=F&&F.prototype,U=H&&H.prototype,W=r.TypeError,q=r.encodeURIComponent,$=String.fromCharCode,Y=a("String","fromCodePoint"),G=parseInt,K=l("".charAt),Q=l([].join),Z=l([].push),J=l("".replace),X=l([].shift),tt=l([].splice),et=l("".split),nt=l("".slice),it=l(/./.exec),rt=/\+/g,ot=/^[0-9a-f]+$/i,at=function(t,e){var n=nt(t,e,e+2);return it(ot,n)?G(n,16):NaN},st=function(t){for(var e=0,n=128;n>0&&t&n;n>>=1)e++;return e},lt=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ct=function(t){for(var e=(t=J(t,rt," ")).length,n="",i=0;i<e;){var r=K(t,i);if("%"===r){if("%"===K(t,i+1)||i+3>e){n+="%",i++;continue}var o=at(t,i+1);if(o!=o){n+=r,i++;continue}i+=2;var a=st(o);if(0===a)r=$(o);else{if(1===a||a>4){n+="�",i++;continue}for(var s=[o],l=1;l<a&&!(++i+3>e||"%"!==K(t,i));){var c=at(t,i+1);if(c!=c){i+=3;break}if(c>191||c<128)break;Z(s,c),i+=2,l++}if(s.length!==a){n+="�";continue}var u=lt(s);null===u?n+="�":r=Y(u)}}n+=r,i++}return n},ut=/[!'()~]|%20/g,dt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ht=function(t){return dt[t]},ft=function(t){return J(q(t),ut,ht)},pt=g((function(t,e){L(this,{type:B,target:j(t).entries,index:0,kind:e})}),N,(function(){var t=R(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,T(void 0,!0);var i=e[n];switch(t.kind){case"keys":return T(i.key,!1);case"values":return T(i.value,!1)}return T([i.key,i.value],!1)}),!0),gt=function(t){this.entries=[],this.url=null,void 0!==t&&(A(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===K(t,0)?nt(t,1):t:C(t)))};gt.prototype={type:N,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,o,a,l,c=this.entries,u=S(t);if(u)for(n=(e=E(t,u)).next;!(i=s(n,e)).done;){if(o=(r=E(_(i.value))).next,(a=s(o,r)).done||(l=s(o,r)).done||!s(o,r).done)throw new W("Expected sequence with length 2");Z(c,{key:C(a.value),value:C(l.value)})}else for(var d in t)k(t,d)&&Z(c,{key:d,value:C(t[d])})},parseQuery:function(t){if(t)for(var e,n,i=this.entries,r=et(t,"&"),o=0;o<r.length;)(e=r[o++]).length&&(n=et(e,"="),Z(i,{key:ct(X(n)),value:ct(Q(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],i=0;i<e.length;)t=e[i++],Z(n,ft(t.key)+"="+ft(t.value));return Q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var mt=function(){v(this,vt);var t=L(this,new gt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},vt=mt.prototype;if(f(vt,{append:function(t,e){var n=j(this);I(arguments.length,2),Z(n.entries,{key:C(t),value:C(e)}),c||this.length++,n.updateURL()},delete:function(t){for(var e=j(this),n=I(arguments.length,1),i=e.entries,r=C(t),o=n<2?void 0:arguments[1],a=void 0===o?o:C(o),s=0;s<i.length;){var l=i[s];if(l.key!==r||void 0!==a&&l.value!==a)s++;else if(tt(i,s,1),void 0!==a)break}c||(this.size=i.length),e.updateURL()},get:function(t){var e=j(this).entries;I(arguments.length,1);for(var n=C(t),i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){var e=j(this).entries;I(arguments.length,1);for(var n=C(t),i=[],r=0;r<e.length;r++)e[r].key===n&&Z(i,e[r].value);return i},has:function(t){for(var e=j(this).entries,n=I(arguments.length,1),i=C(t),r=n<2?void 0:arguments[1],o=void 0===r?r:C(r),a=0;a<e.length;){var s=e[a++];if(s.key===i&&(void 0===o||s.value===o))return!0}return!1},set:function(t,e){var n=j(this);I(arguments.length,1);for(var i,r=n.entries,o=!1,a=C(t),s=C(e),l=0;l<r.length;l++)(i=r[l]).key===a&&(o?tt(r,l--,1):(o=!0,i.value=s));o||Z(r,{key:a,value:s}),c||(this.size=r.length),n.updateURL()},sort:function(){var t=j(this);O(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=j(this).entries,i=y(t,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((e=n[r++]).value,e.key,this)},keys:function(){return new pt(this,"keys")},values:function(){return new pt(this,"values")},entries:function(){return new pt(this,"entries")}},{enumerable:!0}),d(vt,P,vt.entries,{name:"entries"}),d(vt,"toString",(function(){return j(this).serialize()}),{enumerable:!0}),c&&h(vt,"size",{get:function(){return j(this).entries.length},configurable:!0,enumerable:!0}),p(mt,N),i({global:!0,constructor:!0,forced:!u},{URLSearchParams:mt}),!u&&b(H)){var bt=l(U.has),kt=l(U.set),yt=function(t){if(A(t)){var e,n=t.body;if(w(n)===N)return e=t.headers?new H(t.headers):new H,bt(e,"content-type")||kt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),x(t,{body:D(0,C(n)),headers:D(0,e)})}return t};if(b(z)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return z(t,arguments.length>1?yt(arguments[1]):{})}}),b(F)){var wt=function(t){return v(this,V),new F(t,arguments.length>1?yt(arguments[1]):{})};V.constructor=wt,wt.prototype=V,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:wt})}}t.exports={URLSearchParams:mt,getState:j}},48408:(t,e,n)=>{"use strict";n(98406)},45806:(t,e,n)=>{"use strict";n(47764);var i,r=n(46518),o=n(43724),a=n(67416),s=n(44576),l=n(76080),c=n(79504),u=n(36840),d=n(62106),h=n(90679),f=n(39297),p=n(44213),g=n(97916),m=n(67680),v=n(68183).codeAt,b=n(3717),k=n(655),y=n(10687),w=n(22812),_=n(98406),A=n(91181),C=A.set,x=A.getterFor("URL"),D=_.URLSearchParams,E=_.getState,S=s.URL,T=s.TypeError,I=s.parseInt,M=Math.floor,O=Math.pow,P=c("".charAt),N=c(/./.exec),B=c([].join),L=c(1..toString),j=c([].pop),R=c([].push),z=c("".replace),F=c([].shift),H=c("".split),V=c("".slice),U=c("".toLowerCase),W=c([].unshift),q="Invalid scheme",$="Invalid host",Y="Invalid port",G=/[a-z]/i,K=/[\d+-.a-z]/i,Q=/\d/,Z=/^0x/i,J=/^[0-7]+$/,X=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,it=/^[\u0000-\u0020]+/,rt=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ot=/[\t\n\r]/g,at=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)W(e,t%256),t=M(t/256);return B(e,".")}if("object"==typeof t){for(e="",i=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n?i:e}(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=L(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},st={},lt=p({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=p({},lt,{"#":1,"?":1,"{":1,"}":1}),ut=p({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(t,e){var n=v(t,0);return n>32&&n<127&&!f(e,t)?t:encodeURIComponent(t)},ht={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ft=function(t,e){var n;return 2===t.length&&N(G,P(t,0))&&(":"===(n=P(t,1))||!e&&"|"===n)},pt=function(t){var e;return t.length>1&&ft(V(t,0,2))&&(2===t.length||"/"===(e=P(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===U(t)},mt={},vt={},bt={},kt={},yt={},wt={},_t={},At={},Ct={},xt={},Dt={},Et={},St={},Tt={},It={},Mt={},Ot={},Pt={},Nt={},Bt={},Lt={},jt=function(t,e,n){var i,r,o,a=k(t);if(e){if(r=this.parse(a))throw new T(r);this.searchParams=null}else{if(void 0!==n&&(i=new jt(n,!0)),r=this.parse(a,null,i))throw new T(r);(o=E(new D)).bindURL(this),this.searchParams=o}};jt.prototype={type:"URL",parse:function(t,e,n){var r,o,a,s,l,c=this,u=e||mt,d=0,h="",p=!1,v=!1,b=!1;for(t=k(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=z(t,it,""),t=z(t,rt,"$1")),t=z(t,ot,""),r=g(t);d<=r.length;){switch(o=r[d],u){case mt:if(!o||!N(G,o)){if(e)return q;u=bt;continue}h+=U(o),u=vt;break;case vt:if(o&&(N(K,o)||"+"===o||"-"===o||"."===o))h+=U(o);else{if(":"!==o){if(e)return q;h="",u=bt,d=0;continue}if(e&&(c.isSpecial()!==f(ht,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&ht[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?u=Tt:c.isSpecial()&&n&&n.scheme===c.scheme?u=kt:c.isSpecial()?u=At:"/"===r[d+1]?(u=yt,d++):(c.cannotBeABaseURL=!0,R(c.path,""),u=Nt)}break;case bt:if(!n||n.cannotBeABaseURL&&"#"!==o)return q;if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=m(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Lt;break}u="file"===n.scheme?Tt:wt;continue;case kt:if("/"!==o||"/"!==r[d+1]){u=wt;continue}u=Ct,d++;break;case yt:if("/"===o){u=xt;break}u=Pt;continue;case wt:if(c.scheme=n.scheme,o===i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())u=_t;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query="",u=Bt;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.path.length--,u=Pt;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=m(n.path),c.query=n.query,c.fragment="",u=Lt}break;case _t:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Pt;continue}u=xt}else u=Ct;break;case At:if(u=Ct,"/"!==o||"/"!==P(h,d+1))continue;d++;break;case Ct:if("/"!==o&&"\\"!==o){u=xt;continue}break;case xt:if("@"===o){p&&(h="%40"+h),p=!0,a=g(h);for(var y=0;y<a.length;y++){var w=a[y];if(":"!==w||b){var _=dt(w,ut);b?c.password+=_:c.username+=_}else b=!0}h=""}else if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(p&&""===h)return"Invalid authority";d-=g(h).length+1,h="",u=Dt}else h+=o;break;case Dt:case Et:if(e&&"file"===c.scheme){u=Mt;continue}if(":"!==o||v){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===h)return $;if(e&&""===h&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(h))return s;if(h="",u=Ot,e)return;continue}"["===o?v=!0:"]"===o&&(v=!1),h+=o}else{if(""===h)return $;if(s=c.parseHost(h))return s;if(h="",u=St,e===Et)return}break;case St:if(!N(Q,o)){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||e){if(""!==h){var A=I(h,10);if(A>65535)return Y;c.port=c.isSpecial()&&A===ht[c.scheme]?null:A,h=""}if(e)return;u=Ot;continue}return Y}h+=o;break;case Tt:if(c.scheme="file","/"===o||"\\"===o)u=It;else{if(!n||"file"!==n.scheme){u=Pt;continue}switch(o){case i:c.host=n.host,c.path=m(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=m(n.path),c.query="",u=Bt;break;case"#":c.host=n.host,c.path=m(n.path),c.query=n.query,c.fragment="",u=Lt;break;default:pt(B(m(r,d),""))||(c.host=n.host,c.path=m(n.path),c.shortenPath()),u=Pt;continue}}break;case It:if("/"===o||"\\"===o){u=Mt;break}n&&"file"===n.scheme&&!pt(B(m(r,d),""))&&(ft(n.path[0],!0)?R(c.path,n.path[0]):c.host=n.host),u=Pt;continue;case Mt:if(o===i||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&ft(h))u=Pt;else if(""===h){if(c.host="",e)return;u=Ot}else{if(s=c.parseHost(h))return s;if("localhost"===c.host&&(c.host=""),e)return;h="",u=Ot}continue}h+=o;break;case Ot:if(c.isSpecial()){if(u=Pt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==i&&(u=Pt,"/"!==o))continue}else c.fragment="",u=Lt;else c.query="",u=Bt;break;case Pt:if(o===i||"/"===o||"\\"===o&&c.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(l=U(l=h))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||R(c.path,"")):gt(h)?"/"===o||"\\"===o&&c.isSpecial()||R(c.path,""):("file"===c.scheme&&!c.path.length&&ft(h)&&(c.host&&(c.host=""),h=P(h,0)+":"),R(c.path,h)),h="","file"===c.scheme&&(o===i||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)F(c.path);"?"===o?(c.query="",u=Bt):"#"===o&&(c.fragment="",u=Lt)}else h+=dt(o,ct);break;case Nt:"?"===o?(c.query="",u=Bt):"#"===o?(c.fragment="",u=Lt):o!==i&&(c.path[0]+=dt(o,st));break;case Bt:e||"#"!==o?o!==i&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":dt(o,st)):(c.fragment="",u=Lt);break;case Lt:o!==i&&(c.fragment+=dt(o,lt))}d++}},parseHost:function(t){var e,n,i;if("["===P(t,0)){if("]"!==P(t,t.length-1))return $;if(e=function(t){var e,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return P(t,d)};if(":"===h()){if(":"!==P(t,1))return;d+=2,u=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=n=0;n<4&&N(tt,h());)e=16*e+I(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,c>6)return;for(i=0;h();){if(r=null,i>0){if(!("."===h()&&i<4))return;d++}if(!N(Q,h()))return;for(;N(Q,h());){if(o=I(h(),10),null===r)r=o;else{if(0===r)return;r=10*r+o}if(r>255)return;d++}l[c]=256*l[c]+r,2!=++i&&4!==i||c++}if(4!==i)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;l[c++]=e}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!==c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!==c)return;return l}(V(t,1,-1)),!e)return $;this.host=e}else if(this.isSpecial()){if(t=b(t),N(et,t))return $;if(e=function(t){var e,n,i,r,o,a,s,l=H(t,".");if(l.length&&""===l[l.length-1]&&l.length--,(e=l.length)>4)return t;for(n=[],i=0;i<e;i++){if(""===(r=l[i]))return t;if(o=10,r.length>1&&"0"===P(r,0)&&(o=N(Z,r)?16:8,r=V(r,8===o?1:2)),""===r)a=0;else{if(!N(10===o?X:8===o?J:tt,r))return t;a=I(r,o)}R(n,a)}for(i=0;i<e;i++)if(a=n[i],i===e-1){if(a>=O(256,5-e))return null}else if(a>255)return null;for(s=j(n),i=0;i<n.length;i++)s+=n[i]*O(256,3-i);return s}(t),null===e)return $;this.host=e}else{if(N(nt,t))return $;for(e="",n=g(t),i=0;i<n.length;i++)e+=dt(n[i],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return f(ht,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&ft(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,i=t.password,r=t.host,o=t.port,a=t.path,s=t.query,l=t.fragment,c=e+":";return null!==r?(c+="//",t.includesCredentials()&&(c+=n+(i?":"+i:"")+"@"),c+=at(r),null!==o&&(c+=":"+o)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+B(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(t){var e=this.parse(t);if(e)throw new T(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Rt(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(k(t)+":",mt)},getUsername:function(){return this.username},setUsername:function(t){var e=g(k(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=dt(e[n],ut)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(k(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=dt(e[n],ut)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Dt)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getPort:function(){var t=this.port;return null===t?"":k(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=k(t))?this.port=null:this.parse(t,St))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+B(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ot))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=k(t))?this.query=null:("?"===P(t,0)&&(t=V(t,1)),this.query="",this.parse(t,Bt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=k(t))?("#"===P(t,0)&&(t=V(t,1)),this.fragment="",this.parse(t,Lt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Rt=function(t){var e=h(this,zt),n=w(arguments.length,1)>1?arguments[1]:void 0,i=C(e,new jt(t,!1,n));o||(e.href=i.serialize(),e.origin=i.getOrigin(),e.protocol=i.getProtocol(),e.username=i.getUsername(),e.password=i.getPassword(),e.host=i.getHost(),e.hostname=i.getHostname(),e.port=i.getPort(),e.pathname=i.getPathname(),e.search=i.getSearch(),e.searchParams=i.getSearchParams(),e.hash=i.getHash())},zt=Rt.prototype,Ft=function(t,e){return{get:function(){return x(this)[t]()},set:e&&function(t){return x(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(d(zt,"href",Ft("serialize","setHref")),d(zt,"origin",Ft("getOrigin")),d(zt,"protocol",Ft("getProtocol","setProtocol")),d(zt,"username",Ft("getUsername","setUsername")),d(zt,"password",Ft("getPassword","setPassword")),d(zt,"host",Ft("getHost","setHost")),d(zt,"hostname",Ft("getHostname","setHostname")),d(zt,"port",Ft("getPort","setPort")),d(zt,"pathname",Ft("getPathname","setPathname")),d(zt,"search",Ft("getSearch","setSearch")),d(zt,"searchParams",Ft("getSearchParams")),d(zt,"hash",Ft("getHash","setHash"))),u(zt,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),u(zt,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),S){var Ht=S.createObjectURL,Vt=S.revokeObjectURL;Ht&&u(Rt,"createObjectURL",l(Ht,S)),Vt&&u(Rt,"revokeObjectURL",l(Vt,S))}y(Rt,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Rt})},3296:(t,e,n)=>{"use strict";n(45806)},27208:(t,e,n)=>{"use strict";var i=n(46518),r=n(69565);i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},4523:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>Un});var i={};n.r(i),n.d(i,{VERSION:()=>r,after:()=>Ne,all:()=>tn,allKeys:()=>mt,any:()=>en,assign:()=>Nt,before:()=>Be,bind:()=>_e,bindAll:()=>xe,chain:()=>be,chunk:()=>Rn,clone:()=>Rt,collect:()=>Ge,compact:()=>En,compose:()=>Pe,constant:()=>J,contains:()=>nn,countBy:()=>vn,create:()=>jt,debounce:()=>Ie,default:()=>Hn,defaults:()=>Bt,defer:()=>Se,delay:()=>Ee,detect:()=>qe,difference:()=>Tn,drop:()=>xn,each:()=>Ye,escape:()=>ae,every:()=>tn,extend:()=>Pt,extendOwn:()=>Nt,filter:()=>Je,find:()=>qe,findIndex:()=>ze,findKey:()=>je,findLastIndex:()=>Fe,findWhere:()=>$e,first:()=>Cn,flatten:()=>Sn,foldl:()=>Qe,foldr:()=>Ze,forEach:()=>Ye,functions:()=>Mt,get:()=>Ut,groupBy:()=>gn,has:()=>Wt,head:()=>Cn,identity:()=>qt,include:()=>nn,includes:()=>nn,indexBy:()=>mn,indexOf:()=>Ue,initial:()=>An,inject:()=>Qe,intersection:()=>Pn,invert:()=>It,invoke:()=>rn,isArguments:()=>K,isArray:()=>$,isArrayBuffer:()=>j,isBoolean:()=>S,isDataView:()=>q,isDate:()=>P,isElement:()=>T,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>B,isFinite:()=>Q,isFunction:()=>F,isMap:()=>Ct,isMatch:()=>ct,isNaN:()=>Z,isNull:()=>D,isNumber:()=>O,isObject:()=>x,isRegExp:()=>N,isSet:()=>Dt,isString:()=>M,isSymbol:()=>L,isTypedArray:()=>rt,isUndefined:()=>E,isWeakMap:()=>xt,isWeakSet:()=>Et,iteratee:()=>Qt,keys:()=>st,last:()=>Dn,lastIndexOf:()=>We,map:()=>Ge,mapObject:()=>Jt,matcher:()=>$t,matches:()=>$t,max:()=>sn,memoize:()=>De,methods:()=>Mt,min:()=>ln,mixin:()=>Fn,negate:()=>Oe,noop:()=>Xt,now:()=>ie,object:()=>Ln,omit:()=>_n,once:()=>Le,pairs:()=>Tt,partial:()=>we,partition:()=>bn,pick:()=>wn,pluck:()=>on,property:()=>Yt,propertyOf:()=>te,random:()=>ne,range:()=>jn,reduce:()=>Qe,reduceRight:()=>Ze,reject:()=>Xe,rest:()=>xn,restArguments:()=>C,result:()=>ge,sample:()=>dn,select:()=>Je,shuffle:()=>hn,size:()=>kn,some:()=>en,sortBy:()=>fn,sortedIndex:()=>He,tail:()=>xn,take:()=>Cn,tap:()=>zt,template:()=>pe,templateSettings:()=>le,throttle:()=>Te,times:()=>ee,toArray:()=>un,toPath:()=>Ft,transpose:()=>Nn,unescape:()=>se,union:()=>On,uniq:()=>Mn,unique:()=>Mn,uniqueId:()=>ve,unzip:()=>Nn,values:()=>St,where:()=>an,without:()=>In,wrap:()=>Me,zip:()=>Bn});var r="1.13.7",o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,d=s.toString,h=s.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,g=Array.isArray,m=Object.keys,v=Object.create,b=f&&ArrayBuffer.isView,k=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],A=Math.pow(2,53)-1;function C(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+e];switch(e){case 0:return t.call(this,i);case 1:return t.call(this,arguments[0],i);case 2:return t.call(this,arguments[0],arguments[1],i)}var o=Array(e+1);for(r=0;r<e;r++)o[r]=arguments[r];return o[e]=i,t.apply(this,o)}}function x(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function D(t){return null===t}function E(t){return void 0===t}function S(t){return!0===t||!1===t||"[object Boolean]"===d.call(t)}function T(t){return!(!t||1!==t.nodeType)}function I(t){var e="[object "+t+"]";return function(t){return d.call(t)===e}}const M=I("String"),O=I("Number"),P=I("Date"),N=I("RegExp"),B=I("Error"),L=I("Symbol"),j=I("ArrayBuffer");var R=I("Function"),z=o.document&&o.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof z&&(R=function(t){return"function"==typeof t||!1});const F=R,H=I("Object");var V=p&&(!/\[native code\]/.test(String(DataView))||H(new DataView(new ArrayBuffer(8)))),U="undefined"!=typeof Map&&H(new Map),W=I("DataView");const q=V?function(t){return null!=t&&F(t.getInt8)&&j(t.buffer)}:W,$=g||I("Array");function Y(t,e){return null!=t&&h.call(t,e)}var G=I("Arguments");!function(){G(arguments)||(G=function(t){return Y(t,"callee")})}();const K=G;function Q(t){return!L(t)&&y(t)&&!isNaN(parseFloat(t))}function Z(t){return O(t)&&k(t)}function J(t){return function(){return t}}function X(t){return function(e){var n=t(e);return"number"==typeof n&&n>=0&&n<=A}}function tt(t){return function(e){return null==e?void 0:e[t]}}const et=tt("byteLength"),nt=X(et);var it=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const rt=f?function(t){return b?b(t)&&!q(t):nt(t)&&it.test(d.call(t))}:J(!1),ot=tt("length");function at(t,e){e=function(t){for(var e={},n=t.length,i=0;i<n;++i)e[t[i]]=!0;return{contains:function(t){return!0===e[t]},push:function(n){return e[n]=!0,t.push(n)}}}(e);var n=_.length,i=t.constructor,r=F(i)&&i.prototype||s,o="constructor";for(Y(t,o)&&!e.contains(o)&&e.push(o);n--;)(o=_[n])in t&&t[o]!==r[o]&&!e.contains(o)&&e.push(o)}function st(t){if(!x(t))return[];if(m)return m(t);var e=[];for(var n in t)Y(t,n)&&e.push(n);return w&&at(t,e),e}function lt(t){if(null==t)return!0;var e=ot(t);return"number"==typeof e&&($(t)||M(t)||K(t))?0===e:0===ot(st(t))}function ct(t,e){var n=st(e),i=n.length;if(null==t)return!i;for(var r=Object(t),o=0;o<i;o++){var a=n[o];if(e[a]!==r[a]||!(a in r))return!1}return!0}function ut(t){return t instanceof ut?t:this instanceof ut?void(this._wrapped=t):new ut(t)}function dt(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,et(t))}ut.VERSION=r,ut.prototype.value=function(){return this._wrapped},ut.prototype.valueOf=ut.prototype.toJSON=ut.prototype.value,ut.prototype.toString=function(){return String(this._wrapped)};var ht="[object DataView]";function ft(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var r=typeof t;return("function"===r||"object"===r||"object"==typeof e)&&pt(t,e,n,i)}function pt(t,e,n,i){t instanceof ut&&(t=t._wrapped),e instanceof ut&&(e=e._wrapped);var r=d.call(t);if(r!==d.call(e))return!1;if(V&&"[object Object]"==r&&q(t)){if(!q(e))return!1;r=ht}switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e);case"[object ArrayBuffer]":case ht:return pt(dt(t),dt(e),n,i)}var o="[object Array]"===r;if(!o&&rt(t)){if(et(t)!==et(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(F(a)&&a instanceof a&&F(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}i=i||[];for(var c=(n=n||[]).length;c--;)if(n[c]===t)return i[c]===e;if(n.push(t),i.push(e),o){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ft(t[c],e[c],n,i))return!1}else{var u,h=st(t);if(c=h.length,st(e).length!==c)return!1;for(;c--;)if(!Y(e,u=h[c])||!ft(t[u],e[u],n,i))return!1}return n.pop(),i.pop(),!0}function gt(t,e){return ft(t,e)}function mt(t){if(!x(t))return[];var e=[];for(var n in t)e.push(n);return w&&at(t,e),e}function vt(t){var e=ot(t);return function(n){if(null==n)return!1;var i=mt(n);if(ot(i))return!1;for(var r=0;r<e;r++)if(!F(n[t[r]]))return!1;return t!==_t||!F(n[bt])}}var bt="forEach",kt=["clear","delete"],yt=["get","has","set"],wt=kt.concat(bt,yt),_t=kt.concat(yt),At=["add"].concat(kt,bt,"has");const Ct=U?vt(wt):I("Map"),xt=U?vt(_t):I("WeakMap"),Dt=U?vt(At):I("Set"),Et=I("WeakSet");function St(t){for(var e=st(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=t[e[r]];return i}function Tt(t){for(var e=st(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=[e[r],t[e[r]]];return i}function It(t){for(var e={},n=st(t),i=0,r=n.length;i<r;i++)e[t[n[i]]]=n[i];return e}function Mt(t){var e=[];for(var n in t)F(t[n])&&e.push(n);return e.sort()}function Ot(t,e){return function(n){var i=arguments.length;if(e&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var o=arguments[r],a=t(o),s=a.length,l=0;l<s;l++){var c=a[l];e&&void 0!==n[c]||(n[c]=o[c])}return n}}const Pt=Ot(mt),Nt=Ot(st),Bt=Ot(mt,!0);function Lt(t){if(!x(t))return{};if(v)return v(t);var e=function(){};e.prototype=t;var n=new e;return e.prototype=null,n}function jt(t,e){var n=Lt(t);return e&&Nt(n,e),n}function Rt(t){return x(t)?$(t)?t.slice():Pt({},t):t}function zt(t,e){return e(t),t}function Ft(t){return $(t)?t:[t]}function Ht(t){return ut.toPath(t)}function Vt(t,e){for(var n=e.length,i=0;i<n;i++){if(null==t)return;t=t[e[i]]}return n?t:void 0}function Ut(t,e,n){var i=Vt(t,Ht(e));return E(i)?n:i}function Wt(t,e){for(var n=(e=Ht(e)).length,i=0;i<n;i++){var r=e[i];if(!Y(t,r))return!1;t=t[r]}return!!n}function qt(t){return t}function $t(t){return t=Nt({},t),function(e){return ct(e,t)}}function Yt(t){return t=Ht(t),function(e){return Vt(e,t)}}function Gt(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)}}return function(){return t.apply(e,arguments)}}function Kt(t,e,n){return null==t?qt:F(t)?Gt(t,e,n):x(t)&&!$(t)?$t(t):Yt(t)}function Qt(t,e){return Kt(t,e,1/0)}function Zt(t,e,n){return ut.iteratee!==Qt?ut.iteratee(t,e):Kt(t,e,n)}function Jt(t,e,n){e=Zt(e,n);for(var i=st(t),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=e(t[s],s,t)}return o}function Xt(){}function te(t){return null==t?Xt:function(e){return Ut(t,e)}}function ee(t,e,n){var i=Array(Math.max(0,t));e=Gt(e,n,1);for(var r=0;r<t;r++)i[r]=e(r);return i}function ne(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ut.toPath=Ft,ut.iteratee=Qt;const ie=Date.now||function(){return(new Date).getTime()};function re(t){var e=function(e){return t[e]},n="(?:"+st(t).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(r,e):t}}const oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ae=re(oe),se=re(It(oe)),le=ut.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ce=/(.)^/,ue={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},de=/\\|'|\r|\n|\u2028|\u2029/g;function he(t){return"\\"+ue[t]}var fe=/^\s*(\w|\$)+\s*$/;function pe(t,e,n){!e&&n&&(e=n),e=Bt({},e,ut.templateSettings);var i=RegExp([(e.escape||ce).source,(e.interpolate||ce).source,(e.evaluate||ce).source].join("|")+"|$","g"),r=0,o="__p+='";t.replace(i,(function(e,n,i,a,s){return o+=t.slice(r,s).replace(de,he),r=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e})),o+="';\n";var a,s=e.variable;if(s){if(!fe.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(t){throw t.source=o,t}var l=function(t){return a.call(this,t,ut)};return l.source="function("+s+"){\n"+o+"}",l}function ge(t,e,n){var i=(e=Ht(e)).length;if(!i)return F(n)?n.call(t):n;for(var r=0;r<i;r++){var o=null==t?void 0:t[e[r]];void 0===o&&(o=n,r=i),t=F(o)?o.call(t):o}return t}var me=0;function ve(t){var e=++me+"";return t?t+e:e}function be(t){var e=ut(t);return e._chain=!0,e}function ke(t,e,n,i,r){if(!(i instanceof e))return t.apply(n,r);var o=Lt(t.prototype),a=t.apply(o,r);return x(a)?a:o}var ye=C((function(t,e){var n=ye.placeholder,i=function(){for(var r=0,o=e.length,a=Array(o),s=0;s<o;s++)a[s]=e[s]===n?arguments[r++]:e[s];for(;r<arguments.length;)a.push(arguments[r++]);return ke(t,i,this,this,a)};return i}));ye.placeholder=ut;const we=ye,_e=C((function(t,e,n){if(!F(t))throw new TypeError("Bind must be called on a function");var i=C((function(r){return ke(t,i,e,this,n.concat(r))}));return i})),Ae=X(ot);function Ce(t,e,n,i){if(i=i||[],e||0===e){if(e<=0)return i.concat(t)}else e=1/0;for(var r=i.length,o=0,a=ot(t);o<a;o++){var s=t[o];if(Ae(s)&&($(s)||K(s)))if(e>1)Ce(s,e-1,n,i),r=i.length;else for(var l=0,c=s.length;l<c;)i[r++]=s[l++];else n||(i[r++]=s)}return i}const xe=C((function(t,e){var n=(e=Ce(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=e[n];t[i]=_e(t[i],t)}return t}));function De(t,e){var n=function(i){var r=n.cache,o=""+(e?e.apply(this,arguments):i);return Y(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return n.cache={},n}const Ee=C((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),Se=we(Ee,ut,1);function Te(t,e,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:ie(),i=null,a=t.apply(r,o),i||(r=o=null)},c=function(){var c=ie();s||!1!==n.leading||(s=c);var u=e-(c-s);return r=this,o=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=c,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c}function Ie(t,e,n){var i,r,o,a,s,l=function(){var c=ie()-r;e>c?i=setTimeout(l,e-c):(i=null,n||(a=t.apply(s,o)),i||(o=s=null))},c=C((function(c){return s=this,o=c,r=ie(),i||(i=setTimeout(l,e),n&&(a=t.apply(s,o))),a}));return c.cancel=function(){clearTimeout(i),i=o=s=null},c}function Me(t,e){return we(e,t)}function Oe(t){return function(){return!t.apply(this,arguments)}}function Pe(){var t=arguments,e=t.length-1;return function(){for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}}function Ne(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Be(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Le=we(Be,2);function je(t,e,n){e=Zt(e,n);for(var i,r=st(t),o=0,a=r.length;o<a;o++)if(e(t[i=r[o]],i,t))return i}function Re(t){return function(e,n,i){n=Zt(n,i);for(var r=ot(e),o=t>0?0:r-1;o>=0&&o<r;o+=t)if(n(e[o],o,e))return o;return-1}}const ze=Re(1),Fe=Re(-1);function He(t,e,n,i){for(var r=(n=Zt(n,i,1))(e),o=0,a=ot(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<r?o=s+1:a=s}return o}function Ve(t,e,n){return function(i,r,o){var a=0,s=ot(i);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return i[o=n(i,r)]===r?o:-1;if(r!=r)return(o=e(u.call(i,a,s),Z))>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(i[o]===r)return o;return-1}}const Ue=Ve(1,ze,He),We=Ve(-1,Fe);function qe(t,e,n){var i=(Ae(t)?ze:je)(t,e,n);if(void 0!==i&&-1!==i)return t[i]}function $e(t,e){return qe(t,$t(e))}function Ye(t,e,n){var i,r;if(e=Gt(e,n),Ae(t))for(i=0,r=t.length;i<r;i++)e(t[i],i,t);else{var o=st(t);for(i=0,r=o.length;i<r;i++)e(t[o[i]],o[i],t)}return t}function Ge(t,e,n){e=Zt(e,n);for(var i=!Ae(t)&&st(t),r=(i||t).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=e(t[s],s,t)}return o}function Ke(t){return function(e,n,i,r){var o=arguments.length>=3;return function(e,n,i,r){var o=!Ae(e)&&st(e),a=(o||e).length,s=t>0?0:a-1;for(r||(i=e[o?o[s]:s],s+=t);s>=0&&s<a;s+=t){var l=o?o[s]:s;i=n(i,e[l],l,e)}return i}(e,Gt(n,r,4),i,o)}}const Qe=Ke(1),Ze=Ke(-1);function Je(t,e,n){var i=[];return e=Zt(e,n),Ye(t,(function(t,n,r){e(t,n,r)&&i.push(t)})),i}function Xe(t,e,n){return Je(t,Oe(Zt(e)),n)}function tn(t,e,n){e=Zt(e,n);for(var i=!Ae(t)&&st(t),r=(i||t).length,o=0;o<r;o++){var a=i?i[o]:o;if(!e(t[a],a,t))return!1}return!0}function en(t,e,n){e=Zt(e,n);for(var i=!Ae(t)&&st(t),r=(i||t).length,o=0;o<r;o++){var a=i?i[o]:o;if(e(t[a],a,t))return!0}return!1}function nn(t,e,n,i){return Ae(t)||(t=St(t)),("number"!=typeof n||i)&&(n=0),Ue(t,e,n)>=0}const rn=C((function(t,e,n){var i,r;return F(e)?r=e:(e=Ht(e),i=e.slice(0,-1),e=e[e.length-1]),Ge(t,(function(t){var o=r;if(!o){if(i&&i.length&&(t=Vt(t,i)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function on(t,e){return Ge(t,Yt(e))}function an(t,e){return Je(t,$t(e))}function sn(t,e,n){var i,r,o=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=Ae(t)?t:St(t)).length;s<l;s++)null!=(i=t[s])&&i>o&&(o=i);else e=Zt(e,n),Ye(t,(function(t,n,i){((r=e(t,n,i))>a||r===-1/0&&o===-1/0)&&(o=t,a=r)}));return o}function ln(t,e,n){var i,r,o=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=Ae(t)?t:St(t)).length;s<l;s++)null!=(i=t[s])&&i<o&&(o=i);else e=Zt(e,n),Ye(t,(function(t,n,i){((r=e(t,n,i))<a||r===1/0&&o===1/0)&&(o=t,a=r)}));return o}var cn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function un(t){return t?$(t)?u.call(t):M(t)?t.match(cn):Ae(t)?Ge(t,qt):St(t):[]}function dn(t,e,n){if(null==e||n)return Ae(t)||(t=St(t)),t[ne(t.length-1)];var i=un(t),r=ot(i);e=Math.max(Math.min(e,r),0);for(var o=r-1,a=0;a<e;a++){var s=ne(a,o),l=i[a];i[a]=i[s],i[s]=l}return i.slice(0,e)}function hn(t){return dn(t,1/0)}function fn(t,e,n){var i=0;return e=Zt(e,n),on(Ge(t,(function(t,n,r){return{value:t,index:i++,criteria:e(t,n,r)}})).sort((function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return t.index-e.index})),"value")}function pn(t,e){return function(n,i,r){var o=e?[[],[]]:{};return i=Zt(i,r),Ye(n,(function(e,r){var a=i(e,r,n);t(o,e,a)})),o}}const gn=pn((function(t,e,n){Y(t,n)?t[n].push(e):t[n]=[e]})),mn=pn((function(t,e,n){t[n]=e})),vn=pn((function(t,e,n){Y(t,n)?t[n]++:t[n]=1})),bn=pn((function(t,e,n){t[n?0:1].push(e)}),!0);function kn(t){return null==t?0:Ae(t)?t.length:st(t).length}function yn(t,e,n){return e in n}const wn=C((function(t,e){var n={},i=e[0];if(null==t)return n;F(i)?(e.length>1&&(i=Gt(i,e[1])),e=mt(t)):(i=yn,e=Ce(e,!1,!1),t=Object(t));for(var r=0,o=e.length;r<o;r++){var a=e[r],s=t[a];i(s,a,t)&&(n[a]=s)}return n})),_n=C((function(t,e){var n,i=e[0];return F(i)?(i=Oe(i),e.length>1&&(n=e[1])):(e=Ge(Ce(e,!1,!1),String),i=function(t,n){return!nn(e,n)}),wn(t,i,n)}));function An(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function Cn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:An(t,t.length-e)}function xn(t,e,n){return u.call(t,null==e||n?1:e)}function Dn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:xn(t,Math.max(0,t.length-e))}function En(t){return Je(t,Boolean)}function Sn(t,e){return Ce(t,e,!1)}const Tn=C((function(t,e){return e=Ce(e,!0,!0),Je(t,(function(t){return!nn(e,t)}))})),In=C((function(t,e){return Tn(t,e)}));function Mn(t,e,n,i){S(e)||(i=n,n=e,e=!1),null!=n&&(n=Zt(n,i));for(var r=[],o=[],a=0,s=ot(t);a<s;a++){var l=t[a],c=n?n(l,a,t):l;e&&!n?(a&&o===c||r.push(l),o=c):n?nn(o,c)||(o.push(c),r.push(l)):nn(r,l)||r.push(l)}return r}const On=C((function(t){return Mn(Ce(t,!0,!0))}));function Pn(t){for(var e=[],n=arguments.length,i=0,r=ot(t);i<r;i++){var o=t[i];if(!nn(e,o)){var a;for(a=1;a<n&&nn(arguments[a],o);a++);a===n&&e.push(o)}}return e}function Nn(t){for(var e=t&&sn(t,ot).length||0,n=Array(e),i=0;i<e;i++)n[i]=on(t,i);return n}const Bn=C(Nn);function Ln(t,e){for(var n={},i=0,r=ot(t);i<r;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n}function jn(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var i=Math.max(Math.ceil((e-t)/n),0),r=Array(i),o=0;o<i;o++,t+=n)r[o]=t;return r}function Rn(t,e){if(null==e||e<1)return[];for(var n=[],i=0,r=t.length;i<r;)n.push(u.call(t,i,i+=e));return n}function zn(t,e){return t._chain?ut(e).chain():e}function Fn(t){return Ye(Mt(t),(function(e){var n=ut[e]=t[e];ut.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),zn(this,n.apply(ut,t))}})),ut}Ye(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=a[t];ut.prototype[t]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),zn(this,n)}})),Ye(["concat","join","slice"],(function(t){var e=a[t];ut.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),zn(this,t)}}));const Hn=ut;var Vn=Fn(i);Vn._=Vn;const Un=Vn}},t=>{var e;e=20520,t(t.s=e)}]);