ckeditor5
Version:
A set of ready-to-use rich text editors created with a powerful framework. Made with real-time collaborative editing in mind.
5 lines • 1.51 MB
JavaScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(i){if("default"!==i&&!(i in e)){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}}))})),Object.freeze(e)}let t;try{t={window:window,document:document}}catch(e){t={window:{},document:{}}}var i=t;function n(){try{return navigator.userAgent.toLowerCase()}catch(e){return""}}const s=n(),o={isMac:r(s),isWindows:a(s),isGecko:l(s),isSafari:c(s),isiOS:d(s),isAndroid:u(s),isBlink:h(s),get isMediaForcedColors(){return!!i.window.matchMedia&&i.window.matchMedia("(forced-colors: active)").matches},get isMotionReduced(){return!!i.window.matchMedia&&i.window.matchMedia("(prefers-reduced-motion)").matches},features:{isRegExpUnicodePropertySupported:m()}};function r(e){return e.indexOf("macintosh")>-1}function a(e){return e.indexOf("windows")>-1}function l(e){return!!e.match(/gecko\/\d+/)}function c(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}function d(e){return!!e.match(/iphone|ipad/i)||r(e)&&navigator.maxTouchPoints>0}function u(e){return e.indexOf("android")>-1}function h(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}function m(){let e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}function g(e,t,i,n){i=i||function(e,t){return e===t};const s=Array.isArray(e)?e:Array.prototype.slice.call(e),o=Array.isArray(t)?t:Array.prototype.slice.call(t),r=function(e,t,i){const n=f(e,t,i);if(-1===n)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const s=p(e,n),o=p(t,n),r=f(s,o,i),a=e.length-r,l=t.length-r;return{firstIndex:n,lastIndexOld:a,lastIndexNew:l}}(s,o,i),a=n?function(e,t){const{firstIndex:i,lastIndexOld:n,lastIndexNew:s}=e;if(-1===i)return Array(t).fill("equal");let o=[];i>0&&(o=o.concat(Array(i).fill("equal")));s-i>0&&(o=o.concat(Array(s-i).fill("insert")));n-i>0&&(o=o.concat(Array(n-i).fill("delete")));s<t&&(o=o.concat(Array(t-s).fill("equal")));return o}(r,o.length):function(e,t){const i=[],{firstIndex:n,lastIndexOld:s,lastIndexNew:o}=t;o-n>0&&i.push({index:n,type:"insert",values:e.slice(n,o)});s-n>0&&i.push({index:n+(o-n),type:"delete",howMany:s-n});return i}(o,r);return a}function f(e,t,i){for(let n=0;n<Math.max(e.length,t.length);n++)if(void 0===e[n]||void 0===t[n]||!i(e[n],t[n]))return n;return-1}function p(e,t){return e.slice(t).reverse()}function b(e,t,i){i=i||function(e,t){return e===t};const n=e.length,s=t.length;if(n>200||s>200||n+s>300)return b.fastDiff(e,t,i,!0);let o,r;if(s<n){const i=e;e=t,t=i,o="delete",r="insert"}else o="insert",r="delete";const a=e.length,l=t.length,c=l-a,d={},u={};function h(n){const s=(void 0!==u[n-1]?u[n-1]:-1)+1,c=void 0!==u[n+1]?u[n+1]:-1,h=s>c?-1:1;d[n+h]&&(d[n]=d[n+h].slice(0)),d[n]||(d[n]=[]),d[n].push(s>c?o:r);let m=Math.max(s,c),g=m-n;for(;g<a&&m<l&&i(e[g],t[m]);)g++,m++,d[n].push("equal");return m}let m,g=0;do{for(m=-g;m<c;m++)u[m]=h(m);for(m=c+g;m>c;m--)u[m]=h(m);u[c]=h(c),g++}while(u[c]!==l);return d[c].slice(1)}function w(e,t){const i=[];let n=0,s=null;return e.forEach((e=>{"equal"==e?(o(),n++):"insert"==e?(s&&"insert"==s.type?s.values.push(t[n]):(o(),s={type:"insert",index:n,values:[t[n]]}),n++):s&&"delete"==s.type?s.howMany++:(o(),s={type:"delete",index:n,howMany:1})})),o(),i;function o(){s&&(i.push(s),s=null)}}function _(e,...t){t.forEach((t=>{const i=Object.getOwnPropertyNames(t),n=Object.getOwnPropertySymbols(t);i.concat(n).forEach((i=>{if(i in e.prototype)return;if("function"==typeof t&&("length"==i||"name"==i||"prototype"==i))return;const n=Object.getOwnPropertyDescriptor(t,i);n.enumerable=!1,Object.defineProperty(e.prototype,i,n)}))}))}b.fastDiff=g;class v{source;name;path;stop;off;return;constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}}}const y=new Array(256).fill("").map(((e,t)=>("0"+t.toString(16)).slice(-2)));function k(){const[e,t,i,n]=crypto.getRandomValues(new Uint32Array(4));return"e"+y[255&e]+y[e>>8&255]+y[e>>16&255]+y[e>>24&255]+y[255&t]+y[t>>8&255]+y[t>>16&255]+y[t>>24&255]+y[255&i]+y[i>>8&255]+y[i>>16&255]+y[i>>24&255]+y[255&n]+y[n>>8&255]+y[n>>16&255]+y[n>>24&255]}const C={get(e="normal"){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function x(e,t){const i=C.get(t.priority);let n=0,s=e.length;for(;n<s;){const t=n+s>>1;C.get(e[t].priority)<i?s=t:n=t+1}e.splice(n,0,t)}class A extends Error{context;data;constructor(e,t,i){super(function(e,t){const i=new WeakSet,n=(e,t)=>{if("object"==typeof t&&null!==t){if(i.has(t))return`[object ${t.constructor.name}]`;i.add(t)}return t},s=t?` ${JSON.stringify(t,n)}`:"",o=P(e);return e+s+o}(e,i)),this.name="CKEditorError",this.context=t,this.data=i}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const i=new A(e.message,t);throw i.stack=e.stack,i}}function E(e,t){console.warn(...S(e,t))}function T(e,t){console.error(...S(e,t))}function P(e){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${e}`}function S(e,t){const i=P(e);return t?[e,t,i]:[e,i]}const I="44.3.0",V=new Date(2025,2,5);if(globalThis.CKEDITOR_VERSION)throw new A("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=I;const R=Symbol("listeningTo"),O=Symbol("emitterId"),B=Symbol("delegations"),M=L(Object);function L(e){if(!e)return M;return class extends e{on(e,t,i){this.listenTo(this,e,t,i)}once(e,t,i){let n=!1;this.listenTo(this,e,((e,...i)=>{n||(n=!0,e.off(),t.call(this,e,...i))}),i)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,i,n={}){let s,o;this[R]||(this[R]={});const r=this[R];N(e)||F(e);const a=N(e);(s=r[a])||(s=r[a]={emitter:e,callbacks:{}}),(o=s.callbacks[t])||(o=s.callbacks[t]=[]),o.push(i),function(e,t,i,n,s){t._addEventListener?t._addEventListener(i,n,s):e._addEventListener.call(t,i,n,s)}(this,e,t,i,n)}stopListening(e,t,i){const n=this[R];let s=e&&N(e);const o=n&&s?n[s]:void 0,r=o&&t?o.callbacks[t]:void 0;if(!(!n||e&&!o||t&&!r))if(i){$(this,e,t,i);-1!==r.indexOf(i)&&(1===r.length?delete o.callbacks[t]:$(this,e,t,i))}else if(r){for(;i=r.pop();)$(this,e,t,i);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete n[s]}else{for(s in n)this.stopListening(n[s].emitter);delete this[R]}}fire(e,...t){try{const i=e instanceof v?e:new v(this,e),n=i.name;let s=function(e,t){if(!e._events)return null;let i=t;do{const t=e._events[i];if(t&&t.callbacks&&t.callbacks.length)return t.callbacks;const n=i.lastIndexOf(":");i=n>-1?i.substring(0,n):""}while(i);return null}(this,n);if(i.path.push(this),s){s=s.slice();for(let e=0;e<s.length;e++){const o=s[e].callback;if(o.call(this,i,...t),i.off.called&&(delete i.off.called,this._removeEventListener(n,o)),i.stop.called)break}}const o=this[B];if(o){const e=o.get(n),s=o.get("*");e&&H(e,i,t),s&&H(s,i,t)}return i.return}catch(e){A.rethrowUnexpectedError(e,this)}}delegate(...e){return{to:(t,i)=>{this[B]||(this[B]=new Map),e.forEach((e=>{const n=this[B].get(e);n?n.set(t,i):this[B].set(e,new Map([[t,i]]))}))}}}stopDelegating(e,t){if(this[B])if(e)if(t){const i=this[B].get(e);i&&i.delete(t)}else this[B].delete(e);else this[B].clear()}_addEventListener(e,t,i){!function(e,t){const i=D(e);if(i[t])return;let n=t,s=null;const o=[];for(;""!==n&&!i[n];)i[n]={callbacks:[],childEvents:[]},o.push(i[n]),s&&i[n].childEvents.push(s),s=n,n=n.substr(0,n.lastIndexOf(":"));if(""!==n){for(const e of o)e.callbacks=i[n].callbacks.slice();i[n].childEvents.push(s)}}(this,e);const n=z(this,e),s={callback:t,priority:C.get(i.priority)};for(const e of n)x(e,s)}_removeEventListener(e,t){const i=z(this,e);for(const e of i)for(let i=0;i<e.length;i++)e[i].callback==t&&(e.splice(i,1),i--)}}}function F(e,t){e[O]||(e[O]=t||k())}function N(e){return e[O]}function D(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function z(e,t){const i=D(e)[t];if(!i)return[];let n=[i.callbacks];for(let t=0;t<i.childEvents.length;t++){const s=z(e,i.childEvents[t]);n=n.concat(s)}return n}function H(e,t,i){for(let[n,s]of e){s?"function"==typeof s&&(s=s(t.name)):s=t.name;const e=new v(t.source,s);e.path=[...t.path],n.fire(e,...i)}}function $(e,t,i,n){t._removeEventListener?t._removeEventListener(i,n):e._removeEventListener.call(t,i,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{L[e]=M.prototype[e]}));var U="object"==typeof global&&global&&global.Object===Object&&global,j="object"==typeof self&&self&&self.Object===Object&&self,W=U||j||Function("return this")(),q=W.Symbol,G=Object.prototype,K=G.hasOwnProperty,Z=G.toString,J=q?q.toStringTag:void 0;var Q=Object.prototype.toString;var Y=q?q.toStringTag:void 0;function X(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=K.call(e,J),i=e[J];try{e[J]=void 0;var n=!0}catch(e){}var s=Z.call(e);return n&&(t?e[J]=i:delete e[J]),s}(e):function(e){return Q.call(e)}(e)}function ee(e){return null!=e&&"object"==typeof e}function te(e){return"symbol"==typeof e||ee(e)&&"[object Symbol]"==X(e)}function ie(e,t){for(var i=-1,n=null==e?0:e.length,s=Array(n);++i<n;)s[i]=t(e[i],i,e);return s}var ne=Array.isArray,se=q?q.prototype:void 0,oe=se?se.toString:void 0;function re(e){if("string"==typeof e)return e;if(ne(e))return ie(e,re)+"";if(te(e))return oe?oe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var ae=/\s/;var le=/^\s+/;function ce(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}(e)+1).replace(le,""):e}function de(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var ue=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^0o[0-7]+$/i,ge=parseInt;function fe(e){if("number"==typeof e)return e;if(te(e))return NaN;if(de(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=de(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ce(e);var i=he.test(e);return i||me.test(e)?ge(e.slice(2),i?2:8):ue.test(e)?NaN:+e}function pe(e){return e}function be(e){if(!de(e))return!1;var t=X(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var we=W["__core-js_shared__"],_e=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ve=Function.prototype.toString;function ye(e){if(null!=e){try{return ve.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ke=/^\[object .+?Constructor\]$/,Ce=Function.prototype,xe=Object.prototype,Ae=Ce.toString,Ee=xe.hasOwnProperty,Te=RegExp("^"+Ae.call(Ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pe(e){return!(!de(e)||(t=e,_e&&_e in t))&&(be(e)?Te:ke).test(ye(e));var t}function Se(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(i)?i:void 0}var Ie=Se(W,"WeakMap"),Ve=Object.create,Re=function(){function e(){}return function(t){if(!de(t))return{};if(Ve)return Ve(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();function Oe(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}var Be=Date.now;var Me=function(){try{var e=Se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Le=function(e){var t=0,i=0;return function(){var n=Be(),s=16-(n-i);if(i=n,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Me?function(e,t){return Me(e,"toString",{configurable:!0,enumerable:!1,value:(i=t,function(){return i}),writable:!0});var i}:pe);var Fe=/^(?:0|[1-9]\d*)$/;function Ne(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&Fe.test(e))&&e>-1&&e%1==0&&e<t}function De(e,t,i){"__proto__"==t&&Me?Me(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function ze(e,t){return e===t||e!=e&&t!=t}var He=Object.prototype.hasOwnProperty;function $e(e,t,i){var n=e[t];He.call(e,t)&&ze(n,i)&&(void 0!==i||t in e)||De(e,t,i)}function Ue(e,t,i,n){var s=!i;i||(i={});for(var o=-1,r=t.length;++o<r;){var a=t[o],l=void 0;void 0===l&&(l=e[a]),s?De(i,a,l):$e(i,a,l)}return i}var je=Math.max;function We(e,t){return Le(function(e,t,i){return t=je(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,o=je(n.length-t,0),r=Array(o);++s<o;)r[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=i(r),function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}(e,this,a)}}(e,t,pe),e+"")}function qe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ge(e){return null!=e&&qe(e.length)&&!be(e)}function Ke(e){return We((function(t,i){var n=-1,s=i.length,o=s>1?i[s-1]:void 0,r=s>2?i[2]:void 0;for(o=e.length>3&&"function"==typeof o?(s--,o):void 0,r&&function(e,t,i){if(!de(i))return!1;var n=typeof t;return!!("number"==n?Ge(i)&&Ne(t,i.length):"string"==n&&t in i)&&ze(i[t],e)}(i[0],i[1],r)&&(o=s<3?void 0:o,s=1),t=Object(t);++n<s;){var a=i[n];a&&e(t,a,n,o)}return t}))}var Ze=Object.prototype;function Je(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ze)}function Qe(e){return ee(e)&&"[object Arguments]"==X(e)}var Ye=Object.prototype,Xe=Ye.hasOwnProperty,et=Ye.propertyIsEnumerable,tt=Qe(function(){return arguments}())?Qe:function(e){return ee(e)&&Xe.call(e,"callee")&&!et.call(e,"callee")};var it="object"==typeof exports&&exports&&!exports.nodeType&&exports,nt=it&&"object"==typeof module&&module&&!module.nodeType&&module,st=nt&&nt.exports===it?W.Buffer:void 0,ot=(st?st.isBuffer:void 0)||function(){return!1},rt={};function at(e){return function(t){return e(t)}}rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ct=lt&&"object"==typeof module&&module&&!module.nodeType&&module,dt=ct&&ct.exports===lt&&U.process,ut=function(){try{var e=ct&&ct.require&&ct.require("util").types;return e||dt&&dt.binding&&dt.binding("util")}catch(e){}}(),ht=ut&&ut.isTypedArray,mt=ht?at(ht):function(e){return ee(e)&&qe(e.length)&&!!rt[X(e)]},gt=Object.prototype.hasOwnProperty;function ft(e,t){var i=ne(e),n=!i&&tt(e),s=!i&&!n&&ot(e),o=!i&&!n&&!s&&mt(e),r=i||n||s||o,a=r?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],l=a.length;for(var c in e)!t&&!gt.call(e,c)||r&&("length"==c||s&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ne(c,l))||a.push(c);return a}function pt(e,t){return function(i){return e(t(i))}}var bt=pt(Object.keys,Object),wt=Object.prototype.hasOwnProperty;function _t(e){return Ge(e)?ft(e):function(e){if(!Je(e))return bt(e);var t=[];for(var i in Object(e))wt.call(e,i)&&"constructor"!=i&&t.push(i);return t}(e)}var vt=Object.prototype.hasOwnProperty;function yt(e){if(!de(e))return function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}(e);var t=Je(e),i=[];for(var n in e)("constructor"!=n||!t&&vt.call(e,n))&&i.push(n);return i}function kt(e){return Ge(e)?ft(e,!0):yt(e)}var Ct=Ke((function(e,t){Ue(t,kt(t),e)})),xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,At=/^\w*$/;function Et(e,t){if(ne(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!te(e))||(At.test(e)||!xt.test(e)||null!=t&&e in Object(t))}var Tt=Se(Object,"create");var Pt=Object.prototype.hasOwnProperty;var St=Object.prototype.hasOwnProperty;function It(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Vt(e,t){for(var i=e.length;i--;)if(ze(e[i][0],t))return i;return-1}It.prototype.clear=function(){this.__data__=Tt?Tt(null):{},this.size=0},It.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},It.prototype.get=function(e){var t=this.__data__;if(Tt){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return Pt.call(t,e)?t[e]:void 0},It.prototype.has=function(e){var t=this.__data__;return Tt?void 0!==t[e]:St.call(t,e)},It.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Tt&&void 0===t?"__lodash_hash_undefined__":t,this};var Rt=Array.prototype.splice;function Ot(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Ot.prototype.clear=function(){this.__data__=[],this.size=0},Ot.prototype.delete=function(e){var t=this.__data__,i=Vt(t,e);return!(i<0)&&(i==t.length-1?t.pop():Rt.call(t,i,1),--this.size,!0)},Ot.prototype.get=function(e){var t=this.__data__,i=Vt(t,e);return i<0?void 0:t[i][1]},Ot.prototype.has=function(e){return Vt(this.__data__,e)>-1},Ot.prototype.set=function(e,t){var i=this.__data__,n=Vt(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};var Bt=Se(W,"Map");function Mt(e,t){var i,n,s=e.__data__;return("string"==(n=typeof(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?s["string"==typeof t?"string":"hash"]:s.map}function Lt(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new It,map:new(Bt||Ot),string:new It}},Lt.prototype.delete=function(e){var t=Mt(this,e).delete(e);return this.size-=t?1:0,t},Lt.prototype.get=function(e){return Mt(this,e).get(e)},Lt.prototype.has=function(e){return Mt(this,e).has(e)},Lt.prototype.set=function(e,t){var i=Mt(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function Ft(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,s=t?t.apply(this,n):n[0],o=i.cache;if(o.has(s))return o.get(s);var r=e.apply(this,n);return i.cache=o.set(s,r)||o,r};return i.cache=new(Ft.Cache||Lt),i}Ft.Cache=Lt;var Nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Dt=/\\(\\)?/g,zt=function(e){var t=Ft(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Nt,(function(e,i,n,s){t.push(n?s.replace(Dt,"$1"):i||e)})),t}));function Ht(e){return null==e?"":re(e)}function $t(e,t){return ne(e)?e:Et(e,t)?[e]:zt(Ht(e))}function Ut(e){if("string"==typeof e||te(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function jt(e,t){for(var i=0,n=(t=$t(t,e)).length;null!=e&&i<n;)e=e[Ut(t[i++])];return i&&i==n?e:void 0}function Wt(e,t,i){var n=null==e?void 0:jt(e,t);return void 0===n?i:n}function qt(e,t){for(var i=-1,n=t.length,s=e.length;++i<n;)e[s+i]=t[i];return e}var Gt=pt(Object.getPrototypeOf,Object),Kt=Function.prototype,Zt=Object.prototype,Jt=Kt.toString,Qt=Zt.hasOwnProperty,Yt=Jt.call(Object);function Xt(e){if(!ee(e)||"[object Object]"!=X(e))return!1;var t=Gt(e);if(null===t)return!0;var i=Qt.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Jt.call(i)==Yt}function ei(e,t,i){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(s);++n<s;)o[n]=e[n+t];return o}var ti=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function ii(e){return ti.test(e)}var ni="\\ud800-\\udfff",si="["+ni+"]",oi="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ri="\\ud83c[\\udffb-\\udfff]",ai="[^"+ni+"]",li="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",di="(?:"+oi+"|"+ri+")"+"?",ui="[\\ufe0e\\ufe0f]?",hi=ui+di+("(?:\\u200d(?:"+[ai,li,ci].join("|")+")"+ui+di+")*"),mi="(?:"+[ai+oi+"?",oi,li,ci,si].join("|")+")",gi=RegExp(ri+"(?="+ri+")|"+mi+hi,"g");function fi(e){return ii(e)?function(e){return e.match(gi)||[]}(e):function(e){return e.split("")}(e)}var pi,bi=(pi="toUpperCase",function(e){var t,i,n,s,o=ii(e=Ht(e))?fi(e):void 0,r=o?o[0]:e.charAt(0),a=o?(t=o,i=1,s=t.length,ei(t,i,n=void 0===n?s:n)).join(""):e.slice(1);return r[pi]()+a});function wi(e){return function(t){return null==e?void 0:e[t]}}var _i=wi({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),vi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yi=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var ki=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Ci=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var xi="\\ud800-\\udfff",Ai="\\u2700-\\u27bf",Ei="a-z\\xdf-\\xf6\\xf8-\\xff",Ti="A-Z\\xc0-\\xd6\\xd8-\\xde",Pi="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Si="["+Pi+"]",Ii="\\d+",Vi="["+Ai+"]",Ri="["+Ei+"]",Oi="[^"+xi+Pi+Ii+Ai+Ei+Ti+"]",Bi="(?:\\ud83c[\\udde6-\\uddff]){2}",Mi="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="["+Ti+"]",Fi="(?:"+Ri+"|"+Oi+")",Ni="(?:"+Li+"|"+Oi+")",Di="(?:['’](?:d|ll|m|re|s|t|ve))?",zi="(?:['’](?:D|LL|M|RE|S|T|VE))?",Hi="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",$i="[\\ufe0e\\ufe0f]?",Ui=$i+Hi+("(?:\\u200d(?:"+["[^"+xi+"]",Bi,Mi].join("|")+")"+$i+Hi+")*"),ji="(?:"+[Vi,Bi,Mi].join("|")+")"+Ui,Wi=RegExp([Li+"?"+Ri+"+"+Di+"(?="+[Si,Li,"$"].join("|")+")",Ni+"+"+zi+"(?="+[Si,Li+Fi,"$"].join("|")+")",Li+"?"+Fi+"+"+Di,Li+"+"+zi,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ii,ji].join("|"),"g");function qi(e,t,i){return e=Ht(e),void 0===t?function(e){return Ci.test(e)}(e)?function(e){return e.match(Wi)||[]}(e):function(e){return e.match(ki)||[]}(e):e.match(t)||[]}var Gi=RegExp("['’]","g");function Ki(e){var t=this.__data__=new Ot(e);this.size=t.size}Ki.prototype.clear=function(){this.__data__=new Ot,this.size=0},Ki.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Ki.prototype.get=function(e){return this.__data__.get(e)},Ki.prototype.has=function(e){return this.__data__.has(e)},Ki.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Ot){var n=i.__data__;if(!Bt||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new Lt(n)}return i.set(e,t),this.size=i.size,this};var Zi="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ji=Zi&&"object"==typeof module&&module&&!module.nodeType&&module,Qi=Ji&&Ji.exports===Zi?W.Buffer:void 0,Yi=Qi?Qi.allocUnsafe:void 0;function Xi(e,t){if(t)return e.slice();var i=e.length,n=Yi?Yi(i):new e.constructor(i);return e.copy(n),n}function en(){return[]}var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols,sn=nn?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,s=0,o=[];++i<n;){var r=e[i];t(r,i,e)&&(o[s++]=r)}return o}(nn(e),(function(t){return tn.call(e,t)})))}:en;var on=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)qt(t,sn(e)),e=Gt(e);return t}:en;function rn(e,t,i){var n=t(e);return ne(e)?n:qt(n,i(e))}function an(e){return rn(e,_t,sn)}function ln(e){return rn(e,kt,on)}var cn=Se(W,"DataView"),dn=Se(W,"Promise"),un=Se(W,"Set"),hn="[object Map]",mn="[object Promise]",gn="[object Set]",fn="[object WeakMap]",pn="[object DataView]",bn=ye(cn),wn=ye(Bt),_n=ye(dn),vn=ye(un),yn=ye(Ie),kn=X;(cn&&kn(new cn(new ArrayBuffer(1)))!=pn||Bt&&kn(new Bt)!=hn||dn&&kn(dn.resolve())!=mn||un&&kn(new un)!=gn||Ie&&kn(new Ie)!=fn)&&(kn=function(e){var t=X(e),i="[object Object]"==t?e.constructor:void 0,n=i?ye(i):"";if(n)switch(n){case bn:return pn;case wn:return hn;case _n:return mn;case vn:return gn;case yn:return fn}return t});var Cn=Object.prototype.hasOwnProperty;var xn=W.Uint8Array;function An(e){var t=new e.constructor(e.byteLength);return new xn(t).set(new xn(e)),t}var En=/\w*$/;var Tn=q?q.prototype:void 0,Pn=Tn?Tn.valueOf:void 0;function Sn(e,t){var i=t?An(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function In(e,t,i){var n,s,o,r=e.constructor;switch(t){case"[object ArrayBuffer]":return An(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var i=t?An(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Sn(e,i);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return(o=new(s=e).constructor(s.source,En.exec(s))).lastIndex=s.lastIndex,o;case"[object Symbol]":return n=e,Pn?Object(Pn.call(n)):{}}}function Vn(e){return"function"!=typeof e.constructor||Je(e)?{}:Re(Gt(e))}var Rn=ut&&ut.isMap,On=Rn?at(Rn):function(e){return ee(e)&&"[object Map]"==kn(e)};var Bn=ut&&ut.isSet,Mn=Bn?at(Bn):function(e){return ee(e)&&"[object Set]"==kn(e)},Ln="[object Arguments]",Fn="[object Function]",Nn="[object Object]",Dn={};function zn(e,t,i,n,s,o){var r,a=1&t,l=2&t,c=4&t;if(i&&(r=s?i(e,n,s,o):i(e)),void 0!==r)return r;if(!de(e))return e;var d=ne(e);if(d){if(r=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&Cn.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!a)return Oe(e,r)}else{var u=kn(e),h=u==Fn||"[object GeneratorFunction]"==u;if(ot(e))return Xi(e,a);if(u==Nn||u==Ln||h&&!s){if(r=l||h?{}:Vn(e),!a)return l?function(e,t){return Ue(e,on(e),t)}(e,function(e,t){return e&&Ue(t,kt(t),e)}(r,e)):function(e,t){return Ue(e,sn(e),t)}(e,function(e,t){return e&&Ue(t,_t(t),e)}(r,e))}else{if(!Dn[u])return s?e:{};r=In(e,u,a)}}o||(o=new Ki);var m=o.get(e);if(m)return m;o.set(e,r),Mn(e)?e.forEach((function(n){r.add(zn(n,t,i,n,e,o))})):On(e)&&e.forEach((function(n,s){r.set(s,zn(n,t,i,s,e,o))}));var g=d?void 0:(c?l?ln:an:l?kt:_t)(e);return function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););}(g||e,(function(n,s){g&&(n=e[s=n]),$e(r,s,zn(n,t,i,s,e,o))})),r}Dn[Ln]=Dn["[object Array]"]=Dn["[object ArrayBuffer]"]=Dn["[object DataView]"]=Dn["[object Boolean]"]=Dn["[object Date]"]=Dn["[object Float32Array]"]=Dn["[object Float64Array]"]=Dn["[object Int8Array]"]=Dn["[object Int16Array]"]=Dn["[object Int32Array]"]=Dn["[object Map]"]=Dn["[object Number]"]=Dn[Nn]=Dn["[object RegExp]"]=Dn["[object Set]"]=Dn["[object String]"]=Dn["[object Symbol]"]=Dn["[object Uint8Array]"]=Dn["[object Uint8ClampedArray]"]=Dn["[object Uint16Array]"]=Dn["[object Uint32Array]"]=!0,Dn["[object Error]"]=Dn[Fn]=Dn["[object WeakMap]"]=!1;function Hn(e){return zn(e,4)}function $n(e){return zn(e,5)}function Un(e,t){return zn(e,5,t="function"==typeof t?t:void 0)}function jn(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Lt;++t<i;)this.add(e[t])}function Wn(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}function qn(e,t){return e.has(t)}jn.prototype.add=jn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jn.prototype.has=function(e){return this.__data__.has(e)};function Gn(e,t,i,n,s,o){var r=1&i,a=e.length,l=t.length;if(a!=l&&!(r&&l>a))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var u=-1,h=!0,m=2&i?new jn:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var g=e[u],f=t[u];if(n)var p=r?n(f,g,u,t,e,o):n(g,f,u,e,t,o);if(void 0!==p){if(p)continue;h=!1;break}if(m){if(!Wn(t,(function(e,t){if(!qn(m,t)&&(g===e||s(g,e,i,n,o)))return m.push(t)}))){h=!1;break}}else if(g!==f&&!s(g,f,i,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Kn(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function Zn(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var Jn=q?q.prototype:void 0,Qn=Jn?Jn.valueOf:void 0;var Yn=Object.prototype.hasOwnProperty;var Xn="[object Arguments]",es="[object Array]",ts="[object Object]",is=Object.prototype.hasOwnProperty;function ns(e,t,i,n,s,o){var r=ne(e),a=ne(t),l=r?es:kn(e),c=a?es:kn(t),d=(l=l==Xn?ts:l)==ts,u=(c=c==Xn?ts:c)==ts,h=l==c;if(h&&ot(e)){if(!ot(t))return!1;r=!0,d=!1}if(h&&!d)return o||(o=new Ki),r||mt(e)?Gn(e,t,i,n,s,o):function(e,t,i,n,s,o,r){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new xn(e),new xn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ze(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=Kn;case"[object Set]":var l=1&n;if(a||(a=Zn),e.size!=t.size&&!l)return!1;var c=r.get(e);if(c)return c==t;n|=2,r.set(e,t);var d=Gn(a(e),a(t),n,s,o,r);return r.delete(e),d;case"[object Symbol]":if(Qn)return Qn.call(e)==Qn.call(t)}return!1}(e,t,l,i,n,s,o);if(!(1&i)){var m=d&&is.call(e,"__wrapped__"),g=u&&is.call(t,"__wrapped__");if(m||g){var f=m?e.value():e,p=g?t.value():t;return o||(o=new Ki),s(f,p,i,n,o)}}return!!h&&(o||(o=new Ki),function(e,t,i,n,s,o){var r=1&i,a=an(e),l=a.length;if(l!=an(t).length&&!r)return!1;for(var c=l;c--;){var d=a[c];if(!(r?d in t:Yn.call(t,d)))return!1}var u=o.get(e),h=o.get(t);if(u&&h)return u==t&&h==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=r;++c<l;){var f=e[d=a[c]],p=t[d];if(n)var b=r?n(p,f,d,t,e,o):n(f,p,d,e,t,o);if(!(void 0===b?f===p||s(f,p,i,n,o):b)){m=!1;break}g||(g="constructor"==d)}if(m&&!g){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,i,n,s,o))}function ss(e,t,i,n,s){return e===t||(null==e||null==t||!ee(e)&&!ee(t)?e!=e&&t!=t:ns(e,t,i,n,ss,s))}function os(e){return e==e&&!de(e)}function rs(e,t){return function(i){return null!=i&&(i[e]===t&&(void 0!==t||e in Object(i)))}}function as(e){var t=function(e){for(var t=_t(e),i=t.length;i--;){var n=t[i],s=e[n];t[i]=[n,s,os(s)]}return t}(e);return 1==t.length&&t[0][2]?rs(t[0][0],t[0][1]):function(i){return i===e||function(e,t,i,n){var s=i.length,o=s;if(null==e)return!o;for(e=Object(e);s--;){var r=i[s];if(r[2]?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++s<o;){var a=(r=i[s])[0],l=e[a],c=r[1];if(r[2]){if(void 0===l&&!(a in e))return!1}else if(!ss(c,l,3,n,new Ki))return!1}return!0}(i,0,t)}}function ls(e,t){return null!=e&&t in Object(e)}function cs(e,t){return null!=e&&function(e,t,i){for(var n=-1,s=(t=$t(t,e)).length,o=!1;++n<s;){var r=Ut(t[n]);if(!(o=null!=e&&i(e,r)))break;e=e[r]}return o||++n!=s?o:!!(s=null==e?0:e.length)&&qe(s)&&Ne(r,s)&&(ne(e)||tt(e))}(e,t,ls)}function ds(e){return Et(e)?(t=Ut(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return jt(t,e)}}(e);var t}function us(e){return"function"==typeof e?e:null==e?pe:"object"==typeof e?ne(e)?(t=e[0],i=e[1],Et(t)&&os(i)?rs(Ut(t),i):function(e){var n=Wt(e,t);return void 0===n&&n===i?cs(e,t):ss(i,n,3)}):as(e):ds(e);var t,i}function hs(e,t,i,n){for(var s=-1,o=null==e?0:e.length;++s<o;){var r=e[s];t(n,r,i(r),e)}return n}var ms=function(e,t,i){for(var n=-1,s=Object(e),o=i(e),r=o.length;r--;){var a=o[++n];if(!1===t(s[a],a,s))break}return e};function gs(e,t){return e&&ms(e,t,_t)}var fs,ps=(fs=gs,function(e,t){if(null==e)return e;if(!Ge(e))return fs(e,t);for(var i=e.length,n=-1,s=Object(e);++n<i&&!1!==t(s[n],n,s););return e});function bs(e,t,i,n){return ps(e,(function(e,s,o){t(n,e,i(e),o)})),n}var ws=function(){return W.Date.now()},_s=Math.max,vs=Math.min;function ys(e,t,i){var n,s,o,r,a,l,c=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var i=n,o=s;return n=s=void 0,c=t,r=e.apply(o,i)}function g(e){var i=e-l;return void 0===l||i>=t||i<0||u&&e-c>=o}function f(){var e=ws();if(g(e))return p(e);a=setTimeout(f,function(e){var i=t-(e-l);return u?vs(i,o-(e-c)):i}(e))}function p(e){return a=void 0,h&&n?m(e):(n=s=void 0,r)}function b(){var e=ws(),i=g(e);if(n=arguments,s=this,l=e,i){if(void 0===a)return function(e){return c=e,a=setTimeout(f,t),d?m(e):r}(l);if(u)return clearTimeout(a),a=setTimeout(f,t),m(l)}return void 0===a&&(a=setTimeout(f,t)),r}return t=fe(t)||0,de(i)&&(d=!!i.leading,o=(u="maxWait"in i)?_s(fe(i.maxWait)||0,t):o,h="trailing"in i?!!i.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=s=a=void 0},b.flush=function(){return void 0===a?r:p(ws())},b}function ks(e,t,i){(void 0!==i&&!ze(e[t],i)||void 0===i&&!(t in e))&&De(e,t,i)}function Cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function xs(e,t,i,n,s,o,r){var a=Cs(e,i),l=Cs(t,i),c=r.get(l);if(c)ks(e,i,c);else{var d,u=o?o(a,l,i+"",e,t,r):void 0,h=void 0===u;if(h){var m=ne(l),g=!m&&ot(l),f=!m&&!g&&mt(l);u=l,m||g||f?ne(a)?u=a:ee(d=a)&&Ge(d)?u=Oe(a):g?(h=!1,u=Xi(l,!0)):f?(h=!1,u=Sn(l,!0)):u=[]:Xt(l)||tt(l)?(u=a,tt(a)?u=function(e){return Ue(e,kt(e))}(a):de(a)&&!be(a)||(u=Vn(l))):h=!1}h&&(r.set(l,u),s(u,l,n,o,r),r.delete(l)),ks(e,i,u)}}function As(e,t,i,n,s){e!==t&&ms(t,(function(o,r){if(s||(s=new Ki),de(o))xs(e,t,r,i,As,n,s);else{var a=n?n(Cs(e,r),o,r+"",e,t,s):void 0;void 0===a&&(a=o),ks(e,r,a)}}),kt)}var Es=Ke((function(e,t,i,n){As(e,t,i,n)}));var Ts=wi({"&":"&","<":"<",">":">",'"':""","'":"'"}),Ps=/[&<>"']/g,Ss=RegExp(Ps.source);function Is(e){return(e=Ht(e))&&Ss.test(e)?e.replace(Ps,Ts):e}var Vs=/[\\^$.*+?()[\]{}|]/g,Rs=RegExp(Vs.source);function Os(e){return(e=Ht(e))&&Rs.test(e)?e.replace(Vs,"\\$&"):e}function Bs(e,t){var i=-1,n=Ge(e)?Array(e.length):[];return ps(e,(function(e,s,o){n[++i]=t(e,s,o)})),n}var Ms,Ls,Fs=Object.prototype.hasOwnProperty,Ns=(Ms=function(e,t,i){Fs.call(e,i)?e[i].push(t):De(e,i,[t])},function(e,t){var i=ne(e)?hs:bs,n=Ls?Ls():{};return i(e,Ms,us(t),n)});function Ds(e){return"string"==typeof e||!ne(e)&&ee(e)&&"[object String]"==X(e)}function zs(e){return ee(e)&&1===e.nodeType&&!Xt(e)}function Hs(e,t){return ss(e,t)}var $s=Ke((function(e,t,i){As(e,t,i)}));function Us(e,t){return null==(e=function(e,t){return t.length<2?e:jt(e,ei(t,0,-1))}(e,t=$t(t,e)))||delete e[Ut((i=t,n=null==i?0:i.length,n?i[n-1]:void 0))];var i,n}function js(e,t,i){return null==e?e:function(e,t,i){if(!de(e))return e;for(var n=-1,s=(t=$t(t,e)).length,o=s-1,r=e;null!=r&&++n<s;){var a=Ut(t[n]),l=i;if("__proto__"===a||"constructor"===a||"prototype"===a)return e;if(n!=o){var c=r[a];void 0===(l=void 0)&&(l=de(c)?c:Ne(t[n+1])?[]:{})}$e(r,a,l),r=r[a]}return e}(e,t,i)}var Ws,qs=(Ws=function(e,t,i){return e+(i?" ":"")+bi(t)},function(e){return function(e,t,i){for(var n=-1,s=null==e?0:e.length;++n<s;)i=t(i,e[n],n,e);return i}(qi(function(e){return(e=Ht(e))&&e.replace(vi,_i).replace(yi,"")}(e).replace(Gi,"")),Ws,"")});function Gs(e,t,i){var n=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return de(i)&&(n="leading"in i?!!i.leading:n,s="trailing"in i?!!i.trailing:s),ys(e,t,{leading:n,maxWait:t,trailing:s})}function Ks(e,t){return null==e||Us(e,t)}const Zs=Symbol("observableProperties"),Js=Symbol("boundObservables"),Qs=Symbol("boundProperties"),Ys=Symbol("decoratedMethods"),Xs=Symbol("decoratedOriginal"),eo=to(L());function to(e){if(!e)return eo;return class extends e{set(e,t){if(de(e))return void Object.keys(e).forEach((t=>{this.set(t,e[t])}),this);io(this);const i=this[Zs];if(e in this&&!i.has(e))throw new A("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>i.get(e),set(t){const n=i.get(e);let s=this.fire(`set:${e}`,e,t,n);void 0===s&&(s=t),n===s&&i.has(e)||(i.set(e,s),this.fire(`change:${e}`,e,s,n))}}),this[e]=t}bind(...e){if(!e.length||!oo(e))throw new A("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new A("observable-bind-duplicate-properties",this);io(this);const t=this[Qs];e.forEach((e=>{if(t.has(e))throw new A("observable-bind-rebind",this)}));const i=new Map;return e.forEach((e=>{const n={property:e,to:[]};t.set(e,n),i.set(e,n)})),{to:no,toMany:so,_observable:this,_bindProperties:e,_to:[],_bindings:i}}unbind(...e){if(!this[Zs])return;const t=this[Qs],i=this[Js];if(e.length){if(!oo(e))throw new A("observable-unbind-wrong-properties",this);e.forEach((e=>{const n=t.get(e);n&&(n.to.forEach((([e,t])=>{const s=i.get(e),o=s[t];o.delete(n),o.size||delete s[t],Object.keys(s).length||(i.delete(e),this.stopListening(e,"change"))})),t.delete(e))}))}else i.forEach(((e,t)=>{this.stopListening(t,"change")})),i.clear(),t.clear()}decorate(e){io(this);const t=this[e];if(!t)throw new A("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,((e,i)=>{e.return=t.apply(this,i)})),this[e]=function(...t){return this.fire(e,t)},this[e][Xs]=t,this[Ys]||(this[Ys]=[]),this[Ys].push(e)}stopListening(e,t,i){if(!e&&this[Ys]){for(const e of this[Ys])this[e]=this[e][Xs];delete this[Ys]}super.stopListening(e,t,i)}[Zs];[Ys];[Qs];[Js]}}function io(e){e[Zs]||(Object.defineProperty(e,Zs,{value:new Map}),Object.defineProperty(e,Js,{value:new Map}),Object.defineProperty(e,Qs,{value:new Map}))}function no(...e){const t=function(...e){if(!e.length)throw new A("observable-bind-to-parse-error",null);const t={to:[]};let i;"function"==typeof e[e.length-1]&&(t.callback=e.pop());return e.forEach((e=>{if("string"==typeof e)i.properties.push(e);else{if("object"!=typeof e)throw new A("observable-bind-to-parse-error",null);i={observable:e,properties:[]},t.to.push(i)}})),t}(...e),i=Array.from(this._bindings.keys()),n=i.length;if(!t.callback&&t.to.length>1)throw new A("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new A("observable-bind-to-extra-callback",this);var s;t.to.forEach((e=>{if(e.properties.length&&e.properties.length!==n)throw new A("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)})),this._to=t.to,t.callback&&(this._bindings.get(i[0]).callback=t.callback),s=this._observable,this._to.forEach((e=>{const t=s[Js];let i;t.get(e.observable)||s.listenTo(e.observable,"change",((n,o)=>{i=t.get(e.observable)[o],i&&i.forEach((e=>{ro(s,e.property)}))}))})),function(e){let t;e._bindings.forEach(((i,n)=>{e._to.forEach((s=>{t=s.properties[i.callback?0:e._bindProperties.indexOf(n)],i.to.push([s.observable,t]),function(e,t,i,n){const s=e[Js],o=s.get(i),r=o||{};r[n]||(r[n]=new Set);r[n].add(t),o||s.set(i,r)}(e._observable,i,s.observable,t)}))}))}(this),this._bindProperties.forEach((e=>{ro(this._observable,e)}))}function so(e,t,i){if(this._bindings.size>1)throw new A("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const i=e.map((e=>[e,t]));return Array.prototype.concat.apply([],i)}(e,t),i)}function oo(e){return e.every((e=>"string"==typeof e))}function ro(e,t){const i=e[Qs].get(t);let n;i.callback?n=i.callback.apply(e,i.to.map((e=>e[0][e[1]]))):(n=i.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{to[e]=eo.prototype[e]}));class ao{_replacedElements;constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach((({element:e,newElement:t})=>{e.style.display="",t&&t.remove()})),this._replacedElements=[]}}function lo(e){let t=new AbortController;function i(...i){return t.abort(),t=new AbortController,e(t.signal,...i)}return i.abort=()=>t.abort(),i}function co(e){let t=0;for(const i of e)t++;return t}function uo(e,t){const i=Math.min(e.length,t.length);for(let n=0;n<i;n++)if(e[n]!=t[n])return n;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function ho(e){return!(!e||!e[Symbol.iterator])}function mo(e,t,i={},n=[]){const s=i&&i.xmlns,o=s?e.createElementNS(s,t):e.createElement(t);for(const e in i)o.setAttribute(e,i[e]);!Ds(n)&&ho(n)||(n=[n]);for(let t of n)Ds(t)&&(t=e.createTextNode(t)),o.appendChild(t);return o}class go{_config;constructor(e,t){this._config=Object.create(null),t&&this.define(fo(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,i,n=!1){if(Xt(t))return void this._setObjectToTarget(e,t,n);const s=t.split(".");t=s.pop();for(const t of s)Xt(e[t])||(e[t]=Object.create(null)),e=e[t];if(Xt(i))return Xt(e[t])||(e[t]=Object.create(null)),e=e[t],void this._setObjectToTarget(e,i,n);n&&void 0!==e[t]||(e[t]=i)}_getFromSource(e,t){const i=t.split(".");t=i.pop();for(const t of i){if(!Xt(e[t])){e=null;break}e=e[t]}return e?fo(e[t]):void 0}_setObjectToTarget(e,t,i){Object.keys(t).forEach((n=>{this._setToTarget(e,n,t[n],i)}))}}function fo(e){return Un(e,po)}function po(e){return zs(e)||"function"==typeof e?e:void 0}function bo(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function wo(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}const _o=vo(L());function vo(e){if(!e)return _o;return class extends e{listenTo(e,t,i,n={}){if(bo(e)||wo(e)){const s={capture:!!n.useCapture,passive:!!n.usePassive},o=this._getProxyEmitter(e,s)||new yo(e,s);this.listenTo(o,t,i,n)}else super.listenTo(e,t,i,n)}stopListening(e,t,i){if(bo(e)||wo(e)){const n=this._getAllProxyEmitters(e);for(const e of n)this.stopListening(e,t,i)}else super.stopListening(e,t,i)}_getProxyEmitter(e,t){return function(e,t){const i=e[R];return i&&i[t]?i[t].emitter:null}(this,ko(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((t=>this._getProxyEmitter(e,t))).filter((e=>!!e))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((e=>{vo[e]=_o.prototype[e]}));class yo extends(L()){_domNode;_options;constructor(e,t){super(),F(this,ko(e,t)),this._domNode=e,this._options=t}_domListeners;attach(e){if(this._domListeners&&this._domListeners[e])return;const t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,i){this.attach(e),L().prototype._addEventListener.call(this,e,t,i)}_removeEventListener(e,t){L().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){const t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function ko(e,t){let i=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=k())}(e);for(const e of Object.keys(t).sort())t[e]&&(i+="-"+e);return i}function Co(e){let t=e.parentElement;if(!t)return null;for(;"BODY"!=t.tagName;){const e=t.style.overflowY||i.window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)break;if(t=t.parentElement,!t)return null}return t}function xo(e){const t=[];let i=e;for(;i&&i.nodeType!=Node.DOCUMENT_NODE;)t.unshift(i),i=i.parentNode;return t}function Ao(e){return e instanceof HTMLTextAreaElement?e.value:e.innerHTML}function Eo(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function To(e){if(!e.target)return null;const t=e.target.ownerDocument,i=e.clientX,n=e.clientY;let s=null;return t.caretRangeFromPoint&&t.caretRangeFromPoint(i,n)?s=t.caretRangeFromPoint(i,n):e.rangeParent&&(s=t.createRange(),s.setStart(e.rangeParent,e.rangeOffset),s.collapse(!0)),s}function Po(e){return"[object Text]"==Object.prototype.toString.call(e)}function So(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Io(e){return e&&e.parentNode?e.offsetParent===i.document.body?null:e.offsetParent:null}const Vo=["top","right","bottom","left","width","height"];class Ro{top;right;bottom;left;width;height;_source;constructor(e){const t=So(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Mo(e)||t)if(t){const t=Ro.getDomRangeRects(e);Oo(this,Ro.getBoundingRect(t))}else Oo(this,e.getBoundingClientRect());else if(wo(e)){const{innerWidth:t,innerHeight:i}=e;Oo(this,{top:0,right:t,bottom:i,left:0,width:t,height:i})}else Oo(this,e)}clone(){return new Ro(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left),width:0,height:0};if(t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0)return null;{const e=new Ro(t);return e._source=this._source,e}}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(Bo(e))return t;let i,n=e,s=e.parentNode||e.commonAncestorContainer;for(;s&&!Bo(s);){const e="visible"===((o=s)instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).overflow:"visible");n instanceof HTMLElement&&"absolute"===Lo(n)&&(i=n);const r=Lo(s);if(e||i&&("relative"===r&&e||"relative"!==r)){n=s,s=s.parentNode;continue}const a=new Ro(s),l=t.getIntersection(a);if(!l)return null;l.getArea()<t.getArea()&&(t=l),n=s,s=s.parentNode}var o;return t}isEqual(e){for(const t of Vo)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}toAbsoluteRect(){const{scrollX:e,scrollY:t}=i.window,n=this.clone().moveBy(e,t);if(Mo(n._source)){const e=Io(n._source);e&&function(e,t){const i=new Ro(t),n=Eo(t);let s=0,o=0;s-=i.left,o-=i.top,s+=t.scrollLeft,o+=t.scrollTop,s-=n.left,o-=n.top,e.moveBy(s,o)}(n,e)}return n}excludeScrollbarsAndBorders(){const e=this._source;let t,i,n;if(wo(e))t=e.innerWidth-e.document.documentElement.clientWidth,i=e.innerHeight-e.document.documentElement.clientHeight,n=e.getComputedStyle(e.document.documentElement).direction;else{const s=Eo(e);t=e.offsetWidth-e.clientWidth-s.left-s.right,i=e.offsetHeight-e.clientHeight-s.top-s.bottom,n=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=s.left,this.top+=s.top,this.right-=s.right,this.bottom-=s.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===n?this.right-=t:this.left+=t,this.height-=i,this.bottom-=i,this}static getDomRangeRects(e){const t=[],i=Array.from(e.getClientRects());if(i.length)for(const e of i)t.push(new Ro(e));else{let i=e.startContainer;Po(i)&&(i=i.parentNode);const n=new Ro(i.getBoundingClientRect());n.right=n.left,n.width=0,t.push(n)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let i=0;for(const n of e)i++,t.left=Math.min(t.left,n.left),t.top=Math.min(t.top,n.top),t.right=Math.max(t.right,n.right),t.bottom=Math.max(t.bottom,n.bottom);return 0==i?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new Ro(t))}}function Oo(e,t){for(const i of Vo)e[i]=t[i]}function Bo(e){return!!Mo(e)&&e===e.ownerDocument.body}function Mo(e){return null!==e&&"object