]].\n var optionsProp = options['[[' + _property + ']]'];\n\n // ii. Let formatPropDesc be the result of calling the [[GetOwnProperty]] internal method of format\n // with argument property.\n // iii. If formatPropDesc is not undefined, then\n // 1. Let formatProp be the result of calling the [[Get]] internal method of format with argument property.\n var formatProp = hop.call(format, _property) ? format[_property] : undefined;\n\n // Diverging: using the default properties produced by the pattern/skeleton\n // to match it with user options, and apply a penalty\n var patternProp = hop.call(format._, _property) ? format._[_property] : undefined;\n if (optionsProp !== patternProp) {\n score -= patternPenalty;\n }\n\n // iv. If optionsProp is undefined and formatProp is not undefined, then decrease score by\n // additionPenalty.\n if (optionsProp === undefined && formatProp !== undefined) score -= additionPenalty;\n\n // v. Else if optionsProp is not undefined and formatProp is undefined, then decrease score by\n // removalPenalty.\n else if (optionsProp !== undefined && formatProp === undefined) score -= removalPenalty;\n\n // vi. Else\n else {\n // 1. Let values be the array [\"2-digit\", \"numeric\", \"narrow\", \"short\",\n // \"long\"].\n var values = ['2-digit', 'numeric', 'narrow', 'short', 'long'];\n\n // 2. Let optionsPropIndex be the index of optionsProp within values.\n var optionsPropIndex = arrIndexOf.call(values, optionsProp);\n\n // 3. Let formatPropIndex be the index of formatProp within values.\n var formatPropIndex = arrIndexOf.call(values, formatProp);\n\n // 4. Let delta be max(min(formatPropIndex - optionsPropIndex, 2), -2).\n var delta = Math.max(Math.min(formatPropIndex - optionsPropIndex, 2), -2);\n\n {\n // diverging from spec\n // When the bestFit argument is true, subtract additional penalty where data types are not the same\n if (formatPropIndex <= 1 && optionsPropIndex >= 2 || formatPropIndex >= 2 && optionsPropIndex <= 1) {\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta > 0) score -= longMorePenalty;else if (delta < 0) score -= longLessPenalty;\n } else {\n // 5. If delta = 2, decrease score by longMorePenalty.\n if (delta > 1) score -= shortMorePenalty;else if (delta < -1) score -= shortLessPenalty;\n }\n }\n }\n }\n\n {\n // diverging to also take into consideration differences between 12 or 24 hours\n // which is special for the best fit only.\n if (format._.hour12 !== options.hour12) {\n score -= hour12Penalty;\n }\n }\n\n // d. If score > bestScore, then\n if (score > bestScore) {\n // i. Let bestScore be score.\n bestScore = score;\n // ii. Let bestFormat be format.\n bestFormat = format;\n }\n\n // e. Increase i by 1.\n i++;\n }\n\n // 13. Return bestFormat.\n return bestFormat;\n}\n\n/* 12.2.3 */internals.DateTimeFormat = {\n '[[availableLocales]]': [],\n '[[relevantExtensionKeys]]': ['ca', 'nu'],\n '[[localeData]]': {}\n};\n\n/**\n * When the supportedLocalesOf method of Intl.DateTimeFormat is called, the\n * following steps are taken:\n */\n/* 12.2.2 */\ndefineProperty(Intl.DateTimeFormat, 'supportedLocalesOf', {\n configurable: true,\n writable: true,\n value: fnBind.call(function (locales) {\n // Bound functions only have the `this` value altered if being used as a constructor,\n // this lets us imitate a native function that has no constructor\n if (!hop.call(this, '[[availableLocales]]')) throw new TypeError('supportedLocalesOf() is not a constructor');\n\n // Create an object whose props can be used to restore the values of RegExp props\n var regexpRestore = createRegExpRestore(),\n\n\n // 1. If options is not provided, then let options be undefined.\n options = arguments[1],\n\n\n // 2. Let availableLocales be the value of the [[availableLocales]] internal\n // property of the standard built-in object that is the initial value of\n // Intl.NumberFormat.\n\n availableLocales = this['[[availableLocales]]'],\n\n\n // 3. Let requestedLocales be the result of calling the CanonicalizeLocaleList\n // abstract operation (defined in 9.2.1) with argument locales.\n requestedLocales = CanonicalizeLocaleList(locales);\n\n // Restore the RegExp properties\n regexpRestore();\n\n // 4. Return the result of calling the SupportedLocales abstract operation\n // (defined in 9.2.8) with arguments availableLocales, requestedLocales,\n // and options.\n return SupportedLocales(availableLocales, requestedLocales, options);\n }, internals.NumberFormat)\n});\n\n/**\n * This named accessor property returns a function that formats a number\n * according to the effective locale and the formatting options of this\n * DateTimeFormat object.\n */\n/* 12.3.2 */defineProperty(Intl.DateTimeFormat.prototype, 'format', {\n configurable: true,\n get: GetFormatDateTime\n});\n\nfunction GetFormatDateTime() {\n var internal = this !== null && babelHelpers$1[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 12.3_b\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for format() is not an initialized Intl.DateTimeFormat object.');\n\n // The value of the [[Get]] attribute is a function that takes the following\n // steps:\n\n // 1. If the [[boundFormat]] internal property of this DateTimeFormat object\n // is undefined, then:\n if (internal['[[boundFormat]]'] === undefined) {\n // a. Let F be a Function object, with internal properties set as\n // specified for built-in functions in ES5, 15, or successor, and the\n // length property set to 0, that takes the argument date and\n // performs the following steps:\n var F = function F() {\n var date = arguments.length <= 0 || arguments[0] === undefined ? undefined : arguments[0];\n\n // i. If date is not provided or is undefined, then let x be the\n // result as if by the expression Date.now() where Date.now is\n // the standard built-in function defined in ES5, 15.9.4.4.\n // ii. Else let x be ToNumber(date).\n // iii. Return the result of calling the FormatDateTime abstract\n // operation (defined below) with arguments this and x.\n var x = date === undefined ? Date.now() : toNumber(date);\n return FormatDateTime(this, x);\n };\n // b. Let bind be the standard built-in function object defined in ES5,\n // 15.3.4.5.\n // c. Let bf be the result of calling the [[Call]] internal method of\n // bind with F as the this value and an argument list containing\n // the single item this.\n var bf = fnBind.call(F, this);\n // d. Set the [[boundFormat]] internal property of this NumberFormat\n // object to bf.\n internal['[[boundFormat]]'] = bf;\n }\n // Return the value of the [[boundFormat]] internal property of this\n // NumberFormat object.\n return internal['[[boundFormat]]'];\n}\n\nfunction formatToParts$1() {\n var date = arguments.length <= 0 || arguments[0] === undefined ? undefined : arguments[0];\n\n var internal = this !== null && babelHelpers$1[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.');\n\n var x = date === undefined ? Date.now() : toNumber(date);\n return FormatToPartsDateTime(this, x);\n}\n\nObject.defineProperty(Intl.DateTimeFormat.prototype, 'formatToParts', {\n enumerable: false,\n writable: true,\n configurable: true,\n value: formatToParts$1\n});\n\nfunction CreateDateTimeParts(dateTimeFormat, x) {\n // 1. If x is not a finite Number, then throw a RangeError exception.\n if (!isFinite(x)) throw new RangeError('Invalid valid date passed to format');\n\n var internal = dateTimeFormat.__getInternalProperties(secret);\n\n // Creating restore point for properties on the RegExp object... please wait\n /* let regexpRestore = */createRegExpRestore(); // ###TODO: review this\n\n // 2. Let locale be the value of the [[locale]] internal property of dateTimeFormat.\n var locale = internal['[[locale]]'];\n\n // 3. Let nf be the result of creating a new NumberFormat object as if by the\n // expression new Intl.NumberFormat([locale], {useGrouping: false}) where\n // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n var nf = new Intl.NumberFormat([locale], { useGrouping: false });\n\n // 4. Let nf2 be the result of creating a new NumberFormat object as if by the\n // expression new Intl.NumberFormat([locale], {minimumIntegerDigits: 2, useGrouping:\n // false}) where Intl.NumberFormat is the standard built-in constructor defined in\n // 11.1.3.\n var nf2 = new Intl.NumberFormat([locale], { minimumIntegerDigits: 2, useGrouping: false });\n\n // 5. Let tm be the result of calling the ToLocalTime abstract operation (defined\n // below) with x, the value of the [[calendar]] internal property of dateTimeFormat,\n // and the value of the [[timeZone]] internal property of dateTimeFormat.\n var tm = ToLocalTime(x, internal['[[calendar]]'], internal['[[timeZone]]']);\n\n // 6. Let result be the value of the [[pattern]] internal property of dateTimeFormat.\n var pattern = internal['[[pattern]]'];\n\n // 7.\n var result = new List();\n\n // 8.\n var index = 0;\n\n // 9.\n var beginIndex = pattern.indexOf('{');\n\n // 10.\n var endIndex = 0;\n\n // Need the locale minus any extensions\n var dataLocale = internal['[[dataLocale]]'];\n\n // Need the calendar data from CLDR\n var localeData = internals.DateTimeFormat['[[localeData]]'][dataLocale].calendars;\n var ca = internal['[[calendar]]'];\n\n // 11.\n while (beginIndex !== -1) {\n var fv = void 0;\n // a.\n endIndex = pattern.indexOf('}', beginIndex);\n // b.\n if (endIndex === -1) {\n throw new Error('Unclosed pattern');\n }\n // c.\n if (beginIndex > index) {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substring(index, beginIndex)\n });\n }\n // d.\n var p = pattern.substring(beginIndex + 1, endIndex);\n // e.\n if (dateTimeComponents.hasOwnProperty(p)) {\n // i. Let f be the value of the [[]] internal property of dateTimeFormat.\n var f = internal['[[' + p + ']]'];\n // ii. Let v be the value of tm.[[
]].\n var v = tm['[[' + p + ']]'];\n // iii. If p is \"year\" and v ≤ 0, then let v be 1 - v.\n if (p === 'year' && v <= 0) {\n v = 1 - v;\n }\n // iv. If p is \"month\", then increase v by 1.\n else if (p === 'month') {\n v++;\n }\n // v. If p is \"hour\" and the value of the [[hour12]] internal property of\n // dateTimeFormat is true, then\n else if (p === 'hour' && internal['[[hour12]]'] === true) {\n // 1. Let v be v modulo 12.\n v = v % 12;\n // 2. If v is 0 and the value of the [[hourNo0]] internal property of\n // dateTimeFormat is true, then let v be 12.\n if (v === 0 && internal['[[hourNo0]]'] === true) {\n v = 12;\n }\n }\n\n // vi. If f is \"numeric\", then\n if (f === 'numeric') {\n // 1. Let fv be the result of calling the FormatNumber abstract operation\n // (defined in 11.3.2) with arguments nf and v.\n fv = FormatNumber(nf, v);\n }\n // vii. Else if f is \"2-digit\", then\n else if (f === '2-digit') {\n // 1. Let fv be the result of calling the FormatNumber abstract operation\n // with arguments nf2 and v.\n fv = FormatNumber(nf2, v);\n // 2. If the length of fv is greater than 2, let fv be the substring of fv\n // containing the last two characters.\n if (fv.length > 2) {\n fv = fv.slice(-2);\n }\n }\n // viii. Else if f is \"narrow\", \"short\", or \"long\", then let fv be a String\n // value representing f in the desired form; the String value depends upon\n // the implementation and the effective locale and calendar of\n // dateTimeFormat. If p is \"month\", then the String value may also depend\n // on whether dateTimeFormat has a [[day]] internal property. If p is\n // \"timeZoneName\", then the String value may also depend on the value of\n // the [[inDST]] field of tm.\n else if (f in dateWidths) {\n switch (p) {\n case 'month':\n fv = resolveDateString(localeData, ca, 'months', f, tm['[[' + p + ']]']);\n break;\n\n case 'weekday':\n try {\n fv = resolveDateString(localeData, ca, 'days', f, tm['[[' + p + ']]']);\n // fv = resolveDateString(ca.days, f)[tm['[['+ p +']]']];\n } catch (e) {\n throw new Error('Could not find weekday data for locale ' + locale);\n }\n break;\n\n case 'timeZoneName':\n fv = ''; // ###TODO\n break;\n\n case 'era':\n try {\n fv = resolveDateString(localeData, ca, 'eras', f, tm['[[' + p + ']]']);\n } catch (e) {\n throw new Error('Could not find era data for locale ' + locale);\n }\n break;\n\n default:\n fv = tm['[[' + p + ']]'];\n }\n }\n // ix\n arrPush.call(result, {\n type: p,\n value: fv\n });\n // f.\n } else if (p === 'ampm') {\n // i.\n var _v = tm['[[hour]]'];\n // ii./iii.\n fv = resolveDateString(localeData, ca, 'dayPeriods', _v > 11 ? 'pm' : 'am', null);\n // iv.\n arrPush.call(result, {\n type: 'dayPeriod',\n value: fv\n });\n // g.\n } else {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substring(beginIndex, endIndex + 1)\n });\n }\n // h.\n index = endIndex + 1;\n // i.\n beginIndex = pattern.indexOf('{', index);\n }\n // 12.\n if (endIndex < pattern.length - 1) {\n arrPush.call(result, {\n type: 'literal',\n value: pattern.substr(endIndex + 1)\n });\n }\n // 13.\n return result;\n}\n\n/**\n * When the FormatDateTime abstract operation is called with arguments dateTimeFormat\n * (which must be an object initialized as a DateTimeFormat) and x (which must be a Number\n * value), it returns a String value representing x (interpreted as a time value as\n * specified in ES5, 15.9.1.1) according to the effective locale and the formatting\n * options of dateTimeFormat.\n */\nfunction FormatDateTime(dateTimeFormat, x) {\n var parts = CreateDateTimeParts(dateTimeFormat, x);\n var result = '';\n\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n result += part.value;\n }\n return result;\n}\n\nfunction FormatToPartsDateTime(dateTimeFormat, x) {\n var parts = CreateDateTimeParts(dateTimeFormat, x);\n var result = [];\n for (var i = 0; parts.length > i; i++) {\n var part = parts[i];\n result.push({\n type: part.type,\n value: part.value\n });\n }\n return result;\n}\n\n/**\n * When the ToLocalTime abstract operation is called with arguments date, calendar, and\n * timeZone, the following steps are taken:\n */\nfunction ToLocalTime(date, calendar, timeZone) {\n // 1. Apply calendrical calculations on date for the given calendar and time zone to\n // produce weekday, era, year, month, day, hour, minute, second, and inDST values.\n // The calculations should use best available information about the specified\n // calendar and time zone. If the calendar is \"gregory\", then the calculations must\n // match the algorithms specified in ES5, 15.9.1, except that calculations are not\n // bound by the restrictions on the use of best available information on time zones\n // for local time zone adjustment and daylight saving time adjustment imposed by\n // ES5, 15.9.1.7 and 15.9.1.8.\n // ###TODO###\n var d = new Date(date),\n m = 'get' + (timeZone || '');\n\n // 2. Return a Record with fields [[weekday]], [[era]], [[year]], [[month]], [[day]],\n // [[hour]], [[minute]], [[second]], and [[inDST]], each with the corresponding\n // calculated value.\n return new Record({\n '[[weekday]]': d[m + 'Day'](),\n '[[era]]': +(d[m + 'FullYear']() >= 0),\n '[[year]]': d[m + 'FullYear'](),\n '[[month]]': d[m + 'Month'](),\n '[[day]]': d[m + 'Date'](),\n '[[hour]]': d[m + 'Hours'](),\n '[[minute]]': d[m + 'Minutes'](),\n '[[second]]': d[m + 'Seconds'](),\n '[[inDST]]': false // ###TODO###\n });\n}\n\n/**\n * The function returns a new object whose properties and attributes are set as if\n * constructed by an object literal assigning to each of the following properties the\n * value of the corresponding internal property of this DateTimeFormat object (see 12.4):\n * locale, calendar, numberingSystem, timeZone, hour12, weekday, era, year, month, day,\n * hour, minute, second, and timeZoneName. Properties whose corresponding internal\n * properties are not present are not assigned.\n */\n/* 12.3.3 */defineProperty(Intl.DateTimeFormat.prototype, 'resolvedOptions', {\n writable: true,\n configurable: true,\n value: function value() {\n var prop = void 0,\n descs = new Record(),\n props = ['locale', 'calendar', 'numberingSystem', 'timeZone', 'hour12', 'weekday', 'era', 'year', 'month', 'day', 'hour', 'minute', 'second', 'timeZoneName'],\n internal = this !== null && babelHelpers$1[\"typeof\"](this) === 'object' && getInternalProperties(this);\n\n // Satisfy test 12.3_b\n if (!internal || !internal['[[initializedDateTimeFormat]]']) throw new TypeError('`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.');\n\n for (var i = 0, max = props.length; i < max; i++) {\n if (hop.call(internal, prop = '[[' + props[i] + ']]')) descs[props[i]] = { value: internal[prop], writable: true, configurable: true, enumerable: true };\n }\n\n return objCreate({}, descs);\n }\n});\n\nvar ls = Intl.__localeSensitiveProtos = {\n Number: {},\n Date: {}\n};\n\n/**\n * When the toLocaleString method is called with optional arguments locales and options,\n * the following steps are taken:\n */\n/* 13.2.1 */ls.Number.toLocaleString = function () {\n // Satisfy test 13.2.1_1\n if (Object.prototype.toString.call(this) !== '[object Number]') throw new TypeError('`this` value must be a number for Number.prototype.toLocaleString()');\n\n // 1. Let x be this Number value (as defined in ES5, 15.7.4).\n // 2. If locales is not provided, then let locales be undefined.\n // 3. If options is not provided, then let options be undefined.\n // 4. Let numberFormat be the result of creating a new object as if by the\n // expression new Intl.NumberFormat(locales, options) where\n // Intl.NumberFormat is the standard built-in constructor defined in 11.1.3.\n // 5. Return the result of calling the FormatNumber abstract operation\n // (defined in 11.3.2) with arguments numberFormat and x.\n return FormatNumber(new NumberFormatConstructor(arguments[0], arguments[1]), this);\n};\n\n/**\n * When the toLocaleString method is called with optional arguments locales and options,\n * the following steps are taken:\n */\n/* 13.3.1 */ls.Date.toLocaleString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0];\n\n // 4. If options is not provided, then let options be undefined.\n var options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"any\", and \"all\".\n options = ToDateTimeOptions(options, 'any', 'all');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\n/**\n * When the toLocaleDateString method is called with optional arguments locales and\n * options, the following steps are taken:\n */\n/* 13.3.2 */ls.Date.toLocaleDateString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleDateString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0],\n\n\n // 4. If options is not provided, then let options be undefined.\n options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"date\", and \"date\".\n options = ToDateTimeOptions(options, 'date', 'date');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\n/**\n * When the toLocaleTimeString method is called with optional arguments locales and\n * options, the following steps are taken:\n */\n/* 13.3.3 */ls.Date.toLocaleTimeString = function () {\n // Satisfy test 13.3.0_1\n if (Object.prototype.toString.call(this) !== '[object Date]') throw new TypeError('`this` value must be a Date instance for Date.prototype.toLocaleTimeString()');\n\n // 1. Let x be this time value (as defined in ES5, 15.9.5).\n var x = +this;\n\n // 2. If x is NaN, then return \"Invalid Date\".\n if (isNaN(x)) return 'Invalid Date';\n\n // 3. If locales is not provided, then let locales be undefined.\n var locales = arguments[0];\n\n // 4. If options is not provided, then let options be undefined.\n var options = arguments[1];\n\n // 5. Let options be the result of calling the ToDateTimeOptions abstract\n // operation (defined in 12.1.1) with arguments options, \"time\", and \"time\".\n options = ToDateTimeOptions(options, 'time', 'time');\n\n // 6. Let dateTimeFormat be the result of creating a new object as if by the\n // expression new Intl.DateTimeFormat(locales, options) where\n // Intl.DateTimeFormat is the standard built-in constructor defined in 12.1.3.\n var dateTimeFormat = new DateTimeFormatConstructor(locales, options);\n\n // 7. Return the result of calling the FormatDateTime abstract operation (defined\n // in 12.3.2) with arguments dateTimeFormat and x.\n return FormatDateTime(dateTimeFormat, x);\n};\n\ndefineProperty(Intl, '__applyLocaleSensitivePrototypes', {\n writable: true,\n configurable: true,\n value: function value() {\n defineProperty(Number.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Number.toLocaleString });\n // Need this here for IE 8, to avoid the _DontEnum_ bug\n defineProperty(Date.prototype, 'toLocaleString', { writable: true, configurable: true, value: ls.Date.toLocaleString });\n\n for (var k in ls.Date) {\n if (hop.call(ls.Date, k)) defineProperty(Date.prototype, k, { writable: true, configurable: true, value: ls.Date[k] });\n }\n }\n});\n\n/**\n * Can't really ship a single script with data for hundreds of locales, so we provide\n * this __addLocaleData method as a means for the developer to add the data on an\n * as-needed basis\n */\ndefineProperty(Intl, '__addLocaleData', {\n value: function value(data) {\n if (!IsStructurallyValidLanguageTag(data.locale)) throw new Error(\"Object passed doesn't identify itself with a valid language tag\");\n\n addLocaleData(data, data.locale);\n }\n});\n\nfunction addLocaleData(data, tag) {\n // Both NumberFormat and DateTimeFormat require number data, so throw if it isn't present\n if (!data.number) throw new Error(\"Object passed doesn't contain locale data for Intl.NumberFormat\");\n\n var locale = void 0,\n locales = [tag],\n parts = tag.split('-');\n\n // Create fallbacks for locale data with scripts, e.g. Latn, Hans, Vaii, etc\n if (parts.length > 2 && parts[1].length === 4) arrPush.call(locales, parts[0] + '-' + parts[2]);\n\n while (locale = arrShift.call(locales)) {\n // Add to NumberFormat internal properties as per 11.2.3\n arrPush.call(internals.NumberFormat['[[availableLocales]]'], locale);\n internals.NumberFormat['[[localeData]]'][locale] = data.number;\n\n // ...and DateTimeFormat internal properties as per 12.2.3\n if (data.date) {\n data.date.nu = data.number.nu;\n arrPush.call(internals.DateTimeFormat['[[availableLocales]]'], locale);\n internals.DateTimeFormat['[[localeData]]'][locale] = data.date;\n }\n }\n\n // If this is the first set of locale data added, make it the default\n if (defaultLocale === undefined) setDefaultLocale(tag);\n}\n\ndefineProperty(Intl, '__disableRegExpRestore', {\n value: function value() {\n internals.disableRegExpRestore = true;\n }\n});\n\nmodule.exports = Intl;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","'use strict';\n\nvar fnToStr = Function.prototype.toString;\nvar reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;\nvar badArrayLike;\nvar isCallableMarker;\nif (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {\n\ttry {\n\t\tbadArrayLike = Object.defineProperty({}, 'length', {\n\t\t\tget: function () {\n\t\t\t\tthrow isCallableMarker;\n\t\t\t}\n\t\t});\n\t\tisCallableMarker = {};\n\t\t// eslint-disable-next-line no-throw-literal\n\t\treflectApply(function () { throw 42; }, null, badArrayLike);\n\t} catch (_) {\n\t\tif (_ !== isCallableMarker) {\n\t\t\treflectApply = null;\n\t\t}\n\t}\n} else {\n\treflectApply = null;\n}\n\nvar constructorRegex = /^\\s*class\\b/;\nvar isES6ClassFn = function isES6ClassFunction(value) {\n\ttry {\n\t\tvar fnStr = fnToStr.call(value);\n\t\treturn constructorRegex.test(fnStr);\n\t} catch (e) {\n\t\treturn false; // not a function\n\t}\n};\n\nvar tryFunctionObject = function tryFunctionToStr(value) {\n\ttry {\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tfnToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar objectClass = '[object Object]';\nvar fnClass = '[object Function]';\nvar genClass = '[object GeneratorFunction]';\nvar ddaClass = '[object HTMLAllCollection]'; // IE 11\nvar ddaClass2 = '[object HTML document.all class]';\nvar ddaClass3 = '[object HTMLCollection]'; // IE 9-10\nvar hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`\n\nvar isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing\n\nvar isDDA = function isDocumentDotAll() { return false; };\nif (typeof document === 'object') {\n\t// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly\n\tvar all = document.all;\n\tif (toStr.call(all) === toStr.call(document.all)) {\n\t\tisDDA = function isDocumentDotAll(value) {\n\t\t\t/* globals document: false */\n\t\t\t// in IE 6-8, typeof document.all is \"object\" and it's truthy\n\t\t\tif ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {\n\t\t\t\ttry {\n\t\t\t\t\tvar str = toStr.call(value);\n\t\t\t\t\treturn (\n\t\t\t\t\t\tstr === ddaClass\n\t\t\t\t\t\t|| str === ddaClass2\n\t\t\t\t\t\t|| str === ddaClass3 // opera 12.16\n\t\t\t\t\t\t|| str === objectClass // IE 6-8\n\t\t\t\t\t) && value('') == null; // eslint-disable-line eqeqeq\n\t\t\t\t} catch (e) { /**/ }\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}\n}\n\nmodule.exports = reflectApply\n\t? function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\ttry {\n\t\t\treflectApply(value, null, badArrayLike);\n\t\t} catch (e) {\n\t\t\tif (e !== isCallableMarker) { return false; }\n\t\t}\n\t\treturn !isES6ClassFn(value) && tryFunctionObject(value);\n\t}\n\t: function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\tif (hasToStringTag) { return tryFunctionObject(value); }\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tvar strClass = toStr.call(value);\n\t\tif (strClass !== fnClass && strClass !== genClass && !(/^\\[object HTML/).test(strClass)) { return false; }\n\t\treturn tryFunctionObject(value);\n\t};\n","'use strict';\n\nvar callBound = require('call-bound');\n\nvar getDay = callBound('Date.prototype.getDay');\n/** @type {import('.')} */\nvar tryDateObject = function tryDateGetDayCall(value) {\n\ttry {\n\t\tgetDay(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\n/** @type {(value: unknown) => string} */\nvar toStr = callBound('Object.prototype.toString');\nvar dateClass = '[object Date]';\nvar hasToStringTag = require('has-tostringtag/shams')();\n\n/** @type {import('.')} */\nmodule.exports = function isDateObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\treturn hasToStringTag ? tryDateObject(value) : toStr(value) === dateClass;\n};\n","'use strict';\n\nvar callBound = require('call-bound');\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar hasOwn = require('hasown');\nvar gOPD = require('gopd');\n\n/** @type {import('.')} */\nvar fn;\n\nif (hasToStringTag) {\n\t/** @type {(receiver: ThisParameterType, ...args: Parameters) => ReturnType} */\n\tvar $exec = callBound('RegExp.prototype.exec');\n\t/** @type {object} */\n\tvar isRegexMarker = {};\n\n\tvar throwRegexMarker = function () {\n\t\tthrow isRegexMarker;\n\t};\n\t/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */\n\tvar badStringifier = {\n\t\ttoString: throwRegexMarker,\n\t\tvalueOf: throwRegexMarker\n\t};\n\n\tif (typeof Symbol.toPrimitive === 'symbol') {\n\t\tbadStringifier[Symbol.toPrimitive] = throwRegexMarker;\n\t}\n\n\t/** @type {import('.')} */\n\t// @ts-expect-error TS can't figure out that the $exec call always throws\n\t// eslint-disable-next-line consistent-return\n\tfn = function isRegex(value) {\n\t\tif (!value || typeof value !== 'object') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {NonNullable} */ (gOPD)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');\n\t\tvar hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');\n\t\tif (!hasLastIndexDataProperty) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\t$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));\n\t\t} catch (e) {\n\t\t\treturn e === isRegexMarker;\n\t\t}\n\t};\n} else {\n\t/** @type {(receiver: ThisParameterType, ...args: Parameters) => ReturnType} */\n\tvar $toString = callBound('Object.prototype.toString');\n\t/** @const @type {'[object RegExp]'} */\n\tvar regexClass = '[object RegExp]';\n\n\t/** @type {import('.')} */\n\tfn = function isRegex(value) {\n\t\t// In older browsers, typeof regex incorrectly returns 'function'\n\t\tif (!value || (typeof value !== 'object' && typeof value !== 'function')) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $toString(value) === regexClass;\n\t};\n}\n\nmodule.exports = fn;\n","'use strict';\n\nvar callBound = require('call-bound');\nvar $toString = callBound('Object.prototype.toString');\nvar hasSymbols = require('has-symbols')();\nvar safeRegexTest = require('safe-regex-test');\n\nif (hasSymbols) {\n\tvar $symToStr = callBound('Symbol.prototype.toString');\n\tvar isSymString = safeRegexTest(/^Symbol\\(.*\\)$/);\n\n\t/** @type {(value: object) => value is Symbol} */\n\tvar isSymbolObject = function isRealSymbolObject(value) {\n\t\tif (typeof value.valueOf() !== 'symbol') {\n\t\t\treturn false;\n\t\t}\n\t\treturn isSymString($symToStr(value));\n\t};\n\n\t/** @type {import('.')} */\n\tmodule.exports = function isSymbol(value) {\n\t\tif (typeof value === 'symbol') {\n\t\t\treturn true;\n\t\t}\n\t\tif (!value || typeof value !== 'object' || $toString(value) !== '[object Symbol]') {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\treturn isSymbolObject(value);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n} else {\n\t/** @type {import('.')} */\n\tmodule.exports = function isSymbol(value) {\n\t\t// this environment does not support Symbols.\n\t\treturn false && value;\n\t};\n}\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/** @type {import('./shams')} */\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\t/** @type {{ [k in symbol]?: unknown }} */\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","Object.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = isTouchDevice;\nfunction isTouchDevice() {\n return !!(typeof window !== 'undefined' && ('ontouchstart' in window || window.DocumentTouch && typeof document !== 'undefined' && document instanceof window.DocumentTouch)) || !!(typeof navigator !== 'undefined' && (navigator.maxTouchPoints || navigator.msMaxTouchPoints));\n}\nmodule.exports = exports['default'];","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","/*! For license information please see jodit-react.js.LICENSE.txt */\n!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e(require(\"react\")):\"function\"==typeof define&&define.amd?define([\"react\"],e):\"object\"==typeof exports?exports.JoditEditor=e(require(\"react\")):(t.JoditEditor=t.JoditEditor||{},t.JoditEditor.Jodit=e(t.React))}(self,(t=>(()=>{var e={922:t=>{\"use strict\";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=\"\",o=void 0!==e[5];return e[4]&&(i+=\"@supports (\".concat(e[4],\") {\")),e[2]&&(i+=\"@media \".concat(e[2],\" {\")),o&&(i+=\"@layer\".concat(e[5].length>0?\" \".concat(e[5]):\"\",\" {\")),i+=t(e),o&&(i+=\"}\"),e[2]&&(i+=\"}\"),e[4]&&(i+=\"}\"),i})).join(\"\")},e.i=function(t,i,o,n,r){\"string\"==typeof t&&(t=[[null,t,void 0]]);var s={};if(o)for(var a=0;a0?\" \".concat(d[5]):\"\",\" {\").concat(d[1],\"}\")),d[5]=r),i&&(d[2]?(d[1]=\"@media \".concat(d[2],\" {\").concat(d[1],\"}\"),d[2]=i):d[2]=i),n&&(d[4]?(d[1]=\"@supports (\".concat(d[4],\") {\").concat(d[1],\"}\"),d[4]=n):d[4]=\"\".concat(n)),e.push(d))}},e}},155:t=>{\"use strict\";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['\"].*['\"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/[\"'() \\t\\n]|(%20)/.test(t)||e.needQuotes?'\"'.concat(t.replace(/\"/g,'\\\\\"').replace(/\\n/g,\"\\\\n\"),'\"'):t):t}},499:t=>{\"use strict\";t.exports=function(t){return t[1]}},714:t=>{self,t.exports=function(){var t={26318:function(t,e,i){\"use strict\";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 n(t,e,i){var n=i.value;if(\"function\"!=typeof n)throw new TypeError(\"@boundMethod decorator can only be applied to methods not: \".concat(o(n)));var r=!1;return{configurable:!0,get:function(){if(r||this===t.prototype||this.hasOwnProperty(e)||\"function\"!=typeof n)return n;var i=n.bind(this);return r=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return i},set:function(t){n=t,delete this[e]}}),r=!1,i},set:function(t){n=t}}}function r(t){var e;return\"undefined\"!=typeof Reflect&&\"function\"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),\"function\"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((function(e){if(\"constructor\"!==e){var i=Object.getOwnPropertyDescriptor(t.prototype,e);\"function\"==typeof i.value&&Object.defineProperty(t.prototype,e,n(t,e,i))}})),t}function s(){return 1===arguments.length?r.apply(void 0,arguments):n.apply(void 0,arguments)}i.d(e,{Ay:function(){return s}})},36115:function(t,e,i){\"use strict\";i.d(e,{T:function(){return n}});var o=i(17352);class n{constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace=\"\",this.safeMode=!1,this.width=\"auto\",this.height=\"auto\",this.safePluginsList=[\"about\",\"enter\",\"backspace\",\"size\",\"bold\",\"hotkeys\"],this.license=\"\",this.preset=\"custom\",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=\"undefined\"!=typeof document?document:null,this.ownerWindow=\"undefined\"!=typeof window?window:null,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=[\"source\",\"fullsize\",\"print\",\"about\",\"dots\",\"selectall\"],this.allowCommandsInReadOnly=[\"selectall\",\"preview\",\"print\"],this.toolbarButtonSize=\"middle\",this.allowTabNavigation=!1,this.inline=!1,this.theme=\"default\",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction=\"\",this.language=\"auto\",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock=\"br\"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:[\"#000000\",\"#434343\",\"#666666\",\"#999999\",\"#B7B7B7\",\"#CCCCCC\",\"#D9D9D9\",\"#EFEFEF\",\"#F3F3F3\",\"#FFFFFF\"],palette:[\"#980000\",\"#FF0000\",\"#FF9900\",\"#FFFF00\",\"#00F0F0\",\"#00FFFF\",\"#4A86E8\",\"#0000FF\",\"#9900FF\",\"#FF00FF\"],full:[\"#E6B8AF\",\"#F4CCCC\",\"#FCE5CD\",\"#FFF2CC\",\"#D9EAD3\",\"#D0E0E3\",\"#C9DAF8\",\"#CFE2F3\",\"#D9D2E9\",\"#EAD1DC\",\"#DD7E6B\",\"#EA9999\",\"#F9CB9C\",\"#FFE599\",\"#B6D7A8\",\"#A2C4C9\",\"#A4C2F4\",\"#9FC5E8\",\"#B4A7D6\",\"#D5A6BD\",\"#CC4125\",\"#E06666\",\"#F6B26B\",\"#FFD966\",\"#93C47D\",\"#76A5AF\",\"#6D9EEB\",\"#6FA8DC\",\"#8E7CC3\",\"#C27BA0\",\"#A61C00\",\"#CC0000\",\"#E69138\",\"#F1C232\",\"#6AA84F\",\"#45818E\",\"#3C78D8\",\"#3D85C6\",\"#674EA7\",\"#A64D79\",\"#85200C\",\"#990000\",\"#B45F06\",\"#BF9000\",\"#38761D\",\"#134F5C\",\"#1155CC\",\"#0B5394\",\"#351C75\",\"#733554\",\"#5B0F00\",\"#660000\",\"#783F04\",\"#7F6000\",\"#274E13\",\"#0C343D\",\"#1C4587\",\"#073763\",\"#20124D\",\"#4C1130\"]},this.colorPickerDefaultTab=\"background\",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:\"border-collapse:collapse;width: 100%;\"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:\"font-style\",buttons:[]},{group:\"list\",buttons:[]},{group:\"font\",buttons:[]},\"---\",{group:\"script\",buttons:[]},{group:\"media\",buttons:[]},\"\\n\",{group:\"state\",buttons:[]},{group:\"clipboard\",buttons:[]},{group:\"insert\",buttons:[]},{group:\"indent\",buttons:[]},{group:\"color\",buttons:[]},{group:\"form\",buttons:[]},\"---\",{group:\"history\",buttons:[]},{group:\"search\",buttons:[]},{group:\"source\",buttons:[]},{group:\"other\",buttons:[]},{group:\"info\",buttons:[]}],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!0}static get defaultOptions(){return n.__defaultOptions||(n.__defaultOptions=new n),n.__defaultOptions}}n.prototype.controls={}},86302:function(t,e,i){\"use strict\";i.d(e,{j:function(){return h}});var o=i(17352),n=i(59146),r=i(69052),s=i(2461),a=i(25376),l=i(92039),c=i(98253),d=i(35642),u=(i(28712),i(21567));class h{constructor(){var t,e,i,o,n;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!==(t=null===queueMicrotask||void 0===queueMicrotask?void 0:queueMicrotask.bind(window))&&void 0!==t?t:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=null!==(i=null===(e=window.requestIdleCallback)||void 0===e?void 0:e.bind(window))&&void 0!==i?i:(t,e)=>{var i;const o=Date.now();return this.setTimeout((()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})}),null!==(i=null==e?void 0:e.timeout)&&void 0!==i?i:1)},this.__cancelIdleCallbackNative=null!==(n=null===(o=window.cancelIdleCallback)||void 0===o?void 0:o.bind(window))&&void 0!==n?n:t=>{this.clearTimeout(t)},this.isDestructed=!1}delay(t){return this.promise((e=>this.setTimeout(e,t)))}setTimeout(t,e,...i){if(this.isDestructed)return 0;let o={};(0,d.R)(e)&&(e=0),(0,s.E)(e)||(o=e,e=o.timeout||0),o.label&&this.clearLabel(o.label);const r=(0,n.w)(t,e,...i),a=o.label||r;return this.timers.set(a,r),this.__callbacks.set(a,t),r}updateTimeout(t,e){if(!t||!this.timers.has(t))return null;const i=this.__callbacks.get(t);return this.setTimeout(i,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,n.D)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,c.K)(t))return this.clearLabel(t);(0,n.D)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,i=!1){let o=0,s=!1;const c=[],d=(...e)=>{if(!s){o=0;const i=t(...e);if(s=!0,c.length){const t=()=>{c.forEach((t=>t())),c.length=0};(0,l.y)(i)?i.finally(t):t()}}},u=(...a)=>{s=!1,e?(!o&&i&&d(...a),(0,n.D)(o),o=this.setTimeout((()=>d(...a)),(0,r.T)(e)?e():e),this.timers.set(t,o)):d(...a)};return(0,a.Q)(e)&&e.promisify?(...t)=>{const e=this.promise((t=>{c.push(t)}));return u(...t),e}:u}microDebounce(t,e=!1){let i,o=!1,n=!0;return(...r)=>{i=r,o?n=!0:(n=!0,e&&(n=!1,t(...i)),o=!0,this.__queueMicrotaskNative((()=>{o=!1,this.isDestructed||n&&t(...i)})))}}throttle(t,e,i=!1){let o,n,s,a=null;return(...i)=>{o=!0,s=i,e?a||(n=()=>{o?(t(...s),o=!1,a=this.setTimeout(n,(0,r.T)(e)?e():e),this.timers.set(n,a)):a=null},n()):t(...s)}}promise(t){let e=()=>{};const i=new Promise(((i,o)=>{e=()=>o((0,u.h)()),this.promisesRejections.add(e),t(i,o)}));return i.finally||\"undefined\"==typeof process||o.IS_ES_NEXT||(i.finally=t=>(i.then(t).catch(t),i)),i.finally((()=>{this.promisesRejections.delete(e)})).catch((()=>null)),i.rejectCallback=e,i}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise((e=>{t.then((t=>(e(\"fulfilled\"),t)),(t=>{throw e(\"rejected\"),t})),this.setTimeout((()=>{e(\"pending\")}),100)}));const e={};return Promise.race([t,e]).then((t=>t===e?\"pending\":\"fulfilled\"),(()=>\"rejected\"))}requestIdleCallback(t,e){const i=this.requestIdleCallbackNative(t,e);return this.requestsIdle.add(i),i}requestIdlePromise(t){return this.promise((e=>{const i=this.requestIdleCallback((()=>e(i)),t)}))}cancelIdleCallback(t){return this.requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){const e=requestAnimationFrame(t);return this.requestsRaf.add(e),e}cancelAnimationFrame(t){this.requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.requestsIdle.forEach((t=>this.cancelIdleCallback(t))),this.requestsRaf.forEach((t=>this.cancelAnimationFrame(t))),this.timers.forEach((t=>(0,n.D)(this.timers.get(t)))),this.timers.clear(),this.promisesRejections.forEach((t=>t())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},64890:function(t,e,i){\"use strict\";i.d(e,{j:function(){return o.j}});var o=i(86302)},37474:function(t,e,i){\"use strict\";i.d(e,{u:function(){return l}});var o=i(64890),n=i(64567),r=i(56298),s=i(65147);const a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName=\"jodit-\"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():\"\")||(0,s.getClassName)(this))),this.__componentName}getFullElName(t,e,i){const o=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,\"-\"),o.push(`__${t}`)),e&&(o.push(\"_\",e),o.push(\"_\",(0,s.isVoid)(i)?\"true\":i.toString())),o.join(\"\")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,s.get)(t,e||this)}get isReady(){return this.componentStatus===n.f.ready}get isDestructed(){return this.componentStatus===n.f.destructed}get isInDestruct(){return n.f.beforeDestruct===this.componentStatus||n.f.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(n.f.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}constructor(){this.async=new o.j,this.ownerWindow=window,this.__componentStatus=n.f.beforeInit,this.uid=\"jodit-uid-\"+(0,r.w9)()}destruct(){this.setStatus(n.f.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);const i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(t,e);const o=a.get(this),n=null==o?void 0:o[t];n&&n.length&&n.forEach((t=>t(e)))}hookStatus(t,e){let i=a.get(this);i||(i={},a.set(this,i)),i[t]||(i[t]=[]),i[t].push(e)}static isInstanceOf(t,e){return t instanceof e}}l.STATUSES=n.f},77753:function(t,e,i){\"use strict\";i.d(e,{f:function(){return n.f},uA:function(){return o.u},vG:function(){return r.v}});var o=i(37474),n=i(64567),r=i(7982)},64567:function(t,e,i){\"use strict\";i.d(e,{f:function(){return o}});const o={beforeInit:\"beforeInit\",ready:\"ready\",beforeDestruct:\"beforeDestruct\",destructed:\"destructed\"}},7982:function(t,e,i){\"use strict\";i.d(e,{v:function(){return n}});var o=i(37474);class n extends o.u{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}constructor(t){super(),this.setParentView(t)}destruct(){return this.j.components.delete(this),super.destruct()}}},17352:function(t,e,i){\"use strict\";i.r(e),i.d(e,{ACCURACY:function(){return J},APP_VERSION:function(){return o},BASE_PATH:function(){return at},BR:function(){return F},CLIPBOARD_ID:function(){return dt},COMMAND_KEYS:function(){return H},EMULATE_DBLCLICK_TIMEOUT:function(){return Q},ES:function(){return n},FAT_MODE:function(){return c},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return C},INSERT_AS_HTML:function(){return tt},INSERT_AS_TEXT:function(){return it},INSERT_CLEAR_HTML:function(){return et},INSERT_ONLY_TEXT:function(){return ot},INVISIBLE_SPACE:function(){return p},INVISIBLE_SPACE_REG_EXP:function(){return m},INVISIBLE_SPACE_REG_EXP_END:function(){return g},INVISIBLE_SPACE_REG_EXP_START:function(){return b},IS_BLOCK:function(){return w},IS_ES_MODERN:function(){return r},IS_ES_NEXT:function(){return s},IS_IE:function(){return Y},IS_INLINE:function(){return y},IS_MAC:function(){return rt},IS_PROD:function(){return a},IS_TEST:function(){return l},KEY_ALIASES:function(){return st},KEY_ALT:function(){return L},KEY_BACKSPACE:function(){return T},KEY_DELETE:function(){return D},KEY_DOWN:function(){return N},KEY_ENTER:function(){return I},KEY_ESC:function(){return A},KEY_F3:function(){return q},KEY_LEFT:function(){return M},KEY_META:function(){return z},KEY_RIGHT:function(){return R},KEY_SPACE:function(){return B},KEY_TAB:function(){return E},KEY_UP:function(){return P},LIST_TAGS:function(){return j},MARKER_CLASS:function(){return Z},MODE_SOURCE:function(){return $},MODE_SPLIT:function(){return U},MODE_WYSIWYG:function(){return W},NBSP_SPACE:function(){return f},NEARBY:function(){return O},NO_EMPTY_TAGS:function(){return S},PARAGRAPH:function(){return V},PASSIVE_EVENTS:function(){return ht},SAFE_COUNT_CHANGE_CALL:function(){return nt},SET_TEST:function(){return u},SOURCE_CONSUMER:function(){return ut},SPACE_REG_EXP:function(){return _},SPACE_REG_EXP_END:function(){return x},SPACE_REG_EXP_START:function(){return v},TEMP_ATTR:function(){return lt},TEXT_HTML:function(){return G},TEXT_PLAIN:function(){return K},TEXT_RTF:function(){return X},TOKENS:function(){return h},lang:function(){return ct}});const o=\"4.1.16\",n=\"es2018\",r=!0,s=!1,a=!0;let l=!1;const c=!0,d=\"https://xdsoft.net/jodit/\",u=()=>l=!0,h={},p=\"\\ufeff\",f=\" \",m=()=>/[\\uFEFF]/g,g=()=>/[\\uFEFF]+$/g,b=()=>/^[\\uFEFF]+/g,_=()=>/[\\s\\n\\t\\r\\uFEFF\\u200b]+/g,v=()=>/^[\\s\\n\\t\\r\\uFEFF\\u200b]+/g,x=()=>/[\\s\\n\\t\\r\\uFEFF\\u200b]+$/g,w=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,y=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,j=new Set([\"ul\",\"ol\"]),k=[\"img\",\"video\",\"svg\",\"iframe\",\"script\",\"input\",\"textarea\",\"link\",\"jodit\",\"jodit-media\"],C=new Set([...k,\"br\",\"hr\"]),S=new Set(k),z=\"Meta\",T=\"Backspace\",E=\"Tab\",I=\"Enter\",A=\"Escape\",L=\"Alt\",M=\"ArrowLeft\",P=\"ArrowUp\",R=\"ArrowRight\",N=\"ArrowDown\",B=\"Space\",D=\"Delete\",q=\"F3\",O=5,J=10,H=[z,T,D,P,N,R,M,I,A,q,E],F=\"br\",V=\"p\",W=1,$=2,U=3,Y=\"undefined\"!=typeof navigator&&(-1!==navigator.userAgent.indexOf(\"MSIE\")||/rv:11.0/i.test(navigator.userAgent)),K=Y?\"text\":\"text/plain\",G=Y?\"html\":\"text/html\",X=Y?\"rtf\":\"text/rtf\",Z=\"jodit-selection_marker\",Q=300,tt=\"insert_as_html\",et=\"insert_clear_html\",it=\"insert_as_text\",ot=\"insert_only_text\",nt=10,rt=\"undefined\"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),st={add:\"+\",break:\"pause\",cmd:\"meta\",command:\"meta\",ctl:\"control\",ctrl:\"control\",del:\"delete\",down:\"arrowdown\",esc:\"escape\",ins:\"insert\",left:\"arrowleft\",mod:rt?\"meta\":\"control\",opt:\"alt\",option:\"alt\",return:\"enter\",right:\"arrowright\",space:\" \",spacebar:\" \",up:\"arrowup\",win:\"meta\",windows:\"meta\"},at=(()=>{if(\"undefined\"==typeof document)return\"\";const t=document.currentScript,e=t=>{const e=t.split(\"/\");return/\\.js/.test(e[e.length-1])?e.slice(0,e.length-1).join(\"/\")+\"/\":t};if(t)return e(t.src);const i=document.querySelectorAll(\"script[src]\");return i&&i.length?e(i[i.length-1].src):window.location.href})(),lt=\"data-jodit-temp\",ct={},dt=\"clipboard\",ut=\"source-consumer\",ht=new Set([\"touchstart\",\"touchend\",\"scroll\",\"mousewheel\",\"mousemove\",\"touchmove\"])},92852:function(t,e,i){\"use strict\";i.d(e,{X:function(){return s}});var o=i(17352),n=i(55186),r=i(65147);i(28712);class s{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}constructor(t,e){this.document=t,this.createAttributes=e}element(t,e,i){const o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),e&&((0,r.isPlainObject)(e)?(0,r.attr)(o,e):i=e),i&&(0,r.asArray)(i).forEach((t=>o.appendChild((0,r.isString)(t)?this.fromHTML(t):t))),o}div(t,e,i){const o=this.element(\"div\",e,i);return t&&(o.className=t),o}sandbox(){var t;const e=this.element(\"iframe\",{sandbox:\"allow-same-origin\"});this.doc.body.appendChild(e);const i=null===(t=e.contentWindow)||void 0===t?void 0:t.document;if(!i)throw Error(\"Iframe error\");return i.open(),i.write(\"\"),i.close(),[i.body,e]}span(t,e,i){const o=this.element(\"span\",e,i);return t&&(o.className=t),o}a(t,e,i){const o=this.element(\"a\",e,i);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){const i=this.div();i.innerHTML=t.toString();const o=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(n.J.safeRemove(o),e){const t=(0,r.refs)(o);Object.keys(e).forEach((i=>{const o=t[i];o&&!1===e[i]&&n.J.hide(o)}))}return o}applyCreateAttributes(t){if(this.createAttributes){const e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){const i=e[t.tagName.toLowerCase()];(0,r.isFunction)(i)?i(t):(0,r.isPlainObject)(i)&&(0,r.attr)(t,i)}}}}},40594:function(t,e,i){\"use strict\";i.d(e,{X:function(){return o.X}});var o=i(92852)},11961:function(t,e,i){\"use strict\";i.d(e,{d:function(){return o.Ay}});var o=i(26318)},87875:function(t,e,i){\"use strict\";i.d(e,{OK:function(){return c},PO:function(){return a},PP:function(){return l}});var o=i(64567),n=i(55186),r=i(9823),s=i(76166);function a(t,e){const i=Object.getOwnPropertyDescriptor(t,e);return!i||(0,r.Tn)(i.get)?null:i.value}function l(t,e,i){const o=i.get;if(!o)throw(0,s.z3)(\"Getter property descriptor expected\");i.get=function(){const t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:t}),t}}function c(t,e,i){const a=i.value;if(!(0,r.Tn)(a))throw(0,s.z3)(\"Handler must be a Function\");let l=!0;const c=new WeakMap;i.value=function(...t){var e;if(l&&c.has(this.constructor))return null===(e=c.get(this.constructor))||void 0===e?void 0:e.cloneNode(!0);const i=a.apply(this,t);return l&&n.J.isElement(i)&&c.set(this.constructor,i),l?i.cloneNode(!0):i},t.hookStatus(o.f.ready,(t=>{const e=(0,r.hH)(t)?t:t.jodit;l=Boolean(e.options.cache)}))}},24767:function(t,e,i){\"use strict\";function o(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus(\"ready\"))}}return e}i.d(e,{s:function(){return o}})},37075:function(t,e,i){\"use strict\";i.d(e,{n:function(){return a},s:function(){return s}});var o=i(77753),n=i(9823),r=(i(28712),i(50156));function s(t,e=!1,i=\"debounce\"){return(s,a)=>{const l=s[a];if(!(0,n.Tn)(l))throw(0,r.z3)(\"Handler must be a Function\");return s.hookStatus(o.f.ready,(o=>{const{async:r}=o,s=(0,n.Tn)(t)?t(o):t,l=(0,n.Et)(s)||(0,n.Qd)(s)?s:o.defaultTimeout;Object.defineProperty(o,a,{configurable:!0,value:r[i](o[a].bind(o),l,e)})})),{configurable:!0,get(){return l.bind(this)}}}}function a(t,e=!1){return s(t,e,\"throttle\")}},1963:function(t,e,i){\"use strict\";i.d(e,{C:function(){return n}});var o=i(69052);function n(...t){return e=>{const i=e.prototype;for(let e=0;t.length>e;e++){const n=t[e],r=Object.getOwnPropertyNames(n.prototype);for(let t=0;r.length>t;t++){const e=r[t],s=Object.getOwnPropertyDescriptor(n.prototype,e);null!=s&&(0,o.T)(s.value)&&!(0,o.T)(i[e])&&Object.defineProperty(i,e,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return s.value.call(this,...t)}})}}}}},71151:function(t,e,i){\"use strict\";i.d(e,{A:function(){return r}});var o=i(69052),n=i(50156);function r(t){return(e,i)=>{if(!(0,o.T)(e[i]))throw(0,n.z3)(\"Handler must be a Function\");e.hookStatus(t,(t=>{t[i].call(t)}))}}},86285:function(t,e,i){\"use strict\";i.d(e,{N:function(){return s}});var o=i(77753),n=i(69052),r=i(50156);function s(){return(t,e)=>{if(!(0,n.T)(t[e]))throw(0,r.z3)(\"Handler must be a Function\");t.hookStatus(o.f.ready,(t=>{const{async:i}=t,o=t[e];t[e]=(...e)=>i.requestIdleCallback(o.bind(t,...e))}))}}},22664:function(t,e,i){\"use strict\";i.r(e),i.d(e,{autobind:function(){return o.d},cache:function(){return n.PP},cacheHTML:function(){return n.OK},cached:function(){return n.PO},component:function(){return r.s},debounce:function(){return s.s},derive:function(){return a.C},getPropertyDescriptor:function(){return p.N},hook:function(){return l.A},idle:function(){return c.N},nonenumerable:function(){return d.m},persistent:function(){return u.y},throttle:function(){return s.n},wait:function(){return h.u},watch:function(){return p.w}});var o=i(11961),n=i(87875),r=i(24767),s=i(37075),a=i(1963),l=i(71151),c=i(86285),d=i(48791),u=i(33087),h=i(48647),p=i(66927)},48791:function(t,e,i){\"use strict\";i.d(e,{m:function(){return o}});const o=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})}},33087:function(t,e,i){\"use strict\";i.d(e,{y:function(){return r}});var o=i(64567),n=i(12041);function r(t,e){t.hookStatus(o.f.ready,(t=>{const i=(0,n.h)(t)?t:t.jodit,o=`${i.options.namespace}${t.componentName}_prop_${e}`,r=t[e];Object.defineProperty(t,e,{get(){var t;return null!==(t=i.storage.get(o))&&void 0!==t?t:r},set(t){i.storage.set(o,t)}})}))}},48647:function(t,e,i){\"use strict\";i.d(e,{u:function(){return s}});var o=i(64567),n=i(69052),r=i(50156);function s(t){return(e,i)=>{if(!(0,n.T)(e[i]))throw(0,r.z3)(\"Handler must be a Function\");e.hookStatus(o.f.ready,(e=>{const{async:o}=e,n=e[i];let r=0;Object.defineProperty(e,i,{configurable:!0,value:function i(...s){o.clearTimeout(r),t(e)?n.apply(e,s):r=o.setTimeout((()=>i(...s)),10)}})}))}}},66927:function(t,e,i){\"use strict\";i.d(e,{N:function(){return d},w:function(){return u}});var o=i(64567),n=i(32332),r=i(42589),s=i(69052),a=i(25376),l=i(12041),c=i(50156);function d(t,e){let i;do{i=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t)}while(!i&&t);return i}function u(t,e){return(i,u)=>{var h;if(!(0,s.T)(i[u]))throw(0,c.z3)(\"Handler must be a Function\");const p=null===(h=null==e?void 0:e.immediately)||void 0===h||h,f=null==e?void 0:e.context,m=e=>{const o=(0,l.h)(e)?e:e.jodit;let c=(t,...i)=>{if(!e.isInDestruct)return e[u](t,...i)};p||(c=e.async.microDebounce(c,!0)),(0,r.u)(t).forEach((t=>{if(/:/.test(t)){const[i,n]=t.split(\":\");let r=f;return i.length&&(r=e.get(i)),(0,s.T)(r)&&(r=r(e)),o.events.on(r||e,n,c),r||o.events.on(n,c),void e.hookStatus(\"beforeDestruct\",(()=>{o.events.off(r||e,n,c).off(n,c)}))}const r=t.split(\".\"),[l]=r,u=r.slice(1);let h=e[l];(0,a.Q)(h)&&(0,n.s)(h).on(`change.${u.join(\".\")}`,c);const p=d(i,l);Object.defineProperty(e,l,{configurable:!0,set(t){const i=h;i!==t&&(h=t,p&&p.set&&p.set.call(e,t),(0,a.Q)(h)&&(h=(0,n.s)(h),h.on(`change.${u.join(\".\")}`,c)),c(l,i,h))},get:()=>p&&p.get?p.get.call(e):h})}))};(0,s.T)(i.hookStatus)?i.hookStatus(o.f.ready,m):m(i)}}},55186:function(t,e,i){\"use strict\";i.d(e,{J:function(){return l}});var o=i(17352),n=i(42448),r=i(9823),s=i(59101),a=i(97369);class l{constructor(){throw new Error(\"Dom is static module\")}static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapInline(t,e,i){let o,n=t,s=t;i.s.save();let a=!1;do{a=!1,o=n.previousSibling,o&&!l.isBlock(o)&&(a=!0,n=o)}while(a);do{a=!1,o=s.nextSibling,o&&!l.isBlock(o)&&(a=!0,s=o)}while(a);const c=(0,r.Kg)(e)?i.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(c,n);let d=n;for(;d&&(d=n.nextSibling,c.appendChild(n),n!==s&&d);)n=d;return i.s.restore(),c}static wrap(t,e,i){const o=(0,r.Kg)(e)?i.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)(\"Element should be in DOM\");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{const e=t.extractContents();t.insertNode(o),o.appendChild(e)}return o}static unwrap(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,i){let o=t;for(;o&&o!==e&&(t===o||!i(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,e,i,o=!1,s=!1){(0,r.AH)(e)&&(e=i.fromHTML(e));const a=(0,r.Kg)(e)?i.element(e):e;if(!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&l.isElement(t)&&l.isElement(a)&&(0,n.$)(t.attributes).forEach((t=>{a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),\"\").trim().length)}static isEmptyContent(t){return l.each(t,(t=>l.isEmptyTextNode(t)))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,(t=>l.isElement(t)&&\"false\"===t.getAttribute(\"contenteditable\")),e)}static isEmpty(t,e=o.NO_EMPTY_TAGS){if(!t)return!0;let i;i=(0,r.Tn)(e)?e:t=>e.has(t.nodeName.toLowerCase());const n=t=>null==t.nodeValue||0===(0,s.Bq)(t.nodeValue).length;return l.isText(t)?n(t):!(l.isElement(t)&&i(t))&&l.each(t,(t=>{if(l.isText(t)&&!n(t)||l.isElement(t)&&i(t))return!1}))}static isNode(t){return Boolean(t&&(0,r.Kg)(t.nodeName)&&\"number\"==typeof t.nodeType&&t.childNodes&&(0,r.Tn)(t.appendChild))}static isCell(t){return l.isNode(t)&&(\"TD\"===t.nodeName||\"TH\"===t.nodeName)}static isList(t){return l.isTag(t,o.LIST_TAGS)}static isLeaf(t){return l.isTag(t,\"li\")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,r.Rd)(t)&&\"object\"==typeof t&&l.isNode(t)&&o.IS_BLOCK.test(t.nodeName)}static isText(t){return Boolean(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return Boolean(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){var e;if(!l.isNode(t))return!1;const i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return Boolean(i&&t.nodeType===Node.ELEMENT_NODE)}static isFragment(t){var e;if(!l.isNode(t))return!1;const i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return Boolean(i&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){var e;if(!l.isNode(t))return!1;const i=null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView;return Boolean(i&&t instanceof i.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==[\"inline\",\"inline-block\"].indexOf((0,a.css)(t,\"display\").toString())}static canSplitBlock(t){return!(0,r.Rd)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let i=null==t?void 0:t.lastChild;if(!i)return null;do{if(e(i))return i;let o=i.lastChild;if(o||(o=i.previousSibling),!o&&i.parentNode!==t){do{i=i.parentNode}while(i&&!(null==i?void 0:i.previousSibling)&&i.parentNode!==t);o=null==i?void 0:i.previousSibling}i=o}while(i);return null}static prev(t,e,i,o=!0){return l.find(t,e,i,!1,o)}static next(t,e,i,o=!0){return l.find(t,e,i,!0,o)}static prevWithClass(t,e){return l.prev(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static nextWithClass(t,e){return l.next(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static find(t,e,i,o=!0,n=!0){const r=this.nextGen(t,i,o,n);let s=r.next();for(;!s.done;){if(e(s.value))return s.value;s=r.next()}return null}static*nextGen(t,e,i=!0,o=!0){const n=[];let r=t;do{let e=i?r.nextSibling:r.previousSibling;for(;e;)n.unshift(e),e=i?e.nextSibling:e.previousSibling;yield*this.runInStack(t,n,i,o),r=r.parentNode}while(r&&r!==e);return null}static each(t,e,i=!0){const o=this.eachGen(t,i);let n=o.next();for(;!n.done;){if(!1===e(n.value))return!1;n=o.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,i,o=!0){for(;e.length;){const n=e.pop();if(o){let t=i?n.lastChild:n.firstChild;for(;t;)e.push(t),t=i?t.previousSibling:t.nextSibling}t!==n&&(yield n)}}static findWithCurrent(t,e,i,o=\"nextSibling\",n=\"firstChild\"){let r=t;do{if(e(r))return r||null;if(n&&r&&r[n]){const t=l.findWithCurrent(r[n],e,r,o,n);if(t)return t}for(;r&&!r[o]&&r!==i;)r=r.parentNode;r&&r[o]&&r!==i&&(r=r[o])}while(r&&r!==i);return null}static findSibling(t,e=!0,i=(t=>!l.isEmptyTextNode(t))){let o=l.sibling(t,e);for(;o&&!i(o);)o=l.sibling(o,e);return o&&i(o)?o:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,(t=>{var e;return!l.isEmptyTextNode(t)&&Boolean(!l.isText(t)||(null===(e=t.nodeValue)||void 0===e?void 0:e.length)&&(0,s.Bq)(t.nodeValue))}))}static findNotEmptyNeighbor(t,e,i){return(0,a.call)(e?l.prev:l.next,t,(t=>Boolean(t&&(!(l.isText(t)||l.isComment(t))||(0,s.Bq)((null==t?void 0:t.nodeValue)||\"\").length))),i)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,i,o=!1){let n=t;if(!n)return null;do{if(e(n))return n;if(n===i||!n.parentNode)break;n=n.parentNode}while(n&&n!==i);return n===i&&o&&e(n)?n:null}static closest(t,e,i){let o;const n=t=>t.toLowerCase();if((0,r.Tn)(e))o=e;else if((0,r.cy)(e)||(0,r.vM)(e)){const t=(0,r.vM)(e)?e:new Set(e.map(n));o=e=>Boolean(e&&t.has(n(e.nodeName)))}else o=t=>Boolean(t&&n(e)===n(t.nodeName));return l.up(t,o,i)}static furthest(t,e,i){let o=null,n=null==t?void 0:t.parentElement;for(;n&&n!==i;)e(n)&&(o=n),n=null==n?void 0:n.parentElement;return o}static appendChildFirst(t,e){const i=t.firstChild;i?i!==e&&t.insertBefore(e,i):t.appendChild(e)}static after(t,e){const{parentNode:i}=t;i&&(i.lastChild===t?i.appendChild(e):i.insertBefore(e,t.nextSibling))}static before(t,e){const{parentNode:i}=t;i&&i.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,r.cy)(e)?e.forEach((e=>{this.append(t,e)})):t.appendChild(e)}static moveContent(t,e,i=!1,o=(()=>!0)){const r=(t.ownerDocument||document).createDocumentFragment();(0,n.$)(t.childNodes).filter((t=>!!o(t)||(l.safeRemove(t),!1))).forEach((t=>{r.appendChild(t)})),i&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,i=!1){return t===e?!i:Boolean(e&&t&&this.up(e,(e=>e===t),t,!0))}static safeRemove(...t){t.forEach((t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();const i=l.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&l.isTag(t.startContainer,o.INSEPARABLE_TAGS)?l.after(t.startContainer,e):(t.insertNode(e),i&&t.setStartBefore(i)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach((t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t)))}static hide(t){t&&((0,a.dataBind)(t,\"__old_display\",t.style.display),t.style.display=\"none\")}static show(t){if(!t)return;const e=(0,a.dataBind)(t,\"__old_display\");\"none\"===t.style.display&&(t.style.display=e||\"\")}static isTag(t,e){if(!this.isElement(t))return!1;const i=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(e instanceof Set)return e.has(i)||e.has(o);if(Array.isArray(e))throw new TypeError(\"Dom.isTag does not support array\");return i===e||o===e}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,r.rg)(t)||\"true\"===(0,a.attr)(t,o.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\\/\\1>/gi,\"$2\")}static temporaryList(t){return(0,a.$$)(`[${o.TEMP_ATTR}]`,t)}}},71842:function(t,e,i){\"use strict\";i.d(e,{J:function(){return o.J},p:function(){return n.p}});var o=i(55186),n=i(8453)},8453:function(t,e,i){\"use strict\";i.d(e,{p:function(){return a}});var o=i(31635),n=i(22664),r=i(55186),s=i(43431);class a extends s.h{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.J.eachGen(t,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(t,e={}){super(),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){var t;this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:null!==(t=this.options.timeout)&&void 0!==t?t:10})}break(t){this.isWorked&&(this.stop(),this.emit(\"break\",t))}end(){this.isWorked&&(this.stop(),this.emit(\"end\",this.hadAffect),this.hadAffect=!1)}stop(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}workPerform(t){var e;if(this.workNodes){this.isWorked=!0;let i=0;const o=null!==(e=this.options.timeoutChunkSize)&&void 0!==e?e:50;for(;!this.isFinished&&(t.timeRemaining()>0||t.didTimeout&&o>=i);){const t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(t){var e;return!(!t||void 0!==this.options.whatToShow&&t.nodeType!==this.options.whatToShow)&&null!==(e=this.emit(\"visit\",t))&&void 0!==e&&e}}(0,o.Cg)([n.autobind],a.prototype,\"workPerform\",null)},50658:function(t,e,i){\"use strict\";i.d(e,{b:function(){return d}});var o=i(17352),n=i(42589),r=i(37923),s=i(69052),a=i(98253),l=i(50156),c=i(10004);class d{mute(t){return this.__mutedEvents.add(null!=t?t:\"*\"),this}isMuted(t){return!(!t||!this.__mutedEvents.has(t))||this.__mutedEvents.has(\"*\")}unmute(t){return this.__mutedEvents.delete(null!=t?t:\"*\"),this}__eachEvent(t,e){(0,n.u)(t).map((t=>t.trim())).forEach((t=>{const i=t.split(\".\");e.call(this,i[0],i[1]||c.X)}))}__getStore(t){if(!t)throw(0,l.z3)(\"Need subject\");if(void 0===t[this.__key]){const e=new c.d;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,e){const i=this.__doc.createEvent(\"HTMLEvents\");(0,a.K)(e)?i.initEvent(e,!0,!0):(i.initEvent(e.type,e.bubbles,e.cancelable),[\"screenX\",\"screenY\",\"clientX\",\"clientY\",\"target\",\"srcElement\",\"currentTarget\",\"timeStamp\",\"which\",\"keyCode\"].forEach((t=>{Object.defineProperty(i,t,{value:e[t],enumerable:!0})})),Object.defineProperty(i,\"originalEvent\",{value:e,enumerable:!0})),t.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(t,e,i,n){let c,d,h,p;if((0,a.K)(t)||(0,a.B)(t)?(c=this,d=t,h=e,p=i):(c=t,d=e,h=i,p=n),!(0,a.K)(d)&&!(0,a.B)(d)||0===d.length)throw(0,l.z3)(\"Need events names\");if(!(0,s.T)(h))throw(0,l.z3)(\"Need event handler\");if((0,r.c)(c))return c.forEach((t=>{this.on(t,d,h,p)})),this;const f=c,m=this.__getStore(f),g=this;let b=function(t,...e){if(!g.isMuted(t))return h&&h.call(this,...e)};return u(f)&&(b=function(t){if(!g.isMuted(t.type))return g.__prepareEvent(t),h&&!1===h.call(this,t)?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(d,((t,e)=>{var i,n;if(0===t.length)throw(0,l.z3)(\"Need event name\");if(!1===m.indexOf(t,e,h)&&(m.set(t,e,{event:t,originalCallback:h,syntheticCallback:b},null==p?void 0:p.top),u(f))){const e=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!==(i=null==p?void 0:p.capture)&&void 0!==i&&i}:null!==(n=null==p?void 0:p.capture)&&void 0!==n&&n;b.options=e,f.addEventListener(t,b,e),this.__memoryDOMSubjectToHandler(f,b)}})),this}__memoryDOMSubjectToHandler(t,e){const i=this.__domEventsMap.get(t)||new Set;i.add(e),this.__domEventsMap.set(t,i)}__unmemoryDOMSubjectToHandler(t,e){const i=this.__domEventsMap,o=i.get(t)||new Set;o.delete(e),o.size?i.set(t,o):i.delete(t)}one(t,e,i,o){let n,r,s,l;(0,a.K)(t)||(0,a.B)(t)?(n=this,r=t,s=e,l=i):(n=t,r=e,s=i,l=o);const c=(...t)=>(this.off(n,r,c),s(...t));return this.on(n,r,c,l),this}off(t,e,i){let o,n,l;if((0,a.K)(t)||(0,a.B)(t)?(o=this,n=t,l=e):(o=t,n=e,l=i),(0,r.c)(o))return o.forEach((t=>{this.off(t,n,l)})),this;const d=o,h=this.__getStore(d);if(!(0,a.K)(n)&&!(0,a.B)(n)||0===n.length)return h.namespaces().forEach((t=>{this.off(d,\".\"+t)})),this.__removeStoreFromSubject(d),this;const p=t=>{var e;u(d)&&(d.removeEventListener(t.event,t.syntheticCallback,null!==(e=t.syntheticCallback.options)&&void 0!==e&&e),this.__unmemoryDOMSubjectToHandler(d,t.syntheticCallback))},f=(t,e)=>{if(\"\"===t)return void h.events(e).forEach((t=>{\"\"!==t&&f(t,e)}));const i=h.get(t,e);if(i&&i.length)if((0,s.T)(l)){const o=h.indexOf(t,e,l);!1!==o&&(p(i[o]),i.splice(o,1),i.length||h.clearEvents(e,t))}else i.forEach(p),i.length=0,h.clearEvents(e,t)};return this.__eachEvent(n,((t,e)=>{e===c.X?h.namespaces().forEach((e=>{f(t,e)})):f(t,e)})),h.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,e){const i=(0,a.K)(t)?this:t,o=(0,a.K)(t)?t:e;if(\"string\"!=typeof o)throw(0,l.z3)(\"Need event names\");const n=this.__getStore(i);this.__eachEvent(o,((t,e)=>{const o=n.get(t,e);o&&this.__stopped.push(o),e===c.X&&n.namespaces(!0).forEach((e=>this.stopPropagation(i,t+\".\"+e)))}))}__removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...i){let o,n;const r=(0,a.K)(t)?this:t,s=(0,a.K)(t)?t:e,d=(0,a.K)(t)?[e,...i]:i;if(!u(r)&&!(0,a.K)(s))throw(0,l.z3)(\"Need events names\");const h=this.__getStore(r);return!(0,a.K)(s)&&u(r)?this.__triggerNativeEvent(r,e):this.__eachEvent(s,((t,e)=>{if(u(r))this.__triggerNativeEvent(r,t);else{const i=h.get(t,e);if(i)try{[...i].every((e=>!this.__isStopped(i)&&(this.currents.push(t),n=e.syntheticCallback.call(r,t,...d),this.currents.pop(),void 0!==n&&(o=n),!0)))}finally{this.__removeStop(i)}e!==c.X||u(r)||h.namespaces().filter((t=>t!==e)).forEach((e=>{const i=this.fire.apply(this,[r,t+\".\"+e,...d]);void 0!==i&&(o=i)}))}})),o}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key=\"__JoditEventEmitterNamespaces\",this.__doc=document,this.__prepareEvent=t=>{t.cancelBubble||(t.composed&&(0,s.T)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,\"target\",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&[\"clientX\",\"clientY\",\"pageX\",\"pageY\"].forEach((e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})})),t.originalEvent||(t.originalEvent=t),\"paste\"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,\"clipboardData\",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(((t,e)=>{this.off(e)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function u(t){return(0,s.T)(t.addEventListener)}},43431:function(t,e,i){\"use strict\";i.d(e,{h:function(){return o}});class o{constructor(){this.__map=new Map}on(t,e){var i;return this.__map.has(t)||this.__map.set(t,new Set),null===(i=this.__map.get(t))||void 0===i||i.add(e),this}off(t,e){var i;return this.__map.has(t)&&(null===(i=this.__map.get(t))||void 0===i||i.delete(e)),this}destruct(){this.__map.clear()}emit(t,...e){var i;let o;return this.__map.has(t)&&(null===(i=this.__map.get(t))||void 0===i||i.forEach((t=>{o=t(...e)}))),o}}},50025:function(t,e,i){\"use strict\";i.d(e,{Xr:function(){return s.X},bk:function(){return o.b},d$:function(){return s.d},h5:function(){return n.h},sH:function(){return r.s}});var o=i(50658),n=i(43431),r=i(32332),s=i(10004)},32332:function(t,e,i){\"use strict\";i.d(e,{s:function(){return c}});var o=i(66927),n=i(37923),r=i(69810),s=i(25376);const a=Symbol(\"observable-object\");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;const e={},i={},c=(e,o)=>(0,n.c)(e)?(e.map((t=>c(t,o))),t):(i[e]||(i[e]=[]),i[e].push(o),t),d=(o,...r)=>{if((0,n.c)(o))o.map((t=>d(t,...r)));else try{!e[o]&&i[o]&&(e[o]=!0,i[o].forEach((e=>e.call(t,...r))))}finally{e[o]=!1}},u=(e,i=[])=>{const n={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach((a=>{const l=a,c=i.concat(l).filter((t=>t.length));n[l]=e[l];const h=(0,o.N)(e,l);Object.defineProperty(e,l,{set:e=>{const i=n[l];if(!(0,r.P)(n[l],e)){d([\"beforeChange\",`beforeChange.${c.join(\".\")}`],l,e),(0,s.Q)(e)&&u(e,c),h&&h.set?h.set.call(t,e):n[l]=e;const o=[];d([\"change\",...c.reduce(((t,e)=>(o.push(e),t.push(`change.${o.join(\".\")}`),t)),[])],c.join(\".\"),i,(null==e?void 0:e.valueOf)?e.valueOf():e)}},get:()=>h&&h.get?h.get.call(t):n[l],enumerable:!0,configurable:!0}),(0,s.Q)(n[l])&&u(n[l],c)})),Object.defineProperty(t,\"on\",{value:c}))};return u(t),t}},10004:function(t,e,i){\"use strict\";i.d(e,{X:function(){return n},d:function(){return r}});var o=i(42448);i(28712);const n=\"JoditEventDefaultNamespace\";class r{constructor(){this.__store=new Map}get(t,e){if(this.__store.has(e))return this.__store.get(e)[t]}indexOf(t,e,i){const o=this.get(t,e);if(o)for(let t=0;o.length>t;t+=1)if(o[t].originalCallback===i)return t;return!1}namespaces(t=!1){const e=(0,o.$)(this.__store.keys());return t?e.filter((t=>t!==n)):e}events(t){const e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,i,o=!1){let n=this.__store.get(e);n||(n={},this.__store.set(e,n)),void 0===n[t]&&(n[t]=[]),o?n[t].unshift(i):n[t].push(i)}clear(){this.__store.clear()}clearEvents(t,e){const i=this.__store.get(t);i&&i[e]&&(delete i[e],Object.keys(i).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}}},56298:function(t,e,i){\"use strict\";i.d(e,{JW:function(){return _},My:function(){return x},RR:function(){return w},VF:function(){return h},av:function(){return b},fg:function(){return g},w9:function(){return m}});var o=i(83044),n=i(98253),r=i(12041),s=i(449),a=i(75766),l=i(77402),c=i(17352),d=i(71842),u=i(50025);const h={};let p=1;const f=new Set;function m(){function t(){return p+=10*(Math.random()+1),Math.round(p).toString(16)}let e=t();for(;f.has(e);)e=t();return f.add(e),e}const g=new l.$,b={},_=t=>{Object.keys(t).forEach((e=>{c.lang[e]?Object.assign(c.lang[e],t[e]):c.lang[e]=t[e]}))},v=new WeakMap;function x(t,e,i=\"div\",l=!1){const c=(0,n.K)(e)?e:e?(0,a.u)(e.prototype):\"jodit-utils\",u=v.get(t)||{},h=c+i,p=(0,r.h)(t)?t:t.j;if(!u[h]){let e=p.c,n=(0,o.y)(t)&&t.o.shadowRoot?t.o.shadowRoot:t.od.body;if(l&&(0,o.y)(t)&&t.od!==t.ed){e=t.createInside;const r=\"style\"===i?t.ed.head:t.ed.body;n=(0,o.y)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}const r=e.element(i,{className:`jodit jodit-${(0,s.k)(c)}-container jodit-box`});r.classList.add(`jodit_theme_${p.o.theme||\"default\"}`),n.appendChild(r),u[h]=r,t.hookStatus(\"beforeDestruct\",(()=>{d.J.safeRemove(r),delete u[h],Object.keys(u).length&&v.delete(t)})),v.set(t,u)}return u[h].classList.remove(\"jodit_theme_default\",\"jodit_theme_dark\"),u[h].classList.add(`jodit_theme_${p.o.theme||\"default\"}`),u[h]}const w=new u.bk},82317:function(t,e,i){\"use strict\";i.d(e,{_:function(){return n}});var o=i(37923);const n=t=>(0,o.c)(t)?t:[t]},32709:function(t,e,i){\"use strict\";i.d(e,{$r:function(){return r.$},_j:function(){return o._},uM:function(){return n.u}});var o=i(82317),n=i(42589),r=i(42448)},42589:function(t,e,i){\"use strict\";function o(t){return Array.isArray(t)?t:t.split(/[,\\s]+/)}i.d(e,{u:function(){return o}})},42448:function(t,e,i){\"use strict\";i.d(e,{$:function(){return r}});var o=i(34796),n=i(44210);const r=function(...t){var e;return((0,o.a)(Array.from)?Array.from:null!==(e=(0,n.c)(\"Array.from\"))&&void 0!==e?e:Array.from).apply(Array,t)}},89044:function(t,e,i){\"use strict\";i.d(e,{D:function(){return o.D},w:function(){return o.w}});var o=i(59146)},59146:function(t,e,i){\"use strict\";function o(t,e,...i){return e?window.setTimeout(t,e,...i):(t.call(null,...i),0)}function n(t){window.clearTimeout(t)}i.d(e,{D:function(){return n},w:function(){return o}})},78479:function(t,e,i){\"use strict\";function o(){let t=!0;try{const e=document.createElement(\"input\");e.type=\"color\",e.value=\"!\",t=\"color\"===e.type&&\"!\"!==e.value}catch(e){t=!1}return t}i.d(e,{k:function(){return o}})},9823:function(t,e,i){\"use strict\";i.d(e,{AH:function(){return c.A},Bo:function(){return y.B},CE:function(){return d.C},E6:function(){return h.E},Et:function(){return b.E},Gp:function(){return u.n4},Kg:function(){return y.K},Lm:function(){return s.L},Mj:function(){return f.M},P5:function(){return a.P},Qd:function(){return v.Q},Rd:function(){return S.R},Tn:function(){return l.T},a3:function(){return g.a},cy:function(){return r.c},hH:function(){return C.h},kC:function(){return o.k},kO:function(){return u.kO},kf:function(){return _.k},l6:function(){return z.l},mv:function(){return j.m},n4:function(){return a.n},pV:function(){return u.pV},rg:function(){return m.r},uV:function(){return k.u},vM:function(){return w.v},y0:function(){return p.y},yL:function(){return x.y},zf:function(){return n.z}});var o=i(78479),n=i(99951),r=i(37923),s=i(9810),a=i(69810),l=i(69052),c=i(53701),d=i(21811),u=i(10058),h=i(3947),p=i(83044),f=i(82201),m=i(71274),g=i(34796),b=i(2461),_=i(12461),v=i(25376),x=i(92039),w=i(53470),y=i(98253),j=i(6939),k=i(59082),C=i(12041),S=i(35642),z=i(76776)},99951:function(t,e,i){\"use strict\";function o(t){return Boolean(t)&&t instanceof DOMException&&\"AbortError\"===t.name}i.d(e,{z:function(){return o}})},37923:function(t,e,i){\"use strict\";function o(t){return Array.isArray(t)}i.d(e,{c:function(){return o}})},9810:function(t,e,i){\"use strict\";function o(t){return\"boolean\"==typeof t}i.d(e,{L:function(){return o}})},69810:function(t,e,i){\"use strict\";i.d(e,{P:function(){return r},n:function(){return n}});var o=i(28616);function n(t,e){return t===e||(0,o.A)(t)===(0,o.A)(e)}function r(t,e){return t===e}},69052:function(t,e,i){\"use strict\";function o(t){return\"function\"==typeof t}i.d(e,{T:function(){return o}})},21811:function(t,e,i){\"use strict\";function o(t){return-1!==t.search(//)||-1!==t.search(//)||-1!==t.search(/style=\"[^\"]*mso-/)&&-1!==t.search(/(0,o.K)(t)&&/<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)<\\/\\1>/m.test(t.replace(/[\\r\\n]/g,\"\"))},10058:function(t,e,i){\"use strict\";i.d(e,{kO:function(){return l},n4:function(){return s},pV:function(){return a}});var o=i(55186),n=i(69052),r=i(35642);function s(t){return!(0,r.R)(t)&&(0,n.T)(t.init)}function a(t){return!(0,r.R)(t)&&(0,n.T)(t.destruct)}function l(t){return!(0,r.R)(t)&&o.J.isElement(t.container)}},3947:function(t,e,i){\"use strict\";i.d(e,{E:function(){return r}});var o=i(12461),n=i(98253);function r(t){return(0,n.K)(t)&&(0,o.k)(t)&&(t=parseFloat(t)),\"number\"==typeof t&&Number.isFinite(t)&&!(t%1)}},83044:function(t,e,i){\"use strict\";i.d(e,{y:function(){return n}});var o=i(69052);function n(t){return Boolean(t&&t instanceof Object&&(0,o.T)(t.constructor)&&(\"undefined\"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},82201:function(t,e,i){\"use strict\";i.d(e,{M:function(){return n}});var o=i(98253);const n=t=>(0,o.K)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},71274:function(t,e,i){\"use strict\";i.d(e,{r:function(){return r}});var o=i(17352),n=i(55186);function r(t){return n.J.isNode(t)&&n.J.isTag(t,\"span\")&&t.hasAttribute(\"data-\"+o.MARKER_CLASS)}},34796:function(t,e,i){\"use strict\";function o(t){return Boolean(t)&&\"function\"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\\s*function\\s*(\\b[a-z$_][a-z0-9$_]*\\b)*\\s*\\((|([a-z$_][a-z0-9$_]*)(\\s*,[a-z$_][a-z0-9$_]*)*)\\)\\s*{\\s*\\[native code]\\s*}\\s*$/i.test(String(t)))}i.d(e,{a:function(){return o}})},2461:function(t,e,i){\"use strict\";function o(t){return\"number\"==typeof t&&!isNaN(t)&&isFinite(t)}i.d(e,{E:function(){return o}})},12461:function(t,e,i){\"use strict\";i.d(e,{k:function(){return n}});var o=i(98253);function n(t){if((0,o.K)(t)){if(!t.match(/^([+-])?[0-9]+(\\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return\"number\"==typeof t&&!isNaN(t)&&isFinite(t)}},25376:function(t,e,i){\"use strict\";i.d(e,{Q:function(){return n}});var o=i(76776);function n(t){return!(!t||\"object\"!=typeof t||t.nodeType||(0,o.l)(t)||t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,\"isPrototypeOf\"))}},92039:function(t,e,i){\"use strict\";function o(t){return t&&\"function\"==typeof t.then}i.d(e,{y:function(){return o}})},53470:function(t,e,i){\"use strict\";i.d(e,{v:function(){return n}});var o=i(69052);function n(t){return Boolean(t)&&(0,o.T)(t.has)&&(0,o.T)(t.add)&&(0,o.T)(t.delete)}},98253:function(t,e,i){\"use strict\";i.d(e,{B:function(){return r},K:function(){return n}});var o=i(37923);function n(t){return\"string\"==typeof t}function r(t){return(0,o.c)(t)&&n(t[0])}},6939:function(t,e,i){\"use strict\";function o(t){if(t.includes(\" \"))return!1;if(\"undefined\"!=typeof URL)try{const e=new URL(t);return[\"https:\",\"http:\",\"ftp:\",\"file:\",\"rtmp:\"].includes(e.protocol)}catch(t){return!1}const e=document.createElement(\"a\");return e.href=t,Boolean(e.hostname)}i.d(e,{m:function(){return o}})},59082:function(t,e,i){\"use strict\";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\\w\\-_. ]/.test(t)&&t.trim().length>0}i.d(e,{u:function(){return o}})},12041:function(t,e,i){\"use strict\";i.d(e,{h:function(){return n}});var o=i(69052);function n(t){return Boolean(t&&t instanceof Object&&(0,o.T)(t.constructor)&&t.isView)}},35642:function(t,e,i){\"use strict\";function o(t){return null==t}i.d(e,{R:function(){return o}})},76776:function(t,e,i){\"use strict\";function o(t){return null!=t&&t===t.window}i.d(e,{l:function(){return o}})},96768:function(t,e,i){\"use strict\";i.d(e,{s:function(){return o}});const o=t=>{if(\"rgba(0, 0, 0, 0)\"===t||\"\"===t)return!1;if(!t)return\"#000000\";if(\"#\"===t.substr(0,1))return t;const e=/([\\s\\n\\t\\r]*?)rgb\\((\\d+), (\\d+), (\\d+)\\)/.exec(t)||/([\\s\\n\\t\\r]*?)rgba\\((\\d+), (\\d+), (\\d+), ([\\d.]+)\\)/.exec(t);if(!e)return\"#000000\";const i=parseInt(e[2],10),o=parseInt(e[3],10);let n=(parseInt(e[4],10)|o<<8|i<<16).toString(16).toUpperCase();for(;6>n.length;)n=\"0\"+n;return e[1]+\"#\"+n}},93495:function(t,e,i){\"use strict\";i.d(e,{s:function(){return o.s}});var o=i(96768)},56176:function(t,e,i){\"use strict\";i.d(e,{Z:function(){return l}});var o=i(17352),n=i(55186),r=i(59101),s=i(58720);function a(t){return t.replace(/mso-[a-z-]+:[\\s]*[^;]+;/gi,\"\").replace(/mso-[a-z-]+:[\\s]*[^\";']+$/gi,\"\").replace(/border[a-z-]*:[\\s]*[^;]+;/gi,\"\").replace(/([0-9.]+)(pt|cm)/gi,((t,e,i)=>{switch(i.toLowerCase()){case\"pt\":return(1.328*parseFloat(e)).toFixed(0)+\"px\";case\"cm\":return(.02645833*parseFloat(e)).toFixed(0)+\"px\"}return t}))}function l(t){if(-1===t.indexOf(\"\")+7);const e=document.createElement(\"iframe\");e.style.display=\"none\",document.body.appendChild(e);let i=\"\",l=[];try{const c=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;c.styleSheets.length>t;t+=1){const e=c.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)\"\"!==e[t].selectorText&&(l=(0,s.$$)(e[t].selectorText,c.body),l.forEach((i=>{i.style.cssText=a(e[t].style.cssText+\";\"+i.style.cssText)})))}}catch(t){if(!o.IS_PROD)throw t}n.J.each(c.body,(t=>{if(n.J.isElement(t)){const e=t,i=e.getAttribute(\"style\");i&&(e.style.cssText=a(i)),e.hasAttribute(\"style\")&&!e.getAttribute(\"style\")&&e.removeAttribute(\"style\")}})),i=c.firstChild?(0,r.Bq)(c.body.innerHTML):\"\"}}catch(t){}finally{n.J.safeRemove(e)}return i&&(t=i),(0,r.Bq)(t.replace(/<(\\/)?(html|colgroup|col|o:p)[^>]*>/g,\"\").replace(//i);-1!==e&&(t=t.substring(e+20));const i=t.search(//i);return-1!==i&&(t=t.substring(0,i)),t}(i)),e.s.insertHTML(i)}function l(t){const e=t.types;let i=\"\";if((0,r.cy)(e)||\"[object DOMStringList]\"==={}.toString.call(e))for(let t=0;e.length>t;t+=1)i+=e[t]+\";\";else i=(e||o.TEXT_PLAIN).toString()+\";\";return i}function c(t,e,i,o,n){if(!1===t.e.fire(\"beforeOpenPasteDialog\",e,i,o,n))return;const r=t.confirm(`${t.i18n(e)}
`,t.i18n(i)),a=n.map((({text:e,value:i})=>(0,s.$n)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction((()=>{r.close(),o(i)}))));r.e.one(r,\"afterClose\",(()=>{t.s.isFocused()||t.s.focus()}));const l=(0,s.$n)(t,{text:\"Cancel\",tabIndex:0}).onAction((()=>{r.close()}));return r.setFooter([...a,l]),a[0].focus(),a[0].state.variant=\"primary\",t.e.fire(\"afterOpenPasteDialog\",r,e,i,o,n),r}},13861:function(t,e,i){\"use strict\";var o=i(31635),n=i(17352),r=i(22664),s=i(55186),a=i(56298),l=i(65147),c=i(29866),d=(i(70674),i(90823));class u extends c.k{constructor(){super(...arguments),this.pasteStack=new l.LimitedStack(20),this._isDialogOpened=!1}afterInit(t){t.e.on(\"paste.paste\",this.onPaste).on(\"pasteStack.paste\",(t=>this.pasteStack.push(t))),t.o.nl2brInPlainText&&this.j.e.on(\"processPaste.paste\",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off(\"paste.paste\",this.onPaste).off(\"processPaste.paste\",this.onProcessPasteReplaceNl2Br).off(\".paste\")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire(\"beforePaste\",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire(\"afterPaste\",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;const e=(0,l.getDataTransfer)(t),i=[null==e?void 0:e.getData(n.TEXT_PLAIN),null==e?void 0:e.getData(n.TEXT_HTML),null==e?void 0:e.getData(n.TEXT_RTF)];for(const e of i)if((0,l.isHTML)(e)&&(this.j.e.fire(\"processHTML\",t,e,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){const e=(0,l.getDataTransfer)(t);let i=(null==e?void 0:e.getData(n.TEXT_HTML))||(null==e?void 0:e.getData(n.TEXT_PLAIN));if(e&&i&&\"\"!==(0,l.trim)(i)){const o=this.j.e.fire(\"processPaste\",t,i,(0,d.DI)(e));void 0!==o&&(i=o),((0,l.isString)(i)||s.J.isNode(i))&&this.__insertByType(t,i,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){const i=this.pasteStack.find((t=>t.html===e));if(i)return this.__insertByType(t,e,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;const i=(0,d.PU)(this.j,\"Your code is similar to HTML. Keep as HTML?\",\"Paste as HTML\",(i=>{this._isDialogOpened=!1,this.__insertByType(t,e,i)}),this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on(\"beforeClose\",(()=>{this._isDialogOpened=!1}))),!0}__insertByType(t,e,i){if(this.pasteStack.push({html:e,action:i}),(0,l.isString)(e))switch(this.j.buffer.set(n.CLIPBOARD_ID,e),i){case n.INSERT_CLEAR_HTML:e=(0,l.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,l.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case n.INSERT_AS_TEXT:e=(0,l.htmlspecialchars)(e)}(0,d.sX)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,i){if(i===n.TEXT_PLAIN+\";\"&&!(0,l.isHTML)(e))return(0,l.nl2br)(e)}}(0,o.Cg)([r.autobind],u.prototype,\"onPaste\",null),(0,o.Cg)([r.autobind],u.prototype,\"onProcessPasteReplaceNl2Br\",null),a.fg.add(\"paste\",u)},50248:function(t,e,i){\"use strict\";var o=i(36115);o.T.prototype.showPlaceholder=!0,o.T.prototype.placeholder=\"Type something\",o.T.prototype.useInputsPlaceholder=!0},225:function(t,e,i){\"use strict\";var o=i(31635),n=i(17352),r=i(22664),s=i(55186),a=i(56298),l=i(71274),c=i(26150),d=i(38322),u=i(29866);i(50248);class h extends u.k{constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,\"input.placeholder keydown.placeholder\").on(this.j.editor,\"input.placeholder keydown.placeholder\",this.toggle)},this.addEvents=()=>{const t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute(\"placeholder\")&&(this.placeholderElm.innerHTML=(0,c.C)(t.element,\"placeholder\")||\"\"),t.e.fire(\"placeholder\",this.placeholderElm.innerHTML),t.e.off(\".placeholder\").on(\"changePlace.placeholder\",this.addNativeListeners).on(\"change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder\",this.toggle).on(window,\"load\",this.toggle),this.addNativeListeners(),this.toggle()}}afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`${t.i18n(t.o.placeholder)}`),\"rtl\"===t.o.direction&&(this.placeholderElm.style.right=\"0px\",this.placeholderElm.style.direction=\"rtl\"),t.e.on(\"readonly\",(t=>{t?this.hide():this.toggle()})).on(\"changePlace\",this.addEvents),this.addEvents())}show(){const t=this.j;if(t.o.readonly)return;let e=0,i=0;const o=t.s.current(),n=o&&s.J.closest(o,s.J.isBlock,t.editor)||t.editor,r=t.ew.getComputedStyle(n),a=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);const{firstChild:c}=t.editor;if(s.J.isElement(c)&&!(0,l.r)(c)){const o=t.ew.getComputedStyle(c);e=parseInt(o.getPropertyValue(\"margin-top\"),10),i=parseInt(o.getPropertyValue(\"margin-left\"),10),this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue(\"font-size\"),10)+\"px\",this.placeholderElm.style.lineHeight=o.getPropertyValue(\"line-height\")}else this.placeholderElm.style.fontSize=parseInt(r.getPropertyValue(\"font-size\"),10)+\"px\",this.placeholderElm.style.lineHeight=r.getPropertyValue(\"line-height\");(0,d.A)(this.placeholderElm,{display:\"block\",textAlign:r.getPropertyValue(\"text-align\"),paddingTop:parseInt(a.paddingTop,10)+\"px\",paddingLeft:parseInt(a.paddingLeft,10)+\"px\",paddingRight:parseInt(a.paddingRight,10)+\"px\",marginTop:Math.max(parseInt(r.getPropertyValue(\"margin-top\"),10),e),marginLeft:Math.max(parseInt(r.getPropertyValue(\"margin-left\"),10),i)})}hide(){s.J.safeRemove(this.placeholderElm)}toggle(){const t=this.j;t.editor&&!t.isInDestruct&&(t.getRealMode()===n.MODE_WYSIWYG&&function(t){var e;if(!t.firstChild)return!0;const i=t.firstChild;if(n.INSEPARABLE_TAGS.has(null===(e=i.nodeName)||void 0===e?void 0:e.toLowerCase())||/^(TABLE)$/i.test(i.nodeName))return!1;const o=s.J.next(i,(t=>t&&!s.J.isEmptyTextNode(t)),t);return s.J.isText(i)&&!o?s.J.isEmptyTextNode(i):!o&&s.J.each(i,(t=>!(s.J.isLeaf(t)||s.J.isList(t))&&(s.J.isEmpty(t)||s.J.isTag(t,\"br\"))))}(t.editor)?this.show():this.hide())}beforeDestruct(t){this.hide(),t.e.off(\".placeholder\").off(window,\"load\",this.toggle)}}(0,o.Cg)([(0,r.debounce)((t=>t.defaultTimeout/10),!0)],h.prototype,\"toggle\",null),a.fg.add(\"placeholder\",h)},81089:function(t,e,i){\"use strict\";i(56298).fg.add(\"poweredByJodit\",(function(t){const{o:e}=t;e.hidePoweredByJodit||e.inline||!(e.showCharsCounter||e.showWordsCounter||e.showXPathInStatusbar)||t.hookStatus(\"ready\",(()=>{t.statusbar.append(t.create.fromHTML('\\n\\t\\t\\t\\t\\t\\t\\tPowered by Jodit\\n\\t\\t\\t\\t\\t\\t'),!0)}))}))},44921:function(t,e,i){\"use strict\";var o=i(17352),n=i(56298),r=i(98434);i(36115).T.prototype.controls.preview={icon:\"eye\",command:\"preview\",mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:\"Preview\"},n.fg.add(\"preview\",(function(t){t.registerButton({name:\"preview\"}),t.registerCommand(\"preview\",((e,i,o)=>{const n=t.dlg();n.setSize(1024,600).open(\"\",t.i18n(\"Preview\")).setModal(!0);const[,s]=(0,r.u)(t,o,\"px\",n.getElm(\"content\"));n.e.on(n,\"afterClose\",s)}))}))},11131:function(t,e,i){\"use strict\";i.d(e,{Y:function(){return n}});var o=i(42448);function n(t){const e=(t,e=t.ownerDocument.styleSheets)=>(0,o.$)(e).map((t=>{try{return(0,o.$)(t.cssRules)}catch(t){}return[]})).flat().filter((e=>{try{return Boolean(e&&t.matches(e.selectorText))}catch(t){}return!1}));class i{constructor(i,o,n){this.css={};const r=n||{},s=e=>{const i=e.selectorText.split(\",\").map((t=>t.trim())).sort().join(\",\");!1===Boolean(this.css[i])&&(this.css[i]={});const o=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;o.length>e;e++){if(!o[e])continue;const n=o[e].split(\":\");n[0]=n[0].trim(),n[1]=n[1].trim(),this.css[i][n[0]]=n[1].replace(/var\\(([^)]+)\\)/g,((e,i)=>{const[o,n]=i.split(\",\");return(t.ew.getComputedStyle(t.editor).getPropertyValue(o.trim())||n||e).trim()}))}};(()=>{const n=i.innerHeight,a=o.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,(()=>NodeFilter.FILTER_ACCEPT));for(;a.nextNode();){const t=a.currentNode;if(n>t.getBoundingClientRect().top||r.scanFullPage){const i=e(t);if(i)for(let t=0;i.length>t;t++)s(i[t])}}})()}generateCSS(){let t=\"\";for(const e in this.css)if(!/:not\\(/.test(e)){t+=e+\" { \";for(const i in this.css[e])t+=i+\": \"+this.css[e][i]+\"; \";t+=\"}\\n\"}return t}}try{return new i(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch(t){}return\"\"}},78757:function(t,e,i){\"use strict\";var o=i(17352),n=i(71842),r=i(56298),s=i(17527),a=i(98434),l=i(931),c=i(11131),d=i(59827),u=i.n(d),h=i(36115);l.I.set(\"print\",u()),h.T.prototype.controls.print={exec:t=>{const e=t.create.element(\"iframe\");Object.assign(e.style,{position:\"fixed\",right:0,bottom:0,width:0,height:0,border:0}),(0,r.My)(t,h.T).appendChild(e);const i=()=>{t.e.off(t.ow,\"mousemove\",i),n.J.safeRemove(e)},o=e.contentWindow;if(o){t.e.on(o,\"onbeforeunload onafterprint\",i).on(t.ow,\"mousemove\",i),t.o.iframe?(t.e.fire(\"generateDocumentStructure.iframe\",o.document,t),o.document.body.innerHTML=t.value):(o.document.write('\"),o.document.close(),(0,a.u)(t,void 0,\"px\",o.document.body));const e=o.document.createElement(\"style\");e.innerHTML=\"@media print {\\n\\t\\t\\t\\t\\tbody {\\n\\t\\t\\t\\t\\t\\t\\t-webkit-print-color-adjust: exact;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t}\",o.document.head.appendChild(e),o.focus(),o.print()}},mode:o.MODE_SOURCE+o.MODE_WYSIWYG,tooltip:\"Print\"},r.fg.add(\"print\",(function(t){t.registerButton({name:\"print\"})}))},60189:function(t,e,i){\"use strict\";var o=i(17352),n=i(56298),r=i(29866),s=i(931),a=i(34045),l=i.n(a),c=i(39199),d=i.n(c),u=i(36115);s.I.set(\"redo\",l()).set(\"undo\",d()),u.T.prototype.controls.redo={mode:o.MODE_SPLIT,isDisabled:t=>!t.history.canRedo(),tooltip:\"Redo\"},u.T.prototype.controls.undo={mode:o.MODE_SPLIT,isDisabled:t=>!t.history.canUndo(),tooltip:\"Undo\"},n.fg.add(\"redoUndo\",class extends r.k{constructor(){super(...arguments),this.buttons=[{name:\"undo\",group:\"history\"},{name:\"redo\",group:\"history\"}]}beforeDestruct(){}afterInit(t){const e=e=>(t.history[e](),!1);t.registerCommand(\"redo\",{exec:e,hotkeys:[\"ctrl+y\",\"ctrl+shift+z\",\"cmd+y\",\"cmd+shift+z\"]}),t.registerCommand(\"undo\",{exec:e,hotkeys:[\"ctrl+z\",\"cmd+z\"]})}})},36001:function(t,e,i){\"use strict\";i(36115).T.prototype.tableAllowCellResize=!0},39147:function(t,e,i){\"use strict\";var o=i(31635),n=i(17352),r=i(22664),s=i(55186),a=i(56298),l=i(65147),c=i(37435);i(36001);const d=\"table_processor_observer-resize\";class u extends c.Plugin{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div(\"jodit-table-resizer\"),this.j.e.on(this.resizeHandler,\"mousedown.table touchstart.table\",this.onHandleMouseDown).on(this.resizeHandler,\"mouseenter.table\",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance(\"Table\",this.j.o)}get isRTL(){return\"rtl\"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{s.J.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:\"hideResizer\"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,\"mouseup.resize-cells touchend.resize-cells\",this.onMouseUp).on(this.j.ew,\"mousemove.table touchmove.table\",this.onMouseMove),this.startX=t.clientX,this.j.lock(d),this.resizeHandler.classList.add(\"jodit-table-resizer_moved\");let e,i=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)i=this.workTable.parentNode.getBoundingClientRect(),this.minX=i.left,this.maxX=this.minX+i.width;else{const t=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,((i,o,r)=>{t[1]===r&&(e=i.getBoundingClientRect(),this.minX=Math.max(e.left+n.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===r&&(e=i.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-n.NEARBY/2,this.maxX))}))}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire(\"closeAllPopups\");let e=t.clientX;const i=(0,l.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>e&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?i.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:i.left)+\"px\";const o=this.j.s.sel;o&&o.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,\"mousemove.table touchmove.table\",this.onMouseMove),this.resizeHandler.classList.remove(\"jodit-table-resizer_moved\"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const t=this.resizeDelta,e=[],i=this.module;i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);const o=(0,l.call)(this.isRTL?s.J.prev:s.J.next,this.workCell,s.J.isCell,this.workCell.parentNode);i.setColumnWidthByDelta(this.workTable,i.formalCoordinate(this.workTable,o)[1],-t,!1,e)}resizeTable(){const t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,i=(0,l.getContentWidth)(this.workTable.parentNode,this.j.ew),o=!this.wholeTable;if(this.isRTL?!o:o)this.workTable.style.width=(e+t)/i*100+\"%\";else{const o=this.isRTL?\"marginRight\":\"marginLeft\",n=parseInt(this.j.ew.getComputedStyle(this.workTable)[o]||\"0\",10);this.workTable.style.width=(e-t)/i*100+\"%\",this.workTable.style[o]=(n+t)/i*100+\"%\"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=s.J.up(t,(t=>s.J.isTag(t,\"table\")),this.j.editor)}calcHandlePosition(t,e,i=0,o=0){const r=(0,l.offset)(e,this.j,this.j.ed);if(i>n.NEARBY&&r.width-n.NEARBY>i)return void this.hideResizeHandle();const a=(0,l.offset)(this.j.workplace,this.j,this.j.od,!0),c=(0,l.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(i>n.NEARBY?r.left+r.width:r.left)-a.left+o+\"px\",Object.assign(this.resizeHandler.style,{height:c.height+\"px\",top:c.top-a.top+\"px\"}),this.showResizeHandle(),i>n.NEARBY){const t=(0,l.call)(this.isRTL?s.J.prev:s.J.next,e,s.J.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}else{const t=(0,l.call)(this.isRTL?s.J.next:s.J.prev,e,s.J.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,\".resize-cells\").off(\".resize-cells\").on(\"change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells\",(()=>{(0,l.$$)(\"table\",t.editor).forEach(this.observe)})).on(this.j.ow,\"scroll.resize-cells\",(()=>{if(!this.drag)return;const e=s.J.up(this.workCell,(t=>s.J.isTag(t,\"table\")),t.editor);if(e){const t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+\"px\"}})).on(\"beforeSetMode.resize-cells\",(()=>{const e=this.module;e.getAllSelectedCells().forEach((i=>{e.removeSelection(i),e.normalizeTable(s.J.closest(i,\"table\",t.editor))}))}))}observe(t){(0,l.dataBind)(t,d)||((0,l.dataBind)(t,d,!0),this.j.e.on(t,\"mouseleave.resize-cells\",(t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()})).on(t,\"mousemove.resize-cells touchmove.resize-cells\",this.j.async.throttle((e=>{if(this.j.isLocked)return;const i=s.J.up(e.target,s.J.isCell,t);i&&this.calcHandlePosition(t,i,e.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,\".resize-cells\"),t.e.off(\".resize-cells\"))}}(0,o.Cg)([r.autobind],u.prototype,\"onHandleMouseDown\",null),(0,o.Cg)([r.autobind],u.prototype,\"onMouseMove\",null),(0,o.Cg)([r.autobind],u.prototype,\"onMouseUp\",null),(0,o.Cg)([r.autobind],u.prototype,\"observe\",null),a.fg.add(\"resizeCells\",u)},57362:function(t,e,i){\"use strict\";var o=i(36115);o.T.prototype.allowResizeX=!1,o.T.prototype.allowResizeY=!0},76693:function(t,e,i){\"use strict\";var o=i(31635),n=i(22664),r=i(71842),s=i(56298),a=i(71005),l=i(53048);i(57362);let c=class extends a.k{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div(\"jodit-editor__resize\",l.In.get(\"resize_handler\"))}afterInit(t){const{height:e,width:i,allowResizeX:o}=t.o;let{allowResizeY:n}=t.o;\"auto\"===e&&\"auto\"!==i&&(n=!1),\"auto\"===e&&\"auto\"===i||!o&&!n||(t.statusbar.setMod(\"resize-handle\",!0),t.e.on(\"toggleFullSize.resizeHandler\",(()=>{this.handle.style.display=t.isFullSize?\"none\":\"block\"})).on(this.handle,\"mousedown touchstart\",this.onHandleResizeStart).on(t.ow,\"mouseup touchend\",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,\"mousemove touchmove\",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire(\"setHeight\",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire(\"setWidth\",this.start.w+t.clientX-this.start.x),this.j.e.fire(\"resize\"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,\"mousemove touchmove\",this.onHandleResize),this.j.unlock())}beforeDestruct(){r.J.safeRemove(this.handle),this.j.e.off(this.j.ow,\"mouseup touchsend\",this.onHandleResizeEnd)}};c.requires=[\"size\"],c=(0,o.Cg)([n.autobind],c),s.fg.add(\"resizeHandler\",c)},69505:function(t,e,i){\"use strict\";var o=i(36115);o.T.prototype.allowResizeTags=new Set([\"img\",\"iframe\",\"table\",\"jodit\"]),o.T.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set([\"img\"])}},6857:function(t,e,i){\"use strict\";var o=i(31635),n=i(17352),r=i(22664),s=i(55186),a=i(56298),l=i(65147),c=i(29866);i(69505);const d=\"__jodit-resizer_binded\";class u extends c.k{constructor(){super(...arguments),this.LOCK_KEY=\"resizer\",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
100x100\\n\\t\\t\\t
`),this.sizeViewer=this.rect.getElementsByTagName(\"span\")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{this.isResizeMode||this.element===t&&this.isShown||(this.element=t,this.show(),s.J.isTag(this.element,\"img\")&&!this.element.complete&&this.j.e.one(this.element,\"load\",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const t=this.getWorkplacePosition(),e=(0,l.offset)(this.element,this.j,this.j.ed),i=parseInt(this.rect.style.left||\"0\",10),o=parseInt(this.rect.style.top||\"0\",10),n=e.top-t.top,r=e.left-t.left;o===n&&i===r&&this.rect.offsetWidth===this.element.offsetWidth&&this.rect.offsetHeight===this.element.offsetHeight||((0,l.css)(this.rect,{top:n,left:r,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,\"changesize\"),isNaN(i)||this.j.e.fire(\"resize\")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity=\"0\"}}afterInit(t){(0,l.$$)(\"div\",this.rect).forEach((e=>{t.e.on(e,\"mousedown.resizer touchstart.resizer\",this.onStartResizing.bind(this,e))})),a.RR.on(\"hideHelpers\",this.hide),t.e.on(\"readonly\",(t=>{t&&this.hide()})).on(\"afterInit changePlace\",this.addEventListeners.bind(this)).on(\"afterGetValueFromEditor.resizer\",(t=>{const e=/]+data-jodit_iframe_wrapper[^>]+>(.*?